vendor: 4,140 bytes, lines 1-9
1var W0=e=>{throw TypeError(e)};var ud=(e,t,n)=>t.has(e)||W0("Cannot "+n);var M=(e,t,n)=>(ud(e,t,"read from private field"),n?n.call(e):t.get(e)),de=(e,t,n)=>t.has(e)?W0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ee=(e,t,n,r)=>(ud(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ot=(e,t,n)=>(ud(e,t,"access private method"),n);var xl=(e,t,n,r)=>({set _(s){ee(e,t,s,n)},get _(){return M(e,t,r)}});function rC(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 pw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mw={exports:{}},bu={},gw={exports:{}},ie={};/** 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 el=Symbol.for("react.element"),sC=Symbol.for("react.portal"),iC=Symbol.for("react.fragment"),oC=Symbol.for("react.strict_mode"),aC=Symbol.for("react.profiler"),lC=Symbol.for("react.provider"),cC=Symbol.for("react.context"),uC=Symbol.for("react.forward_ref"),dC=Symbol.for("react.suspense"),hC=Symbol.for("react.memo"),fC=Symbol.for("react.lazy"),H0=Symbol.iterator;function pC(e){return e===null||typeof e!="object"?null:(e=H0&&e[H0]||e["@@iterator"],typeof e=="function"?e:null)}var vw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yw=Object.assign,ww={};function bo(e,t,n){this.props=e,this.context=t,this.refs=ww,this.updater=n||vw}bo.prototype.isReactComponent={};bo.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")};bo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xw(){}xw.prototype=bo.prototype;function Ep(e,t,n){this.props=e,this.context=t,this.refs=ww,this.updater=n||vw}var kp=Ep.prototype=new xw;kp.constructor=Ep;yw(kp,bo.prototype);kp.isPureReactComponent=!0;var K0=Array.isArray,Sw=Object.prototype.hasOwnProperty,Cp={current:null},bw={key:!0,ref:!0,__self:!0,__source:!0};function _w(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)Sw.call(t,r)&&!bw.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),c=0;c<a;c++)l[c]=arguments[c+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:el,type:e,key:i,ref:o,props:s,_owner:Cp.current}}function mC(e,t){return{$$typeof:el,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tp(e){return typeof e=="object"&&e!==null&&e.$$typeof===el}function gC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var J0=/\/+/g;function dd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gC(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function rc(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 el:case sC:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+dd(o,0):r,K0(s)?(n="",e!=null&&(n=e.replace(J0,"$&/")+"/"),rc(s,t,n,"",function(c){return c})):s!=null&&(Tp(s)&&(s=mC(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(J0,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",K0(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+dd(i,a);o+=rc(i,t,n,l,s)}else if(l=pC(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+dd(i,a++),o+=rc(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 Sl(e,t,n){if(e==null)return e;var r=[],s=0;return rc(e,r,"","",function(i){return t.call(n,i,s++)}),r}function vC(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 wt={current:null},sc={transition:null},yC={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:sc,ReactCurrentOwner:Cp};function Ew(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Sl,forEach:function(e,t,n){Sl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Sl(e,function(){t++}),t},toArray:function(e){return Sl(e,function(t){return t})||[]},only:function(e){if(!Tp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=bo;ie.Fragment=iC;ie.Profiler=aC;ie.PureComponent=Ep;ie.StrictMode=oC;ie.Suspense=dC;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yC;ie.act=Ew;ie.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=yw({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Cp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Sw.call(t,l)&&!bw.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 c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:el,type:e.type,key:s,ref:i,props:r,_owner:o}};ie.createContext=function(e){return e={$$typeof:cC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:lC,_context:e},e.Consumer=e};ie.createElement=_w;ie.createFactory=function(e){var t=_w.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:uC,render:e}};ie.isValidElement=Tp;ie.lazy=function(e){return{$$typeof:fC,_payload:{_status:-1,_result:e},_init:vC}};ie.memo=function(e,t){return{$$typeof:hC,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=sc.transition;sc.transition={};try{e()}finally{sc.transition=t}};ie.unstable_act=Ew;ie.useCallback=function(e,t){return wt.current.useCallback(e,t)};ie.useContext=function(e){return wt.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};ie.useEffect=function(e,t){return wt.current.useEffect(e,t)};ie.useId=function(){return wt.current.useId()};ie.useImperativeHandle=function(e,t,n){return wt.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return wt.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return wt.current.useReducer(e,t,n)};ie.useRef=function(e){return wt.current.useRef(e)};ie.useState=function(e){return wt.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return wt.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return wt.current.useTransition()};ie.version="18.3.1";gw.exports=ie;var y=gw.exports;const I=pw(y),jp=rC({__proto__:null,default:I},[y]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var wC=y,xC=Symbol.for("react.element"),SC=Symbol.for("react.fragment"),bC=Object.prototype.hasOwnProperty,_C=wC.__SECRET_INT
vendor: 9,882 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EC={key:!0,ref:!0,__self:!0,__source:!0};function kw(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)bC.call(t,r)&&!EC.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:xC,type:e,key:i,ref:o,props:s,_owner:_C.current}}bu.Fragment=SC;bu.jsx=kw;bu.jsxs=kw;mw.exports=bu;var u=mw.exports,Cw={exports:{}},zt={},Tw={exports:{}},jw={};/** 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(N,P){var L=N.length;N.push(P);e:for(;0<L;){var J=L-1>>>1,W=N[J];if(0<s(W,P))N[J]=P,N[L]=W,L=J;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var P=N[0],L=N.pop();if(L!==P){N[0]=L;e:for(var J=0,W=N.length,X=W>>>1;J<X;){var Q=2*(J+1)-1,ue=N[Q],pe=Q+1,U=N[pe];if(0>s(ue,L))pe<W&&0>s(U,ue)?(N[J]=U,N[pe]=L,J=pe):(N[J]=ue,N[Q]=L,J=Q);else if(pe<W&&0>s(U,L))N[J]=U,N[pe]=L,J=pe;else break e}}return P}function s(N,P){var L=N.sortIndex-P.sortIndex;return L!==0?L:N.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,h=null,f=3,p=!1,g=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(N){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=N)r(c),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(c)}}function b(N){if(m=!1,S(N),!g)if(n(l)!==null)g=!0,F(k);else{var P=n(c);P!==null&&V(b,P.startTime-N)}}function k(N,P){g=!1,m&&(m=!1,w(C),C=-1),p=!0;var L=f;try{for(S(P),h=n(l);h!==null&&(!(h.expirationTime>P)||N&&!A());){var J=h.callback;if(typeof J=="function"){h.callback=null,f=h.priorityLevel;var W=J(h.expirationTime<=P);P=e.unstable_now(),typeof W=="function"?h.callback=W:h===n(l)&&r(l),S(P)}else r(l);h=n(l)}if(h!==null)var X=!0;else{var Q=n(c);Q!==null&&V(b,Q.startTime-P),X=!1}return X}finally{h=null,f=L,p=!1}}var E=!1,_=null,C=-1,j=5,T=-1;function A(){return!(e.unstable_now()-T<j)}function R(){if(_!==null){var N=e.unstable_now();T=N;var P=!0;try{P=_(!0,N)}finally{P?$():(E=!1,_=null)}}else E=!1}var $;if(typeof v=="function")$=function(){v(R)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,G=O.port2;O.port1.onmessage=R,$=function(){G.postMessage(null)}}else $=function(){x(R,0)};function F(N){_=N,E||(E=!0,$())}function V(N,P){C=x(function(){N(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,F(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var P=3;break;default:P=f}var L=f;f=P;try{return N()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var L=f;f=N;try{return P()}finally{f=L}},e.unstable_scheduleCallback=function(N,P,L){var J=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?J+L:J):L=J,N){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=L+W,N={id:d++,callback:P,priorityLevel:N,startTime:L,expirationTime:W,sortIndex:-1},L>J?(N.sortIndex=L,t(c,N),n(l)===null&&N===n(c)&&(m?(w(C),C=-1):m=!0,V(b,L-J))):(N.sortIndex=W,t(l,N),g||p||(g=!0,F(k))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var P=f;return function(){var L=f;f=P;try{return N.apply(this,arguments)}finally{f=L}}}})(jw);Tw.exports=jw;var kC=Tw.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 CC=y,Bt=kC;function D(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 Nw=new Set,ya={};function ri(e,t){uo(e,t),uo(e+"Capture",t)}function uo(e,t){for(ya[e]=t,e=0;e<t.length;e++)Nw.add(t[e])}var cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Th=Object.prototype.hasOwnProperty,TC=/^[: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]*$/,G0={},Y0={};function jC(e){return Th.call(Y0,e)?!0:Th.call(G0,e)?!1:TC.test(e)?Y0[e]=!0:(G0[e]=!0,!1)}function NC(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 AC(e,t,n,r){if(t===null||typeof t>"u"||NC(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 xt(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 st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new xt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new xt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new xt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new xt(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){st[e]=new xt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new xt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new xt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new xt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new xt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Np=/[\-:]([a-z])/g;function Ap(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Np,Ap);st[t]=new xt(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(Np,Ap);st[t]=new xt(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(Np,Ap);st[t]=new xt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new xt(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new xt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pp(e,t,n,r){var s=st.hasOwnProperty(t)?st[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(AC(t,
vendor: 5,344 bytes, lines 33-37
33n,s,r)&&(n=null),r||s===null?jC(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 wr=CC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bl=Symbol.for("react.element"),ji=Symbol.for("react.portal"),Ni=Symbol.for("react.fragment"),Rp=Symbol.for("react.strict_mode"),jh=Symbol.for("react.profiler"),Aw=Symbol.for("react.provider"),Pw=Symbol.for("react.context"),Mp=Symbol.for("react.forward_ref"),Nh=Symbol.for("react.suspense"),Ah=Symbol.for("react.suspense_list"),Ip=Symbol.for("react.memo"),Ir=Symbol.for("react.lazy"),Rw=Symbol.for("react.offscreen"),q0=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=q0&&e[q0]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,hd;function Yo(e){if(hd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hd=t&&t[1]||""}return` 34`+hd+e}var fd=!1;function pd(e,t){if(!e||fd)return"";fd=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(` 35`),i=r.stack.split(` 36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 37`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{fd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yo(e):""}function PC(e){switch(e.tag){case 5:return Yo(e.type);case 16:return Yo("Lazy");case 13:return Yo("Suspense");case 19:return Yo("SuspenseList");case 0:case 2:case 15:return e=pd(e.type,!1),e;case 11:return e=pd(e.type.render,!1),e;case 1:return e=pd(e.type,!0),e;default:return""}}function Ph(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 Ni:return"Fragment";case ji:return"Portal";case jh:return"Profiler";case Rp:return"StrictMode";case Nh:return"Suspense";case Ah:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pw:return(e.displayName||"Context")+".Consumer";case Aw:return(e._context.displayName||"Context")+".Provider";case Mp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ip:return t=e.displayName||null,t!==null?t:Ph(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return Ph(e(t))}catch{}}return null}function RC(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 Ph(t);case 8:return t===Rp?"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 is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function MC(e){var t=Mw(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 _l(e){e._valueTracker||(e._valueTracker=MC(e))}function Iw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tc(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 Rh(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Q0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=is(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}}
vendor: 4,651 bytes, line 37
37function Ow(e,t){t=t.checked,t!=null&&Pp(e,"checked",t,!1)}function Mh(e,t){Ow(e,t);var n=is(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")?Ih(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ih(e,t.type,is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function X0(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 Ih(e,t,n){(t!=="number"||Tc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function Wi(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=""+is(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 Oh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Z0(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(qo(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:is(n)}}function Dw(e,t){var n=is(t.value),r=is(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 eg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Lw(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 Dh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Lw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var El,$w=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(El=El||document.createElement("div"),El.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=El.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var na={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},IC=["Webkit","ms","Moz","O"];Object.keys(na).forEach(function(e){IC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),na[t]=na[e]})});function Uw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||na.hasOwnProperty(e)&&na[e]?(""+t).trim():t+"px"}function Fw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Uw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var OC=Re({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 Lh(e,t){if(t){if(OC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function $h(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uh=null;function Op(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fh=null,Hi=null,Ki=null;function tg(e){if(e=rl(e)){if(typeof Fh!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Tu(t),Fh(e.stateNode,e.type,t))}}function Bw(e){Hi?Ki?Ki.push(e):Ki=[e]:Hi=e}function Vw(){if(Hi){var e=Hi,t=Ki;if(Ki=Hi=null,tg(e),t)for(e=0;e<t.length;e++)tg(t[e])}}function zw(e,t){return e(t)}function Ww(){}var md=!1;function Hw(e,t,n){if(md)return e(t,n);md=!0;try{return zw(e,t,n)}finally{md=!1,(Hi!==null||Ki!==null)&&(Ww(),Vw())}}function xa(e,t){var n=e.stateNode;if(n===null)return null;var r=Tu(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(D(231,t,typeof n));return n}var Bh=!1;if(cr)try{var $o={};Object.defineProperty($o,"passive",{get:function(){Bh=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{Bh=!1}function DC(e,t,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var ra=!1,jc=null,Nc=!1,Vh=null,LC={onError:function(e){ra=!0,jc=e}};function $C(e,t,n,r,s,i,o,a,l){ra=!1,jc=null,DC.apply(LC,arguments)}function UC(e,t,n,r,s,i,o,a,l){if($C.apply(this,arguments),ra){if(ra){var c=jc;ra=!1,jc=null}else throw Error(D(198));Nc||(Nc=!0,Vh=c)}}function si(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 Kw(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 ng(e){if(si(e)!==e)throw Error(D(188))}function FC(e){var t=e.alternate;if(!t){if(t=si(e),t===null)throw Error(D(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 ng(s),e;if(i===r)return ng(s),t;i=i.sibling}throw Error(D(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(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Jw(e){return e=FC(e),e!==null?Gw(e):null}function Gw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Gw(e);if(t!==null)return t;e=e.sibling}return null}var Yw=Bt.unstable_scheduleCallback,rg=Bt.unstable_cancelCallback,BC=Bt.unstable_shouldYield,VC=Bt.unstable_requestPaint,$e=Bt.unstable_now,zC=Bt.unstable_getCurrentPriorityLevel,Dp=Bt.unstable_ImmediatePriority,qw=Bt.unstable_UserBlockingPriority,Ac=Bt.unstable_NormalPriority,WC=Bt.unstable_LowPriority,Qw=Bt.unstable_IdlePriority,_u=null,zn=null;function HC(e){if(zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(_u,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:GC,KC=Math.log,JC=Math.LN2;function GC(e){return e>>>=0,e===0?32:31-(KC(e)/JC|0)|0}var kl=64,Cl=4194304;function Qo(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 Pc(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=Qo(a):(i&=o,i!==0&&(r=Qo(i)))}else o=n&~s,o!==0?r=Qo(o):i!==0&&(r=Qo(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-_n(t),s=1<<n,r|=e[n],t&=~s;return r}function YC(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 qC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-_n(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=YC(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function zh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Xw(){var e=kl;return kl<<=1,!(kl&4194240)&&(kl=64),e}function gd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function QC(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-_n(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Lp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ge=0;function Zw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var e1,$p,t1,n1,r1,Wh=!1,Tl=[],qr=null,Qr=null,Xr=null,Sa=new Map,ba=new Map,$r=[],XC="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 sg(e,t){switch(e){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":Sa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(t.pointerId)}}function Uo(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=rl(t),t!==null&&$p(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 10,431 bytes, line 37
37function ZC(e,t,n,r,s){switch(t){case"focusin":return qr=Uo(qr,e,t,n,r,s),!0;case"dragenter":return Qr=Uo(Qr,e,t,n,r,s),!0;case"mouseover":return Xr=Uo(Xr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Sa.set(i,Uo(Sa.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ba.set(i,Uo(ba.get(i)||null,e,t,n,r,s)),!0}return!1}function s1(e){var t=As(e.target);if(t!==null){var n=si(t);if(n!==null){if(t=n.tag,t===13){if(t=Kw(n),t!==null){e.blockedOn=t,r1(e.priority,function(){t1(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 ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Uh=r,n.target.dispatchEvent(r),Uh=null}else return t=rl(n),t!==null&&$p(t),e.blockedOn=n,!1;t.shift()}return!0}function ig(e,t,n){ic(e)&&n.delete(t)}function e3(){Wh=!1,qr!==null&&ic(qr)&&(qr=null),Qr!==null&&ic(Qr)&&(Qr=null),Xr!==null&&ic(Xr)&&(Xr=null),Sa.forEach(ig),ba.forEach(ig)}function Fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Wh||(Wh=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,e3)))}function _a(e){function t(s){return Fo(s,e)}if(0<Tl.length){Fo(Tl[0],e);for(var n=1;n<Tl.length;n++){var r=Tl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qr!==null&&Fo(qr,e),Qr!==null&&Fo(Qr,e),Xr!==null&&Fo(Xr,e),Sa.forEach(t),ba.forEach(t),n=0;n<$r.length;n++)r=$r[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$r.length&&(n=$r[0],n.blockedOn===null);)s1(n),n.blockedOn===null&&$r.shift()}var Ji=wr.ReactCurrentBatchConfig,Rc=!0;function t3(e,t,n,r){var s=ge,i=Ji.transition;Ji.transition=null;try{ge=1,Up(e,t,n,r)}finally{ge=s,Ji.transition=i}}function n3(e,t,n,r){var s=ge,i=Ji.transition;Ji.transition=null;try{ge=4,Up(e,t,n,r)}finally{ge=s,Ji.transition=i}}function Up(e,t,n,r){if(Rc){var s=Hh(e,t,n,r);if(s===null)Cd(e,t,r,Mc,n),sg(e,r);else if(ZC(s,e,t,n,r))r.stopPropagation();else if(sg(e,r),t&4&&-1<XC.indexOf(e)){for(;s!==null;){var i=rl(s);if(i!==null&&e1(i),i=Hh(e,t,n,r),i===null&&Cd(e,t,r,Mc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}var Mc=null;function Hh(e,t,n,r){if(Mc=null,e=Op(r),e=As(e),e!==null)if(t=si(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kw(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 Mc=e,null}function i1(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(zC()){case Dp:return 1;case qw:return 4;case Ac:case WC:return 16;case Qw:return 536870912;default:return 16}default:return 16}}var Kr=null,Fp=null,oc=null;function o1(){if(oc)return oc;var e,t=Fp,n=t.length,r,s="value"in Kr?Kr.value:Kr.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 oc=s.slice(e,1<r?1-r:void 0)}function ac(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 jl(){return!0}function og(){return!1}function Wt(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)?jl:og,this.isPropagationStopped=og,this}return Re(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=jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var _o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bp=Wt(_o),nl=Re({},_o,{view:0,detail:0}),r3=Wt(nl),vd,yd,Bo,Eu=Re({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vp,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"?(vd=e.screenX-Bo.screenX,yd=e.screenY-Bo.screenY):yd=vd=0,Bo=e),vd)},movementY:function(e){return"movementY"in e?e.movementY:yd}}),ag=Wt(Eu),s3=Re({},Eu,{dataTransfer:0}),i3=Wt(s3),o3=Re({},nl,{relatedTarget:0}),wd=Wt(o3),a3=Re({},_o,{animationName:0,elapsedTime:0,pseudoElement:0}),l3=Wt(a3),c3=Re({},_o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u3=Wt(c3),d3=Re({},_o,{data:0}),lg=Wt(d3),h3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f3={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"},p3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=p3[e])?!!t[e]:!1}function Vp(){return m3}var g3=Re({},nl,{key:function(e){if(e.key){var t=h3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ac(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?f3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vp,charCode:function(e){return e.type==="keypress"?ac(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ac(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),v3=Wt(g3),y3=Re({},Eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cg=Wt(y3),w3=Re({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vp}),x3=Wt(w3),S3=Re({},_o,{propertyName:0,elapsedTime:0,pseudoElement:0}),b3=Wt(S3),_3=Re({},Eu,{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}),E3=Wt(_3),k3=[9,13,27,32],zp=cr&&"CompositionEvent"in window,sa=null;cr&&"documentMode"in document&&(sa=document.documentMode);var C3=cr&&"TextEvent"in window&&!sa,a1=cr&&(!zp||sa&&8<sa&&11>=sa),ug=" ",dg=!1;function l1(e,t){switch(e){case"keyup":return k3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ai=!1;function T3(e,t){switch(e){case"compositionend":return c1(t);case"keypress":return t.which!==32?null:(dg=!0,ug);case"textInput":return e=t.data,e===ug&&dg?null:e;default:return null}}function j3(e,t){if(Ai)return e==="compositionend"||!zp&&l1(e,t)?(e=o1(),oc=Fp=Kr=null,Ai=!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 a1&&t.locale!=="ko"?null:t.data;default:return null}}var N3={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 hg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N3[e.type]:t==="textarea"}function u1(e,t,n,r){Bw(r),t=Ic(t,"onChange"),0<t.length&&(n=new Bp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ia=null,Ea=null;function A3(e){S1(e,0)}function ku(e){var t=Mi(e);if(Iw(t))return e}function P3(e,t){if(e==="change")return t}var d1=!1;if(cr){var xd;if(cr){var Sd="oninput"in document;if(!Sd){var fg=document.createElement("div");fg.setAttribute("oninput","return;"),Sd=typeof fg.oninput=="function"}xd=Sd}else xd=!1;d1=xd&&(!document.documentMode||9<document.documentMode)}function pg(){ia&&(ia.detachEvent("onpropertychange",h1),Ea=ia=null)}function h1(e){if(e.propertyName==="value"&&ku(Ea)){var t=[];u1(t,Ea,e,Op(e)),Hw(A3,t)}}function R3(e,t,n){e==="focusin"?(pg(),ia=t,Ea=n,ia.attachEvent("onpropertychange",h1)):e==="focusout"&&pg()}function M3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ku(Ea)}function I3(e,t){if(e==="click")return ku(t)}function O3(e,t){if(e==="input"||e==="change")return ku(t)}function D3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cn=typeof Object.is=="function"?Object.is:D3;function ka(e,t){if(Cn(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(!Th.call(t,s)||!Cn(e[s],t[s]))return!1}return!0}function mg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gg(e,t){var n=mg(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=mg(n)}}function f1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?f1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function p1(){for(var e=window,t=Tc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tc(e.document)}return t}function Wp(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 L3(e){var t=p1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&f1(n.ownerDocument.documentElement,n)){if(r!==null&&Wp(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=gg(n,i);var o=gg(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 $3=cr&&"documentMode"in document&&11>=document.documentMode,Pi=null,Kh=null,oa=null,Jh=!1;function vg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jh||Pi==null||Pi!==Tc(r)||(r=Pi,"selectionStart"in r&&Wp(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}),oa&&ka(oa,r)||(oa=r,r=Ic(Kh,"onSelect"),0<r.length&&(t=new Bp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pi)))}function Nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ri={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionend:Nl("Transition","TransitionEnd")},bd={},m1={};cr&&(m1=document.createElement("div").style,"AnimationEvent"in window||(delete Ri.animationend.animation,delete Ri.animationiteration.animation,delete Ri.animationstart.animation),"TransitionEvent"in window||delete Ri.transitionend.transition);function Cu(e){if(bd[e])return bd[e];if(!Ri[e])return e;var t=Ri[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in m1)return bd[e]=t[n];return e}var g1=Cu("animationend"),v1=Cu("animationiteration"),y1=Cu("animationstart"),w1=Cu("transitionend"),x1=new Map,yg="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 fs(e,t){x1.set(e,t),ri(t,[e])}for(var _d=0;_d<yg.length;_d++){var Ed=yg[_d],U3=Ed.toLowerCase(),F3=Ed[0].toUpperCase()+Ed.slice(1);fs(U3,"on"+F3)}fs(g1,"onAnimationEnd");fs(v1,"onAnimationIteration");fs(y1,"onAnimationStart");fs("dblclick","onDoubleClick");fs("focusin","onFocus");fs("focusout","onBlur");fs(w1,"onTransitionEnd");uo("onMouseEnter",["mouseout","mouseover"]);uo("onMouseLeave",["mouseout","mouseover"]);uo("onPointerEnter",["pointerout","pointerover"]);uo("onPointerLeave",["pointerout","pointerover"]);ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,277 bytes, line 37
37ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ri("onBeforeInput",["compositionend","keypress","textInput","paste"]);ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xo="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(" "),B3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xo));function wg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,UC(r,t,void 0,e),e.currentTarget=null}function S1(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,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;wg(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;wg(s,a,c),i=l}}}if(Nc)throw e=Vh,Nc=!1,Vh=null,e}function be(e,t){var n=t[Xh];n===void 0&&(n=t[Xh]=new Set);var r=e+"__bubble";n.has(r)||(b1(t,e,2,!1),n.add(r))}function kd(e,t,n){var r=0;t&&(r|=4),b1(n,e,r,t)}var Al="_reactListening"+Math.random().toString(36).slice(2);function Ca(e){if(!e[Al]){e[Al]=!0,Nw.forEach(function(n){n!=="selectionchange"&&(B3.has(n)||kd(n,!1,e),kd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Al]||(t[Al]=!0,kd("selectionchange",!1,t))}}function b1(e,t,n,r){switch(i1(t)){case 1:var s=t3;break;case 4:s=n3;break;default:s=Up}n=s.bind(null,t,n,e),s=void 0,!Bh||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 Cd(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=As(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Hw(function(){var c=i,d=Op(n),h=[];e:{var f=x1.get(e);if(f!==void 0){var p=Bp,g=e;switch(e){case"keypress":if(ac(n)===0)break e;case"keydown":case"keyup":p=v3;break;case"focusin":g="focus",p=wd;break;case"focusout":g="blur",p=wd;break;case"beforeblur":case"afterblur":p=wd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ag;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=i3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=x3;break;case g1:case v1:case y1:p=l3;break;case w1:p=b3;break;case"scroll":p=r3;break;case"wheel":p=E3;break;case"copy":case"cut":case"paste":p=u3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cg}var m=(t&4)!==0,x=!m&&e==="scroll",w=m?f!==null?f+"Capture":null:f;m=[];for(var v=c,S;v!==null;){S=v;var b=S.stateNode;if(S.tag===5&&b!==null&&(S=b,w!==null&&(b=xa(v,w),b!=null&&m.push(Ta(v,b,S)))),x)break;v=v.return}0<m.length&&(f=new p(f,g,null,n,d),h.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Uh&&(g=n.relatedTarget||n.fromElement)&&(As(g)||g[ur]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=c,g=g?As(g):null,g!==null&&(x=si(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=c),p!==g)){if(m=ag,b="onMouseLeave",w="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=cg,b
vendor: 6,298 bytes, lines 37-38
37="onPointerLeave",w="onPointerEnter",v="pointer"),x=p==null?f:Mi(p),S=g==null?f:Mi(g),f=new m(b,v+"leave",p,n,d),f.target=x,f.relatedTarget=S,b=null,As(d)===c&&(m=new m(w,v+"enter",g,n,d),m.target=S,m.relatedTarget=x,b=m),x=b,p&&g)t:{for(m=p,w=g,v=0,S=m;S;S=hi(S))v++;for(S=0,b=w;b;b=hi(b))S++;for(;0<v-S;)m=hi(m),v--;for(;0<S-v;)w=hi(w),S--;for(;v--;){if(m===w||w!==null&&m===w.alternate)break t;m=hi(m),w=hi(w)}m=null}else m=null;p!==null&&xg(h,f,p,m,!1),g!==null&&x!==null&&xg(h,x,g,m,!0)}}e:{if(f=c?Mi(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var k=P3;else if(hg(f))if(d1)k=O3;else{k=M3;var E=R3}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=I3);if(k&&(k=k(e,c))){u1(h,k,n,d);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Ih(f,"number",f.value)}switch(E=c?Mi(c):window,e){case"focusin":(hg(E)||E.contentEditable==="true")&&(Pi=E,Kh=c,oa=null);break;case"focusout":oa=Kh=Pi=null;break;case"mousedown":Jh=!0;break;case"contextmenu":case"mouseup":case"dragend":Jh=!1,vg(h,n,d);break;case"selectionchange":if($3)break;case"keydown":case"keyup":vg(h,n,d)}var _;if(zp)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Ai?l1(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(a1&&n.locale!=="ko"&&(Ai||C!=="onCompositionStart"?C==="onCompositionEnd"&&Ai&&(_=o1()):(Kr=d,Fp="value"in Kr?Kr.value:Kr.textContent,Ai=!0)),E=Ic(c,C),0<E.length&&(C=new lg(C,e,null,n,d),h.push({event:C,listeners:E}),_?C.data=_:(_=c1(n),_!==null&&(C.data=_)))),(_=C3?T3(e,n):j3(e,n))&&(c=Ic(c,"onBeforeInput"),0<c.length&&(d=new lg("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=_))}S1(h,t)})}function Ta(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ic(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=xa(e,n),i!=null&&r.unshift(Ta(e,i,s)),i=xa(e,t),i!=null&&r.push(Ta(e,i,s))),e=e.return}return r}function hi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xg(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=xa(n,i),l!=null&&o.unshift(Ta(n,l,a))):s||(l=xa(n,i),l!=null&&o.push(Ta(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var V3=/\r\n?/g,z3=/\u0000|\uFFFD/g;function Sg(e){return(typeof e=="string"?e:""+e).replace(V3,` 38`).replace(z3,"")}function Pl(e,t,n){if(t=Sg(t),Sg(e)!==t&&n)throw Error(D(425))}function Oc(){}var Gh=null,Yh=null;function qh(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 Qh=typeof setTimeout=="function"?setTimeout:void 0,W3=typeof clearTimeout=="function"?clearTimeout:void 0,bg=typeof Promise=="function"?Promise:void 0,H3=typeof queueMicrotask=="function"?queueMicrotask:typeof bg<"u"?function(e){return bg.resolve(null).then(e).catch(K3)}:Qh;function K3(e){setTimeout(function(){throw e})}function Td(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),_a(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);_a(t)}function Zr(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 _g(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 Eo=Math.random().toString(36).slice(2),Fn="__reactFiber$"+Eo,ja="__reactProps$"+Eo,ur="__reactContainer$"+Eo,Xh="__reactEvents$"+Eo,J3="__reactListeners$"+Eo,G3="__reactHandles$"+Eo;function As(e){var t=e[Fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ur]||n[Fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_g(e);e!==null;){if(n=e[Fn])return n;e=_g(e)}return t}e=n,n=e.parentNode}return null}function rl(e){return e=e[Fn]||e[ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Tu(e){return e[ja]||null}var Zh=[],Ii=-1;function ps(e){return{current:e}}function _e(e){0>Ii||(e.current=Zh[Ii],Zh[Ii]=null,Ii--)}function we(e,t){Ii++,Zh[Ii]=e.current,e.current=t}var os={},ht=ps(os),kt=ps(!1),Js=os;function ho(e,t){var n=e.type.contextTypes;if(!n)return os;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 Ct(e){return e=e.childContextTypes,e!=null}function Dc(){_e(kt),_e(ht)}function Eg(e,t,n){if(ht.current!==os)throw Error(D(168));we(ht,t),we(kt,n)}function _1(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(D(108,RC(e)||"Unknown",s));return Re({},n,r)}function Lc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||os,Js=ht.current,we(ht,e),we(kt,kt.current),!0}function kg(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=_1(e,t,Js),r.__reactInternalMemoizedMergedChildContext=e,_e(kt),_e(ht),we(ht,e)):_e(kt),we(kt,n)}var sr=null,ju=!1,jd=!1;function E1(e){sr===null?sr=[e]:sr.push(e)}function Y3(e){ju=!0,E1(e)}function ms(){if(!jd&&sr!==null){jd=!0;var e=0,t=ge;try{var n=sr;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sr=null,ju=!1}catch(s){throw sr!==null&&(sr=sr.slice(e+1)),Yw(Dp,ms),s}finally{ge=t,jd=!1}}return null}var Oi=[],Di=0,$c=null,Uc=0,Jt=[],Gt=0,Gs=null,or=1,ar="";function Es(e,t){Oi[Di++]=Uc,Oi[Di++]=$c,$c=e,Uc=t}function k1(e,t,n){Jt[Gt++]=or,Jt[Gt++]=ar,Jt[Gt++]=Gs,Gs=e;var r=or;e=ar;var s=32-_n(r)-1;r&=~(1<<s),n+=1;var i=32-_n(t)+s;
vendor: 15,769 bytes, line 38
38if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,or=1<<32-_n(t)+s|n<<s|r,ar=i+e}else or=1<<i|n<<s|r,ar=e}function Hp(e){e.return!==null&&(Es(e,1),k1(e,1,0))}function Kp(e){for(;e===$c;)$c=Oi[--Di],Oi[Di]=null,Uc=Oi[--Di],Oi[Di]=null;for(;e===Gs;)Gs=Jt[--Gt],Jt[Gt]=null,ar=Jt[--Gt],Jt[Gt]=null,or=Jt[--Gt],Jt[Gt]=null}var $t=null,Dt=null,Te=!1,bn=null;function C1(e,t){var n=Yt(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 Cg(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,$t=e,Dt=Zr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$t=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gs!==null?{id:or,overflow:ar}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$t=e,Dt=null,!0):!1;default:return!1}}function ef(e){return(e.mode&1)!==0&&(e.flags&128)===0}function tf(e){if(Te){var t=Dt;if(t){var n=t;if(!Cg(e,t)){if(ef(e))throw Error(D(418));t=Zr(n.nextSibling);var r=$t;t&&Cg(e,t)?C1(r,n):(e.flags=e.flags&-4097|2,Te=!1,$t=e)}}else{if(ef(e))throw Error(D(418));e.flags=e.flags&-4097|2,Te=!1,$t=e}}}function Tg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$t=e}function Rl(e){if(e!==$t)return!1;if(!Te)return Tg(e),Te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qh(e.type,e.memoizedProps)),t&&(t=Dt)){if(ef(e))throw T1(),Error(D(418));for(;t;)C1(e,t),t=Zr(t.nextSibling)}if(Tg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Dt=Zr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=$t?Zr(e.stateNode.nextSibling):null;return!0}function T1(){for(var e=Dt;e;)e=Zr(e.nextSibling)}function fo(){Dt=$t=null,Te=!1}function Jp(e){bn===null?bn=[e]:bn.push(e)}var q3=wr.ReactCurrentBatchConfig;function Vo(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(D(309));var r=n.stateNode}if(!r)throw Error(D(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(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Ml(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jg(e){var t=e._init;return t(e._payload)}function j1(e){function t(w,v){if(e){var S=w.deletions;S===null?(w.deletions=[v],w.flags|=16):S.push(v)}}function n(w,v){if(!e)return null;for(;v!==null;)t(w,v),v=v.sibling;return null}function r(w,v){for(w=new Map;v!==null;)v.key!==null?w.set(v.key,v):w.set(v.index,v),v=v.sibling;return w}function s(w,v){return w=rs(w,v),w.index=0,w.sibling=null,w}function i(w,v,S){return w.index=S,e?(S=w.alternate,S!==null?(S=S.index,S<v?(w.flags|=2,v):S):(w.flags|=2,v)):(w.flags|=1048576,v)}function o(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,v,S,b){return v===null||v.tag!==6?(v=Od(S,w.mode,b),v.return=w,v):(v=s(v,S),v.return=w,v)}function l(w,v,S,b){var k=S.type;return k===Ni?d(w,v,S.props.children,b,S.key):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ir&&jg(k)===v.type)?(b=s(v,S.props),b.ref=Vo(w,v,S),b.return=w,b):(b=pc(S.type,S.key,S.props,null,w.mode,b),b.ref=Vo(w,v,S),b.return=w,b)}function c(w,v,S,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Dd(S,w.mode,b),v.return=w,v):(v=s(v,S.children||[]),v.return=w,v)}function d(w,v,S,b,k){return v===null||v.tag!==7?(v=zs(S,w.mode,b,k),v.return=w,v):(v=s(v,S),v.return=w,v)}function h(w,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Od(""+v,w.mode,S),v.return=w,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case bl:return S=pc(v.type,v.key,v.props,null,w.mode,S),S.ref=Vo(w,null,v),S.return=w,S;case ji:return v=Dd(v,w.mode,S),v.return=w,v;case Ir:var b=v._init;return h(w,b(v._payload),S)}if(qo(v)||Lo(v))return v=zs(v,w.mode,S,null),v.return=w,v;Ml(w,v)}return null}function f(w,v,S,b){var k=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return k!==null?null:a(w,v,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case bl:return S.key===k?l(w,v,S,b):null;case ji:return S.key===k?c(w,v,S,b):null;case Ir:return k=S._init,f(w,v,k(S._payload),b)}if(qo(S)||Lo(S))return k!==null?null:d(w,v,S,b,null);Ml(w,S)}return null}function p(w,v,S,b,k){if(typeof b=="string"&&b!==""||typeof b=="number")return w=w.get(S)||null,a(v,w,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case bl:return w=w.get(b.key===null?S:b.key)||null,l(v,w,b,k);case ji:return w=w.get(b.key===null?S:b.key)||null,c(v,w,b,k);case Ir:var E=b._init;return p(w,v,S,E(b._payload),k)}if(qo(b)||Lo(b))return w=w.get(S)||null,d(v,w,b,k,null);Ml(v,b)}return null}function g(w,v,S,b){for(var k=null,E=null,_=v,C=v=0,j=null;_!==null&&C<S.length;C++){_.index>C?(j=_,_=null):j=_.sibling;var T=f(w,_,S[C],b);if(T===null){_===null&&(_=j);break}e&&_&&T.alternate===null&&t(w,_),v=i(T,v,C),E===null?k=T:E.sibling=T,E=T,_=j}if(C===S.length)return n(w,_),Te&&Es(w,C),k;if(_===null){for(;C<S.length;C++)_=h(w,S[C],b),_!==null&&(v=i(_,v,C),E===null?k=_:E.sibling=_,E=_);return Te&&Es(w,C),k}for(_=r(w,_);C<S.length;C++)j=p(_,w,C,S[C],b),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?C:j.key),v=i(j,v,C),E===null?k=j:E.sibling=j,E=j);return e&&_.forEach(function(A){return t(w,A)}),Te&&Es(w,C),k}function m(w,v,S,b){var k=Lo(S);if(typeof k!="function")throw Error(D(150));if(S=k.call(S),S==null)throw Error(D(151));for(var E=k=null,_=v,C=v=0,j=null,T=S.next();_!==null&&!T.done;C++,T=S.next()){_.index>C?(j=_,_=null):j=_.sibling;var A=f(w,_,T.value,b);if(A===null){_===null&&(_=j);break}e&&_&&A.alternate===null&&t(w,_),v=i(A,v,C),E===null?k=A:E.sibling=A,E=A,_=j}if(T.done)return n(w,_),Te&&Es(w,C),k;if(_===null){for(;!T.done;C++,T=S.next())T=h(w,T.value,b),T!==null&&(v=i(T,v,C),E===null?k=T:E.sibling=T,E=T);return Te&&Es(w,C),k}for(_=r(w,_);!T.done;C++,T=S.next())T=p(_,w,C,T.value,b),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?C:T.key),v=i(T,v,C),E===null?k=T:E.sibling=T,E=T);return e&&_.forEach(function(R){return t(w,R)}),Te&&Es(w,C),k}function x(w,v,S,b){if(typeof S=="object"&&S!==null&&S.type===Ni&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case bl:e:{for(var k=S.key,E=v;E!==null;){if(E.key===k){if(k=S.type,k===Ni){if(E.tag===7){n(w,E.sibling),v=s(E,S.props.children),v.return=w,w=v;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ir&&jg(k)===E.type){n(w,E.sibling),v=s(E,S.props),v.ref=Vo(w,E,S),v.return=w,w=v;break e}n(w,E);break}else t(w,E);E=E.sibling}S.type===Ni?(v=zs(S.props.children,w.mode,b,S.key),v.return=w,w=v):(b=pc(S.type,S.key,S.props,null,w.mode,b),b.ref=Vo(w,v,S),b.return=w,w=b)}return o(w);case ji:e:{for(E=S.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(w,v.sibling),v=s(v,S.children||[]),v.return=w,w=v;break e}else{n(w,v);break}else t(w,v);v=v.sibling}v=Dd(S,w.mode,b),v.return=w,w=v}return o(w);case Ir:return E=S._init,x(w,v,E(S._payload),b)}if(qo(S))return g(w,v,S,b);if(Lo(S))return m(w,v,S,b);Ml(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(w,v.sibling),v=s(v,S),v.return=w,w=v):(n(w,v),v=Od(S,w.mode,b),v.return=w,w=v),o(w)):n(w,v)}return x}var po=j1(!0),N1=j1(!1),Fc=ps(null),Bc=null,Li=null,Gp=null;function Yp(){Gp=Li=Bc=null}function qp(e){var t=Fc.current;_e(Fc),e._currentValue=t}function nf(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 Gi(e,t){Bc=e,Gp=Li=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Et=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(Gp!==e)if(e={context:e,memoizedValue:t,next:null},Li===null){if(Bc===null)throw Error(D(308));Li=e,Bc.dependencies={lanes:0,firstContext:e}}else Li=Li.next=e;return t}var Ps=null;function Qp(e){Ps===null?Ps=[e]:Ps.push(e)}function A1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Qp(t)):(n.next=s.next,s.next=n),t.interleaved=n,dr(e,r)}function dr(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 Or=!1;function Xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function P1(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 lr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function es(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,dr(e,n)}return s=r.interleaved,s===null?(t.next=t,Qp(r)):(t.next=s.next,s.next=t),r.interleaved=t,dr(e,n)}function lc(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,Lp(e,n)}}function Ng(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 Vc(e,t,n,r){var s=e.updateQueue;Or=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var h=s.baseState;o=0,d=c=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,m=a;switch(f=t,p=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){h=g.call(p,h,f);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(p,h,f):g,f==null)break e;h=Re({},h,f);break e;case 2:Or=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,l=h):d=d.next=p,o|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);qs|=o,e.lanes=o,e.memoizedState=h}}function Ag(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(D(191,s));s.call(r)}}}var sl={},Wn=ps(sl),Na=ps(sl),Aa=ps(sl);function Rs(e){if(e===sl)throw Error(D(174));return e}function Zp(e,t){switch(we(Aa,t),we(Na,e),we(Wn,sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dh(t,e)}_e(Wn),we(Wn,t)}function mo(){_e(Wn),_e(Na),_e(Aa)}function R1(e){Rs(Aa.current);var t=Rs(Wn.current),n=Dh(t,e.type);t!==n&&(we(Na,e),we(Wn,n))}function em(e){Na.current===e&&(_e(Wn),_e(Na))}var Ae=ps(0);function zc(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 Nd=[];function tm(){for(var e=0;e<Nd.length;e++)Nd[e]._workInProgressVersionPrimary=null;Nd.length=0}var cc=wr.ReactCurrentDispatcher,Ad=wr.ReactCurrentBatchConfig,Ys=0,Pe=null,Je=null,Qe=null,Wc=!1,aa=!1,Pa=0,Q3=0;function at(){throw Error(D(321))}function nm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cn(e[n],t[n]))return!1;return!0}function rm(e,t,n,r,s,i){if(Ys=i,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cc.current=e===null||e.memoizedState===null?tT:nT,e=n(r,s),aa){i=0;do{if(aa=!1,Pa=0,25<=i)throw Error(D(301));i+=1,Qe=Je=null,t.updateQueue=null,cc.current=rT,e=n(r,s)}while(aa)}if(cc.current=Hc,t=Je!==null&&Je.next!==null,Ys=0,Qe=Je=Pe=null,Wc=!1,t)throw Error(D(300));return e}function sm(){var e=Pa!==0;return Pa=0,e}function Mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Pe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Xt(){if(Je===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=Qe===null?Pe.memoizedState:Qe.next;if(t!==null)Qe=t,Je=e;else{if(e===null)throw Error(D(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Qe===null?Pe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Ra(e,t){return typeof t=="function"?t(e):t}function Pd(e){var t=Xt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Je,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,c=i;do{var d=c.lane;if((Ys&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,o=r):l=l.next=h,Pe.lanes|=d,qs|=d}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,Cn(r,t.memoizedState)||(Et=!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,Pe.lanes|=i,qs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Rd(e){var t=Xt(),n=t.queue;if(n===null)throw Error(D(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);Cn(i,t.memoizedState)||(Et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function M1(){}function I1(e,t){var n=Pe,r=Xt(),s=t(),i=!Cn(r.memoizedState,s);if(i&&(r.memoizedState=s,Et=!0),r=r.queue,im(L1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,Ma(9,D1.bind(null,n,r,s,t),void 0,null),Ze===null)throw Error(D(349));Ys&30||O1(n,t,s)}return s}
vendor: 4,204 bytes, line 38
38function O1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function D1(e,t,n,r){t.value=n,t.getSnapshot=r,$1(t)&&U1(e)}function L1(e,t,n){return n(function(){$1(t)&&U1(e)})}function $1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cn(e,n)}catch{return!0}}function U1(e){var t=dr(e,1);t!==null&&En(t,e,1,-1)}function Pg(e){var t=Mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:e},t.queue=e,e=e.dispatch=eT.bind(null,Pe,e),[t.memoizedState,e]}function Ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.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 F1(){return Xt().memoizedState}function uc(e,t,n,r){var s=Mn();Pe.flags|=e,s.memoizedState=Ma(1|t,n,void 0,r===void 0?null:r)}function Nu(e,t,n,r){var s=Xt();r=r===void 0?null:r;var i=void 0;if(Je!==null){var o=Je.memoizedState;if(i=o.destroy,r!==null&&nm(r,o.deps)){s.memoizedState=Ma(t,n,i,r);return}}Pe.flags|=e,s.memoizedState=Ma(1|t,n,i,r)}function Rg(e,t){return uc(8390656,8,e,t)}function im(e,t){return Nu(2048,8,e,t)}function B1(e,t){return Nu(4,2,e,t)}function V1(e,t){return Nu(4,4,e,t)}function z1(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 W1(e,t,n){return n=n!=null?n.concat([e]):null,Nu(4,4,z1.bind(null,t,e),n)}function om(){}function H1(e,t){var n=Xt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function K1(e,t){var n=Xt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function J1(e,t,n){return Ys&21?(Cn(n,t)||(n=Xw(),Pe.lanes|=n,qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n)}function X3(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=Ad.transition;Ad.transition={};try{e(!1),t()}finally{ge=n,Ad.transition=r}}function G1(){return Xt().memoizedState}function Z3(e,t,n){var r=ns(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Y1(e))q1(t,n);else if(n=A1(e,t,n,r),n!==null){var s=yt();En(n,e,r,s),Q1(n,t,r)}}function eT(e,t,n){var r=ns(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Y1(e))q1(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,Cn(a,o)){var l=t.interleaved;l===null?(s.next=s,Qp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=A1(e,t,s,r),n!==null&&(s=yt(),En(n,e,r,s),Q1(n,t,r))}}function Y1(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function q1(e,t){aa=Wc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Q1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Lp(e,n)}}var Hc={readContext:Qt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},tT={readContext:Qt,useCallback:function(e,t){return Mn().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:Rg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uc(4194308,4,z1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uc(4194308,4,e,t)},useInsertionEffect:function(e,t){return uc(4,2,e,t)},useMemo:function(e,t){var n=Mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mn();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=Z3.bind(null,Pe,e),[r.memoizedState,e]}
vendor: 4,424 bytes, lines 38-40
38,useRef:function(e){var t=Mn();return e={current:e},t.memoizedState=e},useState:Pg,useDebugValue:om,useDeferredValue:function(e){return Mn().memoizedState=e},useTransition:function(){var e=Pg(!1),t=e[0];return e=X3.bind(null,e[1]),Mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,s=Mn();if(Te){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Ze===null)throw Error(D(349));Ys&30||O1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Rg(L1.bind(null,r,i,e),[e]),r.flags|=2048,Ma(9,D1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mn(),t=Ze.identifierPrefix;if(Te){var n=ar,r=or;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Q3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nT={readContext:Qt,useCallback:H1,useContext:Qt,useEffect:im,useImperativeHandle:W1,useInsertionEffect:B1,useLayoutEffect:V1,useMemo:K1,useReducer:Pd,useRef:F1,useState:function(){return Pd(Ra)},useDebugValue:om,useDeferredValue:function(e){var t=Xt();return J1(t,Je.memoizedState,e)},useTransition:function(){var e=Pd(Ra)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:M1,useSyncExternalStore:I1,useId:G1,unstable_isNewReconciler:!1},rT={readContext:Qt,useCallback:H1,useContext:Qt,useEffect:im,useImperativeHandle:W1,useInsertionEffect:B1,useLayoutEffect:V1,useMemo:K1,useReducer:Rd,useRef:F1,useState:function(){return Rd(Ra)},useDebugValue:om,useDeferredValue:function(e){var t=Xt();return Je===null?t.memoizedState=e:J1(t,Je.memoizedState,e)},useTransition:function(){var e=Rd(Ra)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:M1,useSyncExternalStore:I1,useId:G1,unstable_isNewReconciler:!1};function mn(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function rf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Au={isMounted:function(e){return(e=e._reactInternals)?si(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yt(),s=ns(e),i=lr(r,s);i.payload=t,n!=null&&(i.callback=n),t=es(e,i,s),t!==null&&(En(t,e,s,r),lc(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yt(),s=ns(e),i=lr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=es(e,i,s),t!==null&&(En(t,e,s,r),lc(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),r=ns(e),s=lr(n,r);s.tag=2,t!=null&&(s.callback=t),t=es(e,s,r),t!==null&&(En(t,e,r,n),lc(t,e,r))}};function Mg(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?!ka(n,r)||!ka(s,i):!0}function X1(e,t,n){var r=!1,s=os,i=t.contextType;return typeof i=="object"&&i!==null?i=Qt(i):(s=Ct(t)?Js:ht.current,r=t.contextTypes,i=(r=r!=null)?ho(e,s):os),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Au,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ig(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&&Au.enqueueReplaceState(t,t.state,null)}function sf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Xp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Qt(i):(i=Ct(t)?Js:ht.current,s.context=ho(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(rf(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&&Au.enqueueReplaceState(s,s.state,null),Vc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function go(e,t){try{var n="",r=t;do n+=PC(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}}
vendor: 11,813 bytes, line 40
40function Md(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function of(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sT=typeof WeakMap=="function"?WeakMap:Map;function Z1(e,t,n){n=lr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jc||(Jc=!0,gf=r),of(e,t)},n}function ex(e,t,n){n=lr(-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(){of(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){of(e,t),typeof r!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Og(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sT;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=yT.bind(null,e,t,n),t.then(e,e))}function Dg(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 Lg(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=lr(-1,1),t.tag=2,es(n,t,1))),n.lanes|=1),e)}var iT=wr.ReactCurrentOwner,Et=!1;function mt(e,t,n,r){t.child=e===null?N1(t,null,n,r):po(t,e.child,n,r)}function $g(e,t,n,r,s){n=n.render;var i=t.ref;return Gi(t,s),r=rm(e,t,n,r,i,s),n=sm(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,hr(e,t,s)):(Te&&n&&Hp(t),t.flags|=1,mt(e,t,r,s),t.child)}function Ug(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!pm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,tx(e,t,i,r,s)):(e=pc(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:ka,n(o,r)&&e.ref===t.ref)return hr(e,t,s)}return t.flags|=1,e=rs(i,r),e.ref=t.ref,e.return=t,t.child=e}function tx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ka(i,r)&&e.ref===t.ref)if(Et=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Et=!0);else return t.lanes=e.lanes,hr(e,t,s)}return af(e,t,n,r,s)}function nx(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(Ui,Rt),Rt|=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(Ui,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(Ui,Rt),Rt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(Ui,Rt),Rt|=r;return mt(e,t,s,n),t.child}function rx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function af(e,t,n,r,s){var i=Ct(n)?Js:ht.current;return i=ho(t,i),Gi(t,s),n=rm(e,t,n,r,i,s),r=sm(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,hr(e,t,s)):(Te&&r&&Hp(t),t.flags|=1,mt(e,t,n,s),t.child)}function Fg(e,t,n,r,s){if(Ct(n)){var i=!0;Lc(t)}else i=!1;if(Gi(t,s),t.stateNode===null)dc(e,t),X1(t,n,r),sf(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Qt(c):(c=Ct(n)?Js:ht.current,c=ho(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Ig(t,o,r,c),Or=!1;var f=t.memoizedState;o.state=f,Vc(t,r,o,s),l=t.memoizedState,a!==r||f!==l||kt.current||Or?(typeof d=="function"&&(rf(t,n,d,r),l=t.memoizedState),(a=Or||Mg(t,n,a,r,f,l,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,P1(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:mn(t.type,a),o.props=c,h=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=Ct(n)?Js:ht.current,l=ho(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||f!==l)&&Ig(t,o,r,l),Or=!1,f=t.memoizedState,o.state=f,Vc(t,r,o,s);var g=t.memoizedState;a!==h||f!==g||kt.current||Or?(typeof p=="function"&&(rf(t,n,p,r),g=t.memoizedState),(c=Or||Mg(t,n,c,r,f,g,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return lf(e,t,n,r,i,s)}function lf(e,t,n,r,s,i){rx(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&kg(t,n,!1),hr(e,t,i);r=t.stateNode,iT.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=po(t,e.child,null,i),t.child=po(t,null,a,i)):mt(e,t,a,i),t.memoizedState=r.state,s&&kg(t,n,!0),t.child}function sx(e){var t=e.stateNode;t.pendingContext?Eg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Eg(e,t.context,!1),Zp(e,t.containerInfo)}function Bg(e,t,n,r,s){return fo(),Jp(s),t.flags|=256,mt(e,t,n,r),t.child}var cf={dehydrated:null,treeContext:null,retryLane:0};function uf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ix(e,t,n){var r=t.pendingProps,s=Ae.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(Ae,s&1),e===null)return tf(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=Mu(o,r,0,null),e=zs(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=uf(n),t.memoizedState=cf,e):am(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return oT(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=rs(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=rs(a,i):(i=zs(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?uf(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=cf,r}return i=e.child,e=i.sibling,r=rs(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 am(e,t){return t=Mu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Il(e,t,n,r){return r!==null&&Jp(r),po(t,e.child,null,n),e=am(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oT(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Md(Error(D(422))),Il(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Mu({mode:"visible",children:r.children},s,0,null),i=zs(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&po(t,e.child,null,o),t.child.memoizedState=uf(o),t.memoizedState=cf,i);if(!(t.mode&1))return Il(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(D(419)),r=Md(i,r,void 0),Il(e,t,o,r)}if(a=(o&e.childLanes)!==0,Et||a){if(r=Ze,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,dr(e,s),En(r,e,s,-1))}return fm(),r=Md(Error(D(421))),Il(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=wT.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Dt=Zr(s.nextSibling),$t=t,Te=!0,bn=null,e!==null&&(Jt[Gt++]=or,Jt[Gt++]=ar,Jt[Gt++]=Gs,or=e.id,ar=e.overflow,Gs=t),t=am(t,r.children),t.flags|=4096,t)}function Vg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),nf(e.return,t,n)}function Id(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 ox(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(mt(e,t,r.children,n),r=Ae.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&&Vg(e,n,t);else if(e.tag===19)Vg(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(Ae,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&&zc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Id(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&&zc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Id(t,!0,n,null,i);break;case"together":Id(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=rs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function aT(e,t,n){switch(t.tag){case 3:sx(t),fo();break;case 5:R1(t);break;case 1:Ct(t.type)&&Lc(t);break;case 4:Zp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;we(Fc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?ix(e,t,n):(we(Ae,Ae.current&1),e=hr(e,t,n),e!==null?e.sibling:null);
vendor: 4,118 bytes, line 40
40we(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ox(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),we(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,nx(e,t,n)}return hr(e,t,n)}var ax,df,lx,cx;ax=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}};df=function(){};lx=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Rs(Wn.current);var i=null;switch(n){case"input":s=Rh(e,s),r=Rh(e,r),i=[];break;case"select":s=Re({},s,{value:void 0}),r=Re({},r,{value:void 0}),i=[];break;case"textarea":s=Oh(e,s),r=Oh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oc)}Lh(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ya.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ya.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&be("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};cx=function(e,t,n,r){n!==r&&(t.flags|=4)};function zo(e,t){if(!Te)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 lt(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 lT(e,t,n){var r=t.pendingProps;switch(Kp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return Ct(t.type)&&Dc(),lt(t),null;case 3:return r=t.stateNode,mo(),_e(kt),_e(ht),tm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bn!==null&&(wf(bn),bn=null))),df(e,t),lt(t),null;case 5:em(t);var s=Rs(Aa.current);if(n=t.type,e!==null&&t.stateNode!=null)lx(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return lt(t),null}if(e=Rs(Wn.current),Rl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Fn]=t,r[ja]=i,e=(t.mode&1)!==0,n){case"dialog":be("cancel",r),be("close",r);break;case"iframe":case"object":case"embed":be("load",r);break;case"video":case"audio":for(s=0;s<Xo.length;s++)be(Xo[s],r);break;case"source":be("error",r);break;case"img":case"image":case"link":be("error",r),be("load",r);break;case"details":be("toggle",r);break;case"input":Q0(r,i),be("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},be("invalid",r);break;case"textarea":Z0(r,i),be("invalid",r)}Lh(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 28,896 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Pl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Pl(r.textContent,a,e),s=["children",""+a]):ya.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&be("scroll",r)}switch(n){case"input":_l(r),X0(r,i,!0);break;case"textarea":_l(r),eg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Oc)}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=Lw(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[Fn]=t,e[ja]=r,ax(e,t,!1,!1),t.stateNode=e;e:{switch(o=$h(n,r),n){case"dialog":be("cancel",e),be("close",e),s=r;break;case"iframe":case"object":case"embed":be("load",e),s=r;break;case"video":case"audio":for(s=0;s<Xo.length;s++)be(Xo[s],e);s=r;break;case"source":be("error",e),s=r;break;case"img":case"image":case"link":be("error",e),be("load",e),s=r;break;case"details":be("toggle",e),s=r;break;case"input":Q0(e,r),s=Rh(e,r),be("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Re({},r,{value:void 0}),be("invalid",e);break;case"textarea":Z0(e,r),s=Oh(e,r),be("invalid",e);break;default:s=r}Lh(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Fw(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&$w(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&wa(e,l):typeof l=="number"&&wa(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ya.hasOwnProperty(i)?l!=null&&i==="onScroll"&&be("scroll",e):l!=null&&Pp(e,i,l,o))}switch(n){case"input":_l(e),X0(e,r,!1);break;case"textarea":_l(e),eg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+is(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Wi(e,!!r.multiple,i,!1):r.defaultValue!=null&&Wi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Oc)}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 lt(t),null;case 6:if(e&&t.stateNode!=null)cx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Rs(Aa.current),Rs(Wn.current),Rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Fn]=t,(i=r.nodeValue!==n)&&(e=$t,e!==null))switch(e.tag){case 3:Pl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Fn]=t,t.stateNode=r}return lt(t),null;case 13:if(_e(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Te&&Dt!==null&&t.mode&1&&!(t.flags&128))T1(),fo(),t.flags|=98560,i=!1;else if(i=Rl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[Fn]=t}else fo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lt(t),i=!1}else bn!==null&&(wf(bn),bn=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||Ae.current&1?Ge===0&&(Ge=3):fm())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return mo(),df(e,t),e===null&&Ca(t.stateNode.containerInfo),lt(t),null;case 10:return qp(t.type._context),lt(t),null;case 17:return Ct(t.type)&&Dc(),lt(t),null;case 19:if(_e(Ae),i=t.memoizedState,i===null)return lt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)zo(i,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zc(e),o!==null){for(t.flags|=128,zo(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(Ae,Ae.current&1|2),t.child}e=e.sibling}i.tail!==null&&$e()>vo&&(t.flags|=128,r=!0,zo(i,!1),t.lanes=4194304)}else{if(!r)if(e=zc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Te)return lt(t),null}else 2*$e()-i.renderingStartTime>vo&&n!==1073741824&&(t.flags|=128,r=!0,zo(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=$e(),t.sibling=null,n=Ae.current,we(Ae,r?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return hm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rt&1073741824&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function cT(e,t){switch(Kp(t),t.tag){case 1:return Ct(t.type)&&Dc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),_e(kt),_e(ht),tm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return em(t),null;case 13:if(_e(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Ae),null;case 4:return mo(),null;case 10:return qp(t.type._context),null;case 22:case 23:return hm(),null;case 24:return null;default:return null}}var Ol=!1,ut=!1,uT=typeof WeakSet=="function"?WeakSet:Set,B=null;function $i(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function hf(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var zg=!1;function dT(e,t){if(Gh=Rc,e=p1(),Wp(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,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||s!==0&&h.nodeType!==3||(a=o+s),h!==i||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===s&&(a=o),f===i&&++d===r&&(l=o),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yh={focusedElem:e,selectionRange:n},Rc=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,x=g.memoizedState,w=t.stateNode,v=w.getSnapshotBeforeUpdate(t.elementType===t.type?m:mn(t.type,m),x);w.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(b){Oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return g=zg,zg=!1,g}function la(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&&hf(t,n,i)}s=s.next}while(s!==r)}}function Pu(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 ff(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 ux(e){var t=e.alternate;t!==null&&(e.alternate=null,ux(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fn],delete t[ja],delete t[Xh],delete t[J3],delete t[G3])),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 dx(e){return e.tag===5||e.tag===3||e.tag===4}function Wg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dx(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 pf(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=Oc));else if(r!==4&&(e=e.child,e!==null))for(pf(e,t,n),e=e.sibling;e!==null;)pf(e,t,n),e=e.sibling}function mf(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(mf(e,t,n),e=e.sibling;e!==null;)mf(e,t,n),e=e.sibling}var nt=null,xn=!1;function Cr(e,t,n){for(n=n.child;n!==null;)hx(e,t,n),n=n.sibling}function hx(e,t,n){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(_u,n)}catch{}switch(n.tag){case 5:ut||$i(n,t);case 6:var r=nt,s=xn;nt=null,Cr(e,t,n),nt=r,xn=s,nt!==null&&(xn?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(xn?(e=nt,n=n.stateNode,e.nodeType===8?Td(e.parentNode,n):e.nodeType===1&&Td(e,n),_a(e)):Td(nt,n.stateNode));break;case 4:r=nt,s=xn,nt=n.stateNode.containerInfo,xn=!0,Cr(e,t,n),nt=r,xn=s;break;case 0:case 11:case 14:case 15:if(!ut&&(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)&&hf(n,t,o),s=s.next}while(s!==r)}Cr(e,t,n);break;case 1:if(!ut&&($i(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Oe(n,t,a)}Cr(e,t,n);break;case 21:Cr(e,t,n);break;case 22:n.mode&1?(ut=(r=ut)||n.memoizedState!==null,Cr(e,t,n),ut=r):Cr(e,t,n);break;default:Cr(e,t,n)}}function Hg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uT),t.forEach(function(r){var s=xT.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ln(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:nt=a.stateNode,xn=!1;break e;case 3:nt=a.stateNode.containerInfo,xn=!0;break e;case 4:nt=a.stateNode.containerInfo,xn=!0;break e}a=a.return}if(nt===null)throw Error(D(160));hx(i,o,s),nt=null,xn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Oe(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fx(t,e),t=t.sibling}function fx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ln(t,e),Rn(e),r&4){try{la(3,e,e.return),Pu(3,e)}catch(m){Oe(e,e.return,m)}try{la(5,e,e.return)}catch(m){Oe(e,e.return,m)}}break;case 1:ln(t,e),Rn(e),r&512&&n!==null&&$i(n,n.return);break;case 5:if(ln(t,e),Rn(e),r&512&&n!==null&&$i(n,n.return),e.flags&32){var s=e.stateNode;try{wa(s,"")}catch(m){Oe(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&&Ow(s,i),$h(a,o);var c=$h(a,i);for(o=0;o<l.length;o+=2){var d=l[o],h=l[o+1];d==="style"?Fw(s,h):d==="dangerouslySetInnerHTML"?$w(s,h):d==="children"?wa(s,h):Pp(s,d,h,c)}switch(a){case"input":Mh(s,i);break;case"textarea":Dw(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Wi(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Wi(s,!!i.multiple,i.defaultValue,!0):Wi(s,!!i.multiple,i.multiple?[]:"",!1))}s[ja]=i}catch(m){Oe(e,e.return,m)}}break;case 6:if(ln(t,e),Rn(e),r&4){if(e.stateNode===null)throw Error(D(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){Oe(e,e.return,m)}}break;case 3:if(ln(t,e),Rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{_a(t.containerInfo)}catch(m){Oe(e,e.return,m)}break;case 4:ln(t,e),Rn(e);break;case 13:ln(t,e),Rn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(um=$e())),r&4&&Hg(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(c=ut)||d,ln(t,e),ut=c):ln(t,e),Rn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(B=e,d=e.child;d!==null;){for(h=B=d;B!==null;){switch(f=B,p=f.child,f.tag){case 0:case 11:case 14:case 15:la(4,f,f.return);break;case 1:$i(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Oe(r,n,m)}}break;case 5:$i(f,f.return);break;case 22:if(f.memoizedState!==null){Jg(h);continue}}p!==null?(p.return=f,B=p):Jg(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Uw("display",o))}catch(m){Oe(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){Oe(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ln(t,e),Rn(e),r&4&&Hg(e);break;case 21:break;default:ln(t,e),Rn(e)}}function Rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dx(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(wa(s,""),r.flags&=-33);var i=Wg(e);mf(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Wg(e);pf(e,a,o);break;default:throw Error(D(161))}}catch(l){Oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hT(e,t,n){B=e,px(e)}function px(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var s=B,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ol;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ut;a=Ol;var c=ut;if(Ol=o,(ut=l)&&!c)for(B=s;B!==null;)o=B,l=o.child,o.tag===22&&o.memoizedState!==null?Gg(s):l!==null?(l.return=o,B=l):Gg(s);for(;i!==null;)B=i,px(i),i=i.sibling;B=s,Ol=a,ut=c}Kg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,B=i):Kg(e)}}function Kg(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ut||Pu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ut)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:mn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ag(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}Ag(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 c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&_a(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}ut||t.flags&512&&ff(t)}catch(f){Oe(t,t.return,f)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Jg(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Gg(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Pu(4,t)}catch(l){Oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Oe(t,s,l)}}var i=t.return;try{ff(t)}catch(l){Oe(t,i,l)}break;case 5:var o=t.return;try{ff(t)}catch(l){Oe(t,o,l)}}}catch(l){Oe(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var fT=Math.ceil,Kc=wr.ReactCurrentDispatcher,lm=wr.ReactCurrentOwner,qt=wr.ReactCurrentBatchConfig,le=0,Ze=null,Fe=null,rt=0,Rt=0,Ui=ps(0),Ge=0,Ia=null,qs=0,Ru=0,cm=0,ca=null,bt=null,um=0,vo=1/0,nr=null,Jc=!1,gf=null,ts=null,Dl=!1,Jr=null,Gc=0,ua=0,vf=null,hc=-1,fc=0;function yt(){return le&6?$e():hc!==-1?hc:hc=$e()}function ns(e){return e.mode&1?le&2&&rt!==0?rt&-rt:q3.transition!==null?(fc===0&&(fc=Xw()),fc):(e=ge,e!==0||(e=window.event,e=e===void 0?16:i1(e.type)),e):1}function En(e,t,n,r){if(50<ua)throw ua=0,vf=null,Error(D(185));tl(e,n,r),(!(le&2)||e!==Ze)&&(e===Ze&&(!(le&2)&&(Ru|=n),Ge===4&&Ur(e,rt)),Tt(e,r),n===1&&le===0&&!(t.mode&1)&&(vo=$e()+500,ju&&ms()))}function Tt(e,t){var n=e.callbackNode;qC(e,t);var r=Pc(e,e===Ze?rt:0);if(r===0)n!==null&&rg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rg(n),t===1)e.tag===0?Y3(Yg.bind(null,e)):E1(Yg.bind(null,e)),H3(function(){!(le&6)&&ms()}),n=null;else{switch(Zw(r)){case 1:n=Dp;break;case 4:n=qw;break;case 16:n=Ac;break;case 536870912:n=Qw;break;default:n=Ac}n=bx(n,mx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mx(e,t){if(hc=-1,fc=0,le&6)throw Error(D(327));var n=e.callbackNode;if(Yi()&&e.callbackNode!==n)return null;var r=Pc(e,e===Ze?rt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Yc(e,r);else{t=r;var s=le;le|=2;var i=vx();(Ze!==e||rt!==t)&&(nr=null,vo=$e()+500,Vs(e,t));do try{gT();break}catch(a){gx(e,a)}while(!0);Yp(),Kc.current=i,le=s,Fe!==null?t=0:(Ze=null,rt=0,t=Ge)}if(t!==0){if(t===2&&(s=zh(e),s!==0&&(r=s,t=yf(e,s))),t===1)throw n=Ia,Vs(e,0),Ur(e,r),Tt(e,$e()),n;if(t===6)Ur(e,r);else{if(s=e.current.alternate,!(r&30)&&!pT(s)&&(t=Yc(e,r),t===2&&(i=zh(e),i!==0&&(r=i,t=yf(e,i))),t===1))throw n=Ia,Vs(e,0),Ur(e,r),Tt(e,$e()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:ks(e,bt,nr);break;case 3:if(Ur(e,r),(r&130023424)===r&&(t=um+500-$e(),10<t)){if(Pc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){yt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Qh(ks.bind(null,e,bt,nr),t);break}ks(e,bt,nr);break;case 4:if(Ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-_n(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fT(r/1960))-r,10<r){e.timeoutHandle=Qh(ks.bind(null,e,bt,nr),r);break}ks(e,bt,nr);break;case 5:ks(e,bt,nr);break;default:throw Error(D(329))}}}return Tt(e,$e()),e.callbackNode===n?mx.bind(null,e):null}function yf(e,t){var n=ca;return e.current.memoizedState.isDehydrated&&(Vs(e,t).flags|=256),e=Yc(e,t),e!==2&&(t=bt,bt=n,t!==null&&wf(t)),e}function wf(e){bt===null?bt=e:bt.push.apply(bt,e)}function pT(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(!Cn(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 Ur(e,t){for(t&=~cm,t&=~Ru,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function Yg(e){if(le&6)throw Error(D(327));Yi();var t=Pc(e,0);if(!(t&1))return Tt(e,$e()),null;var n=Yc(e,t);if(e.tag!==0&&n===2){var r=zh(e);r!==0&&(t=r,n=yf(e,r))}if(n===1)throw n=Ia,Vs(e,0),Ur(e,t),Tt(e,$e()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ks(e,bt,nr),Tt(e,$e()),null}function dm(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(vo=$e()+500,ju&&ms())}}function Qs(e){Jr!==null&&Jr.tag===0&&!(le&6)&&Yi();var t=le;le|=1;var n=qt.transition,r=ge;try{if(qt.transition=null,ge=1,e)return e()}finally{ge=r,qt.transition=n,le=t,!(le&6)&&ms()}}function hm(){Rt=Ui.current,_e(Ui)}function Vs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,W3(n)),Fe!==null)for(n=Fe.return;n!==null;){var r=n;switch(Kp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Dc();break;case 3:mo(),_e(kt),_e(ht),tm();break;case 5:em(r);break;case 4:mo();break;case 13:_e(Ae);break;case 19:_e(Ae);break;case 10:qp(r.type._context);break;case 22:case 23:hm()}n=n.return}if(Ze=e,Fe=e=rs(e.current,null),rt=Rt=t,Ge=0,Ia=null,cm=Ru=qs=0,bt=ca=null,Ps!==null){for(t=0;t<Ps.length;t++)if(n=Ps[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}Ps=null}return e}function gx(e,t){do{var n=Fe;try{if(Yp(),cc.current=Hc,Wc){for(var r=Pe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Wc=!1}if(Ys=0,Qe=Je=Pe=null,aa=!1,Pa=0,lm.current=null,n===null||n.return===null){Ge=1,Ia=t,Fe=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=rt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Dg(o);if(p!==null){p.flags&=-257,Lg(p,o,a,i,t),p.mode&1&&Og(i,c,t),t=p,l=c;var g=t.updateQueue;if(g===null){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}else{if(!(t&1)){Og(i,c,t),fm();break e}l=Error(D(426))}}else if(Te&&a.mode&1){var x=Dg(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Lg(x,o,a,i,t),Jp(go(l,a));break e}}i=l=go(l,a),Ge!==4&&(Ge=2),ca===null?ca=[i]:ca.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=Z1(i,l,t);Ng(i,w);break e;case 1:a=l;var v=i.type,S=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ts===null||!ts.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=ex(i,a,t);Ng(i,b);break e}}i=i.return}while(i!==null)}wx(n)}catch(k){t=k,Fe===n&&n!==null&&(Fe=n=n.return);continue}break}while(!0)}function vx(){var e=Kc.current;return Kc.current=Hc,e===null?Hc:e}function fm(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ze===null||!(qs&268435455)&&!(Ru&268435455)||Ur(Ze,rt)}function Yc(e,t){var n=le;le|=2;var r=vx();(Ze!==e||rt!==t)&&(nr=null,Vs(e,t));do try{mT();break}catch(s){gx(e,s)}while(!0);if(Yp(),le=n,Kc.current=r,Fe!==null)throw Error(D(261));return Ze=null,rt=0,Ge}function mT(){for(;Fe!==null;)yx(Fe)}function gT(){for(;Fe!==null&&!BC();)yx(Fe)}function yx(e){var t=Sx(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?wx(e):Fe=t,lm.current=null}function wx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cT(n,t),n!==null){n.flags&=32767,Fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Fe=null;return}}else if(n=lT(n,t,Rt),n!==null){Fe=n;return}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function ks(e,t,n){var r=ge,s=qt.transition;try{qt.transition=null,ge=1,vT(e,t,n,r)}finally{qt.transition=s,ge=r}return null}function vT(e,t,n,r){do Yi();while(Jr!==null);if(le&6)throw Error(D(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(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(QC(e,i),e===Ze&&(Fe=Ze=null,rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Dl||(Dl=!0,bx(Ac,function(){return Yi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=qt.transition,qt.transition=null;var o=ge;ge=1;var a=le;le|=4,lm.current=null,dT(e,n),fx(n,e),L3(Yh),Rc=!!Gh,Yh=Gh=null,e.current=n,hT(n),VC(),le=a,ge=o,qt.transition=i}else e.current=n;if(Dl&&(Dl=!1,Jr=e,Gc=s),i=e.pendingLanes,i===0&&(ts=null),HC(n.stateNode),Tt(e,$e()),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(Jc)throw Jc=!1,e=gf,gf=null,e;return Gc&1&&e.tag!==0&&Yi(),i=e.pendingLanes,i&1?e===vf?ua++:(ua=0,vf=e):ua=0,ms(),null}function Yi(){if(Jr!==null){var e=Zw(Gc),t=qt.transition,n=ge;try{if(qt.transition=null,ge=16>e?16:e,Jr===null)var r=!1;else{if(e=Jr,Jr=null,Gc=0,le&6)throw Error(D(331));var s=le;for(le|=4,B=e.current;B!==null;){var i=B,o=i.child;if(B.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(B=c;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:la(8,d,i)}var h=d.child;if(h!==null)h.return=d,B=h;else for(;B!==null;){d=B;var f=d.sibling,p=d.return;if(ux(d),d===c){B=null;break}if(f!==null){f.return=p,B=f;break}B=p}}}var g=i.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}B=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,B=o;else e:for(;B!==null;){if(i=B,i.flags&2048)switch(i.tag){case 0:case 11:case 15:la(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,B=w;break e}B=i.return}}var v=e.current;for(B=v;B!==null;){o=B;var S=o.child;if(o.subtreeFlags&2064&&S!==null)S.return=o,B=S;else e:for(o=v;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Pu(9,a)}}catch(k){Oe(a,a.return,k)}if(a===o){B=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,B=b;break e}B=a.return}}if(le=s,ms(),zn&&typeof zn.onPostCommitFiberRoot=="function")try{zn.onPostCommitFiberRoot(_u,e)}catch{}r=!0}return r}finally{ge=n,qt.transition=t}}return!1}function qg(e,t,n){t=go(n,t),t=Z1(e,t,1),e=es(e,t,1),t=yt(),e!==null&&(tl(e,1,t),Tt(e,t))}function Oe(e,t,n){if(e.tag===3)qg(e,e,n);else for(;t!==null;){if(t.tag===3){qg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ts===null||!ts.has(r))){e=go(n,e),e=ex(t,e,1),t=es(t,e,1),e=yt(),t!==null&&(tl(t,1,e),Tt(t,e));break}}t=t.return}}function yT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&(rt&n)===n&&(Ge===4||Ge===3&&(rt&130023424)===rt&&500>$e()-um?Vs(e,0):cm|=n),Tt(e,t)}function xx(e,t){t===0&&(e.mode&1?(t=Cl,Cl<<=1,!(Cl&130023424)&&(Cl=4194304)):t=1);var n=yt();e=dr(e,t),e!==null&&(tl(e,t,n),Tt(e,n))}function wT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xx(e,n)}function xT(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(D(314))}r!==null&&r.delete(t),xx(e,n)}var Sx;Sx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Et=!1,aT(e,t,n);Et=!!(e.flags&131072)}else Et=!1,Te&&t.flags&1048576&&k1(t,Uc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dc(e,t),e=t.pendingProps;var s=ho(t,ht.current);Gi(t,n),s=rm(null,t,r,e,s,n);var i=sm();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,Ct(r)?(i=!0,Lc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Xp(t),s.updater=Au,t.stateNode=s,s._reactInternals=t,sf(t,r,e,n),t=lf(null,t,r,!0,i,n)):(t.tag=0,Te&&i&&Hp(t),mt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dc(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=bT(r),e=mn(r,e),s){case 0:t=af(null,t,r,e,n);break e;case 1:t=Fg(null,t,r,e,n);break e;case 11:t=$g(null,t,r,e,n);break e;case 14:t=Ug(null,t,r,mn(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),af(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),Fg(e,t,r,s,n);case 3:e:{if(sx(t),e===null)throw Error(D(387));
vendor: 4,729 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,P1(e,t),Vc(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=go(Error(D(423)),t),t=Bg(e,t,r,n,s);break e}else if(r!==s){s=go(Error(D(424)),t),t=Bg(e,t,r,n,s);break e}else for(Dt=Zr(t.stateNode.containerInfo.firstChild),$t=t,Te=!0,bn=null,n=N1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fo(),r===s){t=hr(e,t,n);break e}mt(e,t,r,n)}t=t.child}return t;case 5:return R1(t),e===null&&tf(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,qh(r,s)?o=null:i!==null&&qh(r,i)&&(t.flags|=32),rx(e,t),mt(e,t,o,n),t.child;case 6:return e===null&&tf(t),null;case 13:return ix(e,t,n);case 4:return Zp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=po(t,null,r,n):mt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),$g(e,t,r,s,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(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(Fc,r._currentValue),r._currentValue=o,i!==null)if(Cn(i.value,o)){if(i.children===s.children&&!kt.current){t=hr(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=lr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nf(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(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),nf(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}mt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Gi(t,n),s=Qt(s),r=r(s),t.flags|=1,mt(e,t,r,n),t.child;case 14:return r=t.type,s=mn(r,t.pendingProps),s=mn(r.type,s),Ug(e,t,r,s,n);case 15:return tx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),dc(e,t),t.tag=1,Ct(r)?(e=!0,Lc(t)):e=!1,Gi(t,n),X1(t,r,s),sf(t,r,s,n),lf(null,t,r,!0,e,n);case 19:return ox(e,t,n);case 22:return nx(e,t,n)}throw Error(D(156,t.tag))};function bx(e,t){return Yw(e,t)}function ST(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 Yt(e,t,n,r){return new ST(e,t,n,r)}function pm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bT(e){if(typeof e=="function")return pm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mp)return 11;if(e===Ip)return 14}return 2}function rs(e,t){var n=e.alternate;return n===null?(n=Yt(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 pc(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")pm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ni:return zs(n.children,s,i,t);case Rp:o=8,s|=8;break;case jh:return e=Yt(12,n,t,s|2),e.elementType=jh,e.lanes=i,e;case Nh:return e=Yt(13,n,t,s),e.elementType=Nh,e.lanes=i,e;case Ah:return e=Yt(19,n,t,s),e.elementType=Ah,e.lanes=i,e;case Rw:return Mu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aw:o=10;break e;case Pw:o=9;break e;case Mp:o=11;break e;case Ip:o=14;break e;case Ir:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Yt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function zs(e,t,n,r){return e=Yt(7,e,r,t),e.lanes=n,e}function Mu(e,t,n,r){return e=Yt(22,e,r,t),e.elementType=Rw,e.lanes=n,e.stateNode={isHidden:!1},e}function Od(e,t,n){return e=Yt(6,e,null,t),e.lanes=n,e}
vendor: 5,636 bytes, line 40
40function Dd(e,t,n){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _T(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=gd(0),this.expirationTimes=gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function mm(e,t,n,r,s,i,o,a,l){return e=new _T(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xp(i),e}function ET(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ji,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _x(e){if(!e)return os;e=e._reactInternals;e:{if(si(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(Ct(n))return _1(e,n,t)}return t}function Ex(e,t,n,r,s,i,o,a,l){return e=mm(n,r,!0,e,s,i,o,a,l),e.context=_x(null),n=e.current,r=yt(),s=ns(n),i=lr(r,s),i.callback=t??null,es(n,i,s),e.current.lanes=s,tl(e,s,r),Tt(e,r),e}function Iu(e,t,n,r){var s=t.current,i=yt(),o=ns(s);return n=_x(n),t.context===null?t.context=n:t.pendingContext=n,t=lr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=es(s,t,o),e!==null&&(En(e,s,o,i),lc(e,s,o)),o}function qc(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 Qg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gm(e,t){Qg(e,t),(e=e.alternate)&&Qg(e,t)}function kT(){return null}var kx=typeof reportError=="function"?reportError:function(e){console.error(e)};function vm(e){this._internalRoot=e}Ou.prototype.render=vm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Iu(e,t,null,null)};Ou.prototype.unmount=vm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qs(function(){Iu(null,e,null,null)}),t[ur]=null}};function Ou(e){this._internalRoot=e}Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=n1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$r.length&&t!==0&&t<$r[n].priority;n++);$r.splice(n,0,e),n===0&&s1(e)}};function ym(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Du(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xg(){}function CT(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=qc(o);i.call(c)}}var o=Ex(t,r,e,0,null,!1,!1,"",Xg);return e._reactRootContainer=o,e[ur]=o.current,Ca(e.nodeType===8?e.parentNode:e),Qs(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=qc(l);a.call(c)}}var l=mm(e,0,!1,null,null,!1,!1,"",Xg);return e._reactRootContainer=l,e[ur]=l.current,Ca(e.nodeType===8?e.parentNode:e),Qs(function(){Iu(t,l,n,r)}),l}function Lu(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=qc(o);a.call(l)}}Iu(t,o,e,s)}else o=CT(n,t,e,s,r);return qc(o)}e1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qo(t.pendingLanes);n!==0&&(Lp(t,n|1),Tt(t,$e()),!(le&6)&&(vo=$e()+500,ms()))}break;case 13:Qs(function(){var r=dr(e,1);if(r!==null){var s=yt();En(r,e,1,s)}}),gm(e,1)}};$p=function(e){if(e.tag===13){var t=dr(e,134217728);if(t!==null){var n=yt();En(t,e,134217728,n)}gm(e,134217728)}};t1=function(e){if(e.tag===13){var t=ns(e),n=dr(e,t);if(n!==null){var r=yt();En(n,e,t,r)}gm(e,t)}};n1=function(){return ge};r1=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}};Fh=function(e,t,n){switch(t){case"input":if(Mh(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=Tu(r);if(!s)throw Error(D(90));Iw(r),Mh(r,s)}}}break;case"textarea":Dw(e,n);break;case"select":t=n.value,t!=null&&Wi(e,!!n.multiple,t,!1)}};zw=dm;Ww=Qs;var TT={usingClientEntryPoint:!1,Events:[rl,Mi,Tu,Bw,Vw,dm]},Wo={findFiberByHostInstance:As,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jT={bundleType:Wo.bundleType,version:Wo.version,rendererPackageName:Wo.rendererPackageName,rendererConfig:Wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jw(e),e===null?null:e.stateNode},findFiberByHostInstance:Wo.findFiberByHostInstance||kT,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ll.isDisabled&&Ll.supportsFiber)try{_u=Ll.inject(jT),zn=Ll}catch{}}zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TT;zt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ym(t))throw Error(D(200));return ET(e,t,null,n)};zt.createRoot=function(e,t){if(!ym(e))throw Error(D(299));var n=!1,r="",s=kx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=mm(e,1,!1,null,null,n,!1,r,s),e[ur]=t.current,Ca(e.nodeType===8?e.parentNode:e),new vm(t)};zt.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Jw(t),e=e===null?null:e.stateNode,e};zt.flushSync=function(e){return Qs(e)};zt.hydrate=function(e,t,n){if(!Du(t))throw Error(D(200));return Lu(null,e,t,!0,n)};zt.hydrateRoot=function(e,t,n){if(!ym(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=kx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ex(t,null,e,1,n??null,s,!1,i,o),e[ur]=t.current,Ca(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ou(t)};zt.render=function(e,t,n){if(!Du(t))throw Error(D(200));return Lu(null,e,t,!1,n)};zt.unmountComponentAtNode=function(e){if(!Du(e))throw Error(D(40));return e._reactRootContainer?(Qs(function(){Lu(null,null,e,!1,function(){e._reactRootContainer=null,e[ur]=null})}),!0):!1};zt.unstable_batchedUpdates=dm;zt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Du(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Lu(e,t,n,!1,r)};zt.version="18.3.1-next-f1338f8080-20240426";function Cx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cx)}catch(e){console.error(e)}}Cx(),Cw.exports=zt;var ii=Cw.exports;const Tx=pw(ii);var jx,Zg=ii;jx=Zg.createRoot,Zg.hydrateRoot;const NT=1,AT=1e6;let Ld=0;function PT(){return Ld=(Ld+1)%Number.MAX_SAFE_INTEGER,Ld.toString()}const $d=new Map,ev=e=>{if($d.has(e))return;const t=setTimeout(()=>{$d.delete(e),da({type:"REMOVE_TOAST",toastId:e})},AT);$d.set(e,t)},RT=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,NT)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ev(n):e.toasts.forEach(r=>{ev(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},mc=[];let gc={toasts:[]};function da(e){gc=RT(gc,e),mc.forEach(t=>{t(gc)})}function MT({...e}){const t=PT(),n=s=>da({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>da({type:"DISMISS_TOAST",toastId:t});return da({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function qn(){const[e,t]=y.useState(gc);return y.useEffect(()=>(mc.push(t),()=>{const n=mc.indexOf(t);n>-1&&mc.splice(n,1)}),[e]),{...e,toast:MT,dismiss:n=>da({type:"DISMISS_TOAST",toastId:n})}}function re(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function tv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nx(...e){return t=>{let n=!1;const r=e.map(s=>{const i=tv(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():tv(e[s],null)}}}}function Ee(...e){return y.useCallback(Nx(...e),e)}function IT(e,t){const n=y.createContext(t),r=i=>{const{children:o,...a}=i,l=y.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=y.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 ko(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),l=n.length;n=[...n,o];const c=h=>{var w;const{scope:f,children:p,...g}=h,m=((w=f==null?void 0:f[e])==null?void 0:w[l])||a,x=y.useMemo(()=>g,Object.values(g));return u.jsx(m.Provider,{value:x,children:p})};c.displayName=i+"Provider";function d(h,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,g=y.useContext(p);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[c,d]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,OT(s,...t)]}function OT(...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:c}
vendor: 10,635 bytes, line 40
40)=>{const h=l(i)[`__scope${c}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function yo(e){const t=LT(e),n=y.forwardRef((r,s)=>{const{children:i,...o}=r,a=y.Children.toArray(i),l=a.find(UT);if(l){const c=l.props.children,d=a.map(h=>h===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...o,ref:s,children:y.isValidElement(c)?y.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var DT=yo("Slot");function LT(e){const t=y.forwardRef((n,r)=>{const{children:s,...i}=n;if(y.isValidElement(s)){const o=BT(s),a=FT(i,s.props);return s.type!==y.Fragment&&(a.ref=r?Nx(r,o):o),y.cloneElement(s,a)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ax=Symbol("radix.slottable");function $T(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ax,t}function UT(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ax}function FT(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 BT(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 Px(e){const t=e+"CollectionProvider",[n,r]=ko(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:w}=m,v=I.useRef(null),S=I.useRef(new Map).current;return u.jsx(s,{scope:x,itemMap:S,collectionRef:v,children:w})};o.displayName=t;const a=e+"CollectionSlot",l=yo(a),c=I.forwardRef((m,x)=>{const{scope:w,children:v}=m,S=i(a,w),b=Ee(x,S.collectionRef);return u.jsx(l,{ref:b,children:v})});c.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=yo(d),p=I.forwardRef((m,x)=>{const{scope:w,children:v,...S}=m,b=I.useRef(null),k=Ee(x,b),E=i(d,w);return I.useEffect(()=>(E.itemMap.set(b,{ref:b,...S}),()=>void E.itemMap.delete(b))),u.jsx(f,{[h]:"",ref:k,children:v})});p.displayName=d;function g(m){const x=i(e+"CollectionConsumer",m);return I.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const S=Array.from(v.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((E,_)=>S.indexOf(E.ref.current)-S.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},g,r]}var VT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=VT.reduce((e,t)=>{const n=yo(`Primitive.${t}`),r=y.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rx(e,t){e&&ii.flushSync(()=>e.dispatchEvent(t))}function Tn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zT(e,t=globalThis==null?void 0:globalThis.document){const n=Tn(e);y.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 WT="DismissableLayer",xf="dismissableLayer.update",HT="dismissableLayer.pointerDownOutside",KT="dismissableLayer.focusOutside",nv,Mx=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),il=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(Mx),[d,h]=y.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),g=Ee(t,_=>h(_)),m=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(x),v=d?m.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,b=v>=w,k=GT(_=>{const C=_.target,j=[...c.branches].some(T=>T.contains(C));!b||j||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},f),E=YT(_=>{const C=_.target;[...c.branches].some(T=>T.contains(C))||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},f);return zT(_=>{v===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},f),y.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(nv=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),rv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=nv)}},[d,f,n,c]),y.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),rv())},[d,c]),y.useEffect(()=>{const _=()=>p({});return document.addEventListener(xf,_),()=>document.removeEventListener(xf,_)},[]),u.jsx(ce.div,{...l,ref:g,style:{pointerEvents:S?b?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,E.onFocusCapture),onBlurCapture:re(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,k.onPointerDownCapture)})});il.displayName=WT;var JT="DismissableLayerBranch",Ix=y.forwardRef((e,t)=>{const n=y.useContext(Mx),r=y.useRef(null),s=Ee(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(ce.div,{...e,ref:s})});Ix.displayName=JT;function GT(e,t=globalThis==null?void 0:globalThis.document){const n=Tn(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ox(HT,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);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 YT(e,t=globalThis==null?void 0:globalThis.document){const n=Tn(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&Ox(KT,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function rv(){const e=new CustomEvent(xf);document.dispatchEvent(e)}function Ox(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?Rx(s,i):s.dispatchEvent(i)}var qT=il,QT=Ix,it=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},XT="Portal",$u=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);it(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Tx.createPortal(u.jsx(ce.div,{...r,ref:t}),o):null});$u.displayName=XT;function ZT(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Co=e=>{const{present:t,children:n}=e,r=e4(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=Ee(r.ref,t4(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};Co.displayName="Presence";function e4(e){const[t,n]=y.useState(),r=y.useRef(null),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=ZT(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=$l(r.current);i.current=a==="mounted"?c:"none"},[a]),it(()=>{const c=r.current,d=s.current;if(d!==e){const f=i.current,p=$l(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),it(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=p=>{const m=$l(r.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=p=>{p.target===t&&(i.current=$l(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function $l(e){return(e==null?void 0:e.animationName)||"none"}function t4(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 n4=jp[" useInsertionEffect ".trim().toString()]||it;function Qc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=r4({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const d=y.useRef(e!==void 0);y.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=y.useCallback(d=>{var h;if(a){const f=s4(d)?d(e):d;f!==e&&((h=o.current)==null||h.call(o,f))}else i(d)},[a,e,i,o]);return[l,c]}function r4({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),s=y.useRef(n),i=y.useRef(t);return n4(()=>{i.current=t},[t]),y.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function s4(e){return typeof e=="function"}var Dx=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"}),i4="VisuallyHidden",Uu=y.forwardRef((e,t)=>
40u.jsx(ce.span,{...e,ref:t,style:{...Dx,...e.style}}));Uu.displayName=i4;var o4=Uu,wm="ToastProvider",[xm,a4,l4]=Px("Toast"),[Lx,cF]=ko("Toast",[l4]),[c4,Fu]=Lx(wm),$x=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=y.useState(null),[c,d]=y.useState(0),h=y.useRef(!1),f=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${wm}\`. Expected non-empty \`string\`.`),u.jsx(xm.Provider,{scope:t,children:u.jsx(c4,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>d(p=>p+1),[]),onToastRemove:y.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};$x.displayName=wm;var Ux="ToastViewport",u4=["F8"],Sf="toast.viewportPause",bf="toast.viewportResume",Fx=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=u4,label:s="Notifications ({hotkey})",...i}=e,o=Fu(Ux,n),a=a4(n),l=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=y.useRef(null),f=Ee(t,h,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;y.useEffect(()=>{const x=w=>{var S;r.length!==0&&r.every(b=>w[b]||w.code===b)&&((S=h.current)==null||S.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),y.useEffect(()=>{const x=l.current,w=h.current;if(g&&x&&w){const v=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Sf);w.dispatchEvent(E),o.isClosePausedRef.current=!0}},S=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(bf);w.dispatchEvent(E),o.isClosePausedRef.current=!1}},b=E=>{!x.contains(E.relatedTarget)&&S()},k=()=>{x.contains(document.activeElement)||S()};return x.addEventListener("focusin",v),x.addEventListener("focusout",b),x.addEventListener("pointermove",v),x.addEventListener("pointerleave",k),window.addEventListener("blur",v),window.addEventListener("focus",S),()=>{x.removeEventListener("focusin",v),x.removeEventListener("focusout",b),x.removeEventListener("pointermove",v),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",v),window.removeEventListener("focus",S)}}},[g,o.isClosePausedRef]);const m=y.useCallback(({tabbingDirection:x})=>{const v=a().map(S=>{const b=S.ref.current,k=[b,..._4(b)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?v.reverse():v).flat()},[a]);return y.useEffect(()=>{const x=h.current;if(x){const w=v=>{var k,E,_;const S=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!S){const C=document.activeElement,j=v.shiftKey;if(v.target===x&&j){(k=c.current)==null||k.focus();return}const R=m({tabbingDirection:j?"backwards":"forwards"}),$=R.findIndex(O=>O===C);Ud(R.slice($+1))?v.preventDefault():j?(E=c.current)==null||E.focus():(_=d.current)==null||_.focus()}};return x.addEventListener("keydown",w),()=>x.removeEventListener("keydown",w)}},[a,m]),u.jsxs(QT,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&u.jsx(_f,{ref:c,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});Ud(x)}}),u.jsx(xm.Slot,{scope:n,children:u.jsx(ce.ol,{tabIndex:-1,...i,ref:f})}),g&&u.jsx(_f,{ref:d,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});Ud(x)}})]})});Fx.displayName=Ux;var Bx="ToastFocusProxy",_f=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Fu(Bx,n);return u.jsx(Uu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});_f.displayName=Bx;var ol="Toast",d4="toast.swipeStart",h4="toast.swipeMove",f4="toast.swipeCancel",p4="toast.swipeEnd",Vx=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=Qc({prop:r,defaultProp:s??!0,onChange:i,caller:ol});return u.jsx(Co,{present:n||a,children:u.jsx(v4,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Tn(e.onPause),onResume:Tn(e.onResume),onSwipeStart:re(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:re(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:re(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:re(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});Vx.displayName=ol;var[m4,g4]=Lx(ol,{onClose(){}}),v4=y.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...g}=e,m=Fu(ol,n),[x,w]=y.useState(null),v=Ee(t,O=>w(O)),S=y.useRef(null),b=y.useRef(null),k=s||m.duration,E=y.useRef(0),_=y.useRef(k),C=y.useRef(0),{onToastAdd:j,onToastRemove:T}=m,A=Tn(()=>{var G;(x==null?void 0:x.contains(document.activeElement))&&((G=m.viewport)==null||G.focus()),o()}),R=y.useCallback(O=>{!O||O===1/0||(window.clearTimeout(C.current),E.current=new Date().getTime(),C.current=window.setTimeout(A,O))},[A]);y.useEffect(()=>{const O=m.viewport;if(O){const G=()=>{R(_.current),c==null||c()},F=()=>{const V=new Date().getTime()-E.current;_.current=_.current-V,window.clearTimeout(C.current),l==null||l()};return O.addEventListener(Sf,F),O.addEventListener(bf,G),()=>{O.removeEventListener(Sf,F),O.removeEventListener(bf,G)}}},[m.viewport,k,l,c,R]),y.useEffect(()=>{i&&!m.isClosePausedRef.current&&R(k)},[i,k,m.isClosePausedRef,R]),y.useEffect(()=>(j(),()=>T()),[j,T]);const $=y.useMemo(()=>x?Yx(x):null,[x]);return m.viewport?u.jsxs(u.Fragment,{children:[$&&u.jsx(y4,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:$}),u.jsx(m4,{scope:n,onClose:A,children:ii.createPortal(u.jsx(xm.ItemSlot,{scope:n,children:u.jsx(qT,{asChild:!0,onEscapeKeyDown:re(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||A(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(ce.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:re(e.onKeyDown,O=>{O.key==="Escape"&&(a==null||a(O.nativeEvent),O.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:re(e.onPointerDown,O=>{O.button===0&&(S.current={x:O.clientX,y:O.clientY})}),onPointerMove:re(e.onPointerMove,O=>{if(!S.current)return;const G=O.clientX-S.current.x,F=O.clientY-S.current.y,V=!!b.current,N=["left","right"].includes(m.swipeDirection),P=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,L=N?P(0,G):0,J=N?0:P(0,F),W=O.pointerType==="touch"?10:2,X={x:L,y:J},Q={originalEvent:O,delta:X};V?(b.current=X,Ul(h4,h,Q,{discrete:!1})):sv(X,m.swipeDirection,W)?(b.current=X,Ul(d4,d,Q,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(G)>W||Math.abs(F)>W)&&(S.current=null)}),onPointerUp:re(e.onPointerUp,O=>{const G=b.current,F=O.target;if(F.hasPointerCapture(O.pointerId)&&F.releasePointerCapture(O.pointerId),b.current=null,S.current=null,G){const V=O.currentTarget,N={originalEvent:O,delta:G};sv(G,m.swipeDirection,m.swipeThreshold)?Ul(p4,p,N,{discrete:!0}):Ul(f4,f,N,{discrete:!0}),V.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),y4=e=>{const{__scopeToast:t,children:n,...r}=e,s=Fu(ol,t),[i,o]=y.useState(!1),[a,l]=y.useState(!1);return S4(()=>o(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx($u,{asChild:!0,children:u.jsx(Uu,{...r,children:i&&u.jsxs(u.Fragment,{children:[s.label," ",n]})})})},w4="ToastTitle",zx=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(ce.div,{...r,ref:t})});zx.displayName=w4;var x4="ToastDescription",Wx=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(ce.div,{...r,ref:t})});Wx.displayName=x4;var Hx="ToastAction",Kx=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(Gx,{altText:n,asChild:!0,children:u.jsx(Sm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Hx}\`. Expected non-empty \`string\`.`),null)});Kx.displayName=Hx;var Jx="ToastClose",Sm=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=g4(Jx,n);return u.jsx(Gx,{asChild:!0,children:u.jsx(ce.button,{type:"button",...r,ref:t,onClick:re(e.onClick,s.onClose)})})});Sm.displayName=Jx;var Gx=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return u.jsx(ce.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Yx(e){const t=[];
vendor: 6,518 bytes, lines 40-104
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),b4(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(...Yx(r))}}),t}function Ul(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?Rx(s,i):s.dispatchEvent(i)}var sv=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function S4(e=()=>{}){const t=Tn(e);it(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function b4(e){return e.nodeType===e.ELEMENT_NODE}function _4(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 Ud(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var E4=$x,qx=Fx,Qx=Vx,Xx=zx,Zx=Wx,eS=Kx,tS=Sm;function nS(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=nS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rS(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=nS(e))&&(r&&(r+=" "),r+=t);return r}const iv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ov=rS,sS=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ov(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const d=n==null?void 0:n[c],h=i==null?void 0:i[c];if(d===null)return null;const f=iv(d)||iv(h);return s[c][f]}),a=n&&Object.entries(n).reduce((c,d)=>{let[h,f]=d;return f===void 0||(c[h]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:h,className:f,...p}=d;return Object.entries(p).every(g=>{let[m,x]=g;return Array.isArray(x)?x.includes({...i,...a}[m]):{...i,...a}[m]===x})?[...c,h,f]:c},[]);return ov(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const k4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),iS=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var C4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const T4=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...C4,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:iS("lucide",s),...a},[...o.map(([c,d])=>y.createElement(c,d)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const qe=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(T4,{ref:i,iconNode:t,className:iS(`lucide-${k4(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const j4=qe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const as=qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const oS=qe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const N4=qe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const A4=qe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const P4=qe("Crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const aS=qe("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"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const al=qe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree.
105 */const lS=qe("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"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const bm=qe("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"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const Xc=qe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const R4=qe("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"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const cS=qe("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"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const M4=qe("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"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const xr=qe("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"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const Vt=qe("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"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const I4=qe("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const O4=qe("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"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const fr=qe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 155
155],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_m="-",D4=e=>{const t=$4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(_m);return a[0]===""&&a.length!==1&&a.shift(),uS(a,t)||L4(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},uS=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?uS(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(_m);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},av=/^\[(.+)\]$/,L4=e=>{if(av.test(e)){const t=av.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$4=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return F4(Object.entries(e.classGroups),n).forEach(([i,o])=>{Ef(o,r,i,t)}),r},Ef=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:lv(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(U4(s)){Ef(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Ef(o,lv(t,i),n,r)})})},lv=(e,t)=>{let n=e;return t.split(_m).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},U4=e=>e.isThemeGetter,F4=(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,B4=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)}}},dS="!",V4=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,d=0,h;for(let x=0;x<a.length;x++){let w=a[x];if(c===0){if(w===s&&(r||a.slice(x,x+i)===t)){l.push(a.slice(d,x)),d=x+i;continue}if(w==="/"){h=x;continue}}w==="["?c++:w==="]"&&c--}const f=l.length===0?a:a.substring(d),p=f.startsWith(dS),g=p?f.substring(1):f,m=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},z4=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},W4=e=>({cache:B4(e.cacheSize),parseClassName:V4(e),...D4(e)}),H4=/\s+/,K4=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(H4);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let g=!!p,m=r(g?f.substring(0,p):f);if(!m){if(!g){a=c+(a.length>0?" "+a:a);continue}if(m=r(f),!m){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=z4(d).join(":"),w=h?x+dS:x,v=w+m;if(i.includes(v))continue;i.push(v);const S=s(m,g);for(let b=0;b<S.length;++b){const k=S[b];i.push(w+k)}a=c+(a.length>0?" "+a:a)}return a};function J4(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=hS(t))&&(r&&(r+=" "),r+=n);return r}const hS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=hS(e[r]))&&(n&&(n+=" "),n+=t);return n};function G4(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((d,h)=>h(d),e());return n=W4(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=K4(l,n);return s(l,d),d}return function(){return i(J4.apply(null,arguments))}}const Se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fS=/^\[(?:([a-z-]+):)?(.+)\]$/i,Y4=/^\d+\/\d+$/,q4=new Set(["px","full","screen"]),Q4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X4=/\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$/,Z4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ej=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zn=e=>qi(e)||q4.has(e)||Y4.test(e),Tr=e=>To(e,"length",cj),qi=e=>!!e&&!Number.isNaN(Number(e)),Fd=e=>To(e,"number",qi),Ho=e=>!!e&&Number.isInteger(Number(e)),nj=e=>e.endsWith("%")&&qi(e.slice(0,-1)),ne=e=>fS.test(e),jr=e=>Q4.test(e),rj=new Set(["length","size","percentage"]),sj=e=>To(e,rj,pS),ij=e=>To(e,"position",pS),oj=new Set(["image","url"]),aj=e=>To(e,oj,dj),lj=e=>To(e,"",uj),Ko=()=>!0,To=(e,t,n)=>{const r=fS.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},cj=e=>X4.test(e)&&!Z4.test(e),pS=()=>!1,uj=e=>ej.test(e),dj=e=>tj.test(e),hj=()=>{const e=Se("colors"),t=Se("spacing"),n=Se("blur"),r=Se("brightness"),s=Se("borderColor"),i=Se("borderRadius"),o=Se("borderSpacing"),a=Se("borderWidth"),l=Se("contrast"),c=Se("grayscale"),d=Se("hueRotate"),h=Se("invert"),f=Se("gap"),p=Se("gradientColorStops"),g=Se("gradientColorStopPositions"),m=Se("inset"),x=Se("margin"),w=Se("opacity"),v=Se("padding"),S=Se("saturate"),b=Se("scale"),k=Se("sepia"),E=Se("skew"),_=Se("space"),C=Se("translate"),j=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",ne,t],R=()=>[ne,t],$=()=>["",Zn,Tr],O=()=>["auto",qi,ne],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",ne],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[qi,ne];return{cacheSize:500,separator:":",theme:{colors:[Ko],spacing:[Zn,Tr],blur:["none","",jr,ne],brightness:J(),borderColor:[e],borderRadius:["n
155one","","full",jr,ne],borderSpacing:R(),borderWidth:$(),contrast:J(),grayscale:P(),hueRotate:J(),invert:P(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[nj,Tr],inset:A(),margin:A(),opacity:J(),padding:R(),saturate:J(),scale:J(),sepia:P(),skew:J(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ne]}],container:["container"],columns:[{columns:[jr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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(),ne]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],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",Ho,ne]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ne]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Ho,ne]}],"grid-cols":[{"grid-cols":[Ko]}],"col-start-end":[{col:["auto",{span:["full",Ho,ne]},ne]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Ko]}],"row-start-end":[{row:["auto",{span:[Ho,ne]},ne]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ne]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ne,t]}],"min-w":[{"min-w":[ne,t,"min","max","fit"]}],"max-w":[{"max-w":[ne,t,"none","full","min","max","fit","prose",{screen:[jr]},jr]}],h:[{h:[ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jr,Tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fd]}],"font-family":[{font:[Ko]}],"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",ne]}],"line-clamp":[{"line-clamp":["none",qi,Fd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zn,ne]}],"list-image":[{"list-image":["none",ne]}],"list-style-type":[{list:["none","disc","decimal",ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zn,Tr]}],"underline-offset":[{"underline-offset":["auto",Zn,ne]}],"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:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne]}],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",ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),ij]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 5,180 bytes, line 155
155],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:F()}],"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:["",...F()]}],"outline-offset":[{"outline-offset":[Zn,ne]}],"outline-w":[{outline:[Zn,Tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Zn,Tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jr,lj]}],"shadow-color":[{shadow:[Ko]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",jr,ne]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ne]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",ne]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Ho,ne]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ne]}],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",ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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 155
155],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",ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zn,Tr,Fd]}],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"]}}},fj=G4(hj);function fe(...e){return fj(rS(e))}const pj=E4,mS=y.forwardRef(({className:e,...t},n)=>u.jsx(qx,{ref:n,className:fe("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}));mS.displayName=qx.displayName;const mj=sS("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"}}),gS=y.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(Qx,{ref:r,className:fe(mj({variant:t}),e),...n}));gS.displayName=Qx.displayName;const gj=y.forwardRef(({className:e,...t},n)=>u.jsx(eS,{ref:n,className:fe("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}));gj.displayName=eS.displayName;const vS=y.forwardRef(({className:e,...t},n)=>u.jsx(tS,{ref:n,className:fe("absolute right-2 top-2 rounded-md p-1 text-foreground
155/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(fr,{className:"h-4 w-4"})}));vS.displayName=tS.displayName;const yS=y.forwardRef(({className:e,...t},n)=>u.jsx(Xx,{ref:n,className:fe("text-sm font-semibold",e),...t}));yS.displayName=Xx.displayName;const wS=y.forwardRef(({className:e,...t},n)=>u.jsx(Zx,{ref:n,className:fe("text-sm opacity-90",e),...t}));wS.displayName=Zx.displayName;function vj(){const{toasts:e}=qn();return u.jsxs(pj,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return u.jsxs(gS,{...i,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(yS,{children:n}),r&&u.jsx(wS,{children:r})]}),s,u.jsx(vS,{})]},t)}),u.jsx(mS,{})]})}var cv=["light","dark"],yj="(prefers-color-scheme: dark)",wj=y.createContext(void 0),xj={setTheme:e=>{},themes:[]},Sj=()=>{var e;return(e=y.useContext(wj))!=null?e:xj};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?cv.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(g,m=!1,x=!0)=>{let w=o?o[g]:g,v=m?g+"|| ''":`'${w}'`,S="";return s&&x&&!m&&cv.includes(g)&&(S+=`d.style.colorScheme = '${g}';`),n==="class"?m||w?S+=`c.add(${v})`:S+="null":w&&(S+=`d[s](n,${v})`),S},p=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${yj}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${c?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var bj=e=>{switch(e){case"success":return kj;case"info":return Tj;case"warning":return Cj;case"error":return jj;default:return null}},_j=Array(12).fill(0),Ej=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},_j.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),kj=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),Cj=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.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"})),Tj=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),jj=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),Nj=I.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"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Aj=()=>
155{let[e,t]=I.useState(document.hidden);return I.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},kf=1,Pj=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:kf++,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)=>
155this.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],I.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(Mj(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||kf++;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}},St=new Pj,Rj=(e,t)=>{let n=(t==null?void 0:t.id)||kf++;return St.addToast({title:e,...t,id:n}),n},Mj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ij=Rj,Oj=()=>St.toasts,Dj=()=>St.getActiveToasts(),Le=Object.assign(Ij,{success:St.success,info:St.info,warning:St.warning,error:St.error,custom:St.custom,message:St.message,promise:St.promise,dismiss:St.dismiss,loading:St.loading},{getHistory:Oj,getToasts:Dj});function Lj(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))}Lj(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
155left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
155:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
155--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 156`);function Fl(e){return e.label!==void 0}var $j=3,Uj="32px",Fj="16px",uv=4e3,Bj=356,Vj=14,zj=20,Wj=200;function cn(...e){return e.filter(Boolean).join(" ")}function Hj(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Kj=e=>{var t,n,r,s,i,o,a,l,c,d,h;let{invert:f,toast:p,unstyled:g,interacting:m,setHeights:x,visibleToasts:w,heights:v,index:S,toasts:b,expanded:k,removeToast:E,defaultRichColors:_,closeButton:C,style:j,cancelButtonStyle:T,actionButtonStyle:A,className:R="",descriptionClassName:$="",duration:O,position:G,gap:F,loadingIcon:V,expandByDefault:N,classNames:P,icons:L,closeButtonAriaLabel:J="Close toast",pauseWhenPageIsHidden:W}
vendor: 4,462 bytes, line 156
156=e,[X,Q]=I.useState(null),[ue,pe]=I.useState(null),[U,oe]=I.useState(!1),[xe,ae]=I.useState(!1),[se,te]=I.useState(!1),[Ve,ft]=I.useState(!1),[Xn,rn]=I.useState(!1),[At,Oo]=I.useState(0),[li,$0]=I.useState(0),Do=I.useRef(p.duration||O||uv),U0=I.useRef(null),ws=I.useRef(null),Gk=S===0,Yk=S+1<=w,Ht=p.type,ci=p.dismissible!==!1,qk=p.className||"",Qk=p.descriptionClassName||"",wl=I.useMemo(()=>v.findIndex(Z=>Z.toastId===p.id)||0,[v,p.id]),Xk=I.useMemo(()=>{var Z;return(Z=p.closeButton)!=null?Z:C},[p.closeButton,C]),F0=I.useMemo(()=>p.duration||O||uv,[p.duration,O]),ld=I.useRef(0),ui=I.useRef(0),B0=I.useRef(0),di=I.useRef(null),[Zk,eC]=G.split("-"),V0=I.useMemo(()=>v.reduce((Z,ve,ke)=>ke>=wl?Z:Z+ve.height,0),[v,wl]),z0=Aj(),tC=p.invert||f,cd=Ht==="loading";ui.current=I.useMemo(()=>wl*F+V0,[wl,V0]),I.useEffect(()=>{Do.current=F0},[F0]),I.useEffect(()=>{oe(!0)},[]),I.useEffect(()=>{let Z=ws.current;if(Z){let ve=Z.getBoundingClientRect().height;return $0(ve),x(ke=>[{toastId:p.id,height:ve,position:p.position},...ke]),()=>x(ke=>ke.filter(sn=>sn.toastId!==p.id))}},[x,p.id]),I.useLayoutEffect(()=>{if(!U)return;let Z=ws.current,ve=Z.style.height;Z.style.height="auto";let ke=Z.getBoundingClientRect().height;Z.style.height=ve,$0(ke),x(sn=>sn.find(on=>on.toastId===p.id)?sn.map(on=>on.toastId===p.id?{...on,height:ke}:on):[{toastId:p.id,height:ke,position:p.position},...sn])},[U,p.title,p.description,x,p.id]);let _r=I.useCallback(()=>{ae(!0),Oo(ui.current),x(Z=>Z.filter(ve=>ve.toastId!==p.id)),setTimeout(()=>{E(p)},Wj)},[p,E,x,ui]);I.useEffect(()=>{if(p.promise&&Ht==="loading"||p.duration===1/0||p.type==="loading")return;let Z;return k||m||W&&z0?(()=>{if(B0.current<ld.current){let ve=new Date().getTime()-ld.current;Do.current=Do.current-ve}B0.current=new Date().getTime()})():Do.current!==1/0&&(ld.current=new Date().getTime(),Z=setTimeout(()=>{var ve;(ve=p.onAutoClose)==null||ve.call(p,p),_r()},Do.current)),()=>clearTimeout(Z)},[k,m,p,Ht,W,z0,_r]),I.useEffect(()=>{p.delete&&_r()},[_r,p.delete]);function nC(){var Z,ve,ke;return L!=null&&L.loading?I.createElement("div",{className:cn(P==null?void 0:P.loader,(Z=p==null?void 0:p.classNames)==null?void 0:Z.loader,"sonner-loader"),"data-visible":Ht==="loading"},L.loading):V?I.createElement("div",{className:cn(P==null?void 0:P.loader,(ve=p==null?void 0:p.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":Ht==="loading"},V):I.createElement(Ej,{className:cn(P==null?void 0:P.loader,(ke=p==null?void 0:p.classNames)==null?void 0:ke.loader),visible:Ht==="loading"})}return I.createElement("li",{tabIndex:0,ref:ws,className:cn(R,qk,P==null?void 0:P.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[Ht],(n=p==null?void 0:p.classNames)==null?void 0:n[Ht]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:_,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":U,"data-promise":!!p.promise,"data-swiped":Xn,"data-removed":xe,"data-visible":Yk,"data-y-position":Zk,"data-x-position":eC,"data-index":S,"data-front":Gk,"data-swiping":se,"data-dismissible":ci,"data-type":Ht,"data-invert":tC,"data-swipe-out":Ve,"data-swipe-direction":ue,"data-expanded":!!(k||N&&U),style:{"--index":S,"--toasts-before":S,"--z-index":b.length-S,"--offset":`${xe?At:ui.current}px`,"--initial-height":N?"auto":`${li}px`,...j,...p.style},onDragEnd:()=>{te(!1),Q(null),di.current=null},onPointerDown:Z=>{cd||!ci||(U0.current=new Date,Oo(ui.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(te(!0),di.current={x:Z.clientX,y:Z.clientY}))},onPointerUp:()=>{var Z,ve,ke,sn;if(Ve||!ci)return;di.current=null;let on=Number(((Z=ws.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Er=Number(((ve=ws.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xs=new Date().getTime()-((ke=U0.current)==null?void 0:ke.getTime()),an=X==="x"?on:Er,kr=Math.abs(an)/xs;if(Math.abs(an)>=zj||kr>.11){Oo(ui.current),(sn=p.onDismiss)==null||sn.call(p,p),pe(X==="x"?on>0?"right":"left":Er>0?"down":"up"),_r(),ft(!0),rn(!1);return}te(!1),Q(null)},onPointerMove:Z=>{var ve,ke,sn,on;if(!di.current||!ci||((ve=window.getSelection())==null?void 0:ve.toString().length)>0)return;let Er=Z.clientY-di.current.y,xs=Z.clientX-di.current.x,an=(ke=e.swipeDirections)!=null?ke:Hj(G);!X&&(Math.abs(xs)>1||Math.abs(Er)>1)&&Q(Math.abs(xs)>Math.abs(Er)?"x":"y");let kr={x:0,y:0};
156X==="y"?(an.includes("top")||an.includes("bottom"))&&(an.includes("top")&&Er<0||an.includes("bottom")&&Er>0)&&(kr.y=Er):X==="x"&&(an.includes("left")||an.includes("right"))&&(an.includes("left")&&xs<0||an.includes("right")&&xs>0)&&(kr.x=xs),(Math.abs(kr.x)>0||Math.abs(kr.y)>0)&&rn(!0),(sn=ws.current)==null||sn.style.setProperty("--swipe-amount-x",`${kr.x}px`),(on=ws.current)==null||on.style.setProperty("--swipe-amount-y",`${kr.y}px`)}},Xk&&!p.jsx?I.createElement("button",{"aria-label":J,"data-disabled":cd,"data-close-button":!0,onClick:cd||!ci?()=>{}:()=>{var Z;_r(),(Z=p.onDismiss)==null||Z.call(p,p)},className:cn(P==null?void 0:P.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=L==null?void 0:L.close)!=null?i:Nj):null,p.jsx||y.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:I.createElement(I.Fragment,null,Ht||p.icon||p.promise?I.createElement("div",{"data-icon":"",className:cn(P==null?void 0:P.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||nC():null,p.type!=="loading"?p.icon||(L==null?void 0:L[Ht])||bj(Ht):null):null,I.createElement("div",{"data-content":"",className:cn(P==null?void 0:P.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},I.createElement("div",{"data-title":"",className:cn(P==null?void 0:P.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?I.createElement("div",{"data-description":"",className:cn($,Qk,P==null?void 0:P.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),y.isValidElement(p.cancel)?p.cancel:p.cancel&&Fl(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||T,onClick:Z=>{var ve,ke;Fl(p.cancel)&&ci&&((ke=(ve=p.cancel).onClick)==null||ke.call(ve,Z),_r())},className:cn(P==null?void 0:P.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,y.isValidElement(p.action)?p.action:p.action&&Fl(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||A,onClick:Z=>{var ve,ke;Fl(p.action)&&((ke=(ve=p.action).onClick)==null||ke.call(ve,Z),!Z.defaultPrevented&&_r())},className:cn(P==null?void 0:P.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function dv(){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 Jj(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?Fj:Uj;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var Gj=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:g=$j,toastOptions:m,dir:x=dv(),gap:w=Vj,loadingIcon:v,icons:S,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:k}=e,[E,_]=I.useState([]),C=I.useMemo(()=>Array.from(new Set([r].concat(E.filter(W=>W.position).map(W=>W.position)))),[E,r]),[j,T]=I.useState([]),[A,R]=I.useState(!1),[$,O]=I.useState(!1),[G,F]=I.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=I.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=I.useRef(null),L=I.useRef(!1),J=I.useCallback(W=>{_(X=>{var Q;return(Q=X.find(ue=>ue.id===W.id))!=null&&Q.delete||St.dismiss(W.id),X.filter(({id:ue})=>ue!==W.id)})},[]);return I.useEffect(()=>St.subscribe(W=>{if(W.dismiss){_(X=>X.map(Q=>Q.id===W.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{Tx.flushSync(()=>{_(X=>{let Q=X.findIndex(ue=>ue.id===W.id);return Q!==-1?[...X.slice(0,Q),{...X[Q],...W},...X.slice(Q+1)]:[W,...X]})})})}),[]),I.useEffect(()=>{if(d!=="system"){F(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:X})=>{F(X?"dark":"light")})}catch{W.addListener(({matches:Q})=>{try{F(Q?"dark":"light")}catch(ue){console.error(ue)}})}},[d]),I.useEffect(()=>{E.length<=1&&R(!1)},[E]),I.useEffect(()=>{let W=X=>{var Q,ue;s.every(pe=>X[pe]||X.code===pe)&&(R(!0),(Q=V.current)==null||Q.focus()),X.code==="Escape"&&(document.activeElement===V.current||(ue=V.current)!=null&&ue.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),I.useEffect(()=>{if(V.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[V.current]),I.createElement("section",{ref:t,"aria-label":`${b} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((W,X)=>{var Q;let[ue,pe]=W.split("-");return E.length?I.createElement("ol",{key:W,dir:x==="auto"?dv():x,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":ue,"data-lifted":A&&E.length>1&&!i,"data-x-position":pe,style:{"--front-toast-height":`${((Q=j[0])==null?void 0:Q.height)||0}px`,"--width":`${Bj}px`,"--gap":`${w}px`,...p,...Jj(l,c)},onBlur:U=>{L.current&&!U.currentTarget.contains(U.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=U.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{$||R(!1)},onDragEnd:()=>R(!1),onPointerDown:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},E.filter(U=>!U.position&&X===0||U.position===W).map((U,oe)=>{var xe,ae;return I.createElement(Kj,{key:U.id,icons:S,index:oe,toast:U,defaultRichColors:h,duration:(xe=m==null?void 0:m.duration)!=null?xe:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:g,closeButton:(ae=m==null?void 0:m.closeButton)!=null?ae:o,interacting:$,position:W,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:J,toasts:E.filter(se=>se.position==U.position),heights:j.filter(se=>se.position==U.position),setHeights:T,expandByDefault:i,gap:w,loadingIcon:v,expanded:A,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const Yj=({...e})=>{const{theme:t="system"}=Sj();return u.jsx(Gj,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var qj=jp[" useId ".trim().toString()]||(()=>{}),Qj=0;function Qi(e){const[t,n]=y.useState(qj());return it(()=>{n(r=>r??String(Qj++))},[e]),t?`radix-${t}`:""}const Xj=["top","right","bottom","left"],ls=Math.min,Mt=Math.max,Zc=Math.round,Bl=Math.floor,Hn=e=>({x:e,y:e}
vendor: 10,346 bytes, line 156
156),Zj={left:"right",right:"left",bottom:"top",top:"bottom"},eN={start:"end",end:"start"};function Cf(e,t,n){return Mt(e,ls(t,n))}function pr(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function Em(e){return e==="x"?"y":"x"}function km(e){return e==="y"?"height":"width"}const tN=new Set(["top","bottom"]);function Vn(e){return tN.has(mr(e))?"y":"x"}function Cm(e){return Em(Vn(e))}function nN(e,t,n){n===void 0&&(n=!1);const r=jo(e),s=Cm(e),i=km(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=eu(o)),[o,eu(o)]}function rN(e){const t=eu(e);return[Tf(e),t,Tf(t)]}function Tf(e){return e.replace(/start|end/g,t=>eN[t])}const hv=["left","right"],fv=["right","left"],sN=["top","bottom"],iN=["bottom","top"];function oN(e,t,n){switch(e){case"top":case"bottom":return n?t?fv:hv:t?hv:fv;case"left":case"right":return t?sN:iN;default:return[]}}function aN(e,t,n,r){const s=jo(e);let i=oN(mr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Tf)))),i}function eu(e){return e.replace(/left|right|bottom|top/g,t=>Zj[t])}function lN(e){return{top:0,right:0,bottom:0,left:0,...e}}function xS(e){return typeof e!="number"?lN(e):{top:e,right:e,bottom:e,left:e}}function tu(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function pv(e,t,n){let{reference:r,floating:s}=e;const i=Vn(t),o=Cm(t),a=km(o),l=mr(t),c=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-s.width,y:h};break;default:p={x:r.x,y:r.y}}switch(jo(t)){case"start":p[o]-=f*(n&&c?-1:1);break;case"end":p[o]+=f*(n&&c?-1:1);break}return p}const cN=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 c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=pv(c,r,l),f=r,p={},g=0;for(let m=0;m<a.length;m++){const{name:x,fn:w}=a[m],{x:v,y:S,data:b,reset:k}=await w({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});d=v??d,h=S??h,p={...p,[x]:{...p[x],...b}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:h}=pv(c,f,l)),m=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:p}};async function Oa(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=pr(t,e),g=xS(p),x=a[f?h==="floating"?"reference":"floating":h],w=tu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),v=h==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},k=tu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:S,strategy:l}):v);return{top:(w.top-k.top+g.top)/b.y,bottom:(k.bottom-w.bottom+g.bottom)/b.y,left:(w.left-k.left+g.left)/b.x,right:(k.right-w.right+g.right)/b.x}}const uN=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:c,padding:d=0}=pr(e,t)||{};if(c==null)return{};const h=xS(d),f={x:n,y:r},p=Cm(s),g=km(p),m=await o.getDimensions(c),x=p==="y",w=x?"top":"left",v=x?"bottom":"right",S=x?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[p]-f[p]-i.floating[g],k=f[p]-i.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=E?E[S]:0;(!_||!await(o.isElement==null?void 0:o.isElement(E)))&&(_=a.floating[S]||i.floating[g]);const C=b/2-k/2,j=_/2-m[g]/2-1,T=ls(h[w],j),A=ls(h[v],j),R=T,$=_-m[g]-A,O=_/2-m[g]/2+C,G=Cf(R,O,$),F=!l.arrow&&jo(s)!=null&&O!==G&&i.reference[g]/2-(O<R?T:A)-m[g]/2<0,V=F?O<R?O-R:O-$:0;return{[p]:f[p]+V,data:{[p]:G,centerOffset:O-G-V,...F&&{alignmentOffset:V}},reset:F}}}),dN=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:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=pr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=mr(s),v=Vn(a),S=mr(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=f||(S||!m?[eu(a)]:rN(a)),E=g!=="none";!f&&E&&k.push(...aN(a,m,g,b));const _=[a,...k],C=await Oa(t,x),j=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&j.push(C[w]),h){const O=nN(s,o,b);j.push(C[O[0]],C[O[1]])}if(T=[...T,{placement:s,overflows:j}],!j.every(O=>O<=0)){var A,R;const O=(((A=i.flip)==null?void 0:A.index)||0)+1,G=_[O];if(G&&(!(h==="alignment"?v!==Vn(G):!1)||T.every(N=>N.overflows[0]>0&&Vn(N.placement)===v)))return{data:{index:O,overflows:T},reset:{placement:G}};let F=(R=T.filter(V=>V.overflows[0]<=0).sort((V,N)=>V.overflows[1]-N.overflows[1])[0])==null?void 0:R.placement;if(!F)switch(p){case"bestFit":{var $;const V=($=T.filter(N=>{if(E){const P=Vn(N.placement);return P===v||P==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((N,P)=>N[1]-P[1])[0])==null?void 0:$[0];V&&(F=V);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function mv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gv(e){return Xj.some(t=>e[t]>=0)}const hN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=pr(e,t);switch(r){case"referenceHidden":{const i=await Oa(t,{...s,elementContext:"reference"}),o=mv(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:gv(o)}}}case"escaped":{const i=await Oa(t,{...s,altBoundary:!0}),o=mv(i,n.floating);return{data:{escapedOffsets:o,escaped:gv(o)}}}default:return{}}}}},SS=new Set(["left","top"]);async function fN(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=mr(n),a=jo(n),l=Vn(n)==="y",c=SS.has(o)?-1:1,d=i&&l?-1:1,h=pr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*d,y:f*c}:{x:f*c,y:p*d}}const pN=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 fN(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}}}}},mN=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:w,y:v}=x;return{x:w,y:v}}},...l}=pr(e,t),c={x:n,y:r},d=await Oa(t,l),h=Vn(mr(s)),f=Em(h);let p=c[f],g=c[h];if(i){const x=f==="y"?"top":"left",w=f==="y"?"bottom":"right",v=p+d[x],S=p-d[w];p=Cf(v,p,S)}if(o){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",v=g+d[x],S=g-d[w];g=Cf(v,g,S)}const m=a.fn({...t,[f]:p,[h]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[h]:o}}}}}},gN=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:c=!0}=pr(e,t),d={x:n,y:r},h=Vn(s),f=Em(h);let p=d[f],g=d[h];const m=pr(a,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",b=i.reference[f]-i.floating[S]+x.mainAxis,k=i.reference[f]+i.reference[S]-x.mainAxis;p<b?p=b:p>k&&(p=k)}if(c){var w,v;const S=f==="y"?"width":"height",b=SS.has(mr(s)),k=i.reference[h]-i.floating[S]+(b&&((w=o.offset)==null?void 0:w[h])||0)+(b?0:x.crossAxis),E=i.reference[h]+i.reference[S]+(b?0:((v=o.offset)==null?void 0:v[h])||0)-(b?x.crossAxis:0);g<k?g=k:g>E&&(g=E)}return{[f]:p,[h]:g}}}},vN=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=()=>{},...c}=pr(e,t),d=await Oa(t,c),h=mr(s),f=jo(s),p=Vn(s)==="y",{width:g,height:m}=i.floating;let x,w;h==="top"||h==="bottom"?(x=h,w=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(w=h,x=f==="end"?"top":"bottom");const v=m-d.top-d.bottom,S=g-d.left-d.right,b=ls(m-d[x],v),k=ls(g-d[w],S),E=!t.middlewareData.shift;let _=b,C=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=v),E&&!f){const T=Mt(d.left,0),A=Mt(d.right,0),R=Mt(d.top,0),$=Mt(d.bottom,0);p?C=g-2*(T!==0||A!==0?T+A:Mt(d.left,d.right)):_=m-2*(R!==0||$!==0?R+$:Mt(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:_});const j=await o.getDimensions(a.floating);return g!==j.width||m!==j.height?{reset:{rects:!0}}:{}}}};function Bu(){return typeof window<"u"}function No(e){return bS(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(bS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bS(e){return Bu()?e instanceof Node||e instanceof Ut(e).Node:!1}function jn(e){return Bu()?e instanceof Element||e instanceof Ut(e).Element:!1}function Gn(e){return Bu()?e instanceof HTMLElement||e instanceof Ut(e).HTMLElement:!1}function vv(e){return!Bu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}const yN=new Set(["inline","contents"]);function ll(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Nn(e);
vendor: 4,121 bytes, line 156
156return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!yN.has(s)}const wN=new Set(["table","td","th"]);function xN(e){return wN.has(No(e))}const SN=[":popover-open",":modal"];function Vu(e){return SN.some(t=>{try{return e.matches(t)}catch{return!1}})}const bN=["transform","translate","scale","rotate","perspective"],_N=["transform","translate","scale","rotate","perspective","filter"],EN=["paint","layout","strict","content"];function Tm(e){const t=jm(),n=jn(e)?Nn(e):e;return bN.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_N.some(r=>(n.willChange||"").includes(r))||EN.some(r=>(n.contain||"").includes(r))}function kN(e){let t=cs(e);for(;Gn(t)&&!wo(t);){if(Tm(t))return t;if(Vu(t))return null;t=cs(t)}return null}function jm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const CN=new Set(["html","body","#document"]);function wo(e){return CN.has(No(e))}function Nn(e){return Ut(e).getComputedStyle(e)}function zu(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cs(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vv(e)&&e.host||Qn(e);return vv(t)?t.host:t}function _S(e){const t=cs(e);return wo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gn(t)&&ll(t)?t:_S(t)}function Da(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_S(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ut(s);if(i){const a=jf(o);return t.concat(o,o.visualViewport||[],ll(s)?s:[],a&&n?Da(a):[])}return t.concat(s,Da(s,[],n))}function jf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ES(e){const t=Nn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Gn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Zc(n)!==i||Zc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Nm(e){return jn(e)?e:e.contextElement}function Xi(e){const t=Nm(e);if(!Gn(t))return Hn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=ES(t);let o=(i?Zc(n.width):n.width)/r,a=(i?Zc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const TN=Hn(0);function kS(e){const t=Ut(e);return!jm()||!t.visualViewport?TN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ut(e)?!1:t}function Xs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Nm(e);let o=Hn(1);t&&(r?jn(r)&&(o=Xi(r)):o=Xi(e));const a=jN(i,n,r)?kS(i):Hn(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,d=s.width/o.x,h=s.height/o.y;if(i){const f=Ut(i),p=r&&jn(r)?Ut(r):r;let g=f,m=jf(g);for(;m&&r&&p!==g;){const x=Xi(m),w=m.getBoundingClientRect(),v=Nn(m),S=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*x.x,b=w.top+(m.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,h*=x.y,l+=S,c+=b,g=Ut(m),m=jf(g)}}return tu({width:d,height:h,x:l,y:c})}function Am(e,t){const n=zu(e).scrollLeft;return t?t.left+n:Xs(Qn(e)).left+n}function CS(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Am(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function NN(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},c=Hn(1);const d=Hn(0),h=Gn(r);if((h||!h&&!i)&&((No(r)!=="body"||ll(o))&&(l=zu(r)),Gn(r))){const p=Xs(r);c=Xi(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=o&&!h&&!i?CS(o,l,!0):Hn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}}function AN(e){return Array.from(e.getClientRects())}function PN(e){const t=Qn(e),n=zu(e),r=e.ownerDocument.body,s=Mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Am(e);const a=-n.scrollTop;return Nn(r).direction==="rtl"&&(o+=Mt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}
vendor: 4,850 bytes, line 156
156function RN(e,t){const n=Ut(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 c=jm();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const MN=new Set(["absolute","fixed"]);function IN(e,t){const n=Xs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Gn(e)?Xi(e):Hn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function yv(e,t,n){let r;if(t==="viewport")r=RN(e,n);else if(t==="document")r=PN(Qn(e));else if(jn(t))r=IN(t,n);else{const s=kS(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return tu(r)}function TS(e,t){const n=cs(e);return n===t||!jn(n)||wo(n)?!1:Nn(n).position==="fixed"||TS(n,t)}function ON(e,t){const n=t.get(e);if(n)return n;let r=Da(e,[],!1).filter(a=>jn(a)&&No(a)!=="body"),s=null;const i=Nn(e).position==="fixed";let o=i?cs(e):e;for(;jn(o)&&!wo(o);){const a=Nn(o),l=Tm(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&MN.has(s.position)||ll(o)&&!l&&TS(e,o))?r=r.filter(d=>d!==o):s=a,o=cs(o)}return t.set(e,r),r}function DN(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Vu(t)?[]:ON(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,d)=>{const h=yv(t,d,s);return c.top=Mt(h.top,c.top),c.right=ls(h.right,c.right),c.bottom=ls(h.bottom,c.bottom),c.left=Mt(h.left,c.left),c},yv(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function LN(e){const{width:t,height:n}=ES(e);return{width:t,height:n}}function $N(e,t,n){const r=Gn(t),s=Qn(t),i=n==="fixed",o=Xs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Hn(0);function c(){l.x=Am(s)}if(r||!r&&!i)if((No(t)!=="body"||ll(s))&&(a=zu(t)),r){const p=Xs(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&c();i&&!r&&s&&c();const d=s&&!r&&!i?CS(s,a):Hn(0),h=o.left+a.scrollLeft-l.x-d.x,f=o.top+a.scrollTop-l.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function Bd(e){return Nn(e).position==="static"}function wv(e,t){if(!Gn(e)||Nn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function jS(e,t){const n=Ut(e);if(Vu(e))return n;if(!Gn(e)){let s=cs(e);for(;s&&!wo(s);){if(jn(s)&&!Bd(s))return s;s=cs(s)}return n}let r=wv(e,t);for(;r&&xN(r)&&Bd(r);)r=wv(r,t);return r&&wo(r)&&Bd(r)&&!Tm(r)?n:r||kN(e)||n}const UN=async function(e){const t=this.getOffsetParent||jS,n=this.getDimensions,r=await n(e.floating);return{reference:$N(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FN(e){return Nn(e).direction==="rtl"}const BN={convertOffsetParentRelativeRectToViewportRelativeRect:NN,getDocumentElement:Qn,getClippingRect:DN,getOffsetParent:jS,getElementRects:UN,getClientRects:AN,getDimensions:LN,getScale:Xi,isElement:jn,isRTL:FN};function NS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VN(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 c=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=c;if(a||t(),!f||!p)return;const g=Bl(h),m=Bl(s.clientWidth-(d+f)),x=Bl(s.clientHeight-(h+p)),w=Bl(d),S={rootMargin:-g+"px "+-m+"px "+-x+"px "+-w+"px",threshold:Mt(0,ls(1,l))||1};let b=!0;function k(E){const _=E[0].intersectionRatio;if(_!==l){if(!b)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!NS(c,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(k,{...S,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,S)}n.observe(e)}return o(!0),i}function zN(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,c=Nm(e),d=s||i?[...c?Da(c):[],...Da(t)]:[];d.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=c&&a?VN(c,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(w=>{let[v]=w;v&&v.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let g,m=l?Xs(e):null;l&&x();function x(){const w=Xs(e);m&&!NS(m,w)&&n(),m=w,g=requestAnimationFrame(x)}return n(),()=>{var w;d.forEach(v=>{s&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const WN=pN,HN=mN,KN=dN,JN=vN,GN=hN,xv=uN,YN=gN,qN=(e,t,n)=>{const r=new Map,s={platform:BN,...n},i={...s.platform,_c:r};return cN(e,t,{...s,platform:i})};var QN=typeof document<"u",XN=function(){},vc=QN?y.useLayoutEffect:XN;function nu(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 156
156if(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(!nu(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)&&!nu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function AS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sv(e,t){const n=AS(e);return Math.round(t*n)/n}function Vd(e){const t=y.useRef(e);return vc(()=>{t.current=e}),t}function ZN(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:c}=e,[d,h]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);nu(f,r)||p(r);const[g,m]=y.useState(null),[x,w]=y.useState(null),v=y.useCallback(N=>{N!==E.current&&(E.current=N,m(N))},[]),S=y.useCallback(N=>{N!==_.current&&(_.current=N,w(N))},[]),b=i||g,k=o||x,E=y.useRef(null),_=y.useRef(null),C=y.useRef(d),j=l!=null,T=Vd(l),A=Vd(s),R=Vd(c),$=y.useCallback(()=>{if(!E.current||!_.current)return;const N={placement:t,strategy:n,middleware:f};A.current&&(N.platform=A.current),qN(E.current,_.current,N).then(P=>{const L={...P,isPositioned:R.current!==!1};O.current&&!nu(C.current,L)&&(C.current=L,ii.flushSync(()=>{h(L)}))})},[f,t,n,A,R]);vc(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(N=>({...N,isPositioned:!1})))},[c]);const O=y.useRef(!1);vc(()=>(O.current=!0,()=>{O.current=!1}),[]),vc(()=>{if(b&&(E.current=b),k&&(_.current=k),b&&k){if(T.current)return T.current(b,k,$);$()}},[b,k,$,T,j]);const G=y.useMemo(()=>({reference:E,floating:_,setReference:v,setFloating:S}),[v,S]),F=y.useMemo(()=>({reference:b,floating:k}),[b,k]),V=y.useMemo(()=>{const N={position:n,left:0,top:0};if(!F.floating)return N;const P=Sv(F.floating,d.x),L=Sv(F.floating,d.y);return a?{...N,transform:"translate("+P+"px, "+L+"px)",...AS(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:L}},[n,a,F.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:$,refs:G,elements:F,floatingStyles:V}),[d,$,G,F,V])}const eA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xv({element:r.current,padding:s}).fn(n):{}:r?xv({element:r,padding:s}).fn(n):{}}}},tA=(e,t)=>({...WN(e),options:[e,t]}),nA=(e,t)=>({...HN(e),options:[e,t]}),rA=(e,t)=>({...YN(e),options:[e,t]}),sA=(e,t)=>({...KN(e),options:[e,t]}),iA=(e,t)=>({...JN(e),options:[e,t]}),oA=(e,t)=>({...GN(e),options:[e,t]}),aA=(e,t)=>({...eA(e),options:[e,t]});var lA="Arrow",PS=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return u.jsx(ce.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});PS.displayName=lA;var cA=PS;function uA(e){const[t,n]=y.useState(void 0);return it(()=>{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,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.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 Pm="Popper",[RS,Wu]=ko(Pm),[dA,MS]=RS(Pm),IS=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return u.jsx(dA,{scope:t,anchor:r,onAnchorChange:s,children:n})};IS.displayName=Pm;var OS="PopperAnchor",DS=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=MS(OS,n),o=y.useRef(null),a=Ee(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:u.jsx(ce.div,{...s,ref:a})});DS.displayName=OS;var Rm="PopperContent",[hA,fA]=RS(Rm),LS=y.forwardRef((e,t)=>
vendor: 4,211 bytes, line 156
156{var U,oe,xe,ae,se,te;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,x=MS(Rm,n),[w,v]=y.useState(null),S=Ee(t,Ve=>v(Ve)),[b,k]=y.useState(null),E=uA(b),_=(E==null?void 0:E.width)??0,C=(E==null?void 0:E.height)??0,j=r+(i!=="center"?"-"+i:""),T=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},A=Array.isArray(c)?c:[c],R=A.length>0,$={padding:T,boundary:A.filter(mA),altBoundary:R},{refs:O,floatingStyles:G,placement:F,isPositioned:V,middlewareData:N}=ZN({strategy:"fixed",placement:j,whileElementsMounted:(...Ve)=>zN(...Ve,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[tA({mainAxis:s+C,alignmentAxis:o}),l&&nA({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?rA():void 0,...$}),l&&sA({...$}),iA({...$,apply:({elements:Ve,rects:ft,availableWidth:Xn,availableHeight:rn})=>{const{width:At,height:Oo}=ft.reference,li=Ve.floating.style;li.setProperty("--radix-popper-available-width",`${Xn}px`),li.setProperty("--radix-popper-available-height",`${rn}px`),li.setProperty("--radix-popper-anchor-width",`${At}px`),li.setProperty("--radix-popper-anchor-height",`${Oo}px`)}}),b&&aA({element:b,padding:a}),gA({arrowWidth:_,arrowHeight:C}),f&&oA({strategy:"referenceHidden",...$})]}),[P,L]=FS(F),J=Tn(g);it(()=>{V&&(J==null||J())},[V,J]);const W=(U=N.arrow)==null?void 0:U.x,X=(oe=N.arrow)==null?void 0:oe.y,Q=((xe=N.arrow)==null?void 0:xe.centerOffset)!==0,[ue,pe]=y.useState();return it(()=>{w&&pe(window.getComputedStyle(w).zIndex)},[w]),u.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(ae=N.transformOrigin)==null?void 0:ae.x,(se=N.transformOrigin)==null?void 0:se.y].join(" "),...((te=N.hide)==null?void 0:te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(hA,{scope:n,placedSide:P,onArrowChange:k,arrowX:W,arrowY:X,shouldHideArrow:Q,children:u.jsx(ce.div,{"data-side":P,"data-align":L,...m,ref:S,style:{...m.style,animation:V?void 0:"none"}})})})});LS.displayName=Rm;var $S="PopperArrow",pA={top:"bottom",right:"left",bottom:"top",left:"right"},US=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=fA($S,r),o=pA[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(cA,{...s,ref:n,style:{...s.style,display:"block"}})})});US.displayName=$S;function mA(e){return e!==null}var gA=e=>({name:"transformOrigin",options:e,fn(t){var x,w,v;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,[c,d]=FS(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((w=s.arrow)==null?void 0:w.x)??0)+a/2,p=(((v=s.arrow)==null?void 0:v.y)??0)+l/2;let g="",m="";return c==="bottom"?(g=o?h:`${f}px`,m=`${-l}px`):c==="top"?(g=o?h:`${f}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=o?h:`${p}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=o?h:`${p}px`),{data:{x:g,y:m}}}});function FS(e){const[t,n="center"]=e.split("-");return[t,n]}var vA=IS,BS=DS,VS=LS,zS=US,[Hu,uF]=ko("Tooltip",[Wu]),Mm=Wu(),WS="TooltipProvider",yA=700,bv="tooltip.open",[wA,HS]=Hu(WS),KS=e=>{const{__scopeTooltip:t,delayDuration:n=yA,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(wA,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,838 bytes, line 156
156o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};KS.displayName=WS;var JS="Tooltip",[dF,Ku]=Hu(JS),Nf="TooltipTrigger",xA=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Ku(Nf,n),i=HS(Nf,n),o=Mm(n),a=y.useRef(null),l=Ee(t,a,s.onTriggerChange),c=y.useRef(!1),d=y.useRef(!1),h=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(BS,{asChild:!0,...o,children:u.jsx(ce.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:re(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:re(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:re(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:re(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:re(e.onBlur,s.onClose),onClick:re(e.onClick,s.onClose)})})});xA.displayName=Nf;var SA="TooltipPortal",[hF,bA]=Hu(SA,{forceMount:void 0}),xo="TooltipContent",GS=y.forwardRef((e,t)=>{const n=bA(xo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Ku(xo,e.__scopeTooltip);return u.jsx(Co,{present:r||o.open,children:o.disableHoverableContent?u.jsx(YS,{side:s,...i,ref:t}):u.jsx(_A,{side:s,...i,ref:t})})}),_A=y.forwardRef((e,t)=>{const n=Ku(xo,e.__scopeTooltip),r=HS(xo,e.__scopeTooltip),s=y.useRef(null),i=Ee(t,s),[o,a]=y.useState(null),{trigger:l,onClose:c}=n,d=s.current,{onPointerInTransitChange:h}=r,f=y.useCallback(()=>{a(null),h(!1)},[h]),p=y.useCallback((g,m)=>{const x=g.currentTarget,w={x:g.clientX,y:g.clientY},v=jA(w,x.getBoundingClientRect()),S=NA(w,v),b=AA(m.getBoundingClientRect()),k=RA([...S,...b]);a(k),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(l&&d){const g=x=>p(x,d),m=x=>p(x,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",m)}}},[l,d,p,f]),y.useEffect(()=>{if(o){const g=m=>{const x=m.target,w={x:m.clientX,y:m.clientY},v=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),S=!PA(w,o);v?f():S&&(f(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,o,c,f]),u.jsx(YS,{...e,ref:i})}),[EA,kA]=Hu(JS,{isInside:!1}),CA=$T("TooltipContent"),YS=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Ku(xo,n),c=Mm(n),{onClose:d}=l;return y.useEffect(()=>(document.addEventListener(bv,d),()=>document.removeEventListener(bv,d)),[d]),y.useEffect(()=>{if(l.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(il,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(VS,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(CA,{children:r}),u.jsx(EA,{scope:n,isInside:!0,children:u.jsx(o4,{id:l.contentId,role:"tooltip",children:s||r})})]})})});GS.displayName=xo;var qS="TooltipArrow",TA=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Mm(n);return kA(qS,n).isInside?null:u.jsx(zS,{...s,...r,ref:t})});TA.displayName=qS;function jA(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 NA(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 AA(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 PA(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],c=a.x,d=a.y,h=l.x,f=l.y;d>r!=f>r&&n<(h-c)*(r-d)/(f-d)+c&&(s=!s)}return s}function RA(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),MA(t)}function MA(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 IA=KS,QS=GS;const OA=IA,DA=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(QS,{ref:r,sideOffset:t,className:fe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
156de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));DA.displayName=QS.displayName;var Ju=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(){}},Gu=typeof window>"u"||"Deno"in globalThis;function gn(){}function LA(e,t){return typeof e=="function"?e(t):e}function $A(e){return typeof e=="number"&&e>=0&&e!==1/0}function UA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Af(e,t){return typeof e=="function"?e(t):e}function FA(e,t){return typeof e=="function"?e(t):e}function _v(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Im(o,t.options))return!1}else if(!$a(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Ev(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(La(t.options.mutationKey)!==La(i))return!1}else if(!$a(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Im(e,t){return((t==null?void 0:t.queryKeyHashFn)||La)(e)}function La(e){return JSON.stringify(e,(t,n)=>Pf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function $a(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>$a(e[n],t[n])):!1}function XS(e,t){if(e===t)return e;const n=kv(e)&&kv(t);if(n||Pf(e)&&Pf(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 c=0;for(let d=0;d<o;d++){const h=n?d:i[d];(!n&&l.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,c++):(a[h]=XS(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function kv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pf(e){if(!Cv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Cv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Cv(e){return Object.prototype.toString.call(e)==="[object Object]"}function BA(e){return new Promise(t=>{setTimeout(t,e)})}function VA(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?XS(e,t):t}function zA(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function WA(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Om=Symbol();function ZS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Om?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ds,Br,no,ow,HA=(ow=class extends Ju{constructor(){super();de(this,Ds);de(this,Br);de(this,no);ee(this,no,t=>{if(!Gu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,Br)||this.setEventListener(M(this,no))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Br))==null||t.call(this),ee(this,Br,void 0))}setEventListener(t){var n;ee(this,no,t),(n=M(this,Br))==null||n.call(this),ee(this,Br,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,Ds)!==t&&(ee(this,Ds,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,Ds)=="boolean"?M(this,Ds):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ds=new WeakMap,Br=new WeakMap,no=new WeakMap,ow),eb=new HA,ro,Vr,so,aw,KA=(aw=class extends Ju{constructor(){super();de(this,ro,!0);de(this,Vr);de(this,so);ee(this,so,t=>{if(!Gu&&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(){M(this,Vr)||this.setEventListener(M(this,so))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Vr))==null||t.call(this),ee(this,Vr,void 0))}setEventListener(t){var n;ee(this,so,t),(n=M(this,Vr))==null||n.call(this),ee(this,Vr,t(this.setOnline.bind(this)))}setOnline(t){M(this,ro)!==t&&(ee(this,ro,t),this.listeners.forEac
vendor: 11,814 bytes, line 156
156h(r=>{r(t)}))}isOnline(){return M(this,ro)}},ro=new WeakMap,Vr=new WeakMap,so=new WeakMap,aw),ru=new KA;function JA(){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 GA(e){return Math.min(1e3*2**e,3e4)}function tb(e){return(e??"online")==="online"?ru.isOnline():!0}var nb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zd(e){return e instanceof nb}function rb(e){let t=!1,n=0,r=!1,s;const i=JA(),o=m=>{var x;r||(f(new nb(m)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>eb.isFocused()&&(e.networkMode==="always"||ru.isOnline())&&e.canRun(),d=()=>tb(e.networkMode)&&e.canRun(),h=m=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,m),s==null||s(),i.resolve(m))},f=m=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,m),s==null||s(),i.reject(m))},p=()=>new Promise(m=>{var x;s=w=>{(r||c())&&m(w)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(r)return;let m;const x=n===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(w){m=Promise.reject(w)}Promise.resolve(m).then(h).catch(w=>{var E;if(r)return;const v=e.retry??(Gu?0:3),S=e.retryDelay??GA,b=typeof S=="function"?S(n,w):S,k=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,w);if(t||!k){f(w);return}n++,(E=e.onFail)==null||E.call(e,n,w),BA(b).then(()=>c()?void 0:p()).then(()=>{t?f(w):g()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?g():p().then(g),i)}}var YA=e=>setTimeout(e,0);function qA(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=YA;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 gt=qA(),Ls,lw,sb=(lw=class{constructor(){de(this,Ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$A(this.gcTime)&&ee(this,Ls,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gu?1/0:5*60*1e3))}clearGcTimeout(){M(this,Ls)&&(clearTimeout(M(this,Ls)),ee(this,Ls,void 0))}},Ls=new WeakMap,lw),io,$s,Kt,Us,ct,Xa,Fs,yn,er,cw,QA=(cw=class extends sb{constructor(t){super();de(this,yn);de(this,io);de(this,$s);de(this,Kt);de(this,Us);de(this,ct);de(this,Xa);de(this,Fs);ee(this,Fs,!1),ee(this,Xa,t.defaultOptions),this.setOptions(t.options),this.observers=[],ee(this,Us,t.client),ee(this,Kt,M(this,Us).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ee(this,io,ZA(this.options)),this.state=t.state??M(this,io),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,ct))==null?void 0:t.promise}setOptions(t){this.options={...M(this,Xa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Kt).remove(this)}setData(t,n){const r=VA(this.state.data,t,this.options);return ot(this,yn,er).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ot(this,yn,er).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=M(this,ct))==null?void 0:r.promise;return(s=M(this,ct))==null||s.cancel(t),n?n.then(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,io))}isActive(){return this.observers.some(t=>FA(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Om||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Af(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:!UA(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Kt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,ct)&&(M(this,Fs)?M(this,ct).cancel({revert:!0}):M(this,ct).cancelRetry()),this.scheduleGc()),M(this,Kt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,yn,er).call(this,{type:"invalidate"})}fetch(t,n){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,ct))return M(this,ct).continueRetry(),M(this,ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ee(this,Fs,!0),r.signal)})},i=()=>{const f=ZS(this.options,n),g=(()=>{const m={client:M(this,Us),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return ee(this,Fs,!1),this.options.persister?this.options.persister(f,g,this):f(g)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,Us),state:this.state,fetchFn:i};return s(f),f})();(c=this.options.behavior)==null||c.onFetch(a,this),ee(this,$s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&ot(this,yn,er).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=f=>{var p,g,m,x;zd(f)&&f.silent||ot(this,yn,er).call(this,{type:"error",error:f}),zd(f)||((g=(p=M(this,Kt).config).onError)==null||g.call(p,f,this),(x=(m=M(this,Kt).config).onSettled)==null||x.call(m,this.state.data,f,this)),this.scheduleGc()};return ee(this,ct,rb({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,m,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){l(w);return}(g=(p=M(this,Kt).config).onSuccess)==null||g.call(p,f,this),(x=(m=M(this,Kt).config).onSettled)==null||x.call(m,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{ot(this,yn,er).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ot(this,yn,er).call(this,{type:"pause"})},onContinue:()=>{ot(this,yn,er).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),M(this,ct).start()}},io=new WeakMap,$s=new WeakMap,Kt=new WeakMap,Us=new WeakMap,ct=new WeakMap,Xa=new WeakMap,Fs=new WeakMap,yn=new WeakSet,er=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,...XA(r.data,this.options),fetchMeta:t.meta??null};case"success":return ee(this,$s,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 zd(s)&&s.revert&&M(this,$s)?{...M(this,$s),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),gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,Kt).notify({query:this,type:"updated",action:t})})},cw);function XA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ZA(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 Dn,uw,e6=(uw=class extends Ju{constructor(t={}){super();de(this,Dn);this.config=t,ee(this,Dn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Im(s,n);let o=this.get(i);return o||(o=new QA({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){M(this,Dn).has(t.queryHash)||(M(this,Dn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,Dn).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,Dn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,Dn).get(t)}getAll(){return[...M(this,Dn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_v(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>_v(t,r)):n}notify(t){gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dn=new WeakMap,uw),Ln,pt,Bs,$n,Nr,dw,t6=(dw=class extends sb{constructor(t){super();de(this,$n);de(this,Ln);de(this,pt);de(this,Bs);this.mutationId=t.mutationId,ee(this,pt,t.mutationCache),ee(this,Ln,[]),this.state=t.state||n6(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,Ln).includes(t)||(M(this,Ln).push(t),this.clearGcTimeout(),M(this,pt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ee(this,Ln,M(this,Ln).filter(n=>n!==t)),this.scheduleGc(),M(this,pt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,Ln).length||(this.state.status==="pending"?this.scheduleGc():M(this,pt).remove(this))}continue(){var t;return((t=M(this,Bs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,d,h,f,p,g,m,x,w,v,S,b,k,E,_,C;const n=()=>{ot(this,$n,Nr).call(this,{type:"continue"})};ee(this,Bs,rb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,T)=>{ot(this,$n,Nr).call(this,{type:"failed",failureCount:j,error:T})},onPause:()=>{ot(this,$n,Nr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,pt).canRun(this)}));const r=this.state.status==="pending",s=!M(this,Bs).canStart();try{if(r)n();else{ot(this,$n,Nr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=M(this,pt).config).onMutate)==null?void 0:o.call(i,t,this));
156const T=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));T!==this.state.context&&ot(this,$n,Nr).call(this,{type:"pending",context:T,variables:t,isPaused:s})}const j=await M(this,Bs).start();return await((d=(c=M(this,pt).config).onSuccess)==null?void 0:d.call(c,j,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,j,t,this.state.context)),await((g=(p=M(this,pt).config).onSettled)==null?void 0:g.call(p,j,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,j,null,t,this.state.context)),ot(this,$n,Nr).call(this,{type:"success",data:j}),j}catch(j){try{throw await((v=(w=M(this,pt).config).onError)==null?void 0:v.call(w,j,t,this.state.context,this)),await((b=(S=this.options).onError)==null?void 0:b.call(S,j,t,this.state.context)),await((E=(k=M(this,pt).config).onSettled)==null?void 0:E.call(k,void 0,j,this.state.variables,this.state.context,this)),await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,j,t,this.state.context)),j}finally{ot(this,$n,Nr).call(this,{type:"error",error:j})}}finally{M(this,pt).runNext(this)}}},Ln=new WeakMap,pt=new WeakMap,Bs=new WeakMap,$n=new WeakSet,Nr=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),gt.batch(()=>{M(this,Ln).forEach(r=>{r.onMutationUpdate(t)}),M(this,pt).notify({mutation:this,type:"updated",action:t})})},dw);function n6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ir,wn,Za,hw,r6=(hw=class extends Ju{constructor(t={}){super();de(this,ir);de(this,wn);de(this,Za);this.config=t,ee(this,ir,new Set),ee(this,wn,new Map),ee(this,Za,0)}build(t,n,r){const s=new t6({mutationCache:this,mutationId:++xl(this,Za)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){M(this,ir).add(t);const n=Vl(t);if(typeof n=="string"){const r=M(this,wn).get(n);r?r.push(t):M(this,wn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,ir).delete(t)){const n=Vl(t);if(typeof n=="string"){const r=M(this,wn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&M(this,wn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Vl(t);if(typeof n=="string"){const r=M(this,wn).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=Vl(t);if(typeof n=="string"){const s=(r=M(this,wn).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(){gt.batch(()=>{M(this,ir).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,ir).clear(),M(this,wn).clear()})}getAll(){return Array.from(M(this,ir))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ev(n,r))}findAll(t={}){return this.getAll().filter(n=>Ev(t,n))}notify(t){gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return gt.batch(()=>Promise.all(t.map(n=>n.continue().catch(gn))))}},ir=new WeakMap,wn=new WeakMap,Za=new WeakMap,hw);function Vl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Tv(e){return{onFetch:(t,n)=>{var d,h,f,p,g;const r=t.options,s=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const x=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)}
vendor: 8,327 bytes, lines 156-165
156)},w=ZS(t.options,t.fetchOptions),v=async(S,b,k)=>{if(m)return Promise.reject();if(b==null&&S.pages.length)return Promise.resolve(S);const _=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:b,direction:k?"backward":"forward",meta:t.options.meta};return x(A),A})(),C=await w(_),{maxPages:j}=t.options,T=k?WA:zA;return{pages:T(S.pages,C,j),pageParams:T(S.pageParams,b,j)}};if(s&&i.length){const S=s==="backward",b=S?s6:jv,k={pages:i,pageParams:o},E=b(r,k);a=await v(k,E,S)}else{const S=e??i.length;do{const b=l===0?o[0]??r.initialPageParam:jv(r,a);if(l>0&&b==null)break;a=await v(a,b),l++}while(l<S)}return a};t.options.persister?t.fetchFn=()=>{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function jv(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 s6(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 Me,zr,Wr,oo,ao,Hr,lo,co,fw,i6=(fw=class{constructor(e={}){de(this,Me);de(this,zr);de(this,Wr);de(this,oo);de(this,ao);de(this,Hr);de(this,lo);de(this,co);ee(this,Me,e.queryCache||new e6),ee(this,zr,e.mutationCache||new r6),ee(this,Wr,e.defaultOptions||{}),ee(this,oo,new Map),ee(this,ao,new Map),ee(this,Hr,0)}mount(){xl(this,Hr)._++,M(this,Hr)===1&&(ee(this,lo,eb.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Me).onFocus())})),ee(this,co,ru.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Me).onOnline())})))}unmount(){var e,t;xl(this,Hr)._--,M(this,Hr)===0&&((e=M(this,lo))==null||e.call(this),ee(this,lo,void 0),(t=M(this,co))==null||t.call(this),ee(this,co,void 0))}isFetching(e){return M(this,Me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,zr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,Me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,Me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Af(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return M(this,Me).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=M(this,Me).get(r.queryHash),i=s==null?void 0:s.state.data,o=LA(t,i);if(o!==void 0)return M(this,Me).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return gt.batch(()=>M(this,Me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,Me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,Me);gt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,Me);return gt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=gt.batch(()=>M(this,Me).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(gn).catch(gn)}invalidateQueries(e,t={}){return gt.batch(()=>(M(this,Me).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=gt.batch(()=>M(this,Me).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(gn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(gn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,Me).build(this,t);return n.isStaleByTime(Af(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gn).catch(gn)}fetchInfiniteQuery(e){return e.behavior=Tv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gn).catch(gn)}ensureInfiniteQueryData(e){return e.behavior=Tv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ru.isOnline()?M(this,zr).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,Me)}getMutationCache(){return M(this,zr)}getDefaultOptions(){return M(this,Wr)}setDefaultOptions(e){ee(this,Wr,e)}setQueryDefaults(e,t){M(this,oo).set(La(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,oo).values()],n={};return t.forEach(r=>{$a(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){M(this,ao).set(La(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,ao).values()],n={};return t.forEach(r=>{$a(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Wr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Im(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===Om&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Wr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,Me).clear(),M(this,zr).clear()}},Me=new WeakMap,zr=new WeakMap,Wr=new WeakMap,oo=new WeakMap,ao=new WeakMap,Hr=new WeakMap,lo=new WeakMap,co=new WeakMap,fw),o6=y.createContext(void 0),a6=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(o6.Provider,{value:e,children:t}));/** 157 * @remix-run/router v1.23.0 158 * 159 * Copyright (c) Remix Software Inc. 160 * 161 * This source code is licensed under the MIT license found in the 162 * LICENSE.md file in the root directory of this source tree. 163 * 164 * @license MIT 165 */function Ua(){return Ua=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},Ua.apply(this,arguments)}var Gr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Gr||(Gr={}));const Nv="popstate";function l6(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Rf("",{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:su(s)}return u6(t,n,null,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ib(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c6(){return Math.random().toString(36).substr(2,8)}function Av(e,t){return{usr:e.state,key:e.key,idx:t}}function Rf(e,t,n,r){return n===void 0&&(n=null),Ua({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ao(t):t,{state:n,key:t&&t.key||r||c6()})}function su(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 Ao(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 u6(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Gr.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(Ua({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function h(){a=Gr.Pop;let x=d(),w=x==null?null:x-c;c=x,l&&l({action:a,location:m.location,delta:w})}function f(x,w){a=Gr.Push;let v=Rf(m.location,x,w);c=d()+1;let S=Av(v,c),b=m.createHref(v);try{o.pushState(S,"",b)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(b)}i&&l&&l({action:a,location:m.location,delta:1})}function p(x,w){a=Gr.Replace;let v=Rf(m.location,x,w);c=d();let S=Av(v,c),b=m.createHref(v);o.replaceState(S,"",b),i&&l&&l({action:a,location:m.location,delta:0})}function g(x){let w=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof x=="str
165ing"?x:su(x);return v=v.replace(/ $/,"%20"),Be(w,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,w)}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(Nv,h),l=x,()=>{s.removeEventListener(Nv,h),l=null}},createHref(x){return t(s,x)},createURL:g,encodeLocation(x){let w=g(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:f,replace:p,go(x){return o.go(x)}};return m}var Pv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pv||(Pv={}));function d6(e,t,n){return n===void 0&&(n="/"),h6(e,t,n,!1)}function h6(e,t,n,r){let s=typeof t=="string"?Ao(t):t,i=Dm(s.pathname||"/",n);if(i==null)return null;let o=ob(e);f6(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=E6(i);a=b6(o[l],c,r)}return a}function ob(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("/")&&(Be(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ss([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(Be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ob(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:x6(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of ab(i.path))s(i,o,l)}),t}function ab(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=ab(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 f6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:S6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const p6=/^:[\w-]+$/,m6=3,g6=2,v6=1,y6=10,w6=-2,Rv=e=>e==="*";function x6(e,t){let n=e.split("/"),r=n.length;return n.some(Rv)&&(r+=w6),t&&(r+=g6),n.filter(s=>!Rv(s)).reduce((s,i)=>s+(p6.test(i)?m6:i===""?v6:y6),r)}function S6(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 b6(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h=Mv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!h&&c&&n&&!r[r.length-1].route.index&&(h=Mv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,180 bytes, lines 165-174
165Object.assign(s,h.params),o.push({params:s,pathname:ss([i,h.pathname]),pathnameBase:j6(ss([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=ss([i,h.pathnameBase]))}return o}function Mv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_6(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((c,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let m=a[h]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const g=a[h];return p&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function _6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ib(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 E6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ib(!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 Dm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function k6(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Ao(e):e;return{pathname:n?n.startsWith("/")?n:C6(n,t):t,search:N6(r),hash:A6(s)}}function C6(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Wd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function T6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lb(e,t){let n=T6(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function cb(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Ao(e):(s=Ua({},e),Be(!s.pathname||!s.pathname.includes("?"),Wd("?","pathname","search",s)),Be(!s.pathname||!s.pathname.includes("#"),Wd("#","pathname","hash",s)),Be(!s.search||!s.search.includes("#"),Wd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}a=h>=0?t[h]:"/"}let l=k6(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const ss=e=>e.join("/").replace(/\/\/+/g,"/"),j6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,A6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function P6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ub=["post","put","patch","delete"];new Set(ub);const R6=["get",...ub];new Set(R6);/** 166 * React Router v6.30.1 167 * 168 * Copyright (c) Remix Software Inc. 169 * 170 * This source code is licensed under the MIT license found in the 171 * LICENSE.md file in the root directory of this source tree. 172 * 173 * @license MIT 174 */function Fa(){return Fa=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},Fa.apply(this,arguments)}const Lm=y.createContext(null),M6=y.createContext(null),oi=y.createContext(null),Yu=y.createContext(null),ai=y.createContext({outlet:null,matches:[],isDataRoute:!1}),db=y.createContext(null);function I6(e,t){let{relative:n}=t===void 0?{}:t;cl()||Be(!1);let{basename:r,navigator:s}=y.useContext(oi),{hash:i,pathname:o,search:a}=fb(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:ss([r,o])),s.createHref({pathname:l,search:a,hash:i})}function cl(){return y.useContext(Yu)!=null}function ul(){return cl()||Be(!1),y.useContext(Yu).location}function hb(e){y.useContext(oi).static||y.useLayoutEffect(e)}function O6(){let{isDataRoute:e}=y.useContext(ai);return e?G6():D6()}function D6(){cl()||Be(!1);let e=y.useContext(Lm),{basename:t,future:n,navigator:r}=y.useContext(oi),{matches:s}=y.useContext(ai),{pathname:i}=ul(),o=JSON.stringify(lb(s,n.v7_relativeSplatPath)),a=y.useRef(!1);return hb(()=>{a.current=!0}),y.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=cb(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ss([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,i,e])}function fb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(oi),{matches:s}=y.useContext(ai),{pathname:i}=ul(),o=JSON.stringify(lb(s,r.v7_relativeSplatPath));return y.useMemo(()=>cb(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function L6(e,t){return $6(e,t)}function $6(e,t,n,r){cl()||Be(!1);let{navigator:s}=y.useContext(oi),{matches:i}=y.useContext(ai),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=ul(),d;if(t){var h;let x=typeof t=="string"?Ao(t):t;l==="/"||(h=x.pathname)!=null&&h.startsWith(l)||Be(!1),d=x}else d=c;let f=d.pathname||"/",p=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=d6(e,{pathname:p}),m=z6(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:ss([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:ss([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&m?y.createElement(Yu.Provider,{value:{location:Fa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Gr.Pop}},m):m}function U6(){let e=J6(),t=P6(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 y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,null)}const F6=y.createElement(U6,null);class B6 extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(ai.Provider,{value:this.props.routeContext},y.createElement(db.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function V6(e){let{routeContext:t,match:n,children:r}=e,s=y.useContext(Lm);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(ai.Provider,{value:t},r)}function z6(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||Be(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:f,errors:p}=n,g=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||g){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let p,g=!1,m=null,x=null;n&&(p=a&&h.route.id?a[h.route.id]:void 0,m=h.route.errorElement||F6,l&&(c<0&&f===0?(g=!0,x=null):c===f&&(g=!0,x=h.route.hydrateFallbackElement||null)));let w=t.concat(o.slice(0,f+1)),v=()=>{let S;return p?S=m:g?S=x:h.route.Component?S=y.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=d,y.createElement(V6,{match:h,routeC
174ontext:{outlet:d,matches:w,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?y.createElement(B6,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:v(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):v()},null)}var pb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pb||{}),iu=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}(iu||{});function W6(e){let t=y.useContext(Lm);return t||Be(!1),t}function H6(e){let t=y.useContext(M6);return t||Be(!1),t}function K6(e){let t=y.useContext(ai);return t||Be(!1),t}function mb(e){let t=K6(),n=t.matches[t.matches.length-1];return n.route.id||Be(!1),n.route.id}function J6(){var e;let t=y.useContext(db),n=H6(iu.UseRouteError),r=mb(iu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function G6(){let{router:e}=W6(pb.UseNavigateStable),t=mb(iu.UseNavigateStable),n=y.useRef(!1);return hb(()=>{n.current=!0}),y.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Fa({fromRouteId:t},i)))},[e,t])}function Y6(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ar(e){Be(!1)}function q6(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Gr.Pop,navigator:i,static:o=!1,future:a}=e;cl()&&Be(!1);let l=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:i,static:o,future:Fa({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Ao(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:g="default"}=r,m=y.useMemo(()=>{let x=Dm(d,l);return x==null?null:{location:{pathname:x,search:h,hash:f,state:p,key:g},navigationType:s}},[l,d,h,f,p,g,s]);return m==null?null:y.createElement(oi.Provider,{value:c},y.createElement(Yu.Provider,{children:n,value:m}))}function Q6(e){let{children:t,location:n}=e;return L6(Mf(t),n)}new Promise(()=>{});function Mf(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,s)=>{if(!y.isValidElement(r))return;let i=[...t,s];if(r.type===y.Fragment){n.push.apply(n,Mf(r.props.children,i));return}r.type!==Ar&&Be(!1),!r.props.index||!r.props.children||Be(!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=Mf(r.props.children,i)),n.push(o)}),n}/** 175 * React Router DOM v6.30.1 176 * 177 * Copyright (c) Remix Software Inc. 178 * 179 * This source code is licensed under the MIT license found in the 180 * LICENSE.md file in the root directory of this source tree. 181 * 182 * @license MIT 183 */function If(){return If=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},If.apply(this,arguments)}function X6(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Z6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eP(e,t){return e.button===0&&(!t||t==="_self")&&!Z6(e)}const tP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nP="6";try{window.__reactRouterVersion=nP}catch{}const rP="startTransition",Iv=jp[rP];function sP(e){let{basename:t,children:n,future:r,window:s}=e,i=y.useRef();i.current==null&&(i.current=l6({window:s,v5Compat:!0}));let o=i.current,[a,l]=y.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=y.useCallback(h=>{c&&Iv?Iv(()=>l(h)):l(h)},[l,c]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.useEffect(()=>Y6(r),[r]),y.createElement(q6,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const iP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aP=y.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:h}=t,f=X6(t,tP),{basename:p}=y.useContext(oi),g,m=!1;if(typeof c=="string"&&oP.test(c)&&(g=c,iP))try{let S=new URL(window.location.href),b=c.startsWith("//")?new URL(S.protocol+c):new URL(c),k=Dm(b.pathname,p);b.origin===S.origin&&k!=null?c=k+b.search+b.hash:m=!0}catch{}let x=I6(c,{relative:s}),w=lP(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function v(S){r&&r(S),S.defaultPrevented||w(S)}return y.createElement("a",If({},f,{href:g||x,onClick:m||i?r:v,ref:n,target:l}))});var Ov;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ov||(Ov={}));var Dv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dv||(Dv={}));function lP(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=O6(),c=ul(),d=fb(e,{relative:o});return y.useCallback(h=>{if(eP(h,n)){h.preventDefault();let f=r!==void 0?r:su(c)===su(d);l(e,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,d,r,s,n,e,i,o,a])}const cP="/assets/aiaiai-DHNPp8fN.png",uP="/assets/amazon-prime-DGvjTNGk.svg",dP="/assets/amori-sounds-BomNQBfo.png",hP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='814'%20height='1000'%20viewBox='0%200%20814%201000'%3e%3cpath%20d='M788.1%20340.9c-5.8%204.5-108.2%2062.2-108.2%20190.5%200%20148.4%20130.3%20200.9%20134.2%20202.2-.6%203.2-20.7%2071.9-68.7%20141.9-42.8%2061.6-87.5%20123.1-155.5%20123.1s-85.5-39.5-164-39.5c-76.5%200-103.7%2040.8-165.9%2040.8s-105.6-57-155.5-127C4
1836.7%20790.7%200%20663%200%20541.8c0-194.4%20126.4-297.5%20250.8-297.5%2066.1%200%20121.2%2043.4%20162.7%2043.4%2039.5%200%20101.1-46%20176.3-46%2028.5%200%20130.9%202.6%20198.3%2099.2zm-234-181.5c31.1-36.9%2053.1-88.1%2053.1-139.3%200-7.1-.6-14.3-1.9-20.1-50.6%201.9-110.8%2033.7-147.1%2075.8-28.5%2032.4-55.1%2083.6-55.1%20135.5%200%207.8%201.3%2015.6%201.9%2018.1%203.2.6%208.4%201.3%2013.6%201.3%2045.4%200%20102.5-30.4%20135.5-71.3z'/%3e%3c/svg%3e",fP="/assets/atlanta-sound-factory-CbkSKwDF.png",pP="/assets/behr-productions-CLXEHtfR.png",mP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2013.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%2014948)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20version='1.0'%20id='Layer_1'%20x='0px'%20y='0px'%20width='195.306'%20height='61.638'%20viewBox='0%200%20195.306%2061.638'%20enable-background='new%200%200%20200%2070'%20xml:space='preserve'%20inkscape:version='0.48.2%20r9819'%20sodipodi:docname='AJAX.svg'%3e%3cmetadata%20id='metadata9'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs7'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1280'%20inkscape:window-height='1004'%20id='namedview5'%20showgrid='false'%20fit-margin-top='0'%20fit-margin-left='0'%20fit-margin-right='0'%20fit-margin-bottom='0'%20inkscape:zoom='3.22'%20inkscape:cx='91.37258'%20inkscape:cy='35.019977'%20inkscape:window-x='-8'%20inkscape:window-y='-8'%20inkscape:window-maximized='1'%20inkscape:current-layer='Layer_1'%20/%3e%3cpath%20d='m%20195.306,23.928%20-24.7,0%20L%20163.02,0.03299972%20155.435,23.928%20l%20-24.7,0%2020.017,14.316%20-7.688,23.285%2019.957,-14.446%2019.951,14.446%20-7.688,-23.285%20z%20M%20153.847,-2.8266566e-7%20l%20-74.028,0%20C%2073.077,-2.8266566e-7%2069.008,0.91799972%2065.678,2.9499997%20c%20-2.771,1.756%20-5.354,4.165%20-7.391,7.1150003%20-1.399,1.978%20-2.523,4.009%20-3.396,6.165%20l%200,-0.06%20C%2054.891,8.1199997%2049.718,1.6589997%2042.417,0.55099972%2040.48,0.26999972%2037.244,-2.8266566e-7%2034.842,-2.8266566e-7%20l%20-34.842,0%20L%200,61.637%20l%2034.101,0%20c%208.868,0%2012.752,-1.026%2016.078,-4.074%203.047,-2.771%204.619,-7.12%204.619,-12.198%200,-0.141%20-0.005,-0.271%20-0.011,-0.411%202.545,7.224%207.059,12.453%2012.928,14.55%204.155,1.475%209.522,2.134%2017.183,2.134%20l%2014.174,0%200,-15.846%20-10.23,0%20C%2076.541,45.765%2072.508,46.883%2070.36,37.909%20l%2028.712,0%200,-13.916%20-28.739,-0.021%20c%200,0%201.432,-8.142%209.957,-8.142%20l%208.636,0%2019.67,0%200,45.808%2017.866,0%200,-45.808%2022.458,0%20z%20M%2015.127,15.878%20l%2019.312,0%20c%204.781,0%204.543,4.008%204.543,4.008%200,4.192%20-4.56,4.014%20-4.56,4.014%20l%20-19.295,0%20z%20m%2023.887,25.943%20c%200,4.192%20-4.552,4.024%20-4.552,4.024%20l%20-19.297,0%200,-8.033%2019.314,0%20c%204.773,0%204.535,4.009%204.535,4.009%20m%206.915,-10.962%20c%202.861,-1.172%205.294,-3.598%206.905,-6.597%20-0.243,1.891%20-0.365,3.89%20-0.365,6.04%200,2.398%200.159,4.695%200.464,6.894%20-1.466,-2.744%20-3.794,-4.884%20-7.004,-6.337'%20id='path3'%20inkscape:connector-curvature='0'%20sodipodi:nodetypes='ccccccccccccscccscsccscsccscccccccsccccccccsccccccccscccscc'%20style='fill:%23000000;stroke:none'%20/%3e%3c/svg%3e",gP="/assets/bounce-tv-CRFaI6jk.svg",vP="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBoZWlnaHQ9Ijc3cHQiIHZpZXdCb3g9IjAgMCA0MTQgNzciIHdpZHRoPSI0MTRwdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIDxtZXRhZGF0YS8+CiA8cGF0aCBkPSJtMTAuODIgMy43N2M3LjI0LTMuNTMgMTUuNzEtMy42NCAyMy40Ny0yLjA1IDUuODggMS40MSAxMi4xMiA0Ljc0IDE0LjM0IDEwLjcyIDIuMjIgNi44OSAxLjc0IDE0LjI0I
183DEuNzUgMjEuMzctNy4wNS0uMDMtMTQuMSAwLTIxLjE0LS4wMS0uMTUtNS45Mi4zMi0xMS44Ny0uMjktMTcuNzcuMTMtNC4wOC03LjEtNC4wNS03IC4wMy0uNzYgOS4yOC0uMTggMTguNjItLjM2IDI3LjkzLjE3IDUuOTQtLjQzIDExLjk2LjUxIDE3Ljg1LjU4IDIuMzYgMy41NCAyLjU0IDUuNDEgMS43NCAxLjQ0LTEuMDMgMS40Ny0yLjkyIDEuNjItNC41MS4yMy00LjQyLjA1LTguODQuMTEtMTMuMjYgNy4wNi0uMDIgMTQuMTEtLjAxIDIxLjE3LS4wMS0uMjEgNi43MS4zOSAxMy44NS0yLjQzIDIwLjEyLTQuNjggNy43NS0xNC40NCAxMC42Ni0yMy4wNCAxMC4zOS03LjU4LS4wNy0xNi4yNi0xLjgyLTIwLjk3LTguMzUtMy4zNy01LjI4LTMuMjUtMTEuODYtMy41Mi0xNy45LjA1LTEwLjcxLS4zNi0yMS40NC4zOC0zMi4xMy4zMS02LjE1IDQuNTMtMTEuNTggOS45OS0xNC4xNnoiLz4KIDxwYXRoIGQ9Im02MS43NiAyLjA4YzEwLjI0LS4xNCAyMC40OS0uMTMgMzAuNzMgMCAzLjg5IDI0LjI2IDguMDUgNDguNDggMTIuMDEgNzIuNzMtNi41OS0uMDItMTMuMTggMC0xOS43Ny0uMDItLjU4LTQuNTQtMS4wMS05LjEtMS43Mi0xMy42My0yLjM1LjA0LTQuNzEuMDQtNy4wNi4wMy40Mi00LjA2Ljg4LTguMTIgMS4zMi0xMi4xOCAxLjQ1IDAgMi44OS0uMDEgNC4zNC0uMDEtMS4zMi0xMC4zOS0yLjMxLTIwLjgzLTMuOS0zMS4xOC0yLjA2IDE5LjAyLTQuNTQgMzcuOTktNi44IDU2Ljk5LTYuNjEtLjAxLTEzLjIzLS4wMS0xOS44NC0uMDEgMy41Mi0yNC4yNCA3LjI0LTQ4LjQ2IDEwLjY5LTcyLjcyeiIvPgogPHBhdGggZD0ibTEwOC4xMiAyLjAxYzcuMDEtLjAyIDE0LjAzLS4wMSAyMS4wNS0uMDEuMDEgMTkuNCAwIDM4Ljc5LjAxIDU4LjE5IDQuMjkuMDIgOC41OC4wMSAxMi44Ny4wMS4wMiA0Ljg3LjAxIDkuNzMuMDEgMTQuNi0xMS4zMS4wMS0yMi42Mi0uMDEtMzMuOTMgMC0uMDItMjQuMjYgMC00OC41My0uMDEtNzIuNzl6Ii8+CiA8cGF0aCBkPSJtMTQ3LjA2IDIuMDFjNy4wMy0uMDIgMTQuMDctLjAxIDIxLjExLS4wMS4wMiAxOS40IDAgMzguNzkuMDEgNTguMTkgNC4yNS4wMiA4LjUuMDEgMTIuNzUuMDEuMDEgNC44Ny4wMSA5LjczLjAxIDE0LjZoLTMzLjg3Yy0uMDItMjQuMjYgMC00OC41My0uMDEtNzIuNzl6Ii8+CiA8cGF0aCBkPSJtMjA3LjEyIDIuMDFjOS4zLS4wNyAxOC42MSAwIDI3LjkuNDEgNC44OS4zNSAxMC4wMS42OSAxNC4zNyAzLjE2IDMuOTMgMi4zNiA2LjM0IDYuODMgNi4zOCAxMS40LjY0IDEyLjY2LjI3IDI1LjM2LjMxIDM4LjAzLS4yNSA1LjIzLjMgMTEuMzEtMy40OSAxNS40OC00LjIyIDMuODYtMTAuMjggNC4wNS0xNS42OSA0LjI3LTkuOTIuMTEtMTkuODUgMC0yOS43OC4wNC0uMDEtMjQuMjYgMC00OC41MyAwLTcyLjc5bTIxLjExIDEyLjUyYy4wMSAxNS45OC4wMSAzMS45NSAwIDQ3LjkzIDIuMDEtLjQ0IDUuMDctLjAzIDUuOTYtMi40MSAxLjI0LTUuMjUuNTgtMTAuNzMuNzUtMTYuMDktLjE3LTguNzYuMzctMTcuNTYtLjMxLTI2LjMxLS4yOS0zLjE1LTQuMDctMy4wMi02LjQtMy4xMnoiLz4KIDxwYXRoIGQ9Im0yNjEuMzUgMi4wMWM3LS4wMiAxNCAwIDIxLS4wMS4wMSAxNy42OCAwIDM1LjM2IDAgNTMuMDQuMDQgMi4zNC0uMDEgNC43LjQzIDcuMDEuMzIgMi42NSA0Ljk5IDIuNTMgNS4xOS0uMTMuNDctMi4yOC40Mi00LjYyLjQ1LTYuOTMtLjAyLTE3LjY2LjAxLTM1LjMyLS4wMi01Mi45OCA3LS4wMyAxNCAwIDIxLjAxLS4wMS0uMDIgMTcgLjA2IDM0LS4wNCA1MC45OS0uMjIgNC42OC4zIDkuODMtMi40OCAxMy45LTMuMzEgNS41NS05Ljc0IDguMzctMTUuOTYgOS4wMy03Ljg4LjktMTYuNDUtLjAzLTIzLjA1LTQuNzctNC4xNS0yLjk1LTYuMzItOC4wMy02LjI3LTEzLjA1LS41LTE4LjY5LS4xNS0zNy4zOS0uMjYtNTYuMDl6Ii8+CiA8cGF0aCBkPSJtMzEzLjk0IDJoNDYuMjNjLjAxIDQuODcgMCA5LjczLjAxIDE0LjYtNC4xOCAwLTguMzYtLjAxLTEyLjUzLjAxdjU4LjE5Yy03LjA2IDAtMTQuMTIuMDEtMjEuMTgtLjAxdi01OC4xOGMtNC4xNi0uMDEtOC4zMi0uMDItMTIuNDggMC0uMDktNC44Ny0uMDQtOS43NC0uMDUtMTQuNjF6Ii8+CiA8cGF0aCBkPSJtMzYzLjk2IDJjNi40OC4wOCAxMi45Ni0uMTcgMTkuNDQuMTMgMy45OCAxMy4wNyA4LjMzIDI2LjAyIDEyLjQ1IDM5LjA1Ljk1IDMuMjIgMi41MSA2LjM3IDIuNDEgOS44LS4wNSA4LjA3LS4wMSAxNi4xNC0uMDMgMjQuMjEtNi40OS4wMS0xMi45Ny4wMS0xOS40NiAwIDAtNy43NC0uMDMtMTUuNDguMDItMjMuMjMuMDItMS43NC0uMDktMy41MS0uNjQtNS4xOC00Ljc2LTE0LjkxLTkuNDUtMjkuODUtMTQuMTktNDQuNzh6Ii8+CiA8cGF0aCBkPSJtMzk0LjI1IDIuMDFjNi40NC0uMDIgMTIuODggMCAxOS4zMi0uMDEtNC41NCAxMy43OC05LjAyIDI3LjU4LTEzLjU2IDQxLjM2LTIuODgtOS4yLTYuMTEtMTguMzEtOC43Mi0yNy41OC42MS00LjY1IDIuMDItOS4xNyAyLjk2LTEzLjc3eiIvPgogPHBhdGggZD0ibTE3OC41NCAxOS40NmMzLjctMS42MyA5LjI0LS4wNSA5Ljg1IDQuNDEuNDEgNS4zOC40NSAxMC44NC0uMDQgMTYuMjItMS4xMiA2LjE5LTExLjQ3IDYuNDgtMTMuMS40OC0uOC00LjgxLS4zNS05Ljc2LS4zNy0xNC42Mi0uMTItMi42MyAxLjExLTUuNDYgMy42Ni02LjQ5bTIuNTIgMy40NGMtLjQ0IDUuOTUtLjI2IDExLjkzLS4xMSAxNy44OWwxLjQxLS40NmMuNjMtNS40OS40NC0xMS4xMi4xMy0xNi42My0uMzUtLjItMS4wNy0uNi0xLjQzLS44eiIvPgogPHBhdGggZD0ibTE5MC41OCAxOS40MWMzLjE5LS4wMSA2LjM3LS4wMiA5LjU1IDAtLjAxIDEuNjUtLjAyIDMuMzEtLjAyIDQuOTdsLTMuODcuMDNjMCAxLjU5LS4wMSAzLjE4LS4wMSA0Ljc3IDEuMTUuMDEgMi4zMS4wMiAzLjQ4LjA0IDAgMS41MiAwIDMuMDQuMDEgNC41Ni0xLjE3LjAxLTIuMzMuMDItMy40OC4wMyAwIDMuNTMtLjAxIDcuMDUgMCAxMC41OC0xLjg5IDAtMy43Ny4wMS01LjY1LjAyLS4wMS04LjM0IDAtMTYuNjctLjAxLTI1eiIvPgogPHRleHQgZm9udC1mYW1pbHk9IkltcGFjdCIgZm9udC1zaXplPSI0Ny4zMDMiIGxldHRlci1zcGFjaW5nPSIwIiB0cmFuc2Zvcm09InNjYWxlKDEuMDI4MTUgLjk3MjYyKSIgd29yZC1zcGFjaW5nPSIwIiB4PSIzOTAuMTkiIHk9Ijc5LjA2Ij48dHNwYW4gZm9udC1zaXplPSIxMS44MjYiIGZvbnQtd2VpZ2h0PSJib2xkIiB4PSIzOTAuMTkiIHk9Ijc5LjA2Ij7CrjwvdHNwYW4+PC90ZXh0Pgo8L3N2Zz4K",yP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20width='240'%20height='70'%20id='svg6051'%20viewBox='0%200%20240%2070'%3e%3cdefs%20id='defs6053'%20/%3e%3cmetadata%20id='metadata6056'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%3e%3c/dc:title%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cg%20transform='translate(-345.72101,-518.64656)'%20id='layer1'%3e%3cpath%20d='m%20462.04901,544.4281%20c%20-0.84,-5.935%20-6.52,-10.445%20-13.04,-10.445%20-11.785,0%20-16.215,10.025%20-16.215,20.475%200,9.95%204.43,19.975%2016.215,19.975%208.02,0%2012.535,-5.515%2013.535,-13.375%20l%2012.71,0%20c%20-1.34,14.88%20-11.62,24.405%20-26.245,24.405%20-18.475,0%20-29.34,-13.79%20-29.34,-31.005%200,-17.72%2010.865,-31.51%2029.34,-31.51%2013.12,0%2024.15,7.69%2025.745,21.48%20l%20-12.705,0%20z'%20id='path984'%20style='fill:%23000000;fill-opacity:1;fill-rule:nonzero;stroke:none'%20/%3e%3cpath%20d='m%20479.18653,524.36954%2028.085,0%20c%2011.365,0%2019.055,3.675%2019.055,14.79%200,5.855%20-2.92,9.95%20-8.105,12.455%207.27,2.09%2010.95,7.69%2010.95,15.13%200,12.125%20-10.28,17.3%20-21.065,17.3%20l%20-28.92,0%200,-59.675%20z%20m%2013.125,24.155%2013.29,0%20c%204.595,0%208.02,-2.095%208.02,-7.11%200,-5.68%20-4.345,-6.85%20-9.025,-6.85%20l%20-12.285,0%200,13.96%20z%20m%200,25.32%2014.045,0%20c%205.18,0%209.69,-1.67%209.69,-7.85%200,-6.1%20-3.845,-8.53%20-9.445,-8.53%20l%20-14.29,0%200,16.38%20z'%20id='path988'%20style='fill:%23000000;fill-opacity:1;fill-rule:nonzero;stroke:none'%20/%3e%3cpath%20d='m%20545.30697,564.23506%20c%200,7.94%206.19,11.03%2013.21,11.03%204.595,0%2011.615,-1.335%2011.615,-7.435%200,-6.435%20-8.94,-7.52%20-17.715,-9.865%20-8.86,-2.34%20-17.805,-5.77%20-17.805,-16.965%200,-12.205%2011.53,-18.055%2022.315,-18.055%2012.45,0%2023.905,5.43%2023.905,19.225%20l%20-12.705,0%20c%20-0.415,-7.185%20-5.52,-9.025%20-11.79,-9.025%20-4.17,0%20-9.025,1.755%20-9.025,6.7
1837%200,4.595%202.845,5.18%2017.805,9.03%204.35,1.08%2017.72,3.84%2017.72,17.38%200,10.95%20-8.61,19.14%20-24.825,19.14%20-13.205,0%20-25.575,-6.52%20-25.41,-21.23%20l%2012.705,0%20z'%20id='path992'%20style='fill:%23000000;fill-opacity:1;fill-rule:nonzero;stroke:none'%20/%3e%3cpath%20d='m%20348.60505,553.63906%20c%200,-17.76%2014.395,-32.155%2032.155,-32.155%2017.765,0%2032.165,14.395%2032.165,32.155%200,17.765%20-14.4,32.17%20-32.165,32.17%20-17.76,0%20-32.155,-14.405%20-32.155,-32.17%20m%2062.37,0%20c%20-4.875,-10.63%20-16.19,-19.175%20-30.215,-19.175%20-14.025,0%20-25.335,8.545%20-30.21,19.175%204.875,10.635%2016.185,19.175%2030.21,19.175%2014.025,0%2025.34,-8.54%2030.215,-19.175'%20id='path996'%20style='fill:%23000000;fill-opacity:1;fill-rule:nonzero;stroke:none'%20/%3e%3cpath%20d='m%20363.56057,553.47754%20c%200,-9.42%207.625,-17.05%2017.035,-17.05%209.415,0%2017.045,7.63%2017.045,17.05%200,9.41%20-7.63,17.04%20-17.045,17.04%20-9.41,0%20-17.035,-7.63%20-17.035,-17.04'%20id='path1000'%20style='fill:%23000000;fill-opacity:1;fill-rule:nonzero;stroke:none'%20/%3e%3c/g%3e%3c/svg%3e",wP="/assets/clint-productions-BFSMpZbi.png",xP="/assets/comcast-E9v4lVeF.svg",SP="/assets/disney-plus-CJc5DSMz.svg",bP="/assets/espn-D1I9faZz.png",_P="/assets/fox-sports-azc7pIxk.svg",EP="/assets/gatorade-CzNhkO8z.svg",kP="/assets/georgia-state-university-Ca12tGRf.svg",CP="/assets/grayson-music-CXYKI0Ks.png",TP="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20216%2071.15'%3e%3cg%20style='fill:%231CE783'%3e%3cpath%20d='M102.07,22.2c0,0,0,27.75,0,28.71c0,2.54-2.05,4.6-4.6,4.6H87.5c-2.54,0-4.6-2.06-4.6-4.6%20c0-0.96,0-28.71,0-28.71H65.74v30.14c0,12.32,7.88,18.81,19.53,18.81H99.7c11.65,0,19.53-6.49,19.53-18.81V22.2H102.07z'/%3e%3cpath%20d='M198.85,22.2c0,0,0,27.75,0,28.71c0,2.54-2.05,4.6-4.6,4.6h-9.98c-2.54,0-4.6-2.06-4.6-4.6%20c0-0.96,0-28.71,0-28.71h-17.16v30.14c0,12.32,7.88,18.81,19.53,18.81h14.42c11.65,0,19.53-6.49,19.53-18.81V22.2H198.85z'/%3e%3cpath%20d='M33.95,22.2c0,0-8.94,0-11,0c-3.86,0-5.8,1.04-5.8,1.04V0H0v71.15h17.15V42.44c0-2.54,2.06-4.6,4.6-4.6h9.98%20c2.54,0,4.59,2.06,4.59,4.6v28.71l17.16,0V40.21C53.48,27.21,44.81,22.2,33.95,22.2z'/%3e%3crect%20x='132.3'%20width='17.16'%20height='71.15'/%3e%3c/g%3e%3c/svg%3e",jP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Livello_1'%20data-name='Livello%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20136.96'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23ec1f3a;%20stroke-width:%200px;%20}%20%3c/style%3e%3c/defs%3e%3cpolygon%20class='cls-1'%20points='137.11%2048.76%20156.63%2048.76%20162.59%2084.12%20168.5%2048.76%20188.01%2048.76%20188.01%2087.48%20177.72%2087.48%20177.72%2051.56%20171.2%2087.48%20153.98%2087.48%20147.45%2051.82%20147.45%2087.48%20137.11%2087.48%20137.11%2048.76'/%3e%3cpath%20class='cls-1'%20d='M198.02,84.02c-2.8-2.78-4.2-6.79-4.2-12.02v-23.23h11.36v24.51c0,2.01.5,3.54,1.5,4.61,1,1.07,2.44,1.6,4.3,1.6s3.3-.54,4.31-1.63c1-1.09,1.5-2.65,1.5-4.69v-24.4h11.31v23.13c0,10.87-5.71,16.3-17.12,16.3-5.84,0-10.16-1.39-12.97-4.18'/%3e%3cpolygon%20class='cls-1'%20points='233.91%2048.76%20245.27%2048.76%20245.27%2078.31%20260.96%2078.31%20260.96%2087.48%20233.91%2087.48%20233.91%2048.76'/%3e%3cpolygon%20class='cls-1'%20points='267.69%2057.93%20256.68%2057.93%20256.68%2048.76%20290.1%2048.76%20290.1%2057.93%20279.05%2057.93%20279.05%2087.48%20267.69%2087.48%20267.69%2057.93'/%3e%3crect%20class='cls-1'%20x='293.97'%20y='48.76'%20width='11.36'%20height='38.72'/%3e%3cpolygon%20class='cls-1'%20points='311.5%2048.76%20331.01%2048.76%20336.97%2084.12%20342.88%2048.76%20362.4%2048.76%20362.4%2087.48%20352.1%2087.48%20352.1%2051.56%20345.58%2087.48%20328.36%2087.48%20321.84%2051.82%20321.84%2087.48%20311.5%2087.48%20311.5%2048.76'/%3e%3cpolygon%20class='cls-1'%20points='368.56%2048.76%20396.94%2048.76%20396.94%2057.93%20379.92%2057.93%20379.92%2063.18%20396.58%2063.18%20396.58%2072.35%20379.92%2072.35%20379.92%2078.31%20397.4%2078.31%20397.4%2087.48%20368.56%2087.48%20368.56%2048.76'/%3e%3cpath%20class='cls-1'%20d='M402.59,48.76h15.54c4.11,0,7.67.68,10.67,2.04,3.01,1.36,5.35,3.48,7.03,6.37,1.68,2.89,2.52,6.54,2.52,10.95s-.84,8.07-2.52,10.95c-1.68,2.89-4.03,5.01-7.03,6.37-3.01,1.36-6.56,2.04-10.67,2.04h-15.54v-38.72ZM418.38,78.31c2.65,0,4.69-.87,
1836.14-2.62,1.44-1.75,2.17-4.27,2.17-7.57s-.72-5.82-2.17-7.57c-1.44-1.75-3.49-2.62-6.14-2.62h-4.43v20.38h4.43Z'/%3e%3crect%20class='cls-1'%20x='442.99'%20y='48.76'%20width='11.36'%20height='38.72'/%3e%3cpath%20class='cls-1'%20d='M468.82,48.76h19.56l11.62,38.72h-11.87l-2.45-8.97h-14.21l-2.44,8.97h-11.87l11.67-38.72ZM483.19,69.34l-4.58-16.91-4.64,16.91h9.22Z'/%3e%3cpath%20class='cls-1'%20d='M59.31,0l-29.65,17.12L0,34.24v68.47l29.66,17.12,29.66,17.12,29.66-17.12,29.66-17.12V34.24l-29.67-17.12L59.31,0ZM34.39,103.85l-18.17-10.49v-49.75l18.17-10.49v70.74ZM102.4,60.23l-14.34,8.26,14.34,8.27v16.62l-18.17,10.49v-18.71l-15.57-8.97v36.66l-9.35,5.4-9.35-5.4V24.12l9.35-5.4,9.35,5.4v36.66l15.57-8.97v-18.7l18.17,10.49v16.62Z'/%3e%3c/svg%3e",NP="/assets/kfc-C3eq8SXQ.svg",AP="/assets/level-77-music-4Sz8Jo9J.png",PP="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='38.023769'%20viewBox='0%200%20300%2038.023769'%3e%3cg%20transform='translate(-261.42854,-356.20746)%20matrix(5.4346842,0,0,-5.4346842,-2380.916,2519.921)'%20style='fill:%23000000'%3e%3cg%20transform='translate(529.8782,396.5835)'%3e%3cpath%20d='m%200,0%201.999,0%200,-5.237%201.446,0%200,5.237%201.999,0%200,1.333%20L%200,1.333%200,0%20z%20m%20-22.314,-2.712%20-3.078,4.045%20-1.333,0%200,-6.57%201.426,0%200,4.177%203.182,-4.177%201.23,0%200,6.57%20-1.427,0%200,-4.045%20z%20m%2012.375,-0.187%201.903,0%20c%20-0.089,-0.499%20-0.579,-1.234%20-1.803,-1.234%20-1.202,0%20-2.168,0.955%20-2.168,2.174%200,1.244%200.941,2.182%202.189,2.182%201.26,0%201.842,-0.995%201.866,-1.037%20l%201.121,0.694%20c%20-0.658,1.059%20-1.746,1.667%20-2.987,1.667%20-1.962,0%20-3.56,-1.566%20-3.56,-3.491%200,-1.965%201.544,-3.506%203.514,-3.506%201.828,0%203.259,1.313%203.259,3.088%20l%200,0.764%20-3.334,0%200,-1.301%20z%20m%20-6.138,1.432%20c%20-0.946,0.354%20-1.883,0.477%20-1.883,1.11%200,0.367%200.383,0.643%201.192,0.643%200.777,0%201.66,-0.356%202.247,-0.666%20l%200,1.4%20c%20-0.794,0.332%20-1.555,0.527%20-2.339,0.527%20-1.589,0%20-2.662,-0.803%20-2.662,-1.969%200,-1.274%201.084,-1.725%201.842,-2.007%200.947,-0.354%201.854,-0.484%201.854,-1.117%200,-0.367%20-0.437,-0.641%20-1.245,-0.642%20-0.754,-0.001%20-1.672,0.355%20-2.259,0.666%20l%200,-1.406%20c%200.822,-0.353%201.575,-0.522%202.351,-0.522%201.604,0%202.714,0.804%202.714,1.97%200,1.274%20-1.055,1.729%20-1.812,2.013%20M%20-31.53,-4.074%20c%20-1.158,0%20-2.065,0.934%20-2.065,2.126%200,1.188%200.921,2.119%202.096,2.119%201.163,0%202.073,-0.924%202.073,-2.103%200,-1.221%20-0.904,-2.142%20-2.104,-2.142%20m%200.016,5.621%20c%20-1.91,0%20-3.464,-1.554%20-3.464,-3.464%200,-1.944%201.536,-3.526%203.425,-3.526%201.973,0%203.518,1.545%203.518,3.518%200,1.915%20-1.56,3.472%20-3.479,3.472%20m%20-10.719,-0.214%20-1.445,0%200,-6.57%204.709,0%200,1.314%20-3.264,0%200,5.256%20z%20m%2053.261,-5.284%20-3.07,0%200,1.38%202.814,0%20c%20-0.021,0.23%20-0.033,0.463%20-0.033,0.7%200,0.197%200.011,0.392%200.026,0.585%20l%20-2.807,0%200,1.333%203.038,0%20c%200.121,0.447%200.283,0.877%200.482,1.286%20l%200,0%20-4.955,0%200,-6.57%205,0%20c%20-0.202,0.408%20-0.368,0.839%20-0.495,1.286%20m%20-48.813,-1.286%201.446,0%200,6.57%20-1.446,0%200,-6.57%20z%20m%2033.959,2.506%200.975,2.374%200.982,-2.374%20-1.957,0%20z%20m%200.308,4.065%20-2.796,-6.571%201.474,0%200.524,1.293%202.931,0%200.524,-1.293%201.512,0%20-2.797,6.569%20-1.372,0.002%20z'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",RP="/assets/marvel-studios-RaDAxlbv.png",MP="/assets/mountain-dew-FBCCpRTX.svg",IP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20width='1000px'%20height='618.648px'%20viewBox='-202.36%20111.622%201000%20618.648'%20enable-background='new%20-202.36%20111.622%201000%20618.648'%20xml:space='preserve'%20sodipodi:docname='MTV_2021_Retro.svg'%20inkscape:version='1.0.2%20(e86c870879,%202021-01-15)'%3e%3cmetadata%20id='metadata25'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs23'%3e%3c/defs%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1366'%20inkscape:window-height='705'%20id='namedview2
1831'%20showgrid='false'%20inkscape:zoom='0.5'%20inkscape:cx='454'%20inkscape:cy='309.32401'%20inkscape:window-x='-8'%20inkscape:window-y='-8'%20inkscape:window-maximized='1'%20inkscape:current-layer='Layer_1'%20/%3e%3cg%20id='g903'%3e%3cpath%20id='polygon2'%20style='fill:%23f7f908'%20d='M%20227.753,586.51%20333.948,480.313%20V%20674.229%20H%20658.03%20V%20111.622%20H%20337.61%20L%20227.753,221.313%20118.06,111.622%20H%20-202.36%20V%20674.229%20H%20121.722%20V%20480.313%20Z'%20/%3e%3cpath%20id='path17934'%20d='m%20308.57,586.48%20h%20-44.442%20l%2044.442,-44.401%20z%20m%20-161.142,87.749%20h%2044.72%20v%20-87.281%20l%20-44.72,-44.679%20z%20m%201.426,-562.607%2078.899,78.898%2037.451,-37.286%20z%20m%20579.418,32.791%20-48.77,-32.791%20v%20562.607%20h%2048.77%20z'%20style='fill:%2300aacd;fill-opacity:1'%20/%3e%3cpath%20id='path12'%20d='m%20787.864,200.174%20c%20-14.815,-14.814%20-36.621,-12.317%20-49.437,-5.16%20-18.976,10.486%20-33.623,36.287%20-42.612,45.774%20-97.041,101.703%20-123.174,197.245%20-132.33,217.219%20-1.83,4.162%20-4.992,7.824%20-10.485,7.824%20-4.162,0%20-7.99,-2.33%20-9.321,-8.823%20-4.161,-19.475%20-6.825,-52.932%20-9.987,-95.875%20-1.664,-22.804%20-18.643,-33.291%20-39.448,-27.798%20-20.142,5.161%20-29.297,18.144%20-27.466,40.781%201.333,17.644%205.327,35.121%2015.98,82.892%202.496,11.652%2024.634,110.192%2043.776,137.823%2023.303,33.623%2065.416,21.805%2066.08,-7.656%200.333,-17.313%202.165,-30.461%206.826,-47.939%2017.144,-59.59%2039.781,-98.538%2057.425,-133.827%2039.949,-79.564%2085.391,-116.516%2085.391,-116.516%2040.78,-13.483%2049.769,-34.29%2052.266,-40.947%202.829,-7.657%207.656,-33.623%20-6.658,-47.772%20z%20M%20447.135,579.519%20c%200,-10.654%201.499,-53.931%201.499,-88.72%200,-29.295%20-8.489,-82.227%20-8.489,-110.523%200,-16.979%200,-36.787%20-0.666,-45.275%2013.649,-8.822%2026.965,-17.811%2065.083,-39.283%2013.648,-7.657%2040.614,-19.974%2040.614,-41.114%200,-14.148%20-13.149,-34.288%20-33.79,-29.794%20-18.643,3.995%20-18.144,18.643%20-48.104,37.118%20-24.303,14.981%20-37.285,22.305%20-42.279,25.135%20-1.996,-0.833%20-10.319,-5.826%20-23.637,-5.826%20-13.981,0%20-30.128,6.325%20-30.128,24.302%200,8.323%202.665,17.311%20-8.487,23.137%20-6.16,3.995%20-44.775,26.632%20-77.068,46.106%20-27.297,16.479%20-39.948,15.147%20-51.433,21.972%20-10.653,6.326%20-13.315,15.98%20-13.315,22.971%200,6.16%203.829,13.981%205.326,15.647%207.324,9.321%2013.816,14.48%2025.468,14.48%2019.474,0%2035.787,-17.144%2065.915,-38.451%2018.809,-13.315%2044.275,-32.624%2054.429,-32.624%208.989,0%2015.313,6.824%2015.313,34.789%200,93.545%20-5.658,109.526%20-5.658,174.441%200,11.651%200.499,33.29%200.832,42.278%200.332,11.818%20-0.333,45.608%20-0.999,58.26%20-0.333,10.319%209.154,46.105%2038.949,41.279%2030.96,-4.993%2038.117,-23.47%2038.45,-36.12%200.333,-12.318%20-2.163,-46.272%20-3.828,-63.252%20-2.165,-13.981%20-3.997,-33.623%20-3.997,-50.933%20z'%20style='fill:%23ff3c3c;fill-opacity:1'%20/%3e%3c/g%3e%3c/svg%3e",OP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1024'%20height='276.742'%20viewBox='0%200%201024%20276.742'%3e%3cpath%20d='M140.803%20258.904c-15.404%202.705-31.079%203.516-47.294%205.676l-49.458-144.856v151.073c-15.404%201.621-29.457%203.783-44.051%205.945v-276.742h41.08l56.212%20157.021v-157.021h43.511v258.904zm85.131-157.558c16.757%200%2042.431-.811%2057.835-.811v43.24c-19.189%200-41.619%200-57.835.811v64.322c25.405-1.621%2050.809-3.785%2076.482-4.596v41.617l-119.724%209.461v-255.39h119.724v43.241h-76.482v58.105zm237.284-58.104h-44.862v198.908c-14.594%200-29.188%200-43.239.539v-199.447h-44.862v-43.242h132.965l-.002%2043.242zm70.266%2055.132h59.187v43.24h-59.187v98.104h-42.433v-239.718h120.808v43.241h-78.375v55.133zm148.641%20103.507c24.594.539%2049.456%202.434%2073.51%203.783v42.701c-38.646-2.434-77.293-4.863-116.75-5.676v-242.689h43.24v201.881zm109.994%2049.457c13.783.812%2028.377%201.623%2042.43%203.242v-254.58h-42.43v251.338zm231.881-251.338l-54.863%20131.615%2054.863%20145.127c-16.217-2.162-32.432-5.135-48.648-7.838l-31.078-79.994-31.617%2073.51c-15.678-2.705-30.812-3.516-46.484-5.678l55.672-126.75-50.269-129.992h46.482l28.377%2072.699%2030.27-72.699h47.295z'%20fill='%23d81f26'/%3e%3c/svg%3e",DP="data:image/svg+xml,%3csvg%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xml:space='preserve'%20height='370.7157504042219'%20viewBox='0%200%20178.51707%20245.94141'%20width='269.74845252990133'%20version='1.1'%3e%3cdefs%3e%3cclipPath%20id='a'%20clipPathUnits='userSpaceOnUse'%3e%3cpath%20d='m19%200h574v792h-574v-792z'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1.25%200%200%20-1.25%20-294%20617)'%3e%3cg%20style=''%20transform='matrix(.716%200%200%20.716%2087.1%20112)'%3e%3cg%20style=''%20clip-path='url(%23a)'%20transform='matrix(.347%200%200%20.347%20200%20258)'%3e%3cpath%20d='m575%20701c-24-18-72-42-132-27-106%2026-136%20117-136%20117s-30.2-90.9-136-117c-60.9-15-108%209.2-133%2026.9h-19v-490c0-13%203-37%2023.1-62%2024.9-30%2066.9-49.3%20125-57.7%2047-6.7%2081-21.3%20105-44.6%2018-17.1%2035-46.7%2035-46.7s17.5%2030.2%2034.6%2046.7c24.2%2023.3%2058.5%2037.8%20105%2044.6%2058.2%208.41%20100%2028%20125%2058.1%2020.1%2024.4%2023.1%2048.9%2023.1%2061.2v490h-19.1'%20fill='%23fff'/%3e%3cpath%20d='m577%20682s-
18357.7-44.9-139-24.6c-94.7%2023.7-132%2094.6-132%2094.6s-36.8-71-132-94.6c-80-20-138%2025-138%2025v-471c0.0098-16%206.7-84%20134-102%2050.1-7.25%2087.5-23.3%20114-49.2%209.68-9.28%2017-18.7%2022.6-27.4%205.63%208.67%2013%2018.1%2022.6%2027.4%2026.9%2025.9%2064.3%2042%20114%2049.2%20127%2018.3%20133%2086.3%20134%20102v471'%20fill='%23013369'/%3e%3cpath%20d='m307%2079.7s36.8%2045.4%20132%2060.1c110%2016.9%20106%2068.3%20106%2070.9v247h-477v-247c0-2.6-3.24-54%20106-70.9%2095.6-14.8%20132-60.1%20132-60.1'%20fill='%23fff'/%3e%3cg%20fill='%23D50A0A'%3e%3cpath%20d='m195%20277-0.0173%20117-14.7%208.25v30.4h67.1v-30.4l-14-8.25v-239l-35.8%2010.7-51.8%20153-0.01-101%2016.5-12.6v-31.1l-71.9%2018.3v26.5l16.5%206.44v169l-16.9%208.35v30.4h54.4l50.8-156'/%3e%3cpath%20d='m319%20170%2014.4-17.2v-30.4l-71.3%2026.6v25.8l15.7%206.44v213l-15.6%207.91v30.8h124v-61.9h-27.2l-8.24%2025.4h-31.5v-71.6h23.6l9.3%2013.6h19v-63.7h-19l-8.95%2012.9h-24v-118'/%3e%3cpath%20d='m398%20159v30.4l17.7%2014.5v190l-15.1%207.91v30.8h71.3v-30.8l-14-7.91v-179l30.7%208.29%205.88%2046.8h29.3v-78.2l-126-33.6'/%3e%3c/g%3e%3cg%20fill='%23fff'%3e%3cpath%20d='m80.5%20508-21.6%2016.2h26.4l8.71%2025%208.71-25h26.4l-21.6-16.3%207.94-25.4-21.5%2015.1-21.5-15.1%207.94%2025.4'/%3e%3cpath%20d='m174%20508-21.6%2016.2h26.4l8.71%2025%208.71-25h26.4l-21.6-16.3%207.94-25.4-21.5%2015.1-21.5-15.1%207.94%2025.4'/%3e%3cpath%20d='m80.5%20592-21.6%2016.2h26.4l8.71%2025%208.71-25h26.4l-21.6-16.3%207.94-25.4-21.5%2015.1-21.5-15.1%207.94%2025.4'/%3e%3cpath%20d='m174%20592-21.6%2016.2h26.4l8.71%2025%208.71-25h26.4l-21.6-16.3%207.94-25.4-21.5%2015.1-21.5-15.1%207.94%2025.4'/%3e%3cpath%20d='m541%20483-21.5%2015.1-21.5-15.1%207.94%2025.4-21.6%2016.3h26.4l8.71%2025%208.71-25h26.4l-21.6-16.3%207.95-25.4'/%3e%3cpath%20d='m447%20483-21.5%2015.1-21.5-15.1%207.94%2025.4-21.6%2016.3h26.4l8.71%2025%208.72-25h26.4l-21.6-16.3%207.95-25.4'/%3e%3cpath%20d='m541%20567-21.5%2015.1-21.5-15.1%207.94%2025.4-21.6%2016.3h26.4l8.71%2025%208.71-25h26.4l-21.6-16.3%207.95-25.4'/%3e%3cpath%20d='m447%20567-21.5%2015.1-21.5-15.1%207.94%2025.4-21.6%2016.3h26.4l8.71%2025%208.72-25h26.4l-21.6-16.3%207.95-25.4'/%3e%3cpath%20d='m327%20611c-9.61%207.92-20.4%2013-31.8%2015.5%202.77%202.62%205.61%204.87%208.1%206.95%2014.3-3.44%2023.9-9.85%2030.5-15.3-2.34-2.4-4.61-4.74-6.76-7.13zm-13.9-16.7c-9.16%207.69-20.3%2013.4-32.9%2016%201.93%202.49%204.19%205.14%206.36%207.6%209.64-1.71%2022-6.79%2032.8-15.7-2.2-2.64-4.26-5.32-6.2-7.87zm-12.5-17.5c-9.88%208.23-21.4%2013.3-32.7%2015.4%200%200%203.47%205.66%205.44%208.59%2013.8-2.74%2025-9.2%2032.9-15.8-2.02-2.88-3.93-5.64-5.64-8.18zm65.3%2083.6s-11.2-5.83-26.8-21.2c3.52-1.99%207.48-4.77%209.75-6.66-2.36-2.09-4.77-4.35-7.01-6.47-10.2%208.37-20.7%2012.6-28.9%2014.6%202.72%201.95%205.61%203.87%208.46%205.73%204.4-1.12%208.66-2.85%208.66-2.85%2017.6%2013.4%2032.9%2019.2%2032.9%2019.2s-1.77%200.866-6.48%200.804c-69.3-0.895-133-52.6-121-141%201.29-9.39%204.94-26.5%209.58-34%201.54%2014.7%207.08%2047.3%2023.5%2082.3-5.71%202.05-10.4%202.89-10.4%202.89%201.68%203.52%204.01%208.01%204.01%208.01%2012.2-2.29%2022.9-7.38%2032.2-14.8-2.23-3.61-3.74-5.96-4.81-7.82-3.26%202.57-6.56%204.78-10.2%206.8-18.5-32.3-27-62.8-30.5-78.7%200.192-0.984%202.2-1.49%203.82-1.28%2075.9%209.83%20111%2048.6%20122%2090.5%207.11%2027.5%204.78%2056.3-4.74%2079.8-0.669%201.65-1.97%204.39-4.18%204.19'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",LP="/assets/nintendo-DeNt7p49.svg",$P="/assets/own-32cMwAJs.svg",UP="/assets/paramount-plus-DDhY9Sb3.svg",FP="/assets/pendulum-BfYaJO8N.png",BP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='799.61'%20height='799.59'%20viewBox='0%200%20211.56%20211.56'%3e%3cpath%20fill='%23fff'%20d='M209.58%20105.78a103.8%20103.8%200%200%201-103.8%20103.8%20103.8%20103.8%200%200%201-103.8-103.8%20103.8%20103.8%200%200%201%20103.8-103.8%20103.8%20103.8%200%200%201%20103.8%20103.8Z'%20color='%23000'/%3e%3cpath%20d='M105.78%200C47.38%200%200%2047.38%200%20105.78s47.38%20105.78%20105.78%20105.78%20105.78-47.38%20105.78-105.78S164.18%200%20105.78%200zm0%203.97a101.78%20101.78%200%200%201%20101.81%20101.8A101.78%20101.78%200%200%201%20105.78%20207.6%20101.78%20101.78%200%200%201%203.97%20105.78%20101.78%20101.78%200%200%201%20105.77%203.97z'%20color='%23000'/%3e%3cpath%20d='M157%2085.13c-12.07%200-18.38%205.11-18.38%2012.95%200%202.5%201.55%206.08%204.16%207.77%204.57%202.96%208.4%203.4%2013.65%204.68%203.01.74%206.28%201.59%206.28%203.51%200%201.6-1.62%202.79-5.9%202.79-8.48%200-10.15-4.47-10.15-4.47l-10.86%203.99c2.3%207.31%2013.55%209.82%2021%209.82%207.97%200%2012.57-1.7%2015.5-4.5%203.23-3.08%203.55-6.06%203.55-8.89%200-2.5-.98-5.82-5.78-8.6-3.5-2.01-10.56-3.25-13.64-3.9-1.16-.26-4.89-.8-4.89-3%200-1.64%202.33-2.53%205.46-2.53%206.18%200%207.17%204.18%207.17%204.18l10.9-4.01c-1.7-7.65-10.66-9.79-18.07-9.79zm36.02.19-13.07%204.8v34.5h13.08Zm-174.93.72v38.57h13.08v-7.19a166.93%20166.93%200%200%200%2014.75-5.59c9.14-4.16%209.53-9.37%209.53-13.7%200-5.37-4-12.09-15.15-12.09h-9.13Zm41.1%200v38.57h34v-9.5H72.27V110H88.7v-9.49H72.27v-5h20.55v-9.48Zm39.67%200v38.57h13.08v-7.19a166.93%20166.93%200%200%200%2014.75-5.59c9.14-4.16%209.53-9.37%209.53-13.7%200-5.37-4-12.09-15.15-12.09h-9.13Zm-67.69%209.48h6.54c2.2%200%204.03%201.79%204.03%204.06%200%202.7-1.04%204.14-4.97%205.78l-5.6%202.22Zm80.77%200h6.54c2.2%200%204.03%201.79%204.03%204.06%200%202.7-1.03%204.14-4.97%205.78l-5.6%202.22z'%20/%3e%3cpath%20fill='%23ff1400'%20d='M105.78%2011.04a94.75%2094.75%200%200%200-86.9%2057.17c.34.12%2018.82%206.66%2037.48%206.66%2029.15%200%2064.1-11.91%20101.76-11.91%2019.07%200%2033.18%204.72%2
183034.62%205.22a94.75%2094.75%200%200%200-86.96-57.14Z'%20/%3e%3cpath%20fill='%230e0e96'%20d='M105.83%20200.54a94.75%2094.75%200%200%200%2086.91-57.16c-.34-.13-18.83-6.67-37.48-6.67-29.15%200-64.1%2011.92-101.77%2011.92-19.06%200-33.17-4.72-34.62-5.22a94.75%2094.75%200%200%200%2086.96%2057.13z'%20/%3e%3c/svg%3e",VP="/assets/raedio-gd_vnhmt.svg",zP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%20607%20147'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%20id='ã¢ã¼ããã¼ã1'%20transform='matrix(0.900641,0,0,0.705882,9.02455,29.4037)'%3e%3crect%20x='-10.02'%20y='-41.655'%20width='673.069'%20height='207.817'%20style='fill:none;'/%3e%3cg%20transform='matrix(4.62633,0,0,5.90278,-6.58925,-73.8393)'%3e%3cpath%20d='M117.383,20.086L117.383,31.59C117.09,36.149%20110.387,36.149%20110.094,31.59L110.094,20.086L103.754,20.086L103.754,32.836C103.754,37.142%20108.219,40.633%20113.715,40.633C119.211,40.633%20123.676,37.142%20123.676,32.836L123.676,20.086L117.383,20.086ZM138,6.412L138,39.892L144.375,39.892L144.375,6.412L138,6.412ZM127.176,39.892L133.551,39.892L133.551,6.412L127.176,6.412L127.176,39.892ZM95.953,22.477C97.719,20.892%2098.737,18.638%2098.766,16.267C98.762,14.129%2097.938,12.076%2096.464,10.528C94.964,8.856%2092.25,7.918%2088.612,7.918L77.707,7.918L77.707,39.892L91.793,39.892C97.184,39.809%20101.543,35.731%20101.543,30.735C101.535,27.099%20100.254,24.5%2095.953,22.477ZM90.612,34.322L84.512,34.322L84.512,13.431L88.762,13.431C90.671,13.52%2092.171,15.106%2092.151,17.017C92.151,18.888%2090.632,20.403%2088.762,20.399L86.55,20.399L86.55,26.145L90.612,26.145C96.085,26.145%2096.085,34.349%2090.612,34.349L90.612,34.322ZM21.487,17.384C21.464,14.86%2020.438,12.447%2018.632,10.677C16.832,8.908%2014.397,7.927%2011.871,7.951L0.203,7.951L0.203,39.892L6.987,39.892L6.987,13.431L10.5,13.431C12.882,13.349%2014.871,15.235%2014.91,17.619C14.805,20.004%2012.8,21.869%2010.41,21.793L8.835,21.793L8.835,29.438L15.585,39.892L23.535,39.892L14.16,26.552C18.43,25.559%2021.46,21.767%2021.487,17.384ZM33.352,19.259C27.565,19.415%2022.957,24.149%2022.957,29.934C22.957,35.724%2027.565,40.457%2033.352,40.615C37.8,40.615%2041.266,38.602%2043.059,35.455L37.875,33.059C37.125,34.576%2035.565,35.52%2033.878,35.481C31.569,35.582%2029.621,33.787%2029.535,31.477L29.535,31.258L43.589,31.258C43.632,30.832%2043.651,30.408%2043.647,29.977C43.746,23.047%2039.18,19.259%2033.352,19.259ZM29.512,27.622C29.414,25.403%2031.188,23.552%2033.41,23.552C35.628,23.552%2037.401,25.403%2037.305,27.622L29.512,27.622ZM69,39.892L69,6.412L62.617,6.412L62.617,22.258C60.921,20.547%2058.612,19.58%2056.203,19.567C50.953,19.567%2046.664,24.24%2046.664,30C46.664,35.758%2050.94,40.477%2056.203,40.477C58.637,40.457%2060.957,39.457%2062.647,37.711L62.647,39.961L69,39.892ZM58.012,35C55.434,35%2053.332,32.707%2053.332,29.879C53.332,27.052%2055.434,24.727%2058.012,24.727C60.594,24.727%2062.699,27.024%2062.699,29.856C62.699,32.692%2060.602,35%2058.012,35Z'%20style='fill:rgb(210,0,60);fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WP="/assets/reel-crafter-DAVW8S7s.png",HP="/assets/rep-indie-WXAX922R.png",KP="/assets/riot-games-COO8NSQu.svg",JP="/assets/samsung-BKIMuMqq.svg",GP="data:image/svg+xml,%3csvg%20width='164'%20height='36'%20viewBox='0%200%20164%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.95'%3e%3crect%20width='163.649'%20height='35.9013'%20fill='white'/%3e%3crect%20x='2.75684'%20y='2.936'%20width='29.5824'%20height='30.248'%20fill='black'/%3e%3crect%20x='34.9199'%20y='2.936'%20width='29.5824'%20height='30.248'%20fill='black'/%3e%3crect%20x='67.0801'%20y='2.936'%20width='29.5824'%20height='30.248'%20fill='black'/%3e%3crect%20x='99.1709'%20y='2.936'%20width='29.5824'%20height='30.248'%20fill='black'/%3e%3crect%20x='131.285'%20y='2.936'%20width='29.5824'%20height='30.248'%20fill='black'/%3e%3cpath%20d='M13.405%2023.088C14.5709%2024.2987%2015.3945%2025.4453%2017.9268%2025.4453C19.5312%2025.4453%2020.943%2024.2667%2020.943%2022.9307C20.943%2018.6%2010.699%2021.064%2010.699%2013.3147C10.699%209.144%2014.0575%206.62933%2018.7209%206.62933C21.0527%206.62933%2023.8951%207.84%2025.299%209.58933L22.4832%2012.6453C21.3923%2011.5653%2019.7103%2010.6667%2018.4509%2010.6667C16.8759%2010.6667%2015.4346%2011.304%2015.4346%2013.3093C15.4346%2017.0427%2025.6787%2014.36%2025.6787%2022.9573C25.6787%2026.936%2022.1142%2029.4827%2017.6968%2029.4827C14.7554%2029.4827%2012.2846%2028.336%2010.2979%2026.0773L13.405%2023.088Z'%20fill='white'/%3e%3cpath%20d='M43.4229%2028.9787V7.13866H56.0628L56.8169%2011.184H47.9446V15.544H55.0681V19.5867H47.9446V24.936H57.9132L56.4746%2028.9787H43.4229Z'%20fill='white'/%3e%3cpath%20d='M77.1472%2023.088C78.3104%2024.2987%2079.134%2025.4453%2081.6662%2025.4453C83.2706%2025.4453%2084.6825%2024.2667%2084.6825%2022.9307C84.6825%2018.6%2074.4384%2021.064%2074.4384%2013.3147C74.4384%209.144%2077.797%206.62933%2082.4604%206.62933C84.7921%206.62933%2087.6346%207.84%2089.0384%209.58933L86.2227%2012.6453C85.1291%2011.5653%2083.4498%2010.672%2082.1823%2010.672C80.6073%2010.672%2079.166%2011.3093%2079.166%2013.3147C79.166%201
1837.048%2089.4101%2014.3653%2089.4101%2022.9627C89.4101%2026.9413%2085.8457%2029.488%2081.4282%2029.488C78.4868%2029.488%2076.0161%2028.3413%2074.0293%2026.0827L77.1472%2023.088Z'%20fill='white'/%3e%3cpath%20d='M153.137%2028.6613C152.142%2029.1947%20150.361%2029.488%20149.3%2029.488C142.037%2029.488%20137.208%2024.4213%20137.208%2018.0587C137.208%2011.7547%20142.142%206.62933%20149.163%206.62933C150.295%206.62933%20152.006%206.88267%20152.966%207.42933L153.72%2012.496C152.349%2011.4652%20150.674%2010.9158%20148.958%2010.9333C144.813%2010.9333%20141.936%2014.3707%20141.936%2018.064C141.931%2019.9688%20142.693%2021.7959%20144.049%2023.1365C145.406%2024.4772%20147.245%2025.2195%20149.155%2025.1973C151.027%2025.1973%20152.511%2024.304%20153.744%2023.3813L153.137%2028.6613Z'%20fill='white'/%3e%3cpath%20d='M102.382%2028.792L114.059%206.65334L125.86%2028.792H102.382Z'%20fill='white'/%3e%3cpath%20d='M109.254%2024.688H119.108L114.179%2015.2987L109.254%2024.688Z'%20fill='%23EF3E42'/%3e%3c/g%3e%3c/svg%3e",YP="/assets/springhill-uwR_KcHF.svg",qP="/assets/that-pitch-Dl66bINO.png",QP="/assets/the-sync-collective-B3Pfa8ql.png",XP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.3,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='TNT_Logo'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='620px'%20height='620px'%20viewBox='0%200%20620%20620'%20enable-background='new%200%200%20620%20620'%20xml:space='preserve'%3e%3cpath%20d='M610,309.959C610,475.643,475.664,610,309.991,610C144.303,610,10,475.643,10,309.959c0-15.65,1.19-31.014,3.515-46.002%20h64.064v177.284h60.773V263.958h68.082v177.284h58.058V309.073h1.247l77.308,115.757c7.692,12.208,14.778,16.41,29.556,16.41h39.909%20V263.958h68.306v177.284h59.775V263.958h65.869C608.786,278.945,610,294.309,610,309.959z%20M204.329,220.418h58.81%20c14.806,0,22.195,4.165,29.584,16.386l60.732,94.607h2.102V220.418h240.715C558.193,98.49,444.395,10,309.909,10%20C175.437,10,61.612,98.49,23.531,220.418H204.329'/%3e%3c/svg%3e",ZP="/assets/tyler-perry-studios-DqRjFegy.svg",e5="/assets/warner-bros-C7kQZTix.svg",t5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApIAAAFkCAMAAACkdSvNAAAAD1BMVEX///8AAAAmJlMmJlP////LhrPzAAAAA3RSTlMAAAD6dsTeAAALHklEQVR42u3d0W7bOBBG4e353/+dF1h0kaRpXcscykPynFvD1sj8YCmIJf9jZmZmZmZmZmYH9WOZeKJ8jyf6Ye9sV5J5kCRbtyXJ/D1Jtu0XkrlWsYg83QOSebYNSGa06y/Eo65u+HtzSOadJMfHh6IV52EZSJLrkMzVJCnJmSTzSpK8+EKSfJ5kXus9JCPJvUjynWRebxLJ7Ekym5JMNcmMJMnGJMm1SknmZZIZTJJXkuTfSWa8m0lGkjeSzO0kU9EEkpHkMST5QjI1SfLpJPmYZKqSZE+SrEYykrydZLYkmX4kcx/JSHIayRSSzCskU1k1yexKMpL8Gh8kU5skdyQZSUqyliQrkUx1knwySf6eZBYlGUlK8ulqSWZbktmQZMZJRpKSfGK0G544k2Qk+WQ3kmQVkpGkJJ+YLKuTzDeS5SYjSUlKsp5kJPkryUhSkj1IMplkJPlk95HkHpKRpCSnkEwRyexJMnwru5CMJL+QvLwdSUqyB8kXNiHJnUjOt8w1knxOkrUkI8ktSOZukjxoFZLsQ5KvvYFkdiaZzUhGkpKcQjIlJCPJFUlGkpKUZDeSrE4ykrxGclBWJPm9rUlGkpKUpCQl+TBJSlKSV4bK7CeyIMnwqWxHMveQRJKSlKQkJSlJSZbsaWeSkaQkJbkAyc/7uSPJ3EKSniSRpCSnkgw/iyRXJpl2JCNJSUpSkpKUZMWSbUoyXUlOXyokeTBJJCnJC0lSkpKcQzIAkN1JBgCyL8k0IxlJSvJIkkjyaJJIUpJX6kgykpSkJFchmf1JRpLrkYwkFyAZgEhygORIpSQznSS50B0kkaQkJSlJSe5KMgeQjCQXIxlJ3kwykjydZGaTpBdJJCnJO0gGIklJ1pOMJP+WJCXZjGQkKUlJSnImSSQpyUvKiCR/JklJSlKSlSQTSUryeZKN2pokkpSkJNck2cgkkpSkJCUpyVVJIklJ7kUSSUpSkquSbGMSSUpSkpKU5LokyUhIUpKSlKQktyHJ3SSbmpSkJHuRZGeSAAvdpgokuQJJJClJSb6NJJKUpCQ/1eP6ZUm2IslbSdLhNg/0J0leDUlKUpKSlORmJJGkJCUpybtIsiRJ3kmScU4ZjBVIIsmFSCLJ7UgiSUlKUpKSlOSJJFmVJG8kSUbiGJJIciGSZCQk2ZEkkpSkJCU5fydZmCSSlKQkCzbNQSSR5CEkkWRTkqxMEklKUpIrkGRtkkhSkpKU5KWtHEeSO0jWmixQjSQlOYMkkvxNSFKSkqwliSQlKUlJXtnKeSSZT7LUJJKU5HYk2ZgkO5BkWZJIUpKS/Pb8HEnyUZLcnSQHkmQ2yUqTzCV5/SOsF0kkuSJJxknm6gBI8tqSrEqSYpLkYpKUpCQPIYkkG5NEkneR5ByS3EQSSd5OkrkkkWQXkhxEEklKch5J1iCJJF9YE0n+R5KOJMmTIUlJPhWSfGlNJpKsM8l0kkhSkjeT5HaSSPIkkpSTRJJdSCLJH8wwyThJ8lRIUpKSnEqSaSTLTHILSVIZkpTkw3iCJKkLSY6siiTLSSLJ40gygyTdSJInQpIbkyQ1IcnBVZlEssok95EkFSFJSZaRJOMhyfFV2Z4kT5Mko3EvSSTZhCSlJOtQQiVJjiWJJItMIslFSdKaJHkxkOQJJLmBZA1KJFlHkr1JcpkkDIC8kySSPIYkDIAsI8m5JFmOJHUkx6cESS5A8scy8aDRE1V7W7uSBPIoQJJt25UkAH/SKMnOLUvSdk2S1ixJWrMkac2SpDVLktYsSVqzJGnNkqQ1S5LWLElasyRpzZKkNUuS1ixJWrMk2TIul6/xswW/HyrJlr1M8RWZ0wZ8bSRJtmyc40dvIZnHSXK5Sjh+dDPJPFMJyXzvz4/kwXw//laG4nH3XWT6ypafI1n6plzYpSdI5uluJ5m3kczmJPNat5DMpSS5Bcm83nSSuZwkgSxNMmNNJZmXkuTaJDPcPJJ5MUkuTDIVTSKZ17uPZN5GMnuSTE1TSGYkSa5JMnXVk8xgR
1835PMoiRTWTXJDCfJ5UimtlqSKWh3ktmNZKqrJBlJnkcy9dWRTE23kIwka0imM8lUdSrJLEgyUyoimbokeTjJlJCMJJ9tI5KZVQHJlCbJNUhGkoUkI8lhkpnYMMkUdyLJSFKSkhwimakNkkx5O5OMJKeTjCQPJJnJdSOZ6STTjGQkKUlJjpDM9AZIRpIXk+SKJCNJSb5KMpI8kGRu6DiSaUUykpSkJAdIJo1JZlYbk4wkn2o+SQBAkpLsQZKPJCnJBiT5UgeSaUQya5F8cYd7keSXJHkSSf7vDpJ5LiT5pbNIvryjt5JEkseQ5HOSlOTbSfK1JiSR5ONlkqQk/0uSkrw02c4kszTJHEpy60/Jg0jya5KUpCQlefUdiSQl+XaSOYZkJClJSUpSkpNIRpLvIZm9SUaSkmxGMpJcgmQk6bmkJN9FMpKUZDOSkeRSJLMcyQGT15KkJKeRjCT7k8xZJBNJ/vkRJPkOkpGkJJuRjCTXIJlzSCaSbE0y65IkLydJSTYjGUnmeyDJ95FMJCnJdrc87Unyrx1CMieSjCR7ksy5JBNJSrLdLzpI8iNAku8nGUlKst0P1klSks1IJpLsRTKQZUmSkiQpyWYkE0kmAJIcJkmKkqQki0iSqiQpyWYkI8kuJJOlSZKyJCnJEpKkruNJIskKkqQuSUqygiSpS5KSrCBJ6pKkJJuRjCQlWUCSVHYySdqTZBGSpDJJTiPJOSQhhUlSkgUkSWGSlGQBSSR5AEmWIknqOpYkkqwkSeqS5BySHEYSUpYkJVlCkpQlSUmWkESSO5NkRZKQos4kyWSSnEiSFCVJSRaRBElKshlJUpIkm5FkYZIgSUk2I0kKOpEkk0lyLkk4nmRZkhwgWYxSkpKsJYkkdyLJDiRBkpJsRpIMJclykhxPEiQpyWYkYRmS+Vsnk2QnkkhSks1IQl5MkpKcRBJJdiGJJH8mSUk2IwmSXJkknUnmQnxOkpJsRpJcT5KSnEkSSTYgiSQ/J8lFSbItSSQpSUm+i2SqkuRUkkhSks1IIsl3k0SSklyeJJKUpCTvI4kkJSlJSUpSkp1JkouxEclIUpLtSfrnjSRXJrnyl9Mk2ZNkJCnJ6SQZMtnmK7w5mCS5FJKU5JEkw5cyjWT4XJ8LHcKvRZKTSNKM5IVzmBqS5Lkk2Yxk+FQqSNbHVJLhS5FkDZSPBlYkZ5IMn8pJJGlKMvzs2lEUkiQ7kAz/l0hyJsmrnUvya4dceyPJ2+/CC5JsRhJJzmmLW55epsUKJEkiyaVJsgVJ7ibJyySRpCQl+dsk+V/AbJLkhuhGco/b51+1RV+SrEQSSTYjyWySZHpIciZJ1ifJWiRJecA+/725nySzSZLJIUlJPozVSJLiOJMkZSSZTZJMDUlK8mHcTJJxkqQ0diPJ7SSZTZLuJJFkM5LMOrFjvklKSJK6OJQkpSRJVdxMknYkkWQrknwjOdckVSSRZDOSzCZJZkQdSVITO5LkHSSZcmLHXJNUkiQVIckyksw4sWOqSWpJkvE4lyT1JJlwYsdMk1STJKMhyVKSUH5ix0ST1JMkYyHJapJUH0VhFkoYJVk/IPuS5G0kKT6KMsskwyTrB+RokswiCSVCPkhOQQnjJKsHBElOIgmFR1GmmKSCZPGASHIiSQqEfJAsVwmFJIvmA0lOJQlVH1lQjRKKSc55C9pee9M+RpcELpAcVsnDit8A8lwgycIYMgOMkAQGPNaQHJ0PkGRp8CoagHGSAAMcx0mOzAcgyep4sis8HpAstF9P8nHXZ/rHzMzMVutf0/BtuKwL600AAAAASUVORK5CYII=",n5="/assets/xbox-DgzPXSMM.svg",r5="/assets/grid-1-DeFQ-Wcb.jpg",s5="/assets/grid-2-Dd7fCMdl.jpg",i5="/assets/grid-3-DNORRBj7.jpg",o5="/assets/grid-4-dm0S-pOt.jpg",a5="/assets/grid-5-Df8qVRsm.jpg",l5="/assets/grid-6-BnXG5pm8.jpg",c5="/assets/grid-7-BuInEXyL.jpg",u5="/assets/grid-8-B4W_DLHH.jpg",d5="/assets/grid-9-LzvXxLVC.jpg",h5="/assets/beauty-in-black-BnU7xxGK.jpg",f5="/assets/straw-D0EW8dxT.jpg",p5="/assets/ashley-young-efABdqaq.jpg",m5="/assets/emoni-escobar-DHik56b_.jpg",g5="/assets/jared-oluwa-BWkZ4B1b.jpg",v5="/assets/jarrid-lezcano-xM3l7u4a.jpg",y5="/assets/jennifer-stafford-lmhc-lpcc-Dzcn53-A.jpg",w5="/assets/jerry-jones-cpa-CBWywSHz.jpg",x5="/assets/julian-wettlin-C0elJwkB.jpg",S5="/assets/rachel-mcfarlane-Ckf1xqUC.jpg",b5="/assets/rashad-richardson-BT2v7Peb.jpg",_5="/assets/reesha-l-archibald-D-8jVlSM.jpg",E5="/assets/somara-jacques-esq-Dc06pd7P.jpg",k5="/assets/coach-prime-ptnY_qzI.jpg",C5="/assets/deadpool-wolverine-ChDzFZOu.jpg",T5="/assets/madea-s-destination-wedding-CXVDoH8H.jpg",j5="/assets/painted-face-entertainment-nacGUDTY.jpg",N5="/assets/reasonable-doubt-C84_A7oR.jpg",A5="/assets/space-jam-KTvn10ZV.jpg",gb=y.createContext({});function vb(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const P5=typeof window<"u",R5=P5?y.useLayoutEffect:y.useEffect,$m=y.createContext(null);function Um(e,t){e.indexOf(t)===-1&&e.push(t)}function Zs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const An=(e,t,n)=>n>t?t:n<e?e:n;let dl=()=>{},Yn=()=>{};const gr={},Fm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Bm=e=>typeof e=="object"&&e!==null,Vm=e=>/^0[^.\s]+$/u.test(e);function yb(e){let t;return()=>(t===void 0&&(t=e()),t)}const kn=e=>e,hl=(...e)=>e.reduce((t,n)=>r=>n(t(r))),So=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ou{constructor(){this.subscriptions=[]}add(t){return Um(this.subscriptions,t),()=>this.remove(t)}remove(t){Zs(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const jt=e=>e*1e3,Lt=e=>e/1e3,wb=(e,t)=>t?e*(1e3/t):0,M5=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},xb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,I5=1e-7,O5=12;
vendor: 8,443 bytes, line 183
183function D5(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=xb(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>I5&&++a<O5);return o}function fl(e,t,n,r){if(e===t&&n===r)return kn;const s=i=>D5(i,0,1,e,n);return i=>i===0||i===1?i:xb(s(i),t,r)}const Sb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zm=e=>t=>1-e(1-t),bb=fl(.33,1.53,.69,.99),Wm=zm(bb),_b=Sb(Wm),Eb=e=>e>=1?1:(e*=2)<1?.5*Wm(e):.5*(2-Math.pow(2,-10*(e-1))),Hm=e=>1-Math.sin(Math.acos(e)),kb=zm(Hm),Cb=Sb(Hm),L5=fl(.42,0,1,1),$5=fl(0,0,.58,1),Km=fl(.42,0,.58,1),Tb=e=>Array.isArray(e)&&typeof e[0]!="number";function jb(e,t){return Tb(e)?e[M5(0,e.length,t)]:e}const Nb=e=>Array.isArray(e)&&typeof e[0]=="number",Lv={linear:kn,easeIn:L5,easeInOut:Km,easeOut:$5,circIn:Hm,circInOut:Cb,circOut:kb,backIn:Wm,backInOut:_b,backOut:bb,anticipate:Eb},U5=e=>typeof e=="string",$v=e=>{if(Nb(e)){Yn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return fl(t,n,r,s)}else if(U5(e))return Yn(Lv[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Lv[e];return e},zl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function F5(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new Set;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(n.add(c),e()),c(o)}const l={schedule:(c,d=!1,h=!1)=>{const p=h&&r?t:n;return d&&i.add(c),p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const B5=40;function Ab(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=zl.reduce((S,b)=>(S[b]=F5(i),S),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:h,preRender:f,render:p,postRender:g}=o,m=()=>{const S=gr.useManualTiming,b=S?s.timestamp:performance.now();n=!1,S||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,B5),1)),s.timestamp=b,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),d.process(s),h.process(s),f.process(s),p.process(s),g.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},x=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:zl.reduce((S,b)=>{const k=o[b];return S[b]=(E,_=!1,C=!1)=>(n||x(),k.schedule(E,_,C)),S},{}),cancel:S=>{for(let b=0;b<zl.length;b++)o[zl[b]].cancel(S)},state:s,steps:o}}const{schedule:he,cancel:us,state:He,steps:Hd}=Ab(typeof requestAnimationFrame<"u"?requestAnimationFrame:kn,!0);let yc;function V5(){yc=void 0}const dt={now:()=>(yc===void 0&&dt.set(He.isProcessing||gr.useManualTiming?He.timestamp:performance.now()),yc),set:e=>{yc=e,queueMicrotask(V5)}},Zi=e=>Math.round(e*1e5)/1e5,Pb=e=>t=>typeof t=="string"&&t.startsWith(e),Rb=Pb("--"),z5=Pb("var(--"),Jm=e=>z5(e)?W5.test(e.split("/*")[0].trim()):!1,W5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Uv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Po={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ba={...Po,transform:e=>An(0,1,e)},Wl={...Po,default:1},Gm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function H5(e){return e==null}const K5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ym=(e,t)=>n=>!!(typeof n=="string"&&K5.test(n)&&n.startsWith(e)||t&&!H5(n)&&Object.prototype.hasOwnProperty.call(n,t)),Mb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Gm);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},J5=e=>An(0,255,e),Kd={...Po,transform:e=>Math.round(J5(e))},Ms={test:Ym("rgb","red"),parse:Mb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kd.transform(e)+", "+Kd.transform(t)+", "+Kd.transform(n)+", "+Zi(Ba.transform(r))+")"};function G5(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Of={test:Ym("#"),parse:G5,transform:Ms.transform},pl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tr=pl("deg"),Kn=pl("%"),z=pl("px"),Y5=pl("vh"),q5=pl("vw"),Fv={...Kn,parse:e=>Kn.parse(e)/100,transform:e=>Kn.transform(e*100)},Fi={test:Ym("hsl","hue"),parse:Mb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Kn.transform(Zi(t))+", "+Kn.transform(Zi(n))+", "+Zi(Ba.transform(r))+")"},Ke={test:e=>Ms.test(e)||Of.test(e)||Fi.test(e),parse:e=>Ms.test(e)?Ms.parse(e):Fi.test(e)?Fi.parse(e):Of.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ms.transform(e):Fi.transform(e),getAnimatableNone:e=>{const t=Ke.parse(e);return t.alpha=0,Ke.transform(t)}},Q5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ib=new RegExp(Gm.source),Ob=new RegExp(Q5.source,"i");function X5(e){return isNaN(e)&&typeof e=="string"&&(Ib.test(e)||Ob.test(e))}const Db="number",Lb="color",Z5="var",eR="var(",Bv="${}",tR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function nR(e){const t=e.toString();return Ib.test(t)||Ob.test(t)}function Va(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(tR,l=>(Ke.test(l)?(r.color.push(i),s.push(Lb),n.push(Ke.parse(l))):l.startsWith(eR)?(r.var.push(i),s.push(Z5),n.push(l)):(r.number.push(i),s.push(Db),n.push(parseFloat(l))),++i,Bv)).split(Bv);return{values:n,split:a,indexes:r,types:s}}function rR(e){return Va(e).values}function $b({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===Db?s+=Zi(r[i]):o===Lb?s+=Ke.transform(r[i]):s+=r[i]}return s}}function sR(e){return $b(Va(e))}const iR=e=>typeof e=="number"?0:Ke.test(e)?Ke.getAnimatableNone(e):e,oR=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:iR(e);function aR(e){const t=Va(e);return $b(t)(t.values.map((r,s)=>oR(r,t.split[s])))}const Ft={test:X5,parse:rR,createTransformer:sR,getAnimatableNone:aR};function Jd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Jd(l,a,e+1/3),i=Jd(l,a,e),o=Jd(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function au(e,t){return n=>n>0?t:e}const me=(e,t,n)=>e+(t-e)*n,Gd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},cR=[Of,Ms,Fi],uR=e=>cR.find(t=>t.test(e));function Vv(e){const t=uR(e);if(!t)return dl(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let n=t.parse(e);return t===Fi&&(n=lR(n)),n}const zv=(e,t)=>{const n=Vv(e),r=Vv(t);if(!n||!r)return au(e,t);const s={...n};return i=>(s.red=Gd(n.red,r.red,i),s.green=Gd(n.green,r.green,i),s.blue=Gd(n.blue,r.blue,i),s.alpha=me(n.alpha,r.alpha,i),Ms.transform(s))},Df=new Set(["none","hidden"]);function dR(e,t){return Df.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hR(e,t){return n=>me(e,t,n)}function qm(e){return typeof e=="number"?hR:typeof e=="string"?Jm(e)?au:Ke.test(e)?zv:mR:Array.isArray(e)?Ub:typeof e=="object"?Ke.test(e)?zv:fR:au}function Ub(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>qm(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function fR(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=qm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function pR(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const mR=(e,t)=>{const n=Ft.createTransformer(t),r=Va(e),s=Va(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Df.has(e)&&!s.values.length||Df.has(t)&&!r.values.length?dR(e,t):hl(Ub(pR(r,s),s.values),n):(dl(!0,`Complex values '${e}' and '${t}
183' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),au(e,t))},Wv=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function gR(e,t){const n=Wv.exec(e);if(!n)return;const r=Wv.exec(t);if(!r||n[2]!==r[2])return;const s=n[2],i=parseFloat(n[1]),o=parseFloat(r[1]);return a=>Zi(me(i,o,a))+s}function Qm(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return me(e,t,n);if(typeof e=="string"&&typeof t=="string"){const s=gR(e,t);if(s)return s}return qm(e)(e,t)}const vR=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>he.update(t,n),stop:()=>us(t),now:()=>He.isProcessing?He.timestamp:dt.now()}},Fb=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Xm=2e4;function Zm(e,t=50,n=Xm,r){let s=0,i=e.next(s);for(;!i.done&&s<n;)s+=t,i=e.next(s);return s>=n?1/0:s}function Bb(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Zm(r),Xm);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Lt(s)}}const Ne={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Lf(e,t){return e*Math.sqrt(1-t*t)}const yR=12;function wR(e,t,n){let r=n;for(let s=1;s<yR;s++)r=r-e(r)/t(r);return r}const Yd=.001;function xR({duration:e=Ne.duration,bounce:t=Ne.bounce,velocity:n=Ne.velocity,mass:r=Ne.mass}){let s,i;dl(e<=jt(Ne.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=An(Ne.minDamping,Ne.maxDamping,o),e=An(Ne.minDuration,Ne.maxDuration,Lt(e)),o<1?(s=c=>{const d=c*o,h=d*e,f=d-n,p=Lf(c,o),g=Math.exp(-h);return Yd-f/p*g},i=c=>{const h=c*o*e,f=h*n+n,p=o*o*c*c*e,g=Math.exp(-h),m=Lf(c*c,o);return(-s(c)+Yd>0?-1:1)*((f-p)*g)/m}):(s=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-Yd+d*h},i=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const a=5/e,l=wR(s,i,a);if(e=jt(e),isNaN(l))return{stiffness:Ne.stiffness,damping:Ne.damping,duration:e};{const c=l*l*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Vb=["duration","bounce"],zb=["stiffness","damping","mass"];function lu(e,t){return t.some(n=>e[n]!==void 0)}function SR(e){let t={velocity:Ne.velocity,stiffness:Ne.stiffness,damping:Ne.damping,mass:Ne.mass,isResolvedFromDuration:!1,...e};if(!lu(e,zb)&&lu(e,Vb))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*An(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Ne.mass,stiffness:s,damping:i}}else{const n=xR({...e,velocity:0});t={...t,...n,mass:Ne.mass},t.isResolvedFromDuration=!0}return t}function za(e=Ne.visualDuration,t=Ne.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:r},{stiffness:o,damping:a,mass:l,duration:c,velocity:d,isResolvedFromDuration:h}=SR({...n,velocity:-Lt(n.velocity||0)}),f=a/(2*Math.sqrt(o*l)),p=Lt(Math.sqrt(o/l)),g=f*p,m={target:s,delta:s-r,velocity:d||0,restSpeed:0,restDelta:0},x=()=>{const _=Math.abs(m.delta)<5;m.restSpeed=n.restSpeed||(_?Ne.restSpeed.granular:Ne.restSpeed.default),m.restDelta=n.restDelta||(_?Ne.restDelta.granular:Ne.restDelta.default)};x();let w,v,S;if(f<1){const _=Lf(p,f),C={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{C.A=(m.velocity+g*m.delta)/_,C.sinC=g*C.A+m.delta*_,C.cosC=g*m.delta-C.A*_};const j=T=>{T!==C.t&&(C.t=T,C.env=Math.exp(-g*T),C.sin=Math.sin(_*T),C.cos=Math.cos(_*T))};w=T=>(j(T),m.target-C.env*(C.A*C.sin+m.delta*C.cos)),v=T=>(j(T),C.env*(C.sinC*C.sin+C.cosC*C.cos))}else if(f===1){w=C=>m.target-Math.exp(-p*C)*(m.delta+(m.velocity+p*m.delta)*C);const _={C:0};S=()=>{_.C=m.velocity+p*m.delta},v=C=>Math.exp(-p*C)*(p*_.C*C-m.velocity)}else{const _=p*Math.sqrt(f*f-1);w=j=>{const T=Math.exp(-g*j),A=Math.min(_*j,300);return m.target-T*((m.velocity+g*m.delta)*Math.sinh(A)+_*m.delta*Math.cosh(A))/_};const C={P:0,sinh:0,cosh:0};S=()=>{C.P=(m.velocity+g*m.delta)/_,C.sinh=g*C.P-m.delta*_,C.cosh=g*m.delta-C.P*_},v=j=>{const T=Math.exp(-g*j),A=Math.min(_*j,300);return T*(C.sinh*Math.sinh(A)+C.cosh*Math.cosh(A))}}S();const b=!lu(n,zb)&&lu(n,Vb),k=h&&c||null,E={calculatedDuration:k,retarget:(_,C)=>{m.target=_[_.length-1],m.delta=m.target-_[0],m.velocity=b?0:-Lt(C),n.restSpeed&&n.restDelta||x(),E.calculatedDuration=k,i.done=!1,S()},velocity:_=>jt(v(_)),next:_=>{const C=w(_);if(h)i.done=_>=c;else{const j=jt(v(_));i.done=Math.abs(j)<=m.restSpeed&&Math.abs(m.target-C)<=m.restDelta}return i.value=i.done?m.target:C,i},toString:()=>{const _=Math.min(Zm(E),Xm),C=Fb(j=>E.next(_*j).value,_,30);return _+"ms "+C},toTransition:()=>{}};return E}za.applyToOptions=e=>{const t=Bb(e,100,za);return e.ease=t.ease,e.duration=jt(t.duration),e.type="keyframes",e};function $f({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},p=_=>_<a||_>l,g=_=>a===void 0?l:l===void 0||Math.abs(a-_)<Math.abs(l-_)?a:l;let m=n*t;const x=h+m,w=o===void 0?x:o(x);w!==x&&(m=w-h);const v=_=>-m*Math.exp(-_/r),S=_=>{const C=v(_);f.done=Math.abs(C)<=c,f.value=f.done?w:w+C};let b,k;const E=_=>{p(f.value)&&(b=_,k=za({keyframes:[f.value,g(f.value)],velocity:-v(_)/r*1e3,damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:_=>{let C=!1;return!k&&b===void 0&&(C=!0,S(_),E(_)),b!==void 0&&_>=b?k.next(_-b):(!C&&S(_),f)}}}function bR(e,t,n){const r=[],s=n||gr.mix||Qm,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||kn:t;a=hl(l,a)}r.push(a)}return r}function _R(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Yn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=bR(t,r,s),l=a.length,c=d=>
183{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=So(e[h],e[h+1],d);return a[h](f)};return n?d=>c(An(e[0],e[i-1],d)):c}function Wb(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=So(0,t,r);e.push(me(n,1,s))}}function Hb(e){const t=[0];return Wb(t,e.length-1),t}function ER(e,t){return e.map(n=>n*t)}function kR(e,t){return e.map(()=>t||Km).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Tb(r)?r.map($v):$v(r)||Km,i={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(s)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){const[l,c]=t,d=l===c?void 0:(gr.mix||Qm)(l,c);return{calculatedDuration:e,next:h=>(i.value=d?d(s(e>0?An(0,1,h/e):1)):c,i.done=h>=e,i)}}const o=ER(n&&n.length===t.length?n:Hb(t),e),a=_R(o,t,{ease:Array.isArray(s)?s:kR(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const CR=5;function TR(e,t,n){const r=Math.max(t-CR,0);return wb(n-e(r),t-r)}function jR(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):TR(r=>e.next(r).value,t,e.next(t).value)}const NR=e=>e!==null;function qu(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(NR),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const AR={decay:$f,inertia:$f,tween:ha,keyframes:ha,spring:za};function Kb(e){typeof e.type=="string"&&(e.type=AR[e.type])}function Jb(e,t){return{kind:e,animation:t,timestamp:dt.now(),frameTimestamp:He.timestamp,frameIsProcessing:He.isProcessing}}function Gb(e,t,n){const r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Jb("animation-start",e),options:n?{...t,...n}:t})}catch{}}function PR(e,t){const n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Jb("layout-animation-start",e),node:t})}catch{}}class e0{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){var t;this.isResolved=!0,(t=this._resolve)==null||t.call(this)}then(t,n){return this.finished.then(t,n)}}const RR=e=>e/100;class cu extends e0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),Gb(this,this.options)}initAnimation(){const{options:t}=this;Kb(t);const{type:n=ha,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||ha;l!==ha&&typeof a[0]!="number"&&(this.mixKeyframes=hl(RR,Qm(a[0],a[1])),a=[0,100]);const c=l(a===t.keyframes?t:{...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Zm(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?w<0:w>s;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let S=this.currentTime,b=r;if(h){const C=Math.min(this.currentTime,s)/a;let j=Math.floor(C),T=C%1;!T&&C>=1&&(T=1),T===1&&j--,j=Math.min(j,h+1),!!(j%2)&&(f==="reverse"?(T=1-T,p&&(T-=p/a)):f==="mirror"&&(b=o)),S=An(0,1,T)*a}let k;v?(this.delayState.value=d[0],k=this.delayState):k=b.next(S),i&&!v&&(k.value=i(k.value));let{done:E}=k;!v&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return _&&g!==$f&&(k.value=qu(d,this.options,x,this.speed)),m&&m(k.value),_&&this.finish(),
vendor: 5,897 bytes, line 183
183k}then(t,n){return this.finished.then(t,n)}get duration(){return Lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Lt(t)}get time(){return Lt(this.currentTime)}set time(t){t=jt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return jR(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(dt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=vR,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}const MR=new Set(["brightness","contrast","saturate","opacity"]);function IR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gm)||[];if(!r)return e;const s=n.replace(r,"");let i=MR.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const OR=/\b([a-z-]*)\(.*?\)/gu,Uf={...Ft,getAnimatableNone:e=>{const t=e.match(OR);return t?t.map(IR).join(" "):e}},Ff={...Ft,getAnimatableNone:e=>{const t=Ft.parse(e);return Ft.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Hv={...Po,transform:Math.round},Bf={rotate:tr,pathRotation:tr,rotateX:tr,rotateY:tr,rotateZ:tr,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:tr,skewX:tr,skewY:tr,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Ba,originX:Fv,originY:Fv,originZ:z},Jn={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,...Bf,zIndex:Hv,fillOpacity:Ba,strokeOpacity:Ba,numOctaves:Hv},DR={...Jn,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:Uf,WebkitFilter:Uf,mask:Ff,WebkitMask:Ff},Yb=e=>DR[e],LR=new Set([Uf,Ff]);function t0(e,t){let n=Yb(e);return LR.has(n)||(n=Ft),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function $R(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Is=e=>e*180/Math.PI,Vf=e=>{const t=Is(Math.atan2(e[1],e[0]));return zf(t)},UR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vf,rotateZ:Vf,skewX:e=>Is(Math.atan(e[1])),skewY:e=>Is(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zf=e=>(e=e%360,e<0&&(e+=360),e),Kv=Vf,Jv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),FR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jv,scaleY:Gv,scale:e=>(Jv(e)+Gv(e))/2,rotateX:e=>zf(Is(Math.atan2(e[6],e[5]))),rotateY:e=>zf(Is(Math.atan2(-e[2],e[0]))),rotateZ:Kv,rotate:Kv,skewX:e=>Is(Math.atan(e[4])),skewY:e=>Is(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Wf(e){return e.includes("scale")?1:0}function Hf(e,t){if(!e||e==="none")return Wf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=FR,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=UR,s=a}if(!s)return Wf(t);const i=r[t],o=s[1].split(",").map(BR);return typeof i=="function"?i(o):o[i]}const qb=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Hf(n,t)};function BR(e){return parseFloat(e.trim())}const ds=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sr=new Set([...ds,"pathRotation"]),Yv=e=>e===Po||e===z,VR=new Set(["x","y","z"]),zR=ds.filter(e=>!VR.has(e));function WR(e){const t=[];return zR.forEach(n=>{const r=e.getValue(n);if(r!==void 0){const s=r.get(),i=n.startsWith("scale")?1:0;if(s===i)return;t.push([n,s]),r.set(i)}}),t}const HR=new Set(["bottom","right"]);function qv(e,t,n,r,s,i){const o=parseFloat(e);
183if(!isNaN(o))return o;const{min:a,max:l}=t()[n],c=l-a;return i==="border-box"?c:c-parseFloat(r)-parseFloat(s)}const Ws={width:({width:e,paddingLeft:t="0",paddingRight:n="0",boxSizing:r},s)=>qv(e,s,"x",t,n,r),height:({height:e,paddingTop:t="0",paddingBottom:n="0",boxSizing:r},s)=>qv(e,s,"y",t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{const{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{const{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Hf(e,"x"),y:({transform:e})=>Hf(e,"y")};Ws.translateX=Ws.x;Ws.translateY=Ws.y;const Hs=new Set;let Kf=!1,Jf=!1,Gf=!1;function Qb(){if(Jf){const e=[],t=new Set,n=new Set;Hs.forEach(s=>{s.needsMeasurement&&(e.push(s),t.add(s.element),HR.has(s.name)&&n.add(s.element))});const r=new Map;n.forEach(s=>{const i=WR(s);i.length&&(r.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=r.get(s);i&&i.forEach(([o,a])=>{var l;(l=s.getValue(o))==null||l.set(a)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Jf=!1,Kf=!1,Hs.forEach(e=>e.complete(Gf)),Hs.clear()}function Xb(){Hs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jf=!0)})}function KR(){Gf=!0,Xb(),Qb(),Gf=!1}function JR(e,t,n){if(typeof e=="string"){if(Fm(e)||Vm(e))return parseFloat(e);
vendor: 6,243 bytes, line 183
183if(!Ft.test(e)&&Ft.test(n))return t0(t,n)}return e??void 0}class n0{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Hs.add(this),Kf||(Kf=!0,he.read(Xb),he.resolveKeyframes(Qb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=JR(r.readValue(n,o),n,o);a!==void 0&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}$R(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Hs.delete(this)}cancel(){this.state==="scheduled"&&(Hs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ml=e=>e.startsWith("--");function Zb(e,t,n){ml(t)?e.style.setProperty(t,n):e.style[t]=n}const GR={};function e_(e,t){const n=yb(e);return()=>GR[t]??n()}const YR=e_(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),t_=e_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zo([0,.65,.55,1]),circOut:Zo([.55,0,1,.45]),backIn:Zo([.31,.01,.66,-.59]),backOut:Zo([.33,1.53,.69,.99])};function n_(e,t){if(e)return typeof e=="function"?t_()?Fb(e,t):"ease-out":Nb(e)?Zo(e):Array.isArray(e)?e.map(n=>n_(n,t)||Qv.easeOut):Qv[e]}function qR(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const h=n_(a,s);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(d,f)}function r0(e){return typeof e=="function"&&"applyToOptions"in e}function QR({type:e,...t}){return r0(e)&&t_()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class r_ extends e0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Yn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=QR(t);this.animation=qR(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=qu(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),Zb(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()},Gb(this,t,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Lt(t)}get time(){return Lt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=jt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&YR()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),kn):s(this)}}const s_={anticipate:Eb,backInOut:_b,circInOut:Cb};function XR(e){return e in s_}function ZR(e){typeof e.ease=="string"&&XR(e.ease)&&(e.ease=s_[e.ease])}const qd=10;class eM extends r_{constructor(t){ZR(t),Kb(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new cu({...o,autoplay:!1}),l=Math.max(qd,dt.now()-this.startTime),c=An(0,qd,l-qd),d=a.sample(l).value,{name:h}=this.options;i&&h&&Zb(i,h,d),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,d,c),a.stop()}}const Xv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ft.test(e)||e==="0")&&!e.startsWith("url("));function tM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function nM(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Xv(s,t),a=Xv(i,t);return!o||!a?(o!==a&&dl(!1,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!1):tM(e)||(n==="spring"||r0(n))&&r}function Yf(e){e.duration=0,e.type="keyframes"}const qf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),rM=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function sM(e){for(let t=0;t<e.length;
183t++)if(typeof e[t]=="string"&&rM.test(e[t]))return!0;return!1}const Zv=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iM=yb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oM(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!n||!(qf.has(n)||Zv.has(n)))return!1;const l=(h=t==null?void 0:t.owner)==null?void 0:h.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return iM()&&(qf.has(n)||Zv.has(n)&&sM(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const aM=40;class lM extends e0{constructor(t){var l;super(),this.stop=()=>{var c,d;this._animation&&(this._animation.stop(),(c=this.stopTimeline)==null||c.call(this)),(d=this.keyframeResolver)==null||d.cancel()},this.createdAt=dt.now();const{keyframes:n,name:r,motionValue:s,element:i}=t,o=t;o.autoplay??(o.autoplay=!0),o.delay??(o.delay=0),o.type??(o.type="keyframes"),o.repeat??(o.repeat=0),o.repeatDelay??(o.repeatDelay=0),o.repeatType??(o.repeatType="loop");const a=(i==null?void 0:i.KeyframeResolver)||n0;this.keyframeResolver=new a(n,(c,d,h)=>this.onKeyframesResolved(c,d,o,!h),r,s,i),(l=this.keyframeResolver)==null||l.scheduleResolve()}onKeyframesResolved(t,n,r,s){var x,w;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=dt.now();let h=!0;nM(t,i,o,a)||(h=!1,(gr.instantAnimations||!l)&&(d==null||d(qu(t,r,n))),t[0]=t[t.length-1],Yf(r),r.repeat=0);const f=s?this.resolvedAt?this.resolvedAt-this.createdAt>aM?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:p}=r;r.startTime??(r.startTime=f),r.finalKeyframe=n,r.keyframes=t,r.onComplete=()=>{p==null||p(),this.notifyFinished()};const g=h&&!c&&oM(r);let m;if(g){r.element=(w=(x=r.motionValue)==null?void 0:x.owner)==null?void 0:w.current;try{m=new eM(r)}catch{m=new cu(r)}}else m=new cu(r);this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),KR()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class cM{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ey(this.animations,"duration")}get iterationDuration(){return ey(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ey(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class uM extends cM{then(t,n){return this.finished.finally(t).then(()=>{})}}function i_(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const ty=30,dM=e=>!isNaN(parseFloat(e));class fa{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const s=dt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){var r;return t==="change"?this.onChangeSubscribe(n):((r=this.events)[t]||(r[t]=new ou)).add(n)}onChangeSubscribe(t){const{events:n}=this;return!n.change&&!this.changeSubscriber?this.changeSubscriber=t:(n.change||(n.change=new ou,n.change.add(this.changeSubscriber),this.changeSubscriber=void 0),n.change.add(t)),()=>{var r;this.changeSubscriber===t?this.changeSubscriber=void 0:(r=n.change)==null||r.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){he.read(()=>{var t;!this.changeSubscriber&&!((t=this.events.change)!=null&&t.getSize())&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){var r;const{current:t,changeSubscriber:n}=this;n?n(t):(r=this.events.change)==null||r.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ty)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ty);return wb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{var i;this.hasAnimated=!0;let r=!1,s;s=t(()=>{var o;r=!0,(o=this.events.animationComplete)==null||o.notify(),this.animation===s&&this.clearAnimation(),n()}),r||(this.animation=s),(i=this.events.animationStart)==null||i.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vr(e,t){return new fa(e,t)}function o_(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function s0(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?o_(n,e):n}const hM={type:"spring",stiffness:500,damping:25,restSpeed:10},fM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pM={type:"keyframes",duration:.8},mM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gM=(e,{keyframes:t})=>t.length>2?pM:Sr.has(e)?e.startsWith("scale")?fM(t[1]):hM:mM,vM=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yM(e){for(const t in e)if(!vM.has(t))return!0;return!1}const Qu=(e,t,n,r={},s,i)=>o=>{const a=s0(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-jt(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};yM(a)||Object.assign(d,gM(e,d)),d.duration&&(d.duration=jt(d.duration)),d.repeatDelay&&(d.repeatDelay=jt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yf(d),d.delay===0&&(h=!0)),(gr.instantAnimations||gr.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(h=!0,Yf(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,h&&!i&&t.get()!==void 0){const f=qu(d.keyframes,a);if(f!==void 0){he.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new cu(d):new lM(d)},wM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xM(e){const t=wM.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const SM=4;function a_(e,t,n=1){Yn(n<=SM,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=xM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Fm(o)?parseFloat(o):o}return Jm(s)?a_(s,t,n+1):s}function ny(e){const t=[{},{}];
vendor: 4,122 bytes, line 183
183return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function i0(e,t,n,r){if(typeof t=="function"){const[s,i]=ny(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=ny(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Ks(e,t,n){const r=e.getProps();return i0(r,t,n!==void 0?n:r.custom,e)}const o0=new Set(["width","height","top","left","right","bottom",...ds]),Qf=e=>Array.isArray(e);function bM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vr(n))}function _M(e){return Qf(e)?e[e.length-1]||0:e}function EM(e,t){const n=Ks(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=_M(i[o]);bM(e,o,a)}}const Ye=e=>!!(e&&e.getVelocity);function kM(e){return!!(Ye(e)&&e.add)}function Xf(e,t){const n=e.getValue("willChange");if(kM(n))return n.add(t);if(!n&&gr.WillChange){const r=new gr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function gl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const CM="framerAppearId",l_="data-"+gl(CM);function c_(e){return e.props[l_]}const TM=typeof window<"u";function jM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u_(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?o_(i,l):l;const c=i==null?void 0:i.reduceMotion,d=i==null?void 0:i.skipAnimations;r&&(i=r);const h=[],f=s&&e.animationState&&e.animationState.getState()[s],p=i==null?void 0:i.path;p&&p.animateVisualElement(e,a,i,n,h);for(const g in a){const m=e.getValue(g,e.latestValues[g]??null),x=a[g];if(x===void 0||f&&jM(f,g))continue;const w={delay:n,...s0(i||{},g)};d&&(w.skipAnimations=!0);const v=m.get();if(v!==void 0&&!m.isAnimating()&&!Array.isArray(x)&&x===v&&!w.velocity){he.update(()=>m.set(x));continue}let S=!1;if(TM&&window.MotionHandoffAnimation){const E=c_(e);if(E){const _=window.MotionHandoffAnimation(E,g,he);_!==null&&(w.startTime=_,S=!0)}}Xf(e,g);const b=c??e.shouldReduceMotion;m.start(Qu(g,m,x,b&&o0.has(g)?{type:!1}:w,e,S));const k=m.animation;k&&h.push(k)}if(o){const g=()=>he.update(()=>{o&&EM(e,o)});h.length?Promise.all(h).then(g):g()}return h}function Zf(e,t,n={}){var l;const r=Ks(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(u_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=s;return NM(e,t,c,d,h,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function NM(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Zf(l,t,{...o,delay:n+(typeof r=="function"?0:r)+i_(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function AM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Zf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Zf(e,t,n);else{const s=typeof t=="function"?Ks(e,t,n.custom):t;r=Promise.all(u_(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const PM={test:e=>e==="auto",parse:e=>e},RM=e=>t=>t.test(e),MM=[Po,z,Kn,tr,q5,Y5,PM],ry=e=>MM.find(RM(e));function IM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vm(e):!0}const OM=new Set(["auto","none","0"]);function DM(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!OM.has(i)&&nR(i)&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]!==s&&(e[i]=t0(n,s))}class d_ extends n0{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),Jm(h))){const f=a_(h,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=h)}}
183if(this.resolveNoneKeyframes(),!o0.has(r)||t.length!==2)return;const[s,i]=t;if(typeof s=="number"&&typeof i=="number")return;const o=ry(s),a=ry(i),l=Uv(s),c=Uv(i);if(l!==c&&Ws[r]){this.needsMeasurement=!0;return}if(o!==a)if(Yv(o)&&Yv(a))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else Ws[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||IM(t[s]))&&r.push(s);r.length&&DM(t,r,n)}measure(){const{element:t,name:n}=this;return Ws[n](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){var i;const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&((i=this.motionValue)==null||i.jump(s,!1))}measureEndState(){var i,o;const{element:t,unresolvedKeyframes:n}=this;if(!t||!t.current)return;(i=this.motionValue)==null||i.jump(this.measuredOrigin,!1);const r=n.length-1,s=n[r];n[r]=this.measure(),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEac
183h(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const a0=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],l0=[];function LM(e){Yn(typeof e.test=="function"&&typeof e.read=="function","Effects passed to animate.addEffect() need test() and read().","effect-missing-test"),h_(e),l0.unshift(e)}function h_(e){Zs(l0,e)}function $M(e){return l0.find(t=>t.test(e))}function f_(e,t,n={},r){const s=[],{velocity:i}=n,o=n.reduceMotion??(r==null?void 0:r.shouldReduceMotion);for(const l in t){if(l==="transition"||l==="transitionEnd")continue;const c=t[l];if(c===void 0)continue;const d=e(l),h=d.get();if(h!==void 0&&!d.isAnimating()&&!Array.isArray(c)&&c===h&&!i){he.update(()=>d.set(c));continue}d.start(Qu(l,d,c,o&&o0.has(l)?{type:!1}:n,r)),d.animation&&s.push(d.animation)}const{transitionEnd:a}=t;if(a){const l=()=>he.update(()=>{for(const c in a)e(c).set(a[c])});s.length?Promise.all(s).then(l):l()}return s}function p_(e,t,n,r,s){return f_(i=>{let o=e.get(t,i);if(!o){let a;if(!s){const l=n[i];a=UM(l)??e.read(t,i,l),Yn(a!==void 0,`"${i}" can't be read from the animated subject. Provide [from, to] keyframes.`,"effect-unreadable-value")}o=vr(a,{owner:s}),e(t,{[i]:o})}return o},n,r,s)}function UM(e){const t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function c0(e){return Bm(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function Ro(e){return Bm(e)&&"ownerSVGElement"in e}const yr=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function u0(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}class FM{constructor(t=he.render){this.step=t,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{const{pending:n,numPending:r}=this;this.numPending=0;for(let s=0;s<r;s++)n[s]()}}set(t,n,r,s){var l;if((l=this.values.get(t))==null||l.onRemove(),s)for(const c of this.values.values())c.value===s&&(r=c.render);const i=()=>r&&this.schedule(r);n.get()!==void 0&&i();const o=n.on("change",i),a=()=>{o(),r&&!s&&this.cancel(r),this.values.delete(t)};return this.values.set(t,{value:n,render:s?void 0:r,onRemove:a}),a}get(t){var n;return(n=this.values.get(t))==null?void 0:n.value}release(){const t=new Map;return this.values.forEach((n,r)=>{t.set(r,n.value),n.onRemove()}),this.transformKeys=this.transformValues=void 0,t}schedule(t){const{pending:n,numPending:r}=this;for(let s=0;s<r;s++)if(n[s]===t)return;r||this.step(this.flush),n[this.numPending++]=t}cancel(t){const{pending:n}=this;for(let r=0;r<this.numPending;r++)if(n[r]===t){n[r]=n[--this.numPending];return}}}function d0(e,{step:t,...n}={}){const r=new WeakMap;return Object.assign((i,o)=>{const a=r.get(i)??new FM(t);r.set(i,a);const l=[];for(const c in o){const d=o[c],h=e(i,a,c,d);l.push(h)}return()=>{for(const c of l)c()}},n,{get:(i,o)=>{var a;return(a=r.get(i))==null?void 0:a.get(o)},flush:i=>{var o;return(o=r.get(i))==null?void 0:o.flush()},state:i=>r.get(i)})}const BM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sy={};function VM(e){var i;let t="";const{transformKeys:n=[],transformValues:r={}}=e;for(let o=0;o<n.length;o++){const a=n[o],l=r[a].get();if(l===void 0)continue;(typeof l=="number"?l:parseFloat(l))!==(a.startsWith("scale")?1:0)&&(t+=(t&&" ")+(sy[a]||(sy[a]=(BM[a]||a)+"("))+yr(l,Bf[a])+")")}const s=(i=e.get("pathRotation"))==null?void 0:i.get();return s&&(t+=(t&&" ")+"rotate("+yr(s,Bf.pathRotation)+")"),t||"none"}const zM=new Set(["originX","originY","originZ"]),Qd=(e,t)=>{var n;return yr((n=e.get(t))==null?void 0:n.get(),Jn[t])},h0=(e,t,n,r)=>{let s,i;if(Sr.has(n)){if(n!=="pathRotation"){const o=t.transformKeys??(t.transformKeys=[]);(t.transformValues??(t.transformValues={}))[n]=r,o.includes(n)||(o.push(n),o.sort((a,l)=>ds.indexOf(a)-ds.indexOf(l)))}t.get("transform")||(!c0(e)&&!t.get("transformBox")&&h0(e,t,"transformBox",new fa("fill-box")),t.set("transform",new fa("none"),()=>{e.style.transform=VM(t)})),i=t.get("transform")}else zM.has(n)?(t.get("transformOrigin")||t.set("transformOrigin",new fa(""),()=>{const o=Qd(t,"originX")??"50%",a=Qd(t,"originY")??"50%",l=Qd(t,"originZ")??0;e.style.transformOrigin=`${o} ${a} ${l}`}),i=t.get("transformOrigin")):ml(n)?s=()=>{e.style.setProperty(n,r.get())}:s=()=>{e.style[n]=yr(r.get(),Jn[n])};return t.set(n,r,s,i)},WM=e=>c0(e)||Ro(e),m_=(e,t)=>
183{if(Sr.has(t))return qb(e,t);const n=getComputedStyle(e),r=ml(t)?n.getPropertyValue(t):n[t];return typeof r=="string"&&r.trim()||0},HM=d0(h0,{test:WM,read:m_}),KM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JM=ds.length;function GM(e,t,n){let r="",s=!0;for(let o=0;o<JM;o++){const a=ds[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const d=parseFloat(l);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=yr(l,Jn[a]);if(!c){s=!1;const h=KM[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${yr(i,Jn.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function f0(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Sr.has(l)){o=!0;continue}else if(Rb(l)){s[l]=c;continue}else{const d=yr(c,Jn[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=GM(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${c} ${d}`}}const YM={offset:"stroke-dashoffset",array:"stroke-dasharray"},qM={offset:"strokeDashoffset",array:"strokeDasharray"};function QM(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?YM:qM;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const p0=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function g_(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,d){if(f0(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;for(const p of p0)h[p]!==void 0&&(f[p]=h[p],delete h[p]);(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&QM(h,s,i,o,!1)}function XM(e,t){if(!(t in e))return!1;const n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set=="function"}const iy=(e,t,n,r,s=n)=>{const i=XM(e,s);!i&&(s.startsWith("data")||s.startsWith("aria"))&&(s=gl(s));const o=Jn[n]||Jn[s],a=i?()=>{e[s]=yr(r.get(),Jn[n])}:()=>{const l=yr(r.get(),o);l==null?e.removeAttribute(s):e.setAttribute(s,String(l))};return t.set(n,r,a)};function ZM(e,t,n,r){return he.render(()=>e.setAttribute("pathLength","1")),n==="pathOffset"?t.set(n,r,()=>{const s=r.get();e.setAttribute("stroke-dashoffset",`${-s}`)}):(t.get("stroke-dasharray")||t.set("stroke-dasharray",new fa("1 1"),()=>{var o,a;const s=((o=t.get("pathLength"))==null?void 0:o.get())??1,i=(a=t.get("pathSpacing"))==null?void 0:a.get();e.setAttribute("stroke-dasharray",`${s} ${i??1-Number(s)}`)}),t.set(n,r,void 0,t.get("stroke-dasharray")))}const eI=(e,t,n,r)=>n.startsWith("path")?ZM(e,t,n,r):n.startsWith("attr")?iy(e,t,n,r,v_(n)):(ml(n)||n in e.style?h0:iy)(e,t,n,r),tI=(e,t)=>{var n;return Sr.has(t)?((n=Jn[t])==null?void 0:n.default)||0:ml(t)||p0.includes(t)?m_(e,t):(t=v_(t),e.getAttribute(gl(t))??e.getAttribute(t)??void 0)},nI=d0(eI,{test:Ro,read:tI});function v_(e){return e.replace(/^attr([A-Z])/,(t,n)=>n.toLowerCase())}function y_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Xd(e){return e===void 0||e===1}function ep({scale:e,scaleX:t,scaleY:n}){return!Xd(e)||!Xd(t)||!Xd(n)}function Cs(e){return ep(e)||w_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function w_(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function uu(e,t,n){const r=e-n,s=t*r;return n+s}function ay(e,t,n,r,s){return s!==void 0&&(e=uu(e,s,r)),uu(e,n,r)+t}function tp(e,t=0,n=1,r,s){e.min=ay(e.min,t,n,r,s),e.max=ay(e.max,t,n,r,s)}function x_(e,{x:t,y:n}){tp(e.x,t.translate,t.scale,t.originPoint),tp(e.y,n.translate,n.scale,n.originPoint)}const ly=.999999999999,cy=1.0000000000001;function iI(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Un(e.x,-i.scroll.offset.x),Un(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,x_(e,o)),r&&Cs(i.latestValues)&&wc(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<cy&&t.x>ly&&(t.x=1),t.y<cy&&t.y>ly&&(t.y=1)}function Un(e,t){e.min+=t,e.max+=t}function uy(e,t,n,r,s=.5){const i=me(e.min,e.max,s);tp(e,t,n,i,r)}function dy(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function wc(e,t,n){const r=n??e;
183uy(e.x,dy(t.x,r.x),t.scaleX,t.scale,t.originX),uy(e.y,dy(t.y,r.y),t.scaleY,t.scale,t.originY)}function m0(e,t){return y_(sI(e.getBoundingClientRect(),t))}function oI(e,t,n){const r=m0(e,n),{scroll:s}=t;return s&&(Un(r.x,s.offset.x),Un(r.y,s.offset.y)),r}const aI={},lI=e=>Ro(e)?nI:HM;class cI{constructor(t,n){this.effect=t,this.current=n,this.KeyframeResolver=d_}getValue(t){return this.effect.get(this.current,t)}readValue(t,n){return this.effect.read(this.current,t,n)}render(){this.effect.flush(this.current)}measureViewportBox(){return m0(this.current)}getProps(){return aI}}function uI(e,t,n,r){if(r)return f_(i=>r.getValue(i,null),t,n,r);const s=lI(e);return p_(s,e,t,n,new cI(s,e))}const dI=d0((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Bm(e),read:(e,t)=>{const n=e[t];return typeof n=="string"||typeof n=="number"?n:void 0}}),{schedule:g0,cancel:fF}=Ab(queueMicrotask,!1),fn={x:!1,y:!1};function S_(){return fn.x||fn.y}function hI(e){return e==="x"||e==="y"?fn[e]?null:(fn[e]=!0,()=>{fn[e]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}function b_(e,t){const n=u0(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function fI(e){return!(e.pointerType==="touch"||S_())}function pI(e,t,n={}){const[r,s,i]=b_(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const d=()=>{o.removeEventListener("pointerleave",g)},h=x=>{c&&(c(x),c=void 0),d()},f=x=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(x))},p=()=>{a=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},g=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}h(x)}},m=x=>{if(!fI(x))return;l=!1;const w=t(o,x);typeof w=="function"&&(c=w,o.addEventListener("pointerleave",g,s))};o.addEventListener("pointerenter",m,s),o.addEventListener("pointerdown",p,s)}),i}const __=(e,t)=>t?e===t?!0:__(e,t.parentElement):!1,v0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gI(e){return mI.has(e.tagName)||e.isContentEditable===!0}const vI=new Set(["INPUT","SELECT","TEXTAREA"]);function yI(e){return vI.has(e.tagName)||e.isContentEditable===!0}const xc=new WeakSet;function hy(e){return t=>{t.key==="Enter"&&e(t)}}function Zd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wI=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hy(()=>{if(xc.has(n))return;Zd(n,"down");const s=hy(()=>{Zd(n,"up")}),i=()=>Zd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function fy(e){return v0(e)&&!S_()}const py=new WeakSet;function xI(e,t,n={}){const[r,s,i]=b_(e,n),o=a=>{const l=a.currentTarget;if(!fy(a)||py.has(a))return;xc.add(l),n.stopPropagation&&py.add(a);const c=t(l,a),d={...s,capture:!0},h=(g,m)=>{window.removeEventListener("pointerup",f,d),window.removeEventListener("pointercancel",p,d),xc.has(l)&&xc.delete(l),fy(g)&&typeof c=="function"&&c(g,{success:m})},f=g=>{h(g,l===window||l===document||n.useGlobalTarget||__(l,g.target))},p=g=>{h(g,!1)};window.addEventListener("pointerup",f,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),c0(a)&&(a.addEventListener("focus",c=>wI(c,s)),!gI(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const Sc=new WeakMap;let Pr;const E_=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Ro(r)&&"getBBox"in r?r.getBBox()[t]:r[n],SI=E_("inline","width","offsetWidth"),bI=E_("block","height","offsetHeight");function _I({target:e,borderBoxSize:t}){var n;(n=Sc.get(e))==null||n.forEach(r=>{r(e,{get width(){return SI(e,t)},get height(){return bI(e,t)}})})}function EI(e){e.forEach(_I)}function kI(){typeof ResizeObserver>"u"||(Pr=new ResizeObserver(EI))}function CI(e,t){Pr||kI();const n=u0(e);return n.forEach(r=>{let s=Sc.get(r);s||(s=new Set,Sc.set(r,s)),s.add(t),Pr==null||Pr.observe(r)}),()=>{n.forEach(r=>{const s=Sc.get(r);s==null||s.delete(t),s!=null&&s.size||Pr==null||Pr.unobserve(r)})}}const bc=new Set;let Bi;function TI(){Bi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};
vendor: 6,944 bytes, line 183
183bc.forEach(t=>t(e))},window.addEventListener("resize",Bi)}function jI(e){return bc.add(e),Bi||TI(),()=>{bc.delete(e),!bc.size&&typeof Bi=="function"&&(window.removeEventListener("resize",Bi),Bi=void 0)}}function my(e,t){return typeof e=="function"?jI(e):CI(e,t)}function NI(e){return Ro(e)&&e.tagName==="svg"}const gy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vi=()=>({x:gy(),y:gy()}),vy=()=>({min:0,max:0}),We=()=>({x:vy(),y:vy()}),k_=new WeakMap;function Xu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Wa(e){return typeof e=="string"||Array.isArray(e)}const y0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],du=["initial",...y0];function Zu(e){if(Xu(e.animate))return!0;for(let t=0;t<du.length;t++)if(Wa(e[du[t]]))return!0;return!1}function C_(e){return!!(Zu(e)||e.variants)}function AI(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Ye(s))e.addValue(r,s);else if(Ye(i))e.addValue(r,vr(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,vr(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hu={current:null},w0={current:!1},PI=typeof window<"u";function T_(){if(w0.current=!0,!!PI)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hu.current=e.matches;e.addEventListener("change",t),t()}else hu.current=!1}const yy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let fu={};function j_(e){fu=e}function RI(){return fu}class MI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=n0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=dt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,he.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Zu(n),this.isVariantNode=C_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const g=f[p];c[p]!==void 0&&Ye(g)&&g.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,k_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(w0.current||T_(),this.shouldReduceMotion=hu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),us(this.notifyUpdate),us(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&qf.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:d}=n.accelerate,h=new r_({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:jt(d)}),f=o(h);this.valueSubscriptions.set(t,()=>{f(),h.cancel()});return}const r=Sr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&he.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fu){const n=fu[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):We()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yy.length;r++){const s=yy[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=AI(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 2,329 bytes, line 183
183addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Fm(r)||Vm(r))?r=parseFloat(r):typeof r!="number"&&!Ft.test(r)&&Ft.test(n)&&(r=t0(t,n)),this.setBaseTarget(t,Ye(r)?r.get():r)),Ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=i0(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Ye(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ou),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){g0.render(this.render)}}class N_ extends MI{constructor(){super(...arguments),this.KeyframeResolver=d_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class gs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function A_(e,{style:t,vars:n},r,s){const i=e.style;let o;
183for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Jo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;const n=wy(e,t.target.x),r=wy(e,t.target.y);return`${n}% ${r}%`}},II={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ft.parse(e);if(s.length>5)return r;const i=Ft.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=me(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},np={borderRadius:{...Jo,applyTo:[...a0]},borderTopLeftRadius:Jo,borderTopRightRadius:Jo,borderBottomLeftRadius:Jo,borderBottomRightRadius:Jo,boxShadow:II};function P_(e,{layout:t,layoutId:n}){return Sr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!np[e]||e==="opacity")}function x0(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(Ye(r[a])||s&&Ye(s[a])||P_(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function OI(e){return window.getComputedStyle(e)}class DI extends N_{constructor(){super(...arguments),this.type="html",this.renderInstance=A_}mount(t){Yn(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,n){var r;if(Sr.has(n))return(r=this.projection)!=null&&r.isProjecting?Wf(n):qb(t,n);{const s=OI(t),i=(Rb(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return m0(t,n)}build(t,n,r){f0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return x0(t,n,r)}}const R_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),M_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function LI(e,t,n,r){A_(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(R_.has(s)?s:gl(s),t.attrs[s])}function I_(e,t,n){const r=x0(e,t,n);for(const s in e)if(Ye(e[s])||Ye(t[s])){const i=ds.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class $I extends N_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=We}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Sr.has(n)){const r=Yb(n);return r&&r.default||0}if(p0.includes(n)){const s=getComputedStyle(t)[n];if(typeof s=="string"&&s)return s.trim()}return n=R_.has(n)?n:gl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return I_(t,n,r)}build(t,n,r){g_(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){LI(t,n,r,s)}mount(t){this.isSVGTag=M_(t.tagName),super.mount(t)}}const UI=du.length;function O_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?O_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<UI;n++){const r=du[n],s=e.props[r];(Wa(s)||s===!1)&&(t[r]=s)}return t}function D_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const FI=[...y0].reverse(),BI=y0.length;function VI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AM(e,n,r)))}function zI(e){let t=VI(e),n=xy(),r=!0,s=!1;const i=c=>(d,h)=>{var p;const f=Ks(e,h,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:g,transitionEnd:m,...x}=f;d={...d,...x,...m}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,h=O_(e.parent)||{},f=[],p=new Set;let g={},m=1/0;for(let w=0;w<BI;w++){const v=FI[w],S=n[v],b=d[v]!==void 0?d[v]:h[v],k=Wa(b),E=v===c?S.isActive:null;E===!1&&(m=w);let _=b===h[v]&&b!==d[v]&&k;if(_&&(r||s)&&e.manuallyAnimateOnMount&&(_=!1),S.protectedKeys={...g},!S.isActive&&E===null||!b&&!S.prevProp||Xu(b)||typeof b=="boolean")continue;if(v==="exit"&&S.isActive&&E!==!0){S.prevResolvedValues&&(g={...g,...S.prevResolvedValues});continue}const C=WI(S.prevProp,b);
vendor: 4,569 bytes, line 183
183let j=C||v===c&&S.isActive&&!_&&k||w>m&&k,T=!1;const A=Array.isArray(b)?b:[b];let R=A.reduce(i(v),{});E===!1&&(R={});const{prevResolvedValues:$={}}=S,O={...$,...R},G=N=>{j=!0,p.has(N)&&(T=!0,p.delete(N)),S.needsAnimating[N]=!0;const P=e.getValue(N);P&&(P.liveStyle=!1)};for(const N in O){const P=R[N],L=$[N];if(g.hasOwnProperty(N))continue;let J=!1;Qf(P)&&Qf(L)?J=!D_(P,L)||C:J=P!==L,J?P!=null?G(N):p.add(N):P!==void 0&&p.has(N)?G(N):S.protectedKeys[N]=!0}S.prevProp=b,S.prevResolvedValues=R,S.isActive&&(g={...g,...R}),(r||s)&&e.blockInitialAnimation&&(j=!1);const F=_&&C;j&&(!F||T)&&f.push(...A.map(N=>{const P={type:v};if(typeof N=="string"&&(r||s)&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,J=Ks(L,N);if(L.enteringChildren&&J){const{delayChildren:W}=J.transition||{};P.delay=i_(L.enteringChildren,e,W)}}return{animation:N,options:P}}))}if(p.size){const w={};if(typeof d.initial!="boolean"){const v=Ks(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(w.transition=v.transition)}p.forEach(v=>{const S=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),w[v]=S??null}),f.push({animation:w})}let x=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,s=!1,x?t(f):Promise.resolve()}function l(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var g;return(g=p.animationState)==null?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=xy(),s=!0}}}function WI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!D_(t,e):!1}function Ss(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xy(){return{animate:Ss(!0),whileInView:Ss(),whileHover:Ss(),whileTap:Ss(),whileDrag:Ss(),whileFocus:Ss(),exit:Ss()}}function rp(e,t){e.min=t.min,e.max=t.max}function un(e,t){rp(e.x,t.x),rp(e.y,t.y)}function Sy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const L_=1e-4,HI=1-L_,KI=1+L_,$_=.01,JI=0-$_,GI=0+$_;function vt(e){return e.max-e.min}function YI(e,t,n){return Math.abs(e-t)<=n}function by(e,t,n,r=.5){e.origin=r,e.originPoint=me(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(e.scale>=HI&&e.scale<=KI||isNaN(e.scale))&&(e.scale=1),(e.translate>=JI&&e.translate<=GI||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,n,r){by(e.x,t.x,n.x,r?r.originX:void 0),by(e.y,t.y,n.y,r?r.originY:void 0)}function _y(e,t,n,r=0){const s=r?me(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+vt(t)}function qI(e,t,n,r){_y(e.x,t.x,n.x,r==null?void 0:r.x),_y(e.y,t.y,n.y,r==null?void 0:r.y)}function Ey(e,t,n,r=0){const s=r?me(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+vt(t)}function pu(e,t,n,r){Ey(e.x,t.x,n.x,r==null?void 0:r.x),Ey(e.y,t.y,n.y,r==null?void 0:r.y)}function ky(e,t,n,r,s){return e-=t,e=uu(e,1/n,r),s!==void 0&&(e=uu(e,1/s,r)),e}function QI(e,t=0,n=1,r=.5,s,i=e,o=e){if(Kn.test(t)&&(t=parseFloat(t),t=me(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=me(i.min,i.max,r);e===i&&(a-=t),e.min=ky(e.min,t,n,a,s),e.max=ky(e.max,t,n,a,s)}function Cy(e,t,[n,r,s],i,o){QI(e,t[n],t[r],t[s],t.scale,i,o)}const XI=["x","scaleX","originX"],ZI=["y","scaleY","originY"];function Ty(e,t,n,r){Cy(e.x,t,XI,n?n.x:void 0,r?r.x:void 0),Cy(e.y,t,ZI,n?n.y:void 0,r?r.y:void 0)}function jy(e){return e.translate===0&&e.scale===1}function U_(e){return jy(e.x)&&jy(e.y)}function Ny(e,t){return e.min===t.min&&e.max===t.max}function eO(e,t){return Ny(e.x,t.x)&&Ny(e.y,t.y)}function Ay(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function F_(e,t){return Ay(e.x,t.x)&&Ay(e.y,t.y)}function Py(e){return vt(e.x)/vt(e.y)}function Ry(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function In(e){return[e("x"),e("y")]}function tO(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:h,rotateX:f,rotateY:p,skewX:g,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotate(${h}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l}
183)`),r||"none"}const nO=a0.length,My=e=>typeof e=="string"?parseFloat(e):e,Iy=e=>typeof e=="number"||z.test(e);function rO(e,t,n,r,s,i){s?(e.opacity=me(0,n.opacity??1,sO(r)),e.opacityExit=me(t.opacity??1,0,iO(r))):i&&(e.opacity=me(t.opacity??1,n.opacity??1,r));for(let o=0;o<nO;o++){const a=a0[o];let l=Oy(t,a),c=Oy(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Iy(l)===Iy(c)?(e[a]=Math.max(me(My(l),My(c),r),0),(Kn.test(c)||Kn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=me(t.rotate||0,n.rotate||0,r))}function Oy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sO=B_(0,.5,kb),iO=B_(.5,.95,kn);function B_(e,t,n){return r=>r<e?0:r>t?1:n(So(e,t,r))}function V_(e,t,n){const r=Ye(e)?e:vr(e);return r.start(Qu("",r,t,n)),r.animation}function Ha(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const oO=(e,t)=>e.depth-t.depth;class aO{constructor(){this.children=[],this.isDirty=!1}add(t){Um(this.children,t),this.isDirty=!0}remove(t){Zs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(oO),this.isDirty=!1,this.children.forEach(t)}}function lO(e,t){const n=dt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(us(r),e(i-t))};return he.setup(r,!0),()=>us(r)}function _c(e){return Ye(e)?e.get():e}class cO{constructor(){this.members=[]}add(t){Um(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(Zs(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Zs(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Ec={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eh=["","X","Y","Z"],uO=1e3;let dO=0;function th(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function z_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=c_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",he,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&z_(r)}function W_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=dO++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 11,037 bytes, line 183
183{this.projectionUpdateScheduled=!1,this.nodes.forEach(pO),this.nodes.forEach(xO),this.nodes.forEach(SO),this.nodes.forEach(mO)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new aO)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ou),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Ro(o)&&!NI(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;he.read(()=>{h=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,d&&d(),d=lO(f,250),Ec.hasAnimatedSinceResize&&(Ec.hasAnimatedSinceResize=!1,this.nodes.forEach($y)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||CO,{onLayoutAnimationStart:m,onLayoutAnimationComplete:x}=c.getProps(),w=!this.targetLayout||!F_(this.targetLayout,p),v=!h&&f;if(this.options.layoutRoot||this.resumeFrom||v||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...s0(g,"layout"),onPlay:m,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(d,v,S.path)}else h||$y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),us(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bO),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&z_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(vO),this.nodes.forEach(Dy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ly);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yO),this.nodes.forEach(wO),this.nodes.forEach(hO),this.nodes.forEach(fO)):this.nodes.forEach(Ly),this.clearAllSnapshots();const a=dt.now();He.delta=An(0,1e3/60,a-He.timestamp),He.timestamp=a,He.isProcessing=!0,Hd.update.process(He),Hd.preRender.process(He),Hd.render.process(He),He.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,g0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gO),this.sharedNodes.forEach(_O)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,he.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){he.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=We()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!U_(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Cs(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),TO(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return We();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(jO))){const{scroll:d}=this.root;d&&(Un(a.x,d.offset.x),Un(a.y,d.offset.y))}return a}removeElementScroll(o){var l;const a=We();if(un(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&un(a,o),Un(a.x,h.offset.x),Un(a.y,h.offset.y))}return a}applyTransform(o,a=!1,l){var d,h;const c=l||We();un(c,o);for(let f=0;f<this.path.length;f++){const p=this.path[f];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(Un(c.x,-p.scroll.offset.x),Un(c.y,-p.scroll.offset.y)),Cs(p.latestValues)&&wc(c,p.latestValues,(d=p.layout)==null?void 0:d.layoutBox)}return Cs(this.latestValues)&&wc(c,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),c}removeTransform(o){var l;const a=We();un(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Cs(d.latestValues))continue;let h;d.instance&&(ep(d.latestValues)&&d.updateSnapshot(),h=We(),un(h,d.measurePageBox())),Ty(a,d.latestValues,(l=d.snapshot)==null?void 0:l.layoutBox,h)}return Cs(this.latestValues)&&Ty(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==He.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=He.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=We(),this.targetWithTransforms=We()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qI(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):un(this.target,this.layout.layoutBox),x_(this.target,this.targetDelta)):un(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ep(this.parent.latestValues)||w_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=We(),this.relativeTargetOrigin=We(),pu(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),un(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var g;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&
183(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===He.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;un(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;iI(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=We());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sy(this.prevProjectionDelta.x,this.projectionDelta.x),Sy(this.prevProjectionDelta.y,this.projectionDelta.y)),pa(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ry(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ry(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vi(),this.projectionDelta=Vi(),this.projectionDeltaWithTransform=Vi()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,d=c?c.latestValues:{},h={...this.latestValues},f=Vi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=We(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,x=g!==m,w=this.getStack(),v=!w||w.members.length<=1,S=!!(x&&!v&&this.options.crossfade===!0&&!this.path.some(kO));this.animationProgress=0;let b;const k=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=E=>{const _=E/1e3,C=k==null?void 0:k(_);C?(f.x.translate=C.x,f.x.scale=me(o.x.scale,1,_),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=C.y,f.y.scale=me(o.y.scale,1,_),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Uy(f.x,o.x,_),Uy(f.y,o.y,_)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pu(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),EO(this.relativeTarget,this.relativeTargetOrigin,p,_),b&&eO(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=We()),un(b,this.relativeTarget)),x&&(this.animationValues=h,rO(h,d,this.latestValues,_,S,v)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(us(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{Ec.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vr(0)),this.motionValue.jump(0,!1),this.currentAnimation=V_(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),PR(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead(),{targetWithTransforms:a,layout:l,latestValues:c}=o;let{target:d}=o;if(!(!a||!d||!l)){if(this!==o&&this.layout&&l&&H_(this.options.animationType,this.layout.layoutBox,l.layoutBox)){d=this.target||We();const h=vt(this.layout.layoutBox.x);d.x.min=o.target.x.min,d.x.max=d.x.min+h;const f=vt(this.layout.layoutBox.y);d.y.min=o.target.y.min,d.y.max=d.y.min+f}un(a,d),wc(a,c),pa(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new cO),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 32,473 bytes, line 183
183resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&th("z",o,c,this.animationValues);for(let d=0;d<eh.length;d++)th(`rotate${eh[d]}`,o,c,this.animationValues),th(`skew${eh[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=_c(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=_c(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cs(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=tO(this.projectionDeltaWithTransform,this.treeScale,d);l&&(h=l(d,h)),o.transform=h;const{x:f,y:p}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in np){if(d[g]===void 0)continue;const{correct:m,applyTo:x,isCSSVariable:w}=np[g],v=h==="none"?d[g]:m(d[g],c);if(x){const S=x.length;for(let b=0;b<S;b++)o[x[b]]=v}else w?this.options.visualElement.renderState.vars[g]=v:o[g]=v}this.options.layoutId&&(o.pointerEvents=c===this?_c(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Dy),this.root.sharedNodes.clear()}}}function hO(e){e.updateLayout()}function fO(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")In(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],p=vt(f);f.min=r[h].min,f.max=f.min+p});else if(i==="x"||i==="y"){const h=i==="x"?"y":"x";rp(o?t.measuredBox[h]:t.layoutBox[h],r[h])}else H_(i,t.layoutBox,r)&&In(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],p=vt(r[h]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+p)});const a=Vi();pa(a,r,t.layoutBox);const l=Vi();o?pa(l,e.applyTransform(s,!0),t.measuredBox):pa(l,r,t.layoutBox);const c=!U_(a);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:p}=h;if(f&&p){const g=e.options.layoutAnchor||void 0,m=We();pu(m,t.layoutBox,f.layoutBox,g);const x=We();pu(x,r,p.layoutBox,g),F_(m,x)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=m,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gO(e){e.clearSnapshot()}function Dy(e){e.clearMeasurements()}function vO(e){e.isLayoutDirty=!0,e.updateLayout()}function Ly(e){e.isLayoutDirty=!1}function yO(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function wO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xO(e){e.resolveTargetDelta()}function SO(e){e.calcProjection()}function bO(e){e.resetSkewAndRotation()}function _O(e){e.removeLeadSnapshot()}function Uy(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fy(e,t,n,r){e.min=me(t.min,n.min,r),e.max=me(t.max,n.max,r)}function EO(e,t,n,r){Fy(e.x,t.x,n.x,r),Fy(e.y,t.y,n.y,r)}function kO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CO={duration:.45,ease:[.4,0,.1,1]},By=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Vy=By("applewebkit/")&&!By("chrome/")?Math.round:kn;function zy(e){e.min=Vy(e.min),e.max=Vy(e.max)}function TO(e){zy(e.x),zy(e.y)}function H_(e,t,n){return e==="position"||e==="preserve-aspect"&&!YI(Py(t),Py(n),.2)}function jO(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const NO=W_({attachResizeListener:(e,t)=>Ha(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),nh={current:void 0},K_=W_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nh.current){const e=new NO({});e.mount(window),e.setOptions({layoutScroll:!0}),nh.current=e}return nh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),S0=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function AO(e=!0){const t=y.useContext($m);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{if(e)return s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const J_=y.createContext({strict:!1}),Wy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Hy=!1;function PO(){if(Hy)return;const e={};for(const t in Wy)e[t]={isEnabled:n=>Wy[t].some(r=>!!n[r])};j_(e),Hy=!0}function G_(){return PO(),RI()}function RO(e){const t=G_();for(const n in e)t[n]={...t[n],...e[n]};j_(t)}const ed=y.createContext({});function MO(e,t){if(Zu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Wa(n)?n:void 0,animate:Wa(r)?r:void 0}}return e.inherit!==!1?t:{}}function IO(e){const{initial:t,animate:n}=MO(e,y.useContext(ed));return y.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const b0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Y_(e,t,n){for(const r in t)!Ye(t[r])&&!P_(r,n)&&(e[r]=t[r])}function OO({transformTemplate:e},t){return y.useMemo(()=>{const n=b0();return f0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function DO(e,t){const n=e.style||{},r={};return Y_(r,n,e),Object.assign(r,OO(e,t)),r}function LO(e,t){const n={},r=DO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const q_=()=>({...b0(),attrs:{}});function $O(e,t,n,r){const s=y.useMemo(()=>{const i=q_();return g_(i,t,M_(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Y_(i,e.style,e),s.style={...i,...s.style}}return s}const UO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function mu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||UO.has(e)}function FO(e,t){return e.startsWith("on")?!mu(e):(t==null?void 0:t(e))??!mu(e)}function BO(e,t,n,r){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||Ye(e[i])||(FO(i,r)||n===!0&&mu(i)||!t&&!mu(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const VO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _0(e){return typeof e!="string"||e.includes("-")?!1:!!(VO.indexOf(e)>-1||/[A-Z]/u.test(e))}function zO(e,t,n,{latestValues:r},s,i=!1,o,a){const c=(o??_0(e)?$O:LO)(t,r,s,e),d=BO(t,typeof e=="string",i,a),h=e!==y.Fragment?{...d,...c,ref:n}:{},{children:f}=t,p=y.useMemo(()=>Ye(f)?f.get():f,[f]);return y.createElement(e,{...h,children:p})}function WO({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:HO(n,r,s,e),renderState:t()}}function HO(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=_c(i[f]);let{initial:o,animate:a}=e;const l=Zu(e),c=C_(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;if(h&&typeof h!="boolean"&&!Xu(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const g=i0(e,f[p]);if(g){const{transitionEnd:m,transition:x,...w}=g;for(const v in w){let S=w[v];if(Array.isArray(S)){const b=d?S.length-1:0;S=S[b]}S!==null&&(s[v]=S)}for(const v in m)s[v]=m[v]}}}return s}const Q_=e=>(t,n)=>{const r=y.useContext(ed),s=y.useContext($m),i=()=>WO(e,t,r,s);return n?i():vb(i)},KO=Q_({scrapeMotionValuesFromProps:x0,createRenderState:b0}),JO=Q_({scrapeMotionValuesFromProps:I_,createRenderState:q_}),GO=Symbol.for("motionComponentSymbol");function YO(e,t,n){const r=y.useRef(n);y.useInsertionEffect(()=>{r.current=n});const s=y.useRef(null);return y.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const X_=y.createContext({});function Ei(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qO(e,t,n,r,s,i){var S,b;const{visualElement:o}=y.useContext(ed),a=y.useContext(J_),l=y.useContext($m),c=y.useContext(S0),d=c.reducedMotion,h=c.skipAnimations,f=y.useRef(null),p=y.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:h,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const g=f.current,m=y.useContext(X_);g&&!g.projection&&s&&(g.type==="html"||g.type==="svg")&&QO(f.current,n,s,m);const x=y.useRef(!1);y.useInsertionEffect(()=>{g&&x.current&&g.update(n,l)});const w=n[l_],v=y.useRef(!!w&&typeof window<"u"&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,w))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,w)));return R5(()=>{p.current=!0,g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),v.current&&g.animationState&&g.animationState.animateChanges())}),y.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,w)}),v.current=!1),g.enteringChildren=void 0)}),g}function QO(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Z_(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Ei(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}function Z_(e){if(e)return e.options.allowProjection!==!1?e.projection:Z_(e.parent)}function rh(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&RO(r);const i=n?n==="svg":_0(e),o=i?JO:KO;function a(c,d){let h;const f={...y.useContext(S0),...c,layoutId:XO(c)},{isStatic:p,isValidProp:g}=f,m=IO(c),x=o(c,p);if(!p&&typeof window<"u"){ZO();const w=e8(f);h=w.MeasureLayout,m.visualElement=qO(e,x,f,s,w.ProjectionNode,i)}return u.jsxs(ed.Provider,{value:m,children:[h&&m.visualElement?u.jsx(h,{visualElement:m.visualElement,...f}):null,zO(e,c,YO(x,m.visualElement,d),x,p,t,i,g)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=y.forwardRef(a);return l[GO]=e,l}function XO({layoutId:e}){const t=y.useContext(gb).id;return t&&e!==void 0?t+"-"+e:e}function ZO(e,t){y.useContext(J_).strict}function e8(e){const t=G_(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function t8(e,t){if(typeof Proxy>"u")return rh;const n=new Map,r=(i,o)=>rh(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,rh(o,void 0,e,t)),n.get(o))})}const n8=(e,t)=>t.isSVG??_0(e)?new $I(t):new DI(t,{allowProjection:e!==y.Fragment});class r8 extends gs{constructor(t){super(t),t.animationState||(t.animationState=zI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let s8=0;class i8 extends gs{constructor(){super(...arguments),this.id=s8++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=Ks(this.node,o,a);if(l){const{transition:c,transitionEnd:d,...h}=l;for(const f in h)(i=this.node.getValue(f))==null||i.jump(h[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const o8={animation:{Feature:r8},exit:{Feature:i8}};function vl(e){return{point:{x:e.pageX,y:e.pageY}}}const a8=e=>t=>v0(t)&&e(t,vl(t));function ma(e,t,n,r){return Ha(e,t,a8(n),r)}const eE=({current:e})=>e?e.ownerDocument.defaultView:null,Jy=(e,t)=>Math.abs(e-t);function l8(e,t){const n=Jy(e.x,t.x),r=Jy(e.y,t.y);return Math.sqrt(n**2+r**2)}const Gy=new Set(["auto","scroll"]);class tE{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Hl(this.lastRawMoveEventInfo,this.transformPagePoint));const g=sh(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,x=l8(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!x)return;const{point:w}=g,{timestamp:v}=He;this.history.push({...w,timestamp:v});const{onStart:S,onMove:b}=this.handlers;m||(S&&S(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,g)},this.handlePointerMove=(g,m)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Hl(m,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(g,m)=>{this.end();const{onEnd:x,onSessionEnd:w,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=sh(g.type==="pointercancel"?this.lastMoveEventInfo:Hl(m,this.transformPagePoint),this.history);this.startEvent&&x&&x(g,S),w&&w(g,S)},!v0(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=vl(t),c=Hl(l,this.transformPagePoint),{point:d}=c,{timestamp:h}=He;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=n;f&&f(t,sh(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=hl(ma(this.contextWindow,"pointermove",this.handlePointerMove,p),ma(this.contextWindow,"pointerup",this.handlePointerUp,p),ma(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Gy.has(r.overflowX)||Gy.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),he.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),us(this.updatePoint)}}function Hl(e,t){return t?{point:t(e.point)}:e}function Yy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sh({point:e},t){return{point:e,delta:Yy(e,nE(t)),offset:Yy(e,c8(t)),velocity:u8(t,.1)}}function c8(e){return e[0]}function nE(e){return e[e.length-1]}function u8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=nE(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>jt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>jt(t)*2&&(r=e[1]);const i=Lt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function d8(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?me(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?me(n,e,r.max):Math.min(e,n)),e}function qy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function h8(e,{top:t,left:n,bottom:r,right:s}){return{x:qy(e.x,n,s),y:qy(e.y,t,r)}}function Qy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function f8(e,t){return{x:Qy(e.x,t.x),y:Qy(e.y,t.y)}}function p8(e,t){let n=.5;const r=vt(e),s=vt(t);return s>r?n=So(t.min,t.max-r,e.min):r>s&&(n=So(e.min,e.max-s,t.min)),An(0,1,n)}function m8(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const sp=.35;function g8(e=sp){return e===!1?e=0:e===!0&&(e=sp),{x:Xy(e,"left","right"),y:Xy(e,"top","bottom")}}function Xy(e,t,n){return{min:Zy(e,t),max:Zy(e,n)}}function Zy(e,t){return typeof e=="number"?e:e[t]||0}const v8=new WeakMap;class y8{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=We(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=h=>{n&&this.snapToCursor(vl(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:p,dragPropagation:g,onDragStart:m}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hI(p),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),In(w=>{let v=this.getAxisMotionValue(w).get()||0;if(Kn.test(v)){const{projection:S}=this.visualElement;if(S&&S.layout){const b=S.layout.layoutBox[w];b&&(v=vt(b)*(parseFloat(v)/100))}}this.originPoint[w]=v}),m&&he.update(()=>m(h,f),!1,!0),Xf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:m,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:w}=f;if(g&&this.currentDirection===null){this.currentDirection=x8(w),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),x&&he.update(()=>x(h,f),!1,!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new tE(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:eE(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&he.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Kl(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=d8(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=h8(r.layoutBox,t):this.constraints=!1,this.elastic=g8(n),s!==this.constraints&&!Ei(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&In(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=m8(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ei(t))return!1;const r=t.current;Yn(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=oI(r,s.root,this.visualElement.getTransformPagePoint());let o=f8(s.layout.layoutBox,i);if(n){const a=n(rI(o));this.hasMutatedConstraints=!!a,a&&(o=y_(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=In(d=>{if(!Kl(d,n,this.currentDirection))return;let h=l&&l[d]||{};(o===!0||o===d)&&(h={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Xf(this.visualElement,t),r.start(Qu(t,r,0,n,this.visualElement,!1))}stopAnimation(){In(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){In(n=>{const{drag:r}=this.getProps();if(!Kl(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-me(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ei(n)||!r||!this.constraints)return;this.stopAnimation();const s=this.constraints,i={x:0,y:0};In(a=>{const l=this.getAxisMotionValue(a).get();i[a]=p8({min:l,max:l},s[a])});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),In(a=>{const l=this.getAxisMotionValue(a);if(!Kl(a,t,null)||!l.get())return;const{min:c,max:d}=this.constraints[a];l.set(me(c,d,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;v8.set(this.visualElement,this);const t=this.visualElement.current,n=ma(t,"pointerdown",c=>{const{drag:d,dragListener:h=!0}=this.getProps(),f=c.target,p=f!==t&&yI(f);d&&h&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Ei(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=w8(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),he.read(s);const a=Ha(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(In(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=sp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function e2(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function w8(e,t,n){const r=my(e,e2(n)),s=my(t,e2(n));return()=>{r(),s()}}function Kl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function x8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class S8 extends gs{constructor(t){super(t),this.removeGroupControls=kn,this.removeListeners=kn,this.controls=new y8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ih=e=>(t,n)=>{e&&he.update(()=>e(t,n),!1,!0)};class b8 extends gs{constructor(){super(...arguments),this.removePointerDownListener=kn}onPointerDown(t){this.session=new tE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:ih(t),onStart:ih(n),onMove:ih(r),onEnd:(i,o)=>{delete this.session,s&&he.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=ma(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let oh=!1;class _8 extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),oh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ec.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),oh=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||he.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),g0.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;oh=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rE(e){const[t,n]=AO(),r=y.useContext(gb);return u.jsx(_8,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(X_),isPresent:t,safeToRemove:n})}const E8={pan:{Feature:b8},drag:{Feature:S8,ProjectionNode:K_,MeasureLayout:rE}};function t2(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&he.postRender(()=>i(t,vl(t)))}class k8 extends gs{mount(){const{current:t}=this.node;t&&(this.unmount=pI(t,(n,r)=>(t2(this.node,r,"Start"),s=>t2(this.node,s,"End"))))}unmount(){}}class C8 extends gs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hl(Ha(this.node.current,"focus",()=>this.onFocus()),Ha(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function n2(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&he.postRender(()=>i(t,vl(t)))}class T8 extends gs{mount(){const{current:t}=this.node;if(!t)return;
183const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=xI(t,(s,i)=>(n2(this.node,i,"Start"),(o,{success:a})=>n2(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const ip=new WeakMap,ah=new WeakMap,j8=e=>{const t=ip.get(e.target);t&&t(e)},N8=e=>{e.forEach(j8)};function A8({root:e,...t}){const n=e||document;ah.has(n)||ah.set(n,{});const r=ah.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(N8,{root:e,...t})),r[s]}function P8(e,t,n){const r=A8(t);return ip.set(e,n),r.observe(e),()=>{ip.delete(e),r.unobserve(e)}}const R8={some:0,all:1};class M8 extends gs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:R8[s]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:f}=this.node.getProps(),p=d?h:f;p&&p(c)};this.stopObserver=P8(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(I8(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function I8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const O8={inView:{Feature:M8},tap:{Feature:T8},focus:{Feature:C8},hover:{Feature:k8}},D8={layout:{ProjectionNode:K_,MeasureLayout:rE}},L8={...o8,...O8,...E8,...D8},$8=t8(L8,n8);function U8(e){const t=vb(()=>vr(e)),{isStatic:n}=y.useContext(S0);if(n){const[,r]=y.useState(e);y.useEffect(()=>t.on("change",r),[])}return t}function sE(){!w0.current&&T_();const[e]=y.useState(hu.current);return e}function E0(e){return typeof e=="object"&&!Array.isArray(e)}function iE(e,t,n,r){return e==null?[]:typeof e=="string"&&E0(t)?u0(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function F8(e,t,n){return e*(t+1)+n*t}function r2(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function B8(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Zs(e,s),r--)}}function V8(e,t,n,r,s,i){B8(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:me(s,i,r[o]),easing:jb(n,o)})}function z8(e,t,n=0){const r=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/r}function W8(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const H8="easeInOut",lh=20;function K8(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let d=0,h=0,f=0;for(let p=0;p<e.length;p++){const g=e[p];if(typeof g=="string"){c.set(g,h);continue}else if(!Array.isArray(g)){c.set(g.name,r2(h,g.at,d,c));continue}let[m,x,w={}]=g;w.at!==void 0&&(h=r2(h,w.at,d,c));let v=0;const S=(b,k,E,_=0,C=0)=>{const j=J8(b),{delay:T=0,times:A=Hb(j),type:R=t.type||"keyframes",repeat:$,repeatType:O,repeatDelay:G=0,...F}=k;let{ease:V=t.ease||"easeOut",duration:N}=k;const P=typeof T=="function"?T(_,C):T,L=j.length,J=r0(R)?R:s==null?void 0:s[R||"keyframes"];if(L<=2&&J){let ue=100;if(L===2&&q8(j)){const oe=j[1]-j[0];ue=Math.abs(oe)}const pe={...t,...F};N!==void 0&&(pe.duration=jt(N));const U=Bb(pe,ue,J);V=U.ease,N=U.duration}N??(N=i);const W=h+P;A.length===1&&A[0]===0&&(A[1]=1);const X=A.length-j.length;if(X>0&&Wb(A,X),j.length===1&&j.unshift(null),$&&dl($<lh,`Sequence segments can't repeat ${$} times â ignoring repeat option. Use a value below ${lh} or apply repeat at the sequence level instead.`),$&&$<lh){const ue=N>0?G/N:0;N=F8(N,$,G);const pe=[...j],U=[...A];V=Array.isArray(V)?[...V]:[V];const oe=[...V],xe=O==="reverse"||O==="mirror";let ae=pe,se=oe;xe&&(ae=[...pe].reverse(),O==="reverse"&&(se=[...oe].reverse().map(te=>typeof te=="function"?zm(te):te)));for(let te=0;te<$;te++){const Ve=xe&&te%2===0,ft=Ve?ae:pe,Xn=Ve?se:oe,rn=(te+1)*(1+ue);ue>0&&(j.push(j[j.length-1]),A.push(rn),V.push("linear")),j.push(...ft);for(let At=0;At<ft.length;At++)A.push(U[At]+rn),V.push(At===0?"linear":jb(Xn,At-1))}z8(A,$,ue)}const Q=W+N;V8(E,j,V,A,W,Q),v=Math.max(P+N,v),f=Math.max(Q,f)};if(Ye(m)){const b=s2(m,a);S(x,w,i2("default",b))}else{const b=iE(m,x,r,l),k=b.length;for(let E=0;E<k;E++){x=x,w=w;const _=b[E],C=s2(_,a);for(const j in x)S(x[j],G8(w,j),i2(j,C),E,k)}}d=h,h+=v}return a.forEach((p,g)=>{for(const m in p){const x=p[m];x.sort(W8);const w=[],v=[],S=[];for(let _=0;_<x.length;_++){const{at:C,value:j,easing:T}=x[_];w.push(j),v.push(So(0,f,C)),S.push(T||"easeOut")}v[0]!==0&&(v.unshift(0),w.unshift(w[0]),S.unshift(H8)),v[v.length-1]!==1&&(v.push(1),w.push(null)),o.has(g)||o.set(g,{keyframes:{},transition:{}});const b=o.get(g);b.keyframes[m]=w;const{type:k,...E}=t;b.transition[m]={...E,duration:f,ease:S,times:v,...n}}}),o}function s2(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function i2(e,t){return t[e]||(t[e]=[]),t[e]}function J8(e){return Array.isArray(e)?e:[e]}function G8(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Y8=e=>typeof e=="number",q8=e=>e.every(Y8);function Q8(e,t){return Ye(e)||typeof e=="number"||typeof e=="string"&&!E0(t)}function oE(e,t,n,r){const s=[];if(Q8(e,t))s.push(V_(e,E0(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const i=iE(e,t,r),o=i.length;Yn(!!o,"No valid elements provided.","no-valid-elements");for(let a=0;a<o;a++){const l=i[a],c={...n};"delay"in c&&typeof c.delay=="function"&&(c.delay=c.delay(a,o)),l instanceof Element?s.push(...uI(l,t,c,k_.get(l))):s.push(...p_($M(l)??dI,l,t,c))}}return s}function X8(e,t,n){const r=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=vr(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o}
183);return K8(s,t,n,{spring:za}).forEach(({keyframes:o,transition:a},l)=>{r.push(...oE(l,o,a))}),r}function Z8(e){return Array.isArray(e)&&e.some(Array.isArray)}function eD(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function s(i,o,a){let l=[],c;const d={};if(n!==void 0&&(d.reduceMotion=n),r!==void 0&&(d.skipAnimations=r),Z8(i)){const{onComplete:f,...p}=o||{};typeof f=="function"&&(c=f),l=X8(i,{...d,...p},t)}else{const{onComplete:f,...p}=a||{};typeof f=="function"&&(c=f),l=oE(i,o,{...d,...p},t)}const h=new uM(l);return c&&h.finished.then(c),t&&(t.animations.push(h),h.finished.then(()=>{Zs(t.animations,h)})),h}return s}const o2=Object.assign(eD(),{addEffect:LM,removeEffect:h_}),aE=$8;function a2(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function tD({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const s=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!s)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,o]=y.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),a=y.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i,orientationHandler:null}),l=e?typeof e=="number"?e:e.scroll:null,c=e?typeof e=="number"?e:e.resize:null,d=y.useRef(!1);y.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,f,p]=y.useMemo(()=>{const w=()=>{if(!a.current.element)return;const{left:v,top:S,width:b,height:k,bottom:E,right:_,x:C,y:j}=a.current.element.getBoundingClientRect(),T={left:v,top:S,width:b,height:k,bottom:E,right:_,x:C,y:j};a.current.element instanceof HTMLElement&&r&&(T.height=a.current.element.offsetHeight,T.width=a.current.element.offsetWidth),Object.freeze(T),d.current&&!iD(a.current.lastBounds,T)&&o(a.current.lastBounds=T)};return[w,c?a2(w,c):w,l?a2(w,l):w]},[o,r,l,c]);function g(){a.current.scrollContainers&&(a.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",p,!0)),a.current.scrollContainers=null),a.current.resizeObserver&&(a.current.resizeObserver.disconnect(),a.current.resizeObserver=null),a.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",a.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",a.current.orientationHandler))}function m(){a.current.element&&(a.current.resizeObserver=new s(p),a.current.resizeObserver.observe(a.current.element),t&&a.current.scrollContainers&&a.current.scrollContainers.forEach(w=>w.addEventListener("scroll",p,{capture:!0,passive:!0})),a.current.orientationHandler=()=>{p()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",a.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",a.current.orientationHandler))}const x=w=>{!w||w===a.current.element||(g(),a.current.element=w,a.current.scrollContainers=lE(w),m())};return rD(p,!!t),nD(f),y.useEffect(()=>{g(),m()},[t,p,f]),y.useEffect(()=>g,[]),[x,i,h]}function nD(e){y.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function rD(e,t){y.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function lE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:s}=window.getComputedStyle(e);return[n,r,s].some(i=>i==="auto"||i==="scroll")&&t.push(e),[...t,...lE(e.parentElement)]}const sD=["x","y","top","bottom","left","right","width","height"],iD=(e,t)=>sD.every(n=>e[n]===t[n]);function oD({children:e,gap:t=16,speed:n=100,speedOnHover:r,direction:s="horizontal",reverse:i=!1,className:o}){const[a,l]=y.useState(n),[c,{width:d,height:h}]=tD(),f=U8(0),[p,g]=y.useState(!1),[m,x]=y.useState(0);y.useEffect(()=>{let v;const S=s==="horizontal"?d:h;if(S===0)return;const b=S+t,k=i?-b/2:0,E=i?0:-b/2,C=Math.abs(E-k)/a;if(p){const T=Math.abs(f.get()-E)/a;v=o2(f,[f.get(),E],{ease:"linear",duration:T,onComplete:()=>{g(!1),x(A=>A+1)}})}else v=o2(f,[k,E],{ease:"linear",duration:C,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{f.set(k)}});return()=>v==null?void 0:v.stop()},[m,f,a,d,h,t,p,s,i]);const w=r?{onHoverStart:()=>{g(!0),l(r)},onHoverEnd:()=>{g(!0),l(n)}}:{};return u.jsx("div",{className:fe("overflow-hidden",o),children:u.jsxs(aE.div,{className:"flex w-max",style:{...s==="horizontal"?{x:f}:{y:f},gap:`${t}px`,flexDirection:s==="horizontal"?"row":"column"},ref:c,...w,children:[e,e]})})}function l2({children:e,fadeWidth:t=80,containerClassName:n,...r}){if(sE())return u.jsx("div",{className:fe("flex flex-wrap items-center justify-center gap-x-10 gap-y-6",n),children:e});const i={maskImage:`linear-gradient(to right, transparent, black ${t}px, black calc(100% - ${t}px), transparent)`,WebkitMaskImage:`linear-gradient(to right, transparent, black ${t}px, black calc(100% - ${t}px), transparent)`};return u.jsx("div",{className:fe("relative w-full",n),style:i,children:u.jsx(oD,{...r,children:e})})}const ch=e=>{const t=sE(),n=e.testimonials.map(({text:r,name:s,role:i},o)=>u.jsxs("div",{className:"s26-tcard",children:[u.jsx("p",{className:"s26-quote-b",children:r}),u.jsx("p",{className:"s26-quote-a",children:i?`${s}, ${i}`:s})]},o));return t?u.jsx("div",{className:e.className,children:u.jsx("div",{className:"flex flex-col gap-6",children:n})}):u.jsx("div",{className:e.className,children:u.jsx(aE.div,{animate:{translateY:"-50%"},transition:{duration:e.duration||10,repeat:1/0,ease:"linear",repeatType:"loop"},className:"flex flex-col gap-6 pb-6",children:[...new Array(2).fill(0).map((r,s)=>u.jsx(I.Fragment,{children:n},s))]})})},aD="/assets/hero-01-BHtW4Zp6.jpg",lD="/assets/hero-02-BTuwjMqn.jpg",cD="/assets/hero-03-BTLHq3lY.jpg",uD="/assets/hero-04-Da4PJ-Eg.jpg",dD="/assets/hero-05-BLUsZjIY.jpg",hD="/assets/hero-06-Qd-77NKT.jpg",fD="/assets/hero-07-D-SUe99N.jpg",pD="/assets/hero-08-Dr63uhzL.jpg",mD="/assets/hero-09-jJvMXxzT.jpg",gD="/assets/hero-10-B68nTKfd.jpg",c2=Object.assign({"../../assets/hero/hero-01.jpg":aD,"../../assets/hero/hero-02.jpg":lD,"../../assets/hero/hero-03.jpg":cD,"../../assets/hero/hero-04.jpg":uD,"../../assets/hero/hero-05.jpg":dD,"../../assets/hero/hero-06.jpg":hD,"../../assets/hero/hero-07.jpg":fD,"../../assets/hero/hero-08.jpg":pD,"../../assets/hero/hero-09.jpg":mD,"../../assets/hero/hero-10.jpg":gD}),Jl=Object.keys(c2).sort().map(e=>c2[e]),vD=1600;function yD(){const[e,t]=y.useState(0),[n,r]=y.useState(1);return y.useEffect(()=>{if(Jl.length<2||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const s=window.setInterval(()=>{t(i=>{const o=(i+1)%Jl.length;return r(a=>Math.max(a,o+2)),o})},vD);return()=>window.clearInterval(s)},[]),Jl.length?u.jsxs("div",{className:"s26-slideshow","aria-hidden":"true",children:[Jl.map((s,i)=>u.jsx("img",{className:`s26-slide${i===e?" is-on":""}`,src:i<n?s:void 0,alt:"",decoding:"async",loading:i===0?"eager":"lazy"},s)),u.jsx("div",{className:"s26-slideshow-scrim"})]}):null}function wD({items:e}){const t=y.useRef(null),[n,r]=y.useState(!0),[s,i]=y.useState(!1),o=()=>{const l=t.current;l&&(r(l.scrollLeft<=2),i(l.scrollLeft+l.clientWidth>=l.scrollWidth-2))};y.useEffect(()=>{if(o(),!!t.current)return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const a=l=>{const c=t.current;c&&c.scrollBy({left:l*Math.round(c.clientWidth*.8),behavior:"smooth"})};return u.jsxs("div",{className:"s26-rail-wrap",children:[u.jsx("button",{type:"button",className:"s26-rail-arrow is-prev",onClick:()=>a(-1),disabled:n,"aria-label":"Scroll left",children:u.jsx("svg",{width:"11",height:"18",viewBox:"0 0 8 13",fill:"none","aria-hidden":"true",children:u.jsx("path",{d:"M7 1.5 L1.5 6.5 L7 11.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),u.jsx("div",{className:"s26-rail",ref:t,onScroll:o,children:e.map(l=>u.jsxs("article",{className:"s26-tile",children:[u.jsx("div",{className:`s26-tile-art${l.art?l.isLogo?" is-logo":"":" is-empty"}`,children:l.art?u.jsx("img",{src:l.art,alt:l.credit,loading:"lazy",decoding:"async"}):u.jsx("span",{className:"s26-tile-fallback",children:l.credit})}),u.jsx("p",{className:"s26-tile-name",children:l.name}),u.jsx("p",{className:"s26-tile-credit",children:l.credit})]},l.name))}),u.jsx("button",{type:"button",className:"s26-rail-arrow is-next",onClick:()=>a(1),disabled:s,"aria-label":"Scroll right",children:u.jsx("svg",{width:"11",height:"18",viewBox:"0 0 8 13",fill:"none","aria-hidden":"true",children:u.jsx("path",{d:"M1.5 1.5 L7 6.5 L1.5 11.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}const cE="/assets/shades-lockup-white-BH-9aqFa.png",xD="/assets/josh-reel-still-Bh9TA5m3.jpg",SD="/assets/strip-1-CG0_g8nc.jpg",bD="/assets/strip-2-BTKxVWEH.jpg",_D="/assets/enemy-1-math-BAqfYq3P.jpg",ED="/assets/enemy-2-silence-6djF9QiC.jpg",kD="/assets/enemy-3-room-B7jJv9xa.jpg",CD="/assets/enemy-4-flood-BMn42dVA.jpg",Gl="https://stan.store/shadesofsync/p/shades-of-sync-2026",TD="https://stan.store/shadesofsync/p/shades-2026-theme",jD=Object.assign({"../assets/logos/aiaiai.png":cP,"../assets/logos/amazon-prime.svg":uP,"../assets/logos/amori-sounds.png":dP,"../assets/logos/apple.svg":hP,"../assets/logos/atlanta-sound-factory.png":fP,"../assets/logos/behr-productions.png":pP,"../assets/logos/bet.svg":mP,"../assets/logos/bounce-tv.svg":gP,"../assets/logos/call-of-duty.svg":vP,"../assets/logos/cbs.svg":yP,"../assets/logos/clint-productions.png":wP,"../assets/logos/comcast.svg":xP,"../assets/logos/disney-plus.svg":SP,"../assets/logos/espn.png":bP,"../assets/logos/fox-sports.svg":_P,"../assets/logos/gatorade.svg":EP,"../assets/logos/georgia-state-university.svg":kP,"../assets/logos/grayson-music.png":CP,"../assets/logos/hulu.svg":TP,"../assets/logos/ik-multimedia.svg":jP,"../assets/logos/kfc.svg":NP,"../assets/logos/level-77-music.png":AP,"../assets/logos/lionsgate.svg":PP,"../assets/logos/marvel-studios.png":RP,"../assets/logos/mountain-dew.svg":MP,"../assets/logos/mtv.svg":IP,"../assets/logos/netflix.svg":OP,"../assets/logos/nfl.svg":DP,"../assets/logos/nintendo.svg":LP,"../assets/logos/own.svg":$P,"../assets/logos/paramount-plus.svg":UP,"../assets/logos/pendulum.png":FP,"../assets/logos/pepsi.svg":BP,"../assets/logos/raedio.svg":VP,"../assets/logos/red-bull.svg":zP,"../assets/logos/reel-crafter.png":WP,"../assets/logos/rep-indie.png":HP,"../assets/logos/riot-games.svg":KP,"../assets/logos/samsung.svg":JP,"../assets/logos/sesac.svg":GP,"../assets/logos/springhill.svg":YP,"../assets/logos/that-pitch.png":qP,"../assets/logos/the-sync-collective.png":QP,"../assets/logos/tnt.svg":XP,"../assets/logos/tyler-perry-studios.svg":ZP,"../assets/logos/warner-bros.svg":e5,"../assets/logos/women-in-music-atlanta.png":t5,"../assets/logos/xbox.svg":n5}),k0=e=>e.toLowerCase().replace(/\+/g," plus").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),uE=Object.fromEntries(Object.entries(jD).map(([e,t])=>[(e.split("/").pop()||"").replace(/\.[^.]+$/,""),t])),u2=Object.assign({"../assets/gallery/grid-1.jpg":r5,"../assets/gallery/grid-2.jpg":s5,"../assets/gallery/grid-3.jpg":i5,"../assets/gallery/grid-4.jpg":o5,"../assets/gallery/grid-5.jpg":a5,"../assets/gallery/grid-6.jpg":l5,"../assets/gallery/grid-7.jpg":c5,"../assets/gallery/grid-8.jpg":u5,"../assets/gallery/grid-9.jpg":d5}),ND={"grid-1":"A speaker answering on the panel stage at SHADES of Sync 2025","grid-2":"The room seated and listening at SHADES of Sync 2025","grid-3":"Attendees swapping contacts between sessions at SHADES of Sync 2025","grid-4":"The crowd shoulder to shoulder at SHADES of Sync 2025","grid-5":"A panel underway on the main stage at SHADES of Sync 2025","grid-6":"A full room during a session at SHADES of Sync 2025","grid-7":"Creatives talking in the reception space at SHADES of Sync 2025","grid-8":"A panel and the room watching at SHADES of Sync 2025","grid-9":"A creative addressing the room at SHADES of Sync 2025"},AD=Object.keys(u2).sort().map(e=>{const t=(e.split("/").pop()||"").replace(/\.[^.]+$/,"");return{src:u2[e],alt:ND[t]||"SHADES of Sync 2025"}}),d2=Object.assign({"../assets/productions/beauty-in-black.jpg":h5,"../assets/productions/straw.jpg":f5}),h2=Object.keys(d2).sort().map(e=>{const n=(e.split("/").pop()||"").replace(/\.[^.]+$/,"").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase());return{src:d2[e],title:n}}),PD=(e,t)=>{try{const r=document.createElement("canvas");r.width=r.height=48;const s=r.getContext("2d",{willReadFrequently:!0});if(!s)return;s.drawImage(e,0,0,48,48);const i=s.getImageData(0,0,48,48).data;let o=0,a=0,l=0;for(let h=0;h<i.length;h+=4){if(i[h+3]<128)continue;const f=.299*i[h]+.587*i[h+1]+.114*i[h+2];o+=f,a++,f>200&&l++}if(!a)return;const c=o/a,d=l/a;t==="on-dark"&&c<72&&d<.1&&e.classList.add("s26-force-light"),t==="on-light"&&c>175&&e.classList.add("s26-force-dark")}catch{}},Go=({name:e,tone:t})=>{const n=uE[k0(e)];return n?u.jsx("img",{className:"s26-brandimg",src:n,alt:e,loading:"lazy",onLoad:r=>PD(r.currentTarget,t)}):u.jsx(u.Fragment,{children:e})},f2=({text:e,purple:t=!1})=>u.jsx("div",{className:`s26-ticker${t?" s26-ticker--purple":""}`,"aria-hidden":"true",children:u.jsx("div",{className:"s26-ticker-inner",children:[0,1].map(n=>u.jsx("span",{children:Array.from({length:6}).map((r,s)=>u.jsx("span",{className:"s26-ticker-text",children:e},s))},n))})}),p2=["Marvel Studios","Netflix","Disney+","CBS","Paramount+","Amazon Prime","Hulu","BET","NFL","FOX Sports","Riot Games","MTV","TNT","OWN","Apple","Xbox","Nintendo","Call of Duty","Samsung","Red Bull","Comcast","SESAC","Warner Bros.","Lionsgate","Pepsi","Mountain Dew","KFC","Bounce TV","SpringHill","Raedio"],RD=[{label:"The math",img:_D,alt:"A single coin lit in a vast dark room",paras:["You already know the streaming math does not work. You have done the playlist pitching, the release cycles, the algorithm chasing.","Music for TV and film works differently. The catalog you already have could be earning right now."]},{label:"The silence",img:ED,alt:"An empty desk and chair alone in a dark room",paras:["The reason it is not usually comes down to two things. The people who buy music have never heard yours. And nobody has ever told you what would make it placeable.","You have probably already tried to fix the first one. You found an email address, sent your best work, and nothing came back. Not a no. Nothing. A stranger's link is the easiest thing in the world to ignore."]},{label:"The room",img:kD,alt:"A lit doorway far across an empty rain-slick plaza at night",paras:["The rooms where that changes happen in Los Angeles and Nashville, and they happen without you. So we built one here."]},{label:"The flood",img:CD,alt:"Identical waveform ridges repeating to the horizon",paras:["The window is not staying open forever either. Libraries are filling with music that costs nothing to generate. What survives that is work with a person and a relationship behind it."]}],MD=Object.assign({"../assets/speakers/ashley-young.jpg":p5,"../assets/speakers/emoni-escobar.jpg":m5,"../assets/speakers/jared-oluwa.jpg":g5,"../assets/speakers/jarrid-lezcano.jpg":v5,"../assets/speakers/jennifer-stafford-lmhc-lpcc.jpg":y5,"../assets/speakers/jerr
183y-jones-cpa.jpg":w5,"../assets/speakers/julian-wettlin.jpg":x5,"../assets/speakers/rachel-mcfarlane.jpg":S5,"../assets/speakers/rashad-richardson.jpg":b5,"../assets/speakers/reesha-l-archibald.jpg":_5,"../assets/speakers/somara-jacques-esq.jpg":E5}),ID=Object.fromEntries(Object.entries(MD).map(([e,t])=>[(e.split("/").pop()||"").replace(/\.[^.]+$/,""),t])),OD=Object.assign({"../assets/placements/coach-prime.jpg":k5,"../assets/placements/deadpool-wolverine.jpg":C5,"../assets/placements/madea-s-destination-wedding.jpg":T5,"../assets/placements/painted-face-entertainment.jpg":j5,"../assets/placements/reasonable-doubt.jpg":N5,"../assets/placements/space-jam.jpg":A5}),DD=Object.fromEntries(Object.entries(OD).map(([e,t])=>[(e.split("/").pop()||"").replace(/\.[^.]+$/,""),t])),LD=[{name:"Tasha Catour",credit:"Space Jam"},{name:"Anita Grigore",credit:"Reasonable Doubt"},{name:"Josh Sutherland",credit:"ESPN"},{name:"Celeste Debro",credit:"Madea's Destination Wedding"},{name:"Brian Miller",credit:"Coach Prime"},{name:"Sam Bowser",credit:"Tunefind"},{name:"Raven Davenport",credit:"Deadpool & Wolverine"},{name:"Jay Ward",credit:"Painted Face Entertainment"}].map(e=>{const t=k0(e.credit),n=DD[t],r=uE[t];return{...e,art:n||r,isLogo:!n&&!!r}}),$D=[{credit:"Marvel's The Punisher: One Last Kill · Netflix's Ransom Canyon · CBS · FOX Sports",name:"Rashad Richardson",bio:"President of Creative Music Licensing, MFE Sync Agency. Label Management Senior Analyst at NKSFB. Guild of Music Supervisors DEI Committee."},{credit:"Guillermo del Toro's Frankenstein (Netflix) · Amazon Prime's Overcompensating · Ramy",name:"Ashley Young",bio:"Music Supervisor, GrandSon Creative. Committee Coordinator, Guild of Music Supervisors. SXSW 2026 panelist."},{credit:"Bounce TV's Johnson (Hulu) · Finding Happy · Marvel's Luke Cage",name:"Reesha L. Archibald",bio:"Creative Executive, Producer, and Music Supervisor. Director of Sync Strategy at WVZ MFG Publishing. Board Member, Black Women Film Network."},{credit:"Candy Cane Lane (Amazon Prime) · Tyler Perry's All the Queen's Men (BET) · Hussle docuseries (SpringHill)",name:"Emoni Escobar",bio:"CEO of Blaze Unlimited. Catalog of over 300 independent artists. Producer of the Guild of Music Supervisors Music in Media Conference and Co-Chair of its Education Committee."},{credit:"Assemble Sound · Score a Score · SXSW",name:"Julian Wettlin",bio:"Director of Custom Composition and Sync Partnerships. Nine years in supervision, licensing, and publishing. Mentorship work with SXSW and the Guild of Music Supervisors."},{credit:"SESAC",name:"Jarrid Lezcano",bio:"Director of International Royalties. Sixteen years at SESAC. Speaker at Music Biz 2026. Active in CISAC's Society Publisher Forum."},{credit:"Riot Games · Red Bull · The Grammy Awards",name:"Rachel McFarlane",bio:"Music Project Coordinator and composer. SiriusXM Black Canadian Music Award recipient. First Black person and first woman to complete Berklee's Screen Scoring double major."},{credit:"MTV · BET · OWN · KFC",name:"Jared Oluwa",bio:"Custom hip-hop for brands and television. GrammyU Mentor with The Recording Academy. Built and funded a teen music production program in LA County."},{credit:"Entertainment and IP Law",name:"Somara Jacques, Esq.",bio:"Founder of Latte Legal PLLC. Ten years in sync licensing, brand partnerships, NIL, and trademark. She teaches creatives how to keep what they own."},{credit:"Wealth Management",name:"Jerry Jones, CPA",bio:"Licensed CPA and wealth management specialist."},{credit:"Mental Health for Working Creatives",name:"Jennifer Stafford, LMHC, LPCC",bio:"Licensed psychotherapist and founder of Ivy Relationship Consultants. She works with musicians, managers, publicists, and festival founders."}],UD=[["Anita Grigore","Ironheart, Loki"],["Josh Sutherland","NFL, ESPN"],["Raven Davenport","Marvel Studios"],["Sam Bowser","Tunefind"],["Brian Miller","Coach Prime, Madden NFL"],["Eric Campbell","Blue's Big City Adventure, Mountain Dew"],["Omega Sparx","Killer Instinct (Xbox), Ninjala (Nintendo)"],["Ariella Abrams","Raedio"],["Jennie Armon","Soundbloom"],["Tasha Catour","Rhythm & Flow, Space Jam, Lecrae"],["Ashilee","Beauty In Black, Nicki Minaj, Straw"],["Celeste Debro","Madea's Destination Wedding, Young Dylan"],["Jay Ward","Painted Face Entertainment"],["Anthony Arasi","Level 77 Music"],["Amadi Jae","Women In Music, Retrolite Society"]],FD=[{time:"9:00 AM",what:"Doors open",who:""},{time:"10:00 AM",what:"Why we built this room.",who:"Josh Williams, Anthony Clint Jr., and 2025 Brief Beast winners Cade and Monty"},{time:"10:20 AM",what:"Sync or skip.",who:"Reesha L. Archibald, Ashley Young, Emoni Escobar"},{time:"11:20 AM",what:"Catalog is currency.",who:"Rashad Richardson, Julian Wettlin"},{time:"12:00 PM",what:"Lunch and open networking",who:""},{time:"12:45 PM",what:"Special guest performance. To be announced.",who:""},{time:"1:20 PM",what:"Turn a song into an estate.",who:"Somara Jacques, Jarrid Lezcano, Jerry Jones"},{time:"2:00 PM",what:"Mental health for working creatives.",who:"Jennifer Stafford, Rachel McFarlane"}],BD=["You have a catalog, released or unreleased, and no idea who buys music like yours","You have placed music before and you want it to happen on purpose instead of by accident","You have never pitched for a placement and you want to start in a room where the buyers are standing in front of you","You produce, write, or compose and you want income you own instead of income you rent from a platform","You are a publisher, licensor, or supervisor looking for BIPOC and women music creatives working at a professional level"],VD=["You are looking for a record deal or an artist showcase","You want to be discovered instead of hired","You have not made any music yet","You are looking for a networking mixer"],zD=["Names you can email on Monday, from conversations you had face to face","Direct feedback on your actual music from people who place music for a living","A clear answer to what makes a track placeable, from the people who make that call","What to do when a contract lands, and what to never sign away","A room full of music creatives who are building the same thing you are"],WD=["Behr Productions","Clint Productions","Atlanta Sound Factory","Pendulum","Women In Music Atlanta","Rep Indie","Level 77 Music","SESAC","AIAIAI","That Pitch","IK Multimedia","Georgia State University","Amori Sounds","The Sync Collective","Grayson Music","Major Minor","Reel Crafter"],HD=["Speak at SHADES","Sponsor SHADES","Vendor application","Media pass","Community partner"],KD=[{text:`"Shades of Sync was a big win for me. Got to meet some supervisors and I've already established a rapport with a couple of them."`,name:"Jared Whitehead",role:""},{text:`"One of the best parts of the SHADES of Sync Conference has been the new friendships and business opportunities it's brought."`,name:"Gerrell Hoover",role:""},{text:`"I didn't really know where to begin until I checked out Shades of Sync and joined this group this week. It's slowly starting to click tho."`,name:"Colby Brown",role:""},{text:'"I went to Shades of Sync last year and it was amazing. I learned a lot and I am doing everything I can to get back there this year."',name:"Joe Haywood Jr",role:""},{text:'"Shades of Sync completely transformed my understanding of the sync industry. The connections I made were invaluable."',name:"Jordan Mitchell",role:"Independent Artist"}],JD=[{text:`"I'm also in Atlanta for Shades of Sync and excited to see so many dope people in person. Feeling motivated af."`,name:"Cade Legat",role:""},{text:`"Had some great times and met some awesome people at Shades of Sync. I'm looking forward to getting to know everybody and doing this more often."`,name:"Nstra Mental",role:""},{text:`"An incredible event that brings together the best minds in sync licensing. Can't wait for next year."`,name:"Aaliyah Thompson",role:"Music Producer"},{text:`"Sounds like Shades of Sync was such an amazing time. If I weren't halfway round the world I would have been there too."`,name:"Aidan Brock",role:""}],GD=[{text:'"The speakers were phenomenal and the networking opportunities were exactly what I needed to level up."',n
183ame:"Marcus Davis",role:"Composer"},{text:`"Glad to have met some of you all at Shades of Sync. Let's make it happen."`,name:"Brandon Lawrence",role:""},{text:`"I made it to Alpharetta. The hotel is great. Can't wait to dive in."`,name:"Choirboy Dank",role:""}],YD=()=>{const e=y.useRef(null);return y.useEffect(()=>{const t=e.current;if(!t||(t.muted=!0,window.matchMedia("(prefers-reduced-motion: reduce)").matches))return;const n=new IntersectionObserver(([r])=>{r.isIntersecting?t.play().catch(()=>{}):t.pause()},{threshold:.5});return n.observe(t),()=>n.disconnect()},[]),y.useEffect(()=>{const t=document.querySelectorAll(".s26-rev"),n=new IntersectionObserver(r=>{r.forEach(s=>{s.isIntersecting&&(s.target.classList.add("s26-in"),n.unobserve(s.target))})},{threshold:.12});return t.forEach(r=>n.observe(r)),()=>n.disconnect()},[]),u.jsxs("div",{className:"s26",children:[u.jsx("nav",{className:"s26-nav",children:u.jsxs("div",{className:"s26-nav-inner",children:[u.jsxs("a",{href:"#top",className:"s26-nav-logo",children:["SHADES ",u.jsx("span",{children:"of"})," SYNC"]}),u.jsx("a",{href:Gl,className:"s26-nav-pill",children:"Get Your Ticket"})]})}),u.jsxs("header",{id:"top",className:"s26-dark",children:[u.jsxs("div",{className:"s26-herophoto",children:[u.jsx(yD,{}),u.jsx("img",{className:"s26-hero-logo",src:cE,alt:"SHADES of Sync"})]}),u.jsx("div",{className:"s26-ferro s26-herotext-wrap",children:u.jsx("div",{className:"s26-wrap",children:u.jsxs("div",{className:"s26-herotext",children:[u.jsx("p",{className:"s26-eyebrow",children:"OCTOBER 30 + 31, 2026 / ALPHARETTA, GEORGIA"}),u.jsxs("h1",{className:"s26-d s26-hero-h",children:["The ",u.jsx("em",{children:"room"})," to get your music into TV and film."]}),u.jsxs("div",{className:"s26-hero-cta",children:[u.jsx("a",{href:Gl,className:"s26-btn",children:"GET YOUR TICKET / $450"}),u.jsx("p",{className:"s26-btn-micro",children:"Both days included."})]})]})})})]}),u.jsx("section",{className:"s26-dark s26-sec",style:{paddingTop:0},children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h3 s26-rev",style:{marginBottom:28},children:["The people in this room place music ",u.jsx("em",{children:"here."})]}),u.jsxs("div",{className:"s26-rev",children:[u.jsx(l2,{speed:45,speedOnHover:12,gap:72,fadeWidth:70,containerClassName:"s26-cloud-row",children:p2.slice(0,16).map(t=>u.jsx("span",{className:"s26-cloud-item",children:u.jsx(Go,{name:t,tone:"on-dark"})},t))}),u.jsx(l2,{reverse:!0,speed:38,speedOnHover:12,gap:72,fadeWidth:70,containerClassName:"s26-cloud-row",children:p2.slice(16).map(t=>u.jsx("span",{className:"s26-cloud-item",children:u.jsx(Go,{name:t,tone:"on-dark"})},t))})]}),u.jsx("p",{className:"s26-caption",children:"Credits from the people on our stage, in our panels, and in our listening sessions."})]})}),u.jsx("div",{className:"s26-dark",children:u.jsx(f2,{text:"OCTOBER 30 + 31, 2026 / ALPHARETTA, GEORGIA /"})}),u.jsx("section",{className:"s26-light s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["What SHADES of Sync ",u.jsx("em",{children:"actually"})," is."]}),u.jsxs("div",{className:"s26-lede",children:[u.jsx("p",{className:"s26-body",children:"SHADES of Sync is a two-day conference for music creatives who want their music in television, film, advertising, and games."}),u.jsx("p",{className:"s26-body",children:"Each year, hundreds of music creatives gather with the music supervisors, sync executives, publishers, and licensors who decide what gets placed."}),u.jsx("p",{className:"s26-body",children:"Built for BIPOC and Women music creatives that never had an opportunity to be a part of the conversation."})]})]})}),u.jsx("section",{className:"s26-dark s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-why-h s26-rev s26-equation",children:[u.jsx("span",{children:"Streaming = $0.003"}),u.jsxs("span",{children:["Placements = ",u.jsx("em",{children:"music full time"})]})]}),u.jsx("div",{className:"s26-enemies",children:RD.map(t=>u.jsxs("article",{className:"s26-enemy s26-rev",children:[u.jsx("img",{className:"s26-enemy-img",src:t.img,alt:t.alt,loading:"lazy",decoding:"async"}),u.jsxs("div",{className:"s26-enemy-body",children:[u.jsx("p",{className:"s26-enemy-label",children:t.label}),t.paras.map(n=>u.jsx("p",{className:"s26-enemy-text",children:n},n.slice(0,24)))]})]},t.label))}),u.jsx("p",{className:"s26-d s26-enemy-close",children:"Two days. Both problems."})]})}),u.jsx("section",{className:"s26-light s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["What we are actually ",u.jsx("em",{children:"talking"})," about."]}),u.jsxs("div",{className:"s26-panels s26-rev",children:[u.jsxs("div",{className:"s26-panel",children:[u.jsx("h3",{className:"s26-d s26-panel-t",children:"Sync or Skip"}),u.jsx("p",{className:"s26-panel-b",children:"Three working music supervisors break down what makes them say yes, and what makes them close the tab."})]}),u.jsxs("div",{className:"s26-panel",children:[u.jsx("h3",{className:"s26-d s26-panel-t",children:"Catalog Is Currency"}),u.jsx("p",{className:"s26-panel-b",children:"What sync reps look for in a catalog, and how they decide who to sign and who to pass on."})]}),u.jsxs("div",{className:"s26-panel",children:[u.jsx("h3",{className:"s26-d s26-panel-t",children:"Flip a Song into an Estate"}),u.jsx("p",{className:"s26-panel-b",children:"An entertainment attorney, a royalties executive, and a CPA on turning placements into money that outlives you."})]}),u.jsxs("div",{className:"s26-panel",children:[u.jsx("h3",{className:"s26-d s26-panel-t",children:"The Unseen Tax"}),u.jsx("p",{className:"s26-panel-b",children:"What this career costs you that nobody bills you for, and how working creatives handle it."})]})]})]})}),u.jsx("section",{className:"s26-dark s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["One ticket. Both days. Same ",u.jsx("em",{children:"access."})]}),u.jsxs("div",{className:"s26-ticketcard s26-rev",children:[u.jsx("div",{className:"s26-price",children:"$450"}),u.jsx("p",{className:"s26-price-sub",children:"Both days included"}),u.jsx("p",{className:"s26-ticketcard-label",children:"What your ticket gets you access to"}),u.jsxs("ul",{className:"s26-ticket-list",children:[u.jsx("li",{children:"Day one, virtual. A live listening session where music supervisors hear your music and tell you what would make it placeable"}),u.jsx("li",{children:"Day two, in person. A full day in the room with music supervisors, sync executives, publishers, and hundreds of music creatives"}),u.jsx("li",{children:"Every panel, every roundtable, and the open networking between them, where most of the real conversations happen"}),u.jsx("li",{children:"Food, snacks, and drinks through day two"}),u.jsx("li",{children:"Hotel block details, sent to you after purchase"})]}),u.jsx("div",{className:"s26-callout",children:"No VIP tier. No back room. No paywalled access. Everyone in the building has the same shot at the same people."}),u.jsx("p",{className:"s26-urgency",children:"At the door, the price goes up. Seats are gone when they are gone."}),u.jsx("div",{className:"s26-btn-wrap",children:u.jsx("a",{href:Gl,className:"s26-btn s26-btn--inverse",children:"GET YOUR TICKET"})})]})]})}),u.jsx("section",{className:"s26-light s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:[u.jsx("em",{children:"Placements"})," have come out of this room."]}),u.jsxs("div",{className:"s26-placements s26-rev",children:[u.jsx("span",{className:"s26-placement",children:"Netflix"}),u.jsx("span",{className:"s26-placement",children:"Tyler Perry Studios"}),u.jsx("span",{className:"s26-placement",children:"Gatorade"})]}),u.jsx("p",{className:"s26-body",children:u.jsx("strong",{children:"Not from a course. Not from a cold email. From conversations that happened at SHADES."})}),h2.length>0&&u.jsx("div",{className:"s26-posters s26-rev",children:h2.map(t=>u.jsx("img",{className:"s26-poster",src:t.src,alt:t.title,loading:"lazy",decoding:"async"},t.src))}),u.jsxs("div",{className:"s26-story",children:[u.jsx("p",{className:"s26-body",children:"A music creative met a sync agent on a panel at SHADES. A few months later, their music was in a Gatorade campaign."}),u.jsx("p",{className:"s26-body",children:"That is not a promise. That is
183what access looks like when the person who buys music is standing in front of you instead of ignoring your email."})]}),u.jsx("video",{ref:e,className:"s26-video",controls:!0,playsInline:!0,muted:!0,loop:!0,preload:"metadata",poster:"/media/shades-recap-2025-poster.jpg",src:"/media/shades-recap-2025.mp4"}),u.jsxs("div",{className:"s26-tcolwrap s26-rev",children:[u.jsx(ch,{testimonials:KD,duration:19}),u.jsx(ch,{testimonials:JD,className:"s26-tcol-md",duration:23}),u.jsx(ch,{testimonials:GD,className:"s26-tcol-lg",duration:21})]}),u.jsx("div",{style:{marginTop:40},children:u.jsx("div",{className:"s26-photogrid s26-rev",children:AD.map(t=>u.jsx("img",{className:"s26-gridimg",src:t.src,alt:t.alt,loading:"lazy",decoding:"async"},t.src))})})]})}),u.jsx("div",{className:"s26-strip",children:u.jsx("img",{className:"s26-stripimg",src:SD,alt:"The room shoulder to shoulder at SHADES of Sync 2025",loading:"lazy",decoding:"async"})}),u.jsx("section",{className:"s26-dark s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["Is this room for ",u.jsx("em",{children:"you?"})]}),u.jsx("p",{className:"s26-forcard-t is-for",children:"This is for you if:"}),u.jsx("div",{className:"s26-forbars s26-rev",children:BD.map(t=>u.jsx("div",{className:"s26-forbar is-for",children:t},t))}),u.jsx("p",{className:"s26-forcard-t is-not",children:"This is not for you if:"}),u.jsx("div",{className:"s26-forbars s26-rev",children:VD.map(t=>u.jsx("div",{className:"s26-forbar is-not",children:t},t))}),u.jsx("p",{className:"s26-d s26-closing-line",children:"You do not need a placement to be in this room. You need music and a reason to be here."})]})}),u.jsx("section",{className:"s26-light s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:[u.jsx("em",{children:"Who"})," is in the room."]}),u.jsx("p",{className:"s26-body",children:"Every name on this stage places music, buys music, or protects the people who make it."}),u.jsx("p",{className:"s26-label",style:{marginTop:48},children:"2026 Docket"}),u.jsx("div",{className:"s26-speakers",style:{marginTop:0},children:$D.map(t=>{const n=ID[k0(t.name)];return u.jsxs("article",{className:"s26-spk s26-rev",children:[u.jsx("p",{className:"s26-spk-credit",children:t.credit}),u.jsxs("div",{className:`s26-spk-photo${n?" has-photo":""}`,children:[n?u.jsx("img",{className:"s26-spk-img",src:n,alt:t.name,loading:"lazy",decoding:"async"}):null,u.jsx("h3",{className:"s26-d s26-spk-name",children:t.name})]}),u.jsx("p",{className:"s26-spk-bio",children:t.bio})]},t.name)})}),u.jsx("p",{className:"s26-note",children:"More names announced through September."}),u.jsx("p",{className:"s26-label",style:{marginTop:56},children:"Past Docket"}),u.jsx(wD,{items:LD}),u.jsx("div",{className:"s26-past",style:{marginTop:40},children:UD.map(([t,n])=>u.jsxs("p",{className:"s26-past-item",children:[u.jsx("strong",{children:t})," · ",n]},t))})]})}),u.jsx("section",{className:"s26-dark s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["How the two days ",u.jsx("em",{children:"work."})]}),u.jsxs("div",{className:"s26-day",children:[u.jsx("h3",{className:"s26-d s26-day-h",children:"DAY ONE / Thursday, October 30. Virtual."}),u.jsx("p",{className:"s26-body",children:"Music supervisors from across the country listen to your music live and tell you what is working, what is not, and what would make it placeable."}),u.jsx("p",{className:"s26-body",children:"Most creatives spend years guessing why their pitches go unanswered. This is the day you stop guessing."})]}),u.jsxs("div",{className:"s26-day",children:[u.jsx("h3",{className:"s26-d s26-day-h",children:"DAY TWO / Friday, October 31. In person. Phase Events, Alpharetta."}),u.jsxs("div",{className:"s26-sched s26-rev",children:[FD.map(t=>u.jsxs("div",{className:"s26-sched-row",children:[u.jsx("span",{className:"s26-sched-time",children:t.time}),u.jsxs("div",{children:[u.jsx("p",{className:"s26-sched-what",children:t.what}),t.who?u.jsx("p",{className:"s26-sched-who",children:t.who}):null]})]},t.time)),u.jsxs("div",{className:"s26-sched-row",children:[u.jsx("span",{className:"s26-sched-time",children:"3:00 PM"}),u.jsxs("div",{children:[u.jsx("p",{className:"s26-sched-what",children:"What it means to leave something behind."}),u.jsx("p",{className:"s26-sched-who",children:"Anthony Clint Jr., Josh Williams, Deraj (Black Panther 2, Call of Duty, Samsung, NFL), Greg Savage (MTV, TNT, Comcast)"})]})]})]}),u.jsx("p",{className:"s26-note",children:"Schedule subject to change."})]})]})}),u.jsx("section",{className:"s26-light s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["The ",u.
183jsx("em",{children:"Brief Beast"})," Challenge"]}),u.jsxs("div",{className:"s26-facts s26-rev",children:[u.jsxs("div",{className:"s26-fact",children:[u.jsx("p",{className:"s26-fact-big",children:"Free"}),u.jsx("p",{className:"s26-fact-sub",children:"to enter"})]}),u.jsxs("div",{className:"s26-fact",children:[u.jsx("p",{className:"s26-fact-big",children:"$1,000"}),u.jsx("p",{className:"s26-fact-sub",children:"licensing fee"})]}),u.jsxs("div",{className:"s26-fact",children:[u.jsx("p",{className:"s26-fact-big",children:"Your masters"}),u.jsx("p",{className:"s26-fact-sub",children:"stay yours"})]})]}),u.jsx("p",{className:"s26-body",children:"Every year we run a real brief, the same way a supervisor would send one. You write to it. You submit it. Free."}),u.jsx("p",{className:"s26-body",children:"The winner takes a $1,000 licensing fee and keeps full ownership of their masters. We announce it live on YouTube."}),u.jsxs("div",{className:"s26-winners s26-rev",children:[u.jsxs("article",{className:"s26-winner",children:[u.jsxs("div",{className:"s26-winner-art",children:[u.jsx(Go,{name:"Xbox",tone:"on-dark"}),u.jsx(Go,{name:"Nintendo",tone:"on-dark"})]}),u.jsxs("div",{className:"s26-winner-body",children:[u.jsx("p",{className:"s26-winner-name",children:"Omega Sparx"}),u.jsx("p",{className:"s26-winner-text",children:"Omega Sparx won the first one. His music has since landed in Killer Instinct on Xbox and Ninjala on Nintendo, and he has been back on the SHADES stage as a speaker."})]})]}),u.jsxs("article",{className:"s26-winner",children:[u.jsx("div",{className:"s26-winner-art is-type",children:u.jsx("span",{className:"s26-winner-year",children:"2025"})}),u.jsxs("div",{className:"s26-winner-body",children:[u.jsx("p",{className:"s26-winner-name",children:"Cade and Monty"}),u.jsx("p",{className:"s26-winner-text",children:"Cade and Monty won last year. They open the conference on October 31."})]})]})]}),u.jsx("p",{className:"s26-d s26-winner-close",children:"None of them had a connection. They had a track and a deadline."}),u.jsx("p",{className:"s26-body",children:"If you have never had a placement, this is how you get your first. If you already have some, this is one more credit without chasing it."}),u.jsx("p",{children:u.jsx("span",{className:"s26-d s26-deadline",children:"Submissions close September 15."})}),u.jsx("div",{style:{marginTop:28},children:u.jsx("a",{href:TD,className:"s26-btn",children:"ENTER THE BRIEF BEAST CHALLENGE"})})]})}),u.jsx("section",{className:"s26-dark s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["What you take ",u.jsx("em",{children:"home."})]}),u.jsx("div",{className:"s26-takes s26-rev",children:zD.map((t,n)=>u.jsxs("div",{className:"s26-take",children:[u.jsxs("span",{className:"s26-take-n",children:["0",n+1]}),u.jsx("p",{className:"s26-take-b",children:t})]},t))})]})}),u.jsx("section",{className:"s26-light s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["Built by people who ",u.jsx("em",{children:"place"})," music."]}),u.jsxs("div",{className:"s26-founders s26-rev",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"s26-d s26-founder-name",children:"Josh Williams"}),u.jsx("p",{className:"s26-body",children:"International touring artist and composer for advertising and movie trailer campaigns. His work has been featured in campaigns for Lionsgate, Apple, Warner Bros., CBS, and Pepsi. He teaches independent music creatives how to earn from owning their work."})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"s26-d s26-founder-name",children:"Anthony Clint Jr."}),u.jsx("p",{className:"s26-body",children:"Atlanta-based producer and composer for TV and film. Placements include Keeping Up With The Kardashians (E), Nappily Ever After (Netflix), and the Emmy-winning series Born This Way (A&E)."})]})]}),u.jsxs("div",{className:"s26-reel",children:[u.jsx("img",{className:"s26-reelimg",src:xD,alt:"A SHADES of Sync 2025 panel mid-conversation on stage",loading:"lazy",decoding:"async"}),u.jsx("p",{className:"s26-caption",children:"Get your music on shows like this."})]})]})}),u.jsx("section",{className:"s26-dark s26-sec",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["Getting to ",u.jsx("em",{children:"Alpharetta."})]}),u.jsx("p",{className:"s26-body",children:"Phase Events, Alpharetta, Georgia. About 45 minutes from Hartsfield-Jackson."}),u.jsx("p",{className:"s26-body",children:"We hold a hotel block for ticket holders. Details go out by email after you buy."}),u.jsx("p",{className:"s26-body",children:"Day one happens from wherever you are, so you are only traveling for one day of the conference."})]})}),u.jsx("section",{className:"s26-light s26-sec",style:{paddingBottom:56},children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["Put your ",u.jsx("em",{children:"brand"})," in this room."]}),u.jsxs("div",{className:"s26-facts s26-rev",children:[u.jsxs("div",{className:"s26-fact",children:[u.jsx("p",{className:"s26-fact-big",children:"Hundreds"}),u.jsx("p",{className:"s26-fact-sub",children:"of music creatives"})]}),u.jsxs("div",{className:"s26-fact",children:[u.jsx("p",{className:"s26-fact-big",children:"20%"}),u.jsx("p",{className:"s26-fact-sub",children:"place music for a living"})]}),u.jsxs("div",{className:"s26-fact",children:[u.jsx("p",{className:"s26-fact-big",children:"$1M"}),u.jsx("p",{className:"s26-fact-sub",children:"estimated annual spend"})]})]}),u.jsx("p",{className:"s26-body",children:"SHADES brings together hundreds of music creatives, music supervisors, licensors, and publishers for two days."}),u.jsx("p",{className:"s26-body",children:"Our attendees spend an estimated $1M a year on gear, plugins, courses, and tools."}),u.jsx("p",{className:"s26-body",children:"If your brand serves independent music creatives, this is where they are."}),u.jsx("div",{style:{marginTop:32},children:u.jsx("a",{href:"/sponsors",className:"s26-btn",children:"PARTNER WITH SHADES"})})]})}),u.jsx("section",{className:"s26-light s26-sec",style:{paddingTop:0},children:u.jsxs("div",{className:"s26-wrap",children:[u.jsx("p",{className:"s26-label",children:"Supported by."}),u.jsx("div",{className:"s26-partners s26-rev",style:{marginTop:0},children:WD.map(t=>u.jsx("div",{className:"s26-partner",children:u.jsx(Go,{name:t,tone:"on-light"})},t))})]})}),u.jsx("div",{className:"s26-strip",children:u.jsx("img",{className:"s26-stripimg",src:bD,alt:"The SHADES of Sync stage and the room in 2025",loading:"lazy",decoding:"async"})}),u.jsxs("section",{className:"s26-dark s26-sec",style:{paddingBottom:0},children:[u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("h2",{className:"s26-d s26-h2 s26-rev",children:["Focused on ",u.jsx("em",{children:"BIPOC and Women"})," music creatives in the space."]}),u.jsx("p",{className:"s26-body",children:"The demand for the sound was never the problem. The access was."}),u.jsx("p",{className:"s26-body",children:"SHADES of Sync exists to move these numbers, one placement at a time."}),u.jsxs("div",{className:"s26-chart s26-rev",children:[u.jsxs("div",{className:"s26-chart-group",children:[u.jsx("p",{className:"s26-chart-title",children:"Composer representation"}),[{label:"Minority",pct:8},{label:"Non-minority",pct:67}].map(t=>u.jsxs("div",{className:"s26-bar-row",children:[u.jsx("span",{className:"s26-bar-label",children:t.label}),u.jsxs("div",{className:"s26-bar-track",children:[u.jsx("div",{className:"s26-bar-fill is-them",style:{"--pct":`${t.pct}%`}}),u.jsxs("span",{className:"s26-bar-num",children:[t.pct,"%"]})]})]},t.label))]}),u.jsxs("div",{className:"s26-chart-group",children:[u.jsx("p",{className:"s26-chart-title",children:"Women in the room"}),[{label:"SHADES, last year",pct:32,us:!0},{label:"Sync industry average",pct:2.5,us:!1}].map(t=>u.jsxs("div",{className:"s26-bar-row",children:[u.jsx("span",{className:"s26-bar-label",children:t.label}),u.jsxs("div",{className:"s26-bar-track",children:[u.jsx("div",{className:`s26-bar-fill ${t.us?"is-us":"is-them"}`,style:{"--pct":`${t.pct}%`}}),u.jsxs("span",{className:"s26-bar-num",children:[t.pct,"%"]})]})]},t.label))]})]})]}),u.jsx("div",{className:"s26-tagline-gap"}),u.jsx("span",{style:{position:"absolute",left:-9999},children:"Showcasing Heritage. Advocating Diversity. Elevating Sync."}),u.jsx(f2,{purple:!0,text:"Showcasing. Heritage. Advocating. Diversity. Elevating. Sync."})]}),u.jsx("section",{className:"s26-dark s26-ferro",children:u.jsx("div",{className:"s26-wrap",children:u.jsxs("div",{className:"s26-final",children:[u.jsxs("h2",{className:"s26-d s26-final-h s26-rev",children:["October 30 and 31. Two days. ",u.jsx("em",{children:"One room."})]}),u.jsx("p",{className:"s26-final-body",children:"The people who place music will be in that building. You can be in it with them, or you can send another email nobody opens."}),u.jsx("p",{className:"s26-final-price",children:"$450. Both days. Same access for everyone."}),u.jsx("div",{className:"s26-final-cta",children:u.jsx("a",{href:Gl,className:"s26-btn",children:"GET YOUR TICKET"})})]})})}),u.jsx("footer",{className:"s26-dark s26-foot",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsxs("div",{className:"s26-involved",children:[u.jsx("p",{className:"s26-label",children:"Get involved"}),u.jsx("div",{className:"s26-foot-btns",children:HD.map(t=>u.jsx("a",{className:"s26-foot-btn",href:`mailto:[email protected]?subject=${encodeURIComponent(t+" - SHADES 2026")}`,children:t},t))})]}),u.jsxs("div",{className:"s26-foot-block",children:[u.jsx("p",{className:"s26-label",children:"Contact"}),u.jsxs("p",{className:"s26-foot-contact",children:[u.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),u.jsx("br",{}),u.jsx("a",{href:"https://www.instagram.com/shadesofsync",target:"_blank",rel:"noreferrer",children:"@SHADESofSync"})]})]}),u.jsxs("div",{className:"s26-foot-bottom",children:[u.jsx("span",{children:"SHADES of Sync"}),u.jsx("span",{children:"October 30 + 31, 2026 / Alpharetta, Georgia"})]})]})})]})};var Bn=function(){return Bn=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},Bn.apply(this,arguments)};function Mo(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 qD(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
183return new(n||(n=Promise))(function(i,o){function a(d){try{c(r.next(d))}catch(h){o(h)}}function l(d){try{c(r.throw(d))}catch(h){o(h)}}function c(d){d.done?i(d.value):s(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function QD(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))}const XD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class C0 extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class ZD extends C0{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class m2 extends C0{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class g2 extends C0{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var op;(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"})(op||(op={}));class eL{constructor(t,{headers:n={},customFetch:r,region:s=op.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=XD(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return qD(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:d,timeout:h}=r;let f={},{region:p}=r;p||(p=this.region);const g=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,g.searchParams.set("forceFunctionRegion",p));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(f["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(f["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let x=d;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),d?(x=o.signal,d.addEventListener("abort",()=>o.abort())):x=o.signal);const w=yield this.fetch(g.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:m,signal:x}).catch(k=>{throw new ZD(k)}),v=w.headers.get("x-relay-error");if(v&&v==="true")throw new m2(w);if(!w.ok)throw new g2(w);let S=((s=w.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),b;return S==="application/json"?b=yield w.json():S==="application/octet-stream"||S==="application/pdf"?b=yield w.blob():S==="text/event-stream"?b=w:S==="multipart/form-data"?b=yield w.formData():b=yield w.text(),{data:b,error:null,response:w}}catch(a){return{data:null,error:a,response:a instanceof g2||a instanceof m2?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var tL=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
183de=e.code}},nL=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,c=i.status,d=i.statusText;if(i.ok){var h,f;if(n.method!=="HEAD"){var p;const w=await i.text();w===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((p=n.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?a=w:a=JSON.parse(w))}const m=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),x=(f=i.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");m&&x&&x.length>1&&(l=parseInt(x[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var g;const m=await i.text();try{o=JSON.parse(m),Array.isArray(o)&&i.status===404&&(a=[],o=null,c=200,d="OK")}catch{i.status===404&&m===""?(c=204,d="No Content"):o={message:m}}if(o&&n.isMaybeSingle&&(!(o==null||(g=o.details)===null||g===void 0)&&g.includes("0 rows"))&&(o=null,c=200,d="OK"),o&&n.shouldThrowOnError)throw new tL(o)}return{error:o,data:a,count:l,status:c,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="";const l=i==null?void 0:i.cause;if(l){var c,d,h,f;const g=(c=l==null?void 0:l.message)!==null&&c!==void 0?c:"",m=(d=l==null?void 0:l.code)!==null&&d!==void 0?d:"";a=`${(h=i==null?void 0:i.name)!==null&&h!==void 0?h:"FetchError"}: ${i==null?void 0:i.message}`,a+=` 184 185Caused by: ${(f=l==null?void 0:l.name)!==null&&f!==void 0?f:"Error"}: ${g}`,m&&(a+=` (${m})`),l!=null&&l.stack&&(a+=` 186${l.stack}`)}else{var p;a=(p=i==null?void 0:i.stack)!==null&&p!==void 0?p:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},rL=class extends nL{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.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
186explain({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 v2=new RegExp("[,()]");var ki=class extends rL{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"&&v2.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"&&v2.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).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}},sL=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}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(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new ki({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch})}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,c)=>l.concat(Object.keys(c)),[]);if(a.length>
1860){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new ki({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}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 c=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(c.length>0){const d=[...new Set(c)].map(h=>`"${h}"`);a.searchParams.set("columns",d.join(","))}}return new ki({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ki({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ki({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},iL=class dE{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new sL(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new dE(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),h=r&&Object.values(n).some(d);h?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([p,g])=>g!==void 0).map(([p,g])=>[p,Array.isArray(g)?`{${g.join(",")}}`:`${g}`]).forEach(([p,g])=>{l.searchParams.append(p,g)})):(a="POST",c=n);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new ki({method:a,url:l,headers:f,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class oL{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 187import ws from "ws" 188new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 189 190Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const aL="2.90.1",lL=`realtime-js/${aL}`,hE="1.0.0",cL="2.0.0",y2=hE,ap=1e4,uL=1e3,dL=100;var Dr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Dr||(Dr={}));var ze;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ze||(ze={}));var Sn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Sn||(Sn={}));var lp;(function(e){e.websocket="websocket"})(lp||(lp={}));var js;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(js||(js={}));class hL{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+h.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let g=new DataView(p),m=0;g.setUint8(m++,this.KINDS.userBroadcastPush),g.setUint8(m++,l.length),g.setUint8(m++,a.length),g.setUint8(m++,o.length),g.setUint8(m++,c.length),g.setUint8(m++,h.length),g.setUint8(m++,n),Array.from(l,w=>
190g.setUint8(m++,w.charCodeAt(0))),Array.from(a,w=>g.setUint8(m++,w.charCodeAt(0))),Array.from(o,w=>g.setUint8(m++,w.charCodeAt(0))),Array.from(c,w=>g.setUint8(m++,w.charCodeAt(0))),Array.from(h,w=>g.setUint8(m++,w.charCodeAt(0)));var x=new Uint8Array(p.byteLength+r.byteLength);return x.set(new Uint8Array(p),0),x.set(new Uint8Array(r),p.byteLength),x.buffer}decode(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;return 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 c=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+i));l=l+i;const h=r.decode(t.slice(l,l+o));l=l+o;const f=t.slice(l,t.byteLength),p=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,g={type:this.BROADCAST_EVENT,event:d,payload:p};return o>0&&(g.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:g}}_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)))}}class fE{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var 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 w2=(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]=fL(o,e,t,s),i),{}):{}},fL=(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)?pE(i,o):cp(o)},pE=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return vL(t,n)}switch(e){case ye.bool:return pL(t);case ye.float4:case ye.float8:case ye.int2:case ye.int4:case ye.int8:case ye.numeric:case ye.oid:return mL(t);case ye.json:case ye.jsonb:return gL(t);case ye.timestamp:return yL(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 cp(t);default:return cp(t)}},cp=e=>e,pL=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},mL=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},gL=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},vL=(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=>pE(t,a))}return e},yL=e=>typeof e=="string"?e.replace(" ","T"):e,mE=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class uh{constructor(t,n,r={},s=ap){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,j
190oin_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var x2;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(x2||(x2={}));class ga{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ga.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=ga.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ga.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(c,d)=>{o[c]||(l[c]=d)}),this.map(o,(c,d)=>{const h=i[c];if(h){const f=d.map(x=>x.presence_ref),p=h.map(x=>x.presence_ref),g=d.filter(x=>p.indexOf(x.presence_ref)<0),m=h.filter(x=>f.indexOf(x.presence_ref)<0);g.length>0&&(a[c]=g),m.length>0&&(l[c]=m)}else a[c]=d}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const h=t[a].map(p=>p.presence_ref),f=d.filter(p=>h.indexOf(p.presence_ref)<0);t[a].unshift(...f)}r(a,d,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(h=>h.presence_ref);c=c.filter(h=>d.indexOf(h.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var S2;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(S2||(S2={}));var va;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(va||(va={}));var rr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(rr||(rr={}));class zi{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=ze.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new uh(this,Sn.join,this.params,this.timeout),this.rejoinTimer=new fE(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ze.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ze.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=ze.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ze.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=ze.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Sn.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new ga(this),this.broadcastEndpointURL=mE(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==ze.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[va.PRESENCE]&&this.bindings[va.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(rr.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(rr.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var g;if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(rr.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,x=(g=m==null?void 0:m.length)!==null&&g!==void 0?g:0,w=[];for(let v=0;v<x;v++){const S=m[v],{filter:{event:b,schema:k,table:E,filter:_}}=S,C=p&&p[v];if(C&&C.event===b&&zi.isFilterValueEqual(C.schema,k)&&zi.isFilterValueEqual(C.table,E)&&zi.isFilterValueEqual(C.filter,_))w.push(Object.assign(Object.assign({},S),{id:C.id}));else{this.unsubscribe(),this.state=ze.errored,t==null||t(rr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=w,t&&t(rr.SUBSCRIBED);return}}).receive("error",p=>{this.state=ze.errored,t==null||t(rr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(rr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===ze.joined&&t===va.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
190try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._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"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=ze.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Sn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new uh(this,Sn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ze.closed,this.bindings={}}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}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new uh(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>dL){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=Sn;if(r&&[a,l,c,d].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(p=>{var g,m,x;return((g=p.filter)===null||g===void 0?void 0:g.event)==="*"||((x=(m=p.filter)===null||m===void 0?void 0:m.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(p=>p.callback(f,r)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var g,m,x,w,v,S,b,k;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const E=p.id,_=(g=p.filter)===null||g===void 0?void 0:g.event;return E&&((m=n.ids)===null||m===void 0?void 0:m.includes(E))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))&&(!(!((w=p.filter)===null||w===void 0)&&w.table)||p.filter.table===((v=n.data)===null||v===void 0?void 0:v.table))}else{const E=(b=(S=p==null?void 0:p.filter)===null||S===void 0?void 0:S.event)===null||b===void 0?void 0:b.toLocaleLowerCase();return E==="*"||E===((k=n==null?void 0:n.event)===null||k===void 0?void 0:k.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof f=="object"&&"ids"in f){const g=f.data,{schema:m,table:x,commit_timestamp:w,type:v,errors:S}=g;f=Object.assign(Object.assign({},{schema:m,table:x,commit_timestamp:w,eventType:v,new:{},old:{},errors:S}),this._getPayloadRecords(g))}p.callback(f,r)}
190)}_isClosed(){return this.state===ze.closed}_isJoined(){return this.state===ze.joined}_isJoining(){return this.state===ze.joining}_isLeaving(){return this.state===ze.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&zi.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Sn.close,{},t)}_onError(t){this._on(Sn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ze.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=w2(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=w2(t.columns,t.old_record)),n}}const dh=()=>{},Yl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},wL=[1e3,2e3,5e3,1e4],xL=1e4,SL=` 191 addEventListener("message", (e) => { 192 if (e.data.event === "start") { 193 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 194 } 195 });`;class bL{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=ap,this.transport=null,this.heartbeatIntervalMs=Yl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=dh,this.ref=0,this.reconnectTimer=null,this.vsn=y2,this.logger=dh,this.conn=null,this.sendBuffer=[],this.serializer=new hL,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${lp.websocket}`,this.httpEndpoint=mE(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=oL.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 196 197To use Realtime in Node.js, you need to provide a WebSocket implementation: 198 199Option 1: Use Node.js 22+ which has native WebSocket support 200Option 2: Install and provide the "ws" package: 201 202 npm install ws 203 204 import ws from "ws" 205 const client = new RealtimeClient(url, { 206 ...options, 207 transport: ws 208 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Dr.connecting:return js.Connecting;case Dr.open:return js.Open;case Dr.closing:return js.Closing;default:return js.Closed}}isConnected(){return this.connectionState()===js.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}
208channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new zi(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(uL,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Yl.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",c)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Dr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Dr.open||this.conn.readyState===Dr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},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)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}
208_triggerChanError(){this.channels.forEach(t=>t._trigger(Sn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([SL],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,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:lL};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(Sn.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)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new fE(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Yl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,c,d,h,f,p;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:ap,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Yl.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:dh,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:y2,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:g=>wL[g-1]||xL,this.vsn){case hE:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(g,m)=>m(JSON.stringify(g)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(g,m)=>m(JSON.parse(g));break;case cL:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Ka=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}};
208function _L(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 EL(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 kL(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=_L(e.baseUrl,r,s),l=await EL(e.auth),c=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),d=await c.text(),h=(c.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!c.ok){const p=h?f:void 0,g=p==null?void 0:p.error;throw new Ka((g==null?void 0:g.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:g==null?void 0:g.type,icebergCode:g==null?void 0:g.code,details:p})}return{status:c.status,headers:c.headers,data:f}}}}function ql(e){return e.join("�")}var CL=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:ql(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/${ql(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ql(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ql(e.namespace)}`}),!0}catch(t){if(t instanceof Ka&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ka&&n.status===409)return;throw n}}};function fi(e){return e.join("�")}var TL=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/${fi(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/${fi(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/${fi(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/${fi(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/${fi(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/${fi(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ka&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ka&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},jL=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=kL({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new CL(this.client,t),this.tableOps=new TL(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)}
208async 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)}},td=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function je(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var NL=class extends td{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},up=class extends td{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const T0=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),AL=()=>Response,dp=e=>{if(Array.isArray(e))return e.map(n=>dp(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]=dp(r)}),t},PL=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)},RL=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function ML(e,t){if(Ja(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IL(e){var t=ML(e,"string");return Ja(t)=="symbol"?t:t+""}function OL(e,t,n){return(t=IL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b2(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 q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(n),!0).forEach(function(r){OL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const hh=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},DL=async(e,t,n)=>{e instanceof await AL()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const s=e.status||500,i=(r==null?void 0:r.statusCode)||s+"";t(new NL(hh(r),s,i))}).catch(r=>{t(new up(hh(r),r))}):t(new up(hh(e),e))},LL=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(PL(r)?(s.headers=q({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),q(q({},s),n))};async function yl(e,t,n,r,s,i){return new Promise((o,a)=>{e(n,LL(t,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>DL(l,a,r))})}async function Ga(e,t,n,r){return yl(e,"GET",t,n,r)}async function vn(e,t,n,r,s){return yl(e,"POST",t,r,s,n)}async function hp(e,t,n,r,s){return yl(e,"PUT",t,r,s,n)}async function $L(e,t,n,r){return yl(e,"HEAD",t,q(q({},n),{},{noResolveJson:!0}),r)}async function j0(e,t,n,r,s){return yl(e,"DELETE",t,r,s,n)}var UL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(je(t))return{data:null,error:t};throw t}}};let gE;gE=Symbol.toStringTag;var FL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[gE]="BlobDownloadBuilder",this.promise=null}asStream(){return new UL(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(je(t))return{data:null,error:t};throw t}}};const BL={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},_2={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var VL=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=T0(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var s=this;try{let i;const o=q(q({},_2),r);let a=q(q({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;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&&(a=q(q({},a),r.headers));const c=s._removeEmptyFolders(t),d=s._getFinalPath(c),h=await(e=="PUT"?hp:vn)(s.fetch,`${s.url}/object/${d}`,i,q({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:h.Id,fullPath:h.Key},error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(je(i))return{data:null,error:i};throw i}}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}`);a.searchParams.set("token",t);try{let l;const c=q({upsert:_2.upsert},r),d=q(q({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{data:{path:i,fullPath:(await hp(s.fetch,a.toString(),l,{headers:d})).Key},error:null}}catch(l){if(s.shouldThrowOnError)throw l;if(je(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const s=q({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await vn(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 td("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(je(r))return{data:null,error:r};throw r}}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;try{return{data:await vn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
208stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(je(s))return{data:null,error:s};throw s}}async copy(e,t,n){var r=this;try{return{data:{path:(await vn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(je(s))return{data:null,error:s};throw s}}async createSignedUrl(e,t,n){var r=this;try{let s=r._getFinalPath(e),i=await vn(r.fetch,`${r.url}/object/sign/${s}`,q({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(je(s))return{data:null,error:s};throw s}}async createSignedUrls(e,t,n){var r=this;try{const s=await vn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>q(q({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(je(s))return{data:null,error:s};throw s}}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=r?`?${r}`:"",i=this._getFinalPath(e),o=()=>Ga(this.fetch,`${this.url}/${n}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new FL(o,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:dp(await Ga(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(je(r))return{data:null,error:r};throw r}}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await $L(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(je(r)&&r instanceof up){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${a}`)}}}async remove(e){var t=this;try{return{data:await j0(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}async list(e,t,n){var r=this;try{const s=q(q(q({},BL),t),{},{prefix:e||""});return{data:await vn(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(je(s))return{data:null,error:s};throw s}}async listV2(e,t){var n=this;try{const r=q({},e);return{data:await vn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(je(r))return{data:null,error:r};throw r}}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const vE="2.90.1",yE={"X-Client-Info":`storage-js/${vE}`};var zL=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1;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.")),this.url=s.href.replace(/\/$/,""),this.headers=q(q({},yE),t),this.fetch=T0(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await Ga(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await Ga(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}async createBucket(e,t={public:!1}){var n=this;try{return{data:await vn(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}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(je(r))return{data:null,error:r};throw r}}async updateBucket(e,t){var n=this;try{return{data:await hp(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}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(je(r))return{data:null,error:r};throw r}}async emptyBucket(e){var t=this;try{return{data:await vn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await j0(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw 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():""}},WL=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},yE),t),this.fetch=T0(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await vn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}async listBuckets(e){var t=this;try{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{data:await Ga(t.fetch,s,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await j0(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(je(n))return{data:null,error:n};throw n}}from(e){var t=this;if(!RL(e))throw new td("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 jL({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
208),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}}}}})}};const N0={"X-Client-Info":`storage-js/${vE}`,"Content-Type":"application/json"};var wE=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function It(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var fh=class extends wE{constructor(e,t,n){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},HL=class extends wE{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const A0=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),KL=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)},E2=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),JL=async(e,t,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const r=e.status||500,s=e;if(typeof s.json=="function")s.json().then(i=>{const o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||r+"";t(new fh(E2(i),r,o))}).catch(()=>{const i=r+"";t(new fh(s.statusText||`HTTP ${r} error`,r,i))});else{const i=r+"";t(new fh(s.statusText||`HTTP ${r} error`,r,i))}}else t(new HL(E2(e),e))},GL=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(KL(r)?(s.headers=q({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,q(q({},s),n)):s};async function YL(e,t,n,r,s,i){return new Promise((o,a)=>{e(n,GL(t,r,s,i)).then(l=>{if(!l.ok)throw l;if(r!=null&&r.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>JL(l,a,r))})}async function Ot(e,t,n,r,s){return YL(e,"POST",t,r,s,n)}var qL=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},N0),t),this.fetch=A0(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await Ot(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await Ot(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}},QL=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},N0),t),this.fetch=A0(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await Ot(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
208if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await Ot(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await Ot(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}},XL=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},N0),t),this.fetch=A0(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await Ot(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}},ZL=class extends XL{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new e7(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)}},e7=class extends qL{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,q(q({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,q(q({},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 t7(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},t7=class extends QL{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,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},n7=class extends zL{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new VL(this.url,this.headers,e,this.fetch)}get vectors(){return new ZL(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new WL(this.url+"/iceberg",this.headers,this.fetch)}};const xE="2.90.1",Ci=30*1e3,fp=3,ph=fp*Ci,r7="http://localhost:9999",s7="supabase.auth.token",
208i7={"X-Client-Info":`gotrue-js/${xE}`},pp="X-Supabase-Api-Version",SE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},o7=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,a7=10*60*1e3;class Ya extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function K(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class l7 extends Ya{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function c7(e){return K(e)&&e.name==="AuthApiError"}class Ns extends Ya{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class br extends Ya{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Pt extends br{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function u7(e){return K(e)&&e.name==="AuthSessionMissingError"}class pi extends br{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ql extends br{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Xl extends br{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function d7(e){return K(e)&&e.name==="AuthImplicitGrantRedirectError"}class k2 extends br{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class h7 extends br{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 mp extends br{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function mh(e){return K(e)&&e.name==="AuthRetryableFetchError"}class C2 extends br{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class gp extends br{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),T2=` 209\r=`.split(""),f7=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<T2.length;t+=1)e[T2[t].charCodeAt(0)]=-2;for(let t=0;t<gu.length;t+=1)e[gu[t].charCodeAt(0)]=t;return e})();function j2(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(gu[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(gu[r]),t.queuedBits-=6}}function bE(e,t,n){const r=f7[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 N2(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{g7(o,r,n)};for(let o=0;o<e.length;o+=1)bE(e.charCodeAt(o),s,i);return t.join("")}function p7(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 m7(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}p7(r,t)}}function g7(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 eo(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)bE(e.charCodeAt(s),n,r);return new Uint8Array(t)}function v7(e){const t=[];return m7(e,n=>t.push(n)),new Uint8Array(t)}function Os(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>j2(s,n,r)),j2(null,n,r),t.join("")}function y7(e){return Math.round(Date.now()/1e3)+e}function w7(){return Symbol("auth-callback")}const tt=()=>typeof window<"u"&&typeof document<"u",bs={tested:!1,writable:!1},_E=()=>
209{if(!tt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(bs.tested)return bs.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),bs.tested=!0,bs.writable=!0}catch{bs.tested=!0,bs.writable=!1}return bs.writable};function x7(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 EE=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),S7=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ti=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},_s=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},et=async(e,t)=>{await e.removeItem(t)};class nd{constructor(){this.promise=new nd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}nd.promiseConstructor=Promise;function gh(e){const t=e.split(".");if(t.length!==3)throw new gp("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!o7.test(t[r]))throw new gp("JWT not in base64url format");return{header:JSON.parse(N2(t[0])),payload:JSON.parse(N2(t[1])),signature:eo(t[2]),raw:{header:t[0],payload:t[1]}}}async function b7(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function _7(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 E7(e){return("0"+e.toString(16)).substr(-2)}function k7(){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,E7).join("")}async function C7(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 T7(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 C7(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function mi(e,t,n=!1){const r=k7();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Ti(e,`${t}-code-verifier`,s);const i=await T7(r);return[i,r===i?"plain":"s256"]}const j7=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function N7(e){const t=e.headers.get(pp);if(!t||!t.match(j7))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function A7(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 P7(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 R7=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function gi(e){if(!R7.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function vh(){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 M7(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
209if(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 A2(e){return JSON.parse(JSON.stringify(e))}const Ts=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),I7=[502,503,504];async function P2(e){var t;if(!S7(e))throw new mp(Ts(e),0);if(I7.includes(e.status))throw new mp(Ts(e),e.status);let n;try{n=await e.json()}catch(i){throw new Ns(Ts(i),i)}let r;const s=N7(e);if(s&&s.getTime()>=SE["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 C2(Ts(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Pt}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 C2(Ts(n),e.status,n.weak_password.reasons);throw new l7(Ts(n),e.status||500,r)}const O7=(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[pp]||(i[pp]=SE["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 D7(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 D7(e,t,n,r,s,i){const o=O7(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new mp(Ts(l),0)}if(a.ok||await P2(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await P2(l)}}function dn(e){var t;let n=null;U7(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=y7(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function R2(e){const t=dn(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 L7(e){return{data:e,error:null}}function $7(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Mo(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 M2(e){return e}function U7(e){return e.access_token&&e.refresh_token&&e.expires_in}const yh=["global","local","others"];class F7{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=EE(r),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)}}
vendor: 4,751 bytes, line 209
209async signOut(t,n=yh[0]){if(yh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${yh.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(K(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(K(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Mo(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:$7,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(K(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(K(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=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:M2});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);c[`${x}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(K(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){gi(t);try{return await Y(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Fr})}catch(n){if(K(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){gi(t);try{return await Y(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Fr})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){gi(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(K(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){gi(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(K(n))return{data:null,error:n};throw n}}async _deleteFactor(t){gi(t.userId),gi(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(K(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=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:M2});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);c[`${x}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(K(c))return{data:{clients:[]},error:c};throw c}}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(K(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(K(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(K(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await Y(this.fetch,"DELET
209E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(K(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(K(n))return{data:null,error:n};throw n}}}function I2(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const vi={debug:!!(globalThis&&_E()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class kE extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class B7 extends kE{}async function V7(e,t,n){vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),vi.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new B7(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(vi.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function z7(){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 CE(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function W7(e){return parseInt(e,16)}function H7(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function K7(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:d,uri:h,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 210`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=CE(e.address),g=d?`${d}://${r}`:r,m=e.statement?`${e.statement} 211`:"",x=`${g} wants you to sign in with your Ethereum account: 212${p} 213 214${m}`;let w=`URI: ${h} 215Version: ${f} 216Chain ID: ${n}${o?` 217Nonce: ${o}`:""} 218Issued At: ${i.toISOString()}`;if(s&&(w+=` 219Expiration Time: ${s.toISOString()}`),a&&(w+=` 220Not Before: ${a.toISOString()}`),l&&(w+=` 221Request ID: ${l}`),c){let v=` 222Resources:`;for(const S of c){if(!S||typeof S!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${S}`);v+=` 223- ${S}`}w+=v}return`${x} 224${w}`}
224class Ue extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class vu extends Ue{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function J7({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 Ue({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 Ue({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 Ue({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 Ue({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 Ue({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ue({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 Ue({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ue({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(TE(o)){if(i.rp.id!==o)return new Ue({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ue({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 Ue({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 Ue({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 Ue({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function G7({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 Ue({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ue({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(TE(r)){if(n.rpId!==r)return new Ue({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ue({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ue({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ue({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class Y7{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 q7=new Y7;function Q7(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=Mo(e,["challenge","user","excludeCredentials"]),i=eo(t).buffer,o=Object.assign(Object.assign({},n),{id:eo(n.id).buffer}),a=Object.assign(Object.assign({}
224,s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:eo(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function X7(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=Mo(e,["challenge","allowCredentials"]),s=eo(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:eo(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function Z7(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:Os(new Uint8Array(e.response.attestationObject)),clientDataJSON:Os(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function e9(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:Os(new Uint8Array(s.authenticatorData)),clientDataJSON:Os(new Uint8Array(s.clientDataJSON)),signature:Os(new Uint8Array(s.signature)),userHandle:s.userHandle?Os(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function TE(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function O2(){var e,t;return!!(tt()&&"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 t9(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new vu("Browser returned unexpected credential type",t)}:{data:null,error:new vu("Empty credential response",t)}}catch(t){return{data:null,error:J7({error:t,options:e})}}}async function n9(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new vu("Browser returned unexpected credential type",t)}:{data:null,error:new vu("Empty credential response",t)}}catch(t){return{data:null,error:G7({error:t,options:e})}}}const r9={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},s9={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function yu(...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]=yu(a,o):r[i]=yu(o)}else r[i]=o}return r}function i9(e,t){return yu(r9,e,t||{})}function o9(e,t){return yu(s9,e,t||{})}class a9{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){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!o)return{data:null,error:a};const l=s??q7.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:c}=o.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${r}`),c.displayName||(c.displayName=c.name)}switch(o.webauthn.type){case"create":{const c=i9(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await t9({publicKey:c,signal:l});return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=o9(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await n9(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:c,signal:l}));return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(o){return K(o)?{data:null,error:o}:{data:null,error:new Ns("Unexpected error in challenge",o)}}}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 Ya("rpId is required for WebAuthn authentication")};try{if(!O2())return{data:null,error:new Ns("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 K(o)?{data:null,error:o}:{data:null,error:new Ns("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 Ya("rpId is required for WebAuthn registration")};try{if(!O2())return{data:null,error:new Ns("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;
224return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return K(o)?{data:null,error:o}:{data:null,error:new Ns("Unexpected error in register",o)}}}}z7();const l9={url:r7,storageKey:s7,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:i7,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function D2(e,t,n){return await n()}const yi={};class qa{get jwks(){var t,n;return(n=(t=yi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){yi[this.storageKey]=Object.assign(Object.assign({},yi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=yi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){yi[this.storageKey]=Object.assign(Object.assign({},yi[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.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},l9),t);if(this.storageKey=i.storageKey,this.instanceID=(n=qa.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,qa.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&tt()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new F7({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=EE(i.fetch),this.lock=i.lock||D2,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&tt()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=V7:this.lock=D2,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 a9(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:_E()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=I2(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=I2(this.memoryStorage)),tt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${xE}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(tt()&&(n=x7(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),tt()&&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),d7(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 K(n)?this._returnResult({error:n}):this._returnResult({error:new Ns("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:dn}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(K(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:d,password:h,options:f}=t;let p=null,g=null;this.flowType==="pkce"&&([p,g]=await mi(this.storage,this.storageKey)),i=await Y(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:g},xform:dn})}else if("phone"in t){const{phone:d,password:h,options:f}=t;i=await Y(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:dn})}else throw new Ql("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await et(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await et(this.storage,`${this.storageKey}-code-verifier`),K(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:R2})}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:R2})}else throw new Ql("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 pi;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(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,c,d,h,f;let p,g;if("message"in t)p=t.message,g=t.signature;else{const{chain:m,wallet:x,statement:w,options:v}=t;let S;if(tt())if(typeof x=="object")S=x;else{const j=window;if("ethereum"in j&&typeof j.ethereum=="object"&&"request"in j.ethereum&&typeof j.ethereum.request=="function")S=j.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=x}const b=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href),k=await S.request({method:"eth_requestAccounts"}).then(j=>j).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!k||k.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=CE(k[0]);let _=(r=v==null?void 0:v.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const j=await S.request({method:"eth_chainId"});_=W7(j)}const C={domain:b.host,address:E,statement:w,uri:b.href,version:"1",chainId:_,nonce:(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=v==null?void 0:v.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=v==null?void 0:v.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=K7(C),g=await S.request({method:"personal_sign",params:[H7(p),E]})}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:p,signature:g}
224,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:dn});if(x)throw x;if(!m||!m.session||!m.user){const w=new pi;return this._returnResult({data:{user:null,session:null},error:w})}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(K(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,d,h,f,p;let g,m;if("message"in t)g=t.message,m=t.signature;else{const{chain:x,wallet:w,statement:v,options:S}=t;let b;if(tt())if(typeof w=="object")b=w;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))b=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(S!=null&&S.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=w}const k=new URL((n=S==null?void 0:S.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in b&&b.signIn){const E=await b.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},S==null?void 0:S.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),v?{statement:v}:null));let _;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")_=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)_=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)g=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in b)||typeof b.signMessage!="function"||!("publicKey"in b)||typeof b!="object"||!b.publicKey||!("toBase58"in b.publicKey)||typeof b.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${k.host} wants you to sign in with your Solana account:`,b.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(r=S==null?void 0:S.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=S==null?void 0:S.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${S.signInWithSolana.notBefore}`]:[],...!((o=S==null?void 0:S.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${S.signInWithSolana.expirationTime}`]:[],...!((a=S==null?void 0:S.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${S.signInWithSolana.chainId}`]:[],...!((l=S==null?void 0:S.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${S.signInWithSolana.nonce}`]:[],...!((c=S==null?void 0:S.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${S.signInWithSolana.requestId}`]:[],...!((h=(d=S==null?void 0:S.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...S.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 225`);const E=await b.signMessage(new TextEncoder().encode(g),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=E}}try{const{data:x,error:w}=await Y(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:Os(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:dn});if(w)throw w;if(!x||!x.session||!x.user){const v=new pi;return this._returnResult({data:{user:null,session:null},error:v})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:w})}
225catch(x){if(K(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await _s(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new h7;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:dn});if(await et(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new pi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await et(this.storage,`${this.storageKey}-code-verifier`),K(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:dn}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new pi;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(K(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 c=null,d=null;this.flowType==="pkce"&&([c,d]=await mi(this.storage,this.storageKey));const{error:h}=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:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=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:c==null?void 0:c.message_id},error:d})}throw new Ql("You must provide either an email or phone number.")}catch(a){if(await et(this.storage,`${this.storageKey}-code-verifier`),K(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:dn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(K(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 mi(this.storage,this.storageKey));const c=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:L7});return!((i=c.data)===null||i===void 0)&&i.url&&tt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await et(this.storage,`${this.storageKey}
225-code-verifier`),K(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Pt;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(K(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await Y(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await 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 Ql("You must provide either an email or phone number and a type")}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await _s(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()<ph:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await _s(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=vh()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=M7(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await 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;
225if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Pt}: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(K(n))return u7(n)&&(await this._removeSession(),await et(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Pt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await mi(this.storage,this.storageKey));const{data:c,error:d}=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(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await et(this.storage,`${this.storageKey}-code-verifier`),K(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Pt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=gh(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)throw 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(K(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Pt;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(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!tt())throw new Xl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Xl(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 k2("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Xl("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 k2("No code detected.");const{data:v,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const b=new URL(window.location.href);return b.searchParams.delete("code"),window.history.replaceState(window.history.state,"",b.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new Xl("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let f=d+h;l&&(f=parseInt(l));const p=f-d;
225p*1e3<=Ci&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${h}s`);const g=f-h;d-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,f,d):d-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,f,d);const{data:m,error:x}=await this._getUser(i);if(x)throw x;const w={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:f,refresh_token:o,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:w,redirectType:t.type},error:null})}catch(r){if(K(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await _s(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(c7(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await et(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=w7(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await mi(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 et(this.storage,`${this.storageKey}-code-verifier`),K(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(K(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,c,d;const{data:h,error:f}=i;if(f)throw f;const p=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",p,{headers:this.headers,jwt:(d=(c=h.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return tt()&&!(!((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(K(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;
225if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:d}=t,h=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:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:dn}),{data:f,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new pi}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await et(this.storage,`${this.storageKey}-code-verifier`),K(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(K(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await _7(async s=>(s>
2250&&await b7(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:dn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&mh(i)&&Date.now()+o-r<Ci})}catch(r){if(this._debug(n,"error",r),K(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),tt()&&!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 _s(this.storage,this.storageKey);if(s&&this.userStorage){let o=await _s(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Ti(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:vh()}else if(s&&!s.user&&!s.user){const o=await _s(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await et(this.storage,this.storageKey+"-user"),await Ti(this.storage,this.storageKey,s)):s.user=vh()}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()<ph;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${ph}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),mh(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Pt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new nd;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Pt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),K(i)){const o={data:null,error:i};return mh(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await et(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Ti(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=A2(s);await Ti(this.storage,this.storageKey,i)}else{const s=A2(n);await Ti(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await et(this.storage,this.storageKey),await et(this.storage,this.storageKey+"-code-verifier"),await et(this.storage,this.storageKey+"-user"),this.userStorage&&await et(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&tt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
225catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ci);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Ci);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ci}ms, refresh threshold is ${fp} ticks`),s<=fp&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof kE)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!tt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await mi(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(K(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:c}=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 c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Z7(t.webauthn.credential_response):e9(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await Y(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await Y(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Q7(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:X7(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:s}
225=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=gh(r.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async 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 Pt})})}catch(n){if(K(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 Pt});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&&tt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(K(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 Pt});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&&tt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(K(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 Pt})})}catch(t){if(K(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 Pt})})}catch(n){if(K(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+a7>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:p,error:g}
225=await this.getSession();if(g||!p.session)return this._returnResult({data:null,error:g});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=gh(r);n!=null&&n.allowExpired||A7(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const d=P7(s.alg),h=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,v7(`${a}.${l}`)))throw new gp("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}}qa.nextInstanceID={};const c9=qa,u9="2.90.1";let ea="";typeof Deno<"u"?ea="deno":typeof document<"u"?ea="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ea="react-native":ea="node";const d9={"X-Client-Info":`supabase-js-${ea}/${u9}`},h9={headers:d9},f9={schema:"public"},p9={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},m9={};function Qa(e){"@babel/helpers - typeof";return Qa=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},Qa(e)}function g9(e,t){if(Qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v9(e){var t=g9(e,"string");return Qa(t)=="symbol"?t:t+""}function y9(e,t,n){return(t=v9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L2(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(n),!0).forEach(function(r){y9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const w9=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),x9=()=>Headers,S9=(e,t,n)=>{const r=w9(n),s=x9();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Ie(Ie({},o),{},{headers:c}))}};function b9(e){return e.endsWith("/")?e:e+"/"}function _9(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:d,global:h}=t,f={db:Ie(Ie({},l),s),auth:Ie(Ie({},c),i),realtime:Ie(Ie({},d),o),storage:{},global:Ie(Ie(Ie({},h),a),{},{headers:Ie(Ie({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function E9(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(b9(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var k9=class extends c9{constructor(e){super(e)}},C9=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=E9(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:f9,realtime:m9,auth:Ie(Ie({},p9),{},{storageKey:o}),global:h9},l=_9(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=S9(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ie({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new iL(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new n7(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new eL(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
225channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new k9({url:this.authUrl.href,headers:Ie(Ie({},f),d),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new bL(this.realtimeUrl.href,Ie(Ie({},e),{},{params:Ie(Ie({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};
225const T9=(e,t,n)=>new C9(e,t,n);function j9(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}j9()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function N9(){var x,w;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(v=>e===v||e.endsWith("."+v)),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])??((w=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:w[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:""),c=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(v,S,b)=>new Promise(k=>{const E=f();let _=!1,C;const j=R=>{_||(_=!0,clearTimeout(C),window.removeEventListener("message",T),k(R))},T=R=>{if(c.indexOf(R.origin)<0)return;const $=R.data;$&&$.type===d&&$.requestId===E&&j($)};window.addEventListener("message",T);const A={type:v,requestId:E,projectId:s,key:S};b!==void 0&&(A.value=b);for(const R of c)window.parent.postMessage(A,R);C=setTimeout(()=>j(null),h)});let g=!0;const m=250;return{getItem:async v=>{let S=await p("lovable-preview-auth:get",v);return!S&&g&&(await new Promise(b=>setTimeout(b,m)),S=await p("lovable-preview-auth:get",v)),g=!1,S&&S.ok&&typeof S.value=="string"?S.value===""?(localStorage.removeItem(v),null):S.value:localStorage.getItem(v)},setItem:(v,S)=>(localStorage.setItem(v,S),p("lovable-preview-auth:set",v,S).then(b=>{b&&b.ok&&typeof b.value=="string"&&localStorage.getItem(v)===S&&(b.value===""?localStorage.removeItem(v):localStorage.setItem(v,b.value))})),removeItem:v=>(localStorage.removeItem(v),p("lovable-preview-auth:remove",v).then(()=>{}))}}const A9="https://yxfvcplpehfkebmriiyr.supabase.co",P9="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl4ZnZjcGxwZWhma2VibXJpaXlyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg0MDI1NzYsImV4cCI6MjA4Mzk3ODU3Nn0.gtJTjidFwOIGIvA5QYQf5lKguz9a40r65znMzf2X4eU",Xe=T9(A9,P9,{auth:{storage:N9(),persistSession:!0,autoRefreshToken:!0}}),$2="8t16975pw1ixmbsn",R9=3e4,M9=50*6e4,vp="sos-live",U2=()=>{try{return JSON.parse(localStorage.getItem(vp)||"null")}catch{return null}},I9=e=>{try{e?localStorage.setItem(vp,JSON.stringify(e)):localStorage.removeItem(vp)}catch{}};async function F2(e){var s;const{data:t,error:n}=await Xe.functions.invoke("live-access",{body:e});if(!n)return{status:200,data:t};const r=n==null?void 0:n.context;return{status:(r==null?void 0:r.status)??0,data:await((s=r==null?void 0:r.json)==null?void 0:s.call(r).cat
225ch(()=>({})))}}const O9=()=>{const[e,t]=y.useState(U2()?"checking":"enter"),[n,r]=y.useState(U2()),[s,i]=y.useState(""),[o,a]=y.useState(""),[l,c]=y.useState(!1),d=y.useRef(n);d.current=n,y.useEffect(()=>{const m=document.createElement("meta");m.name="robots",m.content="noindex, nofollow",document.head.appendChild(m);const x=document.title;return document.title="SHADES of Sync 2026 · Live",()=>{m.remove(),document.title=x}},[]);const h=m=>{I9(m),r(m)},f=y.useCallback(async()=>{const m=d.current;if(!m)return;const x=Date.now()-m.tokenAt>M9,{status:w,data:v}=await F2({code:m.code,session:m.session,refresh:x});w===200?(v!=null&&v.token&&h({...m,token:v.token,tokenAt:Date.now()}),t("watching")):w===409?(h(null),t("kicked")):w===401&&(h(null),t("enter"),a("This code no longer works. Contact [email protected]."))},[]);y.useEffect(()=>{if(e==="checking"&&f(),e!=="watching")return;const m=window.setInterval(f,R9);return()=>window.clearInterval(m)},[e,f]);const p=async m=>{m.preventDefault(),c(!0),a("");const{status:x,data:w}=await F2({code:s});c(!1),x===200&&(w!=null&&w.session)?(h({code:s,session:w.session,token:w.token,tokenAt:Date.now(),name:w.name}),t("watching")):a(x===401?"That code does not work. Check the email we sent you.":"Something went wrong. Try again in a moment.")},g=n&&$2?`https://customer-${$2}.cloudflarestream.com/${n.token}/iframe?autoplay=true&muted=true`:null;return u.jsx("div",{className:"s26 s26-dark s26-live",children:u.jsxs("div",{className:"s26-wrap",children:[u.jsx("img",{className:"s26-live-logo",src:cE,alt:"SHADES of Sync"}),u.jsx("p",{className:"s26-eyebrow",children:"OCTOBER 30 + 31, 2026 / LIVE"}),u.jsx("h1",{className:"s26-d s26-h2",children:e==="watching"&&n?u.jsxs(u.Fragment,{children:["Welcome, ",u.jsxs("em",{children:[n.name,"."]})]}):u.jsxs(u.Fragment,{children:["You are ",u.jsx("em",{children:"in the room."})]})}),e==="watching"?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"s26-live-frame",children:g?u.jsx("iframe",{src:g,title:"SHADES of Sync livestream",allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0},n==null?void 0:n.token):u.jsx("div",{className:"s26-live-empty",children:u.jsx("p",{className:"s26-body",children:"The player is not connected yet."})})}),u.jsx("p",{className:"s26-note",children:"Tap the player to turn the sound on. Your code works on one device at a time."})]}):e==="checking"?u.jsx("p",{className:"s26-body",style:{marginTop:32},children:"Checking your code..."}):u.jsxs("form",{className:"s26-live-gate",onSubmit:p,children:[e==="kicked"&&u.jsx("p",{className:"s26-body",children:"Your code was just used on another device. Only one device can watch at a time. Enter your code to watch here instead."}),u.jsx("label",{className:"s26-label",htmlFor:"live-code",children:"Your access code"}),u.jsx("input",{id:"live-code",className:"s26-live-input",value:s,onChange:m=>i(m.target.value),placeholder:"XXXX-XXXX",autoComplete:"one-time-code",autoCapitalize:"characters",spellCheck:!1,required:!0}),u.jsx("button",{type:"submit",className:"s26-btn",disabled:l,children:l?"CHECKING...":"WATCH LIVE"}),o&&u.jsx("p",{className:"s26-live-msg",role:"alert",children:o}),u.jsx("p",{className:"s26-note",children:"Your code is in the email we sent after you bought your ticket."})]})]})})},P0="shades-admin-pwd",D9=e=>sessionStorage.setItem(P0,e),B2=()=>sessionStorage.removeItem(P0),jE=()=>sessionStorage.getItem(P0)??"";async function Yr(e,t){var s;const{data:n,error:r}=await Xe.functions.invoke("admin-api",{body:{action:e,payload:t,password:jE()}});if(r){const i=(s=r==null?void 0:r.context)!=null&&s.text?await r.context.text():r.message;throw new Error(i||"Admin request failed")}if(n&&n.error)throw new Error(n.error);return n}const L9=()=>Yr("ping",{}),V2={status:()=>Yr("live_stream_status",{}),lock:()=>Yr("live_stream_lock",{})},_t={select:async(e,t={})=>(await Yr("db_select",{table:e,...t})).data,insert:async(e,t)=>(await Yr("db_insert",{table:e,values:t})).data,update:async(e,t,n)=>(await Yr("db_update",{table:e,values:t,match:n}
225)).data,delete:async(e,t)=>{await Yr("db_delete",{table:e,match:t})}},hs={async upload(e,t,n,r=!0){var a;const s=new FormData;s.append("action","storage_upload"),s.append("payload",JSON.stringify({bucket:e,path:t,upsert:r})),s.append("password",jE()),s.append("file",n);const{data:i,error:o}=await Xe.functions.invoke("admin-api",{body:s});if(o){const l=(a=o==null?void 0:o.context)!=null&&a.text?await o.context.text():o.message;throw new Error(l||"Upload failed")}if(i!=null&&i.error)throw new Error(i.error);return i},async remove(e,t){await Yr("storage_remove",{bucket:e,paths:t})}};async function Nt(e,t){return _t.update("agenda_settings",{[e]:t,updated_at:new Date().toISOString()},[{column:"id",value:"00000000-0000-0000-0000-000000000000",op:"neq"}])}const $9=sS("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"}}),H=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?DT:"button";return u.jsx(o,{className:fe($9({variant:t,size:n,className:e})),ref:i,...s})});H.displayName="Button";const De=y.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:fe("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}));De.displayName="Input";const Zt=y.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:fe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Zt.displayName="Card";const en=y.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:fe("flex flex-col space-y-1.5 p-6",e),...t}));en.displayName="CardHeader";const tn=y.forwardRef(({className:e,...t},n)=>u.jsx("h3",{ref:n,className:fe("text-2xl font-semibold leading-none tracking-tight",e),...t}));tn.displayName="CardTitle";const U9=y.forwardRef(({className:e,...t},n)=>u.jsx("p",{ref:n,className:fe("text-sm text-muted-foreground",e),...t}));U9.displayName="CardDescription";const nn=y.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:fe("p-6 pt-0",e),...t}));nn.displayName="CardContent";const F9=y.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:fe("flex items-center p-6 pt-0",e),...t}));F9.displayName="CardFooter";const B9=({adminPassword:e})=>{const[t,n]=y.useState([]),[r,s]=y.useState(null),[i,o]=y.useState(""),[a,l]=y.useState(""),[c,d]=y.useState(null),[h,f]=y.useState(""),[p,g]=y.useState(""),{toast:m}=qn();y.useEffect(()=>{x()},[]);const x=async()=>{const{data:T,error:A}=await Xe.from("speakers").select("*").order("created_at",{ascending:!0});A?m({title:"Error fetching speakers",description:A.message,variant:"destructive"}):n(T||[])},w=T=>{s(T.id),o(T.name),l(T.affiliation)},v=()=>{s(null),o(""),l("")},S=async T=>{const{data:A,error:R}=await Xe.functions.invoke("admin-speakers",{body:{action:"update",password:e,data:{id:T,name:i,affiliation:a}}});R||A!=null&&A.error?m({title:"Error updating speaker",description:(R==null?void 0:R.message)||(A==null?void 0:A.error),variant:"destructive"}):(m({title:"Speaker updated"}),x(),v())},b=async T=>{const{data:A,error:R}=await Xe.functions.invoke("admin-speakers",{body:{action:"delete",password:e,data:{id:T}}});R||A!=null&&A.error?m({title:"Error deleting speaker",description:(R==null?void 0:R.message)||(A==null?void 0:A.error),variant:"destructive"}):(m({title:"Speaker deleted"}),x())},k=async T=>{const A=T==="virtual"?"Nov. 14th":"Nov. 15th",{data:R,error:$}=await Xe.functions.invoke("admin-speakers",{body:{action:"insert",password:e,data:{name:h,affiliation:p,session_type:T,session_date:A}}});$||R!=null&&R.error?m({title:"Error adding speaker",description:($==null?void 0:$.message)||(R==null?void 0:R.error),variant:"destructive"}):(m({title:"Speaker added"}),x(),d(null),f(""),g(""))},E=t.filter(T=>T.session_type==="virtual"),_=t.filter(T=>T.session_type==="in-person"),C=T=>{const A=r===T.id;return u.jsx("li",{className:"bg-card rounded-lg p-4 border border-border group",children:A?u.jsxs("div",{className:"space-y-2",children:[u.jsx(De,{value:i,onChange:R=>o(R.target.value),placeholder:"Name",className:"bg-background"}),u.jsx(De,{value:a,onChange:R=>l(R.target.value),placeholder:"Affiliation",className:"bg-background"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{size:"sm",onClick:()=>S(T.id),className:"gap-1",children:[u.jsx(as,{className:"h-4 w-4"})," Save"]}),u.jsxs(H,{size:"sm",variant:"outline",onClick:v,className:"gap-1",children:[u.jsx(fr,{className:"h-4 w-4"})," Cancel"]})]})]}):u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-foreground",children:T.name}),u.jsx("p",{className:"text-sm text-muted-foreground",children:T.affiliation})]}),u.jsxs("div",{className:"flex gap-1",children:[u.jsx(H,{size:"icon",variant:"ghost",onClick:()=>w(T),className:"h-8 w-8",children:u.jsx(bm,{className:"h-4 w-4"})}),u.jsx(H,{size:"icon",variant:"ghost",onClick:()=>b(T.id),className:"h-8 w-8 text-destructive hover:text-destructive",children:u.jsx(xr,{className:"h-4 w-4"})})]})]})},T.id)},j=T=>u.jsx("li",{className:"bg-card rounded-lg p-4 border border-primary border-dashed",children:u.jsxs("div",{className:"space-y-2",children:[u.jsx(De,{value:h,onChange:A=>f(A.target.value),placeholder:"Speaker name",className:"bg-background"}),u.jsx(De,{value:p,onChange:A=>g(A.target.value),placeholder:"Affiliation",className:"bg-background"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{size:"sm",onClick:()=>k(T),disabled:!h||!p,className:"gap-1",children:[u.jsx(as,{className:"h-4 w-4"})," Add"]}),u.jsxs(H,{size:"sm",variant:"outline",onClick:()=>{d(null),f(""),g("")},className:"gap-1",children:[u.jsx(fr,{className:"h-4 w-4"})," Cancel"]})]})]})});return u.jsx("section",{className:"section-dark py-16 px-4",children:u.jsxs("div",{className:"container max-w-4xl mx-auto",children:[u.jsx("h2",{className:"heading-lg text-center mb-12",children:"Edit Speakers"}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"heading-md mb-6 text-magenta-dark",children:"Virtual Listening Session"}),u.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Nov. 14th"}),u.jsxs("ul",{className:"space-y-4",children:[E.map(C),c==="virtual"&&j("virtual")]}),c!=="virtual"&&u.jsxs(H,{variant:"outline",className:"mt-4 w-full gap-2",onClick:()=>d("virtual"),children:[u.jsx(Xc,{className:"h-4 w-4"})," Add Speaker"]}
225)]}),u.jsxs("div",{children:[u.jsx("h3",{className:"heading-md mb-6 text-magenta-dark",children:"In-Person Panels"}),u.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Nov. 15th"}),u.jsxs("ul",{className:"space-y-4",children:[_.map(C),c==="in-person"&&j("in-person")]}),c!=="in-person"&&u.jsxs(H,{variant:"outline",className:"mt-4 w-full gap-2",onClick:()=>d("in-person"),children:[u.jsx(Xc,{className:"h-4 w-4"})," Add Speaker"]})]})]})]})})},V9=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),s=y.useRef(null),{toast:i}=qn();y.useEffect(()=>{o()},[]);const o=async()=>{const{data:c,error:d}=await Xe.from("agenda_settings").select("speakers_photo_url").limit(1).single();d&&d.code!=="PGRST116"?i({title:"Error fetching photo",description:d.message,variant:"destructive"}):c&&t(c.speakers_photo_url)},a=async c=>{var h;const d=(h=c.target.files)==null?void 0:h[0];if(d){r(!0);try{const f=d.name.split(".").pop(),p=`speakers-photo-${Date.now()}.${f}`,{publicUrl:g}=await hs.upload("speakers-photos",p,d,!0);await Nt("speakers_photo_url",g),t(g),i({title:"Photo uploaded successfully"})}catch(f){i({title:"Upload failed",description:f.message,variant:"destructive"})}finally{r(!1)}}},l=async()=>{try{await Nt("speakers_photo_url",null),t(null),i({title:"Photo removed"})}catch(c){i({title:"Error removing photo",description:c.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsx("div",{className:"container max-w-4xl mx-auto",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(al,{className:"h-5 w-5"}),"Speakers Section Photo (1920 Ã 1080)"]})}),u.jsxs(nn,{className:"space-y-4",children:[u.jsx("input",{type:"file",ref:s,onChange:a,accept:"image/*",className:"hidden"}),e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"w-full max-w-md rounded-lg overflow-hidden border border-border",style:{aspectRatio:"1920/1080"},children:u.jsx("img",{src:e,alt:"Speakers photo",className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Replace Photo"]}),u.jsxs(H,{variant:"destructive",onClick:l,children:[u.jsx(xr,{className:"h-4 w-4 mr-2"}),"Remove"]})]})]}):u.jsxs(H,{onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),n?"Uploading...":"Upload Photo (1920 Ã 1080)"]})]})]})})})},z9=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(null),[s,i]=y.useState({time:"",title:"",description:""}),[o,a]=y.useState({time:"",title:"",description:""}),[l,c]=y.useState(!1),{toast:d}=qn();y.useEffect(()=>{h()},[]);const h=async()=>{const{data:x,error:w}=await Xe.from("agenda_items").select("*").order("sort_order",{ascending:!0});w?d({title:"Error fetching agenda items",description:w.message,variant:"destructive"}):t(x||[])},f=x=>
225{r(x.id),i({time:x.time,title:x.title,description:x.description||""})},p=async()=>{if(n)try{await _t.update("agenda_items",{time:s.time,title:s.title,description:s.description},[{column:"id",value:n}]),d({title:"Agenda item updated"}),r(null),h()}catch(x){d({title:"Error updating agenda item",description:x.message,variant:"destructive"})}},g=async x=>{try{await _t.delete("agenda_items",[{column:"id",value:x}]),d({title:"Agenda item deleted"}),h()}catch(w){d({title:"Error deleting agenda item",description:w.message,variant:"destructive"})}},m=async()=>{const x=e.reduce((w,v)=>Math.max(w,v.sort_order),0);try{await _t.insert("agenda_items",{time:o.time,title:o.title,description:o.description,sort_order:x+1}),d({title:"Agenda item added"}),a({time:"",title:"",description:""}),c(!1),h()}catch(w){d({title:"Error adding agenda item",description:w.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsxs("div",{className:"container max-w-4xl mx-auto",children:[u.jsxs("div",{className:"flex justify-between items-center mb-6",children:[u.jsx("h2",{className:"text-xl font-bold text-foreground",children:"Agenda Items"}),u.jsxs(H,{onClick:()=>c(!0),size:"sm",children:[u.jsx(Xc,{className:"h-4 w-4 mr-2"})," Add Item"]})]}),l&&u.jsxs("div",{className:"bg-card rounded-lg p-4 border border-border mb-4 space-y-3",children:[u.jsx(De,{placeholder:"Time (e.g., 10:00 AM)",value:o.time,onChange:x=>a({...o,time:x.target.value})}),u.jsx(De,{placeholder:"Title",value:o.title,onChange:x=>a({...o,title:x.target.value})}),u.jsx(De,{placeholder:"Description",value:o.description,onChange:x=>a({...o,description:x.target.value})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{onClick:m,size:"sm",children:[u.jsx(as,{className:"h-4 w-4 mr-1"})," Save"]}),u.jsxs(H,{onClick:()=>c(!1),variant:"outline",size:"sm",children:[u.jsx(fr,{className:"h-4 w-4 mr-1"})," Cancel"]})]})]}),u.jsx("div",{className:"space-y-3",children:e.map(x=>u.jsx("div",{className:"bg-card rounded-lg p-4 border border-border",children:n===x.id?u.jsxs("div",{className:"space-y-3",children:[u.jsx(De,{placeholder:"Time",value:s.time,onChange:w=>i({...s,time:w.target.value})}),u.jsx(De,{placeholder:"Title",value:s.title,onChange:w=>i({...s,title:w.target.value})}),u.jsx(De,{placeholder:"Description",value:s.description,onChange:w=>i({...s,description:w.target.value})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{onClick:p,size:"sm",children:[u.jsx(as,{className:"h-4 w-4 mr-1"})," Save"]}),u.jsxs(H,{onClick:()=>r(null),variant:"outline",size:"sm",children:[u.jsx(fr,{className:"h-4 w-4 mr-1"})," Cancel"]})]})]}):u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-magenta-dark font-bold",children:x.time}),u.jsx("span",{className:"mx-2 text-muted-foreground",children:"â"}),u.jsx("span",{className:"font-bold text-foreground",children:x.title}),x.description&&u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:x.description})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(H,{onClick:()=>f(x),variant:"ghost",size:"sm",children:u.jsx(bm,{className:"h-4 w-4"})}),u.jsx(H,{onClick:()=>g(x.id),variant:"ghost",size:"sm",children:u.jsx(xr,{className:"h-4 w-4 text-destructive"})})]})]})},x.id))})]})})},W9=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),s=y.useRef(null),{toast:i}=qn();y.useEffect(()=>{o()},[]);const o=async()=>{const{data:c,error:d}=await Xe.from("agenda_settings").select("photo_url").limit(1).single();d&&d.code!=="PGRST116"?i({title:"Error fetching photo",description:d.message,variant:"destructive"}):c&&t(c.photo_url)},a=async c=>{var h;const d=(h=c.target.files)==null?void 0:h[0];if(d){r(!0);try{const f=d.name.split(".").pop(),p=`agenda-photo-${Date.now()}.${f}`,{publicUrl:g}=await hs.upload("agenda-photos",p,d,!0);await Nt("photo_url",g),t(g),i({title:"Photo uploaded successfully"})}catch(f){i({title:"Upload failed",description:f.message,variant:"destructive"})}finally{r(!1)}}},l=async()=>{try{await Nt("photo_url",null),t(null),i({title:"Photo removed"})}catch(c){i({title:"Error removing photo",description:c.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsx("div",{className:"container max-w-4xl mx-auto",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(al,{className:"h-5 w-5"}),"Agenda Section Photo"]})}),u.jsxs(nn,{className:"space-y-4",children:[u.jsx("input",{type:"file",ref:s,onChange:a,accept:"image/*",className:"hidden"}),e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"aspect-video w-full max-w-md rounded-lg overflow-hidden border border-border",children:u.jsx("img",{src:e,alt:"Agenda photo",className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Replace Photo"]}),u.jsxs(H,{variant:"destructive",onClick:l,children:[u.jsx(xr,{className:"h-4 w-4 mr-2"}),"Remove"]})]})]}):u.jsxs(H,{onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),n?"Uploading...":"Upload Photo (1920 Ã 1080)"]})]})]})})})},H9=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),s=y.useRef(null),{toast:i}=qn();y.useEffect(()=>{o()},[]);const o=async()=>{const{data:c,error:d}=await Xe.from("agenda_settings").select("hero_photo_url").limit(1).single();d&&d.code!=="PGRST116"?i({title:"Error fetching photo",description:d.message,variant:"destructive"}):c&&t(c.hero_photo_url)},a=async c=>{var h;const d=(h=c.target.files)==null?void 0:h[0];if(d){r(!0);try{const f=d.name.split(".").pop(),p=`hero-photo-${Date.now()}.${f}`,{publicUrl:g}=await hs.upload("agenda-photos",p,d,!0);await Nt("hero_photo_url",g),t(g),i({title:"Photo uploaded successfully"})}catch(f){i({title:"Upload failed",description:f.message,variant:"destructive"})}finally{r(!1)}}},l=async()=>{try{await Nt("hero_photo_url",null),t(null),i({title:"Photo removed"})}catch(c){i({title:"Error removing photo",description:c.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsx("div",{className:"container max-w-4xl mx-auto",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(al,{className:"h-5 w-5"}),"Hero Section Photo"]})}),u.jsxs(nn,{className:"space-y-4",children:[u.jsx("input",{type:"file",ref:s,onChange:a,accept:"image/*",className:"hidden"}),e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"aspect-video w-full max-w-md rounded-lg overflow-hidden border border-border",children:u.jsx("img",{src:e,alt:"Hero photo",className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Replace Photo"]}),u.jsxs(H,{variant:"destructive",onClick:l,children:[u.jsx(xr,{className:"h-4 w-4 mr-2"}),"Remove"]})]})]}):u.jsxs(H,{onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),n?"Uploading...":"Upload Photo (1920 Ã 1080)"]})]})]})})})};var wh="focusScope.autoFocusOnMount",xh="focusScope.autoFocusOnUnmount",z2={bubbles:!1,cancelable:!0},K9="FocusScope",R0=y.forwardRef((e,t)=>
vendor: 4,257 bytes, line 225
225{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=y.useState(null),c=Tn(s),d=Tn(i),h=y.useRef(null),f=Ee(t,m=>l(m)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let m=function(S){if(p.paused||!a)return;const b=S.target;a.contains(b)?h.current=b:Rr(h.current,{select:!0})},x=function(S){if(p.paused||!a)return;const b=S.relatedTarget;b!==null&&(a.contains(b)||Rr(h.current,{select:!0}))},w=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Rr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const v=new MutationObserver(w);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),v.disconnect()}}},[r,a,p.paused]),y.useEffect(()=>{if(a){H2.add(p);const m=document.activeElement;if(!a.contains(m)){const w=new CustomEvent(wh,z2);a.addEventListener(wh,c),a.dispatchEvent(w),w.defaultPrevented||(J9(X9(NE(a)),{select:!0}),document.activeElement===m&&Rr(a))}return()=>{a.removeEventListener(wh,c),setTimeout(()=>{const w=new CustomEvent(xh,z2);a.addEventListener(xh,d),a.dispatchEvent(w),w.defaultPrevented||Rr(m??document.body,{select:!0}),a.removeEventListener(xh,d),H2.remove(p)},0)}}},[a,c,d,p]);const g=y.useCallback(m=>{if(!n&&!r||p.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,w=document.activeElement;if(x&&w){const v=m.currentTarget,[S,b]=G9(v);S&&b?!m.shiftKey&&w===b?(m.preventDefault(),n&&Rr(S,{select:!0})):m.shiftKey&&w===S&&(m.preventDefault(),n&&Rr(b,{select:!0})):w===v&&m.preventDefault()}},[n,r,p.paused]);return u.jsx(ce.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});R0.displayName=K9;function J9(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rr(r,{select:t}),document.activeElement!==n)return}function G9(e){const t=NE(e),n=W2(t,e),r=W2(t.reverse(),e);return[n,r]}function NE(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 W2(e,t){for(const n of e)if(!Y9(n,{upTo:t}))return n}function Y9(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 q9(e){return e instanceof HTMLInputElement&&"select"in e}function Rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&q9(e)&&t&&e.select()}}var H2=Q9();function Q9(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=K2(e,t),e.unshift(t)},remove(t){var n;e=K2(e,t),(n=e[0])==null||n.resume()}}}function K2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function X9(e){return e.filter(t=>t.tagName!=="A")}var Sh=0;function AE(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J2()),document.body.insertAdjacentElement("beforeend",e[1]??J2()),Sh++,()=>{Sh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sh--}},[])}function J2(){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 kc="right-scroll-bar-position",Cc="width-before-scroll-bar",Z9="with-scroll-bars-hidden",e$="--removed-body-scroll-bar-size";function bh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function t$(e,t){var n=y.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 n$=typeof window<"u"?y.useLayoutEffect:y.useEffect,G2=new WeakMap;function r$(e,t){var n=t$(null,function(r){return e.forEach(function(s){return bh(s,r)})});return n$(function(){var r=G2.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;
vendor: 4,196 bytes, lines 225-240
225s.forEach(function(a){i.has(a)||bh(a,null)}),i.forEach(function(a){s.has(a)||bh(a,o)})}G2.set(n,e)},[e]),n}function s$(e){return e}function i$(e,t){t===void 0&&(t=s$);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var d=o;o=[],d.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){o.push(d),c()},filter:function(d){return o=o.filter(d),n}}}};return s}function o$(e){e===void 0&&(e={});var t=i$(null);return t.options=Bn({async:!0,ssr:!1},e),t}var PE=function(e){var t=e.sideCar,n=Mo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Bn({},n))};PE.isSideCarExport=!0;function a$(e,t){return e.useMedium(t),PE}var RE=o$(),_h=function(){},rd=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:_h,onWheelCapture:_h,onTouchMoveCapture:_h}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,m=e.inert,x=e.allowPinchZoom,w=e.as,v=w===void 0?"div":w,S=e.gapMode,b=Mo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,E=r$([n,t]),_=Bn(Bn({},b),s);return y.createElement(y.Fragment,null,d&&y.createElement(k,{sideCar:RE,removeScrollBar:c,shards:h,noRelative:p,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:S}),o?y.cloneElement(y.Children.only(a),Bn(Bn({},_),{ref:E})):y.createElement(v,Bn({},_,{className:l,ref:E}),a))});rd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rd.classNames={fullWidth:Cc,zeroRight:kc};var l$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function c$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l$();return t&&e.setAttribute("nonce",t),e}function u$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function d$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var h$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=c$())&&(u$(t,n),d$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},f$=function(){var e=h$();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ME=function(){var e=f$(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},p$={left:0,top:0,right:0,gap:0},Eh=function(e){return parseInt(e||"",10)||0},m$=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[Eh(n),Eh(r),Eh(s)]},g$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return p$;var t=m$(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])}},v$=ME(),to="data-scroll-locked",y$=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 226 .`.concat(Z9,` { 227 overflow: hidden `).concat(r,`; 228 padding-right: `).concat(a,"px ").concat(r,`; 229 } 230 body[`).concat(to,`] { 231 overflow: hidden `).concat(r,`; 232 overscroll-behavior: contain; 233 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 234 padding-left: `.concat(s,`px; 235 padding-top: `).concat(i,`px; 236 padding-right: `).concat(o,`px; 237 margin-left:0; 238 margin-top:0; 239 margin-right: `).concat(a,"px ").concat(r,`; 240 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
240")].filter(Boolean).join(""),` 241 } 242 243 .`).concat(kc,` { 244 right: `).concat(a,"px ").concat(r,`; 245 } 246 247 .`).concat(Cc,` { 248 margin-right: `).concat(a,"px ").concat(r,`; 249 } 250 251 .`).concat(kc," .").concat(kc,` { 252 right: 0 `).concat(r,`; 253 } 254 255 .`).concat(Cc," .").concat(Cc,` { 256 margin-right: 0 `).concat(r,`; 257 } 258 259 body[`).concat(to,`] { 260 `).concat(e$,": ").concat(a,`px; 261 } 262`)},Y2=function(){var e=parseInt(document.body.getAttribute(to)||"0",10);return isFinite(e)?e:0},w$=function(){y.useEffect(function(){return document.body.setAttribute(to,(Y2()+1).toString()),function(){var e=Y2()-1;e<=0?document.body.removeAttribute(to):document.body.setAttribute(to,e.toString())}},[])},x$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;w$();var i=y.useMemo(function(){return g$(s)},[s]);return y.createElement(v$,{styles:y$(i,!t,s,n?"":"!important")})},yp=!1;if(typeof window<"u")try{var Zl=Object.defineProperty({},"passive",{get:function(){return yp=!0,!0}});window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{yp=!1}var wi=yp?{passive:!1}:!1,S$=function(e){return e.tagName==="TEXTAREA"},IE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!S$(e)&&n[t]==="visible")},b$=function(e){return IE(e,"overflowY")},_$=function(e){return IE(e,"overflowX")},q2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=OE(e,r);if(s){var i=DE(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},E$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},k$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},OE=function(e,t){return e==="v"?b$(t):_$(t)},DE=function(e,t){return e==="v"?E$(t):k$(t)},C$=function(e,t){return e==="h"&&t==="rtl"?-1:1},T$=function(e,t,n,r,s){var i=C$(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,d=o>0,h=0,f=0;do{if(!a)break;var p=DE(e,a),g=p[0],m=p[1],x=p[2],w=m-x-i*g;
vendor: 4,179 bytes, lines 262-265
262(g||w)&&OE(e,a)&&(h+=w,f+=g);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(f)<1||!s))&&(c=!0),c},ec=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Q2=function(e){return[e.deltaX,e.deltaY]},X2=function(e){return e&&"current"in e?e.current:e},j$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},N$=function(e){return` 263 .block-interactivity-`.concat(e,` {pointer-events: none;} 264 .allow-interactivity-`).concat(e,` {pointer-events: all;} 265`)},A$=0,xi=[];function P$(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(A$++)[0],i=y.useState(ME)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=QD([e.lockRef.current],(e.shards||[]).map(X2),!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=y.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var w=ec(m),v=n.current,S="deltaX"in m?m.deltaX:v[0]-w[0],b="deltaY"in m?m.deltaY:v[1]-w[1],k,E=m.target,_=Math.abs(S)>Math.abs(b)?"h":"v";if("touches"in m&&_==="h"&&E.type==="range")return!1;var C=q2(_,E);if(!C)return!0;if(C?k=_:(k=_==="v"?"h":"v",C=q2(_,E)),!C)return!1;if(!r.current&&"changedTouches"in m&&(S||b)&&(r.current=k),!k)return!0;var j=r.current||k;return T$(j,x,m,j==="h"?S:b,!0)},[]),l=y.useCallback(function(m){var x=m;if(!(!xi.length||xi[xi.length-1]!==i)){var w="deltaY"in x?Q2(x):ec(x),v=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&j$(k.delta,w)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(o.current.shards||[]).map(X2).filter(Boolean).filter(function(k){return k.contains(x.target)}),b=S.length>0?a(x,S[0]):!o.current.noIsolation;b&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(m,x,w,v){var S={name:m,delta:x,target:w,should:v,shadowParent:R$(w)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(b){return b!==S})},1)},[]),d=y.useCallback(function(m){n.current=ec(m),r.current=void 0},[]),h=y.useCallback(function(m){c(m.type,Q2(m),m.target,a(m,e.lockRef.current))},[]),f=y.useCallback(function(m){c(m.type,ec(m),m.target,a(m,e.lockRef.current))},[]);y.useEffect(function(){return xi.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,wi),document.addEventListener("touchmove",l,wi),document.addEventListener("touchstart",d,wi),function(){xi=xi.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,wi),document.removeEventListener("touchmove",l,wi),document.removeEventListener("touchstart",d,wi)}},[]);var p=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:N$(s)}):null,p?y.createElement(x$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function R$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const M$=a$(RE,P$);var M0=y.forwardRef(function(e,t){return y.createElement(rd,Bn({},e,{ref:t,sideCar:M$}))});M0.classNames=rd.classNames;var I$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Si=new WeakMap,tc=new WeakMap,nc={},kh=0,LE=function(e){return e&&(e.host||LE(e.parentNode))},O$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=LE(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})},D$=function(e,t,n,r){var s=O$(t,Array.isArray(e)?e:[e]);nc[n]||(nc[n]=new WeakMap);var i=nc[n],o=[],a=new Set,l=new Set(s),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};
vendor: 6,934 bytes, lines 265-269
265s.forEach(c);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(f){if(a.has(f))d(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",m=(Si.get(f)||0)+1,x=(i.get(f)||0)+1;Si.set(f,m),i.set(f,x),o.push(f),m===1&&g&&tc.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",f,w)}})};return d(t),a.clear(),kh++,function(){o.forEach(function(h){var f=Si.get(h)-1,p=i.get(h)-1;Si.set(h,f),i.set(h,p),f||(tc.has(h)||h.removeAttribute(r),tc.delete(h)),p||h.removeAttribute(n)}),kh--,kh||(Si=new WeakMap,Si=new WeakMap,tc=new WeakMap,nc={})}},$E=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=I$(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),D$(r,s,n,"aria-hidden")):function(){return null}},sd="Dialog",[UE,mF]=ko(sd),[L$,Pn]=UE(sd),FE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c,d]=Qc({prop:r,defaultProp:s??!1,onChange:i,caller:sd});return u.jsx(L$,{scope:t,triggerRef:a,contentRef:l,contentId:Qi(),titleId:Qi(),descriptionId:Qi(),open:c,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(h=>!h),[d]),modal:o,children:n})};FE.displayName=sd;var BE="DialogTrigger",$$=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(BE,n),i=Ee(t,s.triggerRef);return u.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":D0(s.open),...r,ref:i,onClick:re(e.onClick,s.onOpenToggle)})});$$.displayName=BE;var I0="DialogPortal",[U$,VE]=UE(I0,{forceMount:void 0}),zE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Pn(I0,t);return u.jsx(U$,{scope:t,forceMount:n,children:y.Children.map(r,o=>u.jsx(Co,{present:n||i.open,children:u.jsx($u,{asChild:!0,container:s,children:o})}))})};zE.displayName=I0;var wu="DialogOverlay",WE=y.forwardRef((e,t)=>{const n=VE(wu,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Pn(wu,e.__scopeDialog);return i.modal?u.jsx(Co,{present:r||i.open,children:u.jsx(B$,{...s,ref:t})}):null});WE.displayName=wu;var F$=yo("DialogOverlay.RemoveScroll"),B$=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(wu,n);return u.jsx(M0,{as:F$,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(ce.div,{"data-state":D0(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ei="DialogContent",HE=y.forwardRef((e,t)=>{const n=VE(ei,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Pn(ei,e.__scopeDialog);return u.jsx(Co,{present:r||i.open,children:i.modal?u.jsx(V$,{...s,ref:t}):u.jsx(z$,{...s,ref:t})})});HE.displayName=ei;var V$=y.forwardRef((e,t)=>{const n=Pn(ei,e.__scopeDialog),r=y.useRef(null),s=Ee(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return $E(i)},[]),u.jsx(KE,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:re(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:re(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:re(e.onFocusOutside,i=>i.preventDefault())})}),z$=y.forwardRef((e,t)=>{const n=Pn(ei,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return u.jsx(KE,{...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,c;(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;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),KE=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=Pn(ei,n),l=y.useRef(null),c=Ee(t,l);return AE(),u.jsxs(u.Fragment,{children:[u.jsx(R0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:u.jsx(il,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":D0(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(W$,{titleId:a.titleId}),u.jsx(K$,{contentRef:l,descriptionId:a.descriptionId})]})]})}),O0="DialogTitle",JE=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(O0,n);return u.jsx(ce.h2,{id:s.titleId,...r,ref:t})});JE.displayName=O0;var GE="DialogDescription",YE=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(GE,n);return u.jsx(ce.p,{id:s.descriptionId,...r,ref:t})});YE.displayName=GE;var qE="DialogClose",QE=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Pn(qE,n);return u.jsx(ce.button,{type:"button",...r,ref:t,onClick:re(e.onClick,()=>s.onOpenChange(!1))})});QE.displayName=qE;function D0(e){return e?"open":"closed"}var XE="DialogTitleWarning",[gF,ZE]=IT(XE,{contentName:ei,titleName:O0,docsSlug:"dialog"}),W$=({titleId:e})=>{const t=ZE(XE),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 266 267If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 268 269For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},H$="DialogDescriptionWarning",K$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ZE(H$).contentName}}.`;return y.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},J$=FE,G$=zE,ek=WE,tk=HE,nk=JE,rk=YE,Y$=QE;const q$=J$,Q$=G$,sk=y.forwardRef(({className:e,...t},n)=>u.jsx(ek,{ref:n,className:fe("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}));sk.displayName=ek.displayName;const ik=y.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Q$,{children:[u.jsx(sk,{}),u.jsxs(tk,{ref:r,className:fe("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:rounded-lg",e),...n,children:[t,u.jsxs(Y$,{className:"absolute right-4 top-4 roun
269ded-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:[u.jsx(fr,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ik.displayName=tk.displayName;const ok=({className:e,...t})=>u.jsx("div",{className:fe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ok.displayName="DialogHeader";const ak=y.forwardRef(({className:e,...t},n)=>u.jsx(nk,{ref:n,className:fe("text-lg font-semibold leading-none tracking-tight",e),...t}));ak.displayName=nk.displayName;const X$=y.forwardRef(({className:e,...t},n)=>u.jsx(rk,{ref:n,className:fe("text-sm text-muted-foreground",e),...t}));X$.displayName=rk.displayName;function Z2(e,[t,n]){return Math.min(n,Math.max(t,e))}var Z$=y.createContext(void 0);function eU(e){const t=y.useContext(Z$);return e||t||"ltr"}function tU(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var nU=[" ","Enter","ArrowUp","ArrowDown"],rU=[" ","Enter"],ti="Select",[id,od,sU]=Px(ti),[Io,vF]=ko(ti,[sU,Wu]),ad=Wu(),[iU,vs]=Io(ti),[oU,aU]=Io(ti),lk=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:h,disabled:f,required:p,form:g}=e,m=ad(t),[x,w]=y.useState(null),[v,S]=y.useState(null),[b,k]=y.useState(!1),E=eU(c),[_,C]=Qc({prop:r,defaultProp:s??!1,onChange:i,caller:ti}),[j,T]=Qc({prop:o,defaultProp:a,onChange:l,caller:ti}),A=y.useRef(null),R=x?g||!!x.closest("form"):!0,[$,O]=y.useState(new Set),G=Array.from($).map(F=>F.props.value).join(";");return u.jsx(vA,{...m,children:u.jsxs(iU,{required:p,scope:t,trigger:x,onTriggerChange:w,valueNode:v,onValueNodeChange:S,valueNodeHasChildren:b,onValueNodeHasChildrenChange:k,contentId:Qi(),value:j,onValueChange:T,open:_,onOpenChange:C,dir:E,triggerPointerDownPosRef:A,disabled:f,children:[u.jsx(id.Provider,{scope:t,children:u.jsx(oU,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(F=>{O(V=>new Set(V).add(F))},[]),onNativeOptionRemove:y.useCallback(F=>{O(V=>{const N=new Set(V);return N.delete(F),N})},[]),children:n})}),R?u.jsxs(Rk,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:h,value:j,onChange:F=>T(F.target.value),disabled:f,form:g,children:[j===void 0?u.jsx("option",{value:""}):null,Array.from($)]},G):null]})})};lk.displayName=ti;var ck="SelectTrigger",uk=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=ad(n),o=vs(ck,n),a=o.disabled||r,l=Ee(t,o.onTriggerChange),c=od(n),d=y.useRef("touch"),[h,f,p]=Ik(m=>{const x=c().filter(S=>!S.disabled),w=x.find(S=>S.value===o.value),v=Ok(x,m,w);v!==void 0&&o.onValueChange(v.value)}),g=m=>{a||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(BS,{asChild:!0,...i,children:u.jsx(ce.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Mk(o.value)?"":void 0,...s,ref:l,onClick:re(s.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&g(m)}),onPointerDown:re(s.onPointerDown,m=>{d.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:re(s.onKeyDown,m=>{const x=h.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(x&&m.key===" ")&&nU.includes(m.key)&&(g(),m.preventDefault())})})})});uk.displayName=ck;var dk="SelectValue",hk=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...a}=e,l=vs(dk,n),{onValueNodeHasChildrenChange:c}=l,d=i!==void 0,h=Ee(t,l.onValueNodeChange);return it(()=>{c(d)},[c,d]),u.jsx(ce.span,{...a,ref:h,style:{pointerEvents:"none"},children:Mk(l.value)?u.jsx(u.Fragment,{children:o}):i})});hk.displayName=dk;var lU="SelectIcon",fk=y.forwardRef((e,t)=>
vendor: 15,169 bytes, line 269
269{const{__scopeSelect:n,children:r,...s}=e;return u.jsx(ce.span,{"aria-hidden":!0,...s,ref:t,children:r||"â¼"})});fk.displayName=lU;var cU="SelectPortal",pk=e=>u.jsx($u,{asChild:!0,...e});pk.displayName=cU;var ni="SelectContent",mk=y.forwardRef((e,t)=>{const n=vs(ni,e.__scopeSelect),[r,s]=y.useState();if(it(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?ii.createPortal(u.jsx(gk,{scope:e.__scopeSelect,children:u.jsx(id.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),i):null}return u.jsx(vk,{...e,ref:t})});mk.displayName=ni;var pn=10,[gk,ys]=Io(ni),uU="SelectContentImpl",dU=yo("SelectContent.RemoveScroll"),vk=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:x,...w}=e,v=vs(ni,n),[S,b]=y.useState(null),[k,E]=y.useState(null),_=Ee(t,U=>b(U)),[C,j]=y.useState(null),[T,A]=y.useState(null),R=od(n),[$,O]=y.useState(!1),G=y.useRef(!1);y.useEffect(()=>{if(S)return $E(S)},[S]),AE();const F=y.useCallback(U=>{const[oe,...xe]=R().map(te=>te.ref.current),[ae]=xe.slice(-1),se=document.activeElement;for(const te of U)if(te===se||(te==null||te.scrollIntoView({block:"nearest"}),te===oe&&k&&(k.scrollTop=0),te===ae&&k&&(k.scrollTop=k.scrollHeight),te==null||te.focus(),document.activeElement!==se))return},[R,k]),V=y.useCallback(()=>F([C,S]),[F,C,S]);y.useEffect(()=>{$&&V()},[$,V]);const{onOpenChange:N,triggerPointerDownPosRef:P}=v;y.useEffect(()=>{if(S){let U={x:0,y:0};const oe=ae=>{var se,te;U={x:Math.abs(Math.round(ae.pageX)-(((se=P.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(ae.pageY)-(((te=P.current)==null?void 0:te.y)??0))}},xe=ae=>{U.x<=10&&U.y<=10?ae.preventDefault():S.contains(ae.target)||N(!1),document.removeEventListener("pointermove",oe),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",xe,{capture:!0})}}},[S,N,P]),y.useEffect(()=>{const U=()=>N(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[N]);const[L,J]=Ik(U=>{const oe=R().filter(se=>!se.disabled),xe=oe.find(se=>se.ref.current===document.activeElement),ae=Ok(oe,U,xe);ae&&setTimeout(()=>ae.ref.current.focus())}),W=y.useCallback((U,oe,xe)=>{const ae=!G.current&&!xe;(v.value!==void 0&&v.value===oe||ae)&&(j(U),ae&&(G.current=!0))},[v.value]),X=y.useCallback(()=>S==null?void 0:S.focus(),[S]),Q=y.useCallback((U,oe,xe)=>{const ae=!G.current&&!xe;(v.value!==void 0&&v.value===oe||ae)&&A(U)},[v.value]),ue=r==="popper"?wp:yk,pe=ue===wp?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:x}:{};return u.jsx(gk,{scope:n,content:S,viewport:k,onViewportChange:E,itemRefCallback:W,selectedItem:C,onItemLeave:X,itemTextRefCallback:Q,focusSelectedItem:V,selectedItemText:T,position:r,isPositioned:$,searchRef:L,children:u.jsx(M0,{as:dU,allowPinchZoom:!0,children:u.jsx(R0,{asChild:!0,trapped:v.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:re(s,U=>{var oe;(oe=v.trigger)==null||oe.focus({preventScroll:!0}),U.preventDefault()}),children:u.jsx(il,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:u.jsx(ue,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:U=>U.preventDefault(),...w,...pe,onPlaced:()=>O(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:re(w.onKeyDown,U=>{const oe=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!oe&&U.key.length===1&&J(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let ae=R().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(U.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const se=U.target,te=ae.indexOf(se);ae=ae.slice(te+1)}setTimeout(()=>F(ae)),U.preventDefault()}})})})})})})});vk.displayName=uU;var hU="SelectItemAlignedPosition",yk=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=vs(ni,n),o=ys(ni,n),[a,l]=y.useState(null),[c,d]=y.useState(null),h=Ee(t,_=>d(_)),f=od(n),p=y.useRef(!1),g=y.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:w,focusSelectedItem:v}=o,S=y.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&m&&x&&w){const _=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),T=w.getBoundingClientRect();if(i.dir!=="rtl"){const se=T.left-C.left,te=j.left-se,Ve=_.left-te,ft=_.width+Ve,Xn=Math.max(ft,C.width),rn=window.innerWidth-pn,At=Z2(te,[pn,Math.max(pn,rn-Xn)]);a.style.minWidth=ft+"px",a.style.left=At+"px"}else{const se=C.right-T.right,te=window.innerWidth-j.right-se,Ve=window.innerWidth-_.right-te,ft=_.width+Ve,Xn=Math.max(ft,C.width),rn=window.innerWidth-pn,At=Z2(te,[pn,Math.max(pn,rn-Xn)]);a.style.minWidth=ft+"px",a.style.right=At+"px"}const A=f(),R=window.innerHeight-pn*2,$=m.scrollHeight,O=window.getComputedStyle(c),G=parseInt(O.borderTopWidth,10),F=parseInt(O.paddingTop,10),V=parseInt(O.borderBottomWidth,10),N=parseInt(O.paddingBottom,10),P=G+F+$+N+V,L=Math.min(x.offsetHeight*5,P),J=window.getComputedStyle(m),W=parseInt(J.paddingTop,10),X=parseInt(J.paddingBottom,10),Q=_.top+_.height/2-pn,ue=R-Q,pe=x.offsetHeight/2,U=x.offsetTop+pe,oe=G+F+U,xe=P-oe;if(oe<=Q){const se=A.length>0&&x===A[A.length-1].ref.current;a.style.bottom="0px";const te=c.clientHeight-m.offsetTop-m.offsetHeight,Ve=Math.max(ue,pe+(se?X:0)+te+V),ft=oe+Ve;a.style.height=ft+"px"}else{const se=A.length>0&&x===A[0].ref.current;a.style.top="0px";const Ve=Math.max(Q,G+m.offsetTop+(se?W:0)+pe)+xe;a.style.height=Ve+"px",m.scrollTop=oe-Q+m.offsetTop}a.style.margin=`${pn}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,a,c,m,x,w,i.dir,r]);it(()=>S(),[S]);const[b,k]=y.useState();it(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const E=y.useCallback(_=>{_&&g.current===!0&&(S(),v==null||v(),g.current=!1)},[S,v]);return u.jsx(pU,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:u.jsx(ce.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});yk.displayName=hU;var fU="SelectPopperPosition",wp=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=pn,...i}=e,o=ad(n);return u.jsx(VS,{...o,...i,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});wp.displayName=fU;var[pU,L0]=Io(ni,{}),xp="SelectViewport",wk=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=ys(xp,n),o=L0(xp,n),a=Ee(t,i.onViewportChange),l=y.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(id.Slot,{scope:n,children:u.jsx(ce.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:re(s.onScroll,c=>{const d=c.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const p=Math.abs(l.current-d.scrollTop);if(p>0){const g=window.innerHeight-pn*2,m=parseFloat(h.style.minHeight),x=parseFloat(h.style.height),w=Math.max(m,x);if(w<g){const v=w+p,S=Math.min(g,v),b=v-S;h.style.height=S+"px",h.style.bottom==="0px"&&(d.scrollTop=b>0?b:0,h.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});wk.displayName=xp;var xk="SelectGroup",[mU,gU]=Io(xk),vU=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Qi();return u.jsx(mU,{scope:n,id:s,children:u.jsx(ce.div,{role:"group","aria-labelledby":s,...r,ref:t})})});vU.displayName=xk;var Sk="SelectLabel",bk=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=gU(Sk,n);return u.jsx(ce.div,{id:s.id,...r,ref:t})});bk.displayName=Sk;var xu="SelectItem",[yU,_k]=Io(xu),Ek=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=e,a=vs(xu,n),l=ys(xu,n),c=a.value===r,[d,h]=y.useState(i??""),[f,p]=y.useState(!1),g=Ee(t,v=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,v,r,s)}),m=Qi(),x=y.useRef("touch"),w=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(yU,{scope:n,value:r,disabled:s,textId:m,isSelected:c,onItemTextChange:y.useCallback(v=>{h(S=>S||((v==null?void 0:v.textContent)??"").trim())},[]),children:u.jsx(id.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:u.jsx(ce.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:g,onFocus:re(o.onFocus,()=>p(!0)),onBlur:re(o.onBlur,()=>p(!1)),onClick:re(o.onClick,()=>{x.current!=="mouse"&&w()}),onPointerUp:re(o.onPointerUp,()=>{x.current==="mouse"&&w()}),onPointerDown:re(o.onPointerDown,v=>{x.current=v.pointerType}),onPointerMove:re(o.onPointerMove,v=>{var S;x.current=v.pointerType,s?(S=l.onItemLeave)==null||S.call(l):x.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:re(o.onPointerLeave,v=>{var S;v.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:re(o.onKeyDown,v=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&v.key===" "||(rU.includes(v.key)&&w(),v.key===" "&&v.preventDefault())})})})})});Ek.displayName=xu;var ta="SelectItemText",kk=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,o=vs(ta,n),a=ys(ta,n),l=_k(ta,n),c=aU(ta,n),[d,h]=y.useState(null),f=Ee(t,w=>h(w),l.onItemTextChange,w=>{var v;return(v=a.itemTextRefCallback)==null?void 0:v.call(a,w,l.value,l.disabled)}),p=d==null?void 0:d.textContent,g=y.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return it(()=>(m(g),()=>x(g)),[m,x,g]),u.jsxs(u.Fragment,{children:[u.jsx(ce.span,{id:l.textId,...i,ref:f}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ii.createPortal(i.children,o.valueNode):null]})});kk.displayName=ta;var Ck="SelectItemIndicator",Tk=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return _k(Ck,n).isSelected?u.jsx(ce.span,{"aria-hidden":!0,...r,ref:t}):null});Tk.displayName=Ck;var Sp="SelectScrollUpButton",jk=y.forwardRef((e,t)=>{const n=ys(Sp,e.__scopeSelect),r=L0(Sp,e.__scopeSelect),[s,i]=y.useState(!1),o=Ee(t,r.onScrollButtonChange);return it(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?u.jsx(Ak,{...e,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});jk.displayName=Sp;var bp="SelectScrollDownButton",Nk=y.forwardRef((e,t)=>{const n=ys(bp,e.__scopeSelect),r=L0(bp,e.__scopeSelect),[s,i]=y.useState(!1),o=Ee(t,r.onScrollButtonChange);return it(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;i(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?u.jsx(Ak,{...e,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Nk.displayName=bp;var Ak=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=ys("SelectScrollButton",n),o=y.useRef(null),a=od(n),l=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>l(),[l]),it(()=>{var d;const c=a().find(h=>h.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),u.jsx(ce.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:re(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:re(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:re(s.onPointerLeave,()=>{l()})})}),wU="SelectSeparator",Pk=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(ce.div,{"aria-hidden":!0,...r,ref:t})});Pk.displayName=wU;var _p="SelectArrow",xU=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=ad(n),i=vs(_p,n),o=ys(_p,n);return i.open&&o.position==="popper"?u.jsx(zS,{...s,...r,ref:t}):null});xU.displayName=_p;var SU="SelectBubbleInput",Rk=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=y.useRef(null),i=Ee(r,s),o=tU(t);return y.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&d){const h=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(h)}},[o,t]),u.jsx(ce.select,{...n,style:{...Dx,...n.style},ref:i,defaultValue:t})});Rk.displayName=SU;function Mk(e){return e===""||e===void 0}function Ik(e){const t=Tn(e),n=y.useRef(""),r=y.useRef(0),s=y.useCallback(o=>{const a=n.current+o;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),i=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function Ok(e,t,n){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=bU(e,Math.max(i,0));s.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function bU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _U=lk,Dk=uk,EU=hk,kU=fk,CU=pk,Lk=mk,TU=wk,$k=bk,Uk=Ek,jU=kk,NU=Tk,Fk=jk,Bk=Nk,Vk=Pk;const AU=_U,PU=EU,zk=y.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Dk,{ref:r,className:fe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
269ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,u.jsx(kU,{asChild:!0,children:u.jsx(oS,{className:"h-4 w-4 opacity-50"})})]}));zk.displayName=Dk.displayName;const Wk=y.forwardRef(({className:e,...t},n)=>u.jsx(Fk,{ref:n,className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(N4,{className:"h-4 w-4"})}));Wk.displayName=Fk.displayName;const Hk=y.forwardRef(({className:e,...t},n)=>u.jsx(Bk,{ref:n,className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(oS,{className:"h-4 w-4"})}));Hk.displayName=Bk.displayName;const Kk=y.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>u.jsx(CU,{children:u.jsxs(Lk,{ref:s,className:fe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[u.jsx(Wk,{}),u.jsx(TU,{className:fe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(Hk,{})]})}));Kk.displayName=Lk.displayName;const RU=y.forwardRef(({className:e,...t},n)=>u.jsx($k,{ref:n,className:fe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));RU.displayName=$k.displayName;const Jk=y.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Uk,{ref:r,className:fe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(NU,{children:u.jsx(as,{className:"h-4 w-4"})})}),u.jsx(jU,{children:t})]}));Jk.displayName=Uk.displayName;const MU=y.forwardRef(({className:e,...t},n)=>u.jsx(Vk,{ref:n,className:fe("-mx-1 my-1 h-px bg-muted",e),...t}));MU.displayName=Vk.displayName;var IU=Object.defineProperty,OU=(e,t,n)=>t in e?IU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ce=(e,t,n)=>OU(e,typeof t!="symbol"?t+"":t,n);const Su={x:0,y:0,width:0,height:0,unit:"px"},bi=(e,t,n)=>Math.min(Math.max(e,t),n),DU=(...e)=>e.filter(t=>t&&typeof t=="string").join(" "),ew=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function LU(e,t,n,r){const s=On(e,n,r);return e.width&&(s.height=s.width/t),e.height&&(s.width=s.height*t),s.y+s.height>r&&(s.height=r-s.y,s.width=s.height*t),s.x+s.width>n&&(s.width=n-s.x,s.height=s.width/t),e.unit==="%"?Lr(s,n,r):s}function $U(e,t,n){const r=On(e,t,n);return r.x=(t-r.width)/2,r.y=(n-r.height)/2,e.unit==="%"?Lr(r,t,n):r}function Lr(e,t,n){return e.unit==="%"?{...Su,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function On(e,t,n){return e.unit?e.unit==="px"?{...Su,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...Su,...e,unit:"px"}}function tw(e,t,n,r,s,i=0,o=0,a=r,l=s){const c={...e};let d=Math.min(i,r),h=Math.min(o,s),f=Math.min(a,r),p=Math.min(l,s);t&&(t>1?(d=o?o*t:d,h=d/t,f=a*t):(h=i?i/t:h,d=h*t,p=l/t)),c.y<0&&(c.height=Math.max(c.height+c.y,h),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,d),c.x=0);const g=r-(c.x+c.width);g<0&&(c.x=Math.min(c.x,r-d),c.width+=g);const m=s-(c.y+c.height);if(m<0&&(c.y=Math.min(c.y,s-h),c.height+=m),c.width<d&&((n==="sw"||n=="nw")&&(c.x-=d-c.width),c.width=d),c.height<h&&((n==="nw"||n=="ne")&&(c.y-=h-c.height),c.height=h),c.width>f&&((n==="sw"||n=="nw")&&(c.x-=f-c.width),c.width=f),c.height>p&&((n==="nw"||n=="ne")&&(c.y-=p-c.height),c.height=p),t){const x=c.width/c.height;if(x<t){const w=Math.max(c.width/t,h);(n==="nw"||n=="ne")&&(c.y-=w-c.height),c.height=w}else if(x>t){const w=Math.max(c.height*t,d);(n==="sw"||n=="nw")&&(c.x-=w-c.width),c.width=w}}return c}function UU(e,t,n,r){const s={...e};return t==="ArrowLeft"?r==="nw"?(s.x-=n,s.y-=n,s.width+=n,s.height+=n):r==="w"?(s.x-=n,s.width+=n):r==="sw"?(s.x-=n,s.width+=n,s.height+=n):r==="ne"?(s.y+=n,s.width-=n,s.height-=n):r==="e"?s.width-=n:r==="se"&&(s.width-=n,s.height-=n):t==="ArrowRight"&&(r==="nw"?(s.x+=n,s.y+=n,s.width-=n,s.height-=n):r==="w"?(s.x+=n,s.width-=n):r==="sw"?(s.x+=n,s.width-=n,s.height-=n):r==="ne"?(s.y-=n,s.width+=n,s.height+=n):r==="e"?s.width+=n:r==="se"&&(s.width+=n,s.height+=n)),t==="ArrowUp"?r==="nw"?(s.x-=n,s.y-=n,s.width+=n,s.height+=n):r==="n"?(s.y-=n,s.height+=n):r==="ne"?(s.y-=n,s.width+=n,s.height+=n):r==="sw"?(s.x+=n,s.width-=n,s.height-=n):r==="s"?s.height-=n:r==="se"&&(s.width-=n,s.height-=n):t==="ArrowDown"&&(r==="nw"?(s.x+=n,s.y+=n,s.width-=n,s.height-=n):r==="n"?(s.y+=n,s.height-=n):r==="ne"?(s.y+=n,s.width-=n,s.height-=n):r==="sw"?(s.x-=n,s.width+=n,s.height+=n):r==="s"?s.height+=n:r==="se"&&(s.width+=n,s.height+=n)),s}const _i={capture:!0,passive:!1};let FU=0;const Mr=class hn extends y.PureComponent{constructor(){super(...arguments),Ce(this,"docMoveBound",!1),Ce(this,"mouseDownOnCrop",!1),Ce(this,"dragStarted",!1),Ce(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),Ce(this,"componentRef",y.createRef()),Ce(this,"mediaRef",y.createRef()),Ce(this,"resizeObserver"),Ce(this,"initChangeCalled",!1),Ce(this,"instanceId",`rc-${FU++}`),Ce(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),Ce(this,"onCropPointerDown",t=>{const{crop:n,disabled:r}=this.props,s=this.getBox();if(!n)return;const i=On(n,s.width,s.height);if(r)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=t.target.dataset.ord,a=!!o;let l=t.clientX,c=t.clientY,d=i.x,h=i.y;if(o){const f=t.clientX-s.x,p=t.clientY-s.y;let g=0,m=0;o==="ne"||o=="e"?(g=f-(i.x+i.width),m=p-i.y,d=i.x,h=i.y+i.height):o==="se"||o==="s"?(g=f-(i.x+i.width),m=p-(i.y+i.height),d=i.x,h=i.y):o==="sw"||o=="w"?(g=f-i.x,m=p-(i.y+i.height),d=i.x+i.width,h=i.y):(o==="nw"||o=="n")&&(g=f-i.x,m=p-i.y,d=i.x+i.width,h=i.y+i.height),l=d+s.x+g,c=h+s.y+m}this.evData={startClientX:l,startClientY:c,startCropX:d,startCropY:h,clientX:t.clientX,clientY:t.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),Ce(this,"onComponentPointerDown",t=>{const{crop:n,disabled:r,locked:s,keepSelection:i,onChange:o}=this.props,a=this.getBox();if(r||s||i&&n)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const l=t.clientX-a.x,c=t.clientY-a.y,d={unit:"px",x:l,y:c,width:0,height:0};this.evData={startClientX:t.clientX,startClientY:t.clientY,startCropX:l,startCropY:c,clientX:t.clientX,clientY:t.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(On(d,a.width,a.height),Lr(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),Ce(this,"onDocPointerMove",t=>{const{crop:n,disabled:r,onChange:s,onDragStart:i}=this.props,o=this.getBox();if(r||!n||!this.mouseDownOnCrop)return;t.cancelable&&t.preventDefault(),this.dragStarted||(this.dragStarted=!0,i&&i(t));const{evData:a}=this;a.clientX=t.clientX,a.clientY=t.clientY;let l;a.isResize?l=this.resizeCrop():l=this.dragCrop(),ew(n,l)||s(On(l,o.width,o.height),Lr(l,o.width,o.height))}),Ce(this,"onComponentKeyDown",t=>{const{crop:n,disabled:r,onChange:s,onComplete:i}=this.props;if(r)return;const o=t.key;let a=!1;if(!n)return;const l=this.getBox(),c=this.makePixelCrop(l),d=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?hn.nudgeStepLarge:t.shiftKey?hn.nudgeStepMedium:hn.nudgeStep;if(o==="ArrowLeft"?(c.x-=d,a=!0):o==="ArrowRight"?(c.x+=d,a=!0):o==="ArrowUp"?(c.y-=d,a=!0):o==="ArrowDown"&&(c.y+=d,a=!0),a){t.cancelable&&t.preventDefault(),c.x=bi(c.x,0,l.width-c.width),c.y=bi(c.y,0,l.height-c.height);const h=On(c,l.width,l.height),f=Lr(c,l.width,l.height);s(h,f),i&&i(h,f)}}),Ce(this,"onHandlerKeyDown",(t,n)=>{const{aspect:r=0,crop:s,disabled:i,minWidth:o=0,minHeight:a=0,maxWidth:l,maxHeight:c,onChange:d,onComplete:h}=this.props,f=this.getBox();if(i||!s)return;if(t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="ArrowLeft"||t.key==="ArrowRight")t.stopPropagation(),t.preventDefault();else return;const p=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?hn.nudgeStepLarge:t.shiftKey?hn.nudgeStepMedium:hn.nudgeStep,g=On(s,f.width,f.height),m=UU(g,t.key,p,n),x=tw(m,r,n,f.width,f.height,o,a,l,c);if(!ew(s,x)){const w=Lr(x,f.width,f.height);d(x,w),h&&h(x,w)}}),Ce(this,"onDocPointerDone",t=>{const{crop:n,disabled:r,onComplete:s,onDragEnd:i}=this.props,o=this.getBox();this.unbindDocMove(),!(r||!n)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,i&&i(t),s&&s(On(n,o.width,o.height),Lr(n,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),Ce(this,"onDragFocus",()=>{var t;(t=this.componentRef.current)==null||t.scrollTo(0,0)})}get document(){return document}getBox(){const t=this.mediaRef.current;if(!t)return{x:0,y:0,width:0,height:0};const{x:n,y:r,width:s,height:i}=t.getBoundingClientRect();return{x:n,y:r,width:s,height:i}}componentDidUpdate(t){const{crop:n,onComplete:r}=this.props;if(r&&!t.crop&&n){const{width:s,height:i}=this.getBox();s&&i&&r(On(n,s,i),Lr(n,s,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,_i),this.document.addEventListener("pointerup",this.onDocPointerDone,_i),this.document.addEventListener("pointercancel",this.onDocPointerDone,_i),this.docMoveBound=!0)}
269unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,_i),this.document.removeEventListener("pointerup",this.onDocPointerDone,_i),this.document.removeEventListener("pointercancel",this.onDocPointerDone,_i),this.docMoveBound=!1)}getCropStyle(){const{crop:t}=this.props;if(t)return{top:`${t.y}${t.unit}`,left:`${t.x}${t.unit}`,width:`${t.width}${t.unit}`,height:`${t.height}${t.unit}`}}dragCrop(){const{evData:t}=this,n=this.getBox(),r=this.makePixelCrop(n),s=t.clientX-t.startClientX,i=t.clientY-t.startClientY;return r.x=bi(t.startCropX+s,0,n.width-r.width),r.y=bi(t.startCropY+i,0,n.height-r.height),r}getPointRegion(t,n,r,s){const{evData:i}=this,o=i.clientX-t.x,a=i.clientY-t.y;let l;s&&n?l=n==="nw"||n==="n"||n==="ne":l=a<i.startCropY;let c;return r&&n?c=n==="nw"||n==="w"||n==="sw":c=o<i.startCropX,c?l?"nw":"sw":l?"ne":"se"}resolveMinDimensions(t,n,r=0,s=0){const i=Math.min(r,t.width),o=Math.min(s,t.height);return!n||!i&&!o?[i,o]:n>1?i?[i,i/n]:[o*n,o]:o?[o*n,o]:[i,i/n]}resizeCrop(){const{evData:t}=this,{aspect:n=0,maxWidth:r,maxHeight:s}=this.props,i=this.getBox(),[o,a]=this.resolveMinDimensions(i,n,this.props.minWidth,this.props.minHeight);let l=this.makePixelCrop(i);const c=this.getPointRegion(i,t.ord,o,a),d=t.ord||c;let h=t.clientX-t.startClientX,f=t.clientY-t.startClientY;(o&&d==="nw"||d==="w"||d==="sw")&&(h=Math.min(h,-o)),(a&&d==="nw"||d==="n"||d==="ne")&&(f=Math.min(f,-a));const p={unit:"px",x:0,y:0,width:0,height:0};c==="ne"?(p.x=t.startCropX,p.width=h,n?(p.height=p.width/n,p.y=t.startCropY-p.height):(p.height=Math.abs(f),p.y=t.startCropY-p.height)):c==="se"?(p.x=t.startCropX,p.y=t.startCropY,p.width=h,n?p.height=p.width/n:p.height=f):c==="sw"?(p.x=t.startCropX+h,p.y=t.startCropY,p.width=Math.abs(h),n?p.height=p.width/n:p.height=f):c==="nw"&&(p.x=t.startCropX+h,p.width=Math.abs(h),n?(p.height=p.width/n,p.y=t.startCropY-p.height):(p.height=Math.abs(f),p.y=t.startCropY+f));const g=tw(p,n,c,i.width,i.height,o,a,r,s);return n||hn.xyOrds.indexOf(d)>-1?l=g:hn.xOrds.indexOf(d)>-1?(l.x=g.x,l.width=g.width):hn.yOrds.indexOf(d)>-1&&(l.y=g.y,l.height=g.height),l.x=bi(l.x,0,i.width-l.width),l.y=bi(l.y,0,i.height-l.height),l}renderCropSelection(){const{ariaLabels:t=hn.defaultProps.ariaLabels,disabled:n,locked:r,renderSelectionAddon:s,ruleOfThirds:i,crop:o}=this.props,a=this.getCropStyle();if(o)return I.createElement("div",{style:a,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!r&&I.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},I.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),I.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),I.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),I.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"nw"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"n"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"ne"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"e"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"se"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"s"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"sw"),role:"button"}),I.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:l=>this.onHandlerKeyDown(l,"w"),role:"button"})),s&&I.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:l=>l.stopPropagation()},s(this.state)),i&&I.createElement(I.Fragment,null,I.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),I.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(t){const n={...Su,...this.props.crop||{}};return On(n,t.width,t.height)}render(){const{aspect:t,children:n,circularCrop:r,className:s,crop:i,disabled:o,locked:a,style:l,ruleOfThirds:c}=this.props,{cropIsActive:d,newCropIsBeingDrawn:h}=this.state,f=i?this.renderCropSelection():null,p=DU("ReactCrop",s,d&&"ReactCrop--active",o&&"ReactCrop--disabled",a&&"ReactCrop--locked",h&&"ReactCrop--new-crop",i&&t&&"ReactCrop--fixed-aspect",i&&r&&"ReactCrop--circular-crop",i&&c&&"ReactCrop--rule-of-thirds",!this.dragStarted&&i&&!i.width&&!i.height&&"ReactCrop--invisible-crop",r&&"ReactCrop--no-animate");return I.createElement("div",{ref:this.componentRef,className:p,style:l},I.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},n),i?I.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},I.createElement("defs",null,I.createElement("mask",{id:`hole-${this.instanceId}`},I.createElement("rect",{width:"100%",height:"100%",fill:"white"}),r?I.createElement("ellipse",{cx:`${i.x+i.width/2}${i.unit}`,cy:`${i.y+i.height/2}${i.unit}`,rx:`${i.width/2}${i.unit}`,ry:`${i.height/2}${i.unit}`,fill:"black"}):I.createElement("rect",{x:`${i.x}${i.unit}`,y:`${i.y}${i.unit}`,width:`${i.width}${i.unit}`,height:`${i.height}${i.unit}`,fill:"black"}))),I.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,f)}};Ce(Mr,"xOrds",["e","w"]),Ce(Mr,"yOrds",["n","s"]),Ce(Mr,"xyOrds",["nw","ne","se","sw"]),Ce(Mr,"nudgeStep",1),Ce(Mr,"nudgeStepMedium",10),Ce(Mr,"nudgeStepLarge",100),Ce(Mr,"defaultProps",{ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}});let BU=Mr;const Ch=[{label:"Free",value:"free",ratio:void 0},{label:"16:9",value:"16:9",ratio:16/9},{label:"4:3",value:"4:3",ratio:4/3},{label:"1:1",value:"1:1",ratio:1},{label:"3:2",value:"3:2",ratio:3/2},{label:"2:1",value:"2:1",ratio:2/1}];function nw(e,t,n){return n?$U(LU({unit:"%",width:90},n,e,t),e,t):{unit:"%",x:5,y:5,width:90,height:90}}const VU=()=>{var j;const[e,t]=y.useState(null),[n,r]=y.useState(!1),[s,i]=y.useState(!1),[o,a]=y.useState(""),[l,c]=y.useState(),[d,h]=y.useState(),[f,p]=y.useState("free"),g=y.useRef(null),m=y.useRef(null),{toast:x}=qn(),w=(j=Ch.find(T=>T.value===f))==null?void 0:j.ratio;y.useEffect(()=>
269{v()},[]);const v=async()=>{const{data:T,error:A}=await Xe.from("agenda_settings").select("logo_url").limit(1).single();A&&A.code!=="PGRST116"?x({title:"Error fetching logo",description:A.message,variant:"destructive"}):T&&t(T.logo_url)},S=T=>{if(T.target.files&&T.target.files.length>0){const A=new FileReader;A.addEventListener("load",()=>{var R;a(((R=A.result)==null?void 0:R.toString())||""),i(!0)}),A.readAsDataURL(T.target.files[0])}},b=y.useCallback(T=>{const{width:A,height:R}=T.currentTarget;c(nw(A,R,w))},[w]),k=T=>{var A;if(p(T),g.current){const{width:R,height:$}=g.current,O=(A=Ch.find(G=>G.value===T))==null?void 0:A.ratio;c(nw(R,$,O))}},E=async()=>{if(!g.current||!d)return null;const T=g.current,A=document.createElement("canvas"),R=T.naturalWidth/T.width,$=T.naturalHeight/T.height;A.width=d.width*R,A.height=d.height*$;const O=A.getContext("2d");return O?(O.drawImage(T,d.x*R,d.y*$,d.width*R,d.height*$,0,0,A.width,A.height),new Promise(G=>{A.toBlob(F=>G(F),"image/png",1)})):null},_=async()=>{r(!0);try{const T=await E();if(!T)throw new Error("Failed to crop image");const A=`logo-${Date.now()}.png`,R=new File([T],A,{type:"image/png"}),{publicUrl:$}=await hs.upload("agenda-photos",A,R,!0);await Nt("logo_url",$),t($),i(!1),a(""),x({title:"Logo uploaded successfully"})}catch(T){x({title:"Upload failed",description:T.message,variant:"destructive"})}finally{r(!1)}},C=async()=>{try{await Nt("logo_url",null),t(null),x({title:"Logo removed"})}catch(T){x({title:"Error removing logo",description:T.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsx("div",{className:"container max-w-4xl mx-auto",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(al,{className:"h-5 w-5"}),"Site Logo"]})}),u.jsxs(nn,{className:"space-y-4",children:[u.jsx("input",{type:"file",ref:m,onCh
269ange:S,accept:"image/*",className:"hidden"}),e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"aspect-video w-full max-w-md rounded-lg overflow-hidden border border-border bg-muted/20",children:u.jsx("img",{src:e,alt:"Site logo",className:"w-full h-full object-contain"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",onClick:()=>{var T;return(T=m.current)==null?void 0:T.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Replace Logo"]}),u.jsxs(H,{variant:"destructive",onClick:C,children:[u.jsx(xr,{className:"h-4 w-4 mr-2"}),"Remove"]})]})]}):u.jsxs(H,{onClick:()=>{var T;return(T=m.current)==null?void 0:T.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Upload Logo"]}),u.jsx(q$,{open:s,onOpenChange:i,children:u.jsxs(ik,{className:"max-w-3xl",children:[u.jsx(ok,{children:u.jsxs(ak,{className:"flex items-center gap-2",children:[u.jsx(P4,{className:"h-5 w-5"}),"Crop Logo"]})}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"text-sm text-muted-foreground",children:"Aspect Ratio:"}),u.jsxs(AU,{value:f,onValueChange:k,children:[u.jsx(zk,{className:"w-32",children:u.jsx(PU,{})}),u.jsx(Kk,{children:Ch.map(T=>u.jsx(Jk,{value:T.value,children:T.label},T.value))})]})]}),o&&u.jsx(BU,{crop:l,onChange:(T,A)=>c(A),onComplete:T=>h(T),aspect:w,className:"max-h-[60vh]",children:u.jsx("img",{ref:g,alt:"Crop preview",src:o,onLoad:b,className:"max-h-[60vh] w-auto"})}),u.jsxs("div",{className:"flex justify-end gap-2",children:[u.jsx(H,{variant:"outline",onClick:()=>i(!1),children:"Cancel"}),u.jsx(H,{onClick:_,disabled:n,children:n?"Uploading...":"Crop & Upload"})]})]})]})})]})]})})})},zU=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(null),[s,i]=y.useState(""),[o,a]=y.useState(""),[l,c]=y.useState(!1),{toast:d}=qn();y.useEffect(()=>{h()},[]);const h=async()=>{const{data:x,error:w}=await Xe.from("sponsors").select("*").order("sort_order",{ascending:!0});w?d({title:"Error fetching sponsors",description:w.message,variant:"destructive"}):t(x||[])},f=x=>{r(x.id),i(x.name)},p=async()=>{if(n)try{await _t.update("sponsors",{name:s},[{column:"id",value:n}]),d({title:"Sponsor updated"}),r(null),h()}catch(x){d({title:"Error updating sponsor",description:x.message,variant:"destructive"})}},g=async x=>{try{await _t.delete("sponsors",[{column:"id",value:x}]),d({title:"Sponsor deleted"}),h()}catch(w){d({title:"Error deleting sponsor",description:w.message,variant:"destructive"})}},m=async()=>{const x=e.reduce((w,v)=>Math.max(w,v.sort_order),0);try{await _t.insert("sponsors",{name:o,sort_order:x+1}),d({title:"Sponsor added"}),a(""),c(!1),h()}catch(w){d({title:"Error adding sponsor",description:w.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsxs("div",{className:"container max-w-4xl mx-auto",children:[u.jsxs("div",{className:"flex justify-between items-center mb-6",children:[u.jsx("h2",{className:"text-xl font-bold text-foreground",children:"Sponsors"}),u.jsxs(H,{onClick:()=>c(!0),size:"sm",children:[u.jsx(Xc,{className:"h-4 w-4 mr-2"})," Add Sponsor"]})]}),l&&u.jsxs("div",{className:"bg-card rounded-lg p-4 border border-border mb-4 flex gap-3",children:[u.jsx(De,{placeholder:"Sponsor name",value:o,onChange:x=>a(x.target.value),className:"flex-1"}),u.jsx(H,{onClick:m,size:"sm",children:u.jsx(as,{className:"h-4 w-4"})}),u.jsx(H,{onClick:()=>c(!1),variant:"outline",size:"sm",children:u.jsx(fr,{className:"h-4 w-4"})})]}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:e.map(x=>u.jsx("div",{className:"bg-card rounded-lg p-4 border border-border",children:n===x.id?u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx(De,{value:s,onChange:w=>i(w.target.value)}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(H,{onClick:p,size:"sm",className:"flex-1",children:u.jsx(as,{className:"h-4 w-4"})}),u.jsx(H,{onClick:()=>r(null),variant:"outline",size:"sm",className:"flex-1",children:u.jsx(fr,{className:"h-4 w-4"})})]})]}):u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("span",{className:"font-medium text-foreground text-sm",children:x.name}),u.jsxs("div",{className:"flex gap-1",children:[u.jsx(H,{onClick:()=>f(x),variant:"ghost",size:"sm",children:u.jsx(bm,{className:"h-3 w-3"})}),u.jsx(H,{onClick:()=>g(x.id),variant:"ghost",size:"sm",children:u.jsx(xr,{className:"h-3 w-3 text-destructive"})})]})]})},x.id))})]})})},WU=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),[s,i]=y.useState(null),[o,a]=y.useState(null),l=y.useRef(null);y.useEffect(()=>{c()},[]);const c=async()=>{const{data:g}=await Xe.from("agenda_settings").select("final_cta_photo_url").limit(1).single();g!=null&&g.final_cta_photo_url&&t(g.final_cta_photo_url)},d=g=>{var x;const m=(x=g.target.files)==null?void 0:x[0];if(m){if(!m.type.startsWith("image/")){Le.error("Please select an image file");return}i(m),a(URL.createObjectURL(m))}},h=()=>{o&&URL.revokeObjectURL(o),i(null),a(null),l.current&&(l.current.value="")},f=async()=>
269{if(s){r(!0);try{const g=s.name.split(".").pop(),m=`final-cta-photo-${Date.now()}.${g}`,{publicUrl:x}=await hs.upload("final-cta-photos",m,s,!0);await Nt("final_cta_photo_url",x),t(x),h(),Le.success("Photo uploaded successfully")}catch(g){console.error("Upload error:",g),Le.error(g.message||"Failed to upload photo")}finally{r(!1)}}},p=async()=>{if(e)try{const g=e.split("/").pop();g&&await hs.remove("final-cta-photos",[g]),await Nt("final_cta_photo_url",null),t(null),Le.success("Photo deleted successfully")}catch(g){console.error("Delete error:",g),Le.error(g.message||"Failed to delete photo")}};return u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold",children:"Final CTA Section Photo (1920Ã1080)"}),o?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden border border-border",children:u.jsx("img",{src:o,alt:"Preview",className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{onClick:f,disabled:n,className:"flex-1",children:[u.jsx(as,{className:"w-4 h-4 mr-2"}),n?"Uploading...":"Confirm Upload"]}),u.jsxs(H,{variant:"outline",onClick:h,disabled:n,children:[u.jsx(fr,{className:"w-4 h-4 mr-2"}),"Cancel"]})]})]}):e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden border border-border",children:u.jsx("img",{src:e,alt:"Final CTA section photo",className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",onClick:()=>{var g;return(g=l.current)==null?void 0:g.click()},className:"flex-1",children:[u.jsx(Vt,{className:"w-4 h-4 mr-2"}),"Replace Photo"]}),u.jsxs(H,{variant:"destructive",onClick:p,children:[u.jsx(xr,{className:"w-4 h-4 mr-2"}),"Delete"]})]})]}):u.jsxs("div",{className:"w-full aspect-video border-2 border-dashed border-border rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-primary/50 transition-colors",onClick:()=>{var g;return(g=l.current)==null?void 0:g.click()},children:[u.jsx(Vt,{className:"w-8 h-8 text-muted-foreground mb-2"}),u.jsx("span",{className:"text-muted-foreground text-sm",children:"Click to upload photo (1920Ã1080)"})]}),u.jsx(De,{ref:l,type:"file",accept:"image/*",className:"hidden",onChange:d})]})},HU=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),s=y.useRef(null),{toast:i}=qn();y.useEffect(()=>{o()},[]);const o=async()=>{const{data:c,error:d}=await Xe.from("agenda_settings").select("footer_logo_url").limit(1).single();d&&d.code!=="PGRST116"?i({title:"Error fetching footer logo",description:d.message,variant:"destructive"}):c&&t(c.footer_logo_url)},a=async c=>{if(!(!c.target.files||c.target.files.length===0)){r(!0);try{const d=c.target.files[0],h=`footer-logo-${Date.now()}.${d.name.split(".").pop()}`,{publicUrl:f}=await hs.upload("agenda-photos",h,d,!0);await Nt("footer_logo_url",f),t(f),i({title:"Footer logo uploaded successfully"})}catch(d){i({title:"Upload failed",description:d.message,variant:"destructive"})}finally{r(!1)}}},l=async()=>{try{await Nt("footer_logo_url",null),t(null),i({title:"Footer logo removed"})}catch(c){i({title:"Error removing logo",description:c.message,variant:"destructive"})}};return u.jsx("section",{className:"py-8 px-4",children:u.jsx("div",{className:"container max-w-4xl mx-auto",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(al,{className:"h-5 w-5"}),"Footer Logo"]})}),u.jsxs(nn,{className:"space-y-4",children:[u.jsx("input",{type:"file",ref:s,onChange:a,accept:"image/*",className:"hidden"}),e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"w-16 h-16 rounded-lg overflow-hidden border border-border bg-muted/20",children:u.jsx("img",{src:e,alt:"Footer logo",className:"w-full h-full object-contain"})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),"Replace Logo"]}),u.jsxs(H,{variant:"destructive",onClick:l,children:[u.jsx(xr,{className:"h-4 w-4 mr-2"}),"Remove"]})]})]}):u.jsxs(H,{onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:[u.jsx(Vt,{className:"h-4 w-4 mr-2"}),n?"Uploading...":"Upload Footer Logo"]})]})]})})})},KU=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),s=y.useRef(null),{toast:i}=qn();y.useEffect(()=>{o()},[]);const o=async()=>{const{data:c,error:d}=await Xe.from("agenda_settings").select("event_details_photo_url").limit(1).single();!d&&c&&t(c.event_details_photo_url)},a=async c=>{var h;const d=(h=c.target.files)==null?void 0:h[0];if(d){r(!0);try{const f=d.name.split(".").pop(),p=`event-details-photo-${Date.now()}.${f}`,{publicUrl:g}=await hs.upload("agenda-photos",p,d,!0);await Nt("event_details_photo_url",g),t(g),i({title:"Photo uploaded successfully"})}catch(f){i({title:"Upload failed",description:f.message,variant:"destructive"})}finally{r(!1)}}},l=async()=>{try{await Nt("event_details_photo_url",null),t(null),i({title:"Photo removed"})}catch(c){i({title:"Remove failed",description:c.message,variant:"destructive"})}};return u.jsxs(Zt,{className:"max-w-4xl mx-auto my-8",children:[u.jsx(en,{children:u.jsx(tn,{children:"Event Details Photo (1920Ã1080)"})}
269),u.jsxs(nn,{children:[u.jsx(De,{ref:s,type:"file",accept:"image/*",onChange:a,className:"hidden"}),e?u.jsxs("div",{className:"space-y-4",children:[u.jsx("img",{src:e,alt:"Event Details",className:"w-full rounded-lg aspect-video object-cover"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(H,{onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:n?"Uploading...":"Replace Photo"}),u.jsx(H,{variant:"destructive",onClick:l,children:"Remove"})]})]}):u.jsx(H,{onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},disabled:n,children:n?"Uploading...":"Upload Photo"})]})]})},JU=()=>{const[e,t]=y.useState(""),[n,r]=y.useState(""),[s,i]=y.useState(""),[o,a]=y.useState(!1),[l,c]=y.useState(!1);y.useEffect(()=>{d()},[]);const d=async()=>{a(!0);const{data:f}=await Xe.from("ticket_settings").select("*").limit(1).single();f&&(t(f.ticket_name),r((f.price_amount/100).toString()),i(f.stripe_price_id)),a(!1)},h=async()=>{const f=Math.round(parseFloat(n)*100);if(isNaN(f)||f<=0){Le.error("Please enter a valid price");return}c(!0);try{const{data:p,error:g}=await Xe.functions.invoke("create-stripe-price",{body:{amount:f,ticket_name:e}});if(g)throw g;if(p!=null&&p.error)throw new Error(p.error);await _t.update("ticket_settings",{ticket_name:e,stripe_price_id:p.price_id,price_amount:f},[{column:"stripe_price_id",value:s}]),i(p.price_id),Le.success(`Ticket updated to $${(f/100).toFixed(2)}`)}catch(p){Le.error(p.message||"Failed to update price")}c(!1)};return o?null:u.jsx("div",{className:"container max-w-4xl mx-auto py-4 px-4",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(M4,{className:"h-5 w-5"}),"Ticket Price Management"]})}),u.jsxs(nn,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground mb-1 block",children:"Ticket Name"}),u.jsx(De,{value:e,onChange:f=>t(f.target.value),placeholder:"e.g. Early Bird General Admission"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground mb-1 block",children:"Price (USD)"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-lg font-bold",children:"$"}),u.jsx(De,{type:"number",min:"1",step:"0.01",value:n,onChange:f=>r(f.target.value),placeholder:"175.00",className:"max-w-[200px]"})]})]}),u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Current Stripe Price ID: ",u.jsx("code",{className:"text-xs",children:s})]}),u.jsx(H,{onClick:h,disabled:l,children:l?"Updating...":"Update Ticket Price"})]})]})})},GU=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(!0),s=async()=>{r(!0);try{const o=await _t.select("ticket_purchases",{order:{column:"created_at",ascending:!1}});t(o||[])}catch(o){Le.error(o.message||"Failed to load purchases")}r(!1)};y.useEffect(()=>{s()},[]);const i=()=>{if(e.length===0){Le.error("No purchases to export");return}const o=["Email","Name","Amount Paid","Synced to Kit","Date"],a=e.map(f=>[f.email,f.name||"",`$${((f.amount_paid||0)/100).toFixed(2)}`,f.synced_to_kit?"Yes":"No",new Date(f.created_at).toLocaleDateString()]),l=[o,...a].map(f=>f.join(",")).join(` 270`),c=new Blob([l],{type:"text/csv"}),d=URL.createObjectURL(c),h=document.createElement("a");h.href=d,h.download=`ticket-purchases-${new Date().toISOString().slice(0,10)}.csv`,h.click(),URL.revokeObjectURL(d),Le.success("CSV exported")};return u.jsx("div",{className:"container max-w-4xl mx-auto py-6 px-4",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(O4,{className:"h-5 w-5"}),"Ticket Purchases (",e.length,")"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",size:"sm",onClick:s,disabled:n,children:[u.jsx(cS,{className:`h-4 w-4 mr-1 ${n?"animate-spin":""}`}),"Refresh"]}),u.jsxs(H,{variant:"outline",size:"sm",onClick:i,children:[u.jsx(aS,{className:"h-4 w-4 mr-1"}),"Export CSV"]})]})]})}),u.jsx(nn,{children:e.length===0?u.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No purchases yet"}):u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b",children:[u.jsx("th",{className:"text-left py-2 px-2",children:"Email"}),u.jsx("th",{className:"text-left py-2 px-2",children:"Name"}),u.jsx("th",{className:"text-left py-2 px-2",children:"Amount"}),u.jsx("th",{className:"text-left py-2 px-2",children:"Kit"}),u.jsx("th",{className:"text-left py-2 px-2",children:"Date"})]})}),u.jsx("tbody",{children:e.map(o=>u.jsxs("tr",{className:"border-b",children:[u.jsx("td",{className:"py-2 px-2",children:o.email}),u.jsx("td",{className:"py-2 px-2",children:o.name||"â"}),u.jsxs("td",{className:"py-2 px-2",children:["$",((o.amount_paid||0)/100).toFixed(2)]}),u.jsx("td",{className:"py-2 px-2",children:u.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${o.synced_to_kit?"bg-green-500":"bg-yellow-500"}`})}),u.jsx("td",{className:"py-2 px-2",children:new Date(o.created_at).toLocaleDateString()})]},o.id))})]})})})]})})};function YU(e){const t=[];let n=[],r="",s=!1;for(let i=0;i<e.length;i++){const o=e[i];s?o==='"'&&e[i+1]==='"'?(r+='"',i++):o==='"'?s=!1:r+=o:o==='"'?s=!0:o===","?(n.push(r),r=""):o===` 271`||o==="\r"?(o==="\r"&&e[i+1]===` 272`&&i++,n.push(r),t.push(n),n=[],r=""):r+=o}return(r||n.length)&&(n.push(r),t.push(n)),t.filter(i=>i.some(o=>o.trim()))}function qU(e){const[t,...n]=YU(e),r=c=>{const d=t.findIndex(h=>h.trim().toLowerCase()===c.toLowerCase());if(d<0)throw new Error(`Missing column "${c}". Is this a Stan transactions export?`);return d},s=r("Full Name"),i=r("Email"),o=r("Date & Time"),a=r("Paid"),l=r("Refunded");return n.filter(c=>{var d,h;return((d=c[a])==null?void 0:d.trim())==="Yes"&&((h=c[l])==null?void 0:h.trim())!=="Yes"}).map(c=>({name:c[s].replace(/\s+/g," ").trim(),email:c[i].trim().toLowerCase(),purchased_at:c[o].trim()})).filter(c=>c.email.includes("@"))}const rw="ABCDEFGHJKMNPQRSTUVWXYZ23456789";function sw(){const e=new Uint32Array(8);crypto.getRandomValues(e);const t=Array.from(e,n=>rw[n%rw.length]).join("");return`${t.slice(0,4)}-${t.slice(4)}`}const QU=e=>{const t=String(e??"");return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t},XU=e=>{if(!e)return"Unknown";const t=/iPhone/.test(e)?"iPhone":/iPad/.test(e)?"iPad":/Android/.test(e)?"Android":/Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":"Other",n=/Edg\//.test(e)?"Edge":/CriOS|Chrome\//.test(e)?"Chrome":/FxiOS|Firefox\//.test(e)?"Firefox":/Safari\//.test(e)?"Safari":"Browser";return`${t} ${n}`},ZU=()=>{const[e,t]=y.useState([]),[n,r]=y.useState([]),[s,i]=y.useState(!0),[o,a]=y.useState(!1),[l,c]=y.useState({name:"",email:"",n
272ote:""}),[d,h]=y.useState(null),[f,p]=y.useState(""),g=async()=>{i(!0);try{const[E,_]=await Promise.all([_t.select("live_guests",{order:{column:"created_at",ascending:!0}}),_t.select("live_logins",{order:{column:"created_at",ascending:!1},limit:1e3})]);t(E||[]),r(_||[]),V2.status().then(C=>{h(C),p("")}).catch(C=>p(C.message))}catch(E){Le.error(E.message||"Could not load livestream guests")}i(!1)};y.useEffect(()=>{g()},[]);const m=y.useMemo(()=>{const E=new Map;for(const _ of n)E.has(_.guest_id)||E.set(_.guest_id,new Set),E.get(_.guest_id).add(`${XU(_.user_agent)} ${_.ip??""}`);return E},[n]),x=async E=>{a(!0);try{const _=qU(await E.text()),C=new Set(e.filter(T=>T.purchased_at).map(T=>`${T.email}|${T.purchased_at}`)),j=_.filter(T=>!C.has(`${T.email}|${T.purchased_at}`));j.length&&await _t.insert("live_guests",j.map(T=>({...T,code:sw()}))),Le.success(`${_.length} tickets in file. ${j.length} new, ${_.length-j.length} already had codes.`),await g()}catch(_){Le.error(_.message||"Import failed")}a(!1)},w=async()=>{if(!l.name.trim())return Le.error("Name is required");a(!0);try{await _t.insert("live_guests",{name:l.name.trim(),email:l.email.trim().toLowerCase()||null,note:l.note.trim()||null,code:sw()}),c({name:"",email:"",note:""}),Le.success("Guest added"),await g()}catch(E){Le.error(E.message||"Could not add guest")}a(!1)},v=async(E,_,C)=>{try{await _t.update("live_guests",_,[{column:"id",value:E.id}]),Le.success(C),await g()}catch(j){Le.error(j.message||"Update failed")}},S=()=>{const E=[["Name","Email","Code","Note"],...e.filter(j=>!j.disabled).map(j=>[j.name,j.email,j.code,j.note])],_=new Blob([E.map(j=>j.map(QU).join(",")).join(` 273`)],{type:"text/csv"}),C=document.createElement("a");C.href=URL.createObjectURL(_),C.download=`livestream-codes-${new Date().toISOString().slice(0,10)}.csv`,C.click(),URL.revokeObjectURL(C.href)},b=E=>!!E.active_session&&!!E.last_seen_at&&Date.now()-new Date(E.last_seen_at).getTime()<9e4,k=e.filter(b).length;return u.jsx("div",{className:"container max-w-4xl mx-auto py-6 px-4",children:u.jsxs(Zt,{children:[u.jsx(en,{children:u.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-2",children:[u.jsxs(tn,{className:"flex items-center gap-2",children:[u.jsx(R4,{className:"h-5 w-5"}),"Livestream Guests (",e.length,") · ",k," watching now"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(H,{variant:"outline",size:"sm",onClick:g,disabled:s,children:[u.jsx(cS,{className:"h-4 w-4 mr-1"})," Refresh"]}),u.jsxs(H,{size:"sm",onClick:S,disabled:!e.length,children:[u.jsx(aS,{className:"h-4 w-4 mr-1"})," Download codes"]})]})]})}),u.jsxs(nn,{className:"space-y-6",children:[u.jsx("div",{className:"rounded-md border p-3 text-sm flex flex-wrap items-center gap-3",children:f?u.jsxs("span",{className:"text-destructive",children:["Stream not reachable: ",f]}):d?u.jsxs(u.Fragment,{children:[u.jsxs("span",{children:["Zoom: ",d.zoomConnected?u.jsx("b",{className:"text-green-600",children:"connected"}):"not connected"]}),u.jsxs("span",{children:["Lock: ",d.locked?u.jsx("b",{className:"text-green-600",children:"ON"}):u.jsx("b",{className:"text-destructive",children:"OFF, anyone with the video ID can watch"})]}),!d.locked&&u.jsx(H,{size:"sm",onClick:()=>V2.lock().then(E=>{h(E),Le.success("Stream locked")}).catch(E=>Le.error(E.message)),children:"Turn lock on"})]}):u.jsx("span",{className:"text-muted-foreground",children:"Checking stream..."})}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-sm font-medium",children:"1. Upload the Stan transactions export"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Every paid, not refunded ticket gets a code. Upload the newest export any time. Tickets that already have a code are skipped."}),u.jsxs("label",{className:"inline-flex items-center gap-2 text-sm cursor-pointer border rounded-md px-3 py-2",children:[u.jsx(Vt,{className:"h-4 w-4"})," ",o?"Working...":"Choose Stan CSV",u.jsx("input",{type:"file",accept:".csv,text/csv",className:"hidden",disabled:o,onChange:E=>{var C;const _=(C=E.target.files)==null?void 0:C[0];_&&x(_),E.target.value=""}})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-sm font-medium",children:"2. Add a guest by hand (speakers, comps, online guests)"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(De,{className:"w-44",placeholder:"Name",value:l.name,onChange:E=>c({...l,name:E.target.value})}),u.jsx(De,{className:"w-56",placeholder:"Email (optional)",value:l.email,onChange:E=>c({...l,email:E.target.value})}),u.jsx(De,{className:"w-40",placeholder:"Note (optional)",value:l.note,onChange:E=>c({...l,note:E.target.value})}),u.jsxs(H,{size:"sm",onClick:w,disabled:o,children:[u.jsx(I4,{className:"h-4 w-4 mr-1"})," Add"]})]})]}),s?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No guests yet."}):u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-left text-muted-foreground border-b",children:[u.jsx("th",{className:"py-2 pr-3",children:"Name"}),u.jsx("th",{className:"pr-3",children:"Code"}),u.jsx("th",{className:"pr-3",children:"Devices"}),u.jsx("th",{className:"pr-3",children:"Last seen"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:e.map(E=>
273{var C;const _=((C=m.get(E.id))==null?void 0:C.size)??0;return u.jsxs("tr",{className:`border-b ${E.disabled?"opacity-50":""}`,children:[u.jsxs("td",{className:"py-2 pr-3",children:[u.jsx("div",{children:E.name}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:[E.email,E.note?` · ${E.note}`:""]})]}),u.jsx("td",{className:"pr-3 font-mono",children:E.code}),u.jsxs("td",{className:"pr-3",children:[_,_>=3?u.jsx("span",{className:"ml-1 text-xs text-destructive",children:"check for sharing"}):null]}),u.jsx("td",{className:"pr-3 text-xs",children:b(E)?u.jsx("span",{className:"text-green-600",children:"Watching now"}):E.last_seen_at?new Date(E.last_seen_at).toLocaleString():"Never"}),u.jsxs("td",{className:"text-right whitespace-nowrap",children:[E.active_session&&u.jsx(H,{variant:"ghost",size:"sm",onClick:()=>v(E,{active_session:null},`${E.name} signed out`),children:"Sign out"}),u.jsx(H,{variant:"ghost",size:"sm",onClick:()=>v(E,{disabled:!E.disabled,active_session:null},E.disabled?"Code turned on":"Code turned off"),children:E.disabled?"Turn on":"Turn off"})]})]},E.id)})})]})})]})]})})},eF=()=>{const[e,t]=y.useState(""),[n,r]=y.useState(!1),[s,i]=y.useState(""),[o,a]=y.useState(""),l=async c=>{c.preventDefault(),D9(e);try{await L9(),r(!0),i(e),a("")}catch(d){B2(),a(d instanceof Error&&/not set up/i.test(d.message)?"Admin password is not set up yet":"Incorrect password")}};return n?u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx("div",{className:"container max-w-4xl mx-auto py-8 px-4",children:u.jsxs("div",{className:"flex justify-between items-center mb-8",children:[u.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Admin Panel"}),u.jsx(H,{variant:"outline",onClick:()=>{r(!1),t(""),i(""),B2()},children:"Logout"})]})}),u.jsx(ZU,{}),u.jsx(JU,{}),u.jsx(GU,{}),u.jsx(VU,{}),u.jsx(H9,{}),u.jsx(B9,{adminPassword:s}),u.jsx(V9,{}),u.jsx(z9,{}),u.jsx(W9,{}),u.jsx(KU,{}),u.jsx(zU,{}),u.jsx(WU,{}),u.jsx(HU,{})]}):u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:u.jsxs(Zt,{className:"w-full max-w-md",children:[u.jsxs(en,{className:"text-center",children:[u.jsx("div",{className:"mx-auto w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:u.jsx(lS,{className:"h-6 w-6 text-primary"})}),u.jsx(tn,{children:"Admin Access"})]}),u.jsx(nn,{children:u.jsxs("form",{onSubmit:l,className:"space-y-4",children:[u.jsx(De,{type:"password",placeholder:"Enter password",value:e,onChange:c=>t(c.target.value),className:"bg-background"}),o&&u.jsx("p",{className:"text-sm text-destructive",children:o}),u.jsx(H,{type:"submit",className:"w-full",children:"Enter"})]})})]})})},tF="shades-affiliate-2026",iw="shades-affiliate-unlocked",nF=()=>{const[e,t]=y.useState(""),[n,r]=y.useState(!1),[s,i]=y.useState("");y.useEffect(()=>{sessionStorage.getItem(iw)==="1"&&r(!0)},[]);const o=a=>{a.preventDefault(),e===tF?(sessionStorage.setItem(iw,"1"),r(!0),i("")):i("Incorrect password")};return n?u.jsx("iframe",{src:"/affiliate-supply-pack.html",title:"SHADES Affiliate Supply Pack",className:"w-screen h-screen border-0 block"}):u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:u.jsxs(Zt,{className:"w-full max-w-md",children:[u.jsxs(en,{className:"text-center",children:[u.jsx("div",{className:"mx-auto w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:u.jsx(lS,{className:"h-6 w-6 text-primary"})}),u.jsx(tn,{children:"Affiliate Access"})]}),u.jsx(nn,{children:u.jsxs("form",{onSubmit:o,className:"space-y-4",children:[u.jsx(De,{type:"password",placeholder:"Enter affiliate password",value:e,onChange:a=>t(a.target.value),autoFocus:!0}),s&&u.jsx("p",{className:"text-sm text-destructive",children:s}),u.jsx(H,{type:"submit",className:"w-full",children:"Enter"})]})})]})})},rF=()=>u.jsx("iframe",{src:"/sponsor-pack.html",title:"SHADES Sponsor Pack",className:"w-screen h-screen border-0 block"}),sF=()=>u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:u.jsxs("div",{className:"text-center space-y-6 max-w-md",children:[u.jsx(A4,{className:"w-16 h-16 text-green-500 mx-auto"}),u.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"You're In!"}),u.jsx("p",{className:"text-muted-foreground text-lg",children:"Your registration for Shades of Sync is confirmed. Check your email for details."}),u.jsxs(aP,{to:"/",className:"inline-flex items-center gap-2 bg-primary text-primary-foreground font-bold px-8 py-4 rounded-full text-lg hover:bg-primary/90 transition-colors",children:[u.jsx("span",{children:"Back to Home"}),u.jsx(j4,{className:"w-5 h-5"})]})]})}),iF=()=>{const e=ul();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},oF=new i6,aF=()=>u.jsx(a6,{client:oF,children:u.jsxs(OA,{children:[u.jsx(vj,{}),u.jsx(Yj,{}),u.jsx(sP,{children:u.jsxs(Q6,{children:[u.jsx(Ar,{path:"/",element:u.jsx(YD,{})}),u.jsx(Ar,{path:"/live-ubxl0s",element:u.jsx(O9,{})}),u.jsx(Ar,{path:"/shades-admin-2023",element:u.jsx(eF,{})}),u.jsx(Ar,{path:"/affiliates",element:u.jsx(nF,{})}),u.jsx(Ar,{path:"/sponsors",element:u.jsx(rF,{})}),u.jsx(Ar,{path:"/payment-success",element:u.jsx(sF,{})}),u.jsx(Ar,{path:"*",element:u.jsx(iF,{})})]})})]})});jx(document.getElementById("root")).render(u.jsx(aF,{}));
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.