vendor: 4,140 bytes, lines 1-9
1var Up=e=>{throw TypeError(e)};var Ou=(e,t,n)=>t.has(e)||Up("Cannot "+n);var D=(e,t,n)=>(Ou(e,t,"read from private field"),n?n.call(e):t.get(e)),de=(e,t,n)=>t.has(e)?Up("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),re=(e,t,n,r)=>(Ou(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),at=(e,t,n)=>(Ou(e,t,"access private method"),n);var Xa=(e,t,n,r)=>({set _(s){re(e,t,s,n)},get _(){return D(e,t,r)}});function T1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ny={exports:{}},Kc={},ry={exports:{}},ae={};/** 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 Na=Symbol.for("react.element"),C1=Symbol.for("react.portal"),A1=Symbol.for("react.fragment"),j1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),R1=Symbol.for("react.provider"),P1=Symbol.for("react.context"),O1=Symbol.for("react.forward_ref"),I1=Symbol.for("react.suspense"),L1=Symbol.for("react.memo"),D1=Symbol.for("react.lazy"),$p=Symbol.iterator;function M1(e){return e===null||typeof e!="object"?null:(e=$p&&e[$p]||e["@@iterator"],typeof e=="function"?e:null)}var sy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},iy=Object.assign,oy={};function no(e,t,n){this.props=e,this.context=t,this.refs=oy,this.updater=n||sy}no.prototype.isReactComponent={};no.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};no.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ay(){}ay.prototype=no.prototype;function af(e,t,n){this.props=e,this.context=t,this.refs=oy,this.updater=n||sy}var lf=af.prototype=new ay;lf.constructor=af;iy(lf,no.prototype);lf.isPureReactComponent=!0;var Bp=Array.isArray,ly=Object.prototype.hasOwnProperty,cf={current:null},cy={key:!0,ref:!0,__self:!0,__source:!0};function uy(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)ly.call(t,r)&&!cy.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Na,type:e,key:i,ref:o,props:s,_owner:cf.current}}function z1(e,t){return{$$typeof:Na,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function uf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Na}function F1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wp=/\/+/g;function Iu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?F1(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function zl(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Na:case C1:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Iu(o,0):r,Bp(s)?(n="",e!=null&&(n=e.replace(Wp,"$&/")+"/"),zl(s,t,n,"",function(u){return u})):s!=null&&(uf(s)&&(s=z1(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Wp,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Bp(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Iu(i,a);o+=zl(i,t,n,l,s)}else if(l=M1(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Iu(i,a++),o+=zl(i,t,n,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Za(e,t,n){if(e==null)return e;var r=[],s=0;return zl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function U1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _t={current:null},Fl={transition:null},$1={ReactCurrentDispatcher:_t,ReactCurrentBatchConfig:Fl,ReactCurrentOwner:cf};function dy(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:Za,forEach:function(e,t,n){Za(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Za(e,function(){t++}),t},toArray:function(e){return Za(e,function(t){return t})||[]},only:function(e){if(!uf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=no;ae.Fragment=A1;ae.Profiler=N1;ae.PureComponent=af;ae.StrictMode=j1;ae.Suspense=I1;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$1;ae.act=dy;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=iy({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=cf.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ly.call(t,l)&&!cy.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Na,type:e.type,key:s,ref:i,props:r,_owner:o}};ae.createContext=function(e){return e={$$typeof:P1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:R1,_context:e},e.Consumer=e};ae.createElement=uy;ae.createFactory=function(e){var t=uy.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:O1,render:e}};ae.isValidElement=uf;ae.lazy=function(e){return{$$typeof:D1,_payload:{_status:-1,_result:e},_init:U1}};ae.memo=function(e,t){return{$$typeof:L1,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Fl.transition;Fl.transition={};try{e()}finally{Fl.transition=t}};ae.unstable_act=dy;ae.useCallback=function(e,t){return _t.current.useCallback(e,t)};ae.useContext=function(e){return _t.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return _t.current.useDeferredValue(e)};ae.useEffect=function(e,t){return _t.current.useEffect(e,t)};ae.useId=function(){return _t.current.useId()};ae.useImperativeHandle=function(e,t,n){return _t.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return _t.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return _t.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return _t.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return _t.current.useReducer(e,t,n)};ae.useRef=function(e){return _t.current.useRef(e)};ae.useState=function(e){return _t.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return _t.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return _t.current.useTransition()};ae.version="18.3.1";ry.exports=ae;var b=ry.exports;const $=ty(b),hy=T1({__proto__:null,default:$},[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 B1=b,W1=Symbol.for("react.element"),V1=Symbol.for("react.fragment"),H1=Object.prototype.hasOwnProperty,K1=B1.__SECRET_INT
vendor: 8,853 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,q1={key:!0,ref:!0,__self:!0,__source:!0};function fy(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)H1.call(t,r)&&!q1.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:W1,type:e,key:i,ref:o,props:s,_owner:K1.current}}Kc.Fragment=V1;Kc.jsx=fy;Kc.jsxs=fy;ny.exports=Kc;var c=ny.exports,py={exports:{}},Jt={},my={exports:{}},gy={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(R,M){var V=R.length;R.push(M);e:for(;0<V;){var ne=V-1>>>1,X=R[ne];if(0<s(X,M))R[ne]=M,R[V]=X,V=ne;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var M=R[0],V=R.pop();if(V!==M){R[0]=V;e:for(var ne=0,X=R.length,oe=X>>>1;ne<oe;){var J=2*(ne+1)-1,Ne=R[J],qe=J+1,ue=R[qe];if(0>s(Ne,V))qe<X&&0>s(ue,Ne)?(R[ne]=ue,R[qe]=V,ne=qe):(R[ne]=Ne,R[J]=V,ne=J);else if(qe<X&&0>s(ue,V))R[ne]=ue,R[qe]=V,ne=qe;else break e}}return M}function s(R,M){var V=R.sortIndex-M.sortIndex;return V!==0?V:R.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],h=1,d=null,p=3,f=!1,w=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=R)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(R){if(m=!1,y(R),!w)if(n(l)!==null)w=!0,j(_);else{var M=n(u);M!==null&&L(S,M.startTime-R)}}function _(R,M){w=!1,m&&(m=!1,v(O),O=-1),f=!0;var V=p;try{for(y(M),d=n(l);d!==null&&(!(d.expirationTime>M)||R&&!B());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var X=ne(d.expirationTime<=M);M=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),y(M)}else r(l);d=n(l)}if(d!==null)var oe=!0;else{var J=n(u);J!==null&&L(S,J.startTime-M),oe=!1}return oe}finally{d=null,p=V,f=!1}}var T=!1,C=null,O=-1,N=5,I=-1;function B(){return!(e.unstable_now()-I<N)}function P(){if(C!==null){var R=e.unstable_now();I=R;var M=!0;try{M=C(!0,R)}finally{M?H():(T=!1,C=null)}}else T=!1}var H;if(typeof g=="function")H=function(){g(P)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,G=E.port2;E.port1.onmessage=P,H=function(){G.postMessage(null)}}else H=function(){x(P,0)};function j(R){C=R,T||(T=!0,H())}function L(R,M){O=x(function(){R(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){w||f||(w=!0,j(_))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(p){case 1:case 2:case 3:var M=3;break;default:M=p}var V=p;p=M;try{return R()}finally{p=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,M){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var V=p;p=R;try{return M()}finally{p=V}},e.unstable_scheduleCallback=function(R,M,V){var ne=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ne+V:ne):V=ne,R){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=V+X,R={id:h++,callback:M,priorityLevel:R,startTime:V,expirationTime:X,sortIndex:-1},V>ne?(R.sortIndex=V,t(u,R),n(l)===null&&R===n(u)&&(m?(v(O),O=-1):m=!0,L(S,V-ne))):(R.sortIndex=X,t(l,R),w||f||(w=!0,j(_))),R},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(R){var M=p;return function(){var V=p;p=M;try{return R.apply(this,arguments)}finally{p=V}}}})(gy);my.exports=gy;var G1=my.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 Y1=b,Yt=G1;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vy=new Set,Jo={};function Hs(e,t){qi(e,t),qi(e+"Capture",t)}function qi(e,t){for(Jo[e]=t,e=0;e<t.length;e++)vy.add(t[e])}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Od=Object.prototype.hasOwnProperty,J1=/^[: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]*$/,Vp={},Hp={};function Q1(e){return Od.call(Hp,e)?!0:Od.call(Vp,e)?!1:J1.test(e)?Hp[e]=!0:(Vp[e]=!0,!1)}function X1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Z1(e,t,n,r){if(t===null||typeof t>"u"||X1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rt[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-:]([a-z])/g;function hf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(df,hf);rt[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(df,hf);rt[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(df,hf);rt[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function ff(e,t,n,r){var s=rt.hasOwnProperty(t)?rt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Z1(t,n,s,r)&&(n=null),r||s===null?Q1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Sr=Y1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,el=Symbol.for("react.element"),hi=Symbol.for("react.portal"),fi=Symbol.for("react.fragment"),pf=Symbol.for("react.strict_mode"),Id=Symbol.for("react.profiler"),yy=Symbol.for("react.provider"),wy=Symbol.for("react.context"),mf=Symbol.for("react.forward_ref"),Ld=Symbol.for("react.suspense"),Dd=Symbol.for("react.suspense_list"),gf=Symbol.for("react.memo"),Ir=Symbol.for("react.lazy"),by=Symbol.for("react.offscreen"),Kp=Symbol.iterator;function go(e){return e===null||typeof e!="object"?null:(e=Kp&&e[Kp]||e["@@iterator"],typeof e=="function"?e:null)}var je=Object.assign,Lu;function No(e){if(Lu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Lu=t&&t[1]||""}return` 34`+Lu+e}var Du=!1;function Mu(e,t){if(!e||Du)return"";Du=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),i=r.stack.split(` 36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 37`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Du=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?No(e):""}function ek(e){switch(e.tag){case 5:return No(e.type);case 16:return No("Lazy");case 13:return No("Suspense");case 19:return No("SuspenseList");case 0:case 2:case 15:return e=Mu(e.type,!1),e;case 11:return e=Mu(e.type.render,!1),e;case 1:return e=Mu(e.type,!0),e;default:return""}}function Md(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fi:return"Fragment";case hi:return"Portal";case Id:return"Profiler";case pf:return"StrictMode";case Ld:return"Suspense";case Dd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wy:return(e.displayName||"Context")+".Consumer";case yy:return(e._context.displayName||"Context")+".Provider";case mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gf:return t=e.displayName||null,t!==null?t:Md(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return Md(e(t))}catch{}}return null}function tk(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Md(t);case 8:return t===pf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nk(e){var t=xy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tl(e){e._valueTracker||(e._valueTracker=nk(e))}function ky(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zd(e,t){var n=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ns(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sy(e,t){t=t.checked,t!=null&&ff(e,"checked",t,!1)}function Fd(e,t){Sy(e,t);var n=ns(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ud(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ud(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ud(e,t,n){(t!=="number"||sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ro=Array.isArray;function Ei(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ns(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function $d(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(Ro(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ns(n)}}function _y(e,t){var n=ns(t.value),r=ns(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Jp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ey(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ey(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nl,Ty=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(nl=nl||document.createElement("div"),nl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qo(e,t){if(t){var n=e.firstChild;
vendor: 10,374 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zo={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},rk=["Webkit","ms","Moz","O"];Object.keys(zo).forEach(function(e){rk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zo[t]=zo[e]})});function Cy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zo.hasOwnProperty(e)&&zo[e]?(""+t).trim():t+"px"}function Ay(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Cy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var sk=je({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 Wd(e,t){if(t){if(sk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Vd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hd=null;function vf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kd=null,Ti=null,Ci=null;function Qp(e){if(e=Oa(e)){if(typeof Kd!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Qc(t),Kd(e.stateNode,e.type,t))}}function jy(e){Ti?Ci?Ci.push(e):Ci=[e]:Ti=e}function Ny(){if(Ti){var e=Ti,t=Ci;if(Ci=Ti=null,Qp(e),t)for(e=0;e<t.length;e++)Qp(t[e])}}function Ry(e,t){return e(t)}function Py(){}var zu=!1;function Oy(e,t,n){if(zu)return e(t,n);zu=!0;try{return Ry(e,t,n)}finally{zu=!1,(Ti!==null||Ci!==null)&&(Py(),Ny())}}function Xo(e,t){var n=e.stateNode;if(n===null)return null;var r=Qc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var qd=!1;if(vr)try{var vo={};Object.defineProperty(vo,"passive",{get:function(){qd=!0}}),window.addEventListener("test",vo,vo),window.removeEventListener("test",vo,vo)}catch{qd=!1}function ik(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Fo=!1,ic=null,oc=!1,Gd=null,ok={onError:function(e){Fo=!0,ic=e}};function ak(e,t,n,r,s,i,o,a,l){Fo=!1,ic=null,ik.apply(ok,arguments)}function lk(e,t,n,r,s,i,o,a,l){if(ak.apply(this,arguments),Fo){if(Fo){var u=ic;Fo=!1,ic=null}else throw Error(F(198));oc||(oc=!0,Gd=u)}}function Ks(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Iy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xp(e){if(Ks(e)!==e)throw Error(F(188))}function ck(e){var t=e.alternate;if(!t){if(t=Ks(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Xp(s),e;if(i===r)return Xp(s),t;i=i.sibling}throw Error(F(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(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function Ly(e){return e=ck(e),e!==null?Dy(e):null}function Dy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dy(e);if(t!==null)return t;e=e.sibling}return null}var My=Yt.unstable_scheduleCallback,Zp=Yt.unstable_cancelCallback,uk=Yt.unstable_shouldYield,dk=Yt.unstable_requestPaint,Me=Yt.unstable_now,hk=Yt.unstable_getCurrentPriorityLevel,yf=Yt.unstable_ImmediatePriority,zy=Yt.unstable_UserBlockingPriority,ac=Yt.unstable_NormalPriority,fk=Yt.unstable_LowPriority,Fy=Yt.unstable_IdlePriority,qc=null,qn=null;function pk(e){if(qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(qc,e,void 0,(e.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:vk,mk=Math.log,gk=Math.LN2;function vk(e){return e>>>=0,e===0?32:31-(mk(e)/gk|0)|0}var rl=64,sl=4194304;function Po(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Po(a):(i&=o,i!==0&&(r=Po(i)))}else o=n&~s,o!==0?r=Po(o):i!==0&&(r=Po(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Cn(t),s=1<<n,r|=e[n],t&=~s;return r}function yk(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Cn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=yk(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Yd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uy(){var e=rl;return rl<<=1,!(rl&4194240)&&(rl=64),e}function Fu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ra(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cn(t),e[t]=n}function bk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Cn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function wf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var me=0;function $y(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var By,bf,Wy,Vy,Hy,Jd=!1,il=[],Gr=null,Yr=null,Jr=null,Zo=new Map,ea=new Map,Dr=[],xk="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 em(e,t){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":Yr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":Zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ea.delete(t.pointerId)}}function yo(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Oa(t),t!==null&&bf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function kk(e,t,n,r,s){switch(t){case"focusin":return Gr=yo(Gr,e,t,n,r,s),!0;case"dragenter":return Yr=yo(Yr,e,t,n,r,s),!0;case"mouseover":return Jr=yo(Jr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Zo.set(i,yo(Zo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ea.set(i,yo(ea.get(i)||null,e,t,n,r,s)),!0}return!1}function Ky(e){var t=Es(e.target);if(t!==null){var n=Ks(t);if(n!==null){if(t=n.tag,t===13){if(t=Iy(n),t!==null){e.blockedOn=t,Hy(e.priority,function(){Wy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ul(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Hd=r,n.target.dispatchEvent(r),Hd=null}else return t=Oa(n),t!==null&&bf(t),e.blockedOn=n,!1;t.shift()}return!0}function tm(e,t,n){Ul(e)&&n.delete(t)}function Sk(){Jd=!1,Gr!==null&&Ul(Gr)&&(Gr=null),Yr!==null&&Ul(Yr)&&(Yr=null),Jr!==null&&Ul(Jr)&&(Jr=null),Zo.forEach(tm),ea.forEach(tm)}function wo(e,t){e.blockedOn===t&&(e.blockedOn=null,Jd||(Jd=!0,Yt.unstable_scheduleCallback(Yt.unstable_NormalPriority,Sk)))}function ta(e){function t(s){return wo(s,e)}if(0<il.length){wo(il[0],e);for(var n=1;n<il.length;n++){var r=il[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gr!==null&&wo(Gr,e),Yr!==null&&wo(Yr,e),Jr!==null&&wo(Jr,e),Zo.forEac
vendor: 8,922 bytes, line 37
37h(t),ea.forEach(t),n=0;n<Dr.length;n++)r=Dr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dr.length&&(n=Dr[0],n.blockedOn===null);)Ky(n),n.blockedOn===null&&Dr.shift()}var Ai=Sr.ReactCurrentBatchConfig,cc=!0;function _k(e,t,n,r){var s=me,i=Ai.transition;Ai.transition=null;try{me=1,xf(e,t,n,r)}finally{me=s,Ai.transition=i}}function Ek(e,t,n,r){var s=me,i=Ai.transition;Ai.transition=null;try{me=4,xf(e,t,n,r)}finally{me=s,Ai.transition=i}}function xf(e,t,n,r){if(cc){var s=Qd(e,t,n,r);if(s===null)Yu(e,t,r,uc,n),em(e,r);else if(kk(s,e,t,n,r))r.stopPropagation();else if(em(e,r),t&4&&-1<xk.indexOf(e)){for(;s!==null;){var i=Oa(s);if(i!==null&&By(i),i=Qd(e,t,n,r),i===null&&Yu(e,t,r,uc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Yu(e,t,r,null,n)}}var uc=null;function Qd(e,t,n,r){if(uc=null,e=vf(r),e=Es(e),e!==null)if(t=Ks(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Iy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return uc=e,null}function qy(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hk()){case yf:return 1;case zy:return 4;case ac:case fk:return 16;case Fy:return 536870912;default:return 16}default:return 16}}var Hr=null,kf=null,$l=null;function Gy(){if($l)return $l;var e,t=kf,n=t.length,r,s="value"in Hr?Hr.value:Hr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return $l=s.slice(e,1<r?1-r:void 0)}function Bl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ol(){return!0}function nm(){return!1}function Qt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ol:nm,this.isPropagationStopped=nm,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ol)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ol)},persist:function(){},isPersistent:ol}),t}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sf=Qt(ro),Pa=je({},ro,{view:0,detail:0}),Tk=Qt(Pa),Uu,$u,bo,Gc=je({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bo&&(bo&&e.type==="mousemove"?(Uu=e.screenX-bo.screenX,$u=e.screenY-bo.screenY):$u=Uu=0,bo=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:$u}}),rm=Qt(Gc),Ck=je({},Gc,{dataTransfer:0}),Ak=Qt(Ck),jk=je({},Pa,{relatedTarget:0}),Bu=Qt(jk),Nk=je({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),Rk=Qt(Nk),Pk=je({},ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ok=Qt(Pk),Ik=je({},ro,{data:0}),sm=Qt(Ik),Lk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dk={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"},Mk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mk[e])?!!t[e]:!1}function _f(){return zk}var Fk=je({},Pa,{key:function(e){if(e.key){var t=Lk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_f,charCode:function(e){return e.type==="keypress"?Bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uk=Qt(Fk),$k=je({},Gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),im=Qt($k),Bk=je({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_f}),Wk=Qt(Bk),Vk=je({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hk=Qt(Vk),Kk=je({},Gc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qk=Qt(Kk),Gk=[9,13,27,32],Ef=vr&&"CompositionEvent"in window,Uo=null;vr&&"documentMode"in document&&(Uo=document.documentMode);var Yk=vr&&"TextEvent"in window&&!Uo,Yy=vr&&(!Ef||Uo&&8<Uo&&11>=Uo),om=" ",am=!1;function Jy(e,t){switch(e){case"keyup":return Gk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function Jk(e,t){switch(e){case"compositionend":return Qy(t);case"keypress":return t.which!==32?null:(am=!0,om);case"textInput":return e=t.data,e===om&&am?null:e;default:return null}}function Qk(e,t){if(pi)return e==="compositionend"||!Ef&&Jy(e,t)?(e=Gy(),$l=kf=Hr=null,pi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yy&&t.locale!=="ko"?null:t.data;default:return null}}var Xk={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 lm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xk[e.type]:t==="textarea"}function Xy(e,t,n,r){jy(r),t=dc(t,"onChange"),0<t.length&&(n=new Sf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $o=null,na=null;function Zk(e){c0(e,0)}function Yc(e){var t=vi(e);if(ky(t))return e}function eS(e,t){if(e==="change")return t}var Zy=!1;if(vr){var Wu;if(vr){var Vu="oninput"in document;if(!Vu){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),Vu=typeof cm.oninput=="function"}Wu=Vu}else Wu=!1;Zy=Wu&&(!document.documentMode||9<document.documentMode)}function um(){$o&&($o.detachEvent("onpropertychange",e0),na=$o=null)}function e0(e){if(e.propertyName==="value"&&Yc(na)){var t=[];Xy(t,na,e,vf(e)),Oy(Zk,t)}}function tS(e,t,n){e==="focusin"?(um(),$o=t,na=n,$o.attachEvent("onpropertychange",e0)):e==="focusout"&&um()}function nS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yc(na)}function rS(e,t){if(e==="click")return Yc(t)}function sS(e,t){if(e==="input"||e==="change")return Yc(t)}function iS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jn=typeof Object.is=="function"?Object.is:iS;function ra(e,t){if(jn(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Od.call(t,s)||!jn(e[s],t[s]))return!1}return!0}function dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hm(e,t){var n=dm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dm(n)}}function t0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?t0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function n0(){for(var e=window,t=sc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sc(e.document)}return t}function Tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function oS(e){var t=n0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&t0(n.ownerDocument.documentElement,n)){if(r!==null&&Tf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=hm(n,i);var o=hm(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var aS=vr&&"documentMode"in document&&11>=document.documentMode,mi=null,Xd=null,Bo=null,Zd=!1;function fm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zd||mi==null||mi!==sc(r)||(r=mi,"selectionStart"in r&&Tf(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}),Bo&&ra(Bo,r)||(Bo=r,r=dc(Xd,"onSelect"),0<r.length&&(t=new Sf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mi)))}function al(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gi={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionend:al("Transition","TransitionEnd")},Hu={},r0={};vr&&(r0=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function Jc(e){if(Hu[e])return Hu[e];if(!gi[e])return e;var t=gi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in r0)return Hu[e]=t[n];return e}var s0=Jc("animationend"),i0=Jc("animationiteration"),o0=Jc("animationstart"),a0=Jc("transitionend"),l0=new Map,pm="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 cs(e,t){l0.set(e,t),Hs(t,[e])}for(var Ku=0;Ku<pm.length;Ku++){var qu=pm[Ku],lS=qu.toLowerCase(),cS=qu[0].toUpperCase()+qu.slice(1);cs(lS,"on"+cS)}cs(s0,"onAnimationEnd");cs(i0,"onAnimationIteration");cs(o0,"onAnimationStart");cs("dblclick","onDoubleClick");cs("focusin","onFocus");cs("focusout","onBlur");cs(a0,"onTransitionEnd");qi("onMouseEnter",["mouseout","mouseover"]);qi("onMouseLeave",["mouseout","mouseover"]);qi("onPointerEnter",["pointerout","pointerover"]);qi("onPointerLeave",["pointerout","pointerover"]);Hs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37Hs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oo="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(" "),uS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oo));function mm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,lk(r,t,void 0,e),e.currentTarget=null}function c0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;mm(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;mm(s,a,u),i=l}}}if(oc)throw e=Gd,oc=!1,Gd=null,e}function xe(e,t){var n=t[sh];n===void 0&&(n=t[sh]=new Set);var r=e+"__bubble";n.has(r)||(u0(t,e,2,!1),n.add(r))}function Gu(e,t,n){var r=0;t&&(r|=4),u0(n,e,r,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function sa(e){if(!e[ll]){e[ll]=!0,vy.forEach(function(n){n!=="selectionchange"&&(uS.has(n)||Gu(n,!1,e),Gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,Gu("selectionchange",!1,t))}}function u0(e,t,n,r){switch(qy(t)){case 1:var s=_k;break;case 4:s=Ek;break;default:s=xf}n=s.bind(null,t,n,e),s=void 0,!qd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Yu(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Es(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Oy(function(){var u=i,h=vf(n),d=[];e:{var p=l0.get(e);if(p!==void 0){var f=Sf,w=e;switch(e){case"keypress":if(Bl(n)===0)break e;case"keydown":case"keyup":f=Uk;break;case"focusin":w="focus",f=Bu;break;case"focusout":w="blur",f=Bu;break;case"beforeblur":case"afterblur":f=Bu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Ak;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Wk;break;case s0:case i0:case o0:f=Rk;break;case a0:f=Hk;break;case"scroll":f=Tk;break;case"wheel":f=qk;break;case"copy":case"cut":case"paste":f=Ok;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=im}var m=(t&4)!==0,x=!m&&e==="scroll",v=m?p!==null?p+"Capture":null:p;m=[];for(var g=u,y;g!==null;){y=g;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=Xo(g,v),S!=null&&m.push(ia(g,S,y)))),x)break;g=g.return}0<m.length&&(p=new f(p,w,null,n,h),d.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Hd&&(w=n.relatedTarget||n.fromElement)&&(Es(w)||w[yr]))break e;if((f||p)&&(p=h.window===h?h:(p=h.ownerDocument)?p.defaultView||p.parentWindow:window,f?(w=n.relatedTarget||n.toElement,f=u,w=w?Es(w):null,w!==null&&(x=Ks(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(f=null,w=u),f!==w)){if(m=rm,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=im,S="onPointerLeave",v="onPointerEnter",g="pointer"),x=f==null?p:vi(f),y=w==null?p:vi(w),p=new m(S,g+"leave",f,n,h),p.target=x,p.relatedTarget=y,S=null,Es(h)===u&&(m=new m(v,g+"enter",w,n,h),m.target=y,m.relatedTarget=x,S=m),x=S,f&&w)t:{for(m=f,v=w,g=0,y=m;y;y=Zs(y))g++;for(y=0,S=v;S;S=Zs(S))y++;for(;0<g-y;)m=Zs(m),g--;for(;0<y-g;)v=Zs(v),y--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=Zs(m),v=Zs(v)}m=null}else m=null;f!==null&&gm(d,p,f,m,!1),w!==null&&x!==null&&gm(d,x,w,m,!0)}}
vendor: 5,681 bytes, lines 37-38
37e:{if(p=u?vi(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var _=eS;else if(lm(p))if(Zy)_=sS;else{_=nS;var T=tS}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(_=rS);if(_&&(_=_(e,u))){Xy(d,_,n,h);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&Ud(p,"number",p.value)}switch(T=u?vi(u):window,e){case"focusin":(lm(T)||T.contentEditable==="true")&&(mi=T,Xd=u,Bo=null);break;case"focusout":Bo=Xd=mi=null;break;case"mousedown":Zd=!0;break;case"contextmenu":case"mouseup":case"dragend":Zd=!1,fm(d,n,h);break;case"selectionchange":if(aS)break;case"keydown":case"keyup":fm(d,n,h)}var C;if(Ef)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else pi?Jy(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Yy&&n.locale!=="ko"&&(pi||O!=="onCompositionStart"?O==="onCompositionEnd"&&pi&&(C=Gy()):(Hr=h,kf="value"in Hr?Hr.value:Hr.textContent,pi=!0)),T=dc(u,O),0<T.length&&(O=new sm(O,e,null,n,h),d.push({event:O,listeners:T}),C?O.data=C:(C=Qy(n),C!==null&&(O.data=C)))),(C=Yk?Jk(e,n):Qk(e,n))&&(u=dc(u,"onBeforeInput"),0<u.length&&(h=new sm("onBeforeInput","beforeinput",null,n,h),d.push({event:h,listeners:u}),h.data=C))}c0(d,t)})}function ia(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Xo(e,n),i!=null&&r.unshift(ia(e,i,s)),i=Xo(e,t),i!=null&&r.push(ia(e,i,s))),e=e.return}return r}function Zs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gm(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Xo(n,i),l!=null&&o.unshift(ia(n,l,a))):s||(l=Xo(n,i),l!=null&&o.push(ia(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var dS=/\r\n?/g,hS=/\u0000|\uFFFD/g;function vm(e){return(typeof e=="string"?e:""+e).replace(dS,` 38`).replace(hS,"")}function cl(e,t,n){if(t=vm(t),vm(e)!==t&&n)throw Error(F(425))}function hc(){}var eh=null,th=null;function nh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rh=typeof setTimeout=="function"?setTimeout:void 0,fS=typeof clearTimeout=="function"?clearTimeout:void 0,ym=typeof Promise=="function"?Promise:void 0,pS=typeof queueMicrotask=="function"?queueMicrotask:typeof ym<"u"?function(e){return ym.resolve(null).then(e).catch(mS)}:rh;function mS(e){setTimeout(function(){throw e})}function Ju(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ta(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ta(t)}function Qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),Hn="__reactFiber$"+so,oa="__reactProps$"+so,yr="__reactContainer$"+so,sh="__reactEvents$"+so,gS="__reactListeners$"+so,vS="__reactHandles$"+so;function Es(e){var t=e[Hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yr]||n[Hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wm(e);e!==null;){if(n=e[Hn])return n;e=wm(e)}return t}e=n,n=e.parentNode}return null}function Oa(e){return e=e[Hn]||e[yr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Qc(e){return e[oa]||null}var ih=[],yi=-1;function us(e){return{current:e}}function Se(e){0>yi||(e.current=ih[yi],ih[yi]=null,yi--)}function we(e,t){yi++,ih[yi]=e.current,e.current=t}var rs={},mt=us(rs),Dt=us(!1),zs=rs;function Gi(e,t){var n=e.type.contextTypes;if(!n)return rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Mt(e){return e=e.childContextTypes,e!=null}function fc(){Se(Dt),Se(mt)}function bm(e,t,n){if(mt.current!==rs)throw Error(F(168));we(mt,t),we(Dt,n)}function d0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(F(108,tk(e)||"Unknown",s));return je({},n,r)}function pc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,zs=mt.current,we(mt,e),we(Dt,Dt.current),!0}function xm(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=d0(e,t,zs),r.__reactInternalMemoizedMergedChildContext=e,Se(Dt),Se(mt),we(mt,e)):Se(Dt),we(Dt,n)}var dr=null,Xc=!1,Qu=!1;function h0(e){dr===null?dr=[e]:dr.push(e)}function yS(e){Xc=!0,h0(e)}function ds(){if(!Qu&&dr!==null){Qu=!0;var e=0,t=me;try{var n=dr;for(me=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dr=null,Xc=!1}catch(s){throw dr!==null&&(dr=dr.slice(e+1)),My(yf,ds),s}finally{me=t,Qu=!1}}return null}var wi=[],bi=0,mc=null,gc=0,nn=[],rn=0,Fs=null,fr=1,pr="";function xs(e,t){wi[bi++]=gc,wi[bi++]=mc,mc=e,gc=t}
vendor: 27,528 bytes, lines 38-40
38function f0(e,t,n){nn[rn++]=fr,nn[rn++]=pr,nn[rn++]=Fs,Fs=e;var r=fr;e=pr;var s=32-Cn(r)-1;r&=~(1<<s),n+=1;var i=32-Cn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,fr=1<<32-Cn(t)+s|n<<s|r,pr=i+e}else fr=1<<i|n<<s|r,pr=e}function Cf(e){e.return!==null&&(xs(e,1),f0(e,1,0))}function Af(e){for(;e===mc;)mc=wi[--bi],wi[bi]=null,gc=wi[--bi],wi[bi]=null;for(;e===Fs;)Fs=nn[--rn],nn[rn]=null,pr=nn[--rn],nn[rn]=null,fr=nn[--rn],nn[rn]=null}var qt=null,Kt=null,_e=!1,En=null;function p0(e,t){var n=sn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function km(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qt=e,Kt=Qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qt=e,Kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fs!==null?{id:fr,overflow:pr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=sn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qt=e,Kt=null,!0):!1;default:return!1}}function oh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ah(e){if(_e){var t=Kt;if(t){var n=t;if(!km(e,t)){if(oh(e))throw Error(F(418));t=Qr(n.nextSibling);var r=qt;t&&km(e,t)?p0(r,n):(e.flags=e.flags&-4097|2,_e=!1,qt=e)}}else{if(oh(e))throw Error(F(418));e.flags=e.flags&-4097|2,_e=!1,qt=e}}}function Sm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qt=e}function ul(e){if(e!==qt)return!1;if(!_e)return Sm(e),_e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nh(e.type,e.memoizedProps)),t&&(t=Kt)){if(oh(e))throw m0(),Error(F(418));for(;t;)p0(e,t),t=Qr(t.nextSibling)}if(Sm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Kt=Qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Kt=null}}else Kt=qt?Qr(e.stateNode.nextSibling):null;return!0}function m0(){for(var e=Kt;e;)e=Qr(e.nextSibling)}function Yi(){Kt=qt=null,_e=!1}function jf(e){En===null?En=[e]:En.push(e)}var wS=Sr.ReactCurrentBatchConfig;function xo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function dl(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _m(e){var t=e._init;return t(e._payload)}function g0(e){function t(v,g){if(e){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=ts(v,g),v.index=0,v.sibling=null,v}function i(v,g,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,y,S){return g===null||g.tag!==6?(g=sd(y,v.mode,S),g.return=v,g):(g=s(g,y),g.return=v,g)}function l(v,g,y,S){var _=y.type;return _===fi?h(v,g,y.props.children,S,y.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ir&&_m(_)===g.type)?(S=s(g,y.props),S.ref=xo(v,g,y),S.return=v,S):(S=Yl(y.type,y.key,y.props,null,v.mode,S),S.ref=xo(v,g,y),S.return=v,S)}function u(v,g,y,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=id(y,v.mode,S),g.return=v,g):(g=s(g,y.children||[]),g.return=v,g)}function h(v,g,y,S,_){return g===null||g.tag!==7?(g=Ds(y,v.mode,S,_),g.return=v,g):(g=s(g,y),g.return=v,g)}function d(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=sd(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case el:return y=Yl(g.type,g.key,g.props,null,v.mode,y),y.ref=xo(v,null,g),y.return=v,y;case hi:return g=id(g,v.mode,y),g.return=v,g;case Ir:var S=g._init;return d(v,S(g._payload),y)}if(Ro(g)||go(g))return g=Ds(g,v.mode,y,null),g.return=v,g;dl(v,g)}return null}function p(v,g,y,S){var _=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:a(v,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case el:return y.key===_?l(v,g,y,S):null;case hi:return y.key===_?u(v,g,y,S):null;case Ir:return _=y._init,p(v,g,_(y._payload),S)}if(Ro(y)||go(y))return _!==null?null:h(v,g,y,S,null);dl(v,y)}return null}function f(v,g,y,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,a(g,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case el:return v=v.get(S.key===null?y:S.key)||null,l(g,v,S,_);case hi:return v=v.get(S.key===null?y:S.key)||null,u(g,v,S,_);case Ir:var T=S._init;return f(v,g,y,T(S._payload),_)}if(Ro(S)||go(S))return v=v.get(y)||null,h(g,v,S,_,null);dl(g,S)}return null}function w(v,g,y,S){for(var _=null,T=null,C=g,O=g=0,N=null;C!==null&&O<y.length;O++){C.index>O?(N=C,C=null):N=C.sibling;var I=p(v,C,y[O],S);if(I===null){C===null&&(C=N);break}e&&C&&I.alternate===null&&t(v,C),g=i(I,g,O),T===null?_=I:T.sibling=I,T=I,C=N}if(O===y.length)return n(v,C),_e&&xs(v,O),_;if(C===null){for(;O<y.length;O++)C=d(v,y[O],S),C!==null&&(g=i(C,g,O),T===null?_=C:T.sibling=C,T=C);return _e&&xs(v,O),_}for(C=r(v,C);O<y.length;O++)N=f(C,v,O,y[O],S),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?O:N.key),g=i(N,g,O),T===null?_=N:T.sibling=N,T=N);return e&&C.forEach(function(B){return t(v,B)}),_e&&xs(v,O),_}function m(v,g,y,S){var _=go(y);if(typeof _!="function")throw Error(F(150));if(y=_.call(y),y==null)throw Error(F(151));for(var T=_=null,C=g,O=g=0,N=null,I=y.next();C!==null&&!I.done;O++,I=y.next()){C.index>O?(N=C,C=null):N=C.sibling;var B=p(v,C,I.value,S);if(B===null){C===null&&(C=N);break}e&&C&&B.alternate===null&&t(v,C),g=i(B,g,O),T===null?_=B:T.sibling=B,T=B,C=N}if(I.done)return n(v,C),_e&&xs(v,O),_;if(C===null){for(;!I.done;O++,I=y.next())I=d(v,I.value,S),I!==null&&(g=i(I,g,O),T===null?_=I:T.sibling=I,T=I);return _e&&xs(v,O),_}for(C=r(v,C);!I.done;O++,I=y.next())I=f(C,v,O,I.value,S),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?O:I.key),g=i(I,g,O),T===null?_=I:T.sibling=I,T=I);return e&&C.forEach(function(P){return t(v,P)}),_e&&xs(v,O),_}function x(v,g,y,S){if(typeof y=="object"&&y!==null&&y.type===fi&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case el:e:{for(var _=y.key,T=g;T!==null;){if(T.key===_){if(_=y.type,_===fi){if(T.tag===7){n(v,T.sibling),g=s(T,y.props.children),g.return=v,v=g;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ir&&_m(_)===T.type){n(v,T.sibling),g=s(T,y.props),g.ref=xo(v,T,y),g.return=v,v=g;break e}n(v,T);break}else t(v,T);T=T.sibling}y.type===fi?(g=Ds(y.props.children,v.mode,S,y.key),g.return=v,v=g):(S=Yl(y.type,y.key,y.props,null,v.mode,S),S.ref=xo(v,g,y),S.return=v,v=S)}return o(v);case hi:e:{for(T=y.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(v,g.sibling),g=s(g,y.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=id(y,v.mode,S),g.return=v,v=g}return o(v);case Ir:return T=y._init,x(v,g,T(y._payload),S)}if(Ro(y))return w(v,g,y,S);if(go(y))return m(v,g,y,S);dl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(v,g.sibling),g=s(g,y),g.return=v,v=g):(n(v,g),g=sd(y,v.mode,S),g.return=v,v=g),o(v)):n(v,g)}return x}var Ji=g0(!0),v0=g0(!1),vc=us(null),yc=null,xi=null,Nf=null;function Rf(){Nf=xi=yc=null}function Pf(e){var t=vc.current;Se(vc),e._currentValue=t}function lh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ji(e,t){yc=e,Nf=xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Lt=!0),e.firstContext=null)}function an(e){var t=e._currentValue;if(Nf!==e)if(e={context:e,memoizedValue:t,next:null},xi===null){if(yc===null)throw Error(F(308));xi=e,yc.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Ts=null;function Of(e){Ts===null?Ts=[e]:Ts.push(e)}function y0(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Of(t)):(n.next=s.next,s.next=n),t.interleaved=n,wr(e,r)}function wr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Lr=!1;function If(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function w0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,wr(e,n)}return s=r.interleaved,s===null?(t.next=t,Of(r)):(t.next=s.next,s.next=t),r.interleaved=t,wr(e,n)}function Wl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wf(e,n)}}function Em(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wc(e,t,n,r){var s=e.updateQueue;Lr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==o&&(a===null?h.firstBaseUpdate=u:a.next=u,h.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,h=u=l=null,a=i;do{var p=a.lane,f=a.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,m=a;switch(p=t,f=n,m.tag){case 1:if(w=m.payload,typeof w=="function"){d=w.call(f,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=m.payload,p=typeof w=="function"?w.call(f,d,p):w,p==null)break e;d=je({},d,p);break e;case 2:Lr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(u=h=f,l=d):h=h.next=f,o|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(h===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=h,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);$s|=o,e.lanes=o,e.memoizedState=d}}function Tm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(F(191,s));s.call(r)}}}var Ia={},Gn=us(Ia),aa=us(Ia),la=us(Ia);function Cs(e){if(e===Ia)throw Error(F(174));return e}function Lf(e,t){switch(we(la,t),we(aa,e),we(Gn,Ia),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bd(t,e)}Se(Gn),we(Gn,t)}function Qi(){Se(Gn),Se(aa),Se(la)}function b0(e){Cs(la.current);var t=Cs(Gn.current),n=Bd(t,e.type);t!==n&&(we(aa,e),we(Gn,n))}function Df(e){aa.current===e&&(Se(Gn),Se(aa))}var Ce=us(0);function bc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xu=[];function Mf(){for(var e=0;e<Xu.length;e++)Xu[e]._workInProgressVersionPrimary=null;Xu.length=0}var Vl=Sr.ReactCurrentDispatcher,Zu=Sr.ReactCurrentBatchConfig,Us=0,Ae=null,Ve=null,Je=null,xc=!1,Wo=!1,ca=0,bS=0;function lt(){throw Error(F(321))}function zf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jn(e[n],t[n]))return!1;return!0}function Ff(e,t,n,r,s,i){if(Us=i,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vl.current=e===null||e.memoizedState===null?_S:ES,e=n(r,s),Wo){i=0;do{if(Wo=!1,ca=0,25<=i)throw Error(F(301));i+=1,Je=Ve=null,t.updateQueue=null,Vl.current=TS,e=n(r,s)}while(Wo)}if(Vl.current=kc,t=Ve!==null&&Ve.next!==null,Us=0,Je=Ve=Ae=null,xc=!1,t)throw Error(F(300));return e}function Uf(){var e=ca!==0;return ca=0,e}function Fn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ae.memoizedState=Je=e:Je=Je.next=e,Je}function ln(){if(Ve===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Je===null?Ae.memoizedState:Je.next;if(t!==null)Je=t,Ve=e;else{if(e===null)throw Error(F(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Je===null?Ae.memoizedState=Je=e:Je=Je.next=e}return Je}function ua(e,t){return typeof t=="function"?t(e):t}function ed(e){var t=ln(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=Ve,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var h=u.lane;if((Us&h)===h)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Ae.lanes|=h,$s|=h}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,jn(r,t.memoizedState)||(Lt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ae.lanes|=i,$s|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function td(e){var t=ln(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);jn(i,t.memoizedState)||(Lt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function x0(){}function k0(e,t){var n=Ae,r=ln(),s=t(),i=!jn(r.memoizedState,s);if(i&&(r.memoizedState=s,Lt=!0),r=r.queue,$f(E0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,da(9,_0.bind(null,n,r,s,t),void 0,null),Qe===null)throw Error(F(349));Us&30||S0(n,t,s)}return s}function S0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _0(e,t,n,r){t.value=n,t.getSnapshot=r,T0(t)&&C0(e)}function E0(e,t,n){return n(function(){T0(t)&&C0(e)})}function T0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jn(e,n)}catch{return!0}}function C0(e){var t=wr(e,1);t!==null&&An(t,e,1,-1)}function Cm(e){var t=Fn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t.queue=e,e=e.dispatch=SS.bind(null,Ae,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function A0(){return ln().memoizedState}function Hl(e,t,n,r){var s=Fn();Ae.flags|=e,s.memoizedState=da(1|t,n,void 0,r===void 0?null:r)}function Zc(e,t,n,r){var s=ln();r=r===void 0?null:r;var i=void 0;if(Ve!==null){var o=Ve.memoizedState;if(i=o.destroy,r!==null&&zf(r,o.deps)){s.memoizedState=da(t,n,i,r);return}}Ae.flags|=e,s.memoizedState=da(1|t,n,i,r)}function Am(e,t){return Hl(8390656,8,e,t)}function $f(e,t){return Zc(2048,8,e,t)}function j0(e,t){return Zc(4,2,e,t)}function N0(e,t){return Zc(4,4,e,t)}function R0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function P0(e,t,n){return n=n!=null?n.concat([e]):null,Zc(4,4,R0.bind(null,t,e),n)}function Bf(){}function O0(e,t){var n=ln();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function I0(e,t){var n=ln();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function L0(e,t,n){return Us&21?(jn(n,t)||(n=Uy(),Ae.lanes|=n,$s|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Lt=!0),e.memoizedState=n)}function xS(e,t){var n=me;me=n!==0&&4>n?n:4,e(!0);var r=Zu.transition;Zu.transition={};try{e(!1),t()}finally{me=n,Zu.transition=r}}function D0(){return ln().memoizedState}function kS(e,t,n){var r=es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},M0(e))z0(t,n);else if(n=y0(e,t,n,r),n!==null){var s=kt();An(n,e,r,s),F0(n,t,r)}}function SS(e,t,n){var r=es(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(M0(e))z0(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,jn(a,o)){var l=t.interleaved;l===null?(s.next=s,Of(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=y0(e,t,s,r),n!==null&&(s=kt(),An(n,e,r,s),F0(n,t,r))}}function M0(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function z0(e,t){Wo=xc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function F0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wf(e,n)}}var kc={readContext:an,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},_S={readContext:an,useCallback:function(e,t){return Fn().memoizedState=[e,t===void 0?null:t],e},useContext:an,useEffect:Am,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4194308,4,R0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=Fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kS.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Fn();return e={current:e},t.memoizedState=e},useState:Cm,useDebugValue:Bf,useDeferredValue:function(e){return Fn().memoizedState=e},useTransition:function(){var e=Cm(!1),t=e[0];return e=xS.bind(null,e[1]),Fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,s=Fn();if(_e){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Qe===null)throw Error(F(349));Us&30||S0(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Am(E0.bind(null,r,i,e),[e]),r.flags|=2048,da(9,_0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fn(),t=Qe.identifierPrefix;if(_e){var n=pr,r=fr;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ca++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ES={readContext:an,useCallback:O0,useContext:an,useEffect:$f,useImperativeHandle:P0,useInsertionEffect:j0,useLayoutEffect:N0,useMemo:I0,useReducer:ed,useRef:A0,useState:function(){return ed(ua)},useDebugValue:Bf,useDeferredValue:function(e){var t=ln();return L0(t,Ve.memoizedState,e)},useTransition:function(){var e=ed(ua)[0],t=ln().memoizedState;return[e,t]},useMutableSource:x0,useSyncExternalStore:k0,useId:D0,unstable_isNewReconciler:!1},TS={readContext:an,useCallback:O0,useContext:an,useEffect:$f,useImperativeHandle:P0,useInsertionEffect:j0,useLayoutEffect:N0,useMemo:I0,useReducer:td,useRef:A0,useState:function(){return td(ua)},useDebugValue:Bf,useDeferredValue:function(e){var t=ln();return Ve===null?t.memoizedState=e:L0(t,Ve.memoizedState,e)},useTransition:function(){var e=td(ua)[0],t=ln().memoizedState;return[e,t]},useMutableSource:x0,useSyncExternalStore:k0,useId:D0,unstable_isNewReconciler:!1};function wn(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ch(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var eu={isMounted:function(e){return(e=e._reactInternals)?Ks(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kt(),s=es(e),i=mr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Xr(e,i,s),t!==null&&(An(t,e,s,r),Wl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kt(),s=es(e),i=mr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Xr(e,i,s),t!==null&&(An(t,e,s,r),Wl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),r=es(e),s=mr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Xr(e,s,r),t!==null&&(An(t,e,r,n),Wl(t,e,r))}};function jm(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ra(n,r)||!ra(s,i):!0}function U0(e,t,n){var r=!1,s=rs,i=t.contextType;return typeof i=="object"&&i!==null?i=an(i):(s=Mt(t)?zs:mt.current,r=t.contextTypes,i=(r=r!=null)?Gi(e,s):rs),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nm(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eu.enqueueReplaceState(t,t.state,null)}function uh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},If(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=an(i):(i=Mt(t)?zs:mt.current,s.context=Gi(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ch(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&eu.enqueueReplaceState(s,s.state,null),wc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Xi(e,t){try{var n="",r=t;do n+=ek(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function nd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var CS=typeof WeakMap=="function"?WeakMap:Map;function $0(e,t,n){n=mr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_c||(_c=!0,xh=r),dh(e,t)},n}function B0(e,t,n){n=mr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){dh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){dh(e,t),typeof r!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Rm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new CS;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=$S.bind(null,e,t,n),t.then(e,e))}function Pm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Om(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mr(-1,1),t.tag=2,Xr(n,t,1))),n.lanes|=1),e)}var AS=Sr.ReactCurrentOwner,Lt=!1;function bt(e,t,n,r){t.child=e===null?v0(t,null,n,r):Ji(t,e.child,n,r)}function Im(e,t,n,r,s){n=n.render;var i=t.ref;return ji(t,s),r=Ff(e,t,n,r,i,s),n=Uf(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,br(e,t,s)):(_e&&n&&Cf(t),t.flags|=1,bt(e,t,r,s),t.child)}function Lm(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Jf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,W0(e,t,i,r,s)):(e=Yl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ra,n(o,r)&&e.ref===t.ref)return br(e,t,s)}return t.flags|=1,e=ts(i,r),e.ref=t.ref,e.return=t,t.child=e}function W0(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ra(i,r)&&e.ref===t.ref)if(Lt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Lt=!0);else return t.lanes=e.lanes,br(e,t,s)}return hh(e,t,n,r,s)}function V0(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(Si,Wt),Wt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(Si,Wt),Wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(Si,Wt),Wt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(Si,Wt),Wt|=r;return bt(e,t,s,n),t.child}function H0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,726 bytes, line 40
40function hh(e,t,n,r,s){var i=Mt(n)?zs:mt.current;return i=Gi(t,i),ji(t,s),n=Ff(e,t,n,r,i,s),r=Uf(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,br(e,t,s)):(_e&&r&&Cf(t),t.flags|=1,bt(e,t,n,s),t.child)}function Dm(e,t,n,r,s){if(Mt(n)){var i=!0;pc(t)}else i=!1;if(ji(t,s),t.stateNode===null)Kl(e,t),U0(t,n,r),uh(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=an(u):(u=Mt(n)?zs:mt.current,u=Gi(t,u));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nm(t,o,r,u),Lr=!1;var p=t.memoizedState;o.state=p,wc(t,r,o,s),l=t.memoizedState,a!==r||p!==l||Dt.current||Lr?(typeof h=="function"&&(ch(t,n,h,r),l=t.memoizedState),(a=Lr||jm(t,n,a,r,p,l,u))?(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"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,w0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:wn(t.type,a),o.props=u,d=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=an(l):(l=Mt(n)?zs:mt.current,l=Gi(t,l));var f=n.getDerivedStateFromProps;(h=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||p!==l)&&Nm(t,o,r,l),Lr=!1,p=t.memoizedState,o.state=p,wc(t,r,o,s);var w=t.memoizedState;a!==d||p!==w||Dt.current||Lr?(typeof f=="function"&&(ch(t,n,f,r),w=t.memoizedState),(u=Lr||jm(t,n,u,r,p,w,l)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return fh(e,t,n,r,i,s)}function fh(e,t,n,r,s,i){H0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&xm(t,n,!1),br(e,t,i);r=t.stateNode,AS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ji(t,e.child,null,i),t.child=Ji(t,null,a,i)):bt(e,t,a,i),t.memoizedState=r.state,s&&xm(t,n,!0),t.child}function K0(e){var t=e.stateNode;t.pendingContext?bm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bm(e,t.context,!1),Lf(e,t.containerInfo)}function Mm(e,t,n,r,s){return Yi(),jf(s),t.flags|=256,bt(e,t,n,r),t.child}var ph={dehydrated:null,treeContext:null,retryLane:0};function mh(e){return{baseLanes:e,cachePool:null,transitions:null}}function q0(e,t,n){var r=t.pendingProps,s=Ce.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),we(Ce,s&1),e===null)return ah(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ru(o,r,0,null),e=Ds(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=mh(n),t.memoizedState=ph,e):Wf(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return jS(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ts(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=ts(a,i):(i=Ds(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?mh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=ph,r}return i=e.child,e=i.sibling,r=ts(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wf(e,t){return t=ru({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hl(e,t,n,r){return r!==null&&jf(r),Ji(t,e.child,null,n),e=Wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jS(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=nd(Error(F(422))),hl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=ru({mode:"visible",children:r.children},s,0,null),i=Ds(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ji(t,e.child,null,o),t.child.memoizedState=mh(o),t.memoizedState=ph,i);if(!(t.mode&1))return hl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(F(419)),r=nd(i,r,void 0),hl(e,t,o,r)}if(a=(o&e.childLanes)!==0,Lt||a){if(r=Qe,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,wr(e,s),An(r,e,s,-1))}return Yf(),r=nd(Error(F(421))),hl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=BS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Kt=Qr(s.nextSibling),qt=t,_e=!0,En=null,e!==null&&(nn[rn++]=fr,nn[rn++]=pr,nn[rn++]=Fs,fr=e.id,pr=e.overflow,Fs=t),t=Wf(t,r.children),t.flags|=4096,t)}function zm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lh(e.return,t,n)}
vendor: 5,381 bytes, line 40
40function rd(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function G0(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(bt(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,n,t);else if(e.tag===19)zm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&bc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),rd(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&bc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}rd(t,!0,n,null,i);break;case"together":rd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function br(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$s|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=ts(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ts(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NS(e,t,n){switch(t.tag){case 3:K0(t),Yi();break;case 5:b0(t);break;case 1:Mt(t.type)&&pc(t);break;case 4:Lf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;we(vc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?q0(e,t,n):(we(Ce,Ce.current&1),e=br(e,t,n),e!==null?e.sibling:null);we(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return G0(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),we(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,V0(e,t,n)}return br(e,t,n)}var Y0,gh,J0,Q0;Y0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};gh=function(){};J0=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Cs(Gn.current);var i=null;switch(n){case"input":s=zd(e,s),r=zd(e,r),i=[];break;case"select":s=je({},s,{value:void 0}),r=je({},r,{value:void 0}),i=[];break;case"textarea":s=$d(e,s),r=$d(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hc)}Wd(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Jo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Jo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&xe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Q0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ko(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function RS(e,t,n){var r=t.pendingProps;switch(Af(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return Mt(t.type)&&fc(),ct(t),null;case 3:return r=t.stateNode,Qi(),Se(Dt),Se(mt),Mf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ul(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,En!==null&&(_h(En),En=null))),gh(e,t),ct(t),null;case 5:Df(t);var s=Cs(la.current);
vendor: 29,713 bytes, line 40
40if(n=t.type,e!==null&&t.stateNode!=null)J0(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return ct(t),null}if(e=Cs(Gn.current),ul(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Hn]=t,r[oa]=i,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(s=0;s<Oo.length;s++)xe(Oo[s],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":qp(r,i),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},xe("invalid",r);break;case"textarea":Yp(r,i),xe("invalid",r)}Wd(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&cl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&cl(r.textContent,a,e),s=["children",""+a]):Jo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&xe("scroll",r)}switch(n){case"input":tl(r),Gp(r,i,!0);break;case"textarea":tl(r),Jp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=hc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ey(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Hn]=t,e[oa]=r,Y0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vd(n,r),n){case"dialog":xe("cancel",e),xe("close",e),s=r;break;case"iframe":case"object":case"embed":xe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Oo.length;s++)xe(Oo[s],e);s=r;break;case"source":xe("error",e),s=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),s=r;break;case"details":xe("toggle",e),s=r;break;case"input":qp(e,r),s=zd(e,r),xe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=je({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Yp(e,r),s=$d(e,r),xe("invalid",e);break;default:s=r}Wd(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Ay(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ty(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Qo(e,l):typeof l=="number"&&Qo(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Jo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&xe("scroll",e):l!=null&&ff(e,i,l,o))}switch(n){case"input":tl(e),Gp(e,r,!1);break;case"textarea":tl(e),Jp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ns(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ei(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=hc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ct(t),null;case 6:if(e&&t.stateNode!=null)Q0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=Cs(la.current),Cs(Gn.current),ul(t)){if(r=t.stateNode,n=t.memoizedProps,r[Hn]=t,(i=r.nodeValue!==n)&&(e=qt,e!==null))switch(e.tag){case 3:cl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Hn]=t,t.stateNode=r}return ct(t),null;case 13:if(Se(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_e&&Kt!==null&&t.mode&1&&!(t.flags&128))m0(),Yi(),t.flags|=98560,i=!1;else if(i=ul(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(F(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(F(317));i[Hn]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),i=!1}else En!==null&&(_h(En),En=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?He===0&&(He=3):Yf())),t.updateQueue!==null&&(t.flags|=4),ct(t),null);case 4:return Qi(),gh(e,t),e===null&&sa(t.stateNode.containerInfo),ct(t),null;case 10:return Pf(t.type._context),ct(t),null;case 17:return Mt(t.type)&&fc(),ct(t),null;case 19:if(Se(Ce),i=t.memoizedState,i===null)return ct(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ko(i,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bc(e),o!==null){for(t.flags|=128,ko(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Me()>Zi&&(t.flags|=128,r=!0,ko(i,!1),t.lanes=4194304)}else{if(!r)if(e=bc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ko(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!_e)return ct(t),null}else 2*Me()-i.renderingStartTime>Zi&&n!==1073741824&&(t.flags|=128,r=!0,ko(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Ce.current,we(Ce,r?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return Gf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wt&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function PS(e,t){switch(Af(t),t.tag){case 1:return Mt(t.type)&&fc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(),Se(Dt),Se(mt),Mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(Se(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ce),null;case 4:return Qi(),null;case 10:return Pf(t.type._context),null;case 22:case 23:return Gf(),null;case 24:return null;default:return null}}var fl=!1,pt=!1,OS=typeof WeakSet=="function"?WeakSet:Set,q=null;function ki(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function vh(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var Fm=!1;function IS(e,t){if(eh=cc,e=n0(),Tf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var f;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),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===s&&(a=o),p===i&&++h===r&&(l=o),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(th={focusedElem:e,selectionRange:n},cc=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var m=w.memoizedProps,x=w.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:wn(t.type,m),x);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(S){Ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return w=Fm,Fm=!1,w}function Vo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&vh(t,n,i)}s=s.next}while(s!==r)}}function tu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function X0(e){var t=e.alternate;t!==null&&(e.alternate=null,X0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hn],delete t[oa],delete t[sh],delete t[gS],delete t[vS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Z0(e){return e.tag===5||e.tag===3||e.tag===4}function Um(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hc));else if(r!==4&&(e=e.child,e!==null))for(wh(e,t,n),e=e.sibling;e!==null;)wh(e,t,n),e=e.sibling}function bh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bh(e,t,n),e=e.sibling;e!==null;)bh(e,t,n),e=e.sibling}var Ze=null,_n=!1;function Ar(e,t,n){for(n=n.child;n!==null;)ew(e,t,n),n=n.sibling}function ew(e,t,n){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(qc,n)}catch{}switch(n.tag){case 5:pt||ki(n,t);case 6:var r=Ze,s=_n;Ze=null,Ar(e,t,n),Ze=r,_n=s,Ze!==null&&(_n?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(_n?(e=Ze,n=n.stateNode,e.nodeType===8?Ju(e.parentNode,n):e.nodeType===1&&Ju(e,n),ta(e)):Ju(Ze,n.stateNode));break;case 4:r=Ze,s=_n,Ze=n.stateNode.containerInfo,_n=!0,Ar(e,t,n),Ze=r,_n=s;break;case 0:case 11:case 14:case 15:if(!pt&&(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)&&vh(n,t,o),s=s.next}while(s!==r)}Ar(e,t,n);break;case 1:if(!pt&&(ki(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ie(n,t,a)}Ar(e,t,n);break;case 21:Ar(e,t,n);break;case 22:n.mode&1?(pt=(r=pt)||n.memoizedState!==null,Ar(e,t,n),pt=r):Ar(e,t,n);break;default:Ar(e,t,n)}}function $m(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OS),t.forEach(function(r){var s=WS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ze=a.stateNode,_n=!1;break e;case 3:Ze=a.stateNode.containerInfo,_n=!0;break e;case 4:Ze=a.stateNode.containerInfo,_n=!0;break e}a=a.return}if(Ze===null)throw Error(F(160));ew(i,o,s),Ze=null,_n=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Ie(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tw(t,e),t=t.sibling}function tw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pn(t,e),Mn(e),r&4){try{Vo(3,e,e.return),tu(3,e)}catch(m){Ie(e,e.return,m)}try{Vo(5,e,e.return)}catch(m){Ie(e,e.return,m)}}break;case 1:pn(t,e),Mn(e),r&512&&n!==null&&ki(n,n.return);break;case 5:if(pn(t,e),Mn(e),r&512&&n!==null&&ki(n,n.return),e.flags&32){var s=e.stateNode;try{Qo(s,"")}catch(m){Ie(e,e.return,m)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Sy(s,i),Vd(a,o);var u=Vd(a,i);for(o=0;o<l.length;o+=2){var h=l[o],d=l[o+1];h==="style"?Ay(s,d):h==="dangerouslySetInnerHTML"?Ty(s,d):h==="children"?Qo(s,d):ff(s,h,d,u)}switch(a){case"input":Fd(s,i);break;case"textarea":_y(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Ei(s,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?Ei(s,!!i.multiple,i.defaultValue,!0):Ei(s,!!i.multiple,i.multiple?[]:"",!1))}s[oa]=i}catch(m){Ie(e,e.return,m)}}break;case 6:if(pn(t,e),Mn(e),r&4){if(e.stateNode===null)throw Error(F(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){Ie(e,e.return,m)}}break;case 3:if(pn(t,e),Mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ta(t.containerInfo)}catch(m){Ie(e,e.return,m)}break;case 4:pn(t,e),Mn(e);break;case 13:pn(t,e),Mn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Kf=Me())),r&4&&$m(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(pt=(u=pt)||h,pn(t,e),pt=u):pn(t,e),Mn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(q=e,h=e.child;h!==null;){for(d=q=h;q!==null;){switch(p=q,f=p.child,p.tag){case 0:case 11:case 14:case 15:Vo(4,p,p.return);break;case 1:ki(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(m){Ie(r,n,m)}}break;case 5:ki(p,p.return);break;case 22:if(p.memoizedState!==null){Wm(d);continue}}f!==null?(f.return=p,q=f):Wm(d)}h=h.sibling}e:for(h=null,d=e;;){if(d.tag===5){if(h===null){h=d;try{s=d.stateNode,u?(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=Cy("display",o))}catch(m){Ie(e,e.return,m)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){Ie(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pn(t,e),Mn(e),r&4&&$m(e);break;case 21:break;default:pn(t,e),Mn(e)}}function Mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Z0(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Qo(s,""),r.flags&=-33);var i=Um(e);bh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Um(e);wh(e,a,o);break;default:throw Error(F(161))}}catch(l){Ie(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function LS(e,t,n){q=e,nw(e)}function nw(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var s=q,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||fl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||pt;a=fl;var u=pt;if(fl=o,(pt=l)&&!u)for(q=s;q!==null;)o=q,l=o.child,o.tag===22&&o.memoizedState!==null?Vm(s):l!==null?(l.return=o,q=l):Vm(s);for(;i!==null;)q=i,nw(i),i=i.sibling;q=s,fl=a,pt=u}Bm(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,q=i):Bm(e)}}function Bm(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pt||tu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:wn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Tm(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tm(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&ta(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}pt||t.flags&512&&yh(t)}catch(p){Ie(t,t.return,p)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function Wm(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function Vm(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tu(4,t)}catch(l){Ie(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ie(t,s,l)}}var i=t.return;try{yh(t)}catch(l){Ie(t,i,l)}break;case 5:var o=t.return;try{yh(t)}catch(l){Ie(t,o,l)}}}catch(l){Ie(t,t.return,l)}if(t===e){q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,q=a;break}q=t.return}}var DS=Math.ceil,Sc=Sr.ReactCurrentDispatcher,Vf=Sr.ReactCurrentOwner,on=Sr.ReactCurrentBatchConfig,ce=0,Qe=null,Ue=null,tt=0,Wt=0,Si=us(0),He=0,ha=null,$s=0,nu=0,Hf=0,Ho=null,It=null,Kf=0,Zi=1/0,ar=null,_c=!1,xh=null,Zr=null,pl=!1,Kr=null,Ec=0,Ko=0,kh=null,ql=-1,Gl=0;function kt(){return ce&6?Me():ql!==-1?ql:ql=Me()}function es(e){return e.mode&1?ce&2&&tt!==0?tt&-tt:wS.transition!==null?(Gl===0&&(Gl=Uy()),Gl):(e=me,e!==0||(e=window.event,e=e===void 0?16:qy(e.type)),e):1}function An(e,t,n,r){if(50<Ko)throw Ko=0,kh=null,Error(F(185));Ra(e,n,r),(!(ce&2)||e!==Qe)&&(e===Qe&&(!(ce&2)&&(nu|=n),He===4&&Mr(e,tt)),zt(e,r),n===1&&ce===0&&!(t.mode&1)&&(Zi=Me()+500,Xc&&ds()))}function zt(e,t){var n=e.callbackNode;wk(e,t);var r=lc(e,e===Qe?tt:0);if(r===0)n!==null&&Zp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zp(n),t===1)e.tag===0?yS(Hm.bind(null,e)):h0(Hm.bind(null,e)),pS(function(){!(ce&6)&&ds()}),n=null;else{switch($y(r)){case 1:n=yf;break;case 4:n=zy;break;case 16:n=ac;break;case 536870912:n=Fy;break;default:n=ac}n=uw(n,rw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rw(e,t){if(ql=-1,Gl=0,ce&6)throw Error(F(327));var n=e.callbackNode;if(Ni()&&e.callbackNode!==n)return null;var r=lc(e,e===Qe?tt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tc(e,r);else{t=r;var s=ce;ce|=2;var i=iw();(Qe!==e||tt!==t)&&(ar=null,Zi=Me()+500,Ls(e,t));do try{FS();break}catch(a){sw(e,a)}while(!0);Rf(),Sc.current=i,ce=s,Ue!==null?t=0:(Qe=null,tt=0,t=He)}if(t!==0){if(t===2&&(s=Yd(e),s!==0&&(r=s,t=Sh(e,s))),t===1)throw n=ha,Ls(e,0),Mr(e,r),zt(e,Me()),n;if(t===6)Mr(e,r);else{if(s=e.current.alternate,!(r&30)&&!MS(s)&&(t=Tc(e,r),t===2&&(i=Yd(e),i!==0&&(r=i,t=Sh(e,i))),t===1))throw n=ha,Ls(e,0),Mr(e,r),zt(e,Me()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:ks(e,It,ar);break;case 3:if(Mr(e,r),(r&130023424)===r&&(t=Kf+500-Me(),10<t)){if(lc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){kt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=rh(ks.bind(null,e,It,ar),t);break}ks(e,It,ar);break;case 4:if(Mr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Cn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DS(r/1960))-r,10<r){e.timeoutHandle=rh(ks.bind(null,e,It,ar),r);break}ks(e,It,ar);break;case 5:ks(e,It,ar);break;default:throw Error(F(329))}}}return zt(e,Me()),e.callbackNode===n?rw.bind(null,e):null}function Sh(e,t){var n=Ho;return e.current.memoizedState.isDehydrated&&(Ls(e,t).flags|=256),e=Tc(e,t),e!==2&&(t=It,It=n,t!==null&&_h(t)),e}function _h(e){It===null?It=e:It.push.apply(It,e)}function MS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!jn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mr(e,t){for(t&=~Hf,t&=~nu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Cn(t),r=1<<n;e[n]=-1,t&=~r}}function Hm(e){if(ce&6)throw Error(F(327));Ni();var t=lc(e,0);if(!(t&1))return zt(e,Me()),null;var n=Tc(e,t);if(e.tag!==0&&n===2){var r=Yd(e);r!==0&&(t=r,n=Sh(e,r))}if(n===1)throw n=ha,Ls(e,0),Mr(e,t),zt(e,Me()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ks(e,It,ar),zt(e,Me()),null}function qf(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(Zi=Me()+500,Xc&&ds())}}function Bs(e){Kr!==null&&Kr.tag===0&&!(ce&6)&&Ni();var t=ce;ce|=1;var n=on.transition,r=me;try{if(on.transition=null,me=1,e)return e()}finally{me=r,on.transition=n,ce=t,!(ce&6)&&ds()}}function Gf(){Wt=Si.current,Se(Si)}function Ls(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fS(n)),Ue!==null)for(n=Ue.return;n!==null;){var r=n;switch(Af(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fc();break;case 3:Qi(),Se(Dt),Se(mt),Mf();break;case 5:Df(r);break;case 4:Qi();break;case 13:Se(Ce);break;case 19:Se(Ce);break;case 10:Pf(r.type._context);break;case 22:case 23:Gf()}n=n.return}if(Qe=e,Ue=e=ts(e.current,null),tt=Wt=t,He=0,ha=null,Hf=nu=$s=0,It=Ho=null,Ts!==null){for(t=0;t<Ts.length;t++)if(n=Ts[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Ts=null}return e}function sw(e,t){do{var n=Ue;try{if(Rf(),Vl.current=kc,xc){for(var r=Ae.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}xc=!1}if(Us=0,Je=Ve=Ae=null,Wo=!1,ca=0,Vf.current=null,n===null||n.return===null){He=1,ha=t,Ue=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=tt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,h=a,d=h.tag;if(!(h.mode&1)&&(d===0||d===11||d===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var f=Pm(o);if(f!==null){f.flags&=-257,Om(f,o,a,i,t),f.mode&1&&Rm(i,u,t),t=f,l=u;var w=t.updateQueue;if(w===null){var m=new Set;m.add(l),t.updateQueue=m}else w.add(l);break e}else{if(!(t&1)){Rm(i,u,t),Yf();break e}l=Error(F(426))}}else if(_e&&a.mode&1){var x=Pm(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Om(x,o,a,i,t),jf(Xi(l,a));break e}}i=l=Xi(l,a),He!==4&&(He=2),Ho===null?Ho=[i]:Ho.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=$0(i,l,t);Em(i,v);break e;case 1:a=l;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Zr===null||!Zr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=B0(i,a,t);Em(i,S);break e}}i=i.return}while(i!==null)}aw(n)}catch(_){t=_,Ue===n&&n!==null&&(Ue=n=n.return);continue}break}while(!0)}function iw(){var e=Sc.current;return Sc.current=kc,e===null?kc:e}function Yf(){(He===0||He===3||He===2)&&(He=4),Qe===null||!($s&268435455)&&!(nu&268435455)||Mr(Qe,tt)}function Tc(e,t){var n=ce;ce|=2;var r=iw();(Qe!==e||tt!==t)&&(ar=null,Ls(e,t));do try{zS();break}catch(s){sw(e,s)}while(!0);if(Rf(),ce=n,Sc.current=r,Ue!==null)throw Error(F(261));return Qe=null,tt=0,He}function zS(){for(;Ue!==null;)ow(Ue)}function FS(){for(;Ue!==null&&!uk();)ow(Ue)}function ow(e){var t=cw(e.alternate,e,Wt);e.memoizedProps=e.pendingProps,t===null?aw(e):Ue=t,Vf.current=null}function aw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=PS(n,t),n!==null){n.flags&=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Ue=null;return}}else if(n=RS(n,t,Wt),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);He===0&&(He=5)}function ks(e,t,n){var r=me,s=on.transition;try{on.transition=null,me=1,US(e,t,n,r)}finally{on.transition=s,me=r}return null}function US(e,t,n,r){do Ni();while(Kr!==null);if(ce&6)throw Error(F(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(bk(e,i),e===Qe&&(Ue=Qe=null,tt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pl||(pl=!0,uw(ac,function(){return Ni(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=on.transition,on.transition=null;var o=me;me=1;var a=ce;ce|=4,Vf.current=null,IS(e,n),tw(n,e),oS(th),cc=!!eh,th=eh=null,e.current=n,LS(n),dk(),ce=a,me=o,on.transition=i}else e.current=n;if(pl&&(pl=!1,Kr=e,Ec=s),i=e.pendingLanes,i===0&&(Zr=null),pk(n.stateNode),zt(e,Me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(_c)throw _c=!1,e=xh,xh=null,e;return Ec&1&&e.tag!==0&&Ni(),i=e.pendingLanes,i&1?e===kh?Ko++:(Ko=0,kh=e):Ko=0,ds(),null}function Ni(){if(Kr!==null){var e=$y(Ec),t=on.transition,n=me;try{if(on.transition=null,me=16>e?16:e,Kr===null)var r=!1;else{if(e=Kr,Kr=null,Ec=0,ce&6)throw Error(F(331));var s=ce;for(ce|=4,q=e.current;q!==null;){var i=q,o=i.child;if(q.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(q=u;q!==null;){var h=q;switch(h.tag){case 0:case 11:case 15:Vo(8,h,i)}var d=h.child;if(d!==null)d.return=h,q=d;else for(;q!==null;){h=q;var p=h.sibling,f=h.return;if(X0(h),h===u){q=null;break}if(p!==null){p.return=f,q=p;break}q=f}}}var w=i.alternate;if(w!==null){var m=w.child;if(m!==null){w.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}q=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,q=o;else e:for(;q!==null;){if(i=q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Vo(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,q=v;break e}q=i.return}}var g=e.current;for(q=g;q!==null;){o=q;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,q=y;else e:for(o=g;q!==null;){if(a=q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:tu(9,a)}}catch(_){Ie(a,a.return,_)}if(a===o){q=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,q=S;break e}q=a.return}}if(ce=s,ds(),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(qc,e)}catch{}r=!0}return r}finally{me=n,on.transition=t}}return!1}function Km(e,t,n){t=Xi(n,t),t=$0(e,t,1),e=Xr(e,t,1),t=kt(),e!==null&&(Ra(e,1,t),zt(e,t))}function Ie(e,t,n){if(e.tag===3)Km(e,e,n);else for(;t!==null;){if(t.tag===3){Km(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zr===null||!Zr.has(r))){e=Xi(n,e),e=B0(t,e,1),t=Xr(t,e,1),e=kt(),t!==null&&(Ra(t,1,e),zt(t,e));break}}t=t.return}}function $S(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=kt(),e.pingedLanes|=e.suspendedLanes&n,Qe===e&&(tt&n)===n&&(He===4||He===3&&(tt&130023424)===tt&&500>Me()-Kf?Ls(e,0):Hf|=n),zt(e,t)}function lw(e,t){t===0&&(e.mode&1?(t=sl,sl<<=1,!(sl&130023424)&&(sl=4194304)):t=1);var n=kt();e=wr(e,t),e!==null&&(Ra(e,t,n),zt(e,n))}function BS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lw(e,n)}function WS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),lw(e,n)}var cw;cw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dt.current)Lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Lt=!1,NS(e,t,n);Lt=!!(e.flags&131072)}else Lt=!1,_e&&t.flags&1048576&&f0(t,gc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kl(e,t),e=t.pendingProps;var s=Gi(t,mt.current);ji(t,n),s=Ff(null,t,r,e,s,n);var i=Uf();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(r)?(i=!0,pc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,If(t),s.updater=eu,t.stateNode=s,s._reactInternals=t,uh(t,r,e,n),t=fh(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&Cf(t),bt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=HS(r),e=wn(r,e),s){case 0:t=hh(null,t,r,e,n);break e;case 1:t=Dm(null,t,r,e,n);break e;case 11:t=Im(null,t,r,e,n);break e;case 14:t=Lm(null,t,r,wn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wn(r,s),hh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wn(r,s),Dm(e,t,r,s,n);case 3:e:{if(K0(t),e===null)throw Error(F(387));
vendor: 4,352 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,w0(e,t),wc(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Xi(Error(F(423)),t),t=Mm(e,t,r,n,s);break e}else if(r!==s){s=Xi(Error(F(424)),t),t=Mm(e,t,r,n,s);break e}else for(Kt=Qr(t.stateNode.containerInfo.firstChild),qt=t,_e=!0,En=null,n=v0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yi(),r===s){t=br(e,t,n);break e}bt(e,t,r,n)}t=t.child}return t;case 5:return b0(t),e===null&&ah(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,nh(r,s)?o=null:i!==null&&nh(r,i)&&(t.flags|=32),H0(e,t),bt(e,t,o,n),t.child;case 6:return e===null&&ah(t),null;case 13:return q0(e,t,n);case 4:return Lf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ji(t,null,r,n):bt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wn(r,s),Im(e,t,r,s,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,we(vc,r._currentValue),r._currentValue=o,i!==null)if(jn(i.value,o)){if(i.children===s.children&&!Dt.current){t=br(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=mr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),lh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(F(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),lh(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}bt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,ji(t,n),s=an(s),r=r(s),t.flags|=1,bt(e,t,r,n),t.child;case 14:return r=t.type,s=wn(r,t.pendingProps),s=wn(r.type,s),Lm(e,t,r,s,n);case 15:return W0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wn(r,s),Kl(e,t),t.tag=1,Mt(r)?(e=!0,pc(t)):e=!1,ji(t,n),U0(t,r,s),uh(t,r,s,n),fh(null,t,r,!0,e,n);case 19:return G0(e,t,n);case 22:return V0(e,t,n)}throw Error(F(156,t.tag))};function uw(e,t){return My(e,t)}function VS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(e,t,n,r){return new VS(e,t,n,r)}function Jf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HS(e){if(typeof e=="function")return Jf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===gf)return 14}return 2}function ts(e,t){var n=e.alternate;return n===null?(n=sn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yl(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Jf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case fi:return Ds(n.children,s,i,t);case pf:o=8,s|=8;break;case Id:return e=sn(12,n,t,s|2),e.elementType=Id,e.lanes=i,e;case Ld:return e=sn(13,n,t,s),e.elementType=Ld,e.lanes=i,e;case Dd:return e=sn(19,n,t,s),e.elementType=Dd,e.lanes=i,e;case by:return ru(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yy:o=10;break e;case wy:o=9;break e;
vendor: 4,287 bytes, line 40
40case mf:o=11;break e;case gf:o=14;break e;case Ir:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=sn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Ds(e,t,n,r){return e=sn(7,e,r,t),e.lanes=n,e}function ru(e,t,n,r){return e=sn(22,e,r,t),e.elementType=by,e.lanes=n,e.stateNode={isHidden:!1},e}function sd(e,t,n){return e=sn(6,e,null,t),e.lanes=n,e}function id(e,t,n){return t=sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KS(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fu(0),this.expirationTimes=Fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Qf(e,t,n,r,s,i,o,a,l){return e=new KS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=sn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function qS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function dw(e){if(!e)return rs;e=e._reactInternals;e:{if(Ks(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(Mt(n))return d0(e,n,t)}return t}function hw(e,t,n,r,s,i,o,a,l){return e=Qf(n,r,!0,e,s,i,o,a,l),e.context=dw(null),n=e.current,r=kt(),s=es(n),i=mr(r,s),i.callback=t??null,Xr(n,i,s),e.current.lanes=s,Ra(e,s,r),zt(e,r),e}function su(e,t,n,r){var s=t.current,i=kt(),o=es(s);return n=dw(n),t.context===null?t.context=n:t.pendingContext=n,t=mr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xr(s,t,o),e!==null&&(An(e,s,o,i),Wl(e,s,o)),o}function Cc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function qm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xf(e,t){qm(e,t),(e=e.alternate)&&qm(e,t)}function GS(){return null}var fw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zf(e){this._internalRoot=e}iu.prototype.render=Zf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));su(e,t,null,null)};iu.prototype.unmount=Zf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bs(function(){su(null,e,null,null)}),t[yr]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dr.length&&t!==0&&t<Dr[n].priority;n++);Dr.splice(n,0,e),n===0&&Ky(e)}};function ep(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gm(){}function YS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Cc(o);i.call(u)}}var o=hw(t,r,e,0,null,!1,!1,"",Gm);return e._reactRootContainer=o,e[yr]=o.current,sa(e.nodeType===8?e.parentNode:e),Bs(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Cc(l);a.call(u)}}var l=Qf(e,0,!1,null,null,!1,!1,"",Gm);return e._reactRootContainer=l,e[yr]=l.current,sa(e.nodeType===8?e.parentNode:e),Bs(function(){su(t,l,n,r)}),l}function au(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Cc(o);a.call(l)}}su(t,o,e,s)}else o=YS(n,t,e,s,r);return Cc(o)}By=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Po(t.pendingLanes);
40n!==0&&(wf(t,n|1),zt(t,Me()),!(ce&6)&&(Zi=Me()+500,ds()))}break;case 13:Bs(function(){var r=wr(e,1);if(r!==null){var s=kt();An(r,e,1,s)}}),Xf(e,1)}};bf=function(e){if(e.tag===13){var t=wr(e,134217728);if(t!==null){var n=kt();An(t,e,134217728,n)}Xf(e,134217728)}};Wy=function(e){if(e.tag===13){var t=es(e),n=wr(e,t);if(n!==null){var r=kt();An(n,e,t,r)}Xf(e,t)}};Vy=function(){return me};Hy=function(e,t){var n=me;try{return me=e,t()}finally{me=n}};Kd=function(e,t,n){switch(t){case"input":if(Fd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Qc(r);if(!s)throw Error(F(90));ky(r),Fd(r,s)}}}break;case"textarea":_y(e,n);break;case"select":t=n.value,t!=null&&Ei(e,!!n.multiple,t,!1)}};Ry=qf;Py=Bs;var JS={usingClientEntryPoint:!1,Events:[Oa,vi,Qc,jy,Ny,qf]},So={findFiberByHostInstance:Es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},QS={bundleType:So.bundleType,version:So.version,rendererPackageName:So.rendererPackageName,rendererConfig:So.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ly(e),e===null?null:e.stateNode},findFiberByHostInstance:So.findFiberByHostInstance||GS,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 ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{qc=ml.inject(QS),qn=ml}catch{}}Jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JS;Jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ep(t))throw Error(F(200));return qS(e,t,null,n)};Jt.createRoot=function(e,t){if(!ep(e))throw Error(F(299));var n=!1,r="",s=fw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Qf(e,1,!1,null,null,n,!1,r,s),e[yr]=t.current,sa(e.nodeType===8?e.parentNode:e),new Zf(t)};Jt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=Ly(t),e=e===null?null:e.stateNode,e};Jt.flushSync=function(e){return Bs(e)};Jt.hydrate=function(e,t,n){if(!ou(t))throw Error(F(200));return au(null,e,t,!0,n)};Jt.hydrateRoot=function(e,t,n){if(!ep(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=fw;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=hw(t,null,e,1,n??null,s,!1,i,o),e[yr]=t.current,sa(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new iu(t)};Jt.render=function(e,t,n){if(!ou(t))throw Error(F(200));return au(null,e,t,!1,n)};Jt.unmountComponentAtNode=function(e){if(!ou(e))throw Error(F(40));return e._reactRootContainer?(Bs(function(){au(null,null,e,!1,function(){e._reactRootContainer=null,e[yr]=null})}),!0):!1};Jt.unstable_batchedUpdates=qf;Jt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return au(e,t,n,!1,r)};Jt.version="18.3.1-next-f1338f8080-20240426";function pw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pw)}catch(e){console.error(e)}}pw(),py.exports=Jt;var La=py.exports;const mw=ty(La);var gw,Ym=La;gw=Ym.createRoot,Ym.hydrateRoot;var lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cu=typeof window>"u"||"Deno"in globalThis;function bn(){}function XS(e,t){return typeof e=="function"?e(t):e}function ZS(e){return typeof e=="number"&&e>=0&&e!==1/0}function e_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Eh(e,t){return typeof e=="function"?e(t):e}function t_(e,t){return typeof e=="function"?e(t):e}function Jm(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==tp(o,t.options))return!1}else if(!pa(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Qm(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(fa(t.options.mutationKey)!==fa(i))return!1}else if(!pa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function tp(e,t){return((t==null?void 0:t.queryKeyHashFn)||fa)(e)}function fa(e){return JSON.stringify(e,(t,n)=>Th(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function pa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>pa(e[n],t[n])):!1}function vw(e,t){if(e===t)return e;const n=Xm(e)&&Xm(t);if(n||Th(e)&&Th(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let h=0;h<o;h++){const d=n?h:i[h];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=vw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function Xm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Th(e){if(!Zm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Zm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zm(e){return Object.prototype.toString.call(e)==="[object Object]"}function n_(e){return new Promise(t=>{setTimeout(t,e)})}function r_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vw(e,t):t}function s_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function i_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var np=Symbol();function yw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===np?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var js,Ur,Fi,qv,o_=(qv=class extends lu{constructor(){super();de(this,js);de(this,Ur);de(this,Fi);re(this,Fi,t=>{if(!cu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}
vendor: 20,047 bytes, line 40
40onSubscribe(){D(this,Ur)||this.setEventListener(D(this,Fi))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,Ur))==null||t.call(this),re(this,Ur,void 0))}setEventListener(t){var n;re(this,Fi,t),(n=D(this,Ur))==null||n.call(this),re(this,Ur,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,js)!==t&&(re(this,js,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,js)=="boolean"?D(this,js):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},js=new WeakMap,Ur=new WeakMap,Fi=new WeakMap,qv),ww=new o_,Ui,$r,$i,Gv,a_=(Gv=class extends lu{constructor(){super();de(this,Ui,!0);de(this,$r);de(this,$i);re(this,$i,t=>{if(!cu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,$r)||this.setEventListener(D(this,$i))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,$r))==null||t.call(this),re(this,$r,void 0))}setEventListener(t){var n;re(this,$i,t),(n=D(this,$r))==null||n.call(this),re(this,$r,t(this.setOnline.bind(this)))}setOnline(t){D(this,Ui)!==t&&(re(this,Ui,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,Ui)}},Ui=new WeakMap,$r=new WeakMap,$i=new WeakMap,Gv),Ac=new a_;function l_(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function c_(e){return Math.min(1e3*2**e,3e4)}function bw(e){return(e??"online")==="online"?Ac.isOnline():!0}var xw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function od(e){return e instanceof xw}function kw(e){let t=!1,n=0,r=!1,s;const i=l_(),o=m=>{var x;r||(p(new xw(m)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>ww.isFocused()&&(e.networkMode==="always"||Ac.isOnline())&&e.canRun(),h=()=>bw(e.networkMode)&&e.canRun(),d=m=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,m),s==null||s(),i.resolve(m))},p=m=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,m),s==null||s(),i.reject(m))},f=()=>new Promise(m=>{var x;s=v=>{(r||u())&&m(v)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const x=n===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(d).catch(v=>{var T;if(r)return;const g=e.retry??(cu?0:3),y=e.retryDelay??c_,S=typeof y=="function"?y(n,v):y,_=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!_){p(v);return}n++,(T=e.onFail)==null||T.call(e,n,v),n_(S).then(()=>u()?void 0:f()).then(()=>{t?p(v):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:h,start:()=>(h()?w():f().then(w),i)}}var u_=e=>setTimeout(e,0);function d_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=u_;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var xt=d_(),Ns,Yv,Sw=(Yv=class{constructor(){de(this,Ns)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZS(this.gcTime)&&re(this,Ns,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cu?1/0:5*60*1e3))}clearGcTimeout(){D(this,Ns)&&(clearTimeout(D(this,Ns)),re(this,Ns,void 0))}},Ns=new WeakMap,Yv),Bi,Rs,tn,Ps,ht,Aa,Os,kn,or,Jv,h_=(Jv=class extends Sw{constructor(t){super();de(this,kn);de(this,Bi);de(this,Rs);de(this,tn);de(this,Ps);de(this,ht);de(this,Aa);de(this,Os);re(this,Os,!1),re(this,Aa,t.defaultOptions),this.setOptions(t.options),this.observers=[],re(this,Ps,t.client),re(this,tn,D(this,Ps).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,re(this,Bi,p_(this.options)),this.state=t.state??D(this,Bi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,ht))==null?void 0:t.promise}setOptions(t){this.options={...D(this,Aa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,tn).remove(this)}setData(t,n){const r=r_(this.state.data,t,this.options);return at(this,kn,or).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){at(this,kn,or).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=D(this,ht))==null?void 0:r.promise;return(s=D(this,ht))==null||s.cancel(t),n?n.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,Bi))}isActive(){return this.observers.some(t=>t_(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===np||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Eh(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!e_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,ht))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,ht))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,tn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,ht)&&(D(this,Os)?D(this,ht).cancel({revert:!0}):D(this,ht).cancelRetry()),this.scheduleGc()),D(this,tn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||at(this,kn,or).call(this,{type:"invalidate"})}fetch(t,n){var u,h,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,ht))return D(this,ht).continueRetry(),D(this,ht).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(re(this,Os,!0),r.signal)})},i=()=>{const p=yw(this.options,n),w=(()=>{const m={client:D(this,Ps),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return re(this,Os,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,Ps),state:this.state,fetchFn:i};return s(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),re(this,Rs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&at(this,kn,or).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=p=>{var f,w,m,x;od(p)&&p.silent||at(this,kn,or).call(this,{type:"error",error:p}),od(p)||((w=(f=D(this,tn).config).onError)==null||w.call(f,p,this),(x=(m=D(this,tn).config).onSettled)==null||x.call(m,this.state.data,p,this)),this.scheduleGc()};return re(this,ht,kw({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,w,m,x;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(v){l(v);return}(w=(f=D(this,tn).config).onSuccess)==null||w.call(f,p,this),(x=(m=D(this,tn).config).onSettled)==null||x.call(m,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,f)=>{at(this,kn,or).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{at(this,kn,or).call(this,{type:"pause"})},onContinue:()=>{at(this,kn,or).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),D(this,ht).start()}},Bi=new WeakMap,Rs=new WeakMap,tn=new WeakMap,Ps=new WeakMap,ht=new WeakMap,Aa=new WeakMap,Os=new WeakMap,kn=new WeakSet,or=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...f_(r.data,this.options),fetchMeta:t.meta??null};case"success":return re(this,Rs,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return od(s)&&s.revert&&D(this,Rs)?{...D(this,Rs),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,tn).notify({query:this,type:"updated",action:t})})},Jv);function f_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var $n,Qv,m_=(Qv=class extends lu{constructor(t={}){super();de(this,$n);this.config=t,re(this,$n,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??tp(s,n);let o=this.get(i);return o||(o=new h_({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){D(this,$n).has(t.queryHash)||(D(this,$n).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,$n).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,$n).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,$n).get(t)}getAll(){return[...D(this,$n).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Jm(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$n=new WeakMap,Qv),Bn,wt,Is,Wn,Pr,Xv,g_=(Xv=class extends Sw{constructor(t){super();de(this,Wn);de(this,Bn);de(this,wt);de(this,Is);this.mutationId=t.mutationId,re(this,wt,t.mutationCache),re(this,Bn,[]),this.state=t.state||v_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,Bn).includes(t)||(D(this,Bn).push(t),this.clearGcTimeout(),D(this,wt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){re(this,Bn,D(this,Bn).filter(n=>n!==t)),this.scheduleGc(),D(this,wt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,Bn).length||(this.state.status==="pending"?this.scheduleGc():D(this,wt).remove(this))}continue(){var t;return((t=D(this,Is))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,u,h,d,p,f,w,m,x,v,g,y,S,_,T,C,O;const n=()=>{at(this,Wn,Pr).call(this,{type:"continue"})};re(this,Is,kw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,I)=>{at(this,Wn,Pr).call(this,{type:"failed",failureCount:N,error:I})},onPause:()=>{at(this,Wn,Pr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,wt).canRun(this)}));const r=this.state.status==="pending",s=!D(this,Is).canStart();try{if(r)n();else{at(this,Wn,Pr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=D(this,wt).config).onMutate)==null?void 0:o.call(i,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&at(this,Wn,Pr).call(this,{type:"pending",context:I,variables:t,isPaused:s})}const N=await D(this,Is).start();return await((h=(u=D(this,wt).config).onSuccess)==null?void 0:h.call(u,N,t,this.state.context,this)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,N,t,this.state.context)),await((w=(f=D(this,wt).config).onSettled)==null?void 0:w.call(f,N,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,N,null,t,this.state.context)),at(this,Wn,Pr).call(this,{type:"success",data:N}),N}catch(N){try{throw await((g=(v=D(this,wt).config).onError)==null?void 0:g.call(v,N,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,N,t,this.state.context)),await((T=(_=D(this,wt).config).onSettled)==null?void 0:T.call(_,void 0,N,this.state.variables,this.state.context,this)),await((O=(C=this.options).onSettled)==null?void 0:O.call(C,void 0,N,t,this.state.context)),N}finally{at(this,Wn,Pr).call(this,{type:"error",error:N})}}finally{D(this,wt).runNext(this)}}},Bn=new WeakMap,wt=new WeakMap,Is=new WeakMap,Wn=new WeakSet,Pr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{D(this,Bn).forEach(r=>{r.onMutationUpdate(t)}),D(this,wt).notify({mutation:this,type:"updated",action:t})})},Xv);function v_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hr,Sn,ja,Zv,y_=(Zv=class extends lu{constructor(t={}){super();de(this,hr);de(this,Sn);de(this,ja);this.config=t,re(this,hr,new Set),re(this,Sn,new Map),re(this,ja,0)}build(t,n,r){const s=new g_({mutationCache:this,mutationId:++Xa(this,ja)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){D(this,hr).add(t);const n=gl(t);if(typeof n=="string"){const r=D(this,Sn).get(n);r?r.push(t):D(this,Sn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,hr).delete(t)){const n=gl(t);if(typeof n=="string"){const r=D(this,Sn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&D(this,Sn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=gl(t);if(typeof n=="string"){const r=D(this,Sn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=gl(t);if(typeof n=="string"){const s=(r=D(this,Sn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{D(this,hr).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,hr).clear(),D(this,Sn).clear()})}getAll(){return Array.from(D(this,hr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qm(n,r))}findAll(t={}){return this.getAll().filter(n=>Qm(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(bn))))}},hr=new WeakMap,Sn=new WeakMap,ja=new WeakMap,Zv);function gl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function eg(e){return{onFetch:(t,n)=>{var h,d,p,f,w;const r=t.options,s=(p=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=yw(t.options,t.fetchOptions),g=async(y,S,_)=>{if(m)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const C=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return x(B),B})(),O=await v(C),{maxPages:N}=t.options,I=_?i_:s_;return{pages:I(y.pages,O,N),pageParams:I(y.pageParams,S,N)}};if(s&&i.length){const y=s==="backward",S=y?w_:tg,_={pages:i,pageParams:o},T=S(r,_);a=await g(_,T,y)}else{const y=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:tg(r,a);if(l>0&&S==null)break;a=await g(a,S),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function tg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function w_(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Re,Br,Wr,Wi,Vi,Vr,Hi,Ki,ey,b_=(ey=class{constructor(e={}){de(this,Re);de(this,Br);de(this,Wr);de(this,Wi);de(this,Vi);de(this,Vr);de(this,Hi);de(this,Ki);re(this,Re,e.queryCache||new m_),re(this,Br,e.mutationCache||new y_),re(this,Wr,e.defaultOptions||{}),re(this,Wi,new Map),re(this,Vi,new Map),re(this,Vr,0)}mount(){Xa(this,Vr)._++,D(this,Vr)===1&&(re(this,Hi,ww.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Re).onFocus())})),re(this,Ki,Ac.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Re).onOnline())})))}unmount(){var e,t;Xa(this,Vr)._--,D(this,Vr)===0&&((e=D(this,Hi))==null||e.call(this),re(this,Hi,void 0),(t=D(this,Ki))==null||t.call(this),re(this,Ki,void 0))}isFetching(e){return D(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,Br).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Re).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,Re).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Eh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,Re).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=D(this,Re).get(r.queryHash),i=s==null?void 0:s.state.data,o=XS(t,i);if(o!==void 0)return D(this,Re).build(this,r).setData(o,{...n,manual:!0})}
40setQueriesData(e,t,n){return xt.batch(()=>D(this,Re).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Re).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,Re);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,Re);return xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xt.batch(()=>D(this,Re).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(bn).catch(bn)}invalidateQueries(e,t={}){return xt.batch(()=>(D(this,Re).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xt.batch(()=>D(this,Re).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(bn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(bn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,Re).build(this,t);return n.isStaleByTime(Eh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bn).catch(bn)}fetchInfiniteQuery(e){return e.behavior=eg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bn).catch(bn)}ensureInfiniteQueryData(e){return e.behavior=eg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ac.isOnline()?D(this,Br).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Re)}getMutationCache(){return D(this,Br)}getDefaultOptions(){return D(this,Wr)}setDefaultOptions(e){re(this,Wr,e)}setQueryDefaults(e,t){D(this,Wi).set(fa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,Wi).values()],n={};return t.forEach(r=>{pa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,Vi).set(fa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,Vi).values()],n={};return t.forEach(r=>{pa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,Wr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=tp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===np&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,Wr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Re).clear(),D(this,Br).clear()}},Re=new WeakMap,Br=new WeakMap,Wr=new WeakMap,Wi=new WeakMap,Vi=new WeakMap,Vr=new WeakMap,Hi=new WeakMap,Ki=new WeakMap,ey),x_=b.createContext(void 0),k_=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(x_.Provider,{value:e,children:t}));/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jc.apply(this,arguments)}var qr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qr||(qr={}));const ng="popstate";function S_(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Ch("",{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:Ew(s)}return E_(t,n,null,e)}function Ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _w(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function __(){return Math.random().toString(36).substr(2,8)}function rg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ch(e,t,n,r){return n===void 0&&(n=null),jc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uu(t):t,{state:n,key:t&&t.key||r||__()})}function Ew(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function uu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function E_(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=qr.Pop,l=null,u=h();u==null&&(u=0,o.replaceState(jc({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function d(){a=qr.Pop;
vendor: 3,517 bytes, line 49
49let x=h(),v=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:v})}function p(x,v){a=qr.Push;let g=Ch(m.location,x,v);u=h()+1;let y=rg(g,u),S=m.createHref(g);try{o.pushState(y,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(S)}i&&l&&l({action:a,location:m.location,delta:1})}function f(x,v){a=qr.Replace;let g=Ch(m.location,x,v);u=h();let y=rg(g,u),S=m.createHref(g);o.replaceState(y,"",S),i&&l&&l({action:a,location:m.location,delta:0})}function w(x){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof x=="string"?x:Ew(x);return g=g.replace(/ $/,"%20"),Ft(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return a},get location(){return e(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(ng,d),l=x,()=>{s.removeEventListener(ng,d),l=null}},createHref(x){return t(s,x)},createURL:w,encodeLocation(x){let v=w(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:f,go(x){return o.go(x)}};return m}var sg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sg||(sg={}));function T_(e,t,n){return n===void 0&&(n="/"),C_(e,t,n,!1)}function C_(e,t,n,r){let s=typeof t=="string"?uu(t):t,i=Aw(s.pathname||"/",n);if(i==null)return null;let o=Tw(e);A_(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=F_(i);a=M_(o[l],u,r)}return a}function Tw(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ri([r,l.relativePath]),h=n.concat(l);i.children&&i.children.length>0&&(Ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Tw(i.children,t,h,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:L_(u,i.index),routesMeta:h})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Cw(i.path))s(i,o,l)}),t}function Cw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Cw(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function A_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const j_=/^:[\w-]+$/,N_=3,R_=2,P_=1,O_=10,I_=-2,ig=e=>e==="*";function L_(e,t){let n=e.split("/"),r=n.length;return n.some(ig)&&(r+=I_),t&&(r+=R_),n.filter(s=>!ig(s)).reduce((s,i)=>s+(j_.test(i)?N_:i===""?P_:O_),r)}function D_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function M_(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,h=i==="/"?t:t.slice(i.length)||"/",d=og({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=og({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!d)return null;
vendor: 4,131 bytes, lines 49-58
49Object.assign(s,d.params),o.push({params:s,pathname:Ri([i,d.pathname]),pathnameBase:U_(Ri([i,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(i=Ri([i,d.pathnameBase]))}return o}function og(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=z_(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,h,d)=>{let{paramName:p,isOptional:f}=h;if(p==="*"){let m=a[d]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const w=a[d];return f&&!w?u[p]=void 0:u[p]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function z_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_w(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function F_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _w(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Aw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Ri=e=>e.join("/").replace(/\/\/+/g,"/"),U_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function $_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jw=["post","put","patch","delete"];new Set(jw);const B_=["get",...jw];new Set(B_);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nc.apply(this,arguments)}const W_=b.createContext(null),V_=b.createContext(null),Nw=b.createContext(null),du=b.createContext(null),hu=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Rw=b.createContext(null);function rp(){return b.useContext(du)!=null}function sp(){return rp()||Ft(!1),b.useContext(du).location}function H_(e,t){return K_(e,t)}function K_(e,t,n,r){rp()||Ft(!1);let{navigator:s}=b.useContext(Nw),{matches:i}=b.useContext(hu),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=sp(),h;if(t){var d;let x=typeof t=="string"?uu(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ft(!1),h=x}else h=u;let p=h.pathname||"/",f=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=T_(e,{pathname:f}),m=Q_(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ri([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ri([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&m?b.createElement(du.Provider,{value:{location:Nc({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:qr.Pop}},m):m}function q_(){let e=tE(),t=$_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
58Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const G_=b.createElement(q_,null);class Y_ extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(hu.Provider,{value:this.props.routeContext},b.createElement(Rw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J_(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(W_);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(hu.Provider,{value:t},r)}function Q_(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let h=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);h>=0||Ft(!1),o=o.slice(0,Math.min(o.length,h+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<o.length;h++){let d=o[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=h),d.route.id){let{loaderData:p,errors:f}=n,w=d.route.loader&&p[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||w){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((h,d,p)=>{let f,w=!1,m=null,x=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||G_,l&&(u<0&&p===0?(w=!0,x=null):u===p&&(w=!0,x=d.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,p+1)),g=()=>{let y;return f?y=m:w?y=x:d.route.Component?y=b.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=h,b.createElement(J_,{match:d,routeContext:{outlet:h,matches:v,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?b.createElement(Y_,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Ah=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ah||{});function X_(e){let t=b.useContext(V_);return t||Ft(!1),t}function Z_(e){let t=b.useContext(hu);return t||Ft(!1),t}function eE(e){let t=Z_(),n=t.matches[t.matches.length-1];return n.route.id||Ft(!1),n.route.id}function tE(){var e;let t=b.useContext(Rw),n=X_(Ah.UseRouteError),r=eE(Ah.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function nE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ai(e){Ft(!1)}function rE(e){let{basename:t="/",children:n=null,location:r,navigationType:s=qr.Pop,navigator:i,static:o=!1,future:a}=e;rp()&&Ft(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:i,static:o,future:Nc({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=uu(r));let{pathname:h="/",search:d="",hash:p="",state:f=null,key:w="default"}=r,m=b.useMemo(()=>{let x=Aw(h,l);return x==null?null:{location:{pathname:x,search:d,hash:p,state:f,key:w},navigationType:s}},[l,h,d,p,f,w,s]);return m==null?null:b.createElement(Nw.Provider,{value:u},b.createElement(du.Provider,{children:n,value:m}))}function sE(e){let{children:t,location:n}=e;return H_(jh(t),n)}new Promise(()=>{});
58function jh(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,s)=>{if(!b.isValidElement(r))return;let i=[...t,s];if(r.type===b.Fragment){n.push.apply(n,jh(r.props.children,i));return}r.type!==ai&&Ft(!1),!r.props.index||!r.props.children||Ft(!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=jh(r.props.children,i)),n.push(o)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */const iE="6";try{window.__reactRouterVersion=iE}catch{}const oE="startTransition",ag=hy[oE];function aE(e){let{basename:t,children:n,future:r,window:s}=e,i=b.useRef();i.current==null&&(i.current=S_({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},h=b.useCallback(d=>{u&&ag?ag(()=>l(d)):l(d)},[l,u]);return b.useLayoutEffect(()=>o.listen(h),[o,h]),b.useEffect(()=>nE(r),[r]),b.createElement(rE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var lg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lg||(lg={}));var cg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cg||(cg={}));var ug=["light","dark"],lE="(prefers-color-scheme: dark)",cE=b.createContext(void 0),uE={setTheme:e=>{},themes:[]},dE=()=>{var e;return(e=b.useContext(cE))!=null?e:uE};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",h=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?ug.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(w,m=!1,x=!0)=>{let v=o?o[w]:w,g=m?w+"|| ''":`'${v}'`,y="";return s&&x&&!m&&ug.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),n==="class"?m||v?y+=`c.add(${g})`:y+="null":v&&(y+=`d[s](n,${g})`),y},f=e?`!function(){${h}${p(e)}}()`:r?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${lE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${u?"":"else{"+p(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var hE=e=>{switch(e){case"success":return mE;case"info":return vE;case"warning":return gE;case"error":return yE;default:return null}},fE=Array(12).fill(0),pE=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},fE.map((n,r)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),mE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.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"})),gE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
67currentColor",height:"20",width:"20"},$.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"})),vE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.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"})),yE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.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"})),wE=$.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"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),bE=()=>{let[e,t]=$.useState(document.hidden);return $.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Nh=1,xE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Nh++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
67this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],$.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(SE(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,h=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:h})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,h=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:h})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,h=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:h})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Nh++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ot=new xE,kE=(e,t)=>{let n=(t==null?void 0:t.id)||Nh++;return Ot.addToast({title:e,...t,id:n}),n},SE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",_E=kE,EE=()=>Ot.toasts,TE=()=>Ot.getActiveToasts(),ft=Object.assign(_E,{success:Ot.success,info:Ot.info,warning:Ot.warning,error:Ot.error,custom:Ot.custom,message:Ot.message,promise:Ot.promise,dismiss:Ot.dismiss,loading:Ot.loading},{getHistory:EE,getToasts:TE});function CE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}CE(`: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;
67left: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}
67: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%);
67--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%)} 68`);function vl(e){return e.label!==void 0}var AE=3,jE="32px",NE="16px",dg=4e3,RE=356,PE=14,OE=20,IE=200;function mn(...e){return e.filter(Boolean).join(" ")}function LE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var DE=e=>{var t,n,r,s,i,o,a,l,u,h,d;let{invert:p,toast:f,unstyled:w,interacting:m,setHeights:x,visibleToasts:v,heights:g,index:y,toasts:S,expanded:_,removeToast:T,defaultRichColors:C,closeButton:O,style:N,cancelButtonStyle:I,actionButtonStyle:B,className:P="",descriptionClassName:H="",duration:E,position:G,gap:j,loadingIcon:L,expandByDefault:R,classNames:M,icons:V,
68closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:X}=e,[oe,J]=$.useState(null),[Ne,qe]=$.useState(null),[ue,_r]=$.useState(!1),[On,Zn]=$.useState(!1),[cn,Er]=$.useState(!1),[un,fe]=$.useState(!1),[fs,pe]=$.useState(!1),[ps,st]=$.useState(0),[Xt,uo]=$.useState(0),Tt=$.useRef(f.duration||E||dg),ho=$.useRef(null),dn=$.useRef(null),$a=y===0,Ba=y+1<=v,Le=f.type,Ct=f.dismissible!==!1,er=f.className||"",fo=f.descriptionClassName||"",tr=$.useMemo(()=>g.findIndex(te=>te.toastId===f.id)||0,[g,f.id]),qs=$.useMemo(()=>{var te;return(te=f.closeButton)!=null?te:O},[f.closeButton,O]),Gs=$.useMemo(()=>f.duration||E||dg,[f.duration,E]),In=$.useRef(0),hn=$.useRef(0),ms=$.useRef(0),nr=$.useRef(null),[Wa,Va]=G.split("-"),Ys=$.useMemo(()=>g.reduce((te,he,ge)=>ge>=tr?te:te+he.height,0),[g,tr]),Js=bE(),Tr=f.invert||p,Ln=Le==="loading";hn.current=$.useMemo(()=>tr*j+Ys,[tr,Ys]),$.useEffect(()=>{Tt.current=Gs},[Gs]),$.useEffect(()=>{_r(!0)},[]),$.useEffect(()=>{let te=dn.current;if(te){let he=te.getBoundingClientRect().height;return uo(he),x(ge=>[{toastId:f.id,height:he,position:f.position},...ge]),()=>x(ge=>ge.filter(it=>it.toastId!==f.id))}},[x,f.id]),$.useLayoutEffect(()=>{if(!ue)return;let te=dn.current,he=te.style.height;te.style.height="auto";let ge=te.getBoundingClientRect().height;te.style.height=he,uo(ge),x(it=>it.find(ot=>ot.toastId===f.id)?it.map(ot=>ot.toastId===f.id?{...ot,height:ge}:ot):[{toastId:f.id,height:ge,position:f.position},...it])},[ue,f.title,f.description,x,f.id]);let fn=$.useCallback(()=>{Zn(!0),st(hn.current),x(te=>te.filter(he=>he.toastId!==f.id)),setTimeout(()=>{T(f)},IE)},[f,T,x,hn]);$.useEffect(()=>{if(f.promise&&Le==="loading"||f.duration===1/0||f.type==="loading")return;let te;return _||m||X&&Js?(()=>{if(ms.current<In.current){let he=new Date().getTime()-In.current;Tt.current=Tt.current-he}ms.current=new Date().getTime()})():Tt.current!==1/0&&(In.current=new Date().getTime(),te=setTimeout(()=>{var he;(he=f.onAutoClose)==null||he.call(f,f),fn()},Tt.current)),()=>clearTimeout(te)},[_,m,f,Le,X,Js,fn]),$.useEffect(()=>{f.delete&&fn()},[fn,f.delete]);function Ha(){var te,he,ge;return V!=null&&V.loading?$.createElement("div",{className:mn(M==null?void 0:M.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Le==="loading"},V.loading):L?$.createElement("div",{className:mn(M==null?void 0:M.loader,(he=f==null?void 0:f.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":Le==="loading"},L):$.createElement(pE,{className:mn(M==null?void 0:M.loader,(ge=f==null?void 0:f.classNames)==null?void 0:ge.loader),visible:Le==="loading"})}return $.createElement("li",{tabIndex:0,ref:dn,className:mn(P,er,M==null?void 0:M.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[Le],(n=f==null?void 0:f.classNames)==null?void 0:n[Le]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":ue,"data-promise":!!f.promise,"data-swiped":fs,"data-removed":On,"data-visible":Ba,"data-y-position":Wa,"data-x-position":Va,"data-index":y,"data-front":$a,"data-swiping":cn,"data-dismissible":Ct,"data-type":Le,"data-invert":Tr,"data-swipe-out":un,"data-swipe-direction":Ne,"data-expanded":!!(_||R&&ue),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${On?ps:hn.current}px`,"--initial-height":R?"auto":`${Xt}px`,...N,...f.style},onDragEnd:()=>{Er(!1),J(null),nr.current=null},onPointerDown:te=>{Ln||!Ct||(ho.current=new Date,st(hn.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(Er(!0),nr.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,he,ge,it;if(un||!Ct)return;nr.current=null;let ot=Number(((te=dn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),We=Number(((he=dn.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),At=new Date().getTime()-((ge=ho.current)==null?void 0:ge.getTime()),vt=oe==="x"?ot:We,Zt=Math.abs(vt)/At;if(Math.abs(vt)>=OE||Zt>.11){st(hn.current),(it=f.onDismiss)==null||it.call(f,f),qe(oe==="x"?ot>0?"right":"left":We>0?"down":"up"),fn(),fe(!0),pe(!1);return}Er(!1),J(null)},onPointerMove:te=>{var he,ge,it,ot;if(!nr.current||!Ct||((he=window.getSelection())==null?void 0:he.toString().length)>0)return;let We=te.clientY-nr.current.y,At=te.clientX-nr.current.x,vt=(ge=e.swipeDirections)!=null?ge:LE(G);!oe&&(Math.abs(At)>1||Math.abs(We)>1)&&J(Math.abs(At)>Math.abs(We)?"x":"y");let Zt={x:0,y:0};oe==="y"?(vt.includes("top")||vt.includes("bottom"))&&(vt.includes("top")&&We
68<0||vt.includes("bottom")&&We>0)&&(Zt.y=We):oe==="x"&&(vt.includes("left")||vt.includes("right"))&&(vt.includes("left")&&At<0||vt.includes("right")&&At>0)&&(Zt.x=At),(Math.abs(Zt.x)>0||Math.abs(Zt.y)>0)&&pe(!0),(it=dn.current)==null||it.style.setProperty("--swipe-amount-x",`${Zt.x}px`),(ot=dn.current)==null||ot.style.setProperty("--swipe-amount-y",`${Zt.y}px`)}},qs&&!f.jsx?$.createElement("button",{"aria-label":ne,"data-disabled":Ln,"data-close-button":!0,onClick:Ln||!Ct?()=>{}:()=>{var te;fn(),(te=f.onDismiss)==null||te.call(f,f)},className:mn(M==null?void 0:M.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=V==null?void 0:V.close)!=null?i:wE):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:$.createElement($.Fragment,null,Le||f.icon||f.promise?$.createElement("div",{"data-icon":"",className:mn(M==null?void 0:M.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ha():null,f.type!=="loading"?f.icon||(V==null?void 0:V[Le])||hE(Le):null):null,$.createElement("div",{"data-content":"",className:mn(M==null?void 0:M.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},$.createElement("div",{"data-title":"",className:mn(M==null?void 0:M.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?$.createElement("div",{"data-description":"",className:mn(H,fo,M==null?void 0:M.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),b.isValidElement(f.cancel)?f.cancel:f.cancel&&vl(f.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||I,onClick:te=>{var he,ge;vl(f.cancel)&&Ct&&((ge=(he=f.cancel).onClick)==null||ge.call(he,te),fn())},className:mn(M==null?void 0:M.cancelButton,(h=f==null?void 0:f.classNames)==null?void 0:h.cancelButton)},f.cancel.label):null,b.isValidElement(f.action)?f.action:f.action&&vl(f.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:te=>{var he,ge;vl(f.action)&&((ge=(he=f.action).onClick)==null||ge.call(he,te),!te.defaultPrevented&&fn())},className:mn(M==null?void 0:M.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function hg(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ME(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?NE:jE;function l(u){["top","right","bottom","left"].forEach(h=>{n[`${o}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var zE=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:h="light",richColors:d,duration:p,style:f,visibleToasts:w=AE,toastOptions:m,dir:x=hg(),gap:v=PE,loadingIcon:g,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:_}=e,[T,C]=$.useState([]),O=$.useMemo(()=>Array.from(new Set([r].concat(T.filter(X=>X.position).map(X=>X.position)))),[T,r]),[N,I]=$.useState([]),[B,P]=$.useState(!1),[H,E]=$.useState(!1),[G,j]=$.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=$.useRef(null),R=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=$.useRef(null),V=$.useRef(!1),ne=$.useCallback(X=>{C(oe=>{var J;return(J=oe.find(Ne=>Ne.id===X.id))!=null&&J.delete||Ot.dismiss(X.id),oe.filter(({id:Ne})=>Ne!==X.id)})},[]);return $.useEffect(()=>Ot.subscribe(X=>{if(X.dismiss){C(oe=>oe.map(J=>J.id===X.id?{...J,delete:!0}:J));return}setTimeout(()=>{mw.flushSync(()=>{C(oe=>{let J=oe.findIndex(Ne=>Ne.id===X.id);return J!==-1?[...oe.slice(0,J),{...oe[J],...X},...oe.slice(J+1)]:[X,...oe]})})})}),[]),$.useEffect(()=>{if(h!=="system"){j(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;let X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:oe})=>{j(oe?"dark":"light")})}catch{X.addListener(({matches:J})=>{try{j(J?"dark":"light")}catch(Ne){console.error(Ne)}})}},[h]),$.useEffect(()=>{T.length<=1&&P(!1)},[T]),$.useEffect(()=>{let X=oe=>{var J,Ne;s.every(qe=>oe[qe]||oe.code===qe)&&(P(!0),(J=L.current)==null||J.focus()),oe.code==="Escape"&&(document.activeElement===L.current||(Ne=L.current)!=null&&Ne.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[s]),$.useEffect(()=>{if(L.current)return()=>
68{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,V.current=!1)}},[L.current]),$.createElement("section",{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((X,oe)=>{var J;let[Ne,qe]=X.split("-");return T.length?$.createElement("ol",{key:X,dir:x==="auto"?hg():x,tabIndex:-1,ref:L,className:a,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":Ne,"data-lifted":B&&T.length>1&&!i,"data-x-position":qe,style:{"--front-toast-height":`${((J=N[0])==null?void 0:J.height)||0}px`,"--width":`${RE}px`,"--gap":`${v}px`,...f,...ME(l,u)},onBlur:ue=>{V.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(V.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||V.current||(V.current=!0,M.current=ue.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{H||P(!1)},onDragEnd:()=>P(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||E(!0)},onPointerUp:()=>E(!1)},T.filter(ue=>!ue.position&&oe===0||ue.position===X).map((ue,_r)=>{var On,Zn;return $.createElement(DE,{key:ue.id,icons:y,index:_r,toast:ue,defaultRichColors:d,duration:(On=m==null?void 0:m.duration)!=null?On:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Zn=m==null?void 0:m.closeButton)!=null?Zn:o,interacting:H,position:X,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:ne,toasts:T.filter(cn=>cn.position==ue.position),heights:N.filter(cn=>cn.position==ue.position),setHeights:I,expandByDefault:i,gap:v,loadingIcon:g,expanded:B,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const FE=({...e})=>{const{theme:t="system"}=dE();return c.jsx(zE,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},UE=1,$E=1e6;let ad=0;function BE(){return ad=(ad+1)%Number.MAX_SAFE_INTEGER,ad.toString()}const ld=new Map,fg=e=>{if(ld.has(e))return;const t=setTimeout(()=>{ld.delete(e),qo({type:"REMOVE_TOAST",toastId:e})},$E);ld.set(e,t)},WE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,UE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?fg(n):e.toasts.forEach(r=>{fg(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Jl=[];let Ql={toasts:[]};function qo(e){Ql=WE(Ql,e),Jl.forEach(t=>{t(Ql)})}function VE({...e}){const t=BE(),n=s=>qo({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>qo({type:"DISMISS_TOAST",toastId:t});return qo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function HE(){const[e,t]=b.useState(Ql);return b.useEffect(()=>(Jl.push(t),()=>{const n=Jl.indexOf(t);n>-1&&Jl.splice(n,1)}),[e]),{...e,toast:VE,dismiss:n=>qo({type:"DISMISS_TOAST",toastId:n})}}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function pg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pw(...e){return t=>{let n=!1;const r=e.map(s=>{const i=pg(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():pg(e[s],null)}}}}function St(...e){return b.useCallback(Pw(...e),e)}function KE(e,t){const n=b.createContext(t),r=i=>{const{children:o,...a}=i,l=b.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=b.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Da(e,t=[]){let n=[];function r(i,o){const a=b.createContext(o),l=n.length;n=[...n,o];const u=d=>{var v;const{scope:p,children:f,...w}=d,m=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,x=b.useMemo(()=>w,Object.values(w));return c.jsx(m.Provider,{value:x,children:f})};u.displayName=i+"Provider";function h(d,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,w=b.useContext(f);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,h]}const s=()=>{const i=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,qE(s,...t)]}function qE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ma(e){const t=YE(e),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find(QE);if(l){const u=l.props.children,h=a.map(d=>d===l?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:d);return c.jsx(t,{...o,ref:s,children:b.isValidElement(u)?b.cloneElement(u,void 0,h):null})}return c.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var GE=ma("Slot");function YE(e){const t=b.forwardRef((n,r)=>{const{children:s,...i}=n;
vendor: 9,982 bytes, line 68
68if(b.isValidElement(s)){const o=ZE(s),a=XE(i,s.props);return s.type!==b.Fragment&&(a.ref=r?Pw(r,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ow=Symbol("radix.slottable");function JE(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ow,t}function QE(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ow}function XE(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function ZE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function eT(e){const t=e+"CollectionProvider",[n,r]=Da(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:v}=m,g=$.useRef(null),y=$.useRef(new Map).current;return c.jsx(s,{scope:x,itemMap:y,collectionRef:g,children:v})};o.displayName=t;const a=e+"CollectionSlot",l=ma(a),u=$.forwardRef((m,x)=>{const{scope:v,children:g}=m,y=i(a,v),S=St(x,y.collectionRef);return c.jsx(l,{ref:S,children:g})});u.displayName=a;const h=e+"CollectionItemSlot",d="data-radix-collection-item",p=ma(h),f=$.forwardRef((m,x)=>{const{scope:v,children:g,...y}=m,S=$.useRef(null),_=St(x,S),T=i(h,v);return $.useEffect(()=>(T.itemMap.set(S,{ref:S,...y}),()=>void T.itemMap.delete(S))),c.jsx(p,{[d]:"",ref:_,children:g})});f.displayName=h;function w(m){const x=i(e+"CollectionConsumer",m);return $.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((T,C)=>y.indexOf(T.ref.current)-y.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:f},w,r]}var tT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=tT.reduce((e,t)=>{const n=ma(`Primitive.${t}`),r=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Iw(e,t){e&&La.flushSync(()=>e.dispatchEvent(t))}function Yn(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nT(e,t=globalThis==null?void 0:globalThis.document){const n=Yn(e);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var rT="DismissableLayer",Rh="dismissableLayer.update",sT="dismissableLayer.pointerDownOutside",iT="dismissableLayer.focusOutside",mg,Lw=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fu=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=b.useContext(Lw),[h,d]=b.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),w=St(t,C=>d(C)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(x),g=h?m.indexOf(h):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=v,_=aT(C=>{const O=C.target,N=[...u.branches].some(I=>I.contains(O));!S||N||(s==null||s(C),o==null||o(C),C.defaultPrevented||a==null||a())},p),T=lT(C=>{const O=C.target;[...u.branches].some(I=>I.contains(O))||(i==null||i(C),o==null||o(C),C.defaultPrevented||a==null||a())},p);return nT(C=>{g===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},p),b.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mg=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),gg(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=mg)}},[h,p,n,u]),b.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),gg())},[h,u]),b.useEffect(()=>{const C=()=>f({});return document.addEventListener(Rh,C),()=>document.removeEventListener(Rh,C)},[]),c.jsx(Be.div,{...l,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,_.onPointerDownCapture)})});fu.displayName=rT;var oT="DismissableLayerBranch",Dw=b.forwardRef((e,t)=>{const n=b.useContext(Lw),r=b.useRef(null),s=St(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(Be.div,{...e,ref:s})});Dw.displayName=oT;function aT(e,t=globalThis==null?void 0:globalThis.document){const n=Yn(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Mw(sT,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lT(e,t=globalThis==null?void 0:globalThis.document){const n=Yn(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&Mw(iT,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gg(){const e=new CustomEvent(Rh);document.dispatchEvent(e)}function Mw(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Iw(s,i):s.dispatchEvent(i)}var cT=fu,uT=Dw,ss=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},dT="Portal",ip=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=b.useState(!1);ss(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?mw.createPortal(c.jsx(Be.div,{...r,ref:t}),o):null});ip.displayName=dT;function hT(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var io=e=>{const{present:t,children:n}=e,r=fT(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=St(r.ref,pT(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};io.displayName="Presence";function fT(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=hT(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=yl(r.current);i.current=a==="mounted"?u:"none"},[a]),ss(()=>{const u=r.current,h=s.current;if(h!==e){const p=i.current,f=yl(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),ss(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,d=f=>{const m=yl(r.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=f=>{f.target===t&&(i.current=yl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function yl(e){return(e==null?void 0:e.animationName)||"none"}function pT(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mT=hy[" useInsertionEffect ".trim().toString()]||ss;function gT({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=vT({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const h=b.useRef(e!==void 0);b.useEffect(()=>{const d=h.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.`),h.current=a},[a,r])}const u=b.useCallback(h=>{var d;if(a){const p=yT(h)?h(e):h;p!==e&&((d=o.current)==null||d.call(o,p))}else i(h)},[a,e,i,o]);return[l,u]}function vT({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),i=b.useRef(t);return mT(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function yT(e){return typeof e=="function"}var wT=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"}),bT="VisuallyHidden",pu=b.forwardRef((e,t)=>
68c.jsx(Be.span,{...e,ref:t,style:{...wT,...e.style}}));pu.displayName=bT;var xT=pu,op="ToastProvider",[ap,kT,ST]=eT("Toast"),[zw,qI]=Da("Toast",[ST]),[_T,mu]=zw(op),Fw=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=b.useState(null),[u,h]=b.useState(0),d=b.useRef(!1),p=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${op}\`. Expected non-empty \`string\`.`),c.jsx(ap.Provider,{scope:t,children:c.jsx(_T,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>h(f=>f+1),[]),onToastRemove:b.useCallback(()=>h(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:o})})};Fw.displayName=op;var Uw="ToastViewport",ET=["F8"],Ph="toast.viewportPause",Oh="toast.viewportResume",$w=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ET,label:s="Notifications ({hotkey})",...i}=e,o=mu(Uw,n),a=kT(n),l=b.useRef(null),u=b.useRef(null),h=b.useRef(null),d=b.useRef(null),p=St(t,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;b.useEffect(()=>{const x=v=>{var y;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,v=d.current;if(w&&x&&v){const g=()=>{if(!o.isClosePausedRef.current){const T=new CustomEvent(Ph);v.dispatchEvent(T),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const T=new CustomEvent(Oh);v.dispatchEvent(T),o.isClosePausedRef.current=!1}},S=T=>{!x.contains(T.relatedTarget)&&y()},_=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",g),x.addEventListener("focusout",S),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",_),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",_),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[w,o.isClosePausedRef]);const m=b.useCallback(({tabbingDirection:x})=>{const g=a().map(y=>{const S=y.ref.current,_=[S,...zT(S)];return x==="forwards"?_:_.reverse()});return(x==="forwards"?g.reverse():g).flat()},[a]);return b.useEffect(()=>{const x=d.current;if(x){const v=g=>{var _,T,C;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const O=document.activeElement,N=g.shiftKey;if(g.target===x&&N){(_=u.current)==null||_.focus();return}const P=m({tabbingDirection:N?"backwards":"forwards"}),H=P.findIndex(E=>E===O);cd(P.slice(H+1))?g.preventDefault():N?(T=u.current)==null||T.focus():(C=h.current)==null||C.focus()}};return x.addEventListener("keydown",v),()=>x.removeEventListener("keydown",v)}},[a,m]),c.jsxs(uT,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&c.jsx(Ih,{ref:u,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});cd(x)}}),c.jsx(ap.Slot,{scope:n,children:c.jsx(Be.ol,{tabIndex:-1,...i,ref:p})}),w&&c.jsx(Ih,{ref:h,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});cd(x)}})]})});$w.displayName=Uw;var Bw="ToastFocusProxy",Ih=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=mu(Bw,n);return c.jsx(pu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Ih.displayName=Bw;var Ma="Toast",TT="toast.swipeStart",CT="toast.swipeMove",AT="toast.swipeCancel",jT="toast.swipeEnd",Ww=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=gT({prop:r,defaultProp:s??!0,onChange:i,caller:Ma});return c.jsx(io,{present:n||a,children:c.jsx(PT,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Yn(e.onPause),onResume:Yn(e.onResume),onSwipeStart:Ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,u=>{const{x:h,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,u=>{const{x:h,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Ww.displayName=Ma;var[NT,RT]=zw(Ma,{onClose(){}}),PT=b.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:h,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:f,...w}=e,m=mu(Ma,n),[x,v]=b.useState(null),g=St(t,E=>v(E)),y=b.useRef(null),S=b.useRef(null),_=s||m.duration,T=b.useRef(0),C=b.useRef(_),O=b.useRef(0),{onToastAdd:N,onToastRemove:I}=m,B=Yn(()=>{var G;(x==null?void 0:x.contains(document.activeElement))&&((G=m.viewport)==null||G.focus()),o()}),P=b.useCallback(E=>{!E||E===1/0||(window.clearTimeout(O.current),T.current=new Date().getTime(),O.current=window.setTimeout(B,E))},[B]);b.useEffect(()=>{const E=m.viewport;if(E){const G=()=>{P(C.current),u==null||u()},j=()=>{const L=new Date().getTime()-T.current;C.current=C.current-L,window.clearTimeout(O.current),l==null||l()};return E.addEventListener(Ph,j),E.addEventListener(Oh,G),()=>{E.removeEventListener(Ph,j),E.removeEventListener(Oh,G)}}},[m.viewport,_,l,u,P]),b.useEffect(()=>{i&&!m.isClosePausedRef.current&&P(_)},[i,_,m.isClosePausedRef,P]),b.useEffect(()=>(N(),()=>I()),[N,I]);const H=b.useMemo(()=>x?Jw(x):null,[x]);return m.viewport?c.jsxs(c.Fragment,{children:[H&&c.jsx(OT,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),c.jsx(NT,{scope:n,onClose:B,children:La.createPortal(c.jsx(ap.ItemSlot,{scope:n,children:c.jsx(cT,{asChild:!0,onEscapeKeyDown:Ee(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||B(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Be.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...w,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,E=>{E.key==="Escape"&&(a==null||a(E.nativeEvent),E.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:Ee(e.onPointerDown,E=>{E.button===0&&(y.current={x:E.clientX,y:E.clientY})}),onPointerMove:Ee(e.onPointerMove,E=>{if(!y.current)return;const G=E.clientX-y.current.x,j=E.clientY-y.current.y,L=!!S.current,R=["left","right"].includes(m.swipeDirection),M=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,V=R?M(0,G):0,ne=R?0:M(0,j),X=E.pointerType==="touch"?10:2,oe={x:V,y:ne},J={originalEvent:E,delta:oe};L?(S.current=oe,wl(CT,d,J,{discrete:!1})):vg(oe,m.swipeDirection,X)?(S.current=oe,wl(TT,h,J,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(G)>X||Math.abs(j)>X)&&(y.current=null)}),onPointerUp:Ee(e.onPointerUp,E=>{const G=S.current,j=E.target;if(j.hasPointerCapture(E.pointerId)&&j.releasePointerCapture(E.pointerId),S.current=null,y.current=null,G){const L=E.currentTarget,R={originalEvent:E,delta:G};vg(G,m.swipeDirection,m.swipeThreshold)?wl(jT,f,R,{discrete:!0}):wl(AT,p,R,{discrete:!0}),L.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),OT=e=>{const{__scopeToast:t,children:n,...r}=e,s=mu(Ma,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return DT(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(ip,{asChild:!0,children:c.jsx(pu,{...r,children:i&&c.jsxs(c.Fragment,{children:[s.label," ",n]})})})},IT="ToastTitle",Vw=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Be.div,{...r,ref:t})});Vw.displayName=IT;var LT="ToastDescription",Hw=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Be.div,{...r,ref:t})});Hw.displayName=LT;var Kw="ToastAction",qw=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(Yw,{altText:n,asChild:!0,children:c.jsx(lp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Kw}\`. Expected non-empty \`string\`.`),null)});qw.displayName=Kw;var Gw="ToastClose",lp=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=RT(Gw,n);return c.jsx(Yw,{asChild:!0,children:c.jsx(Be.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,s.onClose)})})});lp.displayName=Gw;var Yw=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return c.jsx(Be.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Jw(e){const t=[];
vendor: 4,279 bytes, lines 68-93
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),MT(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Jw(r))}}),t}function wl(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Iw(s,i):s.dispatchEvent(i)}var vg=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function DT(e=()=>{}){const t=Yn(e);ss(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function MT(e){return e.nodeType===e.ELEMENT_NODE}function zT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var FT=Fw,Qw=$w,Xw=Ww,Zw=Vw,eb=Hw,tb=qw,nb=lp;function rb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=rb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sb(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=rb(e))&&(r&&(r+=" "),r+=t);return r}const yg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wg=sb,ib=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const h=n==null?void 0:n[u],d=i==null?void 0:i[u];if(h===null)return null;const p=yg(h)||yg(d);return s[u][p]}),a=n&&Object.entries(n).reduce((u,h)=>{let[d,p]=h;return p===void 0||(u[d]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,h)=>{let{class:d,className:p,...f}=h;return Object.entries(f).every(w=>{let[m,x]=w;return Array.isArray(x)?x.includes({...i,...a}[m]):{...i,...a}[m]===x})?[...u,d,p]:u},[]);return wg(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const UT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ob=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var $T={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"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const BT=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...$T,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ob("lucide",s),...a},[...o.map(([u,h])=>b.createElement(u,h)),...Array.isArray(i)?i:[i]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const se=(e,t)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(BT,{ref:i,iconNode:t,className:ob(`lucide-${UT(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const ab=se("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
93-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const hs=se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const lb=se("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const WT=se("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const ga=se("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"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const Xl=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const cp=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const VT=se("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const HT=se("ClipboardPen",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5",key:"cereej"}],["path",{d:"M4 13.5V6a2 2 0 0 1 2-2h2",key:"5ua5vh"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const Lh=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const KT=se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const Dh=se("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const bg=se("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 154 * @license lucide-react v0.462.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const cb=se("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/** 159 * @license lucide-react v0.462.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const xg=se("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 164 * @license lucide-react v0.462.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const qT=se("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/** 169 * @license lucide-react v0.462.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const GT=se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
173]]);/** 174 * @license lucide-react v0.462.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const YT=se("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"}]]);/** 179 * @license lucide-react v0.462.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const JT=se("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 184 * @license lucide-react v0.462.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const QT=se("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 189 * @license lucide-react v0.462.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const ub=se("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 194 * @license lucide-react v0.462.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const up=se("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"}]]);/** 199 * @license lucide-react v0.462.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const XT=se("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"}]]);/** 204 * @license lucide-react v0.462.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const Mh=se("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"}]]);/** 209 * @license lucide-react v0.462.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const ZT=se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 214 * @license lucide-react v0.462.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const eC=se("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 219 * @license lucide-react v0.462.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const db=se("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 224 * @license lucide-react v0.462.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const tC=se("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/** 229 * @license lucide-react v0.462.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const nC=se("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"}]]);/** 234 * @license lucide-react v0.462.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const rC=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 239 * @license lucide-react v0.462.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const sC=se("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** 244 * @license lucide-react v0.462.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const iC=se("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 249 * @license lucide-react v0.462.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const oC=se("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 254 * @license lucide-react v0.462.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const hb=se("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 259 * @license lucide-react v0.462.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const aC=se("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 4,074 bytes, lines 263-298
263y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 264 * @license lucide-react v0.462.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree. 268 */const lC=se("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"}]]);/** 269 * @license lucide-react v0.462.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const fb=se("Theater",[["path",{d:"M2 10s3-3 3-8",key:"3xiif0"}],["path",{d:"M22 10s-3-3-3-8",key:"ioaa5q"}],["path",{d:"M10 2c0 4.4-3.6 8-8 8",key:"16fkpi"}],["path",{d:"M14 2c0 4.4 3.6 8 8 8",key:"b9eulq"}],["path",{d:"M2 10s2 2 2 5",key:"1au1lb"}],["path",{d:"M22 10s-2 2-2 5",key:"qi2y5e"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"1vsc2m"}],["path",{d:"M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"hrha4u"}]]);/** 274 * @license lucide-react v0.462.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const cC=se("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 279 * @license lucide-react v0.462.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const pb=se("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["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"}]]);/** 284 * @license lucide-react v0.462.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const mb=se("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 289 * @license lucide-react v0.462.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const va=se("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 294 * @license lucide-react v0.462.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const gr=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),dp="-",uC=e=>{const t=hC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(dp);return a[0]===""&&a.length!==1&&a.shift(),gb(a,t)||dC(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},gb=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?gb(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(dp);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},kg=/^\[(.+)\]$/,dC=e=>{if(kg.test(e)){const t=kg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,067 bytes, line 298
298return pC(Object.entries(e.classGroups),n).forEach(([i,o])=>{zh(o,r,i,t)}),r},zh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Sg(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(fC(s)){zh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{zh(o,Sg(t,i),n,r)})})},Sg=(e,t)=>{let n=e;return t.split(dp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fC=e=>e.isThemeGetter,pC=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,mC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},vb="!",gC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,h=0,d;for(let x=0;x<a.length;x++){let v=a[x];if(u===0){if(v===s&&(r||a.slice(x,x+i)===t)){l.push(a.slice(h,x)),h=x+i;continue}if(v==="/"){d=x;continue}}v==="["?u++:v==="]"&&u--}const p=l.length===0?a:a.substring(h),f=p.startsWith(vb),w=f?p.substring(1):p,m=d&&d>h?d-h:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},vC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},yC=e=>({cache:mC(e.cacheSize),parseClassName:gC(e),...uC(e)}),wC=/\s+/,bC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(wC);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(u);let w=!!f,m=r(w?p.substring(0,f):p);if(!m){if(!w){a=u+(a.length>0?" "+a:a);continue}if(m=r(p),!m){a=u+(a.length>0?" "+a:a);continue}w=!1}const x=vC(h).join(":"),v=d?x+vb:x,g=v+m;if(i.includes(g))continue;i.push(g);const y=s(m,w);for(let S=0;S<y.length;++S){const _=y[S];i.push(v+_)}a=u+(a.length>0?" "+a:a)}return a};function xC(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=yb(t))&&(r&&(r+=" "),r+=n);return r}const yb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=yb(e[r]))&&(n&&(n+=" "),n+=t);return n};function kC(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((h,d)=>d(h),e());return n=yC(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const h=bC(l,n);return s(l,h),h}return function(){return i(xC.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},wb=/^\[(?:([a-z-]+):)?(.+)\]$/i,SC=/^\d+\/\d+$/,_C=new Set(["px","full","screen"]),EC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TC=/\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$/,CC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,AC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rr=e=>Pi(e)||_C.has(e)||SC.test(e),jr=e=>oo(e,"length",MC),Pi=e=>!!e&&!Number.isNaN(Number(e)),ud=e=>oo(e,"number",Pi),_o=e=>!!e&&Number.isInteger(Number(e)),NC=e=>e.endsWith("%")&&Pi(e.slice(0,-1)),ie=e=>wb.test(e),Nr=e=>EC.test(e),RC=new Set(["length","size","percentage"]),PC=e=>oo(e,RC,bb),OC=e=>oo(e,"position",bb),IC=new Set(["image","url"]),LC=e=>oo(e,IC,FC),DC=e=>oo(e,"",zC),Eo=()=>!0,oo=(e,t,n)=>{const r=wb.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},MC=e=>TC.test(e)&&!CC.test(e),bb=()=>!1,zC=e=>AC.test(e),FC=e=>jC.test(e),UC=()=>{const e=be("colors"),t=be("spacing"),n=be("blur"),r=be("brightness"),s=be("borderColor"),i=be("borderRadius"),o=be("borderSpacing"),a=be("borderWidth"),l=be("contrast"),u=be("grayscale"),h=be("hueRotate"),d=be("invert"),p=be("gap"),f=be("gradientColorStops"),w=be("gradientColorStopPositions"),m=be("inset"),x=be("margin"),v=be("opacity"),g=be("padding"),y=be("saturate"),S=be("scale"),_=be("sepia"),T=be("skew"),C=be("space"),O=be("translate"),N=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",ie,t],P=()=>[ie,t],H=()=>["",rr,jr],E=()=>["auto",Pi,ie],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",ie],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[Pi,ie];return{cacheSize:500,separator:":",theme:{colors:[Eo],spacing:[rr,jr],blur:["none","",
vendor: 11,586 bytes, line 298
298Nr,ie],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Nr,ie],borderSpacing:P(),borderWidth:H(),contrast:ne(),grayscale:M(),hueRotate:ne(),invert:M(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[NC,jr],inset:B(),margin:B(),opacity:ne(),padding:P(),saturate:ne(),scale:ne(),sepia:M(),skew:ne(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Nr]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:[...G(),ie]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_o,ie]}],basis:[{basis:B()}],"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:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",_o,ie]}],"grid-cols":[{"grid-cols":[Eo]}],"col-start-end":[{col:["auto",{span:["full",_o,ie]},ie]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[Eo]}],"row-start-end":[{row:["auto",{span:[_o,ie]},ie]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"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:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Nr]},Nr]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nr,jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ud]}],"font-family":[{font:[Eo]}],"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",Pi,ud]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rr,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rr,jr]}],"underline-offset":[{"underline-offset":["auto",rr,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"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":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),OC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",PC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},LC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:j()}],"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:["",...j()]}],"outline-offset":[{"outline-offset":[rr,ie]}],"outline-w":[{outline:[rr,jr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[rr,jr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nr,DC]}],"shadow-color":[{shadow:[Eo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Nr,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"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:ne()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:ne()}],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:[_o,ie]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 298
298],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:[e,"none"]}],"stroke-w":[{stroke:[rr,jr,ud]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},$C=kC(UC);function Ut(...e){return $C(sb(e))}const BC=FT,xb=b.forwardRef(({className:e,...t},n)=>c.jsx(Qw,{ref:n,className:Ut("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));xb.displayName=Qw.displayName;const WC=ib("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"}}),kb=b.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Xw,{ref:r,className:Ut(WC({variant:t}),e),...n}));kb.displayName=Xw.displayName;const VC=b.forwardRef(({className:e,...t},n)=>c.jsx(tb,{ref:n,className:Ut("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));VC.displayName=tb.displayName;const Sb=b.forwardRef(({className:e,...t},n)=>c.jsx(nb,{ref:n,className:Ut("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 3,350 bytes, line 298
298/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(gr,{className:"h-4 w-4"})}));Sb.displayName=nb.displayName;const _b=b.forwardRef(({className:e,...t},n)=>c.jsx(Zw,{ref:n,className:Ut("text-sm font-semibold",e),...t}));_b.displayName=Zw.displayName;const Eb=b.forwardRef(({className:e,...t},n)=>c.jsx(eb,{ref:n,className:Ut("text-sm opacity-90",e),...t}));Eb.displayName=eb.displayName;function HC(){const{toasts:e}=HE();return c.jsxs(BC,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return c.jsxs(kb,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(_b,{children:n}),r&&c.jsx(Eb,{children:r})]}),s,c.jsx(Sb,{})]},t)}),c.jsx(xb,{})]})}const KC=["top","right","bottom","left"],is=Math.min,Vt=Math.max,Rc=Math.round,bl=Math.floor,os=e=>({x:e,y:e}),qC={left:"right",right:"left",bottom:"top",top:"bottom"},GC={start:"end",end:"start"};function Fh(e,t,n){return Vt(e,is(t,n))}function xr(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function hp(e){return e==="x"?"y":"x"}function fp(e){return e==="y"?"height":"width"}function as(e){return["top","bottom"].includes(kr(e))?"y":"x"}function pp(e){return hp(as(e))}function YC(e,t,n){n===void 0&&(n=!1);const r=ao(e),s=pp(e),i=fp(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Pc(o)),[o,Pc(o)]}function JC(e){const t=Pc(e);return[Uh(e),t,Uh(t)]}function Uh(e){return e.replace(/start|end/g,t=>GC[t])}function QC(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function XC(e,t,n,r){const s=ao(e);let i=QC(kr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Uh)))),i}function Pc(e){return e.replace(/left|right|bottom|top/g,t=>qC[t])}function ZC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tb(e){return typeof e!="number"?ZC(e):{top:e,right:e,bottom:e,left:e}}function Oc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function _g(e,t,n){let{reference:r,floating:s}=e;const i=as(t),o=pp(t),a=fp(o),l=kr(t),u=i==="y",h=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,p=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:h,y:r.y-s.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ao(t)){case"start":f[o]-=p*(n&&u?-1:1);break;case"end":f[o]+=p*(n&&u?-1:1);break}return f}const eA=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:h,y:d}=_g(u,r,l),p=r,f={},w=0;for(let m=0;m<a.length;m++){const{name:x,fn:v}=a[m],{x:g,y,data:S,reset:_}=await v({x:h,y:d,initialPlacement:r,placement:p,strategy:s,middlewareData:f,re
vendor: 9,374 bytes, line 298
298cts:u,platform:o,elements:{reference:e,floating:t}});h=g??h,d=y??d,f={...f,[x]:{...f[x],...S}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):_.rects),{x:h,y:d}=_g(u,p,l)),m=-1)}return{x:h,y:d,placement:p,strategy:s,middlewareData:f}};async function ya(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=xr(t,e),w=Tb(f),x=a[p?d==="floating"?"reference":"floating":d],v=Oc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:h,strategy:l})),g=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},_=Oc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-_.top+w.top)/S.y,bottom:(_.bottom-v.bottom+w.bottom)/S.y,left:(v.left-_.left+w.left)/S.x,right:(_.right-v.right+w.right)/S.x}}const tA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:h=0}=xr(e,t)||{};if(u==null)return{};const d=Tb(h),p={x:n,y:r},f=pp(s),w=fp(f),m=await o.getDimensions(u),x=f==="y",v=x?"top":"left",g=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[f]-p[f]-i.floating[w],_=p[f]-i.reference[f],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let C=T?T[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(T)))&&(C=a.floating[y]||i.floating[w]);const O=S/2-_/2,N=C/2-m[w]/2-1,I=is(d[v],N),B=is(d[g],N),P=I,H=C-m[w]-B,E=C/2-m[w]/2+O,G=Fh(P,E,H),j=!l.arrow&&ao(s)!=null&&E!==G&&i.reference[w]/2-(E<P?I:B)-m[w]/2<0,L=j?E<P?E-P:E-H:0;return{[f]:p[f]+L,data:{[f]:G,centerOffset:E-G-L,...j&&{alignmentOffset:L}},reset:j}}}),nA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...x}=xr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=kr(s),g=as(a),y=kr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=p||(y||!m?[Pc(a)]:JC(a)),T=w!=="none";!p&&T&&_.push(...XC(a,m,w,S));const C=[a,..._],O=await ya(t,x),N=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&N.push(O[v]),d){const E=YC(s,o,S);N.push(O[E[0]],O[E[1]])}if(I=[...I,{placement:s,overflows:N}],!N.every(E=>E<=0)){var B,P;const E=(((B=i.flip)==null?void 0:B.index)||0)+1,G=C[E];if(G)return{data:{index:E,overflows:I},reset:{placement:G}};let j=(P=I.filter(L=>L.overflows[0]<=0).sort((L,R)=>L.overflows[1]-R.overflows[1])[0])==null?void 0:P.placement;if(!j)switch(f){case"bestFit":{var H;const L=(H=I.filter(R=>{if(T){const M=as(R.placement);return M===g||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,V)=>M+V,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:H[0];L&&(j=L);break}case"initialPlacement":j=a;break}if(s!==j)return{reset:{placement:j}}}return{}}}};function Eg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tg(e){return KC.some(t=>e[t]>=0)}const rA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=xr(e,t);switch(r){case"referenceHidden":{const i=await ya(t,{...s,elementContext:"reference"}),o=Eg(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Tg(o)}}}case"escaped":{const i=await ya(t,{...s,altBoundary:!0}),o=Eg(i,n.floating);return{data:{escapedOffsets:o,escaped:Tg(o)}}}default:return{}}}}};async function sA(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=kr(n),a=ao(n),l=as(n)==="y",u=["left","top"].includes(o)?-1:1,h=i&&l?-1:1,d=xr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(f=a==="end"?w*-1:w),l?{x:f*h,y:p*u}:{x:p*u,y:f*h}}const iA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await sA(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},oA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:g}=x;return{x:v,y:g}}},...l}=xr(e,t),u={x:n,y:r},h=await ya(t,l),d=as(kr(s)),p=hp(d);let f=u[p],w=u[d];if(i){const x=p==="y"?"top":"left",v=p==="y"?"bottom":"right",g=f+h[x],y=f-h[v];f=Fh(g,f,y)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=w+h[x],y=w-h[v];w=Fh(g,w,y)}const m=a.fn({...t,[p]:f,[d]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[d]:o}}}}}},aA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=xr(e,t),h={x:n,y:r},d=as(s),p=hp(d);let f=h[p],w=h[d];const m=xr(a,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=p==="y"?"height":"width",S=i.reference[p]-i.floating[y]+x.mainAxis,_=i.reference[p]+i.reference[y]-x.mainAxis;f<S?f=S:f>_&&(f=_)}if(u){var v,g;const y=p==="y"?"width":"height",S=["top","left"].includes(kr(s)),_=i.reference[d]-i.floating[y]+(S&&((v=o.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),T=i.reference[d]+i.reference[y]+(S?0:((g=o.offset)==null?void 0:g[d])||0)-(S?x.crossAxis:0);w<_?w=_:w>T&&(w=T)}return{[p]:f,[d]:w}}}},lA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=xr(e,t),h=await ya(t,u),d=kr(s),p=ao(s),f=as(s)==="y",{width:w,height:m}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=p==="end"?"top":"bottom");const g=m-h.top-h.bottom,y=w-h.left-h.right,S=is(m-h[x],g),_=is(w-h[v],y),T=!t.middlewareData.shift;let C=S,O=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=g),T&&!p){const I=Vt(h.left,0),B=Vt(h.right,0),P=Vt(h.top,0),H=Vt(h.bottom,0);f?O=w-2*(I!==0||B!==0?I+B:Vt(h.left,h.right)):C=m-2*(P!==0||H!==0?P+H:Vt(h.top,h.bottom))}await l({...t,availableWidth:O,availableHeight:C});const N=await o.getDimensions(a.floating);return w!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function gu(){return typeof window<"u"}function lo(e){return Cb(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(Cb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cb(e){return gu()?e instanceof Node||e instanceof Gt(e).Node:!1}function Nn(e){return gu()?e instanceof Element||e instanceof Gt(e).Element:!1}function Jn(e){return gu()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function Cg(e){return!gu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function za(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Rn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function cA(e){return["table","td","th"].includes(lo(e))}function vu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function mp(e){const t=gp(),n=Nn(e)?Rn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function uA(e){let t=ls(e);for(;Jn(t)&&!eo(t);){if(mp(t))return t;if(vu(t))return null;t=ls(t)}return null}function gp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eo(e){return["html","body","#document"].includes(lo(e))}function Rn(e){return Gt(e).getComputedStyle(e)}function yu(e){return Nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ls(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cg(e)&&e.host||Qn(e);return Cg(t)?t.host:t}function Ab(e){const t=ls(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jn(t)&&za(t)?t:Ab(t)}function wa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Ab(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Gt(s);if(i){const a=$h(o);
vendor: 5,525 bytes, line 298
298return t.concat(o,o.visualViewport||[],za(s)?s:[],a&&n?wa(a):[])}return t.concat(s,wa(s,[],n))}function $h(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jb(e){const t=Rn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Jn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Rc(n)!==i||Rc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function vp(e){return Nn(e)?e:e.contextElement}function Oi(e){const t=vp(e);if(!Jn(t))return os(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=jb(t);let o=(i?Rc(n.width):n.width)/r,a=(i?Rc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const dA=os(0);function Nb(e){const t=Gt(e);return!gp()||!t.visualViewport?dA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function Ws(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=vp(e);let o=os(1);t&&(r?Nn(r)&&(o=Oi(r)):o=Oi(e));const a=hA(i,n,r)?Nb(i):os(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,h=s.width/o.x,d=s.height/o.y;if(i){const p=Gt(i),f=r&&Nn(r)?Gt(r):r;let w=p,m=$h(w);for(;m&&r&&f!==w;){const x=Oi(m),v=m.getBoundingClientRect(),g=Rn(m),y=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*x.x,S=v.top+(m.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,u*=x.y,h*=x.x,d*=x.y,l+=y,u+=S,w=Gt(m),m=$h(w)}}return Oc({width:h,height:d,x:l,y:u})}function fA(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Qn(r),a=t?vu(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=os(1);const h=os(0),d=Jn(r);if((d||!d&&!i)&&((lo(r)!=="body"||za(o))&&(l=yu(r)),Jn(r))){const p=Ws(r);u=Oi(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+h.x,y:n.y*u.y-l.scrollTop*u.y+h.y}}function pA(e){return Array.from(e.getClientRects())}function Bh(e,t){const n=yu(e).scrollLeft;return t?t.left+n:Ws(Qn(e)).left+n}function mA(e){const t=Qn(e),n=yu(e),r=e.ownerDocument.body,s=Vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Bh(e);const a=-n.scrollTop;return Rn(r).direction==="rtl"&&(o+=Vt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function gA(e,t){const n=Gt(e),r=Qn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=gp();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function vA(e,t){const n=Ws(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Jn(e)?Oi(e):os(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function Ag(e,t,n){let r;if(t==="viewport")r=gA(e,n);else if(t==="document")r=mA(Qn(e));else if(Nn(t))r=vA(t,n);else{const s=Nb(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Oc(r)}function Rb(e,t){const n=ls(e);return n===t||!Nn(n)||eo(n)?!1:Rn(n).position==="fixed"||Rb(n,t)}function yA(e,t){const n=t.get(e);if(n)return n;let r=wa(e,[],!1).filter(a=>Nn(a)&&lo(a)!=="body"),s=null;const i=Rn(e).position==="fixed";let o=i?ls(e):e;for(;Nn(o)&&!eo(o);){const a=Rn(o),l=mp(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||za(o)&&!l&&Rb(e,o))?r=r.filter(h=>h!==o):s=a,o=ls(o)}return t.set(e,r),r}function wA(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?vu(t)?[]:yA(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,h)=>{const d=Ag(t,h,s);return u.top=Vt(d.top,u.top),u.right=is(d.right,u.right),u.bottom=is(d.bottom,u.bottom),u.left=Vt(d.left,u.left),u},Ag(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bA(e){const{width:t,height:n}=jb(e);return{width:t,height:n}}function xA(e,t,n){const r=Jn(t),s=Qn(t),i=n==="fixed",o=Ws(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=os(0);if(r||!r&&!i)if((lo(t)!=="body"||za(s))&&(a=yu(t)),r){const f=Ws(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=Bh(s));let u=0,h=0;if(s&&!r&&!i){const f=s.getBoundingClientRect();h=f.top+a.scrollTop,u=f.left+a.scrollLeft-Bh(s,f)}const d=o.left+a.scrollLeft-l.x-u,p=o.top+a.scrollTop-l.y-h;return{x:d,y:p,width:o.width,height:o.height}}function dd(e){return Rn(e).position==="static"}function jg(e,t){if(!Jn(e)||Rn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function Pb(e,t){const n=Gt(e);if(vu(e))return n;if(!Jn(e)){let s=ls(e);for(;s&&!eo(s);){if(Nn(s)&&!dd(s))return s;s=ls(s)}return n}let r=jg(e,t);for(;r&&cA(r)&&dd(r);)r=jg(r,t);return r&&eo(r)&&dd(r)&&!mp(r)?n:r||uA(e)||n}const kA=async function(e){const t=this.getOffsetParent||Pb,n=this.getDimensions,r=await n(e.floating);return{reference:xA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function SA(e){return Rn(e).direction==="rtl"}const _A={convertOffsetParentRelativeRectToViewportRelativeRect:fA,getDocumentElement:Qn,getClippingRect:wA,getOffsetParent:Pb,getElementRects:kA,getClientRects:pA,getDimensions:bA,getScale:Oi,isElement:Nn,isRTL:SA};function EA(e,t){let n=null,r;const s=Qn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:h,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;
vendor: 7,899 bytes, line 298
298const f=bl(h),w=bl(s.clientWidth-(u+d)),m=bl(s.clientHeight-(h+p)),x=bl(u),g={rootMargin:-f+"px "+-w+"px "+-m+"px "+-x+"px",threshold:Vt(0,is(1,l))||1};let y=!0;function S(_){const T=_[0].intersectionRatio;if(T!==l){if(!y)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return o(!0),i}function TA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=vp(e),h=s||i?[...u?wa(u):[],...wa(t)]:[];h.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=u&&a?EA(u,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let w,m=l?Ws(e):null;l&&x();function x(){const v=Ws(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,w=requestAnimationFrame(x)}return n(),()=>{var v;h.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(w)}}const CA=iA,AA=oA,jA=nA,NA=lA,RA=rA,Ng=tA,PA=aA,OA=(e,t,n)=>{const r=new Map,s={platform:_A,...n},i={...s.platform,_c:r};return eA(e,t,{...s,platform:i})};var Zl=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ic(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ic(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Ic(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ob(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rg(e,t){const n=Ob(e);return Math.round(t*n)/n}function hd(e){const t=b.useRef(e);return Zl(()=>{t.current=e}),t}function IA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[h,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=b.useState(r);Ic(p,r)||f(r);const[w,m]=b.useState(null),[x,v]=b.useState(null),g=b.useCallback(R=>{R!==T.current&&(T.current=R,m(R))},[]),y=b.useCallback(R=>{R!==C.current&&(C.current=R,v(R))},[]),S=i||w,_=o||x,T=b.useRef(null),C=b.useRef(null),O=b.useRef(h),N=l!=null,I=hd(l),B=hd(s),P=hd(u),H=b.useCallback(()=>{if(!T.current||!C.current)return;const R={placement:t,strategy:n,middleware:p};B.current&&(R.platform=B.current),OA(T.current,C.current,R).then(M=>{const V={...M,isPositioned:P.current!==!1};E.current&&!Ic(O.current,V)&&(O.current=V,La.flushSync(()=>{d(V)}))})},[p,t,n,B,P]);Zl(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const E=b.useRef(!1);Zl(()=>(E.current=!0,()=>{E.current=!1}),[]),Zl(()=>{if(S&&(T.current=S),_&&(C.current=_),S&&_){if(I.current)return I.current(S,_,H);H()}},[S,_,H,I,N]);const G=b.useMemo(()=>({reference:T,floating:C,setReference:g,setFloating:y}),[g,y]),j=b.useMemo(()=>({reference:S,floating:_}),[S,_]),L=b.useMemo(()=>{const R={position:n,left:0,top:0};if(!j.floating)return R;const M=Rg(j.floating,h.x),V=Rg(j.floating,h.y);return a?{...R,transform:"translate("+M+"px, "+V+"px)",...Ob(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:V}},[n,a,j.floating,h.x,h.y]);return b.useMemo(()=>({...h,update:H,refs:G,elements:j,floatingStyles:L}),[h,H,G,j,L])}const LA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ng({element:r.current,padding:s}).fn(n):{}:r?Ng({element:r,padding:s}).fn(n):{}}}},DA=(e,t)=>({...CA(e),options:[e,t]}),MA=(e,t)=>({...AA(e),options:[e,t]}),zA=(e,t)=>({...PA(e),options:[e,t]}),FA=(e,t)=>({...jA(e),options:[e,t]}),UA=(e,t)=>({...NA(e),options:[e,t]}),$A=(e,t)=>({...RA(e),options:[e,t]}),BA=(e,t)=>({...LA(e),options:[e,t]});var WA="Arrow",Ib=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return c.jsx(Be.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ib.displayName=WA;var VA=Ib;function HA(e){const[t,n]=b.useState(void 0);return ss(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Lb="Popper",[Db,Mb]=Da(Lb),[GI,zb]=Db(Lb),Fb="PopperAnchor",Ub=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=zb(Fb,n),o=b.useRef(null),a=St(t,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:c.jsx(Be.div,{...s,ref:a})});Ub.displayName=Fb;var yp="PopperContent",[KA,qA]=Db(yp),$b=b.forwardRef((e,t)=>{var ue,_r,On,Zn,cn,Er;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:w,...m}=e,x=zb(yp,n),[v,g]=b.useState(null),y=St(t,un=>g(un)),[S,_]=b.useState(null),T=HA(S),C=(T==null?void 0:T.width)??0,O=(T==null?void 0:T.height)??0,N=r+(i!=="center"?"-"+i:""),I=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},B=Array.isArray(u)?u:[u],P=B.length>0,H={padding:I,boundary:B.filter(YA),altBoundary:P},{refs:E,floatingStyles:G,placement:j,isPositioned:L,middlewareData:R}=IA({strategy:"fixed",placement:N,whileElementsMounted:(...un)=>TA(...un,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[DA({mainAxis:s+O,alignmentAxis:o}),l&&MA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?zA():void 0,...H}),l&&FA({...H}),UA({...H,apply:({elements:un,rects:fe,availableWidth:fs,availableHeight:pe})=>{const{width:ps,height:st}=fe.reference,Xt=un.floating.style;Xt.setProperty("--radix-popper-available-width",`${fs}px`),Xt.setProperty("--radix-popper-available-height",`${pe}px`),Xt.setProperty("--radix-popper-anchor-width",`${ps}px`),Xt.setProperty("--radix-popper-anchor-height",`${st}px`)}}),S&&BA({element:S,padding:a}),JA({arrowWidth:C,arrowHeight:O}),p&&$A({strategy:"referenceHidden",...H})]}),[M,V]=Vb(j),ne=Yn(w);ss(()=>{L&&(ne==null||ne())},[L,ne]);const X=(ue=R.arrow)==null?void 0:ue.x,oe=(_r=R.arrow)==null?void 0:_r.y,J=((On=R.arrow)==null?void 0:On.centerOffset)!==0,[Ne,qe]=b.useState();return ss(()=>{v&&qe(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:E.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:L?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(Zn=R.transformOrigin)==null?void 0:Zn.x,(cn=R.transformOrigin)==null?void 0:cn.y].join(" "),...((Er=R.hide)==null?void 0:Er.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(KA,{scope:n,placedSide:M,onArrowChange:_,arrowX:X,arrowY:oe,shouldHideArrow:J,children:c.jsx(Be.div,{"data-side":M,"data-align":V,...m,ref:y,style:{...m.style,animation:L?void 0:"none"}})})})});$b.displayName=yp;
vendor: 4,443 bytes, line 298
298var Bb="PopperArrow",GA={top:"bottom",right:"left",bottom:"top",left:"right"},Wb=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=qA(Bb,r),o=GA[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(VA,{...s,ref:n,style:{...s.style,display:"block"}})})});Wb.displayName=Bb;function YA(e){return e!==null}var JA=e=>({name:"transformOrigin",options:e,fn(t){var x,v,g;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,h]=Vb(n),d={start:"0%",center:"50%",end:"100%"}[h],p=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let w="",m="";return u==="bottom"?(w=o?d:`${p}px`,m=`${-l}px`):u==="top"?(w=o?d:`${p}px`,m=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,m=o?d:`${f}px`):u==="left"&&(w=`${r.floating.width+l}px`,m=o?d:`${f}px`),{data:{x:w,y:m}}}});function Vb(e){const[t,n="center"]=e.split("-");return[t,n]}var QA=Ub,XA=$b,ZA=Wb,[wu,YI]=Da("Tooltip",[Mb]),wp=Mb(),Hb="TooltipProvider",ej=700,Pg="tooltip.open",[tj,Kb]=wu(Hb),qb=e=>{const{__scopeTooltip:t,delayDuration:n=ej,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(tj,{scope:t,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(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};qb.displayName=Hb;var Gb="Tooltip",[JI,bu]=wu(Gb),Wh="TooltipTrigger",nj=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=bu(Wh,n),i=Kb(Wh,n),o=wp(n),a=b.useRef(null),l=St(t,a,s.onTriggerChange),u=b.useRef(!1),h=b.useRef(!1),d=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),c.jsx(QA,{asChild:!0,...o,children:c.jsx(Be.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Ee(e.onPointerMove,p=>{p.pointerType!=="touch"&&!h.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),h.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{s.onTriggerLeave(),h.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ee(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:Ee(e.onBlur,s.onClose),onClick:Ee(e.onClick,s.onClose)})})});nj.displayName=Wh;var rj="TooltipPortal",[QI,sj]=wu(rj,{forceMount:void 0}),to="TooltipContent",Yb=b.forwardRef((e,t)=>{const n=sj(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=bu(to,e.__scopeTooltip);return c.jsx(io,{present:r||o.open,children:o.disableHoverableContent?c.jsx(Jb,{side:s,...i,ref:t}):c.jsx(ij,{side:s,...i,ref:t})})}),ij=b.forwardRef((e,t)=>{const n=bu(to,e.__scopeTooltip),r=Kb(to,e.__scopeTooltip),s=b.useRef(null),i=St(t,s),[o,a]=b.useState(null),{trigger:l,onClose:u}=n,h=s.current,{onPointerInTransitChange:d}=r,p=b.useCallback(()=>{a(null),d(!1)},[d]),f=b.useCallback((w,m)=>{const x=w.currentTarget,v={x:w.clientX,y:w.clientY},g=uj(v,x.getBoundingClientRect()),y=dj(v,g),S=hj(m.getBoundingClientRect()),_=pj([...y,...S]);a(_),d(!0)},[d]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&h){const w=x=>f(x,h),m=x=>f(x,l);return l.addEventListener("pointerleave",w),h.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),h.removeEventListener("pointerleave",m)}}},[l,h,f,p]),b.useEffect(()=>{if(o){const w=m=>{const x=m.target,v={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(x))||(h==null?void 0:h.contains(x)),y=!fj(v,o);g?p():y&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,h,o,u,p]),c.jsx(Jb,{...e,ref:i})}),[oj,aj]=wu(Gb,{isInside:!1}),lj=JE("TooltipContent"),Jb=b.forwardRef((e,t)=>
vendor: 4,909 bytes, line 298
298{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=bu(to,n),u=wp(n),{onClose:h}=l;return b.useEffect(()=>(document.addEventListener(Pg,h),()=>document.removeEventListener(Pg,h)),[h]),b.useEffect(()=>{if(l.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&h()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,h]),c.jsx(fu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:h,children:c.jsxs(XA,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(lj,{children:r}),c.jsx(oj,{scope:n,isInside:!0,children:c.jsx(xT,{id:l.contentId,role:"tooltip",children:s||r})})]})})});Yb.displayName=to;var Qb="TooltipArrow",cj=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=wp(n);return aj(Qb,n).isInside?null:c.jsx(ZA,{...s,...r,ref:t})});cj.displayName=Qb;function uj(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function dj(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hj(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function fj(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],u=a.x,h=a.y,d=l.x,p=l.y;h>r!=p>r&&n<(d-u)*(r-h)/(p-h)+u&&(s=!s)}return s}function pj(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),mj(t)}function mj(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var gj=qb,Xb=Yb;const vj=gj,yj=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Xb,{ref:r,sideOffset:t,className:Ut("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));yj.displayName=Xb.displayName;const Zb={de:{nav:{about:"Ãber",events:"Veranstaltungen",partners:"Partner",register:"Event melden",contact:"Kontakt"},hero:{kicker:"Interkulturelle Woche · Frankfurt 2026",title1:"Eine Woche, um",title2:"gemeinsam zu wachsen",motto:"« Frankfurt in Szene â Stimmen des Zusammenlebens »",subtitle:"Crece hat die Ehre, die Interkulturelle Woche in Frankfurt vom 24. September bis 4. Oktober 2026 zu organisieren. Elf Tage Theater, Musik, Tanz, Performance und Literatur im AMKA, in der Stadtbücherei und in weiteren Kulturzentren.",cta1:"Programm ansehen",cta2:"Synchrones Event melden",dates:"24. SEP â 04. OKT 2026"},intro:{tag:"Ãber die Interkulturelle Woche 2026",title:"Performance-Kunst in vielen Sprachen",body:"Die Vielfalt der Menschen und Vereine ist ein Merkmal von Frankfurt. Gefeiert wird diese Vielfalt alljährlich im Herbst mit der Interkulturellen Woche. Theater, Musik, Tanz, Performances und Literatur bilden den Schwerpunkt.",pillars:[{t:"Theater",d:"Lokale und gastierende Ensembles auf der Bühne: Zwischen Sprachen und Kulturen zeigen sie ihr Talent im renommierten Instituto Cervantes."},{t:"Musik",d:"Wir bieten intime Konzerte mit Künstler:innen aus der lokalen und der migrantischen Szene in der gemütlichen Atmosphäre der DenkBar an."},{t:"Tanz",d:"Körper, die Geschichten jenseits der Worte erzählen."},{t:"Lesungen",d:"Literarische Stimmen auf Spanisch, Deutsch, Portugiesisch und weiteren Sprachen an den verschiedenen Standorten der Zentralbibliothek Frankfurt."}]}
298,quote:{text:"âWenn wir gemeinsam etwas gestalten, lernen wir einander besser kennen. Dafür brauchen wir kreative Begegnungsorte, und solche Orte zu schaffen, ist seit jeher Anliegen der Interkulturellen Wochen. Umso mehr freut mich, dass âEl Ãrbol que creceâ mit seinem Programm möglichst viele Communitys, Kulturinstitutionen und die Stadtbevölkerung zusammenbringen möchte. Ich wünsche allen Beteiligten viel Erfolg und freue mich auf zahlreiche tolle Veranstaltungen.â",author:"Nargess Eskandari-Grünberg",role:"Bürgermeisterin und Diversitätsdezernentin Frankfurt"},kickoff:{tag:"Zentrale Veranstaltung",title:"Eröffnung Interkulturelle Woche 2026",body:'Die Eröffnung wird von crece gemeinsam mit den organisatorischen Partnern gestaltet: enie e.V., La CompañÃa del Sur und allen Vereinen, die mitmachen. Bereits in Vorbereitung sind ein internationales, mehrsprachiges Theaterfestival und eine Fachkonferenz zu âTheater und Integrationsförderung", koordiniert von Juan Ybañez (CompañÃa del Sur).',cta:"Ich möchte mitmachen",date:"24. September · Frankfurt"},register:{tag:"Synchrones Event",title:"Synchrones Event zur IKW melden",body:"Die offizielle Anmeldefrist für das IKW-Programmheft ist abgelaufen. Ihr könnt uns aber weiterhin Veranstaltungen melden, die parallel zur Interkulturellen Woche 2026 stattfinden. Sie erscheinen nicht in der offiziellen Programmgrilla, sind aber durch die zeitliche Synchronität Teil der Woche â und werden in unseren Kanälen sichtbar gemacht.",btn:"Synchrones Event melden",deadline:"Meldung möglich bis September 2026"},venues:{tag:"Veranstaltungsorte",title:"Wo die Interkulturelle Woche stattfindet",list:[{name:"stadtRAUMfrankfurt",desc:"Im stadtRAUMfrankfurt an der Galluswarte gibt es 25 kostenlose Räume für Vereine und Initiativen."},{name:"Stadtbücherei",desc:"Die Zentralbibliothek Frankfurt empfängt Lesungen und literarische Begegnungen."},{name:"Kulturzentren",desc:"Unabhängige Räume der Stadt öffnen ihre Türen für Aufführungen und Workshops."}]},partners:{tag:"Organisatorische Partner",title:"Ein Netzwerk, das wächst",body:"Wenn euer Verein eine Aktivität im Rahmen der Interkulturellen Woche 2026 präsentieren möchte, schreibt uns. Diese Seite wird mit jedem neuen Partner und bestätigtem Event aktualisiert.",list:["CRECE","ENIE e.V.","BühnenCLAN e.V.","La CompañÃa del Sur","AMKA â Amt für multikulturelle Angelegenheiten","Stadtbücherei Frankfurt am Main","Dein Verein hier"]},team:{tag:"Koordinationsteam",title:"",body:"",list:[{name:"Antonia Sepúlveda",role:"Verwaltung"},{name:"Carolina Roldán Majewski",role:"Koordination"},{name:"Francisco Alday",role:"Kommunikation"},{name:"Juan Ybañez",role:"Kulturelle Programmgestaltung"}]},about:{tag:"Ãber crece",title:"Der Baum, der weiter wächst",body:'Der Verein âEl árbol que crece e.V." (deutsch etwa âder wachsende Baum") wurde 2016 gegründet und befasst sich mit Bildung und Kultur im Zusammenhang mit Migration. Seine Projekte entstehen in Deutschland, aber auch in Städten wie Kairo, Hongkong oder Amman.'},cta:{title:"Bleib auf dem Laufenden",body:"Wir werden diese Seite laufend mit dem vollständigen Programm, Uhrzeiten und neuen Partnern aktualisieren.",btn:"Schreib uns"},footer:{org:"Organisiert von Crece",rights:"Interkulturelle Woche Frankfurt 2026",note:'"Crece", Kurzform von âEl árbol que crece e.V."'},coming:{title:"Wir arbeiten an dieser Seite",subtitle:"Bald online â Interkulturelle Woche Frankfurt 2026",body:"Crece bereitet die Website für die IKW 2026 vor. Schau bald wieder vorbei.",passLabel:"Admin-Zugang",passPlaceholder:"Passwort eingeben",passBtn:"Vorschau ansehen",passError:"Falsches Passwort"}},es:{nav:{about:"Sobre",events:"Eventos",partners:"Socios",register:"Notificar evento",contact:"Contacto"},hero:{kicker:"Semana Intercultural · Frankfurt 2026",title1:"Una semana para",title2:"crecer juntos",motto:"« Frankfurt en escena â Voces de la convivencia »",subtitle:"Crece tiene el honor de organizar la Semana Intercultural en Frankfurt, del 24 de septiembre al 4 de octubre de 2026. Once dÃas de teatro, música, danza, performance y literatura en AMKA, la Biblioteca Central y otros centros culturales.",cta1:"Ver programa",cta2:"Notificar evento sincrónico",dates:"24 SEP â 04 OCT 2026"},intro:{tag:"Sobre la Semana Intercultural 2026",title:"Arte performativo en muchas lenguas",body:"La diversidad de personas y asociaciones es un sello distintivo de Frankfurt. Cada otoño se celebra con la Interkulturelle Woche. Teatro, música, danza, performance y literatura forman el eje del programa.",pillars:[{t:"Teatro",d:"Ensembles locales e invitados sobre el escenario: Entre idiomas y culturas muestran su talento en el prestigioso Instituto Cervantes."},{t:"Música",d:"Ofrecemos conciertos Ãntimos con artistas de la escena local y migrante en el cálido ambiente del DenkBar."},{t:"Danza",d:"Cuerpos que cuentan historias más allá de las palabras."},{t:"Lecturas",d:"Voces literarias en español, alemán, portugués y más en las diferentes sedes de la Zentralbibliothek de Fráncfort."}]},quote:{text:"«La Semana Intercultural no entiende la cultura como un programa acompañante, sino como una práctica que fomenta la integración. Quiere visibilizar el plurilingüismo, la migración y el compromiso compartido. Me alegra que muchas asociaciones se sumen a un programa diverso este otoño.»",author:"Nargess Eskandari-Grünberg",role:"Alcaldesa y Concejala de Diversidad de Frankfurt"},kickoff:{tag:"Evento central",title:"Apertura Semana Intercultural 2026",body:"La apertura estará a cargo de crece junto a sus socios organizativos: enie e.V., La CompañÃa del Sur, y todas las asociaciones que quieran sumarse. Ya están en preparación un festival internacional y multilingüe de teatro y una conferencia especializada sobre «Teatro y fomento de la integración», coordinados por Juan Ybañez (La CompañÃa del Sur).",cta:"Quiero participar",date:"26 de junio · Frankfurt"},register:{tag:"Evento sincrónico",title:"Notifica tu evento sincrónico a la IKW",body:"El plazo de inscripción oficial en el programa impreso de la IKW ya ha terminado. Sin embargo, aún puedes notificarnos actividades que tu asociación realizará en paralelo a la Semana Intercultural 2026. No formarán parte de la grilla oficial, pero sà de la semana gracias a la sincronÃa temporal â y las difundiremos a través de nuestros canales.",btn:"Notificar evento sincrónico",deadline:"Notificaciones abiertas hasta septiembre 2026"},venues:{tag:"Sedes",title:"Donde sucede la semana",list:[{name:"stadtRAUMfrankfurt",desc:"En el stadtRAUMfrankfurt, junto a la Galluswarte, hay 25 espacios gratuitos para asociaciones e iniciativas."},{name:"Stadtbücherei",desc:"La Biblioteca Central de Frankfurt acoge lecturas y encuentros literarios."},{name:"Centros culturales",desc:"Espacios independientes de la ciudad abren sus puertas para funciones y talleres."}]},partners:{tag:"Socios organizativos",title:"Una red que crece",body:"Si tu asociación quiere presentar una actividad dentro de la Semana Intercultural 2026, escrÃbenos. Esta página se actualizará con cada nuevo socio y evento confirmado.",list:["CRECE","ENIE e.V.","BühnenCLAN e.V.","La CompañÃa del Sur","AMKA â Amt für multikulturelle Angelegenheiten","Stadtbücherei Frankfurt am Main","Tu asociación aquÃ"]},team:{tag:"Equipo coordinador",title:"",body:"",list:[{name:"Antonia Sepúlveda",role:"Administración"},{name:"Carolina Roldán Majewski",role:"Coordinación"},{name:"Francisco Alday",role:"Comunicación"},{name:"Juan Ybañez",role:"Programación cultural"}]}
298,about:{tag:"Sobre crece",title:"El árbol que sigue creciendo",body:"La asociación «El árbol que crece e.V.» fue fundada en 2016 y se dedica a la educación y la cultura en el contexto de la migración. Sus proyectos se desarrollan en Alemania, pero también en otras importantes ciudades como El Cairo, Hong Kong o Ammán."},cta:{title:"Mantente al dÃa",body:"Estaremos informando y actualizando esta página con el programa completo, horarios y nuevos socios.",btn:"EscrÃbenos"},footer:{org:"Organiza Crece",rights:"Semana Intercultural Frankfurt 2026",note:"«Crece», forma corta de «El árbol que crece e.V.»"},coming:{title:"Estamos trabajando en esta web",subtitle:"Pronto estará online â Semana Intercultural Frankfurt 2026",body:"crece está preparando el sitio de la IKW 2026. Vuelve a visitarnos pronto.",passLabel:"Acceso admin",passPlaceholder:"Introducir contraseña",passBtn:"Ver vista previa",passError:"Contraseña incorrecta"}},en:{nav:{about:"About",events:"Events",partners:"Partners",register:"Notify event",contact:"Contact"},hero:{kicker:"Intercultural Week · Frankfurt 2026",title1:"A week to",title2:"grow together",motto:"« Frankfurt on stage â Voices of coexistence »",subtitle:"Crece is honoured to organise the Intercultural Week in Frankfurt, from 24 September to 4 October 2026. Eleven days of theatre, music, dance, performance and literature at AMKA, the Central Library and other cultural venues.",cta1:"See programme",cta2:"Notify a synchronous event",dates:"24 SEP â 04 OCT 2026"},intro:{tag:"About the Intercultural Week 2026",title:"Performing arts in many languages",body:"The diversity of people and associations is a hallmark of Frankfurt. Every autumn this is celebrated
298with the Intercultural Week. Theatre, music, dance, performance and literature form the heart of the programme.",pillars:[{t:"Theatre",d:"Local and guest ensembles on stage: Showcasing their talent between languages and cultures at the prestigious Instituto Cervantes."},{t:"Music",d:"We offer intimate concerts featuring artists from the local and migrant scenes in the cozy atmosphere of DenkBar."},{t:"Dance",d:"Bodies that tell stories beyond words."},{t:"Readings",d:"Literary voices in Spanish, German, Portuguese, and more across the various locations of the Frankfurt Central Library."}]},quote:{text:"«The Intercultural Week does not see culture as a side programme, but as a practice that fosters integration. It aims to make multilingualism, migration and shared engagement visible. I'm glad to see many associations joining a diverse programme this autumn.»",author:"Nargess Eskandari-Grünberg",role:"Mayor and Diversity Commissioner of Frankfurt"},kickoff:{tag:"Central event",title:"Opening Intercultural Week 2026",body:"The opening will be hosted by crece together with its organising partners: enie e.V., La CompañÃa del Sur, and any association that wants to join. Already in preparation are an international, multilingual theatre festival and a specialist conference on «Theatre and integration», coordinated by Juan Ybañez (La CompañÃa del Sur).",cta:"I want to take part",date:"24 September · Frankfurt"},register:{tag:"Synchronous event",title:"Notify a synchronous event during the IKW",body:"The official registration deadline for the printed IKW programme has passed. However, you can still notify us of events your association will run in parallel to the Intercultural Week 2026. They won't be part of the official grid, but they will be part of the week through temporal synchrony â and we will amplify them through our channels.",btn:"Notify a synchronous event",deadline:"Notifications open until September 2026"},venues:{tag:"Venues",title:"Where the week happens",list:[{name:"stadtRAUMfrankfurt",desc:"At stadtRAUMfrankfurt next to Galluswarte, there are 25 free spaces for associations and initiatives."},{name:"Stadtbücherei",desc:"Frankfurt's Central Library hosts readings and literary encounters."},{name:"Cultural centres",desc:"Independent spaces across the city open their doors for performances and workshops."}]},partners:{tag:"Organising partners",title:"A growing network",body:"If your association wants to present an activity within the Intercultural Week 2026, write to us. This page will be updated with every new partner and confirmed event.",list:["CRECE","ENIE e.V.","BühnenCLAN e.V.","La CompañÃa del Sur","AMKA â Amt für multikulturelle Angelegenheiten","Stadtbücherei Frankfurt am Main","Your association here"]},team:{tag:"Coordination team",title:"",body:"",list:[{name:"Antonia Sepúlveda",role:"Administration"},{name:"Carolina Roldán Majewski",role:"Coordination"},{name:"Francisco Alday",role:"Communication"},{name:"Juan Ybañez",role:"Cultural programming"}]},about:{tag:"About crece",title:"The tree that keeps growing",body:"The association «El árbol que crece e.V.» was founded in 2016 and works on education and culture in the context of migration. Its projects take place in Germany, but also in other major cities such as Cairo, Hong Kong or Amman."},cta:{title:"Stay tuned",body:"We will keep this page updated with the full programme, schedules and new partners.",btn:"Write to us"},footer:{org:"Organised by Crece",rights:"Intercultural Week Frankfurt 2026",note:"«Crece», short form of «El árbol que crece e.V.»"},coming:{title:"We're working on this site",subtitle:"Coming soon online â Intercultural Week Frankfurt 2026",body:"crece is preparing the IKW 2026 website. Please check back soon.",passLabel:"Admin access",passPlaceholder:"Enter password",passBtn:"View preview",passError:"Wrong password"}}},ex=b.createContext(null),tx="ikw-lang",wj=()=>{if(typeof window>"u")return"de";const e=window.localStorage.getItem(tx);if(e&&["de","es","en"].includes(e))return e;const t=(window.navigator.language||"de").toLowerCase();return t.startsWith("es")?"es":t.startsWith("en")?"en":"de"},bj=({children:e})=>{const[t,n]=b.useState("de");b.useEffect(()=>{n(wj())},[]),b.useEffect(()=>{typeof document<"u"&&(document.documentElement.lang=t)},[t]);const r=i=>{n(i);try{window.localStorage.setItem(tx,i)}catch{}},s=b.useMemo(()=>({lang:t,setLang:r,t:Zb[t]}),[t]);return c.jsx(ex.Provider,{value:s,children:e})},gt=()=>{const e=b.useContext(ex);return e||{lang:"de",setLang:()=>{},t:Zb.de}},xj=()=>{const{lang:e,setLang:t}=gt(),n=["de","en","es"];return c.jsx("div",{className:"inline-flex items-center rounded-full border border-border bg-card/80 p-1 backdrop-blur-md shadow-soft",children:n.map(r=>c.jsx("button",{onClick:()=>t(r),className:`relative px-3 py-1.5 text-xs font-semibold uppercase tracking-wider rounded-full transition-all duration-300 ${e===r?"bg-gradient-leaf text-primary-foreground shadow-soft":"text-muted-foreground hover:text-foreground"}`,"aria-pressed":e===r,children:r},r))})},xu=()=>{const e=({className:t,fill:n})=>c.jsxs("svg",{viewBox:"0 0 100 140",className:t,"aria-hidden":!0,
298children:[c.jsx("path",{d:"M50 5 C 80 30, 95 70, 50 135 C 5 70, 20 30, 50 5 Z",fill:n}),c.jsx("path",{d:"M50 20 L50 130",stroke:"rgba(255,255,255,0.5)",strokeWidth:"1.5",fill:"none"})]});return c.jsxs("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:[c.jsx("div",{className:"absolute -top-24 -left-24 h-96 w-96 rounded-full bg-primary/20 blur-3xl animate-drift"}),c.jsx("div",{className:"absolute top-1/3 -right-32 h-[28rem] w-[28rem] rounded-full bg-accent/20 blur-3xl animate-drift",style:{animationDelay:"3s"}}),c.jsx("div",{className:"absolute -bottom-32 left-1/4 h-96 w-96 rounded-full bg-secondary/20 blur-3xl animate-drift",style:{animationDelay:"6s"}}),c.jsx("div",{className:"absolute top-20 left-[8%] w-16 opacity-70 animate-float-slow",children:c.jsx(e,{className:"w-full -rotate-[20deg]",fill:"hsl(var(--primary))"})}),c.jsx("div",{className:"absolute top-40 right-[10%] w-12 opacity-80 animate-float-mid",style:{animationDelay:"1s"},children:c.jsx(e,{className:"w-full rotate-[35deg]",fill:"hsl(var(--secondary))"})}),c.jsx("div",{className:"absolute bottom-32 left-[15%] w-20 opacity-60 animate-float-slow",style:{animationDelay:"2s"},children:c.jsx(e,{className:"w-full rotate-[160deg]",fill:"hsl(var(--accent))"})}),c.jsx("div",{className:"absolute bottom-48 right-[18%] w-14 opacity-70 animate-float-mid",style:{animationDelay:"4s"},children:c.jsx(e,{className:"w-full -rotate-[140deg]",fill:"hsl(var(--primary))"})})]})},kj=ib("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"}}),Oe=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?GE:"button";return c.jsx(o,{className:Ut(kj({variant:t,size:n,className:e})),ref:i,...s})});Oe.displayName="Button";var fd="focusScope.autoFocusOnMount",pd="focusScope.autoFocusOnUnmount",Og={bubbles:!1,cancelable:!0},Sj="FocusScope",nx=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=b.useState(null),u=Yn(s),h=Yn(i),d=b.useRef(null),p=St(t,m=>l(m)),f=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let m=function(y){if(f.paused||!a)return;const S=y.target;a.contains(S)?d.current=S:Or(d.current,{select:!0})},x=function(y){if(f.paused||!a)return;const S=y.relatedTarget;S!==null&&(a.contains(S)||Or(d.current,{select:!0}))},v=function(y){if(document.activeElement===document.body)for(const _ of y)_.removedNodes.length>0&&Or(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),g.disconnect()}}},[r,a,f.paused]),b.useEffect(()=>
vendor: 4,119 bytes, line 298
298{if(a){Lg.add(f);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(fd,Og);a.addEventListener(fd,u),a.dispatchEvent(v),v.defaultPrevented||(_j(jj(rx(a)),{select:!0}),document.activeElement===m&&Or(a))}return()=>{a.removeEventListener(fd,u),setTimeout(()=>{const v=new CustomEvent(pd,Og);a.addEventListener(pd,h),a.dispatchEvent(v),v.defaultPrevented||Or(m??document.body,{select:!0}),a.removeEventListener(pd,h),Lg.remove(f)},0)}}},[a,u,h,f]);const w=b.useCallback(m=>{if(!n&&!r||f.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(x&&v){const g=m.currentTarget,[y,S]=Ej(g);y&&S?!m.shiftKey&&v===S?(m.preventDefault(),n&&Or(y,{select:!0})):m.shiftKey&&v===y&&(m.preventDefault(),n&&Or(S,{select:!0})):v===g&&m.preventDefault()}},[n,r,f.paused]);return c.jsx(Be.div,{tabIndex:-1,...o,ref:p,onKeyDown:w})});nx.displayName=Sj;function _j(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Or(r,{select:t}),document.activeElement!==n)return}function Ej(e){const t=rx(e),n=Ig(t,e),r=Ig(t.reverse(),e);return[n,r]}function rx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ig(e,t){for(const n of e)if(!Tj(n,{upTo:t}))return n}function Tj(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Cj(e){return e instanceof HTMLInputElement&&"select"in e}function Or(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Cj(e)&&t&&e.select()}}var Lg=Aj();function Aj(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dg(e,t),e.unshift(t)},remove(t){var n;e=Dg(e,t),(n=e[0])==null||n.resume()}}}function Dg(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jj(e){return e.filter(t=>t.tagName!=="A")}var md=0;function Nj(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mg()),document.body.insertAdjacentElement("beforeend",e[1]??Mg()),md++,()=>{md===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),md--}},[])}function Mg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Kn=function(){return Kn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Kn.apply(this,arguments)};function sx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function Rj(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ec="right-scroll-bar-position",tc="width-before-scroll-bar",Pj="with-scroll-bars-hidden",Oj="--removed-body-scroll-bar-size";function gd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ij(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var Lj=typeof window<"u"?b.useLayoutEffect:b.useEffect,zg=new WeakMap;function Dj(e,t){var n=Ij(null,function(r){return e.forEach(function(s){return gd(s,r)})});return Lj(function(){var r=zg.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;
vendor: 4,196 bytes, lines 298-313
298s.forEach(function(a){i.has(a)||gd(a,null)}),i.forEach(function(a){s.has(a)||gd(a,o)})}zg.set(n,e)},[e]),n}function Mj(e){return e}function zj(e,t){t===void 0&&(t=Mj);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var h=o;o=[],h.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(h){o.push(h),u()},filter:function(h){return o=o.filter(h),n}}}};return s}function Fj(e){e===void 0&&(e={});var t=zj(null);return t.options=Kn({async:!0,ssr:!1},e),t}var ix=function(e){var t=e.sideCar,n=sx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,Kn({},n))};ix.isSideCarExport=!0;function Uj(e,t){return e.useMedium(t),ix}var ox=Fj(),vd=function(){},ku=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:vd,onWheelCapture:vd,onTouchMoveCapture:vd}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,h=e.enabled,d=e.shards,p=e.sideCar,f=e.noRelative,w=e.noIsolation,m=e.inert,x=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,y=e.gapMode,S=sx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=p,T=Dj([n,t]),C=Kn(Kn({},S),s);return b.createElement(b.Fragment,null,h&&b.createElement(_,{sideCar:ox,removeScrollBar:u,shards:d,noRelative:f,noIsolation:w,inert:m,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:y}),o?b.cloneElement(b.Children.only(a),Kn(Kn({},C),{ref:T})):b.createElement(g,Kn({},C,{className:l,ref:T}),a))});ku.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ku.classNames={fullWidth:tc,zeroRight:ec};var $j=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$j();return t&&e.setAttribute("nonce",t),e}function Wj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hj=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bj())&&(Wj(t,n),Vj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kj=function(){var e=Hj();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ax=function(){var e=Kj(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},qj={left:0,top:0,right:0,gap:0},yd=function(e){return parseInt(e||"",10)||0},Gj=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[yd(n),yd(r),yd(s)]},Yj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qj;var t=Gj(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Jj=ax(),Ii="data-scroll-locked",Qj=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 299 .`.concat(Pj,` { 300 overflow: hidden `).concat(r,`; 301 padding-right: `).concat(a,"px ").concat(r,`; 302 } 303 body[`).concat(Ii,`] { 304 overflow: hidden `).concat(r,`; 305 overscroll-behavior: contain; 306 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 307 padding-left: `.concat(s,`px; 308 padding-top: `).concat(i,`px; 309 padding-right: `).concat(o,`px; 310 margin-left:0; 311 margin-top:0; 312 margin-right: `).concat(a,"px ").concat(r,`; 313 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
313")].filter(Boolean).join(""),` 314 } 315 316 .`).concat(ec,` { 317 right: `).concat(a,"px ").concat(r,`; 318 } 319 320 .`).concat(tc,` { 321 margin-right: `).concat(a,"px ").concat(r,`; 322 } 323 324 .`).concat(ec," .").concat(ec,` { 325 right: 0 `).concat(r,`; 326 } 327 328 .`).concat(tc," .").concat(tc,` { 329 margin-right: 0 `).concat(r,`; 330 } 331 332 body[`).concat(Ii,`] { 333 `).concat(Oj,": ").concat(a,`px; 334 } 335`)},Fg=function(){var e=parseInt(document.body.getAttribute(Ii)||"0",10);return isFinite(e)?e:0},Xj=function(){b.useEffect(function(){return document.body.setAttribute(Ii,(Fg()+1).toString()),function(){var e=Fg()-1;e<=0?document.body.removeAttribute(Ii):document.body.setAttribute(Ii,e.toString())}},[])},Zj=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;Xj();var i=b.useMemo(function(){return Yj(s)},[s]);return b.createElement(Jj,{styles:Qj(i,!t,s,n?"":"!important")})},Vh=!1;if(typeof window<"u")try{var xl=Object.defineProperty({},"passive",{get:function(){return Vh=!0,!0}});window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{Vh=!1}var ei=Vh?{passive:!1}:!1,eN=function(e){return e.tagName==="TEXTAREA"},lx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eN(e)&&n[t]==="visible")},tN=function(e){return lx(e,"overflowY")},nN=function(e){return lx(e,"overflowX")},Ug=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=cx(e,r);if(s){var i=ux(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rN=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},sN=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cx=function(e,t){return e==="v"?tN(t):nN(t)},ux=function(e,t){return e==="v"?rN(t):sN(t)},iN=function(e,t){return e==="h"&&t==="rtl"?-1:1},oN=function(e,t,n,r,s){var i=iN(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),u=!1,h=o>0,d=0,p=0;do{if(!a)break;var f=ux(e,a),w=f[0],m=f[1],x=f[2],v=m-x-i*w;(w||v)&&cx(e,a)&&(d+=v,p+=w);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(h&&(Math.abs(d)<1||!s)||!h&&(Math.abs(p)<1||!s))&&(u=!0),u},kl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$g=function(e){return[e.deltaX,e.deltaY]},Bg=function(e){return e&&"current"in e?e.current:e},aN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lN=function(e){return` 336 .block-interactivity-`.concat(e,` {pointer-events: none;} 337 .allow-interactivity-`).concat(e,` {pointer-events: all;} 338`)},cN=0,ti=[];function uN(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),s=b.useState(cN++)[0],i=b.useState(ax)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=Rj([e.lockRef.current],(e.shards||[]).map(Bg),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var v=kl(m),g=n.current,y="deltaX"in m?m.deltaX:g[0]-v[0],S="deltaY"in m?m.deltaY:g[1]-v[1],_,T=m.target,C=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&C==="h"&&T.type==="range")return!1;var O=Ug(C,T);if(!O)return!0;if(O?_=C:(_=C==="v"?"h":"v",O=Ug(C,T)),!O)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=_),!_)return!0;var N=r.current||_;return oN(N,x,m,N==="h"?y:S,!0)},[]),l=b.useCallback(function(m){var x=m;if(!(!ti.length||ti[ti.length-1]!==i)){var v="deltaY"in x?$g(x):kl(x),g=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&aN(_.delta,v)}
vendor: 4,254 bytes, line 338
338)[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var y=(o.current.shards||[]).map(Bg).filter(Boolean).filter(function(_){return _.contains(x.target)}),S=y.length>0?a(x,y[0]):!o.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=b.useCallback(function(m,x,v,g){var y={name:m,delta:x,target:v,should:g,shadowParent:dN(v)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),h=b.useCallback(function(m){n.current=kl(m),r.current=void 0},[]),d=b.useCallback(function(m){u(m.type,$g(m),m.target,a(m,e.lockRef.current))},[]),p=b.useCallback(function(m){u(m.type,kl(m),m.target,a(m,e.lockRef.current))},[]);b.useEffect(function(){return ti.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ei),document.addEventListener("touchmove",l,ei),document.addEventListener("touchstart",h,ei),function(){ti=ti.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,ei),document.removeEventListener("touchmove",l,ei),document.removeEventListener("touchstart",h,ei)}},[]);var f=e.removeScrollBar,w=e.inert;return b.createElement(b.Fragment,null,w?b.createElement(i,{styles:lN(s)}):null,f?b.createElement(Zj,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hN=Uj(ox,uN);var dx=b.forwardRef(function(e,t){return b.createElement(ku,Kn({},e,{ref:t,sideCar:hN}))});dx.classNames=ku.classNames;var fN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ni=new WeakMap,Sl=new WeakMap,_l={},wd=0,hx=function(e){return e&&(e.host||hx(e.parentNode))},pN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hx(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},mN=function(e,t,n,r){var s=pN(t,Array.isArray(e)?e:[e]);_l[n]||(_l[n]=new WeakMap);var i=_l[n],o=[],a=new Set,l=new Set(s),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};s.forEach(u);var h=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(a.has(p))h(p);else try{var f=p.getAttribute(r),w=f!==null&&f!=="false",m=(ni.get(p)||0)+1,x=(i.get(p)||0)+1;ni.set(p,m),i.set(p,x),o.push(p),m===1&&w&&Sl.set(p,!0),x===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),a.clear(),wd++,function(){o.forEach(function(d){var p=ni.get(d)-1,f=i.get(d)-1;ni.set(d,p),i.set(d,f),p||(Sl.has(d)||d.removeAttribute(r),Sl.delete(d)),f||d.removeAttribute(n)}),wd--,wd||(ni=new WeakMap,ni=new WeakMap,Sl=new WeakMap,_l={})}},gN=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=fN(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),mN(r,s,n,"aria-hidden")):function(){return null}},fx="Dialog",[px,XI]=Da(fx),[ZI,Pn]=px(fx),mx="DialogTrigger",vN=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(mx,n),i=St(t,s.triggerRef);return c.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":kp(s.open),...r,ref:i,onClick:Ee(e.onClick,s.onOpenToggle)})});vN.displayName=mx;var bp="DialogPortal",[yN,gx]=px(bp,{forceMount:void 0}),vx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Pn(bp,t);return c.jsx(yN,{scope:t,forceMount:n,children:b.Children.map(r,o=>c.jsx(io,{present:n||i.open,children:c.jsx(ip,{asChild:!0,container:s,children:o})}))})};vx.displayName=bp;var Lc="DialogOverlay",yx=b.forwardRef((e,t)=>{const n=gx(Lc,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Pn(Lc,e.__scopeDialog);return i.modal?c.jsx(io,{present:r||i.open,children:c.jsx(bN,{...s,ref:t})}):null});yx.displayName=Lc;var wN=ma("DialogOverlay.RemoveScroll"),bN=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(Lc,n);return c.jsx(dx,{as:wN,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(Be.div,{"data-state":kp(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Vs="DialogContent",wx=b.forwardRef((e,t)=>
vendor: 4,365 bytes, lines 338-342
338{const n=gx(Vs,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Pn(Vs,e.__scopeDialog);return c.jsx(io,{present:r||i.open,children:i.modal?c.jsx(xN,{...s,ref:t}):c.jsx(kN,{...s,ref:t})})});wx.displayName=Vs;var xN=b.forwardRef((e,t)=>{const n=Pn(Vs,e.__scopeDialog),r=b.useRef(null),s=St(t,n.contentRef,r);return b.useEffect(()=>{const i=r.current;if(i)return gN(i)},[]),c.jsx(bx,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,i=>i.preventDefault())})}),kN=b.forwardRef((e,t)=>{const n=Pn(Vs,e.__scopeDialog),r=b.useRef(!1),s=b.useRef(!1);return c.jsx(bx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),bx=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=Pn(Vs,n),l=b.useRef(null),u=St(t,l);return Nj(),c.jsxs(c.Fragment,{children:[c.jsx(nx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:c.jsx(fu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":kp(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(SN,{titleId:a.titleId}),c.jsx(EN,{contentRef:l,descriptionId:a.descriptionId})]})]})}),xp="DialogTitle",xx=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(xp,n);return c.jsx(Be.h2,{id:s.titleId,...r,ref:t})});xx.displayName=xp;var kx="DialogDescription",Sx=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(kx,n);return c.jsx(Be.p,{id:s.descriptionId,...r,ref:t})});Sx.displayName=kx;var _x="DialogClose",Ex=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(_x,n);return c.jsx(Be.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>s.onOpenChange(!1))})});Ex.displayName=_x;function kp(e){return e?"open":"closed"}var Tx="DialogTitleWarning",[eL,Cx]=KE(Tx,{contentName:Vs,titleName:xp,docsSlug:"dialog"}),SN=({titleId:e})=>{const t=Cx(Tx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 339 340If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 341 342For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_N="DialogDescriptionWarning",EN=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Cx(_N).contentName}}.`;return b.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},TN=vx,Ax=yx,jx=wx,Nx=xx,Rx=Sx,CN=Ex;const AN=TN,Px=b.forwardRef(({className:e,...t},n)=>c.jsx(Ax,{ref:n,className:Ut("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Px.displayName=Ax.displayName;const jN=b.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(AN,{children:[c.jsx(Px,{}),c.jsxs(jx,{ref:r,className:Ut("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
342nded-lg",e),...n,children:[t,c.jsxs(CN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(gr,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jN.displayName=jx.displayName;const NN=b.forwardRef(({className:e,...t},n)=>c.jsx(Nx,{ref:n,className:Ut("text-lg font-semibold leading-none tracking-tight",e),...t}));NN.displayName=Nx.displayName;const RN=b.forwardRef(({className:e,...t},n)=>c.jsx(Rx,{ref:n,className:Ut("text-sm text-muted-foreground",e),...t}));RN.displayName=Rx.displayName;const PN={de:{stepsTag:"Teilnahme",stepsTitle:"5 Schritte zur Teilnahme",steps:[{title:"Informieren & Kontakt aufnehmen",sub:"Crece als koordinierende Organisation in Frankfurt kontaktieren."},{title:"Veranstaltung planen",sub:"Format festlegen: Workshop, Ausstellung, Vortrag, Theater, Kulturabend â¦"},{title:"Synchrones Event melden",sub:"Die offizielle Anmeldung im Programmheft ist geschlossen. Ihr könnt aber weiterhin Events melden, die parallel zur IKW stattfinden â nicht in der offiziellen Grilla, aber Teil der Woche durch die Synchronität."},{title:"Im Programm erscheinen & bewerben",sub:"Aufnahme ins offizielle Programmheft, kommunale Webseiten, lokale Presse."},{title:"Veranstaltung durchführen",sub:"Die IKW findet jährlich im Herbst statt â der Verein präsentiert sich Frankfurt!"}],compareTag:"Erwartungen",compareTitle:"Was Vereine bekommen â und was nicht",getTitle:"Was Vereine bekommen",notTitle:"Was Vereine nicht bekommen",get:["Eintrag im offiziellen IKW-Programmheft","Listung auf kommunalen Webseiten","Erwähnung in lokalen Medien","Zugang zu breitem Netzwerk in Frankfurt","Sichtbarkeit bei neuen Zielgruppen","Raum zur Präsentation eigener Projekte","Kennenlerntreffen aller Vereine im Sommer"],not:["Keine finanzielle Förderung","Keine garantierten Veranstaltungsräume","Keine technische Ausstattung","Kein garantiertes Publikum","Keine individuelle Werbekampagne","Keine Durchführungsunterstützung","Einzelpersonen nur mit Vereinsanbindung"],faqTag:"FAQ",faqTitle:"Häufige Fragen",faqs:[{q:"Wer darf mitmachen?",a:"Vereine, Initiativen, Bildungseinrichtungen, Religionsgemeinschaften und zivilgesellschaftliche Organisationen. Einzelpersonen können teilnehmen, aber nur in Kooperation mit einem angemeldeten Verein â nicht eigenständig."},{q:"Was kostet die Teilnahme?",a:"Die Anmeldung ist kostenlos. Kosten für Raum, Material und Technik trägt der Verein selbst. Es gibt keine finanzielle Förderung durch die IKW-Koordination."},{q:"Welche Veranstaltungsformate sind möglich?",a:"Das Format ist frei wählbar. Schwerpunkt der IKW Frankfurt 2026 liegt auf Theater, Musik, Tanz, Performances und Literatur. Auch Workshops, Ausstellungen, Lesungen und Diskussionsrunden sind willkommen."},{q:"Bis wann kann man ein Event melden?",a:"Die offizielle Anmeldefrist für das gedruckte IKW-Programmheft ist bereits abgelaufen. Ihr könnt uns jedoch weiterhin bis September 2026 Events melden, die parallel zur Interkulturellen Woche stattfinden. Diese Events sind nicht Teil der offiziellen Programmgrilla, aber Teil der Woche durch die zeitliche Synchronität."},{q:"Wann findet die IKW Frankfurt statt?",a:"Die Interkulturelle Woche findet jährlich im Herbst statt. Die Eröffnung 2026 wird von crece e.V. gemeinsam mit enie e.V., La CompañÃa del Sur und allen teilnehmenden Vereinen gestaltet."},{q:"Wird unsere Veranstaltung automatisch beworben?",a:"Angemeldete Veranstaltungen erscheinen im offiziellen IKW-Programmheft und auf kommunalen Webseiten. Eine individuelle Werbekampagne gibt es nicht â die eigene Mobilisierung bleibt Aufgabe des Vereins."},{q:"Was bringt die Teilnahme für unseren Verein konkret?",a:"Neue Zielgruppen, Kooperationen mit anderen Frankfurter Organisationen und Sichtbarkeit in einem bundesweit anerkannten Rahmen. Besonders wertvoll: das Sommertreffen, bei dem alle teilnehmenden Vereine gemeinsam planen und sich ver
342netzen."}],popupTitle:"Mitmachen bei der IKW 2026?",popupBody:"Schau dir die 5 Schritte zur Teilnahme an â so wird euer Verein Teil der Interkulturellen Woche Frankfurt.",popupCta:"5 Schritte ansehen",popupDismiss:"Später"},es:{stepsTag:"Participación",stepsTitle:"5 pasos para participar",steps:[{title:"Informarse y contactar",sub:"Contactar a Crece como organización coordinadora en Frankfurt."},{title:"Planificar la actividad",sub:"Definir formato: taller, exposición, charla, teatro, velada culturalâ¦"},{title:"Notificar evento sincrónico",sub:"La inscripción oficial en el programa impreso ya cerró. Aún puedes notificarnos actividades que ocurran en paralelo a la IKW â no formarán parte de la grilla oficial, pero sà de la semana gracias a la sincronÃa temporal."},{title:"Aparecer en el programa y difundir",sub:"Inclusión en el programa oficial, webs municipales y prensa local."},{title:"Realizar la actividad",sub:"La IKW se celebra cada otoño â ¡la asociación se presenta a Frankfurt!"}],compareTag:"Expectativas",compareTitle:"Qué reciben las asociaciones â y qué no",getTitle:"Qué reciben las asociaciones",notTitle:"Qué no reciben las asociaciones",get:["Entrada en el programa oficial de la IKW","Listado en webs municipales","Mención en medios locales","Acceso a una amplia red en Frankfurt","Visibilidad ante nuevos públicos","Espacio para presentar sus proyectos","Encuentro de todas las asociaciones en verano"],not:["Sin financiación económica","Sin espacios garantizados","Sin equipamiento técnico","Sin público garantizado","Sin campaña publicitaria individual","Sin apoyo en la ejecución","Personas individuales solo a través de una asociación"],faqTag:"FAQ",faqTitle:"Preguntas frecuentes",faqs:[{q:"¿Quién puede participar?",a:"Asociaciones, iniciativas, instituciones educativas, comunidades religiosas y organizaciones de la sociedad civil. Las personas individuales pueden participar solo en cooperación con una asociación inscrita â no de forma autónoma."},{q:"¿Cuánto cuesta participar?",a:"La inscripción es gratuita. Los costes de espacio, material y técnica los asume la propia asociación. No hay financiación por parte de la coordinación de la IKW."},{q:"¿Qué formatos son posibles?",a:"El formato es libre. El eje de la IKW Frankfurt 2026 son teatro, música, danza, performance y literatura. También talleres, exposiciones, lecturas y debates son bienvenidos."},{q:"¿Hasta cuándo se puede notificar un evento?",a:"El plazo de inscripción oficial en el programa impreso de la IKW ya terminó. Sin embargo, hasta septiembre de 2026 puedes notificarnos eventos que se realizarán en paralelo a la Semana Intercultural. Estos eventos no forman parte de la grilla oficial, pero sà de la semana gracias a la sincronÃa temporal."},{q:"¿Cuándo se celebra la IKW Frankfurt?",a:"La Semana Intercultural se celebra cada otoño. La apertura 2026 será organizada por crece e.V. junto a enie e.V., La CompañÃa del Sur y todas las asociaciones participantes."},{q:"¿Se promociona automáticamente nuestra actividad?",a:"Las actividades inscritas aparecen en el programa oficial y en las webs municipales. No hay campaña publicitaria individual â la propia movilización sigue siendo tarea de la asociación."},{q:"¿Qué aporta participar a nuestra asociación?",a:"Nuevos públicos, cooperaciones con otras organizaciones de Frankfurt y visibilidad en un marco reconocido a nivel federal. Especialmente valioso: el encuentro de verano para planificar y conectar entre asociaciones."}],popupTitle:"¿Participar en la IKW 2026?",popupBody:"Mira los 5 pasos para participar â asà tu asociación forma parte de la Semana Intercultural Frankfurt.",popupCta:"Ver los 5 pasos",popupDismiss:"Más tarde"},en:{stepsTag:"Participation",stepsTitle:"5 steps to take part",steps:[{title:"Get informed & make contact",sub:"Reach out to Crece as the coordinating organisation in Frankfurt."},{title:"Plan the event",sub:"Decide on a format: workshop, exhibition, talk, theatre, cultural eveningâ¦"},{title:"Notify a synchronous event",sub:"Official registration for the printed programme has closed. You can still notify us of events running in parallel to the IKW â not part of the official grid, but part of the week through temporal synchrony."}
342,{title:"Appear in the programme & promote",sub:"Inclusion in the official programme, municipal websites and local press."},{title:"Run the event",sub:"The IKW takes place every autumn â your association presents itself to Frankfurt!"}],compareTag:"Expectations",compareTitle:"What associations get â and what they don't",getTitle:"What associations get",notTitle:"What associations don't get",get:["Listing in the official IKW programme","Listing on municipal websites","Mention in local media","Access to a wide network in Frankfurt","Visibility to new audiences","Space to present their own projects","Summer meeting of all associations"],not:["No financial funding","No guaranteed venues","No technical equipment","No guaranteed audience","No individual advertising campaign","No production support","Individuals only via a registered association"],faqTag:"FAQ",faqTitle:"Frequently asked questions",faqs:[{q:"Who can take part?",a:"Associations, initiatives, educational institutions, religious communities and civil society organisations. Individuals can take part only in cooperation with a registered association â not on their own."},{q:"What does it cost?",a:"Registration is free. Costs for venue, materials and technology are covered by the association itself. There is no funding from the IKW coordination."},{q:"Which event formats are possible?",a:"The format is open. The focus of IKW Frankfurt 2026 is theatre, music, dance, performance and literature. Workshops, exhibitions, readings and discussions are also welcome."},{q:"Until when can events be notified?",a:"The official registration deadline for the printed IKW programme has passed. However, until September 2026 you can still notify us of events running in parallel to the Intercultural Week. These events are not part of the official grid, but they are part of the week through temporal synchrony."},{q:"When does the IKW take place?",a:"The Intercultural Week takes place every autumn. The 2026 opening will be hosted by crece e.V. together with enie e.V., La CompañÃa del Sur and all participating associations."},{q:"Will our event be promoted automatically?",a:"Registered events appear in the official IKW programme and on municipal websites. There is no individual advertising campaign â mobilising your own audience remains the association's task."},{q:"What concretely does our association gain?",a:"New audiences, cooperation with other Frankfurt organisations and visibility within a nationally recognised framework. Especially valuable: the summer meeting where all participating associations plan and connect."}],popupTitle:"Take part in IKW 2026?",popupBody:"Have a look at the 5 steps to take part â how your association becomes part of the Intercultural Week Frankfurt.",popupCta:"See the 5 steps",popupDismiss:"Later"}},ON=()=>{const{lang:e}=gt(),t=PN[e],[n,r]=b.useState(0);return c.jsx("section",{id:"faq",className:"relative py-20",children:c.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[c.jsxs("div",{children:[c.jsxs("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-accent inline-flex items-center gap-2",children:[c.jsx(VT,{className:"h-4 w-4"})," ",t.faqTag]}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:t.faqTitle})]}),c.jsx("div",{className:"mt-10 flex flex-col gap-2",children:t.faqs.map((s,i)=>{const o=n===i;return c.jsxs("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[c.jsxs("button",{onClick:()=>r(o?null:i),className:"w-full flex items-start gap-3 px-4 py-3.5 text-left hover:bg-muted/40 transition-colors","aria-expanded":o,children:[c.jsx("span",{className:"shrink-0 mt-0.5 inline-flex h-6 w-6 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground",children:i+1}),c.jsx("span",{className:"flex-1 text-sm sm:text-base font-medium leading-snug",children:s.q}),c.jsx(cp,{className:`h-4 w-4 mt-1 text-muted-foreground transition-transform ${o?"rotate-180":""}`})]}),o&&c.jsx("div",{className:"px-4 pb-4 pl-[3.25rem] text-sm text-muted-foreground leading-relaxed",children:s.a})]},i)})})]})})};function IN(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
342return new(n||(n=Promise))(function(i,o){function a(h){try{u(r.next(h))}catch(d){o(d)}}function l(h){try{u(r.throw(h))}catch(d){o(d)}}function u(h){h.done?i(h.value):s(h.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const LN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Sp extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class DN extends Sp{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Wg extends Sp{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Vg extends Sp{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Hh;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Hh||(Hh={}));class MN{constructor(t,{headers:n={},customFetch:r,region:s=Hh.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=LN(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return IN(this,arguments,void 0,function*(n,r={}){var s,i;let o,a,l;try{const{headers:u,method:h,body:d,signal:p,timeout:f}=r;let w={},{region:m}=r;m||(m=this.region);const x=new URL(`${this.url}/${n}`);m&&m!=="any"&&(w["x-region"]=m,x.searchParams.set("forceFunctionRegion",m));let v;const g=!!u&&Object.keys(u).some(O=>O.toLowerCase()==="content-type");d&&!g?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(w["Content-Type"]="application/octet-stream",v=d):typeof d=="string"?(w["Content-Type"]="text/plain",v=d):typeof FormData<"u"&&d instanceof FormData?v=d:(w["Content-Type"]="application/json",v=JSON.stringify(d)):d&&typeof d!="string"&&!(typeof Blob<"u"&&d instanceof Blob)&&!(d instanceof ArrayBuffer)&&!(typeof FormData<"u"&&d instanceof FormData)?v=JSON.stringify(d):v=d;let y=p;f&&(a=new AbortController,o=setTimeout(()=>a.abort(),f),p?(y=a.signal,l=()=>a.abort(),p.addEventListener("abort",l)):y=a.signal);const S=yield this.fetch(x.toString(),{method:h||"POST",headers:Object.assign(Object.assign(Object.assign({},w),this.headers),u),body:v,signal:y}).catch(O=>{throw new DN(O)}),_=S.headers.get("x-relay-error");if(_&&_==="true")throw new Wg(S);if(!S.ok)throw new Vg(S);let T=((s=S.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim().toLowerCase(),C;return T==="application/json"?C=yield S.json():T==="application/octet-stream"||T==="application/pdf"?C=yield S.blob():T==="text/event-stream"?C=S:T==="multipart/form-data"?C=yield S.formData():C=yield S.text(),{data:C,error:null,response:S}}catch(u){return{data:null,error:u,response:u instanceof Vg||u instanceof Wg?u.context:void 0}}finally{o&&clearTimeout(o),l&&((i=r.signal)===null||i===void 0||i.removeEventListener("abort",l))}})}}const Ox=3,Hg=e=>Math.min(1e3*2**e,3e4),zN=[520,503],Ix=["GET","HEAD","OPTIONS"];var Kg=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
342de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function qg(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function FN(e,t,n,r){return!(!r||n>=Ox||!Ix.includes(e)||!zN.includes(t))}var UN=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const u={};n.headers.forEach((d,p)=>{u[p]=d}),o>0&&(u["X-Retry-Count"]=String(o));let h;try{h=await r(n.url.toString(),{method:n.method,headers:u,body:JSON.stringify(n.body,(d,p)=>typeof p=="bigint"?p.toString():p),signal:n.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!Ix.includes(n.method))throw d;if(n.retryEnabled&&o<Ox){const p=Hg(o);o++,await qg(p,n.signal);continue}throw d}if(FN(n.method,h.status,o,n.retryEnabled)){var a,l;const d=(a=(l=h.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,p=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:Hg(o);await h.text(),o++,await qg(p,n.signal);continue}return await n.processResponse(h)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var a;let l="",u="",h="";const d=o==null?void 0:o.cause;if(d){var p,f,w,m;const g=(p=d==null?void 0:d.message)!==null&&p!==void 0?p:"",y=(f=d==null?void 0:d.code)!==null&&f!==void 0?f:"";l=`${(w=o==null?void 0:o.name)!==null&&w!==void 0?w:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 343 344Caused by: ${(m=d==null?void 0:d.name)!==null&&m!==void 0?m:"Error"}: ${g}`,y&&(l+=` (${y})`),d!=null&&d.stack&&(l+=` 345${d.stack}`)}else{var x;l=(x=o==null?void 0:o.stack)!==null&&x!==void 0?x:""}const v=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(h="",u="Request was aborted (timeout or manual cancellation)",v>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${v} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(h="",u="HTTP headers exceeded server limits (typically 16KB)",v>this.urlLengthLimit&&(u+=`. Your request URL is ${v} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:u,code:h},data:null,count:null,status:0,statusText:""}}
345)),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,o=e.statusText;if(e.ok){var a,l;if(t.method!=="HEAD"){var u;const p=await e.text();if(p!=="")if(t.headers.get("Accept")==="text/csv")r=p;else if(t.headers.get("Accept")&&(!((u=t.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text")))r=p;else try{r=JSON.parse(p)}catch{if(n={message:p},r=null,t.shouldThrowOnError)throw new Kg({message:p,details:"",hint:"",code:""})}}const h=(a=t.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),d=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");h&&d&&d.length>1&&(s=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const h=await e.text();try{n=JSON.parse(h),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,o="OK")}catch{e.status===404&&h===""?(i=204,o="No Content"):n={message:h}}if(n&&t.shouldThrowOnError)throw new Kg(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},$N=class extends UN{throwOnError(){return super.throwOnError()}select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Gg=new RegExp("[,()]");var li=class extends $N{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Gg.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Gg.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
345n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},BN=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new li({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
3450){const l=[...new Set(a)].map(u=>`"${u}"`);i.searchParams.set("columns",l.join(","))}}return new li({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((h,d)=>h.concat(Object.keys(d)),[]);if(u.length>0){const h=[...new Set(u)].map(d=>`"${d}"`);a.searchParams.set("columns",h.join(","))}}return new li({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new li({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new li({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function ba(e){"@babel/helpers - typeof";return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ba(e)}function WN(e,t){if(ba(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ba(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VN(e){var t=WN(e,"string");return ba(t)=="symbol"?t:t+""}function HN(e,t,n){return(t=VN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yg(Object(n),!0).forEach(function(r){HN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var KN=class Lx{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:a}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(u,h)=>{const d=new AbortController,p=setTimeout(()=>d.abort(),i),f=h==null?void 0:h.signal;if(f){if(f.aborted)return clearTimeout(p),l(u,h);const w=()=>{clearTimeout(p),d.abort()};return f.addEventListener("abort",w,{once:!0}),l(u,El(El({},h),{},{signal:d.signal})).finally(()=>{clearTimeout(p),f.removeEventListener("abort",w)})}return l(u,El(El({},h),{},{signal:d.signal})).finally(()=>clearTimeout(p))}:this.fetch=l,this.retry=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new BN(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new Lx(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const h=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(h)),d=r&&Object.values(n).some(h);d?(a="POST",u=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,w])=>w!==void 0).map(([f,w])=>[f,Array.isArray(w)?`{${w.join(",")}}`:`${w}
345`]).forEach(([f,w])=>{l.searchParams.append(f,w)})):(a="POST",u=n);const p=new Headers(this.headers);return d?p.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&p.set("Prefer",`count=${i}`),new li({method:a,url:l,headers:p,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class qN{constructor(){}static detectEnvironment(){var t;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"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const s=globalThis.process;if(s){const i=s.versions;if(i&&i.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 346 347Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const GN="2.110.8",YN=`realtime-js/${GN}`,JN="1.0.0",Dx="2.0.0",QN=Dx,XN=1e4,ZN=100,zr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Mx={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Kh={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class e2{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=new TextEncoder,a=o.encode(t.topic),l=o.encode((s=t.ref)!==null&&s!==void 0?s:""),u=o.encode((i=t.join_ref)!==null&&i!==void 0?i:""),h=o.encode(t.payload.event),d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},p=o.encode(Object.keys(d).length===0?"":JSON.stringify(d));if(u.length>255)throw new Error(`joinRef length ${u.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`userEvent length ${h.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`metadata length ${p.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+u.length+l.length+a.length+h.length+p.length,w=new ArrayBuffer(this.HEADER_LENGTH+f),m=new DataView(w),x=new Uint8Array(w);let v=0;m.setUint8(v++,this.KINDS.userBroadcastPush),m.setUint8(v++,u.length),m.setUint8(v++,l.length),m.setUint8(v++,a.length),m.setUint8(v++,h.length),m.setUint8(v++,p.length),m.setUint8(v++,n),x.set(u,v),v+=u.length,x.set(l,v),v+=l.length,x.set(a,v),v+=a.length,x.set(h,v),v+=h.length,x.set(p,v),v+=p.length;var g=new Uint8Array(w.byteLength+r.byteLength);return g.set(new Uint8Array(w),0),g.set(new Uint8Array(r),w.byteLength),g.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;
347return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+s));l=l+s;const h=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const p=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(p)):p,w={type:this.BROADCAST_EVENT,event:h,payload:f};return o>0&&(w.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var ye;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ye||(ye={}));const Jg=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=t2(o,e,t,s),i),{}):{}},t2=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?zx(i,o):qh(o)},zx=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return i2(t,n)}switch(e){case ye.bool:return n2(t);case ye.float4:case ye.float8:case ye.int2:case ye.int4:case ye.int8:case ye.numeric:case ye.oid:return r2(t);case ye.json:case ye.jsonb:return s2(t);case ye.timestamp:return o2(t);case ye.abstime:case ye.date:case ye.daterange:case ye.int4range:case ye.int8range:case ye.money:case ye.reltime:case ye.text:case ye.time:case ye.timestamptz:case ye.timetz:case ye.tsrange:case ye.tstzrange:return qh(t);default:return qh(t)}},qh=e=>e,n2=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},r2=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},s2=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},i2=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>zx(t,a))}return e},o2=e=>typeof e=="string"?e.replace(" ","T"):e,Fx=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Li=e=>typeof e=="function"?e:function(){return e},a2=typeof self<"u"?self:null,ci=typeof window<"u"?window:null,Un=a2||ci||globalThis,l2="2.0.0",c2=1e4,u2=1e3,d2=100,Vn={connecting:0,open:1,closing:2,closed:3},Rt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},lr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Gh={longpoll:"longpoll",websocket:"websocket"},h2={complete:4},Yh="base64url.bearer.phx.",Tl=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}
vendor: 21,891 bytes, lines 347-348
347matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Ux=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},f2=class{constructor(e,t,n){this.state=Rt.closed,this.topic=e,this.params=Li(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Tl(this,lr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Ux(()=>{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=Rt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Rt.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=Rt.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=Rt.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 Tl(this,lr.leave,Li({}),this.timeout).send(),this.state=Rt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(lr.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Rt.closed,this.bindings=[]}onClose(e){this.on(lr.close,e)}onError(e){return this.on(lr.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Tl(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Rt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(lr.close,"leave")},n=new Tl(this,lr.leave,Li({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Rt.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Rt.closed}isErrored(){return this.state===Rt.errored}isJoined(){return this.state===Rt.joined}isJoining(){return this.state===Rt.joining}isLeaving(){return this.state===Rt.leaving}},Dc=class{static request(e,t,n,r,s,i,o){if(Un.XDomainRequest){let a=new Un.XDomainRequest;return this.xdomainRequest(a,e,t,r,s,i,o)}else if(Un.XMLHttpRequest){let a=new Un.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,s,i,o)}else{if(Un.fetch&&Un.AbortController)return this.fetchRequest(e,t,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,o){let a={method:e,headers:n,body:r},l=null;return s&&(l=new AbortController,setTimeout(()=>l.abort(),s),a.signal=l.signal),Un.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&i?i():o&&o(null)}),l}static xdomainRequest(e,t,n,r,s,i,o){return e.timeout=s,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,o,a){e.open(t,n,!0),e.timeout=i;for(let[l,u]of Object.entries(r))e.setRequestHeader(l,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===h2.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},p2=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},ri=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Yh)&&(this.authToken=atob(t[1].slice(Yh.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Vn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Gh.websocket),"$1/"+Gh.longpoll)}endpointURL(){return Dc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Vn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Vn.open||this.readyState===Vn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Vn.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(e){typeof e!="string"&&(e=p2(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;const n=t+d2,r=e.slice(t,n);this.ajax("POST",{"Content-Type":"application/x-ndjson"},r.join(` 348`),()=>this.onerror("timeout"),s=>{!s||s.status!==200?(this.awaitingBatchAck=!1,this.onerror(s&&s.status),this.closeAndRetry(1011,"internal server error",!1)):n<e.length?this.batchSend(e,n):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=Vn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=Dc.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},m2=class Io{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state=Object.create(null),this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Io.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Io.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=Io.syncDiff(this.state,s,i,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Io.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.toNullProtoObj(this.clone(t));n=this.toNullProtoObj(n);let o=Object.create(null),a=Object.create(null);return this.map(i,(l,u)=>{n[l]||(a[l]=u)}),this.map(n,(l,u)=>{let h=i[l];if(h){let d=u.metas.map(m=>m.phx_ref),p=h.metas.map(m=>m.phx_ref),f=u.metas.filter(m=>p.indexOf(m.phx_ref)<0),w=h.metas.filter(m=>d.indexOf(m.phx_ref)<0);f.length>0&&(o[l]=u,o[l].metas=f),w.length>0&&(a[l]=this.clone(h),a[l].metas=w)}else o[l]=u}),this.syncDiff(i,{joins:o,leaves:a},r,s)}static syncDiff(t,n,r,s){t=this.toNullProtoObj(t);let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(a,l)=>{let u=t[a];if(t[a]=this.clone(l),u){let h=t[a].metas.map(p=>p.phx_ref),d=u.metas.filter(p=>h.indexOf(p.phx_ref)<0);t[a].metas.unshift(...d)}r(a,u,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;let h=l.metas.map(d=>d.phx_ref);u.metas=u.metas.filter(d=>h.indexOf(d.phx_ref)<0),s(a,u,l),u.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static toNullProtoObj(t){if(Object.getPrototypeOf(t)===null)return t;let n=Object.create(null);return Object.getOwnPropertyNames(t).forEach(r=>{n[r]=t[r]}),n}static clone(t){return JSON.parse(JSON.stringify(t))}},Cl={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,o=new TextEncoder,a=o.encode(t),l=o.encode(n),u=o.encode(s),h=o.encode(r);this.assertFieldSize(a.byteLength,"join_ref"),this.assertFieldSize(l.byteLength,"ref"),this.assertFieldSize(u.byteLength,"topic"),this.assertFieldSize(h.byteLength,"event");let d=this.META_LENGTH+a.byteLength+l.byteLength+u.byteLength+h.byteLength,p=new ArrayBuffer(this.HEADER_LENGTH+d),f=new Uint8Array(p),w=new DataView(p),m=0;w.setUint8(m++,this.KINDS.push),w.setUint8(m++,a.byteLength),w.setUint8(m++,l.byteLength),w.setUint8(m++,u.byteLength),w.setUint8(m++,h.byteLength),f.set(a,m),m+=a.byteLength,f.set(l,m),m+=l.byteLength,f.set(u,m),m+=u.byteLength,f.set(h,m),m+=h.byteLength;var x=new Uint8Array(p.byteLength+i.byteLength);return x.set(f,0),x.set(new Uint8Array(i),p.byteLength),x.buffer},assertFieldSize(e,t){if(e>255)throw new Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+s));o=o+s;let u=n.decode(e.slice(o,o+i));o=o+i;let h=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:u,payload:h}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let u=n.decode(e.slice(a,a+s));a=a+s;let h=n.decode(e.slice(a,a+i));a=a+i;let d=n.decode(e.slice(a,a+o));a=a+o;let p=e.slice(a,e.byteLength),f={status:d,response:p};return{join_ref:l,ref:u,topic:h,event:lr.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(e.slice(i,i+r));i=i+r;let a=n.decode(e.slice(i,i+s));i=i+s;let l=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},g2=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||c2,this.transport=t.transport||Un.WebSocket||ri,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=Un&&Un.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Cl.encode.bind(Cl),this.defaultDecoder=Cl.decode.bind(Cl),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ri?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;ci&&ci.addEventListener&&(ci.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),ci.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),ci.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,o)=>{console.log(`${s}: ${i}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Li(t.params||{}),this.endPoint=`${e}/${Gh.websocket}`,this.vsn=t.vsn||l2,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Ux(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken&&Li(t.authToken)}getLongPollTransport(){return ri}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Dc.appendParams(Dc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Li(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ri?this.connectWithFallback(ri,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case ri:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Yh}${btoa(this.authToken()).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),i=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),u2,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Vn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 348
348triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(lr.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Vn.connecting:return"connecting";case Vn.open:return"open";case Vn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new f2(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,s,o)&&l.trigger(r,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Go{constructor(t,n){const r=y2(n);this.presence=new m2(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=Go.onJoinPayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=Go.onLeavePayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Go.transformState(this.presence.state)}static transformState(t){return t=v2(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=nc(s),n},{})}static onJoinPayload(t,n,r){const s=Qg(n),i=nc(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=Qg(n),i=nc(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function nc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function v2(e){return JSON.parse(JSON.stringify(e))}function y2(e){return(e==null?void 0:e.events)&&{events:e.events}}function Qg(e){return e!=null&&e.metas?nc(e):[]}var Xg;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Xg||(Xg={}));class w2{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Go(this.channel.channelAdapter,n)}}function b2(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
348if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class x2{constructor(t,n,r){const s=k2(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>ZN){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===zr.joined}isJoined(){return this.state===zr.joined}isJoining(){return this.state===zr.joining}isClosed(){return this.state===zr.closed}isLeaving(){return this.state===zr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function k2(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const S2=/[,()"\\]/,_2=e=>S2.test(e)||e!==e.trim(),E2=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,Zg=e=>{const t=e===null?"null":String(e);return _2(t)?E2(t):t},T2=e=>e===null?"null":String(e),C2=(e,t)=>{if(e==="in"){const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(s=>Zg(s)).join(",")})`}return e==="is"?`is.${T2(t)}`:`${e}.${Zg(t)}`};class A2{constructor(){this.filters=[]}add(t,n,r,s=!1){const i=s?"not.":"";return this.filters.push(`${t}=${i}${C2(n,r)}`),this}eq(t,n){return this.add(t,"eq",n)}neq(t,n){return this.add(t,"neq",n)}gt(t,n){return this.add(t,"gt",n)}gte(t,n){return this.add(t,"gte",n)}lt(t,n){return this.add(t,"lt",n)}lte(t,n){return this.add(t,"lte",n)}in(t,n){return this.add(t,"in",n)}like(t,n){return this.add(t,"like",n)}ilike(t,n){return this.add(t,"ilike",n)}match(t,n){return this.add(t,"match",n)}imatch(t,n){return this.add(t,"imatch",n)}is(t,n){return this.add(t,"is",n)}isDistinct(t,n){return this.add(t,"isdistinct",n)}not(t,n,r){return this.add(t,n,r,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var ev;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(ev||(ev={}));var _i;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(_i||(_i={}));var cr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(cr||(cr={}));class Yo{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new x2(this.socket.socketAdapter,t,this.params),this.presence=new w2(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Fx(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],h=!!this.bindings[_i.PRESENCE]&&this.bindings[_i.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},p={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:h}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(cr.CHANNEL_ERROR,b2(f))}),this._onClose(()=>t==null?void 0:t(cr.CLOSED)),this.updateJoinPayload(Object.assign({config:p},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(cr.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=zr.errored;const w=Object.values(f).join(", ")||"error";t==null||t(cr.CHANNEL_ERROR,new Error(w,{cause:f}))}).receive("timeout",()=>{t==null||t(cr.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<i;a++){const l=s[a],{filter:{event:u,schema:h,table:d,filter:p}}=l,f=t&&t[a];if(f&&f.event===u&&Yo.isFilterValueEqual(f.schema,h)&&Yo.isFilterValueEqual(f.table,d)&&Yo.isFilterValueEqual(f.filter,p))o.push(Object.assign(Object.assign({},l),{id:f.id}));else{this.unsubscribe(),this.state=zr.errored,n==null||n(cr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=zr.errored&&n&&n(cr.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===_i.PRESENCE||t===_i.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n),o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a=new URL(this.broadcastEndpointURL);a.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&a.searchParams.set("private","true");const l={method:"POST",headers:o,body:i?n:JSON.stringify(n)},u=await this._fetchWithTimeout(a.toString(),l,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(u.status===202)return{success:!0};if(u.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
348ime-js/migrations/httpsend-server-version.md"));let h=u.statusText;try{const d=await u.json();h=d.error||d.message||h}catch{}return Promise.reject(new Error(h))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u instanceof Error&&u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(t,n,r){const s=t.toLocaleLowerCase(),i=n==null?void 0:n.filter;(i instanceof A2||typeof i=="object"&&i!==null&&typeof i.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:i.build()}));const o=this.channelAdapter.on(t,r),a={type:s,filter:n,callback:r,ref:o};return this.bindings[s]?this.bindings[s].push(a):this.bindings[s]=[a],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,o,a,l,u,h;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,r))return!1;const p=(s=this.bindings[d])===null||s===void 0?void 0:s.find(f=>f.ref===t.ref);if(!p)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in p){const f=p.id,w=(i=p.filter)===null||i===void 0?void 0:i.event;return f&&((o=n.ids)===null||o===void 0?void 0:o.includes(f))&&(w==="*"||(w==null?void 0:w.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const f=(u=(l=p==null?void 0:p.filter)===null||l===void 0?void 0:l.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return f==="*"||f===((h=n==null?void 0:n.event)===null||h===void 0?void 0:h.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=Mx;return n&&[r,s,i,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:a,type:l,errors:u}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:u}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Jg(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Jg(t.columns,t.old_record)),n}}class j2{constructor(t,n){this.socket=new g2(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Kh.connecting}isDisconnecting(){return this.socket.connectionState()==Kh.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const tv={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},N2=[1e3,2e3,5e3,1e4],R2=1e4;function P2(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function O2(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return P2()}const I2=` 349 addEventListener("message", (e) => { 350 if (e.data.event === "start") { 351 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 352 } 353 });`;class L2{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
353,this.ref=0,this.serializer=new e2,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 j2(t,s),this.httpEndpoint=Fx(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Kh.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Yo(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
353this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:YN};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(Mx.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n!=="disconnected"&&(n=="sent"&&this._setAuthSafely(),t&&t(n,r))}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([I2],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,a,l,u,h,d,p,f;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const w={};w.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:XN,w.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:tv.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:tv.HEARTBEAT_INTERVAL),w.transport=(l=t==null?void 0:t.transport)!==null&&l!==void 0?l:qN.getWebSocketConstructor(),w.params=t==null?void 0:t.params,w.logger=t==null?void 0:t.logger,w.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),w.sessionStorage=(u=t==null?void 0:t.sessionStorage)!==null&&u!==void 0?u:O2(),w.reconnectAfterMs=(h=t==null?void 0:t.reconnectAfterMs)!==null&&h!==void 0?h:g=>N2[g-1]||R2;let m,x;const v=(d=t==null?void 0:t.vsn)!==null&&d!==void 0?d:QN;switch(v){case JN:m=(g,y)=>y(JSON.stringify(g)),x=(g,y)=>y(JSON.parse(g));break;case Dx:m=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${w.vsn}`)}if(w.vsn=v,w.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:m,w.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:x,w.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,w.params=Object.assign(Object.assign({},w.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,w.autoSendHeartbeat=!this.worker}return w}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
353var xa=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function D2(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function M2(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function z2(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=D2(e.baseUrl,r,s),l=await M2(e.auth),u=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),h=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),p=d&&h?JSON.parse(h):h;if(!u.ok){const f=d?p:void 0,w=f==null?void 0:f.error;throw new xa((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:f})}return{status:u.status,headers:u.headers,data:p}}}}function Al(e){return e.join("�")}var F2=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Al(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Al(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Al(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Al(e.namespace)}`}),!0}catch(t){if(t instanceof xa&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof xa&&n.status===409)return;throw n}}};function si(e){return e.join("�")}var U2=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof xa&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof xa&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},$2=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=z2({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new F2(this.client,t),this.tableOps=new U2(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
353async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function B2(e,t){if(ka(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ka(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W2(e){var t=B2(e,"string");return ka(t)=="symbol"?t:t+""}function V2(e,t,n){return(t=W2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nv(Object(n),!0).forEach(function(r){V2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Su=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function _u(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Jh=class extends Su{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return Z({},super.toJSON())}},$x=class extends Su{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Mc(e,t,n){const r=Z({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function H2(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const K2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),q2=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qh=e=>{if(Array.isArray(e))return e.map(n=>Qh(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Qh(r)}),t},G2=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Bx=e=>e.split("/").map(encodeURIComponent).join("/"),rv=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},Y2=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;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+"";t(new Jh(rv(o),i,a,r))}).catch(()=>{const o=i+"";t(new Jh(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new $x(rv(e),e,r))},J2=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return Z(Z({},s),n);if(q2(r)){var i;const o=(t==null?void 0:t.headers)||{};let a;for(const[l,u]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=u);s.headers=Mc(o,"Content-Type",(i=a)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),Z(Z({},s),n)};async function To(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,J2(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const h=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};
353if(!h||!h.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>Y2(u,l,r,o))})}function Wx(e="storage"){return{get:async(t,n,r,s)=>To(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>To(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>To(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>To(t,"HEAD",n,Z(Z({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>To(t,"DELETE",n,s,i,r,e)}}const Q2=Wx("storage"),{get:Sa,post:xn,put:Xh,head:X2,remove:_a}=Q2,Ht=Wx("vectors");var co=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=H2(t),this.fetch=K2(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Mc(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(_u(n))return{data:null,error:n};throw n}}};let Vx;Vx=Symbol.toStringTag;var Z2=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Vx]="StreamDownloadBuilder",this.promise=null}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(_u(t))return{data:null,error:t};throw t}}};let Hx;Hx=Symbol.toStringTag;var eR=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Hx]="BlobDownloadBuilder",this.promise=null}asStream(){return new Z2(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(_u(t))return{data:null,error:t};throw t}}};const bd={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},sv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var tR=class extends co{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=Z(Z({},sv),r);let a=Z(Z({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers)for(const[p,f]of Object.entries(r.headers))a=Mc(a,p,f);const u=s._removeEmptyFolders(t),h=s._getFinalPath(u),d=await(e=="PUT"?Xh:xn)(s.fetch,`${s.url}/object/${h}`,i,Z({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const u=Z(Z({},sv),r);let h=Z(Z({},s.headers),{"x-upsert":String(u.upsert)});const d=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.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",u.cacheControl),d&&!l.has("metadata")&&l.append("metadata",s.encodeMetadata(d))):(l=n,h["cache-control"]=`max-age=${u.cacheControl}`,h["content-type"]=u.contentType,d&&(h["x-metadata"]=s.toBase64(s.encodeMetadata(d))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!u.duplex&&(u.duplex="half")),r!=null&&r.headers)for(const[p,f]of Object.entries(r.headers))h=Mc(h,p,f);return{path:i,fullPath:(await Xh(s.fetch,a.toString(),l,Z({headers:h},u!=null&&u.duplex?{duplex:u.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=Z({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await xn(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 Su("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await xn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
353stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await xn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await xn(r.fetch,`${r.url}/object/sign/${s}`,Z({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const a=new URLSearchParams;n!=null&&n.download&&a.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&a.set("cacheNonce",String(n.cacheNonce));const l=a.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await xn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(a=>Z(Z({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),a=()=>Sa(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new eR(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Qh(await Sa(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await X2(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(_u(s)){var r;const i=s instanceof Jh?s.status:s instanceof $x?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await _a(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=Bx(r._getFinalPath(e)),i=new URLSearchParams;t!=null&&t.transformations&&i.set("transformations","true");const o=i.toString();return await _a(r.fetch,`${r.url}/cdn/${s}${o?`?${o}`:""}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=t!=null&&t.sortBy?Z(Z({},bd.sortBy),t.sortBy):bd.sortBy,i=Z(Z(Z({},bd),t),{},{sortBy:s,prefix:e||""});return await xn(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=Z({},e);return await xn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
353ity",t.quality.toString()),e}};const nR="2.110.8",Fa={"X-Client-Info":`storage-js/${nR}`};var rR=class extends co{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=Z(Z({},Fa),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Sa(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Sa(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await xn(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Xh(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await xn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _a(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=new URLSearchParams;t!=null&&t.transformations&&s.set("transformations","true");const i=s.toString();return await _a(r.fetch,`${r.url}/cdn/${Bx(e)}${i?`?${i}`:""}`,{},{headers:r.headers},n)})}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},sR=class extends co{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Z(Z({},Fa),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await xn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Sa(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _a(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!G2(e))throw new Su("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 $2({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),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}}}}})}},iR=class extends co{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Z(Z({},Fa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Ht.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Ht.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},oR=class extends co{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Z(Z({},Fa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
353if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},aR=class extends co{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Z(Z({},Fa),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ht.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},lR=class extends aR{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new cR(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},cR=class extends iR{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new uR(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},uR=class extends oR{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},dR=class extends rR{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new tR(this.url,this.headers,e,this.fetch)}get vectors(){return new lR(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new sR(this.url+"/iceberg",this.headers,this.fetch)}};function Eu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const Kx="2.110.8",ur=30*1e3,Lo=3,xd=Lo*ur,hR=2*ur,fR="http://localhost:9999",pR="supabase.auth.token",mR={"X-Client-Info":`gotrue-js/${Kx}`},Zh="X-Supabase-Api-Version",qx={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},gR=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,vR=10*60*1e3;
353class Ea extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function W(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class yR extends Ea{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function wR(e){return W(e)&&e.name==="AuthApiError"}class Tn extends Ea{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Xn extends Ea{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Ye extends Xn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function jl(e){return W(e)&&e.name==="AuthSessionMissingError"}class ii extends Xn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Nl extends Xn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Rl extends Xn{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function bR(e){return W(e)&&e.name==="AuthImplicitGrantRedirectError"}class iv extends Xn{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class xR extends Xn{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 ef extends Xn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Pl(e){return W(e)&&e.name==="AuthRetryableFetchError"}class ov extends Xn{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function kR(e){return W(e)&&e.name==="AuthRefreshDiscardedError"}class av extends Xn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class zc extends Xn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Fc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),lv=` 354\r=`.split(""),SR=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<lv.length;t+=1)e[lv[t].charCodeAt(0)]=-2;for(let t=0;t<Fc.length;t+=1)e[Fc[t].charCodeAt(0)]=t;return e})();function cv(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Fc[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Fc[r]),t.queuedBits-=6}}function Gx(e,t,n){const r=SR[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function uv(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{TR(o,r,n)};for(let o=0;o<e.length;o+=1)Gx(e.charCodeAt(o),s,i);return t.join("")}function _R(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function ER(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}_R(r,t)}}function TR(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Di(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Gx(e.charCodeAt(s),n,r);return new Uint8Array(t)}function CR(e){const t=[];return ER(e,n=>t.push(n)),new Uint8Array(t)}function As(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>cv(s,n,r)),cv(null,n,r),t.join("")}function AR(e){return Math.round(Date.now()/1e3)+e}function jR(){return Symbol("auth-callback")}const dt=()=>typeof window<"u"&&typeof document<"u",vs={tested:!1,writable:!1},Yx=()=>
354{if(!dt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(vs.tested)return vs.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),vs.tested=!0,vs.writable=!0}catch{vs.tested=!0,vs.writable=!1}return vs.writable};function NR(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const Jx=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),RR=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ui=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},gn=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},ze=async(e,t)=>{await e.removeItem(t)};class Tu{constructor(){this.promise=new Tu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Tu.promiseConstructor=Promise;function Ol(e){const t=e.split(".");if(t.length!==3)throw new zc("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!gR.test(t[r]))throw new zc("JWT not in base64url format");return{header:JSON.parse(uv(t[0])),payload:JSON.parse(uv(t[1])),signature:Di(t[2]),raw:{header:t[0],payload:t[1]}}}async function PR(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function OR(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function IR(e){return("0"+e.toString(16)).substr(-2)}function LR(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,IR).join("")}async function DR(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function MR(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await DR(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ys(e,t,n=!1){const r=LR();let s=r;n&&(s+="/recovery"),await ui(e,`${t}-code-verifier`,s);const i=await MR(r);return[i,r===i?"plain":"s256"]}const zR=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function FR(e){const t=e.headers.get(Zh);if(!t||!t.match(zR))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function UR(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function $R(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const BR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function sr(e){if(!BR.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function yn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function kd(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function WR(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
354if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function dv(e){return JSON.parse(JSON.stringify(e))}const Ss=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},VR=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function hv(e){var t;if(!RR(e))throw new ef(Ss(e),0);if(VR.includes(e.status))throw new ef(Ss(e),e.status);let n;try{n=await e.json()}catch(i){throw new Tn(Ss(i),i)}let r;const s=FR(e);if(s&&s.getTime()>=qx["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 av(Ss(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Ye}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 av(Ss(n),e.status,n.weak_password.reasons);throw new yR(Ss(n),e.status||500,r)}const HR=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function Y(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Zh]||(i[Zh]=qx["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 KR(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function KR(e,t,n,r,s,i){const o=HR(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw new ef(Ss(l),0)}if(a.ok||await hv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await hv(l)}}function en(e){var t;let n=null;YR(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=AR(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:n,user:r},error:null}}function fv(e){const t=en(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Fr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function qR(e){return{data:e,error:null}}function GR(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Eu(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function pv(e){return e}function YR(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Sd=["global","local","others"];class JR{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=Jx(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 354
354async signOut(t,n=Sd[0]){if(Sd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Sd.join(", ")}`);try{return await Y(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await Y(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Fr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Eu(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await Y(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:GR,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(W(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await Y(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Fr})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},h=await Y(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:pv});if(h.error)throw h.error;const d=await h.json(),p=(o=h.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=h.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(w=>{const m=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(W(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){sr(t);try{return await Y(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Fr})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){sr(t);try{return await Y(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Fr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){sr(t);try{return await Y(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Fr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){sr(t.userId);try{const{data:n,error:r}=await Y(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _deleteFactor(t){sr(t.userId),sr(t.id);try{return{data:await Y(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},h=await Y(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:pv});if(h.error)throw h.error;const d=await h.json(),p=(o=h.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=h.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(w=>{const m=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(W(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await Y(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await Y(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await Y(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await Y(this.fetch,"DELET
354E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await Y(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await Y(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(W(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await Y(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await Y(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await Y(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await Y(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){yn(this.experimental),sr(t.userId);try{return await Y(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){yn(this.experimental),sr(t.userId),sr(t.passkeyId);try{return await Y(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}}function mv(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&Yx()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class QR extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function XR(){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 Qx(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function ZR(e){return parseInt(e,16)}function eP(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function tP(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:h,uri:d,version:p}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 355`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=Qx(e.address),w=h?`${h}://${r}`:r,m=e.statement?`${e.statement} 356`:"",x=`${w} wants you to sign in with your Ethereum account: 357${f} 358 359${m}`;let v=`URI: ${d} 360Version: ${p} 361Chain ID: ${n}${o?` 362Nonce: ${o}`:""} 363Issued At: ${i.toISOString()}`;if(s&&(v+=` 364Expiration Time: ${s.toISOString()}`),a&&(v+=` 365Not Before: ${a.toISOString()}`),l&&(v+=` 366Request ID: ${l}`),u){let g=` 367Resources:`;
367for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);g+=` 368- ${y}`}v+=g}return`${x} 369${v}`}class Fe extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Uc extends Fe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function nP({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Fe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Fe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Fe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Fe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Fe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Fe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Fe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Fe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(Xx(o)){if(i.rp.id!==o)return new Fe({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Fe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Fe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Fe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Fe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function rP({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Fe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Fe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(Xx(r)){if(n.rpId!==r)return new Fe({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Fe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Fe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
369ROR",cause:e})}return new Fe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class sP{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const tf=new sP;function gv(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Eu(e,["challenge","user","excludeCredentials"]),i=Di(t).buffer,o=Object.assign(Object.assign({},n),{id:Di(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Di(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function vv(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Eu(e,["challenge","allowCredentials"]),s=Di(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Di(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function yv(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:As(new Uint8Array(e.response.attestationObject)),clientDataJSON:As(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function wv(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:As(new Uint8Array(s.authenticatorData)),clientDataJSON:As(new Uint8Array(s.clientDataJSON)),signature:As(new Uint8Array(s.signature)),userHandle:s.userHandle?As(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Xx(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function $c(){var e,t;return!!(dt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function Zx(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Uc("Browser returned unexpected credential type",t)}:{data:null,error:new Uc("Empty credential response",t)}}catch(t){return{data:null,error:nP({error:t,options:e})}}}async function e1(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Uc("Browser returned unexpected credential type",t)}:{data:null,error:new Uc("Empty credential response",t)}}catch(t){return{data:null,error:rP({error:t,options:e})}}}const iP={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},oP={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Bc(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=Bc(a,o):r[i]=Bc(o)}else r[i]=o}return r}function aP(e,t){return Bc(iP,e,t||{})}function lP(e,t){return Bc(oP,e,t||{})}class cP{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=s??tf.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:h}=a.webauthn.credential_options.publicKey;if(!h.name){const d=r;if(d)h.name=`${h.id}:${d}`;else{const f=(await this.client.getUser()).data.user,w=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";h.name=`${h.id}:${w}`}}h.displayName||(h.displayName=h.name)}switch(a.webauthn.type){case"create":{const h=aP(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:p}=await Zx({publicKey:h,signal:u});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:p}}case"request":{const h=lP(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:p}=await e1(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:h,signal:u}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:p}}}}catch(a){return W(a)?{data:null,error:a}:{data:null,error:new Tn("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Ea("rpId is required for WebAuthn authentication")};try{if(!$c())return{data:null,error:new Tn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return W(o)?{data:null,error:o}:{data:null,error:new Tn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Ea("rpId is required for WebAuthn registration")};try{if(!$c())return{data:null,error:new Tn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(h=>{var d;return(d=h.data)===null||d===void 0?void 0:d.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(h=>h?this.client.mfa.unenroll({factorId:h==null?void 0:h.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return W(o)?{data:null,error:o}:{data:null,error:new Tn("Unexpected error in register",o)}}}}XR();const uP={url:fR,storageKey:pR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:mR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},oi={};class Ta{get jwks(){var t,n;return(n=(t=oi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){oi[this.storageKey]=Object.assign(Object.assign({},oi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=oi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){oi[this.storageKey]=Object.assign(Object.assign({},oi[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},uP),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ta.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ta.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&dt()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(r=i.experimental)!==null&&r!==void 0?r:{},this.admin=new JR({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=Jx(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock),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 cP(this)}
369,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?(i.storage?this.storage=i.storage:Yx()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=mv(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=mv(this.memoryStorage)),dt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),(o.data.event==="TOKEN_REFRESHED"||o.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Kx}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){var t;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const n=await this.initializePromise,r=(t=this._pendingInitNotifications)!==null&&t!==void 0?t:[];this._pendingInitNotifications=null;for(const s of r)await this._notifyAllSubscribers(s.event,s.session,s.broadcast);return n}async _initialize(){var t;try{let n={},r="none";if(dt()&&(n=NR(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),dt()&&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),bR(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return W(n)?this._returnResult({error:n}):this._returnResult({error:new Tn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await Y(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:en}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(W(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:h,password:d,options:p}=t;let f=null,w=null;this.flowType==="pkce"&&([f,w]=await ys(this.storage,this.storageKey)),i=await Y(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:h,password:d,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:w},xform:en})}else if("phone"in t){const{phone:h,password:d,options:p}=t;i=await Y(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:h,password:d,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:en})}else throw new Nl("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await ze(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await Y(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:fv})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await Y(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:fv})}else throw new Nl("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 ii;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(W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,u,h,d,p;let f,w;if("message"in t)f=t.message,w=t.signature;else{const{chain:m,wallet:x,statement:v,options:g}=t;let y;if(dt())if(typeof x=="object")y=x;else{const N=window;if("ethereum"in N&&typeof N.ethereum=="object"&&"request"in N.ethereum&&typeof N.ethereum.request=="function")y=N.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=x}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),_=await y.request({method:"eth_requestAccounts"}).then(N=>N).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const T=Qx(_[0]);let C=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!C){const N=await y.request({method:"eth_chainId"});C=ZR(N)}const O={domain:S.host,address:T,statement:v,uri:S.href,version:"1",chainId:C,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(h=g==null?void 0:g.signInWithEthereum)===null||h===void 0?void 0:h.resources};f=tP(O),w=await y.request({method:"personal_sign",params:[eP(f),T]})}try{const{data:m,error:x}=await Y(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:w},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:en});if(x)throw x;if(!m||!m.session||!m.user){const v=new ii;return this._returnResult({data:{user:null,session:null},error:v})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:x})}catch(m){if(W(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,a,l,u,h,d,p,f;let w,m;if("message"in t)w=t.message,m=t.signature;else{const{chain:x,wallet:v,statement:g,options:y}=t;let S;if(dt())if(typeof v=="object")S=v;else{const T=window;if("solana"in T&&typeof T.solana=="object"&&("signIn"in T.solana&&typeof T.solana.signIn=="function"||"signMessage"in T.solana&&typeof T.solana.signMessage=="function"))S=T.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const _=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const T=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),g?{statement:g}:null));let C;if(Array.isArray(T)&&T[0]&&typeof T[0]=="object")C=T[0];else if(T&&typeof T=="object"&&"signedMessage"in T&&"signature"in T)C=T;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)w=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),m=C.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");w=[`${_.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(s=(r=y==null?void 0:y.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y==null?void 0:y.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((d=(h=y==null?void 0:y.signInWithSolana)===null||h===void 0?void 0:h.resources)===null||d===void 0)&&d.length?["Resources",...y.signInWithSolana.resources.map(C=>
369`- ${C}`)]:[]].join(` 370`);const T=await S.signMessage(new TextEncoder().encode(w),"utf8");if(!T||!(T instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=T}}try{const{data:x,error:v}=await Y(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:As(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:en});if(v)throw v;if(!x||!x.session||!x.user){const g=new ii;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:v})}catch(x){if(W(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await gn(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new xR;const{data:i,error:o}=await Y(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:en});if(await ze(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new ii;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await Y(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:en}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const h=new ii;return this._returnResult({data:{user:null,session:null},error:h})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,h=null;this.flowType==="pkce"&&([u,h]=await ys(this.storage,this.storageKey));const{error:d}=await Y(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:h},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:h}=await Y(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:h})}throw new Nl("You must provide either an email or phone number.")}catch(a){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await Y(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:en});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ys(this.storage,this.storageKey));const u=await Y(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:qR});return!((i=u.data)===null||i===void 0)&&i.url&&dt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Ye;const{error:s}=await Y(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(W(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t;let o=null,a=null;this.flowType==="pkce"&&([o,a]=await ys(this.storage,this.storageKey));const{error:l}=await Y(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}
370,code_challenge:o,code_challenge_method:a},redirectTo:i==null?void 0:i.emailRedirectTo});return l&&await ze(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await Y(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 Nl("You must provide either an email or phone number and a type")}catch(n){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await gn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<xd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await gn(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=kd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=WR(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const a=await gn(this.storage,this.storageKey);if(a&&a.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await Y(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Fr}):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 Ye}:await Y(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:Fr})})}catch(n){if(W(n))return jl(n)&&(await this._removeSession(),await ze(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):await this._updateUser(t,n)}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Ye;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ys(this.storage,this.storageKey));const{data:u,error:h}=await Y(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Fr});if(h)throw h;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ye;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ol(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(W(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;
370if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ye;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!dt())throw new Rl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Rl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new iv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Rl("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new iv("No code detected.");const{data:y,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:y.session,redirectType:(r=y.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:o,refresh_token:a,expires_in:l,expires_at:u,token_type:h}=t;if(!o||!l||!a||!h)throw new Rl("No session defined in URL");const d=Math.round(Date.now()/1e3),p=parseInt(l);let f=d+p;u&&(f=parseInt(u));const w=f-d;w*1e3<=ur&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${w}s, should have been closer to ${p}s`);const m=f-p;d-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,f,d):d-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,f,d);const{data:x,error:v}=await this._getUser(o);if(v)throw v;const g={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:p,expires_at:f,refresh_token:a,token_type:h,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(s){if(W(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const n=await gn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const s=async()=>{await this._removeSession(),await ze(this.storage,`${this.storageKey}-code-verifier`)},{data:i,error:o}=n;if(o&&!jl(o))return this._returnResult({error:o});const a=(r=i.session)===null||r===void 0?void 0:r.access_token;if(a){const{error:l}=await this.admin.signOut(a,t);if(l&&!(wR(l)&&(l.status===404||l.status===401||l.status===403)||jl(l)))return t!=="others"&&await s(),this._returnResult({error:l})}return t!=="others"&&await s(),this._returnResult({error:null})})}onAuthStateChange(t){const n=jR(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;
370if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),jl(i)||Pl(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ys(this.storage,this.storageKey,!0));try{return await Y(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,h;const{data:d,error:p}=i;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await Y(this.fetch,"GET",f,{headers:this.headers,jwt:(h=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&h!==void 0?h:void 0})});if(s)throw s;return dt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(W(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;if(s)throw s;const{options:o,provider:a,token:l,access_token:u,nonce:h}=t,d=await Y(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:h,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:en}),{data:p,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new ii}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await ze(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await Y(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await OR(async s=>(s>
3700&&await PR(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await Y(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:en})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Pl(i)&&Date.now()+o-r<ur})}catch(r){if(this._debug(n,"error",r),W(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),dt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await gn(this.storage,this.storageKey);if(s&&this.userStorage){let o=await gn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await ui(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:kd()}else if(s&&!s.user&&!s.user){const o=await gn(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await ze(this.storage,this.storageKey+"-user"),await ui(this.storage,this.storageKey,s)):s.user=kd()}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()<xd;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${xd}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(kR(o)?this._debug(r,"refresh discarded by commit guard",o):this._debug(r,"refresh failed",o))}}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),Pl(s)?console.warn(s):console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Ye;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new Tu;const i=await gn(this.storage,this.storageKey),{data:o,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!o.session)throw new Ye;const l=await gn(this.storage,this.storageKey);if(i!==null&&(l===null||l.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:l?"replaced":"cleared"});const p={data:null,error:new ov};return this.refreshingDeferred.resolve(p),p}const h=this._sessionRemovalEpoch;if(await this._saveSession(o.session),this._sessionRemovalEpoch!==h){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await ze(this.storage,this.storageKey),this.userStorage&&await ze(this.userStorage,this.storageKey+"-user");const p={data:null,error:new ov};return this.refreshingDeferred.resolve(p),p}await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const d={data:o.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(d),d}catch(i){if(this._debug(s,"error",i),W(i)){const o={data:null,error:i};if(!Pl(i)){const a=await gn(this.storage,this.storageKey);!!(a!=null&&a.expires_at&&a.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:o,expiresAt:Date.now()+hR},(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")}}
370async _notifyAllSubscribers(t,n,r=!0){if(this._pendingInitNotifications!==null&&r){this._pendingInitNotifications.push({event:t,session:n,broadcast:r});return}const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await ui(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=dv(s);await ui(this.storage,this.storageKey,i)}else{const s=dv(n);await ui(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await ze(this.storage,this.storageKey),await ze(this.storage,this.storageKey+"-code-verifier"),await ze(this.storage,this.storageKey+"-user"),this.userStorage&&await ze(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&dt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ur);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/ur);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ur}ms, refresh threshold is ${Lo} ticks`),s<=Lo&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof QR)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/ur);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ur}ms, refresh threshold is ${Lo} ticks`),s<=Lo&&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")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!dt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
370{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()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await ys(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await Y(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await Y(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?yv(t.webauthn.credential_response):wv(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:u}=await Y(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:u}))})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=await Y(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(a.error)return a;const{data:l}=a;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:gv(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:vv(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:f}=Ol(t);let w=null;f.aal&&(w=f.aal);let m=w;const{data:{user:x},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const y=f.amr||[];return{data:{currentLevel:w,nextLevel:m,currentAuthenticationMethods:y},error:null}}catch(f){if(W(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
370=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}=Ol(o.access_token);let u=null;l.aal&&(u=l.aal);let h=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(h="aal2");const p=l.amr||[];return{data:{currentLevel:u,nextLevel:h,currentAuthenticationMethods:p},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await Y(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ye})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ye});const o=await Y(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&dt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ye});const o=await Y(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&dt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await Y(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 Ye})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await Y(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ye})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+vR>s)return r;const{data:i,error:o}=await Y(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:w}
370=await this.getSession();if(w||!f.session)return this._returnResult({data:null,error:w});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ol(r);if(!(n!=null&&n.allowExpired))try{UR(i.exp)}catch(f){throw new zc(f instanceof Error?f.message:"JWT validation failed")}const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const h=$R(s.alg),d=await crypto.subtle.importKey("jwk",u,h,!0,["verify"]);if(!await crypto.subtle.verify(h,d,o,CR(`${a}.${l}`)))throw new zc("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;yn(this.experimental);try{if(!$c())return this._returnResult({data:null,error:new Tn("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const a=vv(i.options),l=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:tf.createNewAbortSignal(),{data:u,error:h}=await e1({publicKey:a,signal:l});if(h||!u)return this._returnResult({data:null,error:h??new Tn("WebAuthn ceremony failed",null)});const d=wv(u);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:d})}catch(i){if(W(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;yn(this.experimental);try{if(!$c())return this._returnResult({data:null,error:new Tn("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=gv(s.options),a=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:tf.createNewAbortSignal(),{data:l,error:u}=await Zx({publicKey:o,signal:a});if(u||!l)return this._returnResult({data:null,error:u??new Tn("WebAuthn ceremony failed",null)});const h=yv(l);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:h})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){yn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Ye});const{data:s,error:i}=await Y(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){yn(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 Ye});const{data:i,error:o}=await Y(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;yn(this.experimental);try{const{data:r,error:s}=await Y(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){yn(this.experimental);try{const{data:n,error:r}=await Y(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:en});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(W(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){yn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Ye});const{data:s,error:i}=await Y(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){yn(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 Ye});const{data:i,error:o}=await Y(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){yn(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 Ye});const{error:i}
370=await Y(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}}Ta.nextInstanceID={};const dP=Ta,hP="2.110.8";let Do="",Wc;if(typeof Deno<"u"){var _d;Do="deno",Wc=(_d=Deno.version)===null||_d===void 0?void 0:_d.deno}else if(typeof document<"u")Do="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Do="react-native";else{var Ed;Do="node";const e=globalThis.process;Wc=e==null||(Ed=e.version)===null||Ed===void 0?void 0:Ed.replace(/^v/,"")}const t1=[`runtime=${Do}`];Wc&&t1.push(`runtime-version=${Wc}`);const fP={"X-Client-Info":`supabase-js/${hP}; ${t1.join("; ")}`},pP={headers:fP},mP={schema:"public"},gP={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},vP={},yP={enabled:!1,respectSamplingDecision:!0};function wP(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(h){try{u(r.next(h))}catch(d){o(d)}}function l(h){try{u(r.throw(h))}catch(d){o(d)}}function u(h){h.done?i(h.value):s(h.value).then(a,l)}u((r=r.apply(e,[])).next())})}let Td=null;const bP="@opentelemetry/api";function xP(){return Td===null&&(Td=import(bP).catch(()=>null)),Td}function kP(){return wP(this,void 0,void 0,function*(){try{const e=yield xP();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function SP(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,r,s,i]=t;if(n.length!==2||r.length!==32||s.length!==16||i.length!==2)return null;const o=/^[0-9a-f]+$/i;return!o.test(n)||!o.test(r)||!o.test(s)||!o.test(i)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:r,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function _P(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(EP(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function EP(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function TP(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}function CP(e,t){if(Ca(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AP(e){var t=CP(e,"string");return Ca(t)=="symbol"?t:t+""}function jP(e,t,n){return(t=AP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bv(Object(n),!0).forEach(function(r){jP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const NP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),RP=()=>Headers,n1=e=>e.startsWith("sb_publishable_")||e.startsWith("sb_secret_"),PP="sb_temp_",xv=new Set,OP=e=>{var t,n;if(!e.startsWith("sb_")||n1(e)||e.startsWith(PP))return;const r=(t=(n=e.match(/^sb_[a-zA-Z0-9]+_/))===null||n===void 0?void 0:n[0])!==null&&t!==void 0?t:"unknown";xv.has(r)||(xv.add(r),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is;
370 if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type."))},kv=(e,t,n,r,s,i)=>{const o=NP(r),a=RP(),l=(s==null?void 0:s.enabled)===!0,u=(s==null?void 0:s.respectSamplingDecision)!==!1,h=l?TP(t):null,d=!(i!=null&&i.omitApiKeyAsBearer&&n1(e));return async(p,f)=>{const w=await n();let m=new a(f==null?void 0:f.headers);if(m.has("apikey")||m.set("apikey",e),!m.has("Authorization")){const x=w??(d?e:null);x&&m.set("Authorization",`Bearer ${x}`)}if(h){const x=await IP(p,h,u);x&&(x.traceparent&&!m.has("traceparent")&&m.set("traceparent",x.traceparent),x.tracestate&&!m.has("tracestate")&&m.set("tracestate",x.tracestate),x.baggage&&!m.has("baggage")&&m.set("baggage",x.baggage))}return o(p,Pe(Pe({},f),{},{headers:m}))}};async function IP(e,t,n){if(!_P(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const r=await kP();if(!r||!r.traceparent)return null;if(n){const s=SP(r.traceparent);if(s&&!s.isSampled)return null}return r}function Sv(e){return typeof e=="boolean"?{enabled:e}:e}function LP(e){return e.endsWith("/")?e:e+"/"}function DP(e,t){var n,r,s,i,o,a;const{db:l,auth:u,realtime:h,global:d}=e,{db:p,auth:f,realtime:w,global:m}=t,x=Sv(e.tracePropagation),v=Sv(t.tracePropagation),g={db:Pe(Pe({},p),l),auth:Pe(Pe({},f),u),realtime:Pe(Pe({},w),h),storage:{},global:Pe(Pe(Pe({},m),d),{},{headers:Pe(Pe({},(n=m==null?void 0:m.headers)!==null&&n!==void 0?n:{}),(r=d==null?void 0:d.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(i=x==null?void 0:x.enabled)!==null&&i!==void 0?i:v==null?void 0:v.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(o=(a=x==null?void 0:x.respectSamplingDecision)!==null&&a!==void 0?a:v==null?void 0:v.respectSamplingDecision)!==null&&o!==void 0?o:!0},accessToken:async()=>""};return e.accessToken?g.accessToken=e.accessToken:delete g.accessToken,g}function MP(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(LP(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var zP=class extends dP{constructor(e){super(e)}},FP=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=MP(e);
370if(!t)throw new Error("supabaseKey is required.");OP(t),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:mP,realtime:vP,auth:Pe(Pe({},gP),{},{storageKey:o}),global:pP,tracePropagation:yP},l=DP(n??{},a);if(this.settings=l,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:(h,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 u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=kv(t,e,this._getSessionToken.bind(this),l.global.fetch,l.tracePropagation),this.functionsFetch=kv(t,e,this._getSessionToken.bind(this),l.global.fetch,l.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(Pe({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(h=>this.realtime.setAuth(h)).catch(h=>console.warn("Failed to set initial Realtime auth token:",h)),this.rest=new KN(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 dR(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new MN(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:null}async _getAccessToken(){var e=this,t;return(t=await e._getSessionToken())!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:u,experimental:h,lockAcquireTimeout:d,skipAutoInitialize:p},f,w){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new zP({url:this.authUrl.href,headers:Pe(Pe({},m),f),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:u,experimental:h,fetch:w,lockAcquireTimeout:d,skipAutoInitialize:p,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new L2(this.realtimeUrl.href,Pe(Pe({},e),{},{params:Pe(Pe({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN"||e==="INITIAL_SESSION")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const UP=(e,t,n)=>new FP(e,t,n);function $P(){if(typeof window<"u"||globalThis.Deno!==void 0)return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}$P()&&console.warn("â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
370ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");function BP(){var x,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((x=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:x[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],h="lovable-preview-auth:result",d=2e3,p=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(g,y,S)=>new Promise(_=>{const T=p();let C=!1,O;const N=P=>{C||(C=!0,clearTimeout(O),window.removeEventListener("message",I),_(P))},I=P=>{if(u.indexOf(P.origin)<0)return;const H=P.data;H&&H.type===h&&H.requestId===T&&N(H)};window.addEventListener("message",I);const B={type:g,requestId:T,projectId:s,key:y};S!==void 0&&(B.value=S);for(const P of u)window.parent.postMessage(B,P);O=setTimeout(()=>N(null),d)});let w=!0;const m=250;return{getItem:async g=>{let y=await f("lovable-preview-auth:get",g);return!y&&w&&(await new Promise(S=>setTimeout(S,m)),y=await f("lovable-preview-auth:get",g)),w=!1,y&&y.ok&&typeof y.value=="string"?y.value===""?(localStorage.removeItem(g),null):y.value:localStorage.getItem(g)},setItem:(g,y)=>(localStorage.setItem(g,y),f("lovable-preview-auth:set",g,y).then(()=>{})),removeItem:g=>(localStorage.removeItem(g),f("lovable-preview-auth:remove",g).then(()=>{}))}}const WP="https://jigervptkpelprcnfmcv.supabase.co",_v="sb_publishable_cM40ScaistryIAofefrp_A_GCxT3vi8";function VP(e){return e.startsWith("sb_publishable_")||e.startsWith("sb_secret_")}function HP(e){return(t,n)=>{const r=new Headers(typeof Request<"u"&&t instanceof Request?t.headers:void 0);return n!=null&&n.headers&&new Headers(n.headers).forEach((s,i)=>r.set(i,s)),VP(e)&&r.get("Authorization")===`Bearer ${e}`&&r.delete("Authorization"),r.set("apikey",e),fetch(t,{...n,headers:r})}}const ke=UP(WP,_v,{global:{fetch:HP(_v)},auth:{storage:BP(),persistSession:!0,autoRefreshToken:!0}});/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KP(e){if(Array.isArray(e))return e}function qP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(h){u=!0,s=h}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw s}}return a}}function GP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 371In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YP(e,t){return KP(e)||qP(e,t)||JP(e,t)||GP()}function JP(e,t){if(e){if(typeof e=="string")return Ev(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ev(e,t):void 0}}const r1=Object.entries,Tv=Object.setPrototypeOf,QP=Object.isFrozen,XP=Object.getPrototypeOf,ZP=Object.getOwnPropertyDescriptor;let Ke=Object.freeze,Xe=Object.seal,di=Object.create,s1=typeof Reflect<"u"&&Reflect,nf=s1.apply,rf=s1.construct;Ke||(Ke=function(t){return t});Xe||(Xe=function(t){return t});nf||(nf=function(t,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(n,s)});rf||(rf=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new t(...r)});const _s=$e(Array.prototype.forEach),eO=$e(Array.prototype.lastIndexOf),Cv=$e(Array.prototype.pop),Co=$e(Array.prototype.push),tO=$e(Array.prototype.splice),Mi=Array.isArray,Mo=$e(String.prototype.toLowerCase),Cd=$e(String.prototype.toString),Av=$e(String.prototype.match),Ao=$e(String.prototype.replace),jv=$e(String.prototype.indexOf),nO=$e(String.prototype.trim),rO=$e(Number.prototype.toString),sO=$e(Boolean.prototype.toString),Nv=typeof BigInt>"u"?null:$e(BigInt.prototype.toString),Rv=typeof Symbol>"u"?null:$e(Symbol.prototype.toString),Pt=$e(Object.prototype.hasOwnProperty),jo=$e(Object.prototype.toString),ut=$e(RegExp.prototype.test),ws=iO
vendor: 4,862 bytes, line 371
371(TypeError);function $e(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return nf(e,t,r)}}function iO(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rf(e,n)}}function le(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mo;if(Tv&&Tv(e,null),!Mi(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=n(s);i!==s&&(QP(t)||(t[r]=i),s=i)}e[s]=!0}return e}function oO(e){for(let t=0;t<e.length;t++)Pt(e,t)||(e[t]=null);return e}function Bt(e){const t=di(null);for(const r of r1(e)){var n=YP(r,2);const s=n[0],i=n[1];Pt(e,s)&&(Mi(i)?t[s]=oO(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Bt(i):t[s]=i)}return t}function aO(e){switch(typeof e){case"string":return e;case"number":return rO(e);case"boolean":return sO(e);case"bigint":return Nv?Nv(e):"0";case"symbol":return Rv?Rv(e):"Symbol()";case"undefined":return jo(e);case"function":case"object":{if(e===null)return jo(e);const t=e,n=vn(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:jo(r)}return jo(e)}default:return jo(e)}}function vn(e,t){for(;e!==null;){const r=ZP(e,t);if(r){if(r.get)return $e(r.get);if(typeof r.value=="function")return $e(r.value)}e=XP(e)}function n(){return null}return n}function lO(e){try{return ut(e,""),!0}catch{return!1}}const Pv=Ke(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ad=Ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jd=Ke(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cO=Ke(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nd=Ke(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),uO=Ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ov=Ke(["#text"]),Iv=Ke(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
371spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rd=Ke(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Lv=Ke(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Il=Ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dO=Xe(/{{[\w\W]*|^[\w\W]*}}/g),hO=Xe(/<%[\w\W]*|^[\w\W]*%>/g),fO=Xe(/\${[\w\W]*/g),pO=Xe(/^data-[\-\w.\u00B7-\uFFFF]+$/),mO=Xe(/^aria-[\-\w]+$/),Dv=Xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gO=Xe(/^(?:\w+script|data):/i),vO=Xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yO=Xe(/^html$/i),wO=Xe(/^[a-z][.\w]*(-[.\w]+)+$/i),Mv=Xe(/<[/\w!]/g),zv=Xe(/<[/\w]/g),bO=Xe(/<\/no(script|embed|frames)/i),xO=Xe(/\/>/i),$t={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},i1=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],kO=Ke(le({},i1)),SO=function(){const e={};return _s(i1,t=>{e[t]=Xe(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ke(e)}(),_O=function(){return typeof window>"u"?null:window},EO=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 15,735 bytes, line 371
371const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Fv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Rr=function(t,n,r,s){return Pt(t,n)&&Mi(t[n])?le(s.base?Bt(s.base):{},t[n],s.transform):r},Pd=function(t,n,r){const s=Pt(t,n)?t[n]:void 0;return s&&typeof s=="object"?Bt(s):r()};function o1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_O();const t=U=>o1(U);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==$t.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,o=e.Node,a=e.Element,l=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,d=e.trustedTypes,p=a.prototype,f=vn(p,"cloneNode"),w=vn(p,"remove"),m=vn(p,"nextSibling"),x=vn(p,"childNodes"),v=vn(p,"parentNode"),g=vn(p,"shadowRoot"),y=vn(p,"attributes"),S=o&&o.prototype?vn(o.prototype,"nodeType"):null,_=o&&o.prototype?vn(o.prototype,"nodeName"):null,T=o&&o.prototype?vn(o.prototype,"ownerDocument"):null,C=function(k){return S?S(k):k.nodeType},O=function(k){return _?_(k):k.nodeName};if(typeof i=="function"){const U=n.createElement("template");U.content&&U.content.ownerDocument&&(n=U.content.ownerDocument)}let N,I="",B,P=!1,H=0;const E=function(){if(H>0)throw ws('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},G=function(k){E(),H++;try{return N.createHTML(k)}finally{H--}},j=function(k){E(),H++;try{return N.createScriptURL(k)}finally{H--}},L=function(){return P||(B=EO(d,s),P=!0),B},R=n,M=R.implementation,V=R.createNodeIterator,ne=R.createDocumentFragment,X=R.getElementsByTagName,oe=r.importNode;let J=Fv();t.isSupported=typeof r1=="function"&&typeof v=="function"&&M&&M.createHTMLDocument!==void 0;const Ne=dO,qe=hO,ue=fO,_r=pO,On=mO,Zn=gO,cn=vO,Er=wO;let un=Dv,fe=null;const fs=le({},[...Pv,...Ad,...jd,...Nd,...Ov]);let pe=null;const ps=le({},[...Iv,...Rd,...Lv,...Il]);let st=Object.seal(di(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xt=null,uo=null;const Tt=Object.seal(di(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ho=!0,dn=!0,$a=!1,Ba=!0,Le=!1,Ct=!0,er=!1,fo=!1,tr=null,qs=null,Gs=!1,In=!1,hn=!1,ms=!1,nr=!0,Wa=!1;const Va="user-content-";let Ys=!0,Js=!1,Tr={},Ln=null;const fn=le({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ha=null;const te=le({},["audio","video","img","source","image","track"]);let he=null;const ge=le({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let At=We,vt=!1,Zt=null;const u1=le({},[it,ot,We],Cd),Ep=Ke(["mi","mo","mn","ms","mtext"]);let Cu=le({},Ep);const Tp=Ke(["annotation-xml"]);let Au=le({},Tp);const d1=le({},["title","style","font","a","script"]);let po=null;const h1=["application/xhtml+xml","text/html"],f1="text/html";let De=null,Qs=null;const p1=n.createElement("form"),Cp=function(k){return k instanceof RegExp||k instanceof Function},ju=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qs&&Qs===k)return;(!k||typeof k!="object")&&(k={}),k=Bt(k),po=h1.indexOf(k.PARSER_MEDIA_TYPE)===-1?f1:k.PARSER_MEDIA_TYPE,De=po==="application/xhtml+xml"?Cd:Mo,fe=Rr(k,"ALLOWED_TAGS",fs,{transform:De}),pe=Rr(k,"ALLOWED_ATTR",ps,{transform:De}),Zt=Rr(k,"ALLOWED_NAMESPACES",u1,{transform:Cd}),he=Rr(k,"ADD_URI_SAFE_ATTR",ge,{transform:De,base:ge}),Ha=Rr(k,"ADD_DATA_URI_TAGS",te,{transform:De,base:te}),Ln=Rr(k,"FORBID_CONTENTS",fn,{transform:De}),Xt=Rr(k,"FORBID_TAGS",Bt({}),{transform:De}),uo=Rr(k,"FORBID_ATTR",Bt({}),{transform:De}),Tr=Pt(k,"USE_PROFILES")?k.USE_PROFILES&&typeof k.USE_PROFILES=="object"?Bt(k.USE_PROFILES):k.USE_PROFILES:!1,ho=k.ALLOW_ARIA_ATTR!==!1,dn=k.ALLOW_DATA_ATTR!==!1,$a=k.ALLOW_UNKNOWN_PROTOCOLS||!1,Ba=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=k.SAFE_FOR_TEMPLATES||!1,Ct=k.SAFE_FOR_XML!==!1,er=k.WHOLE_DOCUMENT||!1,In=k.RETURN_DOM||!1,hn=k.RETURN_DOM_FRAGMENT||!1,ms=k.RETURN_TRUSTED_TYPE||!1,Gs=k.FORCE_BODY||!1,nr=k.SANITIZE_DOM!==!1,Wa=k.SANITIZE_NAMED_PROPS||!1,Ys=k.KEEP_CONTENT!==!1,Js=k.IN_PLACE||!1,un=lO(k.ALLOWED_URI_REGEXP)?k.ALLOWED_URI_REGEXP:Dv,At=typeof k.NAMESPACE=="string"?k.NAMESPACE:We,Cu=Pd(k,"MATHML_TEXT_INTEGRATION_POINTS",()=>le({},Ep)),Au=Pd(k,"HTML_INTEGRATION_POINTS",()=>le({},Tp));const A=Pd(k,"CUSTOM_ELEMENT_HANDLING",()=>di(null));if(st=di(null),Pt(A,"tagNameCheck")&&Cp(A.tagNameCheck)&&(st.tagNameCheck=A.tagNameCheck),Pt(A,"attributeNameCheck")&&Cp(A.attributeNameCheck)&&(st.attributeNameCheck=A.attributeNameCheck),Pt(A,"allowCustomizedBuiltInElements")&&typeof A.allowCustomizedBuiltInElements=="boolean"&&(st.allowCustomizedBuiltInElements=A.allowCustomizedBuiltInElements),Xe(st),Le&&(dn=!1),hn&&(In=!0),Tr&&(fe=le({},Ov),pe=di(null),Tr.html===!0&&(le(fe,Pv),le(pe,Iv)),Tr.svg===!0&&(le(fe,Ad),le(pe,Rd),le(pe,Il)),Tr.svgFilters===!0&&(le(fe,jd),le(pe,Rd),le(pe,Il)),Tr.mathMl===!0&&(le(fe,Nd),le(pe,Lv),le(pe,Il))),Tt.tagCheck=null,Tt.attributeCheck=null,Pt(k,"ADD_TAGS")&&(typeof k.ADD_TAGS=="function"?Tt.tagCheck=k.ADD_TAGS:Mi(k.ADD_TAGS)&&(fe===fs&&(fe=Bt(fe)),le(fe,k.ADD_TAGS,De))),Pt(k,"ADD_ATTR")&&(typeof k.ADD_ATTR=="function"?Tt.attributeCheck=k.ADD_ATTR:Mi(k.ADD_ATTR)&&(pe===ps&&(pe=Bt(pe)),le(pe,k.ADD_ATTR,De))),Pt(k,"ADD_FORBID_CONTENTS")&&Mi(k.ADD_FORBID_CONTENTS)&&(Ln===fn&&(Ln=Bt(Ln)),le(Ln,k.ADD_FORBID_CONTENTS,De)),Ys&&(fe["#text"]=!0),er&&le(fe,["html","head","body"]),fe.table&&(le(fe,["tbody"]),delete Xt.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const z=N;N=k.TRUSTED_TYPES_POLICY;try{I=G("")}catch(K){throw N=z,K}}else k.TRUSTED_TYPES_POLICY===null?(N=void 0,I=""):(N===void 0&&(N=L()),N&&typeof I=="string"&&(I=G("")));Ke&&Ke(k),Qs=k},Ap=le({},[...Ad,...jd,...cO]),jp=le({},[...Nd,...uO]),m1=function(k,A,z){return A.namespaceURI===We?k==="svg":A.namespaceURI===it?k==="svg"&&(z==="annotation-xml"||Cu[z]):!!Ap[k]},g1=function(k,A,z){return A.namespaceURI===We?k==="math":A.namespaceURI===ot?k==="math"&&Au[z]:!!jp[k]},v1=function(k,A,z){return A.namespaceURI===ot&&!Au[z]||A.namespaceURI===it&&!Cu[z]?!1:!jp[k]&&(d1[k]||!Ap[k])},y1=function(k){let A=v(k);(!A||!A.tagName)&&(A={namespaceURI:At,tagName:"template"});const z=Mo(k.tagName),K=Mo(A.tagName);return Zt[k.namespaceURI]?k.namespaceURI===ot?m1(z,A,K):k.namespaceURI===it?g1(z,A,K):k.namespaceURI===We?v1(z,A,K):!!(po==="application/xhtml+xml"&&Zt[k.namespaceURI]):!1},Cr=function(k){Co(t.removed,{element:k});try{v(k).removeChild(k)}catch{if(w(k),!v(k))throw ws("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Np=function(k,A,z){try{k.removeAttributeNode(A)}catch{try{k.removeAttribute(z)}catch{}}},Ka=function(k){qa(k);const A=x(k);if(A){const K=[];_s(A,Q=>{Co(K,Q)}),_s(K,Q=>{try{w(Q)}catch{}})}const z=y(k);if(z)for(let K=z.length-1;K>=0;--K){const Q=z[K],ee=Q&&Q.name;typeof ee=="string"&&Np(k,Q,ee)}},gs=function(k,A,z){if(!z)try{z=A.getAttributeNode(k)}catch{z=null}Co(t.removed,{attribute:z||null,from:A});try{z?A.removeAttributeNode(z):A.removeAttribute(k)}catch{try{A.removeAttribute(k)}catch{}}if(k==="is")if(In||hn)try{Cr(A)}catch{}else try{A.setAttribute(k,"")}catch{}},w1=function(k){const A=y(k);if(A)for(let z=A.length-1;z>=0;--z){const K=A[z],Q=K&&K.name;typeof Q!="string"||pe[De(Q)]||Np(k,K,Q)}},qa=function(k){const A=[k];for(;A.length>0;){const z=A.pop();C(z)===$t.element&&w1(z);const Q=x(z);if(Q)for(let ee=Q.length-1;ee>=0;--ee)A.push(Q[ee])}},Rp=function(k,A){return Ct?k==="patchsrc"?!0:k==="for"&&A!=="label"&&A!=="output":!1},b1=function(k){if(!Ct)return;const A=[k];for(;A.length>0;){const z=A.pop(),K=C(z);if(K===$t.processingInstruction||K===$t.comment&&ut(zv,z.data)){try{w(z)}catch{}continue}if(K===$t.element){const ee=z,ve=De(O(z));try{ee.hasAttribute&&ee.hasAttribute("patchsrc")&&ee.removeAttribute("patchsrc"),ee.hasAttribute&&ee.hasAttribute("for")&&Rp("for",ve)&&ee.removeAttribute("for")}catch{}}const Q=x(z);if(Q)for(let ee=Q.length-1;ee>=0;--ee)A.push(Q[ee])}},Pp=function(k){let A=null,z=null;if(Gs)k="<remove></remove>"+k;else{const ee=Av(k,/^[\r\n\t ]+/);z=ee&&ee[0]}po==="application/xhtml+xml"&&At===We&&(k='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+k+"</body></html>");const K=N?G(k):k;if(At===We)try{A=new h().parseFromString(K,po)}catch{}if(!A||!A.documentElement){A=M.createDocument(At,"template",null);try{A.documentElement.innerHTML=vt?I:K}catch{}}const Q=A.body||A.documentElement;return k&&z&&Q.insertBefore(n.createTextNode(z),Q.childNodes[0]||null),At===We?X.call(A,er?"html":"body")[0]:er?A.documentElement:Q},Op=function(k){const A=T?T(k):k.ownerDocument;return V.call(A||k,k,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ga=function(k){return k=Ao(k,Ne," "),k=Ao(k,qe," "),k=Ao(k,ue," "),k},Nu=function(k){var A;k.normalize();const z=T?T(k):k.ownerDocument,K=V.call(z||k,k,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let Q=K.nextNode();for(;Q;)Q.data=Ga(Q.data),Q=K.nextNode();const ee=(A=k.querySelectorAll)===null||A===void 0?void 0:A.call(k,"template");ee&&_s(ee,ve=>{Xs(ve.content)&&Nu(ve.content)})},Ya=function(k){const A=_?_(k):null;return typeof A!="string"||De(A)!=="form"?!1:typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||k.attributes!==y(k)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function"||k.nodeType!==S(k)||k.childNodes!==x(k)},Xs=function(k){if(!S||typeof k!="object"||k===null)return!1;try{return S(k)===$t.documentFragment}catch{return!1}},mo=function(k){if(!S||typeof k!="object"||k===null)return!1;try{return typeof S(k)=="number"}catch{return!1}};function Dn(U,k,A){U.length!==0&&_s(U,z=>{z.call(t,k,A,Qs)})}const x1=function(k,A){return!!(Ct&&k.hasChildNodes()&&!mo(k.firstElementChild)&&ut(Mv,k.textContent)&&ut(Mv,k.innerHTML)||Ct&&k.namespaceURI===We&&kO[A]&&(mo(k.firstElementChild)||typeof k.textContent=="string"&&ut(SO[A],k.textContent))||k.nodeType===$t.processingInstruction||Ct&&k.nodeType===$t.comment&&ut(zv,k.data))},Ja=function(k,A){if(k instanceof RegExp)return ut(k,A);if(k instanceof Function){for(var z=arguments.length,K=new Array(z>2?z-2:0),Q=2;Q<z;Q++)K[Q-2]=arguments[Q];return!!k(A,...K)}return!1},k1=function(k,A,z){if(!Xt[A]&&zp(A)&&Ja(st.tagNameCheck,A))return!1;if(Ys&&!Ln[A]){const K=v(k),Q=x(k);if(Q&&K){const ee=Q.length;for(let ve=ee-1;ve>=0;--ve){const Te=k===z?f(Q[ve],!0):Q[ve];K.insertBefore(Te,m(k))}}}return Cr(k),!0},Ip=function(k,A,z,K){return k.length===0?A:A===z||A===K?Bt(A):A},Lp=function(k,A){return k===A||v(k)!==null?!1:(Js&&qa(k),!0)},Dp=function(k,A){if(Dn(J.beforeSanitizeElements,k,null),Lp(k,A))return!0;if(Ya(k))return Cr(k),!0;const z=De(O(k));if(fe=Ip(J.uponSanitizeElement,fe,fs,tr),Dn(J.uponSanitizeElement,k,{tagName:z,allowedTags:fe}),Lp(k,A))return!0;if(x1(k,z))return Cr(k),!0;if(Xt[z]||!(Tt.tagCheck instanceof Function&&Tt.tagCheck(z))&&!fe[z]){const Q=k1(k,z,A);return Q===!1&&Dn(J.afterSanitizeElements,k,null),Q}if(C(k)===$t.element&&!y1(k)||(z==="noscript"||z==="noembed"||z==="noframes")&&ut(bO,k.innerHTML))return Cr(k),!0;if(Le&&k.nodeType===$t.text){const Q=Ga(k.textContent);k.textContent!==Q&&(Co(t.removed,{element:k.cloneNode()}),k.textContent=Q)}return Dn(J.afterSanitizeElements,k,null),!1},Mp=function(k,A,z){if(uo[A]||Rp(A,k)||nr&&(A==="id"||A==="name")&&(z in n||z in p1))return!1;const K=pe[A]||Tt.attributeCheck instanceof Function&&Tt.attributeCheck(A,k);return dn&&ut(_r,A)||ho&&ut(On,A)?!0:K?he[A]||ut(un,Ao(z,cn,""))||(A==="src"||A==="xlink:href"||A==="href")&&k!=="script"&&jv(z,"data:")===0&&Ha[k]||$a&&!ut(Zn,Ao(z,cn,""))?!0:!z:zp(k)&&Ja(st.tagNameCheck,k)&&Ja(st.attributeNameCheck,A,k)||A==="is"&&st.allowCustomizedBuiltInElements&&Ja(st.tagNameCheck,z)},S1=le({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),zp=function(k){return!S1[Mo(k)]&&ut(Er,k)},_1=function(k,A,z,K){if(N&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!z)switch(d.getAttributeType(k,A)){case"TrustedHTML":return G(K);case"TrustedScriptURL":return j(K)}return K},E1=function(k,A,z,K){try{z?k.setAttributeNS(z,A,K):k.setAttribute(A,K),Ya(k)?Cr(k):Cv(t.removed)}catch{gs(A,k)}},Fp=function(k){Dn(J.beforeSanitizeAttributes,k,null);const A=k.attributes;if(!A||Ya(k))return;pe=Ip(J.uponSanitizeAttribute,pe,ps,qs);const z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe,forceKeepAttr:void 0};let K=A.length;const Q=De(k.nodeName);for(;K--;){const ee=A[K],ve=ee.name,Te=ee.namespaceURI,jt=ee.value,Nt=De(ve),Pu=jt;let yt=ve==="value"?Pu:nO(Pu);if(z.attrName=Nt,z.attrValue=yt,z.keepAttr=!0,z.forceKeepAttr=void 0,Dn(J.uponSanitizeAttribute,k,z),yt=z.attrValue,Wa&&(Nt==="id"||Nt==="name")&&jv(yt,Va)!==0&&(gs(ve,k,ee),yt=Va+yt),Ct&&ut(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,yt)){gs(ve,k,ee);continue}if(Nt==="attributename"&&Av(yt,"href")){gs(ve,k,ee);continue}if(!z.forceKeepAttr){if(!z.keepAttr){gs(ve,k,ee);continue}if(!Ba&&ut(xO,yt)){gs(ve,k,ee);continue}if(Le&&(yt=Ga(yt)),!Mp(Q,Nt,yt)){gs(ve,k,ee);continue}yt=_1(Q,Nt,Te,yt),yt!==Pu&&E1(k,ve,Te,yt)}}Dn(J.afterSanitizeAttributes,k,null)},Qa=function(k){let A=null;const z=Op(k);for(Dn(J.beforeSanitizeShadowDOM,k,null);A=z.nextNode();)if(Dn(J.uponSanitizeShadowNode,A,null),Dp(A,k),Fp(A),Xs(A.content)&&Qa(A.content),C(A)===$t.element){const K=g(A);Xs(K)&&(Ru(K),Qa(K))}Dn(J.afterSanitizeShadowDOM,k,null)},Ru=function(k){const A=[{node:k,shadow:null}];for(;A.length>0;){const z=A.pop();if(z.shadow){Qa(z.shadow);continue}const K=z.node,ee=C(K)===$t.element,ve=x(K);if(ve)for(let Te=ve.length-1;Te>=0;--Te)A.push({node:ve[Te],shadow:null});if(ee){const Te=_?_(K):null;if(typeof Te=="string"&&De(Te)==="template"){const jt=K.content;Xs(jt)&&A.push({node:jt,shadow:null})}}if(ee){const Te=g(K);Xs(Te)&&A.push({node:null,shadow:Te},{node:Te,shadow:null})}}};return t.sanitize=function(U){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=null,z=null,K=null,Q=null;if(vt=!U,vt&&(U="<!-->
371"),typeof U!="string"&&!mo(U)&&(U=aO(U),typeof U!="string"))throw ws("dirty is not a string, aborting");if(!t.isSupported)return U;fo?(fe=tr,pe=qs):ju(k),(J.uponSanitizeElement.length>0||J.uponSanitizeAttribute.length>0)&&(fe=Bt(fe)),J.uponSanitizeAttribute.length>0&&(pe=Bt(pe)),t.removed=[];const ee=Js&&typeof U!="string"&&mo(U);if(ee){b1(U);const jt=O(U);if(typeof jt=="string"){const Nt=De(jt);if(!fe[Nt]||Xt[Nt])throw Ka(U),ws("root node is forbidden and cannot be sanitized in-place")}if(Ya(U))throw Ka(U),ws("root node is clobbered and cannot be sanitized in-place");try{Ru(U)}catch(Nt){throw Ka(U),Nt}}else if(mo(U))A=Pp("<!---->"),z=A.ownerDocument.importNode(U,!0),z.nodeType===$t.element&&z.nodeName==="BODY"||z.nodeName==="HTML"?A=z:A.appendChild(z),Ru(z);else{if(!In&&!Le&&!er&&U.indexOf("<")===-1)return N&&ms?G(U):U;if(A=Pp(U),!A)return In?null:ms?I:""}A&&Gs&&Cr(A.firstChild);const ve=ee?U:A;try{const jt=Op(ve);for(;K=jt.nextNode();)Dp(K,ve),Fp(K),Xs(K.content)&&Qa(K.content)}catch(jt){throw ee&&(Ka(U),_s(t.removed,Nt=>{Nt.element&&qa(Nt.element)})),jt}if(ee)return _s(t.removed,jt=>{jt.element&&qa(jt.element)}),Le&&Nu(U),U;if(In){if(Le&&Nu(A),hn)for(Q=ne.call(A.ownerDocument);A.firstChild;)Q.appendChild(A.firstChild);else Q=A;return(pe.shadowroot||pe.shadowrootmode)&&(Q=oe.call(r,Q,!0)),Q}let Te=er?A.outerHTML:A.innerHTML;return er&&fe["!doctype"]&&A.ownerDocument&&A.ownerDocument.doctype&&A.ownerDocument.doctype.name&&ut(yO,A.ownerDocument.doctype.name)&&(Te="<!DOCTYPE "+A.ownerDocument.doctype.name+`> 372`+Te),Le&&(Te=Ga(Te)),N&&ms?G(Te):Te},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ju(U),fo=!0,tr=fe,qs=pe},t.clearConfig=function(){Qs=null,fo=!1,tr=null,qs=null,N=B,I=""},t.isValidAttribute=function(U,k,A){Qs||ju({});const z=De(U),K=De(k);return Mp(z,K,A)},t.addHook=function(U,k){typeof k=="function"&&Pt(J,U)&&Co(J[U],k)},t.removeHook=function(U,k){if(Pt(J,U)){if(k!==void 0){const A=eO(J[U],k);return A===-1?void 0:tO(J[U],A,1)[0]}return Cv(J[U])}},t.removeHooks=function(U){Pt(J,U)&&(J[U]=[])},t.removeAllHooks=function(){J=Fv()},t}var TO=o1();const CO=["b","strong","i","em","u","s","br","p","ul","ol","li","a","span","small"],AO=/<\/?[a-z][\s\S]*>/i,jO=e=>AO.test(e);function Uv(e){const t=jO(e)?e:e.replace(/\n/g,"<br>");return TO.sanitize(t,{ALLOWED_TAGS:CO,ALLOWED_ATTR:["href","target","rel","class"]})}const Ms=[{id:"musikfestival-denkbar",title:{de:"Musikfestival â Stimmen aus vielen Welten",es:"Festival de música â Voces de muchos mundos",en:"Music Festival â Voices from many worlds"},date:"2026-09-26",venue:"Denkbar Frankfurt",blocks:[{id:"block-1500",time:"15:00 â 16:00",label:{de:"Block 1",es:"Bloque 1",en:"Block 1"},groups:["Frauenchor â Migrantinnenverein Frankfurt e.V.","Ukrainische Tänze â Ukrainian Coordination Center e.V.","Lustige Oper â Konfluencia"]},{id:"block-1600",time:"16:00 â 18:30",label:{de:"Block 2",es:"Bloque 2",en:"Block 2"},groups:["Ukrainische Tänze â Ukrainian Coordination Center e.V.","Rumänische Musik â VIS","Latino Musik â Canto y Danzas de mi Tierra"]},{id:"block-1830",time:"18:30 â 20:00",label:{de:"Block 3",es:"Bloque 3",en:"Block 3"},groups:["Juliana da Silva â Jazz Fusion"]},{id:"block-2000",time:"20:00 â 21:00",label:{de:"Block 4",es:"Bloque 4",en:"Block 4"},groups:["Unlimited â Hip Hop","Octosizer â Experimental Metall"]}]},{id:"fabelhafte-fabeln",title:{de:"Fabelhafte Fabeln â Fabulosas fábulas",es:"Fabulosas fábulas â Fabelhafte Fabeln",en:"Fabulous Fables â Fabelhafte Fabeln"},date:"2026-10-02",venue:"Instituto Cervantes",blocks:[{id:"fabeln-de-1600",time:"16:00",label:{de:"Auf Deutsch",es:"En alemán",en:"In German"},groups:["CompañÃa del Sur"]},{id:"fabeln-es-1730",time:"17:30",label:{de:"Auf Spanisch",es:"En español",en:"In Spanish"},groups:["CompañÃa del Sur"]}]},{id:"theater-lingua",title:{de:"Theaterpräsentation +Lingua",es:"Presentación teatral +Lingua",en:"Theatre showcase +Lingua"},date:"2026-10-04",venue:"Saalbau Titus Forum",blocks:[{id:"lingua-1400",time:"14:00",label:{de:"Kinderprogramm",es:"Programa infantil",en:"Children's programme"},groups:["Jugend und Kulturverein e.V.","Verein der Irisch-Gälischen Sprache e.V.","Frauen Aba e.V.","Silvina Eduardo â Enie e.V."]},{id:"lingua-1600",time:"16:00",label:{de:"Erwachsenenprogramm",es:"Programa para adultos",en:"Adult programme"},groups:["Acting Up Theater-Kollektiv","Stimmen des Ankommens","CompañÃa del Sur"]},{id:"lingua-1800",time:"18:00",label:{de:"Erwachsenenprogramm",es:"Programa para adultos",en:"Adult programme"},groups:["Shakespeare Frankfurt e.V.","Motiv im Halo","Artifugio"]}]}],NO=e=>Ms.some(t=>t.id===e),Vc={de:{notice:"Begrenzte Plätze â reserviere jetzt und sichere dir Vorrang.",cta:"Platz reservieren",title:"Reservierung",event:"Veranstaltung",block:"Block",groups:"Gruppen",name:"Name",people:"Anzahl Personen",email:"E-Mail (optional)",notes:"Kommentar (optional)",submit:"Reservierung senden",sending:"Wird gesendet â¦",success:"Danke! Deine Reservierung ist eingegangen.",error:"Die Reservierung konnte nicht gesendet werden.",nameRequired:"Bitte gib deinen Namen an.",close:"SchlieÃen",emailTitle:"Bestätigung per E-Mail",emailNotice:"Möchtest du eine Bestätigung mit allen Daten per E-Mail erhalten?",emailPlaceholder:"[email protected]",sendEmail:"Bestätigung senden",sendingEmail:"E-Mail wird gesendet â¦",emailSent:"Bestätigung gesendet an",emailError:"Die E-Mail konnte nicht gesendet werden.",emailRequired:"Bitte gib eine gültige E-Mail-Adresse an."},es:{notice:"Cupos limitados â haz tu reserva para tener prioridad.",cta:"Reservar lugar",title:"Reserva",event:"Evento",block:"Bloque",groups:"Grupos",name:"Nombre",people:"Cantidad de personas",email:"Correo (opcional)",notes:"Comentario (opcional)",submit:"Enviar reserva",
372sending:"Enviando â¦",success:"¡Gracias! Recibimos tu reserva.",error:"No se pudo enviar la reserva.",nameRequired:"Por favor indica tu nombre.",close:"Cerrar",emailTitle:"Confirmación por correo",emailNotice:"¿Quieres recibir una confirmación con todos los datos por correo?",emailPlaceholder:"[email protected]",sendEmail:"Enviar confirmación",sendingEmail:"Enviando correo â¦",emailSent:"Confirmación enviada a",emailError:"No se pudo enviar el correo.",emailRequired:"Por favor escribe un correo válido."},en:{notice:"Limited places â book now to get priority.",cta:"Book a place",title:"Booking",event:"Event",block:"Block",groups:"Groups",name:"Name",people:"Number of people",email:"Email (optional)",notes:"Comment (optional)",submit:"Send booking",sending:"Sending â¦",success:"Thank you! We received your booking.",error:"The booking could not be sent.",nameRequired:"Please enter your name.",close:"Close",emailTitle:"Confirmation by email",emailNotice:"Would you like a confirmation with all details sent to your email?",emailPlaceholder:"[email protected]",sendEmail:"Send confirmation",sendingEmail:"Sending email â¦",emailSent:"Confirmation sent to",emailError:"The email could not be sent.",emailRequired:"Please enter a valid email address."}},RO=({eventId:e,onClose:t})=>{const{lang:n}=gt(),r=Vc[n||"de"]||Vc.de,[s,i]=b.useState(e),o=b.useMemo(()=>Ms.find(P=>P.id===s)||Ms[0],[s]),[a,l]=b.useState(o.blocks[0].id),[u,h]=b.useState(""),[d,p]=b.useState(1),[f,w]=b.useState(""),[m,x]=b.useState(""),[v,g]=b.useState("idle"),[y,S]=b.useState(null),[_,T]=b.useState(""),[C,O]=b.useState("idle");b.useEffect(()=>{l(o.blocks[0].id)},[o]),b.useEffect(()=>{const P=H=>H.key==="Escape"&&t();return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[t]);const N=o.blocks.find(P=>P.id===a)||o.blocks[0],I=async P=>{if(P.preventDefault(),!u.trim()){S(r.nameRequired);return}g("sending"),S(null);const{error:H}=await ke.from("reservations").insert({event_id:o.id,event_title:o.title.de,block_id:N.id,block_label:`${N.label.de} · ${N.time}`,name:u.trim().slice(0,120),people:Math.min(Math.max(d||1,1),50),email:f.trim()?f.trim().slice(0,255):null,notes:m.trim()?m.trim().slice(0,1e3):null,lang:n});if(H){g("idle"),S(r.error);return}f.trim()&&T(f.trim()),g("done")},B=async()=>{const P=_.trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)){O("error"),S(r.emailRequired);return}S(null),O("sending");const{error:H}=await ke.functions.invoke("send-reservation-confirmation",{body:{to:P,name:u.trim().slice(0,120),people:Math.min(Math.max(d||1,1),50),event_title:o.title[n]||o.title.de,event_date:o.date,venue:o.venue,block_label:N.label[n]||N.label.de,block_time:N.time,lang:n||"de"}});if(H){O("error"),S(r.emailError);return}O("sent")};return c.jsx("div",{className:"fixed inset-0 z-[120] flex items-center justify-center bg-background/80 backdrop-blur p-4",role:"dialog","aria-modal":"true",onClick:t,children:c.jsxs("div",{className:"relative w-full max-w-lg max-h-[90vh] overflow-y-auto rounded-3xl border border-border bg-card p-6 sm:p-8 shadow-glow",onClick:P=>P.stopPropagation(),children:[c.jsx("button",{type:"button",onClick:t,"aria-label":r.close,className:"absolute right-4 top-4 inline-flex h-9 w-9 items-center justify-center rounded-full border border-border text-muted-foreground hover:text-foreground",children:c.jsx(gr,{className:"h-4 w-4"})}),v==="done"?c.jsxs("div",{className:"flex flex-col items-center gap-4 py-8 text-center",children:[c.jsx("span",{className:"inline-flex h-14 w-14 items-center justify-center rounded-full bg-primary/10 text-primary",children:c.jsx(Xl,{className:"h-7 w-7"})}),c.jsx("p",{className:"text-lg font-bold",children:r.success}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[o.title[n]||o.title.de," · ",N.label[n]||N.label.de," · ",N.time]}),C!=="sent"?c.jsxs("div",{className:"mt-2 w-full rounded-2xl bg-muted/40 p-4 text-left",children:[c.jsx("p",{className:"text-[11px] font-bold uppercase tracking-widest text-secondary",children:r.emailTitle}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:r.emailNotice}),c.jsxs("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row",children:[c.jsx("input",{type:"email",value:_,onCh
372ange:P=>T(P.target.value),placeholder:r.emailPlaceholder,maxLength:255,className:"flex-1 rounded-xl border border-border bg-background px-3 py-2 text-sm"}),c.jsx("button",{type:"button",onClick:B,disabled:C==="sending",className:"rounded-full bg-gradient-hero px-5 py-2 text-sm font-bold text-primary-foreground shadow-soft disabled:opacity-60 whitespace-nowrap",children:C==="sending"?r.sendingEmail:r.sendEmail})]}),y&&c.jsx("p",{className:"mt-2 text-sm font-semibold text-destructive",children:y})]}):c.jsxs("p",{className:"mt-1 text-sm font-semibold text-primary",children:[r.emailSent," ",_]}),c.jsx("button",{type:"button",onClick:t,className:"mt-2 rounded-full bg-gradient-hero px-6 py-2.5 text-sm font-bold text-primary-foreground shadow-soft",children:r.close})]}):c.jsxs("form",{onSubmit:I,className:"flex flex-col gap-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] font-bold uppercase tracking-widest text-secondary",children:r.title}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:r.notice})]}),c.jsxs("label",{className:"flex flex-col gap-1.5 text-sm font-semibold",children:[r.event,c.jsx("select",{value:s,onChange:P=>i(P.target.value),className:"rounded-xl border border-border bg-background px-3 py-2 text-sm font-normal",children:Ms.map(P=>c.jsx("option",{value:P.id,children:P.title[n]||P.title.de},P.id))})]}),c.jsxs("label",{className:"flex flex-col gap-1.5 text-sm font-semibold",children:[r.block,c.jsx("select",{value:a,onChange:P=>l(P.target.value),className:"rounded-xl border border-border bg-background px-3 py-2 text-sm font-normal",children:o.blocks.map(P=>c.jsxs("option",{value:P.id,children:[P.time," · ",P.label[n]||P.label.de]},P.id))})]}),c.jsxs("div",{className:"rounded-2xl bg-muted/40 p-4 text-sm",children:[c.jsxs("p",{className:"text-[11px] font-bold uppercase tracking-widest text-secondary",children:[r.groups," · ",N.time]}),c.jsx("ul",{className:"mt-1.5 space-y-0.5 text-foreground/80",children:N.groups.map(P=>c.jsxs("li",{children:["· ",P]},P))})]}),c.jsxs("div",{className:"grid gap-4 sm:grid-cols-[1fr_auto]",children:[c.jsxs("label",{className:"flex flex-col gap-1.5 text-sm font-semibold",children:[r.name,c.jsx("input",{value:u,onChange:P=>h(P.target.value),maxLength:120,required:!0,className:"rounded-xl border border-border bg-background px-3 py-2 text-sm font-normal"})]}),c.jsxs("label",{className:"flex flex-col gap-1.5 text-sm font-semibold",children:[r.people,c.jsx("input",{type:"number",min:1,max:50,value:d,onChange:P=>p(Number(P.target.value)),className:"w-full sm:w-28 rounded-xl border border-border bg-background px-3 py-2 text-sm font-normal"})]})]}),c.jsxs("label",{className:"flex flex-col gap-1.5 text-sm font-semibold",children:[r.email,c.jsx("input",{type:"email",value:f,onChange:P=>w(P.target.value),maxLength:255,className:"rounded-xl border border-border bg-background px-3 py-2 text-sm font-normal"})]}),c.jsxs("label",{className:"flex flex-col gap-1.5 text-sm font-semibold",children:[r.notes,c.jsx("textarea",{value:m,onChange:P=>x(P.target.value),maxLength:1e3,rows:3,className:"rounded-xl border border-border bg-background px-3 py-2 text-sm font-normal"})]}),y&&c.jsx("p",{className:"text-sm font-semibold text-destructive",children:y}),c.jsx("button",{type:"submit",disabled:v==="sending",className:"rounded-full bg-gradient-hero px-6 py-3 text-sm font-bold text-primary-foreground shadow-soft disabled:opacity-60",children:v==="sending"?r.sending:r.submit})]})]})})},_p="/assets/photo-music-B517x5xb.jpg",zi="/assets/photo-stage-BilsWBTp.jpg",sf="/assets/photo-theater-CEzeuVYM.jpg",Hc="/assets/photo-dance-fIjyVeA9.jpg",$v=e=>e==="center"?"object-center":e==="bottom"?"object-bottom":"object-top",Bv=({schedule:e,toggleLabel:t})=>c.jsxs("details",{className:"group rounded-2xl border border-border bg-muted/30 open:bg-muted/40 transition-colors",children:[c.jsxs("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-2 px-4 py-2.5 text-sm font-semibold text-foreground [&::-webkit-details-marker]:hidden",children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(Lh,{className:"h-4 w-4 text-primary"})," ",t]}),c.jsx(cp,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180"})]}),c.jsx("div",{className:"space-y-3 px-4 pb-4 pt-1 text-sm",children:e.map(n=>c.jsxs("div",{children:[c.jsxs("p",{className:"mb-1 text-[11px] font-bold uppercase tracking-widest text-secondary",children:[n.title,n.time&&c.jsxs("span",{className:"ml-2 font-semibold normal-case tracking-normal text-primary",children:["· ",n.time]})]}),c.jsx("ul",{className:"space-y-0.5",children:n.items.map((r,s)=>c.jsxs("li",{className:"flex gap-2",children:[r.time&&c.jsx("span",{className:"w-16 shrink-0 font-semibold text-primary",children:r.time}
372),c.jsx("span",{className:"text-foreground/80",children:r.name})]},s))})]},`${n.title}-${n.time??""}`))})]}),PO={eroffnung:"https://maps.app.goo.gl/vHXPDWZvy4VYY74D9"},OO=(e,t)=>PO[e]||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`:void 0),IO={eroffnung:[{title:"Programm",items:[{time:"18:30",name:"Catering / Musik im Hintergrund â El árbol que crece e.V."},{time:"19:00",name:"GruÃwort: Dezernantin, Projektleiter Juanba â El árbol que crece e.V."},{time:"19:15",name:"Juliana da Silva â El árbol que crece e.V."},{time:"19:25",name:"Kurze Aufführung â CÃa del Sur"},{time:"19:35",name:"Biotanz â Sarya und Baila México"},{time:"19:50",name:"Kurze Aufführung â Kollektiv"},{time:"20:00",name:"Video mit weiteren Highlights: Fran â El árbol que crece e.V."},{time:"20:15",name:"Hip Hop â Enie"},{time:"20:35",name:"Experimental â Octosizer"},{time:"21:00",name:"Schluss"}]}]},Ll="El árbol que crece e. V.",Dl="https://crece-ev.org/assets/logo-crece-DzHvyP_g.gif",LO=[{id:"musikfestival-denkbar",organizer:Ll,logoUrl:Dl,category:"main",theme:"music",date:"2026-09-26",image:_p,venue:"Denkbar Frankfurt, SpohrstraÃe 46A, 60318 Frankfurt am Main",venueUrl:"https://www.google.com/maps/place//data=!4m2!3m1!1s0x47bd0eae33419777:0xb1bf13102130853c?sa=X&ved=1t:8290&ictx=111",price:0,title:{de:"Musikfestival â Stimmen aus vielen Welten",es:"Festival de música â Voces de muchos mundos",en:"Music Festival â Voices from many worlds"},body:{de:"ENIE e.V. organisiert gemeinsam mit den beteiligten Kulturvereinen und Musikgruppen ein ganztägiges Musikfestival mit professioneller Moderation. Traditionelle und zeitgenössische Musik aus vielen Kontexten: anatolisch-kurdischer Frauenchor, rumänische Folklore, arabischer Hip-Hop, ungarische Metalband, orientalische Violine, westafrikanische Percussion, lateinamerikanische Folklore und eine Jazz-Fusion-Band. Zwischen den Auftritten werden Künstler:innen und Traditionen vorgestellt, in den Pausen gibt es Raum für persönlichen Austausch.",es:"ENIE e.V. organiza junto con las asociaciones y grupos musicales participantes un festival de música de dÃa completo con moderación profesional. Música tradicional y contemporánea de muchos contextos: coro de mujeres anatolio-kurdo, folclore rumano, hip-hop árabe, banda húngara de metal, violÃn oriental, percusión de Ãfrica occidental, folclore latinoamericano y una banda de jazz-fusión. Entre las actuaciones se presenta a las y los artistas y en las pausas hay espacio para el encuentro.",en:"ENIE e.V. organises, together with participating cultural associations and music groups, a full-day music festival with professional hosting. Traditional and contemporary music from many contexts: Anatolian-Kurdish women's choir, Romanian folklore, Arabic hip-hop, Hungarian metal band, Oriental violin, West-African percussion, Latin American folklore and a jazz-fusion band. Between sets, artists and their traditions are introduced; breaks invite personal exchange."},schedule:[{title:"15:00 - 16:00",items:[{name:"Frauenchor â Migrantinnenverein Frankfurt e.V."},{name:"Ukrainische Tänze â Ukrainian Coordination Center e.V."},{name:"Lustige Oper â Konfluencia"}]},{title:"16:00 - 18:30",items:[{name:"Ukrainische Tänze â Ukrainian Coordination Center e.V."},{name:"Rumänische Musik â VIS"},{name:"Latino Musik â Canto y Danzas de mi Tierra"}]},{title:"18:30 - 20:00",items:[{name:"Juliana da Silva â Jazz Fusion"}]},{title:"20:00 - 21:00",items:[{name:"Unlimited â Hip Hop"},{name:"Octosizer â Experimental Metall"}]}]},{id:"podium-theater-integration",organizer:Ll,logoUrl:Dl,category:"main",theme:"podium",date:"2026-09-28",time:"19:00",image:zi,venue:"Stadtbücherei Frankfurt â Zentralbibliothek, Hasengasse 4, 60311 Frankfurt am Main",venueUrl:"https://maps.app.goo.gl/5oSuCLaqkrekLigg7",price:0,title:{de:"Podiums-Âdiskussion: Integration durch Theater",es:"Mesa redonda: Integración a través del teatro",en:"Panel: Integration through theatre"}
372,body:{de:"Ein Team von Fachleuten aus den darstellenden Künsten und der interkulturellen Arbeit fragt, welche Rolle Theater als Instrument der Integration spielen kann: wie theatralische Praxis Sprache und deutsche Kultur zugänglich macht, Räume schafft zum Ausprobieren, Fehlermachen und Selbstvertrauen entwickeln. Beleuchtet wird auch, wie Theater Entwurzelung und Verlust ausdrückbar macht, Identität stärkt und Brücken zwischen Communities baut.",es:"Un equipo de profesionales de las artes escénicas y el trabajo intercultural discute qué papel puede jugar el teatro como instrumento de integración: cómo la práctica teatral facilita el aprendizaje del idioma y de la cultura alemana, y crea espacios protegidos para probar, equivocarse y desarrollar confianza. También se aborda cómo el teatro ayuda a expresar el desarraigo, fortalecer la identidad y tender puentes entre comunidades.",en:"A panel of experts from the performing arts and intercultural work explores theatre as a tool for integration: how theatrical practice supports language learning and cultural access, and creates safe spaces to try, fail and build confidence. The talk also addresses how theatre helps express uprooting and loss, strengthens identity and builds bridges between communities."}},{id:"fabelhafte-fabeln",organizer:Ll,logoUrl:Dl,category:"main",theme:"theater",date:"2026-10-02",time:"16:00 DE · 17:30 ES",image:"/img/img-fabulas.png",imagePos:"center",zoomable:!0,venue:"Instituto Cervantes, StaufenstraÃe 1, 60323 Frankfurt am Main",venueUrl:"https://maps.app.goo.gl/ba8ZKrUtarenwPcy6",price:10,title:{de:"Fabelhafte Fabeln â Fabulosas fábulas",es:"Fabulosas fábulas â Fabelhafte Fabeln",en:"Fabulous Fables â Fabelhafte Fabeln"},body:{de:"Die CompañÃa del Sur präsentiert ein bezauberndes Kindertheaterstück auf Basis von drei traditionellen Fabeln: Der Fuchs und der Rabe, Der Hase und die Schildkröte sowie Der Krieg der Elefanten. Zwei aufeinanderfolgende Aufführungen â zuerst auf Deutsch, danach dieselbe Inszenierung auf Spanisch â als zugängliches, zweisprachiges Erlebnis für Kinder und Familien.",es:"La CompañÃa del Sur presenta una encantadora obra de teatro infantil basada en tres fábulas tradicionales: El zorro y el cuervo, La liebre y la tortuga y La guerra de los elefantes. Dos funciones consecutivas â primero en alemán y luego la misma puesta en español â para una experiencia bilingüe y accesible para niñas, niños y familias.",en:"La CompañÃa del Sur presents a charming children's play based on three traditional fables: The Fox and the Raven, The Hare and the Tortoise, and The War of the Elephants. Two back-to-back performances â first in German, then the same staging in Spanish â a bilingual, accessible experience for children and families."}},{id:"theater-lingua",organizer:Ll,logoUrl:Dl,category:"main",theme:"theater",date:"2026-10-04",time:"14:00 Kinder · 16:00 & 18:00 Erwachsene",image:Hc,venue:"Saalbau Titus Forum, Walter-Möller-Platz 2, 60439 Frankfurt am Main",venueUrl:"https://www.google.com/maps/place//data=!4m2!3m1!1s0x47bd08f8e6eaf00d:0x12adc2b69f43298b",price:10,title:{de:"Theaterpräsentation +Lingua",es:"Presentación teatral +Lingua",en:"Theatre showcase +Lingua"},body:{de:"Ein vielfältiger Theater- und Tanztag: Gruppen zeigen ihre Arbeit auf Französisch, Englisch, Türkisch, Griechisch, Spanisch und Deutsch. Jede Präsentation ist eine 20-minütige Kostprobe â Kindertheater um 14 Uhr, Theater für Erwachsene um 16 und 18 Uhr. Alle Aufführungen mit deutschen Ãbertiteln, ergänzt durch Tanzeinlagen.",es:"Un dÃa diverso de teatro y danza: distintos grupos muestran su trabajo en francés, inglés, turco, griego, español y alemán. Cada presentación es una muestra de 20 minutos â teatro infantil a las 14 h, teatro para adultos a las 16 h y a las 18 h. Todas las funciones con sobretÃtulos en alemán, complementadas con piezas de danza.",en:"A diverse day of theatre and dance: groups present their work in French, English, Turkish, Greek, Spanish and German. Each showcase is a 20-minute taster â children's theatre at 2pm, adult theatre at 4pm and 6pm. All performances feature German surtitles, complemented by dance pieces."},schedule:[{title:"Kinderprogramm",time:"14:00",items:[{name:"Jugend und Kulturverein e.V."},{name:"Verein der Irisch-Gälischen Sprache e.V."},{name:"Frauen Aba e.V."},{name:"Silvina Eduardo â Enie e.V."}]},{title:"Erwachsenenprogramm",time:"16:00",items:[{name:"Acting Up Theater-Kollektiv"},{name:"Stimmen des Ankommens"},{name:"CompañÃa del Sur"}]},{title:"Erwachsenenprogramm",time:"18:00",items:[{name:"Shakespeare Frankfurt e.V."},{name:"Motiv im Halo"},{name:"Artifugio"}]}]}],DO={theater:sf,music:_p,dance:Hc,podium:zi,storytelling:sf,movie:zi,tour:Hc,other:zi},Ml={theater:{icon:fb,color:"bg-gradient-leaf"}
372,music:{icon:db,color:"bg-gradient-sun"},dance:{icon:ab,color:"bg-gradient-sky"},podium:{icon:eC,color:"bg-gradient-hero"},storytelling:{icon:lb,color:"bg-gradient-berry"},movie:{icon:cb,color:"bg-gradient-night"},tour:{icon:qT,color:"bg-gradient-trail"},other:{icon:tC,color:"bg-gradient-stone"}},Wv={de:{tag:"Programm",title:"Programm der Interkulturellen Woche",subtitle:"Filtere nach Kategorie, Tag oder Kunstform.",all:"Alle",category:"Kategorie",day:"Tag",theme:"Thema",main:"Hauptveranstaltungen",sync:"Synchrone Events",themes:{theater:"Theater",music:"Musik",dance:"Tanz",podium:"Podium",storytelling:"Lesungen",movie:"Film",tour:"Rundgang",other:"Andere"},view:"Ansicht",expanded:"Erweitert",compact:"Kompakt",search:"Suchen",searchPlaceholder:"Titel, Ort, Veranstalter â¦",filters:"Filter",empty:"Keine Veranstaltungen für diese Auswahl.",reset:"Filter zurücksetzen",locale:"de-DE",free:"Kostenlos",price:"Eintritt",organizer:"Veranstalter",moreInfo:"Mehr Infos",schedule:"Ablaufplan ansehen"},es:{tag:"Programa",title:"Programa de la Semana Intercultural",subtitle:"Filtra por categorÃa, dÃa o disciplina.",all:"Todos",category:"CategorÃa",day:"DÃa",theme:"Tema",main:"Eventos principales",sync:"Eventos sincrónicos",themes:{theater:"Teatro",music:"Música",dance:"Danza",podium:"Podio",storytelling:"Cuentacuentos",movie:"Cine",tour:"Recorrido",other:"Otros"},view:"Vista",expanded:"Ampliada",compact:"Compacta",search:"Buscar",searchPlaceholder:"TÃtulo, lugar, organizador â¦",filters:"Filtros",empty:"No hay eventos para esta selección.",reset:"Restablecer filtros",locale:"es-ES",free:"¡Gratis!",price:"Entrada",organizer:"Organiza",moreInfo:"Más información",schedule:"Ver programación"},en:{tag:"Programme",title:"Intercultural Week programme",subtitle:"Filter by category, day or art form.",all:"All",category:"Category",day:"Day",theme:"Theme",main:"Main events",sync:"Synchronous events",themes:{theater:"Theatre",music:"Music",dance:"Dance",podium:"Panel",storytelling:"Storytelling",movie:"Film",tour:"Tour",other:"Other"},view:"View",expanded:"Expanded",compact:"Compact",search:"Search",searchPlaceholder:"Title, venue, organiser â¦",filters:"Filters",empty:"No events match this selection.",reset:"Reset filters",locale:"en-GB",free:"Free",price:"Ticket",organizer:"Organiser",moreInfo:"More info",schedule:"See schedule"}},ir=({active:e,onClick:t,children:n})=>c.jsx("button",{onClick:t,className:`px-2.5 py-1 rounded-full text-[10px] font-semibold uppercase tracking-wide transition-all border ${e?"bg-primary text-primary-foreground border-primary shadow-soft":"bg-card text-muted-foreground border-border hover:text-foreground hover:border-primary/40"}`,children:n}),MO=()=>{const{lang:e}=gt(),t=Wv[e]||Wv.de,[n,r]=b.useState("all"),[s,i]=b.useState("all"),[o,a]=b.useState("all"),[l,u]=b.useState([]),[h,d]=b.useState(null),[p,f]=b.useState(null),w=Vc[e]||Vc.de,m=({id:E})=>NO(E)?c.jsxs("div",{className:"flex flex-col gap-2 rounded-2xl border border-secondary/30 bg-secondary/10 p-4 sm:flex-row sm:items-center sm:justify-between",children:[c.jsx("p",{className:"text-sm font-semibold text-foreground",children:w.notice}),c.jsxs("button",{type:"button",onClick:()=>f(E),className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-full bg-gradient-hero px-5 py-2 text-sm font-bold text-primary-foreground shadow-soft",children:[c.jsx(cC,{className:"h-4 w-4"})," ",w.cta]})]}):null,[x,v]=b.useState("expanded"),[g,y]=b.useState(null),[S,_]=b.useState(""),[T,C]=b.useState(!1),O=(n!=="all"?1:0)+(s!=="all"?1:0)+(o!=="all"?1:0);b.useEffect(()=>{const E=Object.keys(Ml),G=L=>{if(L==="all"){a("all"),C(!0);return}L&&E.includes(L)&&(a(L),C(!0))};G(new URLSearchParams(window.location.search).get("theme")??void 0);const j=L=>{var R;return G((R=L.detail)==null?void 0:R.theme)};return window.addEventListener("program:filter",j),()=>window.removeEventListener("program:filter",j)},[]),b.useEffect(()=>{let E=!0;return ke.from("program_events").select("*").order("date",{ascending:!0}).then(({data:G,error:j})=>{!E||j||!G||u(G.map(L=>({id:L.id,category:L.category==="main"?"main":"sync",theme:["theater","music","dance","podium","storytelling","movie","tour","other"].includes(L.theme)?L.theme:"other",date:L.date,time:L.time??void 0,venue:L.venue,image:L.image_url||DO[L.theme??"other"]||zi,price:Number(L.price)||0,title:{de:L.title_de,es:L.title_es||L.title_de,en:L.title_en||L.title_de},body:{de:L.body_de,es:L.body_es||L.body_de,en:L.body_en||L.body_de},organizer:L.organizer||void 0,infoUrl:L.info_url||void 0,logoUrl:L.logo_url||void 0,venueUrl:OO(L.slug,L.venue),schedule:IO[L.slug],imagePos:L.image_position||void 0,zoomable:!!L.image_url})))}),()=>{E=!1}},[]);const N=b.useMemo(()=>[...LO,...l],[l]),I=b.useMemo(()=>Array.from(new Set(N.map(E=>E.date))).sort(),[N]),B=b.useMemo(()=>{const E=S.trim().toLowerCase(),G=j=>E?[j.title.de,j.title.es,j.title.en,j.body.de,j.body.es,j.body.en,j.venue,j.organizer??""].join(" ").toLowerCase().replace(/<[^>]*>/g," ").includes(E):!0;return N.filter(j=>(n==="all"||j.category===n)&&(s==="all"||j.date===s)&&(o==="all"||j.theme===o)&&G(j)).sort((j,L)=>j.category!==L.category?j.category==="main"?-1:1:j.date.localeCompare(L.date))},[N,n,s,o,S]),P=E=>new Date(E+"T00:00:00").toLocaleDateString(t.locale,{weekday:"short",day:"2-digit",month:"short"}).replace(/[.,]/g,""),H=["theater","music","dance","podium","storytelling","movie","tour","other"];return c.jsxs("section",{id:"programm",className:"relative py-28",children:[c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:[c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-secondary",children:t.tag}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:t.title}),c.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:t.subtitle})]}),c.jsxs("div",{className:"mt-10 rounded-3xl border border-border bg-card/60 backdrop-blur p-4 sm:p-5 shadow-soft",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[c.jsx(ir,{active:x==="expanded",onClick:()=>v("expanded"),children:c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(JT,{className:"h-3 w-3"})," ",t.expanded]})}),c.jsx(ir,{active:x==="compact",onClick:()=>v("compact"),children:c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(QT,{className:"h-3 w-3"})," ",t.compact]})})]}),c.jsxs("button",{type:"button",onClick:()=>C(E=>!E),"aria-expanded":T,className:"lg:hidden inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-3 py-1.5 text-xs font-semibold text-foreground hover:border-primary/50 transition-colors",children:[c.jsx(xg,{className:"h-3.5 w-3.5"})," ",t.filters,O>0&&c.jsx("span",{className:"inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full bg-primary px-1 text-[10px] font-bold text-primary-foreground",children:O}),c.jsx(cp,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${T?"rotate-180":""}`})]}),c.jsxs("div",{className:"relative w-full lg:w-auto lg:ml-auto",children:[c.jsx(hb,{className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),c.jsx("input",{type:"search",value:S,onChange:E=>_(E.target.value),placeholder:t.searchPlaceholder,"aria-label":t.search,className:"w-full lg:w-64 roun
372ded-full border border-border bg-card pl-8 pr-8 py-1.5 text-xs text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary/50 focus:ring-2 focus:ring-primary/20"}),S&&c.jsx("button",{type:"button",onClick:()=>_(""),"aria-label":t.reset,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:c.jsx(gr,{className:"h-3.5 w-3.5"})})]})]}),c.jsxs("div",{className:`${T?"block":"hidden"} lg:block space-y-2.5 mt-3 pt-3 border-t border-border/60`,children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-widest text-muted-foreground w-20",children:[c.jsx(xg,{className:"h-3 w-3"})," ",t.category]}),c.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[c.jsx(ir,{active:n==="all",onClick:()=>r("all"),children:t.all}),c.jsx(ir,{active:n==="main",onClick:()=>r("main"),children:t.main}),c.jsx(ir,{active:n==="sync",onClick:()=>r("sync"),children:t.sync})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground w-20",children:t.day}),c.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[c.jsx(ir,{active:s==="all",onClick:()=>i("all"),children:t.all}),I.map(E=>c.jsx(ir,{active:s===E,onClick:()=>i(E),children:P(E)},E))]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground w-20",children:t.theme}),c.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[c.jsx(ir,{active:o==="all",onClick:()=>a("all"),children:t.all}),H.map(E=>{const G=Ml[E].icon;return c.jsx(ir,{active:o===E,onClick:()=>a(E),children:c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(G,{className:"h-3 w-3"})," ",t.themes[E]]})},E)})]})]}),O>0&&c.jsxs("button",{type:"button",onClick:()=>{r("all"),i("all"),a("all")},className:"inline-flex items-center gap-1.5 pt-1 text-xs font-semibold text-primary underline underline-offset-4",children:[c.jsx(gr,{className:"h-3.5 w-3.5"})," ",t.reset]})]})]}),B.length===0&&c.jsxs("div",{className:"mt-10 text-center py-16 text-muted-foreground",children:[c.jsx("p",{children:t.empty}),c.jsx("button",{onClick:()=>{r("all"),i("all"),a("all"),_("")},className:"mt-3 text-sm font-semibold text-primary underline underline-offset-4",children:t.reset})]}),x==="compact"&&B.length>0&&c.jsx("div",{className:"mt-10 overflow-hidden rounded-3xl border border-border bg-card shadow-soft divide-y divide-border",children:B.map(E=>{const G=Ml[E.theme],j=G.icon;return c.jsxs("div",{style:E.category==="main"?{boxShadow:"inset 4px 0 0 hsl(45 95% 55%)"}:void 0,children:[c.jsxs("button",{type:"button",onClick:()=>y(L=>L===E.id?null:E.id),"aria-expanded":g===E.id,className:"flex w-full items-center gap-3 sm:gap-4 p-3 sm:p-4 text-left hover:bg-muted/40 transition-colors",children:[c.jsx("div",{className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg ${G.color} text-primary-foreground`,children:c.jsx(j,{className:"h-4 w-4"})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h3",{className:"truncate text-sm sm:text-base font-bold",children:E.title[e]||E.title.de}),c.jsxs("div",{className:"mt-0.5 flex flex-wrap gap-x-3 gap-y-0.5 text-[11px] sm:text-xs text-muted-foreground",children:[c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(ga,{className:"h-3 w-3 text-primary"})," ",P(E.date)]}),E.time&&c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(Lh,{className:"h-3 w-3 text-primary"})," ",E.time]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(Mh,{className:"h-3 w-3 text-primary"})," ",E.venue]})]})]}),c.jsx("span",{className:`hidden sm:inline-flex shrink-0 items-center rounded-full px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-widest ${E.price===0?"bg-primary/10 text-primary border border-primary/20":"bg-secondary/10 text-secondary border border-secondary/20"}`,children:E.price===0?t.free:`${E.price} â¬`}),E.logoUrl&&c.jsx("img",{src:E.logoUrl,alt:"",loading:"lazy",className:"relative z-30 hidden sm:block h-12 w-auto max-w-[10rem] shrink-0 rounded-md bg-white object-contain p-1 shadow-soft"})]}),g===E.id&&c.jsx("div",{className:"px-3 sm:px-4 pb-4 -mt-1",children:c.jsxs("div",{className:"rounded-2xl bg-muted/40 p-4 sm:p-5 flex flex-col gap-4 sm:flex-row sm:items-stretch",children:[c.jsx("div",{className:"overflow-hidden rounded-xl shrink-0 sm:w-64 sm:self-start",children:c.jsx("img",{src:E.image,alt:E.title[e]||E.title.de,loading:"lazy",onClick:E.zoomable?()=>d(E.image):void 0,className:`w-full aspect-[4/3] object-cover ${$v(E.imagePos)}
372 ${E.zoomable?"cursor-zoom-in hover:scale-105 transition-transform duration-500":""}`})}),c.jsxs("div",{className:"flex flex-1 flex-col gap-3 min-w-0",children:[c.jsx("div",{className:"sm:hidden",children:c.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-widest ${E.price===0?"bg-primary/10 text-primary border border-primary/20":"bg-secondary/10 text-secondary border border-secondary/20"}`,children:E.price===0?t.free:`${E.price} â¬`})}),c.jsx("div",{className:"prose-event text-sm leading-relaxed text-foreground/80 [&_a]:text-primary [&_a]:underline [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:mb-2",dangerouslySetInnerHTML:{__html:Uv(E.body[e]||E.body.de)}}),E.schedule&&c.jsx(Bv,{schedule:E.schedule,toggleLabel:t.schedule}),c.jsx(m,{id:E.id}),(E.organizer||E.infoUrl||E.logoUrl)&&c.jsxs("div",{className:"mt-auto flex items-center gap-3 pt-1 text-xs sm:text-sm",children:[E.logoUrl&&c.jsx("img",{src:E.logoUrl,alt:"",loading:"lazy",className:"h-12 w-auto max-w-[8rem] shrink-0 rounded-lg bg-white object-contain p-1 shadow-soft"}),c.jsxs("div",{className:"flex flex-col items-start gap-1.5",children:[E.organizer&&c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[c.jsx(va,{className:"h-3.5 w-3.5 text-secondary"})," ",t.organizer,": ",E.organizer]}),E.infoUrl&&c.jsxs("a",{href:E.infoUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 font-semibold text-primary underline underline-offset-4",children:[c.jsx(bg,{className:"h-3.5 w-3.5"})," ",t.moreInfo]})]})]})]})]})})]},E.id)})}),x==="expanded"&&c.jsx("div",{className:"mt-10 grid md:grid-cols-2 gap-5",children:B.map(E=>{const G=Ml[E.theme],j=G.icon;return c.jsxs("article",{className:"group relative flex flex-col rounded-3xl border border-border bg-card overflow-hidden shadow-soft hover:shadow-glow hover:-translate-y-1 transition-all duration-500",children:[c.jsx("div",{className:`relative z-20 h-2 w-full ${G.color}`}),E.category==="main"&&c.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-10 rounded-3xl border-4 border-[hsl(45,95%,55%)]"}),c.jsxs("div",{className:"relative z-20 p-5 sm:p-7 flex flex-col gap-4 flex-1",children:[c.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:gap-5",children:[c.jsxs("div",{className:"w-full lg:w-44 shrink-0 flex flex-col gap-2",children:[c.jsx("div",{className:"aspect-[16/9] lg:aspect-[4/3] overflow-hidden rounded-2xl",children:c.jsx("img",{src:E.image,alt:E.title[e]||E.title.de,loading:"lazy",onClick:E.zoomable?()=>d(E.image):void 0,className:`h-full w-full object-cover ${$v(E.imagePos)} ${E.zoomable?"cursor-zoom-in hover:scale-105 transition-transform duration-500":""}`})}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[c.jsxs("span",{className:"text-[9px] font-bold uppercase tracking-widest text-muted-foreground leading-tight",children:[E.category==="main"?t.main:t.sync," · ",t.themes[E.theme]]}),c.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-widest ${E.price===0?"bg-primary/10 text-primary border border-primary/20":"bg-secondary/10 text-secondary border border-secondary/20"}`,children:E.price===0?t.free:`${E.price} â¬`})]})]}),c.jsxs("div",{className:"flex flex-col gap-3 flex-1 min-w-0",children:[c.jsxs("h3",{className:"flex items-start gap-2 text-lg sm:text-xl lg:text-2xl font-bold leading-snug",children:[c.jsx("span",{className:`inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-lg ${G.color} text-primary-foreground shadow-soft mt-1`,children:c.jsx(j,{className:"h-3 w-3"})}),c.jsx("span",{className:"min-w-0 break-words",children:E.title[e]||E.title.de})]}),c.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs sm:text-sm text-muted-foreground",children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(ga,{className:"h-3.5 w-3.5 shrink-0 text-primary"})," ",P(E.date)]}),E.time&&c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx(Lh,{className:"h-3.5 w-3.5 shrink-0 text-primary"})," ",E.time]}),c.jsxs("span",{className:"inline-flex items-start gap-1.5 min-w-0",children:[c.jsx(Mh,{className:"h-3.5 w-3.5 shrink-0 text-primary mt-0.5"})," ",E.venueUrl?c.jsx("a",{href:E.venueUrl,target:"_blank",rel:"noopener noreferrer",onClick:L=>L.stopPropagation(),className:"break-words min-w-0 underline underline-offset-2 hover:text-primary",children:E.venue}):c.jsx("span",{className:"break-words min-w-0",children:E.venue})]})]})]})]}),c.jsx("div",{className:"prose-event text-sm leading-relaxed text-foreground
372/80 [&_a]:text-primary [&_a]:underline [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:mb-2",dangerouslySetInnerHTML:{__html:Uv(E.body[e]||E.body.de)}}),E.schedule&&c.jsx(Bv,{schedule:E.schedule,toggleLabel:t.schedule}),c.jsx(m,{id:E.id}),(E.organizer||E.infoUrl||E.logoUrl)&&c.jsxs("div",{className:"mt-auto flex items-end justify-between gap-x-4 gap-y-3 pt-3 text-xs sm:text-sm",children:[c.jsxs("div",{className:"flex flex-col items-start gap-2",children:[E.organizer&&c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[c.jsx(va,{className:"h-3.5 w-3.5 text-secondary"})," ",t.organizer,": ",E.organizer]}),E.infoUrl&&c.jsxs("a",{href:E.infoUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 font-semibold text-primary underline underline-offset-4",children:[c.jsx(bg,{className:"h-3.5 w-3.5"})," ",t.moreInfo]})]}),E.logoUrl&&c.jsx("img",{src:E.logoUrl,alt:"",loading:"lazy",className:"relative z-30 h-16 w-auto max-w-[45%] shrink-0 self-end rounded-lg bg-white object-contain p-1 shadow-soft"})]})]})]},E.id)})})]}),p&&c.jsx(RO,{eventId:p,onClose:()=>f(null)}),h&&c.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-background/90 backdrop-blur p-4",onClick:()=>d(null),role:"dialog","aria-modal":"true",children:[c.jsx("button",{onClick:()=>d(null),"aria-label":"Close",className:"absolute top-5 right-5 inline-flex h-10 w-10 items-center justify-center rounded-full border border-border bg-card text-foreground shadow-soft",children:c.jsx(gr,{className:"h-5 w-5"})}),c.jsx("img",{src:h,alt:"",className:"max-h-[85vh] max-w-full rounded-3xl object-contain shadow-glow",onClick:E=>E.stopPropagation()})]})]})},a1="/assets/crece-logo-whO6VlGV.png",Ua="/assets/logo-crece-DzHvyP_g.gif",zO="/assets/photo-script-BRw0YxRB.jpg",FO="/assets/photo-keys-CDvSN2es.jpg",UO="/assets/photo-team-BcUihtU4.jpg",$O="/assets/photo-hands-D1yU6iJ-.jpg",BO="/assets/team-antonia-CeeAqyBT.png",WO="/assets/team-carolina-Ds8Cllbs.png",VO="/assets/team-francisco-BksFhkFd.png",HO="/assets/team-juan-2Grg5w1q.png",KO="/assets/logo-enie-DjjuS_Un.png",qO="/assets/logo-buhnenclan-Czc5kbZ4.jpg",GO="/assets/logo-companiadelsur-CYqzFseV.jpg",YO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAAPFBMVEX////tHCTuHSXtHST//fz/7+fxVz3uNCr5rpT8yLT0f2H4oobyZUj91cTvRzP2lnn1imzzclT+4tX6u6SWcInzAAAPBUlEQVR4nO1ch5ajyA6lAqHIhv//11fSvcI4jHt6Fnf7nIdm140TJYTilcpFcdJJJ5100kknnXTSSSeddNJJJ5100kknnXTS/zvF7Sg106UfQwjOOXms+8vUJPuEPcanZ/khildOiqJc5ypz6rxw650P3rv8JL/kXdU2yw3jv0Tx5nCYqizXzLFXtoXsr9PXQ6jmgV+Lj6f4Wa7lcelG4cqJTmQBB2NY//cqepW4G6cs7/ibIueiMV2EL2FN9EEUwwuPwjvFTJVRzvvVvveLitKIWkC44AoMioT1UOxRpW8iD2NjXP8CyaLNGFSm6i4CZE2ZQ6G9Ct4MUnjOf4zt3+C4SD1kqfIUkVKXAzRD/Id4kevr+nG5ojH9Br+Zyha8qQJAm7NU636eUlrwkSWlaeprXJZKXNVGLuKy/DzLsVhraCwe1duN2RvH+4/mxyV7cP1oMOvMnNfdw0nfynX+r7zAQXjThVB1yx840BeWrqL/gLjzt/ofFnaqqbUBTNfzcvM+L+16AeLglmlUGQd4Gu/q9ac8tqzQqQp79WxwYtGWHiT5qJ3ylq+q76dmuPLf9Ig5gToy31zZO6lsHZcWB+auDmzpLjV1RoOJ+jjR9r4btlDUB409cImhL3+I5wphJKj73Vhe5tHTTdCpMFDCQ48584jK3zqahghV5c/wrCEQCuKmcnff967aI44HhhQxvcqubzL9kM/Ww/tlPdSeFpiXrAa82IwIHXR/zDz8VX8ZJesJcl163gA5Ua0neSfjQ43V9NbPWK0ZLSAyRUIi4iz0yDFTqVBPOM9EOctDbYrzBsbFa2XdgCTzn3rVl1OlcnebK9OsSBMS5n6IhnZZGsGjXj39PGT9Jo6VZzNBV2nwK2dLPSwuOmYbHlmID8xbeZQ/dlEdKStclxZl5Xu41pP2AemDhLNSFkmjhwcLzoKj7+cuJXwhpS6nHgG67p3lIBpUYtHy4vIbVVm8K8NukWmIxFpZJE6m3kiGsoOYtju9VSjF0PXwLJpn6wnmAlzTZHP+9AZ2dY2GOphFKzzn/MMSZXiTsVsYGR9klgsy+EAPE/Zwz9PmYfz0Hv0YvAUMB54r2Bt1vF/t4sTMktKw+3pOvk0ZxF5HfW+2sBrCWzLscgyWVSrPwxiozsqyrRnXqR+tEs8urp9Wi9SZbfUm8Odwzy2cirjrd4TG2UMNfOiV55q5sbw2ipQlYW0ugZmfhUahviNDaUTRBZepobBFdM30BrVOemNFKVUdwTOdyVxCJ1ors+isPctDcXO8E5Mzl+4ha3h+fa05WqlFOYBs1EP2C/kpI0eWWFLDk/TNsj9yhjyPCQkVKI1hq4SF61jWgVX74QoyBbM60QSxwQCrFMFLRXXhNVneZGUVhS/Hs+p22QfAfPk/vWnJcpXQHsy0VBrKdauK6AN9c2iV5652liL7LYgg3CAwykch6uyet4/5Xp5P3lKTgz3IcvF6q0eRTbdJNbQa3XtPJMlETWTBclg9vsqxC7THEKR0iZWHrGHiR5JGbCeyGFBmyaLK81CzemKkUBbGvq82+EP4rrcqMoepYBCOTxERAPdnPZZn6IBKq9pyTn3a1EGz5cBapm677Tanph2Zx077s3WsEJzmSpoOIAU8PiqWsyjwtKWgmoA0KJsCeWiH+3WHOSt8GG9dQwu4LzvFVjzICNXyfn1TNOfpA/xGA0Bag3GoWX3dp/TNGPbwnbzTB/pwtb7GEyfu7775X4mn6uESMoeipE0gqCuSl2JKDTNN06Uf9l9cr0g6DsrR6q1Rno7madKRKaqdJwUAoV6NRqsvQqQVLA1QUgh7/3VFN65HCSlI/tfoxROxag9FQlC7FKP5CUkVJE6aW57BSr/h0On6ve1PvKI6cfboa7hRxD/qWfPDsWERUAHw21yNivZevIIDoh8KMi29lQnqHR/u840U1fpUkVXUKOO9OzwDEY0mXtHBCAl1IM+c1Ht7+rj0TDfjjuvVQr04utLK/OpIdgGjB+Z6Yj2S6jjAeaIKZU8f4jev8Geh6QX1yAWCinq2fPZYLDUv1BL0F22QJ0CcfaOVuhoSYElZ/ol63HGdAsKR6yUsWlXf/fE7/8ZzCR3MoUKQWyIyPogNKsIXLOkQEX6R/cBZEx8R6Y4ovMTCD3XUjUhSdFbuZwumQ6jIM8EkbQVdpunL25xFzfTKi3QnnNz5A3mW+3lhJlfn5wtdX3BihBfiNOrCvubXzjnSX8p1Dx7Vo+rVcVQGmprow8z0WTKh2KFKEbuyXkrcIR/POS4kyUX1E6AfKA2mF1/6Pq2E6lS2NR2rOOylVsBGC5l95+W1xMSxe2AmTq60pX70h0p61vvvxd/F1QObU7lc2KUluvBXBMYqoH5B4msTWHQeyHJeQSOtU3ypBaanYTd5A/L+juedICfYrs+MxgHa58KBnjoWrEqcpGw1hyRwASwB/hzN4o2+XLlO7N1oSDFk+8hSMWlDKy9S5hKLPaCw5rBCVNHXX4noia5aw0AE0TN0HWmJDRsUEsI7xzJPjx0gj9eLPR2ZiD27uJMW+WimH8i0VHLotBYSWRC+xNI1roUv0DhLTO9vxkwwT9RsQnvdHVeUR/URwrUIogckp8fs5zOjfkHl2o53+XKcHBIWST+aALEfiSSA0aAxtybyn6Dqegde99bSrKjdvZUlJrfiRmGVSCEPYxqoUBCowmCZQdN3Nab6dUyoCDvdKWz
372yxNHkOKAOcAcxHMmoLJFlVbI0DIW2Mq+F9J+pJZAz317bAo3wwuhgfYEDIyL7VaoSyJZ0qSmgGfqFzU8ELO+uLRqSLddCFNgdGMdxei9IVuLZnZgSgb0vmUYhdptZxIJItuMKGlwPYzlLmiiNSppCEW44Eza9TuomIu0PkkaDTLNozZh8OEqnhaDHgUyj51AA3BenPb2+qZB0eFB9Zi1y+TGwi3Ao07DEnKQvhKE90UNJ8vrXijiztX/nzUtDMyVRtQ7fURxHcVqYCkx6AYDwFnV5npjLK+rZgZl4NlJi29QX5v5wfBTXPeupLspNxQIJSynSu7xS6tLa5evthxInWeSSE1vlhwYX4m1T3KKj5jb0Km66AmCPzDdMa++T5Y7DhqLqK4Cg48J4vEYRqfFbdIrycSw4VKORmB+9/6q2KFQRxv2rhag6ah4pXSYGxyPrrY5zE4JidQb76+vsBv0RhhPHzuHeeXsJnPUoO/WWtUjRw5eZ1zcoaWcwP5RSGrEduxJM0CsodwDpDQnYiAmbfbtcPheYiwtwTPhS9e8oisFjukMWqNm0Ejz5wpbas04xJNpa27HavSGsDYgt2YrzU/af3XHlVtTCVrVabt8FLQzJ/CPio3fsMj6KumHJ4F1T7HU+CvCh05ySIg6sF91Rha3y0nqUzmJMjfUN1ZfAmoI1C2+zC3gO9Tbj7k29tIqTDIAQMOx0ZEDEWdXAB8V5wbUUWcMGVHNAaU9lyz6WDw+g5MLZJwFrxCOpshzbAi09p+4kJ+akRg5xUZMmSzHH++ihTVMElge30DEdkGIijpTJkXYopTOHDMQjL47NuHrR22yZSXBVA2mLDWIykoj1w4hmrBBZtBew2MjveqCbLhC+9H6KPfXElTRvY/eB+LXrp04nxZzNV2g9tnN3sFUWheKZIzvuWYnKYxugmkCg/IgoSTUsSmAY6utWgGBdfGezeWKl9XB7sggMUJMw0Y4KXz5YpQt4ZLau9AlH1bUrX1sNGfxuit7aXe6OZ8VAbIeAeO+FmLzrDgXVCw2K0F0Z1Fhqluc6jhSXytqg3opVG7ORxNUGSm9FgAKAjSLExpfJ4j9xPu6iROy4qSx4DPbMnHoNDDWeu+Xyv0dPqCMYmst4xXZHDgUf2pIDGZ6HaZUeBbZA64Mg/2nExCBnErxntjI+n+OANwQU0uAeeXdoc4s0akFOnysdAIWXvONizUjswkDJwGH2552BTjRMMcAKJnsoOL1RY91NbSMnz2ZRFhk1ILXcjKOyDnW73qPTeypbrwVYQnNP8up3zHtUNHlXl1unWc3T1w04i0Mz9UpTNzBtSc941ncGTVd6hza7e/rB/0wpWGtVy+8pmEv2tqvhZk04nd49vBPj7hMrQ1M4sjzcLzZ7tJM5RzfjElgTjLqvaJ98ykSvGe71jbupjtG2RtymrofxnKsQTsUGaWNHRU2dt02T2WfNKxnXGZvKXVHtuD/PLkedaAOBg1dvUOtEHIxDMcVaW0McU0m6E1h12jHrUI+9POTZdrBwbCJgauQ9NFGsIUBVh8p2UTq+bPOaTEDUDd7UYvu5D7p7VhdvIZ0eID/a7RSLmr3bNuZwDIyJMjsSLjxWAEYdxn+9P7A4fEK6C4Px/KKZ5GBdqs0F6s5xpCGIov6mM3oV9eBRq3n/po0BRjKpCcF6j0F52aJjzDrLOpztExH38QdUROwatvBlG/KfycRTYw5IZcj6qKFuElC1+Q+1xeqRZb5wgQm492QdtyvKqDqlGEJFZcROOTbBDLzLQp4ft2cZ1NBi7OlIBO+RWYsKUXeeWU7UbW8vTYutQpy4ri7dzSjkDd/YhoL78z7l2C89aB6qqjvu3lLcSArEaZI9IzdB5OFMDTsuATsC3uakrycuK7hijg08DWavfvhA5qgxmagpwds4vlu1RbfyO65qL/aGSu/fUq88W1tXX3UL8PJ9KckXZoYfp1P7PyRooaUP7ou21nOKsr2Y+eEPbP4suACLkfW7W3vB21BByFKu3SMib6XNxr4jIwai2n7FhIjI23LSZ6v/E5UXFirizI3nH1Rq0PdE3WArD5Camr78eVPsUyj1wSp45fmu8voEulosaGmBamPfiavKD+NXyLYCkFJrY7Sq0b79KJ43VqNprGyxRJFrUg5XgPRDWI/3DmFttUsT/PYTG9XD5qPPIAo8dRdnP4Vl+xqvDZjPYl1wjzS1PXEEluWYZa/2vYyPYTty15zffk4g2Dx+TjaavVf+IAe91eb4gQ+UvQrf2C9mKH2Wm+Z2F+5bdYbd3LL8acQtAxxhsbbG2Hwwy5gY4vC88V+3P/3zXN8li3vIjILTnkDxOwndXxMyOehy3U/Di7L8cwiTgfLLletydRHxw9zFSSeddNJJJ5100kknnXTSSSeddNJJJ5100km/R/8DiRRhg6qWxj4AAAAASUVORK5CYII=",JO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAjVBMVEW9AkX///+8AD+4AC+5ADK7AD26ADi5ADW8AEHx197cl6fUeZDMW3jjrrrqw8303uTENV378fS+Fkq4ACzGPmT89PfOY37++vvmtcHw09rz3OL46u7Vf5TajqDAIVHISWvty9PUe5HhpbPKVHPCK1fpvsjXhpnLV3Xnt8LScYnblKTITG3ip7bOYn3DMFvPMLcNAAAEtElEQVR4nO2d63LaSBBGhSQk+Qq2wAI7xviCb3H8/o+3LBqk7q0eA7FGqU2d8/Orrpjz0TNcKlVEEQAAAAAAAAAAAAAAAAAAAADAH6HIkg15odK8TrNodxrbaVqnwz3SoGTRbLqmGiwXIs0Xq3/T6WAlwiL9XFab2bNYpMndvE4fxMMuypfrzb9b3Yo0Lq9Gm3R6L/6FoAzz48GGm6ukfQ6z4Uedjn6m7WwWvdbp0SRv03xxXqfLp/Y5XHcxr9PVpUiTu+s6nRU9PYdxeV9t/mL1o2w7HSa39eOYvsm06eJXaXYhG2q7EA21XSz0iQhGUZ7e1H/yIW8rjcu3izq9TWT649tdnBldBCUdH7lFiuQi/RzV6dlQpDu6eP/NLoKSRSu3SGO1SMtmkdo0Hc+tLu6+2UVQ2kU63blIzaGaj3ceqgO6CMqORbrQh+rhyy7u9u/ivP8L5vi7F8yFfcHs7iIozSK97nHB/Np2kaoupq6LcncX70YXQckv3QUz/0ybSov8adksUjubTo4O7+LB7qK/C2b/Q9V2Mba6WP5mF0E5ZJE8XcQHdLGw9iIkOw+VecHcS+vU7CL7sovr/i6Y7SLNzEX6OOSCOaCLq94vmOWTWKS0uWAurUM1K2QXj9suMtnFldnFieviua8LJmsW6VG+Phczt0gT61B120VQ4vK5/ovVibpgjo1FEl2oQ2V34d6rqBceu4uQrBfJvVc5TqxFuhV+bRf3B3TxYnbR1wVTJJPmU7VapO3rsz5U2y7sQ6W7qC+YqdqL1OoiKM0i2YdqJRZp3YV9qIwu4q8vmOq5t4+AmfkNw/aCOZqkxqHaqwtrL0qri6B4vmFIm2+e5PHxdPFqdbEwu/g0ugjKrm8Y5CINy0O62L5ve9zZRUjaT9WzeP9vGPRle/9lF+YFo7oIStYukvhUnbdfYYpFMruIyhfrUJkvPIXZRVgyV+lUvSZt1+tGfsMQZe4dzEh9wzB0XcwjeaguXRfn8sNQ8eS6OMt7umDWpO6RzEuZJq7/VaJm63Dwoe6HwqXv8kEXY5e+yTeb8alLH/t6Atek7jI/kk9WlLiuz5VLWrlnQD0BW8Nj0/DENDzFsEMwVLMYihDD7k18YKhmMRQhht2b+MBQzWIoQgy7N/GBoZrFUIQYdm/iA0M1+/80HGEoZjEUIYbdm/jAUM1iKEIMuzfxgaGaxVCEGHZv4gNDNYuhCDHs3sQHhmr2bzK8wLAFQ5FiGAQM1SyGIsSwexMfGKpZDEWIYfcmPjBUsxiKEMPuTXxgqGYxFCGG3Zv4wFDNDjBsQwy7N/GBoZrFUIQYdm/iA0M1i6EIMezexAeGahZDEWLYvYmPbxsW0V9veIlhC4ZBwFDNYihSDAOoeMBQzWIoUgwDqHjAUM1iKFIMA6h4CGU4wbA3MFSzGIoUwwAqHjBUsxiKFMMAKh4wVLMYihTDACoeMFSzGIoUwwAqHjBUsxiKFMMAKh4wVLMYitQ2vMIwAPl8UK0ZLLXLTZ2u1P/vyqs6fVBpNKhT+dP2UfG5CavBm3SJX1za5y/pRHmy4T8/D5bWqVaJkq9S/QuUhUu1SmymAAAAAAAAAAAAAAAAAAAAAAD98Q880cViB9VzFwAAAABJRU5ErkJggg==",QO="/assets/hero-gente-C-ZIsA49.jpg",XO="/assets/ikw2025-Dq9DrEZz.jpg",ZO="/assets/ikw2025-1-Bq7M10AW.jpg",eI="/assets/caroconbanner-SAfvg08d.png",tI="/assets/stadtraum-frankfurt-DiMDpcvm.jpg",nI="/assets/stadtbuecherei-HW2TKf8i.jpg",rI={CRECE:{logo:a1,url:"https://arbolquecrece.org/"},"ENIE e.V.":{logo:KO,url:"https://enieespaniol.de/"},"BühnenCLAN e.V.":{logo:qO,url:"https://www.facebook.com/buehnen.clan/"},"La CompañÃa del Sur":{logo:GO,url:"https://www.facebook.com/companiadelsur/"},"¡Baila México! Frankfurt":{logo:"/logos/logo-baila-mexico.png",url:"https://bailamexico.com"},"Govenda Sarya":{logo:"/logos/logo-sarya.png",url:"https://saryaffm.org"},"Permif e.V.":{logo:"/logos/logo-permif-ev.jpg",url:"https://permif.org"},Diakonie:{logo:"https://liga-sachsen.de/fileadmin/user_upload/bilder/ueber-uns/logo-kompakt.png",url:"https://www.diakonie-frankfurt-offenbach.de/"},"Rebekka Waitz":{logo:"/logos/logo-rebekkawaitz.jpg",url:"https://rebekkawaitz.de/"},"Ev. Französisch-Reformierte Gemeinde":{logo:"/logos/logo-reformierte-kirche.jpg",url:"https://www.efrg.de"},"DLI Pro Amazonia und Aprender e.V.":{logo:"/logos/logo-proamazonia.jpg",url:"https://www.facebook.com/profile.php?id=100063555639885"},"PACE â Pan-African Center for Education e.V.":{logo:"/logos/logo-pace.png",url:"https://www.instagram.com/africa4edu/"},"Bahá'Ã-Gemeinde Frankfurt am Main":{logo:"/logos/logo-bahai.png",url:"https://frankfurt-main.bahai.de"},"Kunstverein Farben International e.V.":{logo:"/logos/logo-frankfurter-kunstverein.jpg",url:"https://kvfm.de"},"Places to See":{logo:"/logos/logoplacestosee.png",url:"https://frankfurt.de/placestosee"},"Geflecht e.V.":{logo:"/logos/logogeflecht.png"},DICOEX:{logo:"/logos/logo-dicoex.jpg"},"AG Familienbildung Griesheim":{logo:"https://www.familienbildung-ffm-of.de/fileadmin/user_upload/logo/logo.png",url:"https://www.familienbildung-ffm-of.de"},"Arbeitsgemeinschaft Christlicher Kirchen Frankfurt (ACK)":{logo:"https://katholisch-backnang.de/wp/wp-content/uploads/2019/11/AcK-4zu3-400x282.jpg",url:"https://www.ack-frankfurt.de"},"Evangelisches Frauenbegegnungszentrum EVA":{logo:"https://prinz.de/wp-content/uploads/2013/10/eva-evangelisches-frauenbegegnungszentrum-scaled.jpg",url:"https://www.eva-frauenzentrum.de"},"WestKunst Frankfurt Nied e.V.":{logo:"/logos/west-kunst-nied.jpg"},"Ev. Verein für Kinder- und Jugendhilfe Rhein Main â JMD":{logo:"https://secure.spendenbank.de/login/portalimage/730x0/3535095/visual/png",url:"https://www.jugendsozialarbeit-evangelisch.de"},"Jugendkirche JONA":{logo:"https://www.faultierfarm.org/wp-content/uploads/2025/06/logo-jugendkirche-jona.jpg",url:"https://www.jugendkirche-jona.de"},"Maisha e.V.":{logo:"https://www.damigra.de/wp-content/uploads/maisha_quadratisch-e1532349816683.png",url:"https://www.maisha.org"},"Esperanto-Gesellschaft Frankfurt am Main e.V.":{logo:"https://uepo.de/wp-content/uploads/2023/05/esperanto_logo-e1685228429889-678x381.jpg",url:"https://esperanto-frankfurt.de"},MoniKaffee:{logo:"https://frankfurter-plattform-55plus.de/wp-content/uploads/anbieter-projekt/Logo_SkF_4c.jpg",url:"https://www.skf-frankfurt.de"},"Pfarrei Sankt Jakobus Frankfurt-Niederrad":{logo:"https://betterplace-assets.betterplace.org/uploads/organisation/profile_picture/000/055/613/crop_original_e03ba6c4-87a9-4764-a90c-5d9b49849c7c.png",url:"https://stjakobus-ffm.de"},"Beyond all borders e.V.":{logo:"/logos/logo-beyondallborders.jpg",url:"https://www.beyondallborders.eu"},"Halo-Halo Netzwerk":{logo:"https://halo-halo.de/wp-content/uploads/2024/10/Halo-Halo-Logo_mit-Schrift_RGB-1.png",url:"https://halo-halo.de"},"beramà berufliche Integration e.V.":{logo:"https://www.berami.de/wp-content/uploads/2021/09/cropped-Berami-Logo-1.png",url:"https://berami.de"}
372,"AG MDO â Migrant:innen- und Diasporaorganisationen Hessen":{logo:"https://www.epn-hessen.de/wp-content/uploads/2023/04/epn_favicon01.png",url:"https://www.epn-hessen.de"},"V.I.S. e.V. â rumänisch-deutscher Verein":{logo:"https://upload.wikimedia.org/wikipedia/commons/7/75/Logo_Bund_rum%C3%A4nischer_Vereine_in_Deutschland_e.V.png"},"Amazigh Akademie e.V.":{logo:"https://amazighakademie.de/wp-content/uploads/2020/12/im-4-607x562.png",url:"https://amazighakademie.de"},DeTunBrücke:{logo:"/logos/logo-detunbrucke.jpg",url:"https://www.facebook.com/p/Deutsch-Tunesische-Brücke-61572015308222/"},Teefuralle:{logo:"/logos/logo-teefuralle.png",url:"https://de.wikipedia.org/wiki/Chinesische_Teekultur"},"Alla Serhiieva":{logo:"/logos/logo-alla-serhiieva.png",url:"https://www.facebook.com/alla.sergieva"},"Konfluencia Konzerte":{logo:"/logos/logo-konfluenzia.jpg",url:"https://www.instagram.com/konfluenciakonzerte/"}},sI=["¡Baila México! Frankfurt","Govenda Sarya","Permif e.V.","Diakonie","Rebekka Waitz","Ev. Französisch-Reformierte Gemeinde","DLI Pro Amazonia und Aprender e.V.","PACE â Pan-African Center for Education e.V.","Bahá'Ã-Gemeinde Frankfurt am Main","Kunstverein Farben International e.V.","Places to See","Geflecht e.V.","DICOEX","AG Familienbildung Griesheim","Arbeitsgemeinschaft Christlicher Kirchen Frankfurt (ACK)","Evangelisches Frauenbegegnungszentrum EVA","WestKunst Frankfurt Nied e.V.","Ev. Verein für Kinder- und Jugendhilfe Rhein Main â JMD","Jugendkirche JONA","Maisha e.V.","Esperanto-Gesellschaft Frankfurt am Main e.V.","MoniKaffee","Pfarrei Sankt Jakobus Frankfurt-Niederrad","Beyond all borders e.V.","Halo-Halo Netzwerk","beramà berufliche Integration e.V.","AG MDO â Migrant:innen- und Diasporaorganisationen Hessen","V.I.S. e.V. â rumänisch-deutscher Verein","Amazigh Akademie e.V.","DeTunBrücke","Teefuralle","Alla Serhiieva","Konfluencia Konzerte"],iI=e=>{const t=e.toLowerCase();return t.startsWith("amka")?{info:{logo:YO,url:"https://www.amka.de/"},short:"AMKA"}:t.startsWith("stadtbücherei")||t.startsWith("stadtbuecherei")?{info:{logo:JO,url:"https://frankfurt.de/service-und-rathaus/verwaltung/aemter-und-institutionen/stadtbuecherei"},short:"Stadtbücherei"}:{info:rI[e]||{},short:e}},oI=[BO,WO,VO,HO],l1="https://docs.google.com/forms/d/e/1FAIpQLSdSbNV5Qdl6oyQThCzEGg6ghsWPuPrITwKTKZMekZ1L0wcjCQ/viewform?usp=publish-editor",aI=()=>{const e=b.useRef(null),[t,n]=b.useState(!1);return b.useEffect(()=>{if(!e.current)return;const r=new IntersectionObserver(([s])=>s.isIntersecting&&n(!0),{threshold:.15});return r.observe(e.current),()=>r.disconnect()},[]),{ref:e,shown:t}},nt=({children:e,delay:t=0,className:n=""})=>{const{ref:r,shown:s}=aI();return c.jsx("div",{ref:r,className:`transition-all duration-1000 ${s?"opacity-100 translate-y-0":"opacity-0 translate-y-8"} ${n}`,style:{transitionDelay:`${t}ms`},children:e})},lI=()=>{const e=[UO,XO,ZO],[t,n]=b.useState(0);return b.useEffect(()=>{const r=setInterval(()=>n(s=>(s+1)%e.length),4e3);return()=>clearInterval(r)},[]),c.jsxs("div",{className:"relative overflow-hidden rounded-3xl shadow-glow h-[26rem]",children:[e.map((r,s)=>c.jsx("img",{src:r,alt:"",className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-1000 ${t===s?"opacity-100":"opacity-0"} ${s===2?"object-left scale-[1.3] origin-left":""}`},s)),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-secondary/50 to-transparent"}),c.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2 z-10",children:e.map((r,s)=>c.jsx("button",{"aria-label":`Slide ${s+1}`,onClick:()=>n(s),className:`h-2 rounded-full transition-all ${t===s?"w-6 bg-white":"w-2 bg-white/60"}`},s))})]})},cI=()=>{const{t:e}=gt(),[t,n]=b.useState(!1),r=[["#about",e.nav.about],["#programm",e.nav.events],["#register",e.nav.register],["#partners",e.nav.partners],["#contact",e.nav.contact]];return c.jsx("header",{className:"fixed top-0 inset-x-0 z-50",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 mt-4",children:[c.jsxs("div",{className:"flex items-center justify-between rounded-full border border-border/60 bg-card/70 backdrop-blur-xl px-4 py-2.5 shadow-soft",children:[c.jsxs("a",{href:"#top",className:"flex items-center gap-2.5 group",children:[c.jsx("img",{src:Ua,alt:"crece",className:"h-11 w-auto rounded-lg bg-white p-1 transition-transform group-hover:scale-110 duration-500"}),c.jsxs("span",{className:"hidden sm:block font-semibold text-sm tracking-tight",children:["IKW 2026 ",c.jsx("span",{className:"text-muted-foreground",children:"Ã"})," Crece"]})]}),c.jsx("nav",{className:"hidden md:flex items-center gap-7 text-sm font-medium text-muted-foreground",children:r.map(([s,i])=>c.jsx("a",{href:s,className:"hover:text-foreground transition-colors",children:i},s))}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(xj,{}),c.jsx("button",{type:"button",onClick:()=>n(s=>!s),"aria-label":t?"Menü schlieÃen":"Menü öffnen","aria-expanded":t,className:"md:hidden inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-border/60 text-foreground hover:bg-muted transition-colors",children:t?c.jsx(gr,{className:"h-4 w-4"}):c.jsx(ZT,{className:"h-4 w-4"})})]})]}),t&&c.jsx("nav",{className:"md:hidden mt-2 rounded-3xl border border-border/60 bg-card/95 backdrop-blur-xl p-2 shadow-soft",children:r.map(([s,i])=>c.jsx("a",{href:s,onClick:()=>n(!1),className:"block rounded-2xl px-4 py-3 text-sm font-medium text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:i},s))})]})})},uI=()=>{const{t:e}=gt();return c.jsxs("section",{id:"top",className:"relative min-h-screen pt-32 pb-20 overflow-hidden",children:[c.jsx("img",{src:QO,alt:"","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover opacity-20 pointer-events-none"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/40 via-background/30 to-background pointer-events-none"}),c.jsx(xu,{}),c.jsxs("div",{className:"relative mx-auto max-w-6xl px-4 sm:px-6 flex flex-col items-center justify-center text-center min-h-[70vh]",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-4 py-1.5 text-xs font-semibold uppercase tracking-widest text-primary-deep animate-fade-up",children:[c.jsx(lC,{className:"h-3.5 w-3.5"}),e.hero.kicker]}),c.jsx("h1",{className:"mt-8 font-extrabold text-4xl sm:text-6xl lg:text-7xl xl:text-8xl leading-[1.05] tracking-tight text-gradient-hero animate-fade-up delay-200 max-w-5xl",children:e.hero.motto}),c.jsxs("div",{className:"mt-10 flex items-center gap-3 text-sm font-semibold tracking-wider animate-fade-up delay-500",children:[c.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[c.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-secondary animate-pulse-ring"}),c.jsx("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full bg-secondary"})]}),c.jsx(ga,{className:"h-4 w-4 text-secondary"}
372),c.jsx("span",{className:"text-foreground/80",children:e.hero.dates})]}),c.jsxs("a",{href:"#programm",className:"mt-8 inline-flex h-12 items-center gap-2 rounded-full bg-gradient-leaf px-7 text-sm font-semibold text-primary-foreground shadow-glow transition-transform hover:-translate-y-0.5 animate-fade-up delay-700",children:[e.hero.cta1," ",c.jsx(hs,{className:"h-4 w-4"})]})]})]})},dI=()=>{const{t:e}=gt(),t=[fb,db,ab,lb],n=[sf,_p,Hc,zO],r=["theater","music","dance","storytelling"],s=i=>{window.dispatchEvent(new CustomEvent("program:filter",{detail:{theme:i}}))};return c.jsx("section",{id:"about",className:"relative py-28",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:[c.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 items-center",children:[c.jsx(nt,{className:"lg:col-span-7",children:c.jsxs("div",{children:[c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-secondary",children:e.intro.tag}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:e.intro.title}),c.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed",children:e.intro.body})]})}),c.jsx(nt,{delay:200,className:"lg:col-span-5",children:c.jsx("div",{children:c.jsxs("div",{className:"relative overflow-hidden rounded-3xl shadow-glow group",children:[c.jsx("img",{src:$O,alt:"Manos unidas â diversidad",className:"w-full h-80 object-cover group-hover:scale-105 transition-transform duration-700"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/40 to-transparent"})]})})})]}),c.jsx("div",{className:"mt-16 grid sm:grid-cols-2 lg:grid-cols-4 gap-
3725",children:e.intro.pillars.map((i,o)=>{const a=t[o],l=["bg-gradient-leaf","bg-gradient-sun","bg-gradient-sky","bg-gradient-leaf"];return c.jsx(nt,{delay:o*120,children:c.jsxs("a",{href:"#programm",onClick:()=>s(r[o]),className:"group block h-full rounded-3xl border border-border bg-card overflow-hidden shadow-soft hover:shadow-glow hover:-translate-y-2 hover:border-primary transition-all duration-500",children:[c.jsxs("div",{className:"relative h-40 overflow-hidden",children:[c.jsx("img",{src:n[o],alt:i.t,className:`w-full h-full object-cover ${o===0?"object-top":""} group-hover:scale-110 transition-transform duration-700`}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-card via-card/30 to-transparent"}),c.jsx("div",{className:`absolute bottom-3 left-3 inline-flex h-12 w-12 items-center justify-center rounded-2xl ${l[o]} text-primary-foreground shadow-soft`,children:c.jsx(a,{className:"h-6 w-6"})})]}),c.jsxs("div",{className:"p-6",children:[c.jsxs("h3",{className:"flex items-center gap-1.5 text-xl font-bold",children:[i.t,c.jsx(hs,{className:"h-4 w-4 opacity-0 -translate-x-1 transition-all group-hover:opacity-100 group-hover:translate-x-0"})]}),c.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:i.d})]})]})},i.t)})})]})})},hI=()=>{const{t:e}=gt();return c.jsx("section",{id:"events",className:"relative py-28",children:c.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:c.jsx(nt,{children:c.jsxs("div",{className:"relative overflow-hidden rounded-[2.5rem] bg-gradient-hero p-10 sm:p-16 lg:p-20 text-primary-foreground shadow-glow",children:[c.jsxs("div",{className:"absolute inset-0 opacity-25",children:[c.jsx("img",{src:zi,alt:"",className:"w-full h-full object-cover"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-hero opacity-80"})]}),c.jsx("div",{className:"absolute -top-20 -right-20 w-80 h-80 opacity-20 animate-leaf-spin",children:c.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:c.jsx("path",{d:"M50 5 C 80 30, 95 70, 50 95 C 5 70, 20 30, 50 5 Z",fill:"white"})})}),c.jsxs("div",{className:"relative max-w-3xl",children:[c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.3em] opacity-90",children:e.kickoff.tag}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:e.kickoff.title}),c.jsx("p",{className:"mt-6 text-lg leading-relaxed opacity-95",children:e.kickoff.body}),c.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[c.jsx(Oe,{asChild:!0,size:"lg",className:"rounded-full bg-card text-foreground hover:bg-card/90 h-12 px-7 text-base shadow-soft border-0",children:c.jsxs("a",{href:"#register",children:[e.kickoff.cta," ",c.jsx(hs,{className:"ml-1.5 h-4 w-4"})]})}),c.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[c.jsx(ga,{className:"h-4 w-4"})," ",e.kickoff.date]})]})]})]})})})})},fI=()=>{const{t:e}=gt();return c.jsx("section",{id:"register",className:"relative py-28",children:c.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 items-center",children:[c.jsx(nt,{className:"lg:col-span-5",children:c.jsx(lI,{})}),c.jsx(nt,{delay:150,className:"lg:col-span-7",children:c.jsxs("div",{className:"lg:col-span-7",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 text-xs font-bold uppercase tracking-[0.25em] text-secondary",children:[c.jsx(HT,{className:"h-4 w-4"})," ",e.register.tag]}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:e.register.title}),c.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed",children:e.register.body}),c.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[c.jsx(Oe,{asChild:!0,size:"lg",className:"rounded-full bg-gradient-sun hover:opacity-90 text-secondary-foreground shadow-sun border-0 h-14 px-9 text-base font-semibold",children:c.jsxs("a",{href:l1,target:"_blank",rel:"noopener noreferrer",children:[e.register.btn," ",c.jsx(hs,{className:"ml-2 h-4 w-4"})]})}),c.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-foreground
372/80",children:[c.jsx(ga,{className:"h-4 w-4 text-primary"})," ",e.register.deadline]})]})]})})]})})})},pI=()=>{const{t:e}=gt(),t=[tI,nI,FO],n=["object-top","object-center","object-center"];return c.jsx("section",{className:"relative py-28",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:[c.jsx(nt,{children:c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-accent",children:e.venues.tag}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:e.venues.title})]})}),c.jsx("div",{className:"mt-14 grid md:grid-cols-3 gap-5",children:e.venues.list.map((r,s)=>c.jsx(nt,{delay:s*150,children:c.jsxs("div",{className:"group relative h-full overflow-hidden rounded-3xl border border-border bg-card shadow-soft hover:-translate-y-2 transition-all duration-500",children:[c.jsxs("div",{className:"relative h-44 overflow-hidden",children:[c.jsx("img",{src:t[s],alt:r.name,className:`w-full h-full object-cover ${n[s]} group-hover:scale-110 transition-transform duration-700`}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-card to-transparent opacity-60"})]}),c.jsxs("div",{className:"p-7",children:[c.jsx(Mh,{className:"h-6 w-6 text-primary"}),c.jsx("h3",{className:"mt-3 text-2xl font-bold",children:r.name}),c.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:r.desc})]})]})},r.name))})]})})},mI=()=>{const{t:e}=gt();return c.jsx("section",{id:"partners",className:"relative py-28",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:[c.jsx(nt,{children:c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-primary-deep",children:e.partners.tag}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:e.partners.title}),c.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed",children:e.partners.body})]})}),c.jsx("div",{className:"mt-14 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:(()=>{const t=i=>/dein verein|tu asociaci[oó]n|your association/i.test(i),n=e.partners.list.filter(i=>!t(i)),r=e.partners.list.find(t);return[...n,...sI.filter(i=>!n.includes(i)),...r?[r]:[]]})().map((t,n)=>{const{info:r,short:s}=iI(t);if(/dein verein|tu asociaci[oó]n|your association/i.test(t))return c.jsx(nt,{delay:n*60,children:c.jsx("a",{href:l1,target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:c.jsxs("div",{className:"flex h-full items-center gap-4 roun
372ded-2xl border-2 border-dashed border-primary bg-primary/5 p-5 hover:bg-primary/10 hover:border-primary hover:-translate-y-0.5 transition-all",children:[c.jsx("span",{className:"flex h-16 w-16 shrink-0 items-center justify-center",children:c.jsx(va,{className:"h-6 w-6 text-primary"})}),c.jsx("span",{className:"text-base font-semibold leading-snug text-primary",children:t})]})})},t);const o=c.jsxs("div",{className:"flex h-full items-center gap-4 rounded-2xl border border-dashed border-border bg-card/60 backdrop-blur p-5 hover:border-primary hover:bg-card hover:-translate-y-0.5 transition-all",children:[c.jsx("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-xl border border-border bg-white shadow-soft",children:r.logo?c.jsx("img",{src:r.logo,alt:s,loading:"lazy",onError:a=>{a.currentTarget.style.visibility="hidden"},className:"h-full w-full object-contain p-1.5"}):c.jsx(va,{className:"h-5 w-5 text-primary"})}),c.jsx("span",{className:"text-base font-semibold leading-snug",children:t})]});return c.jsx(nt,{delay:n*60,children:r.url?c.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:o}):o},t)})})]})})},gI=()=>{const{t:e}=gt();return c.jsx("section",{id:"team",className:"relative py-28",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:[c.jsx(nt,{children:c.jsx("div",{className:"max-w-3xl",children:c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-secondary",children:e.team.tag})})}),c.jsx("div",{className:"mt-14 grid grid-cols-2 lg:grid-cols-4 gap-
3725",children:e.team.list.map((t,n)=>c.jsx(nt,{delay:n*120,children:c.jsxs("div",{className:"group h-full rounded-3xl border border-border bg-card overflow-hidden shadow-soft hover:shadow-glow hover:-translate-y-2 transition-all duration-500",children:[c.jsx("div",{className:"relative aspect-[4/5] overflow-hidden",children:c.jsx("img",{src:oI[n],alt:t.name,className:"w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-700"})}),c.jsxs("div",{className:"p-5",children:[c.jsx("h3",{className:"text-lg font-bold leading-tight",children:t.name}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t.role})]})]})},t.name))})]})})},vI=()=>{const{t:e}=gt();return c.jsx("section",{className:"relative py-28 bg-muted/30",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 grid lg:grid-cols-12 gap-12 items-center",children:[c.jsx(nt,{className:"lg:col-span-5",children:c.jsx("div",{children:c.jsx("div",{className:"relative overflow-hidden rounded-3xl shadow-glow",children:c.jsx("img",{src:eI,alt:"Carolina Roldán Majewski â crece",className:"w-full h-[28rem] object-cover object-right-bottom"})})})}),c.jsx(nt,{delay:150,className:"lg:col-span-7",children:c.jsxs("div",{children:[c.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-primary-deep",children:e.about.tag}),c.jsx("h2",{className:"mt-3 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:e.about.title}),c.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed",children:e.about.body}),c.jsx("div",{className:"mt-8",children:c.jsx(Oe,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full h-12 px-7 border-2",children:c.jsxs("a",{href:"https://arbolquecrece.org/",target:"_blank",rel:"noopener noreferrer",children:["arbolquecrece.org ",c.jsx(hs,{className:"ml-2 h-4 w-4"})]})})})]})})]})})},yI=()=>{const{t:e}=gt();return c.jsx("section",{id:"contact",className:"relative py-28",children:c.jsx("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 text-center",children:c.jsxs(nt,{children:[c.jsx("h2",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight",children:c.jsx("span",{className:"text-gradient-hero",children:e.cta.title})}),c.jsx("p",{className:"mt-6 text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:e.cta.body}),c.jsx("div",{className:"mt-10",children:c.jsx(Oe,{asChild:!0,size:"lg",className:"rounded-full bg-gradient-sun hover:opacity-90 text-secondary-foreground shadow-sun border-0 h-14 px-9 text-base",children:c.jsxs("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLScz-l1t4YLZnrMFt7BCfySZYaqVfORreR8arlftH1uWBWJhaw/viewform?usp=publish-editor",target:"_blank",rel:"noopener noreferrer",children:[e.cta.btn," ",c.jsx(hs,{className:"ml-2 h-4 w-4"})]})})})]})})})},wI=()=>{const{t:e}=gt();return c.jsx("footer",{className:"relative border-t border-border py-12 mt-10",children:c.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 flex flex-col gap-6",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:a1,alt:"crece",className:"h-10 w-auto"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-semibold",children:e.footer.org}),c.jsx("p",{className:"text-xs text-muted-foreground",children:e.footer.rights})]})]}),c.jsx("div",{className:"text-xs text-muted-foreground",children:"© 2026 crece â Frankfurt am Main"})]}),c.jsx("p",{className:"text-xs text-muted-foreground text-center sm:text-left italic",children:e.footer.note})]})})},bI=new Date("2026-09-24T00:00:00+02:00").getTime(),xI=()=>{const{lang:e}=gt(),t={de:["Tage","Stunden","Minuten","Sekunden"],es:["DÃas","Horas","Minutos","Segundos"],en:["Days","Hours","Minutes","Seconds"]},n={de:"Bis zur Interkulturellen Woche",es:"Faltan para la Semana Intercultural",en:"Until the Intercultural Week"},[r,s]=b.useState(()=>Date.now());b.useEffect(()=>{const f=setInterval(()=>s(Date.now()),1e3);return()=>clearInterval(f)},[]);const i=Math.max(0,bI-r),o=Math.floor(i/1e3),a=Math.floor(o/86400),l=Math.floor(o%86400/3600),u=
372Math.floor(o%3600/60),h=o%60,d=[a,l,u,h],p=t[e]||t.de;return c.jsx("section",{className:"relative py-16",children:c.jsx("div",{className:"mx-auto max-w-5xl px-4 sm:px-6",children:c.jsx(nt,{children:c.jsxs("div",{className:"relative overflow-hidden rounded-[2rem] border border-border bg-card/70 backdrop-blur-xl shadow-soft p-8 sm:p-10",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-soft opacity-60 pointer-events-none"}),c.jsxs("div",{className:"relative text-center",children:[c.jsx("p",{className:"text-xs sm:text-sm font-bold uppercase tracking-[0.28em] text-primary-deep",children:n[e]||n.de}),c.jsx("div",{className:"mt-8 grid grid-cols-4 gap-3 sm:gap-6",children:d.map((f,w)=>c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx("div",{className:"w-full aspect-square sm:aspect-auto sm:h-28 rounded-2xl bg-gradient-hero text-primary-foreground shadow-glow flex items-center justify-center",children:c.jsx("span",{className:"font-bold tabular-nums text-3xl sm:text-5xl lg:text-6xl tracking-tight",children:String(f).padStart(2,"0")})}),c.jsx("span",{className:"mt-3 text-[10px] sm:text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:p[w]})]},w))})]})]})})})})},kI=()=>c.jsxs("main",{className:"relative",children:[c.jsx(cI,{}),c.jsx(uI,{}),c.jsx(xI,{}),c.jsx(dI,{}),c.jsx(MO,{}),c.jsx(fI,{}),c.jsx(ON,{}),c.jsx(vI,{}),c.jsx(gI,{}),c.jsx(hI,{}),c.jsx(pI,{}),c.jsx(mI,{}),c.jsx(yI,{}),c.jsx(wI,{})]}),SI=()=>c.jsx(kI,{}),_I=()=>(b.useEffect(()=>{document.title="IKW Frankfurt 2026 · Semana Intercultural · crece",(document.querySelector('meta[name="description"]')||(()=>{const t=document.createElement("meta");return t.setAttribute("name","description"),document.head.appendChild(t),t})()).setAttribute("content","Interkulturelle Woche Frankfurt 2026: 9 Tage Theater, Musik, Tanz und Literatur vom 24. September bis 4. Oktober. Jetzt Programm entdecken und Verein anmelden.")},[]),c.jsx(SI,{})),et=b.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:Ut("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));et.displayName="Input";const EI="ikw",TI=[{date:"05.09.",what:"Endgültige Materialfrist",you:"Letzte Fotos, Videos und Veranstaltungsangaben schicken",highlight:!0},{date:"06.â09.09.",what:"Wir sichten und schneiden die erste Welle",you:"â"},{date:"10.09.",what:"Erste Entwürfe gehen an euch",you:"Freigabe innerhalb von 48 Stunden"},{date:"ab 12.09.",what:"Veröffentlichung beginnt",you:"Beiträge in euren Kanälen teilen"},{date:"15.09.",what:"Einladungen zu gemeinsamen Beiträgen",you:"Einladung auf Instagram annehmen (innerhalb 24 Std.)"},{date:"16.â19.09.",what:"Zweite Welle Entwürfe",you:"Freigabe innerhalb von 48 Stunden"},{date:"19.â23.09.",what:"Countdown zur Eröffnung",you:"Täglich mindestens eine Story teilen"},{date:"24.09.",what:"Eröffnung, Beginn der Interkulturellen Woche",you:"â",highlight:!0},{date:"24.09.â04.10.",what:"Live-Woche",you:"Am eigenen Veranstaltungstag Material an uns senden"},{date:"04.10.",what:"Abschluss",you:"â"},{date:"bis 12.10.",what:"Nachbereitung und Danksagung",you:"â"}],CI=[{t:"Sichtung",d:"Wir schauen alles durch und wählen aus, was sich für Video im Hochformat, für Karussells und für Stories eignet."},{t:"Schnitt und Gestaltung",d:"Kurze Videos mit deutschen Untertiteln sowie Bildbeiträge im gemeinsamen Erscheinungsbild. Jeder Beitrag trägt euren Namen, euer Logo und die Angaben zu eurer Veranstaltung."},{t:"Freigabe",d:"Ihr bekommt euren Beitrag vorab per E-Mail oder WhatsApp. Bitte antwortet innerhalb von 48 Stunden mit âFreigabeâ oder einer konkreten Ãnderung. Ohne Rückmeldung gehen wir von eurer Zustimmung aus."},{t:"Bildrechte",d:"Wir veröffentlichen nur Material mit unterschriebener Einverständniserklärung â besonders wenn Kinder und Jugendliche zu sehen sind. Fehlt sie noch: bitte bis 05.09. melden."},{t:"Veröffentlichung",d:"Wir verteilen die Beiträge über den gesamten September, damit jede Veranstaltung ihren eigenen Moment bekommt. Den Termin nennen wir mit dem Entwurf."}],AI=["#AMKA","#IKW2026","#InterkulturelleWoche","#FrankfurtInSzene","#StimmenDesZusammenlebens","#Frankfurt","#enieespaniol"],jI=["@enieespaniol","Die Spielstätte eurer Veranstaltung","AMKA und Stadt Frankfurt","Beteiligte Künstler:innen und Partnervereine"],Vv=`Wir sind dabei! 373 374Am [Datum] präsentieren wir [Veranstaltung] im Rahmen der Interkulturellen Woche Frankfurt 2026. 375 376ð [Datum und Uhrzeit] ð [Ort] ðï¸ [Eintritt] 377 378Elf Tage Theater, Musik, Tanz und Literatur in ganz Frankfurt: crece-ev.org 379 380#AMKA #IKW2026 #InterkulturelleWoche #FrankfurtInSzene #StimmenDesZusammenlebens #Frankfurt #enieespaniol @enieespaniol`,bs=({n:e,icon:t,title:n,children:r})=>c.jsxs("section",{className:"relative z-10 mx-auto w-full max-w-5xl px-5 py-10 sm:py-14",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-gradient-leaf text-primary-foreground shadow-soft",children:c.jsx(t,{className:"h-6 w-6"})}),c.jsxs("h2",{className:"font-extrabold tracking-tight text-2xl sm:text-4xl",children:[c.jsx("span",{className:"text-primary/60 mr-2",children:e}),n]})]}),c.jsx("div",{className:"mt-6 text-lg sm:text-xl leading-relaxed text-foreground
380/85 space-y-5",children:r})]}),zn=({children:e})=>c.jsx("div",{className:"rounded-2xl border border-border bg-card/70 backdrop-blur p-5 sm:p-6 shadow-soft",children:e}),NI=()=>{const[e,t]=b.useState(!1),n=async()=>{try{await navigator.clipboard.writeText(Vv),t(!0),setTimeout(()=>t(!1),2e3)}catch{}};return c.jsxs("main",{className:"relative min-h-screen overflow-hidden",children:[c.jsx(xu,{}),c.jsxs("header",{className:"relative z-10 mx-auto w-full max-w-5xl px-5 pt-10 pb-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:Ua,alt:"Crece",className:"h-12 w-auto rounded-lg bg-white p-1 shadow-soft"}),c.jsx("span",{className:"text-base font-semibold tracking-tight",children:"IKW 2026 à Crece"})]}),c.jsx("p",{className:"mt-8 inline-flex rounded-full border border-primary/30 bg-primary/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-widest text-primary-deep",children:"Stand 20.08.2026"}),c.jsx("h1",{className:"mt-5 font-extrabold text-4xl sm:text-6xl leading-[1.05] tracking-tight text-gradient-hero",children:"Interkulturelle Woche Frankfurt 2026"}),c.jsx("p",{className:"mt-4 text-xl sm:text-3xl font-semibold text-foreground/80",children:"Kommunikation: Ablauf, Fristen und Veröffentlichung"}),c.jsx("p",{className:"mt-4 text-lg sm:text-xl text-muted-foreground",children:"Für alle beteiligten Vereine und Organisationen"}),c.jsx("p",{className:"mt-6 max-w-3xl text-lg sm:text-xl leading-relaxed text-foreground/85",children:"Vielen Dank an alle, die bereits Fotos und Videos geschickt haben. Dieses Papier beschreibt, was ab jetzt mit dem Material passiert, wann ihr etwas von uns zurückbekommt und wie wir gemeinsam veröffentlichen."})]}),c.jsxs(bs,{n:"1.",icon:WT,title:"Terminübersicht",children:[c.jsxs("div",{className:"overflow-hidden rounded-2xl border border-border shadow-soft",children:[c.jsxs("div",{className:"hidden sm:grid grid-cols-[160px_1fr_1fr] bg-gradient-leaf text-primary-foreground text-base font-semibold uppercase tracking-wide",children:[c.jsx("div",{className:"px-5 py-3",children:"Datum"}),c.jsx("div",{className:"px-5 py-3",children:"Was passiert"}),c.jsx("div",{className:"px-5 py-3",children:"Was ihr tut"})]}),TI.map(r=>c.jsxs("div",{className:`grid sm:grid-cols-[160px_1fr_1fr] border-t border-border ${r.highlight?"bg-primary/10":"bg-card/60"}`,children:[c.jsx("div",{className:"px-5 pt-4 sm:py-4 font-bold text-lg sm:text-xl text-primary-deep",children:r.date}),c.jsx("div",{className:"px-5 pt-1 sm:py-4 font-medium",children:r.what}),c.jsx("div",{className:"px-5 pb-4 pt-1 sm:py-4 text-muted-foreground",children:r.you})]},r.date+r.what))]}),c.jsxs("div",{className:"rounded-2xl border-2 border-primary/40 bg-primary/10 p-5 sm:p-6 text-lg sm:text-xl",children:[c.jsx("strong",{children:"Wichtig:"})," Wer nach dem 05.09. Material schickt, kommt in die zweite Welle. Eine Veröffentlichung vor dem 20.09. können wir dann nicht mehr zusichern."]})]}),c.jsx(bs,{n:"2.",icon:cb,title:"Was mit eurem Material passiert",children:c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:CI.map(r=>c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:r.t}),c.jsx("p",{className:"mt-2 text-lg leading-relaxed text-muted-foreground",children:r.d})]},r.t))})}),c.jsxs(bs,{n:"3.",icon:YT,title:"Gemeinsame Beiträge auf Instagram",children:[c.jsx("p",{className:"font-semibold text-xl sm:text-2xl",children:"Der wichtigste Punkt für die Reichweite aller."}),c.jsx("p",{children:"Wir laden euch für eure Veranstaltung zu einem gemeinsamen Beitrag ein. Nehmt ihr die Einladung an, erscheint derselbe Beitrag gleichzeitig in unserem und in eurem Profil und erreicht beide Communities auf einmal."}),c.jsxs(zn,{children:[c.jsx("p",{className:"font-semibold text-xl",children:"So nehmt ihr die Einladung an"}),c.jsx("ol",{className:"mt-3 grid gap-2 sm:grid-cols-4",children:["Instagram öffnen","Benachrichtigungen","Einladung von @enie antippen","âAnnehmenâ"].map((r,s)=>c.jsxs("li",{className:"rounded-xl bg-primary/10 px-4 py-3 text-lg font-medium",children:[c.jsx("span",{className:"mr-2 font-bold text-primary-deep",children:s+1}),r]},r))}),c.jsx("p",{className:"mt-4 text-muted-foreground text-lg",children:"Die Einladung verfällt nac
380h einigen Tagen. Bitte innerhalb von 24 Stunden bestätigen."})]}),c.jsx("p",{children:"Wer noch nie einen gemeinsamen Beitrag angenommen hat: kurze Nachricht an uns, wir gehen es telefonisch durch. Das dauert zwei Minuten."})]}),c.jsxs(bs,{n:"4.",icon:GT,title:"So veröffentlicht ihr",children:[c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Hashtags â bitte immer alle sieben"}),c.jsx("div",{className:"mt-4 flex flex-wrap gap-2",children:AI.map(r=>c.jsx("span",{className:"rounded-full bg-gradient-leaf px-4 py-2 text-lg font-semibold text-primary-foreground shadow-soft",children:r},r))}),c.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"Ergänzt gerne eigene Hashtags zu eurer Sparte oder Sprache. Die sieben oben sollten aber in jedem Beitrag stehen."})]}),c.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Verlinkungen â bitte immer"}),c.jsx("ul",{className:"mt-3 space-y-2 text-lg",children:jI.map(r=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx(Xl,{className:"mt-1 h-5 w-5 shrink-0 text-primary"}),r]},r))})]}),c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Link"}),c.jsx("p",{className:"mt-3 text-lg",children:"In allen Beiträgen und Stories:"}),c.jsx("a",{href:"https://crece-ev.org",target:"_blank",rel:"noreferrer",className:"mt-2 inline-block text-2xl sm:text-3xl font-extrabold text-gradient-hero",children:"crece-ev.org"})]})]}),c.jsxs(zn,{children:[c.jsxs("div",{className:"flex items-center justify-between gap-4",children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Textbaustein zum Kopieren"}),c.jsxs(Oe,{onClick:n,variant:"outline",className:"rounded-full gap-2",children:[e?c.jsx(Xl,{className:"h-4 w-4"}):c.jsx(KT,{className:"h-4 w-4"}),e?"Kopiert":"Kopieren"]})]}),c.jsx("pre",{className:"mt-4 whitespace-pre-wrap rounded-xl bg-muted/60 p-5 text-lg leading-relaxed font-sans",children:Vv})]})]}),c.jsxs(bs,{n:"5.",icon:sC,title:"Während der Interkulturellen Woche",children:[c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Am Tag eurer Veranstaltung"}),c.jsx("ul",{className:"mt-3 space-y-2 text-lg",children:["Morgens eine Story mit Ort und Uhrzeit","Während der Veranstaltung ein paar Fotos oder kurze Videos aufnehmen","Bis zum Abend an uns senden â wir bauen daraus den Tagesrückblick"].map(r=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx(Xl,{className:"mt-1 h-5 w-5 shrink-0 text-primary"}),r]},r))})]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Jeden Tag:"})," Wir veröffentlichen morgens eine Story mit dem Tagesprogramm und abends einen Rückblick. Teilt gerne beides in euren Kanälen. Alles, was ihr selbst veröffentlicht und uns verlinkt, teilen wir noch am selben Tag."]})]}),c.jsx(bs,{n:"6.",icon:aC,title:"Zwei Bitten",children:c.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Die Anmeldetabelle ist intern"}),c.jsx("p",{className:"mt-2 text-lg text-muted-foreground",children:"Der Link zur Google-Tabelle ist für die Organisation gedacht und wird nicht in sozialen Netzwerken geteilt. Ãffentlich verweisen wir ausschlieÃlich auf crece-ev.org."})]}),c.jsxs(zn,{children:[c.jsx("h3",{className:"font-bold text-xl sm:text-2xl",children:"Sensible Themen"}),c.jsx("p",{className:"mt-2 text-lg text-muted-foreground",children:"Veranstaltungen zu Flucht, geschlechtlicher und sexueller Vielfalt sowie geschlechtsspezifischer Gewalt kommunizieren wir gebündelt und in sachlichem Ton, ohne festliche Bildsprache. Eigene Beiträge dazu bitte kurz mit uns abstimmen."})]})]})}),c.jsxs(bs,{n:"7.",icon:XT,title:"Kontakt",children:[c.jsxs(zn,{children:[c.jsx("p",{className:"text-lg",children:"Material, Freigaben und Fragen:"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-2xl sm:text-3xl font-extrabold text-gradient-hero break-all",children:"[email protected]"}),c.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"Kurzfristiges während der Live-Woche: über die WhatsApp-Gruppe."})]}),c.jsx("p",{children:"Noch nicht gemeldete Veranstaltungen, die parallel zur Interkulturellen Woche stattfinden, können weiterhin als synchrone Veranstaltung eingereicht werden. Sie erscheinen nicht im gedruckten Programmheft, werden aber in unseren Kanälen sichtbar gemacht."})]}),c.jsx("footer",{className:"relative z-10 px-6 py-10 text-center text-base text-muted-foreground",children:"© 2026 Crece â Interkulturelle Woche Frankfurt"})]})},RI=()=>{const[e,t]=b.useState(()=>{try{return window.sessionStorage.getItem("ikw-plan")==="1"}catch{return!1}}),[n,r]=b.useState(""),[s,i]=b.useState(!1);if(e)return c.jsx(NI,{});const o=a=>{if(a.preventDefault(),n.trim().toLowerCase()===EI){try{window.sessionStorage.setItem("ikw-plan","1")}catch{}t(!0)}else i(!0)};return c.jsxs("main",{className:"relative min-h-screen overflow-hidden flex items-center justify-center px-5",children:[c.jsx(xu,{}),c.jsxs("div",{className:"relative z-10 w-full max-w-md text-center",children:[c.jsx("img",{src:Ua,alt:"Crece",className:"mx-auto h-14 w-auto rounded-lg bg-white p-1 shadow-soft"}),c.jsx("h1",{className:"mt-8 font-extrabold text-3xl sm:text-4xl tracking-tight text-gradient-hero",children:"Kommunikationsplan"}),c.jsx("p",{className:"mt-3 text-lg text-muted-foreground",children:"Interkulturelle Woche Frankfurt 2026"}),c.jsxs("form",{onSubmit:o,className:"mt-8 flex flex-col sm:flex-row gap-3",children:[c.jsx(et,{type:"password",autoFocus:!0,value:n,onChange:a=>{r(a.target.value),i(!1)},placeholder:"Passwort",className:"h-12 rounded-full px-5 text-lg"}),c.jsxs(Oe,{type:"submit",size:"lg",className:"h-12 rounded-full border-0 bg-gradient-leaf px-6 text-primary-foreground shadow-soft",children:[c.jsx(ub,{className:"mr-1.5 h-4 w-4"})," Ãffnen ",c.jsx(hs,{className:"ml-1.5 h-4 w-4"})]})]}),s&&c.jsx("p",{className:"mt-3 text-base font-medium text-destructive",children:"Falsches Passwort"})]})]})},rc=b.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:Ut("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
380ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));rc.displayName="Textarea";const of=["slug","category","theme","date","time","venue","price","title_de","title_es","title_en","body_de","body_es","body_en","image_url","image_position","logo_url","organizer","info_url"],PI=["theater","music","dance","podium","storytelling","movie","tour","other"],OI=e=>{const t=[];let n=[],r="",s=!1;const i=e.replace(/\r\n/g,` 381`).replace(/\r/g,` 382`);for(let o=0;o<i.length;o++){const a=i[o];if(s){a==='"'?i[o+1]==='"'?(r+='"',o++):s=!1:r+=a;continue}a==='"'?s=!0:a===","||a===";"?(n.push(r),r=""):a===` 383`?(n.push(r),r="",n.some(l=>l.trim()!=="")&&t.push(n),n=[]):r+=a}return n.push(r),n.some(o=>o.trim()!=="")&&t.push(n),t},II=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60),LI=e=>{const t=OI(e),n=[];if(t.length<2)return{rows:[],errors:["El archivo no contiene filas de datos."]};const r=t[0].map(a=>a.trim().toLowerCase().replace(/^\ufeff/,"")),s=a=>r.indexOf(a),i=(a,l)=>{const u=s(l);return u===-1?"":(a[u]??"").trim()},o=[];return t.slice(1).forEach((a,l)=>{const u=l+2,h=i(a,"title_de")||i(a,"title"),d=i(a,"date");if(!h){n.push(`Fila ${u}: falta title_de.`);return}if(!/^\d{4}-\d{2}-\d{2}$/.test(d)){n.push(`Fila ${u}: fecha inválida (usa YYYY-MM-DD).`);return}const p=i(a,"theme").toLowerCase(),f=i(a,"price").replace(",","."),w=f===""?0:Number(f),m=g=>g===""?null:g,x=i(a,"image_position").toLowerCase(),v=["top","center","bottom"].includes(x)?x:null;o.push({slug:i(a,"slug")||i(a,"id")||II(`${h}-${d}`),category:i(a,"category").toLowerCase()==="main"?"main":"sync",theme:PI.includes(p)?p:"other",date:d,time:m(i(a,"time")),venue:i(a,"venue"),price:Number.isFinite(w)?w:0,title_de:h,title_es:m(i(a,"title_es")),title_en:m(i(a,"title_en")),body_de:i(a,"body_de")||i(a,"body"),body_es:m(i(a,"body_es")),body_en:m(i(a,"body_en")),image_url:m(i(a,"image_url")),image_position:v,logo_url:m(i(a,"logo_url")),organizer:m(i(a,"organizer")),info_url:m(i(a,"info_url"))})}),{rows:o,errors:n}},DI=e=>{const t=e==null?"":String(e);return/[",;\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t},MI=e=>[of.join(","),...e.map(t=>of.map(n=>DI(t[n])).join(","))].join(` 384`),zI=()=>({slug:"",category:"sync",theme:"other",date:"2026-09-26",time:null,venue:"",price:0,title_de:"",title_es:null,title_en:null,body_de:"",body_es:null,body_en:null,image_url:null,image_position:null,logo_url:null,organizer:null,info_url:null}),c1=["theater","music","dance","podium","storytelling","movie","tour","other"],Ge=({label:e,children:t})=>c.jsxs("label",{className:"flex flex-col gap-1.5",children:[c.jsx("span",{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground",children:e}),t]}),Hv=({value:e,onCancel:t,onSave:n,saving:r})=>{const[s,i]=b.useState(e),o=(d,p)=>i(f=>({...f,[d]:p})),a=d=>d.trim()===""?null:d,[l,u]=b.useState(!1),h=async d=>{if(!["image/jpeg","image/png","image/webp","image/gif"].includes(d.type)){ft.error("Nur JPG, PNG, WebP oder GIF erlaubt");return}if(d.size>5*1024*1024){ft.error("Bild ist gröÃer als 5 MB");return}u(!0);const p=(d.name.split(".").pop()||"jpg").toLowerCase().replace(/[^a-z0-9]/g,""),f=d.name.replace(/\.[^.]+$/,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"bild",w=`${Date.now()}-${f}.${p}`,{error:m}=await ke.storage.from("event-images").upload(w,d,{contentType:d.type,cacheControl:"31536000"});if(u(!1),m){ft.error(`Upload fehlgeschlagen: ${m.message}`);return}const{data:x}=ke.storage.from("event-images").getPublicUrl(w);o("image_url",x.publicUrl),ft.success("Bild hochgeladen")};return c.jsxs("div",{className:"rounded-2xl border border-primary/40 bg-card p-5 shadow-soft space-y-4",children:[c.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[c.jsx(Ge,{label:"Kategorie",children:c.jsxs("select",{value:s.category,onChange:d=>o("category",d.target.value),className:"h-10 rounded-xl border border-border bg-background px-3 text-sm",children:[c.jsx("option",{value:"sync",children:"sync â Synchrones Event"}),c.jsx("option",{value:"main",children:"main â Hauptveranstaltung"})]})}),c.jsx(Ge,{label:"Thema",children:c.jsx("select",{value:s.theme,onChange:d=>o("theme",d.target.value),className:"h-10 rounded-xl border border-border bg-background px-3 text-sm",children:c1.map(d=>c.jsx("option",{value:d,children:d},d))})}),c.jsx(Ge,{label:"Datum",children:c.jsx(et,{type:"date",value:s.date,onChange:d=>o("date",d.target.value)})}),c.jsx(Ge,{label:"Uhrzeit (optional)",children:c.jsx(et,{value:s.time??"",onChange:d=>o("time",a(d.target.value)),placeholder:"19:00"})}),c.jsx(Ge,{label:"Ort",children:c.jsx(et,{value:s.venue,onChange:d=>o("venue",d.target.value)})}),c.jsx(Ge,{label:"Preis (0 = kostenlos)",children:c.jsx(et,{type:"number",min:0,step:"0.5",value:s.price,onChange:d=>o("price",Number(d.target.value)||0)})}),c.jsx(Ge,{label:"Organisator (optional)",children:c.jsx(et,{value:s.organizer??"",onChange:d=>o("organizer",a(d.target.value))})}),c.jsx(Ge,{label:"Info-Link (optional)",children:c.jsx(et,{value:s.info_url??"",onChange:d=>o("info_url",a(d.target.value)),placeholder:"https://"})}),c.jsxs(Ge,{label:"Bild-URL",children:[c.jsx(et,{value:s.image_url??"",onChange:d=>o("image_url",a(d.target.value)),placeholder:"https://"}),c.jsxs("label",{className:"inline-flex w-fit cursor-pointer items-center gap-2 rounded-xl border border-border bg-background px-3 py-1.5 text-xs font-semibold hover:bg-muted",children:[c.jsx(mb,{className:"h-3.5 w-3.5"})," ",l?"Wird hochgeladenâ¦":"Oder Bild hochladen",c.jsx("input",{type:"file",accept:"image/jpeg,image/png,image/webp,image/gif",className:"hidden",disabled:l,onChange:d=>{var f;const p=(f=d.target.files)==null?void 0:f[0];d.target.value="",p&&h(p)}})]}),s.image_url&&c.jsx("div",{className:"mt-2 overflow-hidden rounded-xl border border-border bg-white shadow-soft",children:c.jsx("img",{src:s.image_url,alt:"",className:`h-28 w-full object-cover ${s.image_position==="center"?"object-center":s.image_position==="bottom"?"object-bottom":"object-top"}`})})]}),c.jsx(Ge,{label:"Bild-Ausrichtung (vertikal)",children:c.jsxs("select",{value:s.image_position??"top",onChange:d=>o("image_position",d.target.value==="top"?null:d.target.value),className:"h-10 rounded-xl border border-border bg-background px-3 text-sm",children:[c.jsx("option",{value:"top",children:"Oben (Standard)"}),c.jsx("option",{value:"center",children:"Mitte"}),c.jsx("option",{value:"bottom",children:"Unten"})]})}),c.jsxs(Ge,{label:"Logo-URL (optional)",children:[c.jsx(et,{value:s.logo_url??"",onChange:d=>o("logo_url",a(d.target.value)),placeholder:"https://"}),s.logo_url&&c.jsxs("div",{className:"mt-2 inline-flex items-center gap-2 rounded-xl border border-border bg-white p-2 shadow-soft",children:[c.jsx("img",{src:s.logo_url,alt:"",className:"h-8 w-auto max-w-[10rem] object-contain"}),c.jsx("a",{href:s.logo_url,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary underline",children:"Vorschau"})]})]}),c.jsx(Ge,{label:"Slug (optional)",children:c.jsx(et,{value:s.slug,onChange:d=>o("slug",d.target.value),placeholder:"auto"})})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-3",children:[c.jsx(Ge,{label:"Titel DE",children:c.jsx(et,{value:s.title_de,onChange:d=>o("title_de",d.target.value)})}),c.jsx(Ge,{label:"TÃtulo ES",children:c.jsx(et,{value:s.title_es??"",onChange:d=>o("title_es",a(d.target.value))})}),c.jsx(Ge,{label:"Title EN",children:c.jsx(et,{value:s.title_en??"",onChange:d=>o("title_en",a(d.target.value))})}),c.jsx(Ge,{label:"Text DE",children:c.jsx(rc,{rows:5,value:s.body_de,onChange:d=>o("body_de",d.target.value)})}),c.jsx(Ge,{label:"Texto ES",children:c.jsx(rc,{rows:5,value:s.body_es??"",onChange:d=>o("body_es",a(d.target.value))})}),c.jsx(Ge,{label:"Text EN",children:c.jsx(rc,{rows:5,value:s.body_en??"",onChange:d=>o("body_en",a(d.target.value))})}),c.jsx("p",{className:"sm:col-span-2 text-xs text-muted-foreground",children:'Las descripciones aceptan HTML simple: <b>, <i>, <u>, <br>, <p>, <ul>/<ol>/<li> y <a href="...">. El resto se elimina automáticamente por seguridad.'})]}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsxs(Oe,{onClick:()=>n(s),disabled:r,className:"rounded-full gap-2",children:[c.jsx(oC,{className:"h-4 w-4"})," Speichern"]}),c.jsxs(Oe,{variant:"outline",onClick:t,className:"rounded-full gap-2",children:[c.jsx(gr,{className:"h-4 w-4"})," Abbrechen"]})]})]})},FI=({session:e})=>{const[t,n]=b.useState([]),[r,s]=b.useState(!0),[i,o]=b.useState(null),[a,l]=b.useState(!1),[u,h]=b.useState(null),d=b.useRef(null),[p,f]=b.useState(""),[w,m]=b.useState("all"),[x,v]=b.useState("all"),[g,y]=b.useState("all"),S=b.useMemo(()=>[...new Set(t.map(j=>j.date))].sort(),[t]),_=b.useMemo(()=>{const j=p.trim().toLowerCase();return t.filter(L=>w!=="all"&&L.category!==w||x!=="all"&&L.theme!==x||g!=="all"&&L.date!==g?!1:j?[L.title_de,L.title_es,L.title_en,L.venue,L.organizer,L.slug].filter(
384Boolean).some(R=>R.toLowerCase().includes(j)):!0)},[t,p,w,x,g]),T=p.trim()!==""||w!=="all"||x!=="all"||g!=="all",C=()=>{f(""),m("all"),v("all"),y("all")},O=b.useCallback(async()=>{s(!0);const{data:j,error:L}=await ke.from("program_events").select("*").order("date",{ascending:!0});L&&ft.error(L.message),n(j??[]),s(!1)},[]);b.useEffect(()=>{O()},[O]);const N=j=>j.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60),I=async(j,L)=>{if(!j.title_de.trim())return ft.error("Titel DE ist erforderlich.");l(!0);const R={...j,slug:j.slug.trim()||N(`${j.title_de}-${j.date}`)},{error:M}=L?await ke.from("program_events").update(R).eq("id",L):await ke.from("program_events").insert(R);if(l(!1),M)return ft.error(M.message);ft.success("Gespeichert"),o(null),O()},B=async(j,L)=>{if(!window.confirm(`â${L}" wirklich löschen?`))return;const{error:R}=await ke.from("program_events").delete().eq("id",j);if(R)return ft.error(R.message);ft.success("Gelöscht"),O()},P=async j=>{const L=await j.text(),{rows:R,errors:M}=LI(L);if(M.slice(0,5).forEach(V=>ft.error(V)),R.length===0)return ft.error("Keine gültigen Zeilen gefunden.");h(R)},H=async()=>{if(!u)return;l(!0);const{error:j}=await ke.from("program_events").upsert(u,{onConflict:"slug"});if(l(!1),j)return ft.error(j.message);ft.success(`${u.length} Events importiert`),h(null),O()},E=()=>{const j=new Blob([MI(t)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(j),R=document.createElement("a");R.href=L,R.download="ikw-events.csv",R.click(),URL.revokeObjectURL(L)},G=()=>{const j=new Blob([of.join(",")+` 385`],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(j),R=document.createElement("a");R.href=L,R.download="ikw-vorlage.csv",R.click(),URL.revokeObjectURL(L)};return c.jsx("main",{className:"relative min-h-screen",children:c.jsxs("div",{className:"relative z-10 mx-auto max-w-6xl px-4 sm:px-6 py-10",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:Ua,alt:"Crece",className:"h-11 w-auto rounded-lg bg-white p-1 shadow-soft"}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight",children:"Programm-Verwaltung"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:e.user.email})]})]}),c.jsxs(Oe,{variant:"outline",className:"rounded-full gap-2",onClick:()=>ke.auth.signOut(),children:[c.jsx(up,{className:"h-4 w-4"})," Abmelden"]})]}),c.jsxs("div",{className:"mt-8 flex flex-wrap gap-3",children:[c.jsxs(Oe,{onClick:()=>o("new"),className:"rounded-full gap-2",children:[c.jsx(rC,{className:"h-4 w-4"})," Neues Event"]}),c.jsx("input",{ref:d,type:"file",accept:".csv,text/csv",className:"hidden",onChange:j=>{var R;const L=(R=j.target.files)==null?void 0:R[0];L&&P(L),j.target.value=""}}),c.jsxs(Oe,{variant:"outline",className:"rounded-full gap-2",onClick:()=>{var j;return(j=d.current)==null?void 0:j.click()},children:[c.jsx(mb,{className:"h-4 w-4"})," CSV importieren"]}),c.jsxs(Oe,{variant:"outline",className:"rounded-full gap-2",onClick:E,children:[c.jsx(Dh,{className:"h-4 w-4"})," CSV exportieren"]}),c.jsxs(Oe,{variant:"ghost",className:"rounded-full gap-2",onClick:G,children:[c.jsx(Dh,{className:"h-4 w-4"})," Vorlage"]})]}),u&&c.jsxs("div",{className:"mt-6 rounded-2xl border border-secondary/40 bg-secondary/5 p-5",children:[c.jsxs("p",{className:"font-semibold",children:[u.length," Zeile(n) erkannt. Vorhandene Events mit gleichem Slug werden aktualisiert."]}),c.jsx("ul",{className:"mt-3 max-h-56 overflow-auto text-sm text-muted-foreground space-y-1",children:u.map((j,L)=>c.jsxs("li",{children:[j.date," · ",j.title_de," · ",j.venue]},L))}),c.jsxs("div",{className:"mt-4 flex gap-3",children:[c.jsx(Oe,{onClick:H,disabled:a,className:"rounded-full",children:"Importieren"}),c.jsx(Oe,{variant:"outline",onClick:()=>h(null),className:"rounded-full",children:"Abbrechen"})]})]}),i==="new"&&c.jsx("div",{className:"mt-6",children:c.jsx(Hv,{value:zI(),saving:a,onCancel:()=>o(null),onSave:j=>I(j)})}),t.length>0&&c.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-2 rounded-2xl border border-border bg-card p-3 shadow-soft",children:[c.jsxs("div",{className:"relative flex-1 min-w-[12rem]",children:[c.jsx(hb,{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),c.jsx(et,{value:p,onChange:j=>
385f(j.target.value),placeholder:"Titel, Ort, Veranstalter, Slug â¦",className:"h-10 rounded-xl pl-9"})]}),c.jsxs("select",{value:w,onChange:j=>m(j.target.value),className:"h-10 rounded-xl border border-border bg-background px-3 text-sm",children:[c.jsx("option",{value:"all",children:"Alle Kategorien"}),c.jsx("option",{value:"main",children:"main"}),c.jsx("option",{value:"sync",children:"sync"})]}),c.jsxs("select",{value:x,onChange:j=>v(j.target.value),className:"h-10 rounded-xl border border-border bg-background px-3 text-sm",children:[c.jsx("option",{value:"all",children:"Alle Themen"}),c1.map(j=>c.jsx("option",{value:j,children:j},j))]}),c.jsxs("select",{value:g,onChange:j=>y(j.target.value),className:"h-10 rounded-xl border border-border bg-background px-3 text-sm",children:[c.jsx("option",{value:"all",children:"Alle Tage"}),S.map(j=>c.jsx("option",{value:j,children:j},j))]}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:[_.length," / ",t.length]}),T&&c.jsxs(Oe,{variant:"ghost",size:"sm",className:"rounded-full gap-1.5",onClick:C,children:[c.jsx(gr,{className:"h-3.5 w-3.5"})," Zurücksetzen"]})]}),c.jsxs("div",{className:"mt-4 space-y-4",children:[r&&c.jsx("p",{className:"text-muted-foreground",children:"Lädtâ¦"}),!r&&t.length===0&&c.jsx("p",{className:"text-muted-foreground",children:"Noch keine Events. Lege eins an oder importiere eine CSV."}),!r&&t.length>0&&_.length===0&&c.jsx("p",{className:"text-muted-foreground",children:"Keine Events für diese Filter."}),_.map(j=>i===j.id?c.jsx(Hv,{value:j,saving:a,onCancel:()=>o(null),onSave:L=>I(L,j.id)},j.id):c.jsxs("div",{className:"flex flex-wrap items-center gap-4 roun
385ded-2xl border border-border bg-card p-4 shadow-soft",children:[j.image_url&&c.jsx("img",{src:j.image_url,alt:"",className:"h-16 w-20 shrink-0 rounded-xl object-cover"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"font-bold truncate",children:j.title_de}),c.jsxs("p",{className:"text-sm text-muted-foreground truncate",children:[j.date,j.time?` · ${j.time}`:""," · ",j.venue," · ",j.category," / ",j.theme," ·"," ",Number(j.price)===0?"kostenlos":`${j.price} â¬`,j.organizer?` · ${j.organizer}`:""]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(Oe,{size:"sm",variant:"outline",className:"rounded-full gap-1.5",onClick:()=>o(j.id),children:[c.jsx(nC,{className:"h-3.5 w-3.5"})," Bearbeiten"]}),c.jsx(Oe,{size:"sm",variant:"ghost",className:"rounded-full text-destructive",onClick:()=>B(j.id,j.title_de),children:c.jsx(pb,{className:"h-4 w-4"})})]})]},j.id))]})]})})},UI=()=>{const[e,t]=b.useState(null),[n,r]=b.useState(null),[s,i]=b.useState(!1),[o,a]=b.useState(""),[l,u]=b.useState(""),[h,d]=b.useState(!1);b.useEffect(()=>{const{data:f}=ke.auth.onAuthStateChange((w,m)=>{t(m),i(!0),m||r(null)});return ke.auth.getSession().then(({data:w})=>{t(w.session),i(!0)}),()=>f.subscription.unsubscribe()},[]),b.useEffect(()=>{if(!e)return;let f=!1;return ke.from("user_roles").select("role").eq("user_id",e.user.id).eq("role","admin").maybeSingle().then(({data:w})=>{f||r(!!w)}),()=>{f=!0}},[e]);const p=async f=>{d(!0);const w={email:o.trim(),password:l},{error:m}=f==="in"?await ke.auth.signInWithPassword(w):await ke.auth.signUp({...w,options:{emailRedirectTo:`${window.location.origin}/admin`}});if(d(!1),m)return ft.error(m.message);f==="up"&&ft.success("Konto erstellt. Du bist angemeldet.")};return s?e&&n?c.jsx(FI,{session:e}):c.jsxs("main",{className:"relative min-h-screen overflow-hidden flex items-center justify-center px-5",children:[c.jsx(xu,{}),c.jsxs("div",{className:"relative z-10 w-full max-w-md text-center",children:[c.jsx("img",{src:Ua,alt:"Crece",className:"mx-auto h-14 w-auto rounded-lg bg-white p-1 shadow-soft"}),c.jsx("h1",{className:"mt-8 font-extrabold text-3xl sm:text-4xl tracking-tight text-gradient-hero",children:"Programm-Verwaltung"}),c.jsx("p",{className:"mt-3 text-muted-foreground",children:"Interkulturelle Woche Frankfurt 2026"}),e&&n===!1?c.jsxs("div",{className:"mt-8 space-y-4",children:[c.jsxs("p",{className:"rounded-2xl border border-destructive/30 bg-destructive/10 p-5 text-sm",children:["Dieses Konto (",e.user.email,") hat keine Administrationsrechte."]}),c.jsxs(Oe,{variant:"outline",className:"rounded-full gap-2",onClick:()=>ke.auth.signOut(),children:[c.jsx(up,{className:"h-4 w-4"})," Abmelden"]})]}):c.jsxs("form",{onSubmit:f=>{f.preventDefault(),p("in")},className:"mt-8 space-y-3 text-left",children:[c.jsx(et,{type:"email",autoComplete:"email",value:o,onChange:f=>a(f.target.value),placeholder:"E-Mail",className:"h-12 rounded-full px-5"}),c.jsx(et,{type:"password",autoComplete:"current-password",value:l,onChange:f=>u(f.target.value),placeholder:"Passwort",className:"h-12 rounded-full px-5"}),c.jsxs("div",{className:"flex flex-wrap gap-3 pt-1",children:[c.jsxs(Oe,{type:"submit",disabled:h,size:"lg",className:"h-12 rounded-full gap-2 border-0 bg-gradient-leaf text-primary-foreground",children:[c.jsx(ub,{className:"h-4 w-4"})," Anmelden ",c.jsx(hs,{className:"h-4 w-4"})]}),c.jsx(Oe,{type:"button",variant:"outline",disabled:h,className:"h-12 rounded-full",onClick:()=>p("up"),children:"Konto anlegen"})]}),c.jsx("p",{className:"pt-2 text-xs text-muted-foreground",children:'Beim ersten Mal âKonto anlegen" mit der Admin-E-Mail und einem eigenen Passwort.'})]})]})]}):null},Kv="[email protected]",$I=()=>{const[e,t]=b.useState(null),[n,r]=b.useState(!0),[s,i]=b.useState(Kv),[o,a]=b.useState(""),[l,u]=b.useState(null),[h,d]=b.useState(!1),[p,f]=b.useState([]),[w,m]=b.useState(null),[x,v]=b.useState("all");b.useEffect(()=>{const{data:N}=ke.auth.onAuthStateChange((I,B)=>t(B));return ke.auth.getSession().then(({data:I})=>{t(I.session),r(!1)}),()=>N.subscription.unsubscribe()},[]);const g=b.useCallback(async()=>{const{data:N,error:I}=await ke.from("reservations").select("*").order("created_at",{ascending:!1});if(I){m(I.message),f([]);return}m(null),f(N||[])},[]);b.useEffect(()=>{e&&g()},[e,g]);const y=async N=>{N.preventDefault(),d(!0),u(null);const I={email:s.trim().toLowerCase(),password:o};let{error:B}=await ke.auth.signInWithPassword(I);if(B&&I.email===Kv){const{error:P}=await ke.auth.signUp(I);P||({error:B}=await ke.auth.signInWithPassword(I))}d(!1),B&&u("E-Mail oder Passwort ist nicht korrekt.")},S=async N=>{if(!window.confirm("Reservierung löschen?"))return;const{error:I}=await ke.from("reservations").delete().eq("id",N);I||f(B=>B.filter(P=>P.id!==N))},_=b.useMemo(()=>x==="all"?p:p.filter(N=>N.event_id===x),[p,x]),T=b.useMemo(()=>{const N=new Map;return _.forEach(I=>{const B=`${I.event_id}||${I.block_id}||${I.block_label}`;N.set(B,[...N.get(B)||[],I])}
385),[...N.entries()].sort((I,B)=>I[0].localeCompare(B[0]))},[_]),C=_.reduce((N,I)=>N+(I.people||0),0),O=()=>{const N=H=>`"${(H||"").replace(/"/g,'""')}"`,I=["event,block,name,people,email,notes,created_at",..._.map(H=>[H.event_title,H.block_label,H.name,String(H.people),H.email||"",H.notes||"",H.created_at].map(N).join(","))].join(` 386`),B=URL.createObjectURL(new Blob([I],{type:"text/csv;charset=utf-8"})),P=document.createElement("a");P.href=B,P.download="reservierungen.csv",P.click(),URL.revokeObjectURL(B)};return n?c.jsx("div",{className:"min-h-screen grid place-items-center text-muted-foreground",children:"â¦"}):e?c.jsx("main",{className:"min-h-screen bg-background px-4 py-10 sm:px-8",children:c.jsxs("div",{className:"mx-auto max-w-5xl",children:[c.jsxs("header",{className:"flex flex-wrap items-center justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] font-bold uppercase tracking-widest text-secondary",children:"Interkulturelle Woche 2026"}),c.jsx("h1",{className:"text-3xl font-bold",children:"Reservierungen"})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs("button",{onClick:g,className:"inline-flex items-center gap-2 rounded-full border border-border px-4 py-2 text-sm font-semibold",children:[c.jsx(iC,{className:"h-4 w-4"})," Aktualisieren"]}),c.jsxs("button",{onClick:O,className:"inline-flex items-center gap-2 rounded-full border border-border px-4 py-2 text-sm font-semibold",children:[c.jsx(Dh,{className:"h-4 w-4"})," CSV"]}),c.jsxs("button",{onClick:()=>ke.auth.signOut(),className:"inline-flex items-center gap-2 rounded-full border border-border px-4 py-2 text-sm font-semibold",children:[c.jsx(up,{className:"h-4 w-4"})," Abmelden"]})]})]}),w&&c.jsx("p",{className:"mt-6 rounded-2xl border border-destructive/30 bg-destructive/10 p-4 text-sm font-semibold text-destructive",children:w}),c.jsx("div",{className:"mt-6 flex flex-wrap items-center gap-2",children:["all",...Ms.map(N=>N.id)].map(N=>{var I;return c.jsx("button",{onClick:()=>v(N),className:`rounded-full px-4 py-1.5 text-xs font-bold ${x===N?"bg-gradient-hero text-primary-foreground shadow-soft":"border border-border text-muted-foreground"}`,children:N==="all"?"Alle":(I=Ms.find(B=>B.id===N))==null?void 0:I.title.de},N)})}),c.jsxs("p",{className:"mt-4 inline-flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(va,{className:"h-4 w-4 text-primary"}),_.length," Reservierungen · ",C," Personen"]}),c.jsxs("div",{className:"mt-6 space-y-6",children:[T.length===0&&c.jsx("p",{className:"rounded-2xl border border-border bg-card p-6 text-sm text-muted-foreground",children:"Noch keine Reservierungen."}),T.map(([N,I])=>{var G;const[B,,P]=N.split("||"),H=((G=Ms.find(j=>j.id===B))==null?void 0:G.title.de)||B,E=I.reduce((j,L)=>j+(L.people||0),0);return c.jsxs("section",{className:"overflow-hidden rounded-3xl border border-border bg-card shadow-soft",children:[c.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2 border-b border-border bg-muted/40 px-5 py-3",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-base font-bold",children:H}),c.jsx("p",{className:"text-xs text-muted-foreground",children:P})]}),c.jsxs("span",{className:"text-xs font-bold text-primary",children:[I.length," Reservierungen · ",E," Personen"]})]}),c.jsx("ul",{className:"divide-y divide-border",children:I.map(j=>c.jsxs("li",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 px-5 py-3 text-sm",children:[c.jsx("span",{className:"font-semibold",children:j.name}),c.jsxs("span",{className:"text-muted-foreground",children:[j.people," Pers."]}),j.email&&c.jsx("span",{className:"text-muted-foreground",children:j.email}),j.notes&&c.jsx("span",{className:"text-muted-foreground italic",children:j.notes}),c.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:new Date(j.created_at).toLocaleString("de-DE")}),c.jsx("button",{onClick:()=>S(j.id),"aria-label":"Löschen",className:"text-muted-foreground hover:text-destructive",children:c.jsx(pb,{className:"h-4 w-4"})})]},j.id))})]},N)})]})]})}):c.jsx("main",{className:"min-h-screen grid place-items-center bg-background p-6",children:c.jsxs("form",{onSubmit:y,className:"w-full max-w-sm rounded-3xl border border-border bg-card p-8 shadow-soft flex flex-col gap-4",children:[c.jsx("h1",{className:"text-2xl font-bold",children:"Reservierungen"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Bitte anmelden, um die Listen zu sehen."}),c.jsx("input",{type:"email",value:s,onChange:N=>i(N.target.value),placeholder:"E-Mail",className:"rounded-xl border border-border bg-background px-3 py-2 text-sm"}),c.jsx("input",{type:"password",value:o,onChange:N=>a(N.target.value),placeholder:"Passwort",className:"rounded-xl border border-border bg-background px-3 py-2 text-sm"}),l&&c.jsx("p",{className:"text-sm font-semibold text-destructive",children:l}),c.jsx("button",{type:"submit",disabled:h,className:"rounded-full bg-gradient-hero px-6 py-3 text-sm font-bold text-primary-foreground shadow-soft disabled:opacity-60",children:h?"â¦":"Anmelden"})]})})},BI=()=>{const e=sp();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},WI=new b_,VI=()=>{const{hash:e}=sp();return b.useEffect(()=>{if(e){const t=e.replace("#","");let n=0;const r=()=>{const s=document.getElementById(t);if(s){const o=s.getBoundingClientRect().top+window.scrollY-84;return window.scrollTo({top:o,behavior:"smooth"}),!0}return!1};if(!r()){const s=setInterval(()=>{n++,(r()||n>25)&&clearInterval(s)},120);return()=>clearInterval(s)}}},[e]),null},HI=()=>c.jsx(k_,{client:WI,children:c.jsxs(vj,{children:[c.jsx(HC,{}),c.jsx(FE,{}),c.jsx(bj,{children:c.jsxs(aE,{children:[c.jsx(VI,{}),c.jsxs(sE,{children:[c.jsx(ai,{path:"/",element:c.jsx(_I,{})}),c.jsx(ai,{path:"/plan",element:c.jsx(RI,{})}),c.jsx(ai,{path:"/admin",element:c.jsx(UI,{})}),c.jsx(ai,{path:"/tickets",element:c.jsx($I,{})}),c.jsx(ai,{path:"*",element:c.jsx(BI,{})})]})]})})]})});gw(document.getElementById("root")).render(c.jsx(HI,{}));
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.