vendor: 6,850 bytes, lines 1-9
1var Xk=Object.defineProperty;var hv=e=>{throw TypeError(e)};var eS=(e,t,r)=>t in e?Xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wd=(e,t,r)=>eS(e,typeof t!="symbol"?t+"":t,r),bd=(e,t,r)=>t.has(e)||hv("Cannot "+r);var A=(e,t,r)=>(bd(e,t,"read from private field"),r?r.call(e):t.get(e)),Se=(e,t,r)=>t.has(e)?hv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),fe=(e,t,r,n)=>(bd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ct=(e,t,r)=>(bd(e,t,"access private method"),r);var bl=(e,t,r,n)=>({set _(s){fe(e,t,s,r)},get _(){return A(e,t,n)}});function tS(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();var dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rS(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var d0={exports:{}},Su={},f0={exports:{}},ge={};/** 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"),nS=Symbol.for("react.portal"),sS=Symbol.for("react.fragment"),iS=Symbol.for("react.strict_mode"),oS=Symbol.for("react.profiler"),aS=Symbol.for("react.provider"),lS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),uS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),fS=Symbol.for("react.lazy"),mv=Symbol.iterator;function hS(e){return e===null||typeof e!="object"?null:(e=mv&&e[mv]||e["@@iterator"],typeof e=="function"?e:null)}var h0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m0=Object.assign,p0={};function ko(e,t,r){this.props=e,this.context=t,this.refs=p0,this.updater=r||h0}ko.prototype.isReactComponent={};ko.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")};ko.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function v0(){}v0.prototype=ko.prototype;function hm(e,t,r){this.props=e,this.context=t,this.refs=p0,this.updater=r||h0}var mm=hm.prototype=new v0;mm.constructor=hm;m0(mm,ko.prototype);mm.isPureReactComponent=!0;var pv=Array.isArray,g0=Object.prototype.hasOwnProperty,pm={current:null},y0={key:!0,ref:!0,__self:!0,__source:!0};function x0(e,t,r){var n,s={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)g0.call(t,n)&&!y0.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:el,type:e,key:i,ref:o,props:s,_owner:pm.current}}function mS(e,t){return{$$typeof:el,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vm(e){return typeof e=="object"&&e!==null&&e.$$typeof===el}function pS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var vv=/\/+/g;function _d(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pS(""+e.key):t.toString(36)}function Jl(e,t,r,n,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case el:case nS:o=!0}}if(o)return o=e,s=s(o),e=n===""?"."+_d(o,0):n,pv(s)?(r="",e!=null&&(r=e.replace(vv,"$&/")+"/"),Jl(s,t,r,"",function(u){return u})):s!=null&&(vm(s)&&(s=mS(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(vv,"$&/")+"/")+e)),t.push(s)),1;if(o=0,n=n===""?".":n+":",pv(e))for(var a=0;a<e.length;a++){i=e[a];var l=n+_d(i,a);o+=Jl(i,t,r,l,s)}else if(l=hS(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=n+_d(i,a++),o+=Jl(i,t,r,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function _l(e,t,r){if(e==null)return e;var n=[],s=0;return Jl(e,n,"","",function(i){return t.call(r,i,s++)}),n}function vS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var St={current:null},Xl={transition:null},gS={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:Xl,ReactCurrentOwner:pm};function w0(){throw Error("act(...) is not supported in production builds of React.")}ge.Children={map:_l,forEach:function(e,t,r){_l(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return _l(e,function(){t++}),t},toArray:function(e){return _l(e,function(t){return t})||[]},only:function(e){if(!vm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ge.Component=ko;ge.Fragment=sS;ge.Profiler=oS;ge.PureComponent=hm;ge.StrictMode=iS;ge.Suspense=uS;
vendor: 5,750 bytes, lines 9-25
9ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gS;ge.act=w0;ge.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=m0({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=pm.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)g0.call(t,l)&&!y0.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:el,type:e.type,key:s,ref:i,props:n,_owner:o}};ge.createContext=function(e){return e={$$typeof:lS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:aS,_context:e},e.Consumer=e};ge.createElement=x0;ge.createFactory=function(e){var t=x0.bind(null,e);return t.type=e,t};ge.createRef=function(){return{current:null}};ge.forwardRef=function(e){return{$$typeof:cS,render:e}};ge.isValidElement=vm;ge.lazy=function(e){return{$$typeof:fS,_payload:{_status:-1,_result:e},_init:vS}};ge.memo=function(e,t){return{$$typeof:dS,type:e,compare:t===void 0?null:t}};ge.startTransition=function(e){var t=Xl.transition;Xl.transition={};try{e()}finally{Xl.transition=t}};ge.unstable_act=w0;ge.useCallback=function(e,t){return St.current.useCallback(e,t)};ge.useContext=function(e){return St.current.useContext(e)};ge.useDebugValue=function(){};ge.useDeferredValue=function(e){return St.current.useDeferredValue(e)};ge.useEffect=function(e,t){return St.current.useEffect(e,t)};ge.useId=function(){return St.current.useId()};ge.useImperativeHandle=function(e,t,r){return St.current.useImperativeHandle(e,t,r)};ge.useInsertionEffect=function(e,t){return St.current.useInsertionEffect(e,t)};ge.useLayoutEffect=function(e,t){return St.current.useLayoutEffect(e,t)};ge.useMemo=function(e,t){return St.current.useMemo(e,t)};ge.useReducer=function(e,t,r){return St.current.useReducer(e,t,r)};ge.useRef=function(e){return St.current.useRef(e)};ge.useState=function(e){return St.current.useState(e)};ge.useSyncExternalStore=function(e,t,r){return St.current.useSyncExternalStore(e,t,r)};ge.useTransition=function(){return St.current.useTransition()};ge.version="18.3.1";f0.exports=ge;var v=f0.exports;const O=u0(v),b0=tS({__proto__:null,default:O},[v]);/** 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 yS=v,xS=Symbol.for("react.element"),wS=Symbol.for("react.fragment"),bS=Object.prototype.hasOwnProperty,_S=yS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kS={key:!0,ref:!0,__self:!0,__source:!0};function _0(e,t,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)bS.call(t,n)&&!kS.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:xS,type:e,key:i,ref:o,props:s,_owner:_S.current}}Su.Fragment=wS;Su.jsx=_0;Su.jsxs=_0;d0.exports=Su;var c=d0.exports,k0={exports:{}},er={},S0={exports:{}},E0={};/** 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(E,L){var K=E.length;E.push(L);e:for(;0<K;){var H=K-1>>>1,te=E[H];if(0<s(te,L))E[H]=L,E[K]=te,K=H;else break e}}function r(E){return E.length===0?null:E[0]}function n(E){if(E.length===0)return null;var L=E[0],K=E.pop();if(K!==L){E[0]=K;e:for(var H=0,te=E.length,me=te>>>1;H<me;){var Ne=2*(H+1)-1,vt=E[Ne],xe=Ne+1,Ct=E[xe];if(0>s(vt,K))xe<te&&0>s(Ct,vt)?(E[H]=Ct,E[xe]=K,H=xe):(E[H]=vt,E[Ne]=K,H=Ne);else if(xe<te&&0>s(Ct,K))E[H]=Ct,E[xe]=K,H=xe;else break e}}return L}function s(E,L){var K=E.sortIndex-L.sortIndex;return K!==0?K:E.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,p=!1,x=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(E){for(var L=r(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=E)n(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(u)}}function _(E){if(g=!1,w(E),!x)if(r(l)!==null)x=!0,G(k);else{var L=r(u);L!==null&&I(_,L.startTime-E)}}function k(E,L){x=!1,g&&(g=!1,y(P),P=-1),p=!0;var K=h;try{for(w(L),f=r(l);f!==null&&(!(f.expirationTime>L)||E&&!J());){var H=f.callback;if(typeof H=="function"){f.callback=null,h=f.priorityLevel;var te=H(f.expirationTime<=L);L=e.unstable_now(),typeof te=="function"?f.callback=te:f===r(l)&&n(l),w(L)}else n(l);f=r(l)}if(f!==null)var me=!0;else{var Ne=r(u);Ne!==null&&I(_,Ne.startTime-L),me=!1}return me}finally{f=null,h=K,p=!1}}var C=!1,N=null,P=-1,$=5,U=-1;function J(){return!(e.unstable_now()-U<$)}function R(){if(N!==null){var E=e.unstable_now();U=E;var L=!0;try{L=N(!0,E)}finally{L?V():(C=!1,N=null)}}else C=!1}var V;if(typeof m=="function")V=function(){m(R)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,X=D.port2;D.port1.onmessage=R,V=function(){X.postMessage(null)}}else V=function(){b(R,0)};
vendor: 8,491 bytes, lines 25-34
25function G(E){N=E,C||(C=!0,V())}function I(E,L){P=b(function(){E(e.unstable_now())},L)}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(E){E.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,G(k))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var K=h;h=L;try{return E()}finally{h=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,L){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var K=h;h=E;try{return L()}finally{h=K}},e.unstable_scheduleCallback=function(E,L,K){var H=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?H+K:H):K=H,E){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=K+te,E={id:d++,callback:L,priorityLevel:E,startTime:K,expirationTime:te,sortIndex:-1},K>H?(E.sortIndex=K,t(u,E),r(l)===null&&E===r(u)&&(g?(y(P),P=-1):g=!0,I(_,K-H))):(E.sortIndex=te,t(l,E),x||p||(x=!0,G(k))),E},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(E){var L=h;return function(){var K=h;h=L;try{return E.apply(this,arguments)}finally{h=K}}}})(E0);S0.exports=E0;var SS=S0.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 ES=v,Jt=SS;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var C0=new Set,ka={};function li(e,t){ao(e,t),ao(e+"Capture",t)}function ao(e,t){for(ka[e]=t,e=0;e<t.length;e++)C0.add(t[e])}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tf=Object.prototype.hasOwnProperty,CS=/^[: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]*$/,gv={},yv={};function jS(e){return Tf.call(yv,e)?!0:Tf.call(gv,e)?!1:CS.test(e)?yv[e]=!0:(gv[e]=!0,!1)}function NS(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function PS(e,t,r,n){if(t===null||typeof t>"u"||NS(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,r,n,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){lt[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];lt[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){lt[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){lt[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){lt[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){lt[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){lt[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){lt[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){lt[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var gm=/[\-:]([a-z])/g;function ym(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(gm,ym);lt[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gm,ym);lt[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gm,ym);lt[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){lt[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});lt.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){lt[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function xm(e,t,r,n){var s=lt.hasOwnProperty(t)?lt[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(PS(t,r,s,n)&&(r=null),n||s===null?jS(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Tn=ES.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kl=Symbol.for("react.element"),Ti=Symbol.for("react.portal"),Oi=Symbol.for("react.fragment"),wm=Symbol.for("react.strict_mode"),Of=Symbol.for("react.profiler"),j0=Symbol.for("react.provider"),N0=Symbol.for("react.context"),bm=Symbol.for("react.forward_ref"),Af=Symbol.for("react.suspense"),Rf=Symbol.for("react.suspense_list"),_m=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy"),P0=Symbol.for("react.offscreen"),xv=Symbol.iterator;function Mo(e){return e===null||typeof e!="object"?null:(e=xv&&e[xv]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Object.assign,kd;function Zo(e){if(kd===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);kd=t&&t[1]||""}return` 34`+kd+e}var Sd=!1;function Ed(e,t){if(!e||Sd)return"";Sd=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,030 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),i=n.stack.split(` 36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 37`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Sd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zo(e):""}function TS(e){switch(e.tag){case 5:return Zo(e.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return e=Ed(e.type,!1),e;case 11:return e=Ed(e.type.render,!1),e;case 1:return e=Ed(e.type,!0),e;default:return""}}function If(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 Oi:return"Fragment";case Ti:return"Portal";case Of:return"Profiler";case wm:return"StrictMode";case Af:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case N0:return(e.displayName||"Context")+".Consumer";case j0:return(e._context.displayName||"Context")+".Provider";case bm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _m:return t=e.displayName||null,t!==null?t:If(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return If(e(t))}catch{}}return null}function OS(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 If(t);case 8:return t===wm?"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 gs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function T0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=T0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sl(e){e._valueTracker||(e._valueTracker=AS(e))}function O0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=T0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function _c(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 Mf(e,t){var r=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function wv(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=gs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function A0(e,t){t=t.checked,t!=null&&xm(e,"checked",t,!1)}function Df(e,t){A0(e,t);var r=gs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lf(e,t.type,r):t.hasOwnProperty("defaultValue")&&Lf(e,t.type,gs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Lf(e,t,r){(t!=="number"||_c(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Jo=Array.isArray;function Wi(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+gs(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ff(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _v(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(M(92));if(Jo(r)){if(1<r.length)throw Error(M(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:gs(r)}}function R0(e,t){var r=gs(t.value),n=gs(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function kv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function I0(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 $f(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?I0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var El,M0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(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 Sa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ia={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},RS=["Webkit","ms","Moz","O"];Object.keys(ia).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ia[t]=ia[e]})});function D0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ia.hasOwnProperty(e)&&ia[e]?(""+t).trim():t+"px"}function L0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=D0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var IS=Be({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 Uf(e,t){if(t){if(IS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wf=null;function km(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zf=null,zi=null,Vi=null;function Sv(e){if(e=nl(e)){if(typeof zf!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Pu(t),zf(e.stateNode,e.type,t))}}function F0(e){zi?Vi?Vi.push(e):Vi=[e]:zi=e}function $0(){if(zi){var e=zi,t=Vi;if(Vi=zi=null,Sv(e),t)for(e=0;e<t.length;e++)Sv(t[e])}}function U0(e,t){return e(t)}function B0(){}var Cd=!1;function W0(e,t,r){if(Cd)return e(t,r);Cd=!0;try{return U0(e,t,r)}finally{Cd=!1,(zi!==null||Vi!==null)&&(B0(),$0())}}function Ea(e,t){var r=e.stateNode;if(r===null)return null;var n=Pu(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(M(231,t,typeof r));return r}var Vf=!1;if(bn)try{var Do={};Object.defineProperty(Do,"passive",{get:function(){Vf=!0}}),window.addEventListener("test",Do,Do),window.removeEventListener("test",Do,Do)}catch{Vf=!1}function MS(e,t,r,n,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var oa=!1,kc=null,Sc=!1,Hf=null,DS={onError:function(e){oa=!0,kc=e}};function LS(e,t,r,n,s,i,o,a,l){oa=!1,kc=null,MS.apply(DS,arguments)}function FS(e,t,r,n,s,i,o,a,l){if(LS.apply(this,arguments),oa){if(oa){var u=kc;oa=!1,kc=null}else throw Error(M(198));Sc||(Sc=!0,Hf=u)}}function ci(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function z0(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 Ev(e){if(ci(e)!==e)throw Error(M(188))}function $S(e){var t=e.alternate;if(!t){if(t=ci(e),t===null)throw Error(M(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return Ev(s),e;if(i===n)return Ev(s),t;i=i.sibling}throw Error(M(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o)throw Error(M(189))}}if(r.alternate!==n)throw Error(M(190))}if(r.tag!==3)throw Error(M(188));return r.stateNode.current===r?e:t}function V0(e){return e=$S(e),e!==null?H0(e):null}function H0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=H0(e);if(t!==null)return t;e=e.sibling}return null}var q0=Jt.unstable_scheduleCallback,Cv=Jt.unstable_cancelCallback,US=Jt.unstable_shouldYield,BS=Jt.unstable_requestPaint,Ge=Jt.unstable_now,WS=Jt.unstable_getCurrentPriorityLevel,Sm=Jt.unstable_ImmediatePriority,Y0=Jt.unstable_UserBlockingPriority,Ec=Jt.unstable_NormalPriority,zS=Jt.unstable_LowPriority,G0=Jt.unstable_IdlePriority,Eu=null,Gr=null;function VS(e){if(Gr&&typeof Gr.onCommitFiberRoot=="function")try{Gr.onCommitFiberRoot(Eu,e,void 0,(e.current.flags&128)===128)}catch{}}var kr=Math.clz32?Math.clz32:YS,HS=Math.log,qS=Math.LN2;function YS(e){return e>>>=0,e===0?32:31-(HS(e)/qS|0)|0}var Cl=64,jl=4194304;function Xo(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 Cc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Xo(a):(i&=o,i!==0&&(n=Xo(i)))}else o=r&~s,o!==0?n=Xo(o):i!==0&&(n=Xo(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-kr(t),s=1<<r,n|=e[r],t&=~s;return n}function GS(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 KS(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-kr(i),a=1<<o,l=s[o];l===-1?(!(a&r)||a&n)&&(s[o]=GS(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function qf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function K0(){var e=Cl;return Cl<<=1,!(Cl&4194240)&&(Cl=64),e}
vendor: 4,147 bytes, line 37
37function jd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function tl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kr(t),e[t]=r}function QS(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-kr(r),i=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~i}}function Em(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-kr(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var je=0;function Q0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Z0,Cm,J0,X0,ex,Yf=!1,Nl=[],as=null,ls=null,cs=null,Ca=new Map,ja=new Map,Kn=[],ZS="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 jv(e,t){switch(e){case"focusin":case"focusout":as=null;break;case"dragenter":case"dragleave":ls=null;break;case"mouseover":case"mouseout":cs=null;break;case"pointerover":case"pointerout":Ca.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ja.delete(t.pointerId)}}function Lo(e,t,r,n,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},t!==null&&(t=nl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function JS(e,t,r,n,s){switch(t){case"focusin":return as=Lo(as,e,t,r,n,s),!0;case"dragenter":return ls=Lo(ls,e,t,r,n,s),!0;case"mouseover":return cs=Lo(cs,e,t,r,n,s),!0;case"pointerover":var i=s.pointerId;return Ca.set(i,Lo(Ca.get(i)||null,e,t,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,ja.set(i,Lo(ja.get(i)||null,e,t,r,n,s)),!0}return!1}function tx(e){var t=Ws(e.target);if(t!==null){var r=ci(t);if(r!==null){if(t=r.tag,t===13){if(t=z0(r),t!==null){e.blockedOn=t,ex(e.priority,function(){J0(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ec(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Wf=n,r.target.dispatchEvent(n),Wf=null}else return t=nl(r),t!==null&&Cm(t),e.blockedOn=r,!1;t.shift()}return!0}function Nv(e,t,r){ec(e)&&r.delete(t)}function XS(){Yf=!1,as!==null&&ec(as)&&(as=null),ls!==null&&ec(ls)&&(ls=null),cs!==null&&ec(cs)&&(cs=null),Ca.forEach(Nv),ja.forEach(Nv)}function Fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Yf||(Yf=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,XS)))}function Na(e){function t(s){return Fo(s,e)}if(0<Nl.length){Fo(Nl[0],e);for(var r=1;r<Nl.length;r++){var n=Nl[r];n.blockedOn===e&&(n.blockedOn=null)}}for(as!==null&&Fo(as,e),ls!==null&&Fo(ls,e),cs!==null&&Fo(cs,e),Ca.forEach(t),ja.forEach(t),r=0;r<Kn.length;r++)n=Kn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Kn.length&&(r=Kn[0],r.blockedOn===null);)tx(r),r.blockedOn===null&&Kn.shift()}var Hi=Tn.ReactCurrentBatchConfig,jc=!0;function eE(e,t,r,n){var s=je,i=Hi.transition;Hi.transition=null;try{je=1,jm(e,t,r,n)}finally{je=s,Hi.transition=i}}function tE(e,t,r,n){var s=je,i=Hi.transition;Hi.transition=null;try{je=4,jm(e,t,r,n)}finally{je=s,Hi.transition=i}}function jm(e,t,r,n){if(jc){var s=Gf(e,t,r,n);if(s===null)Ld(e,t,n,Nc,r),jv(e,n);else if(JS(s,e,t,r,n))n.stopPropagation();else if(jv(e,n),t&4&&-1<ZS.indexOf(e)){for(;s!==null;){var i=nl(s);if(i!==null&&Z0(i),i=Gf(e,t,r,n),i===null&&Ld(e,t,n,Nc,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else Ld(e,t,n,null,r)}}var Nc=null;function Gf(e,t,r,n){if(Nc=null,e=km(n),e=Ws(e),e!==null)if(t=ci(e),t===null)e=null;else if(r=t.tag,r===13){if(e=z0(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Nc=e,null}
vendor: 10,401 bytes, line 37
37function rx(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(WS()){case Sm:return 1;case Y0:return 4;case Ec:case zS:return 16;case G0:return 536870912;default:return 16}default:return 16}}var ss=null,Nm=null,tc=null;function nx(){if(tc)return tc;var e,t=Nm,r=t.length,n,s="value"in ss?ss.value:ss.textContent,i=s.length;for(e=0;e<r&&t[e]===s[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===s[i-n];n++);return tc=s.slice(e,1<n?1-n:void 0)}function rc(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 Pl(){return!0}function Pv(){return!1}function tr(e){function t(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Pl:Pv,this.isPropagationStopped=Pv,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Pl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Pl)},persist:function(){},isPersistent:Pl}),t}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pm=tr(So),rl=Be({},So,{view:0,detail:0}),rE=tr(rl),Nd,Pd,$o,Cu=Be({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tm,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!==$o&&($o&&e.type==="mousemove"?(Nd=e.screenX-$o.screenX,Pd=e.screenY-$o.screenY):Pd=Nd=0,$o=e),Nd)},movementY:function(e){return"movementY"in e?e.movementY:Pd}}),Tv=tr(Cu),nE=Be({},Cu,{dataTransfer:0}),sE=tr(nE),iE=Be({},rl,{relatedTarget:0}),Td=tr(iE),oE=Be({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),aE=tr(oE),lE=Be({},So,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cE=tr(lE),uE=Be({},So,{data:0}),Ov=tr(uE),dE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fE={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"},hE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hE[e])?!!t[e]:!1}function Tm(){return mE}var pE=Be({},rl,{key:function(e){if(e.key){var t=dE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tm,charCode:function(e){return e.type==="keypress"?rc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vE=tr(pE),gE=Be({},Cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Av=tr(gE),yE=Be({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tm}),xE=tr(yE),wE=Be({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),bE=tr(wE),_E=Be({},Cu,{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}),kE=tr(_E),SE=[9,13,27,32],Om=bn&&"CompositionEvent"in window,aa=null;bn&&"documentMode"in document&&(aa=document.documentMode);var EE=bn&&"TextEvent"in window&&!aa,sx=bn&&(!Om||aa&&8<aa&&11>=aa),Rv=" ",Iv=!1;function ix(e,t){switch(e){case"keyup":return SE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ox(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ai=!1;function CE(e,t){switch(e){case"compositionend":return ox(t);case"keypress":return t.which!==32?null:(Iv=!0,Rv);case"textInput":return e=t.data,e===Rv&&Iv?null:e;default:return null}}function jE(e,t){if(Ai)return e==="compositionend"||!Om&&ix(e,t)?(e=nx(),tc=Nm=ss=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 sx&&t.locale!=="ko"?null:t.data;default:return null}}var NE={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 Mv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!NE[e.type]:t==="textarea"}function ax(e,t,r,n){F0(n),t=Pc(t,"onChange"),0<t.length&&(r=new Pm("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var la=null,Pa=null;function PE(e){yx(e,0)}function ju(e){var t=Mi(e);if(O0(t))return e}function TE(e,t){if(e==="change")return t}var lx=!1;if(bn){var Od;if(bn){var Ad="oninput"in document;if(!Ad){var Dv=document.createElement("div");Dv.setAttribute("oninput","return;"),Ad=typeof Dv.oninput=="function"}Od=Ad}else Od=!1;lx=Od&&(!document.documentMode||9<document.documentMode)}function Lv(){la&&(la.detachEvent("onpropertychange",cx),Pa=la=null)}function cx(e){if(e.propertyName==="value"&&ju(Pa)){var t=[];ax(t,Pa,e,km(e)),W0(PE,t)}}function OE(e,t,r){e==="focusin"?(Lv(),la=t,Pa=r,la.attachEvent("onpropertychange",cx)):e==="focusout"&&Lv()}function AE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ju(Pa)}function RE(e,t){if(e==="click")return ju(t)}function IE(e,t){if(e==="input"||e==="change")return ju(t)}function ME(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Er=typeof Object.is=="function"?Object.is:ME;function Ta(e,t){if(Er(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!Tf.call(t,s)||!Er(e[s],t[s]))return!1}return!0}function Fv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $v(e,t){var r=Fv(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fv(r)}}function ux(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ux(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dx(){for(var e=window,t=_c();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_c(e.document)}return t}function Am(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 DE(e){var t=dx(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&ux(r.ownerDocument.documentElement,r)){if(n!==null&&Am(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!e.extend&&i>n&&(s=n,n=i,i=s),s=$v(r,i);var o=$v(r,n);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var LE=bn&&"documentMode"in document&&11>=document.documentMode,Ri=null,Kf=null,ca=null,Qf=!1;function Uv(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qf||Ri==null||Ri!==_c(n)||(n=Ri,"selectionStart"in n&&Am(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),ca&&Ta(ca,n)||(ca=n,n=Pc(Kf,"onSelect"),0<n.length&&(t=new Pm("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ri)))}function Tl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ii={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionend:Tl("Transition","TransitionEnd")},Rd={},fx={};bn&&(fx=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function Nu(e){if(Rd[e])return Rd[e];if(!Ii[e])return e;var t=Ii[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in fx)return Rd[e]=t[r];return e}var hx=Nu("animationend"),mx=Nu("animationiteration"),px=Nu("animationstart"),vx=Nu("transitionend"),gx=new Map,Bv="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 Ss(e,t){gx.set(e,t),li(t,[e])}for(var Id=0;Id<Bv.length;Id++){var Md=Bv[Id],FE=Md.toLowerCase(),$E=Md[0].toUpperCase()+Md.slice(1);Ss(FE,"on"+$E)}Ss(hx,"onAnimationEnd");Ss(mx,"onAnimationIteration");Ss(px,"onAnimationStart");Ss("dblclick","onDoubleClick");Ss("focusin","onFocus");Ss("focusout","onBlur");Ss(vx,"onTransitionEnd");ao("onMouseEnter",["mouseout","mouseover"]);ao("onMouseLeave",["mouseout","mouseover"]);ao("onPointerEnter",["pointerout","pointerover"]);ao("onPointerLeave",["pointerout","pointerover"]);li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));li("onBeforeInput",["compositionend","keypress","textInput","paste"]);li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ea="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(" "),UE=new Set("cancel close invalid load scroll toggle".split(" ").concat(ea));function Wv(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,FS(n,t,void 0,e),e.currentTarget=null}function yx(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Wv(s,a,u),i=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Wv(s,a,u),i=l}}}if(Sc)throw e=Hf,Sc=!1,Hf=null,e}function De(e,t){var r=t[th];r===void 0&&(r=t[th]=new Set);var n=e+"__bubble";r.has(n)||(xx(t,e,2,!1),r.add(n))}function Dd(e,t,r){var n=0;t&&(n|=4),xx(r,e,n,t)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function Oa(e){if(!e[Ol]){e[Ol]=!0,C0.forEach(function(r){r!=="selectionchange"&&(UE.has(r)||Dd(r,!1,e),Dd(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ol]||(t[Ol]=!0,Dd("selectionchange",!1,t))}}function xx(e,t,r,n){switch(rx(t)){case 1:var s=eE;break;case 4:s=tE;break;default:s=jm}r=s.bind(null,t,r,e),s=void 0,!Vf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function Ld(e,t,r,n,s){var i=n;
vendor: 2,645 bytes, line 37
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Ws(a),o===null)return;if(l=o.tag,l===5||l===6){n=i=o;continue e}a=a.parentNode}}n=n.return}W0(function(){var u=i,d=km(r),f=[];e:{var h=gx.get(e);if(h!==void 0){var p=Pm,x=e;switch(e){case"keypress":if(rc(r)===0)break e;case"keydown":case"keyup":p=vE;break;case"focusin":x="focus",p=Td;break;case"focusout":x="blur",p=Td;break;case"beforeblur":case"afterblur":p=Td;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Tv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=sE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=xE;break;case hx:case mx:case px:p=aE;break;case vx:p=bE;break;case"scroll":p=rE;break;case"wheel":p=kE;break;case"copy":case"cut":case"paste":p=cE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Av}var g=(t&4)!==0,b=!g&&e==="scroll",y=g?h!==null?h+"Capture":null:h;g=[];for(var m=u,w;m!==null;){w=m;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,y!==null&&(_=Ea(m,y),_!=null&&g.push(Aa(m,_,w)))),b)break;m=m.return}0<g.length&&(h=new p(h,x,null,r,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&r!==Wf&&(x=r.relatedTarget||r.fromElement)&&(Ws(x)||x[_n]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(x=r.relatedTarget||r.toElement,p=u,x=x?Ws(x):null,x!==null&&(b=ci(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=u),p!==x)){if(g=Tv,_="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=Av,_="onPointerLeave",y="onPointerEnter",m="pointer"),b=p==null?h:Mi(p),w=x==null?h:Mi(x),h=new g(_,m+"leave",p,r,d),h.target=b,h.relatedTarget=w,_=null,Ws(d)===u&&(g=new g(y,m+"enter",x,r,d),g.target=w,g.relatedTarget=b,_=g),b=_,p&&x)t:{for(g=p,y=x,m=0,w=g;w;w=pi(w))m++;for(w=0,_=y;_;_=pi(_))w++;for(;0<m-w;)g=pi(g),m--;for(;0<w-m;)y=pi(y),w--;for(;m--;){if(g===y||y!==null&&g===y.alternate)break t;g=pi(g),y=pi(y)}g=null}else g=null;p!==null&&zv(f,h,p,g,!1),x!==null&&b!==null&&zv(f,b,x,g,!0)}}
vendor: 6,372 bytes, lines 37-38
37e:{if(h=u?Mi(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var k=TE;else if(Mv(h))if(lx)k=IE;else{k=AE;var C=OE}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=RE);if(k&&(k=k(e,u))){ax(f,k,r,d);break e}C&&C(e,h,u),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&Lf(h,"number",h.value)}switch(C=u?Mi(u):window,e){case"focusin":(Mv(C)||C.contentEditable==="true")&&(Ri=C,Kf=u,ca=null);break;case"focusout":ca=Kf=Ri=null;break;case"mousedown":Qf=!0;break;case"contextmenu":case"mouseup":case"dragend":Qf=!1,Uv(f,r,d);break;case"selectionchange":if(LE)break;case"keydown":case"keyup":Uv(f,r,d)}var N;if(Om)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Ai?ix(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(sx&&r.locale!=="ko"&&(Ai||P!=="onCompositionStart"?P==="onCompositionEnd"&&Ai&&(N=nx()):(ss=d,Nm="value"in ss?ss.value:ss.textContent,Ai=!0)),C=Pc(u,P),0<C.length&&(P=new Ov(P,e,null,r,d),f.push({event:P,listeners:C}),N?P.data=N:(N=ox(r),N!==null&&(P.data=N)))),(N=EE?CE(e,r):jE(e,r))&&(u=Pc(u,"onBeforeInput"),0<u.length&&(d=new Ov("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=N))}yx(f,t)})}function Aa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Pc(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ea(e,r),i!=null&&n.unshift(Aa(e,i,s)),i=Ea(e,t),i!=null&&n.push(Aa(e,i,s))),e=e.return}return n}function pi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zv(e,t,r,n,s){for(var i=t._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,s?(l=Ea(r,i),l!=null&&o.unshift(Aa(r,l,a))):s||(l=Ea(r,i),l!=null&&o.push(Aa(r,l,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var BE=/\r\n?/g,WE=/\u0000|\uFFFD/g;function Vv(e){return(typeof e=="string"?e:""+e).replace(BE,` 38`).replace(WE,"")}function Al(e,t,r){if(t=Vv(t),Vv(e)!==t&&r)throw Error(M(425))}function Tc(){}var Zf=null,Jf=null;function Xf(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 eh=typeof setTimeout=="function"?setTimeout:void 0,zE=typeof clearTimeout=="function"?clearTimeout:void 0,Hv=typeof Promise=="function"?Promise:void 0,VE=typeof queueMicrotask=="function"?queueMicrotask:typeof Hv<"u"?function(e){return Hv.resolve(null).then(e).catch(HE)}:eh;function HE(e){setTimeout(function(){throw e})}function Fd(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Na(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Na(t)}function us(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 qv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Eo=Math.random().toString(36).slice(2),Vr="__reactFiber$"+Eo,Ra="__reactProps$"+Eo,_n="__reactContainer$"+Eo,th="__reactEvents$"+Eo,qE="__reactListeners$"+Eo,YE="__reactHandles$"+Eo;function Ws(e){var t=e[Vr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[_n]||r[Vr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=qv(e);e!==null;){if(r=e[Vr])return r;e=qv(e)}return t}e=r,r=e.parentNode}return null}function nl(e){return e=e[Vr]||e[_n],!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(M(33))}function Pu(e){return e[Ra]||null}var rh=[],Di=-1;function Es(e){return{current:e}}function Le(e){0>Di||(e.current=rh[Di],rh[Di]=null,Di--)}function Oe(e,t){Di++,rh[Di]=e.current,e.current=t}var ys={},pt=Es(ys),Ft=Es(!1),Js=ys;function lo(e,t){var r=e.type.contextTypes;if(!r)return ys;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function $t(e){return e=e.childContextTypes,e!=null}function Oc(){Le(Ft),Le(pt)}function Yv(e,t,r){if(pt.current!==ys)throw Error(M(168));Oe(pt,t),Oe(Ft,r)}function wx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(M(108,OS(e)||"Unknown",s));return Be({},r,n)}function Ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ys,Js=pt.current,Oe(pt,e),Oe(Ft,Ft.current),!0}function Gv(e,t,r){var n=e.stateNode;if(!n)throw Error(M(169));r?(e=wx(e,t,Js),n.__reactInternalMemoizedMergedChildContext=e,Le(Ft),Le(pt),Oe(pt,e)):Le(Ft),Oe(Ft,r)}var mn=null,Tu=!1,$d=!1;function bx(e){mn===null?mn=[e]:mn.push(e)}function GE(e){Tu=!0,bx(e)}function Cs(){if(!$d&&mn!==null){$d=!0;var e=0,t=je;try{var r=mn;for(je=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}mn=null,Tu=!1}catch(s){throw mn!==null&&(mn=mn.slice(e+1)),q0(Sm,Cs),s}finally{je=t,$d=!1}}return null}var Li=[],Fi=0,Rc=null,Ic=0,or=[],ar=0,Xs=null,pn=1,vn="";function Ms(e,t){Li[Fi++]=Ic,Li[Fi++]=Rc,Rc=e,Ic=t}function _x(e,t,r){or[ar++]=pn,or[ar++]=vn,or[ar++]=Xs,Xs=e;var n=pn;e=vn;var s=32-kr(n)-1;n&=~(1<<s),r+=1;var i=32-kr(t)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,pn=1<<32-kr(t)+s|r<<s|n,vn=i+e}else pn=1<<i|r<<s|n,vn=e}function Rm(e){e.return!==null&&(Ms(e,1),_x(e,1,0))}function Im(e){for(;e===Rc;)Rc=Li[--Fi],Li[Fi]=null,Ic=Li[--Fi],Li[Fi]=null;for(;e===Xs;)Xs=or[--ar],or[ar]=null,vn=or[--ar],or[ar]=null,pn=or[--ar],or[ar]=null}var Qt=null,Kt=null,Fe=!1,br=null;function kx(e,t){var r=lr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Kv(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 13,718 bytes, line 38
38return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Qt=e,Kt=us(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qt=e,Kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Xs!==null?{id:pn,overflow:vn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=lr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Qt=e,Kt=null,!0):!1;default:return!1}}function nh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sh(e){if(Fe){var t=Kt;if(t){var r=t;if(!Kv(e,t)){if(nh(e))throw Error(M(418));t=us(r.nextSibling);var n=Qt;t&&Kv(e,t)?kx(n,r):(e.flags=e.flags&-4097|2,Fe=!1,Qt=e)}}else{if(nh(e))throw Error(M(418));e.flags=e.flags&-4097|2,Fe=!1,Qt=e}}}function Qv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qt=e}function Rl(e){if(e!==Qt)return!1;if(!Fe)return Qv(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xf(e.type,e.memoizedProps)),t&&(t=Kt)){if(nh(e))throw Sx(),Error(M(418));for(;t;)kx(e,t),t=us(t.nextSibling)}if(Qv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Kt=us(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Kt=null}}else Kt=Qt?us(e.stateNode.nextSibling):null;return!0}function Sx(){for(var e=Kt;e;)e=us(e.nextSibling)}function co(){Kt=Qt=null,Fe=!1}function Mm(e){br===null?br=[e]:br.push(e)}var KE=Tn.ReactCurrentBatchConfig;function Uo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(M(309));var n=r.stateNode}if(!n)throw Error(M(147,e));var s=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(M(284));if(!r._owner)throw Error(M(290,e))}return e}function Il(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zv(e){var t=e._init;return t(e._payload)}function Ex(e){function t(y,m){if(e){var w=y.deletions;w===null?(y.deletions=[m],y.flags|=16):w.push(m)}}function r(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function n(y,m){for(y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function s(y,m){return y=ms(y,m),y.index=0,y.sibling=null,y}function i(y,m,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<m?(y.flags|=2,m):w):(y.flags|=2,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,m,w,_){return m===null||m.tag!==6?(m=qd(w,y.mode,_),m.return=y,m):(m=s(m,w),m.return=y,m)}function l(y,m,w,_){var k=w.type;return k===Oi?d(y,m,w.props.children,_,w.key):m!==null&&(m.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Yn&&Zv(k)===m.type)?(_=s(m,w.props),_.ref=Uo(y,m,w),_.return=y,_):(_=cc(w.type,w.key,w.props,null,y.mode,_),_.ref=Uo(y,m,w),_.return=y,_)}function u(y,m,w,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==w.containerInfo||m.stateNode.implementation!==w.implementation?(m=Yd(w,y.mode,_),m.return=y,m):(m=s(m,w.children||[]),m.return=y,m)}function d(y,m,w,_,k){return m===null||m.tag!==7?(m=Zs(w,y.mode,_,k),m.return=y,m):(m=s(m,w),m.return=y,m)}function f(y,m,w){if(typeof m=="string"&&m!==""||typeof m=="number")return m=qd(""+m,y.mode,w),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case kl:return w=cc(m.type,m.key,m.props,null,y.mode,w),w.ref=Uo(y,null,m),w.return=y,w;case Ti:return m=Yd(m,y.mode,w),m.return=y,m;case Yn:var _=m._init;return f(y,_(m._payload),w)}if(Jo(m)||Mo(m))return m=Zs(m,y.mode,w,null),m.return=y,m;Il(y,m)}return null}function h(y,m,w,_){var k=m!==null?m.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(y,m,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case kl:return w.key===k?l(y,m,w,_):null;case Ti:return w.key===k?u(y,m,w,_):null;case Yn:return k=w._init,h(y,m,k(w._payload),_)}if(Jo(w)||Mo(w))return k!==null?null:d(y,m,w,_,null);Il(y,w)}return null}function p(y,m,w,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return y=y.get(w)||null,a(m,y,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case kl:return y=y.get(_.key===null?w:_.key)||null,l(m,y,_,k);case Ti:return y=y.get(_.key===null?w:_.key)||null,u(m,y,_,k);case Yn:var C=_._init;return p(y,m,w,C(_._payload),k)}if(Jo(_)||Mo(_))return y=y.get(w)||null,d(m,y,_,k,null);Il(m,_)}return null}function x(y,m,w,_){for(var k=null,C=null,N=m,P=m=0,$=null;N!==null&&P<w.length;P++){N.index>P?($=N,N=null):$=N.sibling;var U=h(y,N,w[P],_);if(U===null){N===null&&(N=$);break}e&&N&&U.alternate===null&&t(y,N),m=i(U,m,P),C===null?k=U:C.sibling=U,C=U,N=$}if(P===w.length)return r(y,N),Fe&&Ms(y,P),k;if(N===null){for(;P<w.length;P++)N=f(y,w[P],_),N!==null&&(m=i(N,m,P),C===null?k=N:C.sibling=N,C=N);return Fe&&Ms(y,P),k}for(N=n(y,N);P<w.length;P++)$=p(N,y,P,w[P],_),$!==null&&(e&&$.alternate!==null&&N.delete($.key===null?P:$.key),m=i($,m,P),C===null?k=$:C.sibling=$,C=$);return e&&N.forEach(function(J){return t(y,J)}),Fe&&Ms(y,P),k}function g(y,m,w,_){var k=Mo(w);if(typeof k!="function")throw Error(M(150));if(w=k.call(w),w==null)throw Error(M(151));for(var C=k=null,N=m,P=m=0,$=null,U=w.next();N!==null&&!U.done;P++,U=w.next()){N.index>P?($=N,N=null):$=N.sibling;var J=h(y,N,U.value,_);if(J===null){N===null&&(N=$);break}e&&N&&J.alternate===null&&t(y,N),m=i(J,m,P),C===null?k=J:C.sibling=J,C=J,N=$}if(U.done)return r(y,N),Fe&&Ms(y,P),k;if(N===null){for(;!U.done;P++,U=w.next())U=f(y,U.value,_),U!==null&&(m=i(U,m,P),C===null?k=U:C.sibling=U,C=U);return Fe&&Ms(y,P),k}for(N=n(y,N);!U.done;P++,U=w.next())U=p(N,y,P,U.value,_),U!==null&&(e&&U.alternate!==null&&N.delete(U.key===null?P:U.key),m=i(U,m,P),C===null?k=U:C.sibling=U,C=U);return e&&N.forEach(function(R){return t(y,R)}),Fe&&Ms(y,P),k}function b(y,m,w,_){if(typeof w=="object"&&w!==null&&w.type===Oi&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case kl:e:{for(var k=w.key,C=m;C!==null;){if(C.key===k){if(k=w.type,k===Oi){if(C.tag===7){r(y,C.sibling),m=s(C,w.props.children),m.return=y,y=m;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Yn&&Zv(k)===C.type){r(y,C.sibling),m=s(C,w.props),m.ref=Uo(y,C,w),m.return=y,y=m;break e}r(y,C);break}else t(y,C);C=C.sibling}w.type===Oi?(m=Zs(w.props.children,y.mode,_,w.key),m.return=y,y=m):(_=cc(w.type,w.key,w.props,null,y.mode,_),_.ref=Uo(y,m,w),_.return=y,y=_)}return o(y);case Ti:e:{for(C=w.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===w.containerInfo&&m.stateNode.implementation===w.implementation){r(y,m.sibling),m=s(m,w.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=Yd(w,y.mode,_),m.return=y,y=m}return o(y);case Yn:return C=w._init,b(y,m,C(w._payload),_)}if(Jo(w))return x(y,m,w,_);if(Mo(w))return g(y,m,w,_);Il(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,m!==null&&m.tag===6?(r(y,m.sibling),m=s(m,w),m.return=y,y=m):(r(y,m),m=qd(w,y.mode,_),m.return=y,y=m),o(y)):r(y,m)}return b}var uo=Ex(!0),Cx=Ex(!1),Mc=Es(null),Dc=null,$i=null,Dm=null;function Lm(){Dm=$i=Dc=null}function Fm(e){var t=Mc.current;Le(Mc),e._currentValue=t}function ih(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function qi(e,t){Dc=e,Dm=$i=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function fr(e){var t=e._currentValue;if(Dm!==e)if(e={context:e,memoizedValue:t,next:null},$i===null){if(Dc===null)throw Error(M(308));$i=e,Dc.dependencies={lanes:0,firstContext:e}}else $i=$i.next=e;return t}var zs=null;function $m(e){zs===null?zs=[e]:zs.push(e)}function jx(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,$m(t)):(r.next=s.next,s.next=r),t.interleaved=r,kn(e,n)}function kn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Gn=!1;function Um(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nx(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ds(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,be&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,kn(e,r)}return s=n.interleaved,s===null?(t.next=t,$m(n)):(t.next=s.next,s.next=t),n.interleaved=t,kn(e,r)}function nc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Em(e,r)}}function Jv(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=t:i=i.next=t}else s=i=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Lc(e,t,r,n){var s=e.updateQueue;Gn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,d=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(h=t,p=r,g.tag){case 1:if(x=g.payload,typeof x=="function"){f=x.call(p,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,h=typeof x=="function"?x.call(p,f,h):x,h==null)break e;f=Be({},f,h);break e;case 2:Gn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);ti|=o,e.lanes=o,e.memoizedState=f}}function Xv(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(M(191,s));s.call(n)}}}var sl={},Kr=Es(sl),Ia=Es(sl),Ma=Es(sl);function Vs(e){if(e===sl)throw Error(M(174));return e}function Bm(e,t){switch(Oe(Ma,t),Oe(Ia,e),Oe(Kr,sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$f(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$f(t,e)}Le(Kr),Oe(Kr,t)}function fo(){Le(Kr),Le(Ia),Le(Ma)}function Px(e){Vs(Ma.current);var t=Vs(Kr.current),r=$f(t,e.type);t!==r&&(Oe(Ia,e),Oe(Kr,r))}function Wm(e){Ia.current===e&&(Le(Kr),Le(Ia))}var $e=Es(0);function Fc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ud=[];function zm(){for(var e=0;e<Ud.length;e++)Ud[e]._workInProgressVersionPrimary=null;Ud.length=0}var sc=Tn.ReactCurrentDispatcher,Bd=Tn.ReactCurrentBatchConfig,ei=0,Ue=null,rt=null,st=null,$c=!1,ua=!1,Da=0,QE=0;function ut(){throw Error(M(321))}function Vm(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Er(e[r],t[r]))return!1;return!0}function Hm(e,t,r,n,s,i){if(ei=i,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sc.current=e===null||e.memoizedState===null?eC:tC,e=r(n,s),ua){i=0;do{if(ua=!1,Da=0,25<=i)throw Error(M(301));i+=1,st=rt=null,t.updateQueue=null,sc.current=rC,e=r(n,s)}while(ua)}if(sc.current=Uc,t=rt!==null&&rt.next!==null,ei=0,st=rt=Ue=null,$c=!1,t)throw Error(M(300));return e}function qm(){var e=Da!==0;return Da=0,e}function Fr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ue.memoizedState=st=e:st=st.next=e,st}function hr(){if(rt===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=st===null?Ue.memoizedState:st.next;if(t!==null)st=t,rt=e;else{if(e===null)throw Error(M(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},st===null?Ue.memoizedState=st=e:st=st.next=e}return st}function La(e,t){return typeof t=="function"?t(e):t}function Wd(e){var t=hr(),r=t.queue;if(r===null)throw Error(M(311));r.lastRenderedReducer=e;
vendor: 5,688 bytes, line 38
38var n=rt,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((ei&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,Ue.lanes|=d,ti|=d}u=u.next}while(u!==null&&u!==i);l===null?o=n:l.next=a,Er(n,t.memoizedState)||(Dt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do i=s.lane,Ue.lanes|=i,ti|=i,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function zd(e){var t=hr(),r=t.queue;if(r===null)throw Error(M(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,i=t.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Er(i,t.memoizedState)||(Dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Tx(){}function Ox(e,t){var r=Ue,n=hr(),s=t(),i=!Er(n.memoizedState,s);if(i&&(n.memoizedState=s,Dt=!0),n=n.queue,Ym(Ix.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||st!==null&&st.memoizedState.tag&1){if(r.flags|=2048,Fa(9,Rx.bind(null,r,n,s,t),void 0,null),it===null)throw Error(M(349));ei&30||Ax(r,t,s)}return s}function Ax(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Rx(e,t,r,n){t.value=r,t.getSnapshot=n,Mx(t)&&Dx(e)}function Ix(e,t,r){return r(function(){Mx(t)&&Dx(e)})}function Mx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Er(e,r)}catch{return!0}}function Dx(e){var t=kn(e,1);t!==null&&Sr(t,e,1,-1)}function eg(e){var t=Fr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:e},t.queue=e,e=e.dispatch=XE.bind(null,Ue,e),[t.memoizedState,e]}function Fa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Lx(){return hr().memoizedState}function ic(e,t,r,n){var s=Fr();Ue.flags|=e,s.memoizedState=Fa(1|t,r,void 0,n===void 0?null:n)}function Ou(e,t,r,n){var s=hr();n=n===void 0?null:n;var i=void 0;if(rt!==null){var o=rt.memoizedState;if(i=o.destroy,n!==null&&Vm(n,o.deps)){s.memoizedState=Fa(t,r,i,n);return}}Ue.flags|=e,s.memoizedState=Fa(1|t,r,i,n)}function tg(e,t){return ic(8390656,8,e,t)}function Ym(e,t){return Ou(2048,8,e,t)}function Fx(e,t){return Ou(4,2,e,t)}function $x(e,t){return Ou(4,4,e,t)}function Ux(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 Bx(e,t,r){return r=r!=null?r.concat([e]):null,Ou(4,4,Ux.bind(null,t,e),r)}function Gm(){}function Wx(e,t){var r=hr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Vm(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function zx(e,t){var r=hr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Vm(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Vx(e,t,r){return ei&21?(Er(r,t)||(r=K0(),Ue.lanes|=r,ti|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=r)}function ZE(e,t){var r=je;je=r!==0&&4>r?r:4,e(!0);var n=Bd.transition;Bd.transition={};try{e(!1),t()}finally{je=r,Bd.transition=n}}function Hx(){return hr().memoizedState}function JE(e,t,r){var n=hs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},qx(e))Yx(t,r);else if(r=jx(e,t,r,n),r!==null){var s=_t();Sr(r,e,n,s),Gx(r,t,n)}}function XE(e,t,r){var n=hs(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(qx(e))Yx(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Er(a,o)){var l=t.interleaved;l===null?(s.next=s,$m(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=jx(e,t,s,n),r!==null&&(s=_t(),Sr(r,e,n,s),Gx(r,t,n))}}function qx(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function Yx(e,t){ua=$c=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Gx(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Em(e,r)}}var Uc={readContext:fr,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},eC={readContext:fr,useCallback:function(e,t){return Fr().memoizedState=[e,t===void 0?null:t],e},useContext:fr,useEffect:tg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ic(4194308,4,Ux.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var r=Fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=JE.bind(null,Ue,e),[n.memoizedState,e]}
vendor: 7,431 bytes, lines 38-40
38,useRef:function(e){var t=Fr();return e={current:e},t.memoizedState=e},useState:eg,useDebugValue:Gm,useDeferredValue:function(e){return Fr().memoizedState=e},useTransition:function(){var e=eg(!1),t=e[0];return e=ZE.bind(null,e[1]),Fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ue,s=Fr();if(Fe){if(r===void 0)throw Error(M(407));r=r()}else{if(r=t(),it===null)throw Error(M(349));ei&30||Ax(n,t,r)}s.memoizedState=r;var i={value:r,getSnapshot:t};return s.queue=i,tg(Ix.bind(null,n,i,e),[e]),n.flags|=2048,Fa(9,Rx.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Fr(),t=it.identifierPrefix;if(Fe){var r=vn,n=pn;r=(n&~(1<<32-kr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Da++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=QE++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tC={readContext:fr,useCallback:Wx,useContext:fr,useEffect:Ym,useImperativeHandle:Bx,useInsertionEffect:Fx,useLayoutEffect:$x,useMemo:zx,useReducer:Wd,useRef:Lx,useState:function(){return Wd(La)},useDebugValue:Gm,useDeferredValue:function(e){var t=hr();return Vx(t,rt.memoizedState,e)},useTransition:function(){var e=Wd(La)[0],t=hr().memoizedState;return[e,t]},useMutableSource:Tx,useSyncExternalStore:Ox,useId:Hx,unstable_isNewReconciler:!1},rC={readContext:fr,useCallback:Wx,useContext:fr,useEffect:Ym,useImperativeHandle:Bx,useInsertionEffect:Fx,useLayoutEffect:$x,useMemo:zx,useReducer:zd,useRef:Lx,useState:function(){return zd(La)},useDebugValue:Gm,useDeferredValue:function(e){var t=hr();return rt===null?t.memoizedState=e:Vx(t,rt.memoizedState,e)},useTransition:function(){var e=zd(La)[0],t=hr().memoizedState;return[e,t]},useMutableSource:Tx,useSyncExternalStore:Ox,useId:Hx,unstable_isNewReconciler:!1};function vr(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function oh(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Be({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Au={isMounted:function(e){return(e=e._reactInternals)?ci(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=_t(),s=hs(e),i=xn(n,s);i.payload=t,r!=null&&(i.callback=r),t=ds(e,i,s),t!==null&&(Sr(t,e,s,n),nc(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=_t(),s=hs(e),i=xn(n,s);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=ds(e,i,s),t!==null&&(Sr(t,e,s,n),nc(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=_t(),n=hs(e),s=xn(r,n);s.tag=2,t!=null&&(s.callback=t),t=ds(e,s,n),t!==null&&(Sr(t,e,n,r),nc(t,e,n))}};function rg(e,t,r,n,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Ta(r,n)||!Ta(s,i):!0}function Kx(e,t,r){var n=!1,s=ys,i=t.contextType;return typeof i=="object"&&i!==null?i=fr(i):(s=$t(t)?Js:pt.current,n=t.contextTypes,i=(n=n!=null)?lo(e,s):ys),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Au,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function ng(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Au.enqueueReplaceState(t,t.state,null)}function ah(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},Um(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=fr(i):(i=$t(t)?Js:pt.current,s.context=lo(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(oh(e,t,i,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Au.enqueueReplaceState(s,s.state,null),Lc(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ho(e,t){try{var r="",n=t;do r+=TS(n),n=n.return;while(n);var s=r}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Vd(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function lh(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var nC=typeof WeakMap=="function"?WeakMap:Map;function Qx(e,t,r){r=xn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Wc||(Wc=!0,yh=n),lh(e,t)},r}function Zx(e,t,r){r=xn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){lh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){lh(e,t),typeof n!="function"&&(fs===null?fs=new Set([this]):fs.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function sg(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new nC;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=gC.bind(null,e,t,r),t.then(e,e))}function ig(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 og(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=xn(-1,1),t.tag=2,ds(r,t,1))),r.lanes|=1),e)}var sC=Tn.ReactCurrentOwner,Dt=!1;function yt(e,t,r,n){t.child=e===null?Cx(t,null,r,n):uo(t,e.child,r,n)}function ag(e,t,r,n,s){r=r.render;var i=t.ref;return qi(t,s),n=Hm(e,t,r,n,i,s),r=qm(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Sn(e,t,s)):(Fe&&r&&Rm(t),t.flags|=1,yt(e,t,n,s),t.child)}function lg(e,t,r,n,s){if(e===null){var i=r.type;return typeof i=="function"&&!rp(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,Jx(e,t,i,n,s)):(e=cc(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Ta,r(o,n)&&e.ref===t.ref)return Sn(e,t,s)}return t.flags|=1,e=ms(i,n),e.ref=t.ref,e.return=t,t.child=e}function Jx(e,t,r,n,s){if(e!==null){var i=e.memoizedProps;if(Ta(i,n)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=n=i,(e.lanes&s)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,Sn(e,t,s)}return ch(e,t,r,n,s)}function Xx(e,t,r){var n=t.pendingProps,s=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Bi,qt),qt|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oe(Bi,qt),qt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Oe(Bi,qt),qt|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Oe(Bi,qt),qt|=n;return yt(e,t,s,r),t.child}function ew(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function ch(e,t,r,n,s){var i=$t(r)?Js:pt.current;return i=lo(t,i),qi(t,s),r=Hm(e,t,r,n,i,s),n=qm(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Sn(e,t,s)):(Fe&&n&&Rm(t),t.flags|=1,yt(e,t,r,s),t.child)}function cg(e,t,r,n,s){if($t(r)){var i=!0;Ac(t)}else i=!1;if(qi(t,s),t.stateNode===null)oc(e,t),Kx(t,r,n),ah(t,r,n,s),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=fr(u):(u=$t(r)?Js:pt.current,u=lo(t,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==u)&&ng(t,o,n,u),Gn=!1;var h=t.memoizedState;o.state=h,Lc(t,n,o,s),l=t.memoizedState,a!==n||h!==l||Ft.current||Gn?(typeof d=="function"&&(oh(t,r,d,n),l=t.memoizedState),(a=Gn||rg(t,r,a,n,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Nx(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vr(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=fr(l):(l=$t(r)?Js:pt.current,l=lo(t,l));var p=r.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&ng(t,o,n,l),Gn=!1,h=t.memoizedState,o.state=h,Lc(t,n,o,s);var x=t.memoizedState;a!==f||h!==x||Ft.current||Gn?(typeof p=="function"&&(oh(t,r,p,n),x=t.memoizedState),(u=Gn||rg(t,r,u,n,h,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),o.props=n,o.state=x,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return uh(e,t,r,n,i,s)}function uh(e,t,r,n,s,i){ew(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return s&&Gv(t,r,!1),Sn(e,t,i);n=t.stateNode,sC.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,a,i)):yt(e,t,a,i),t.memoizedState=n.state,s&&Gv(t,r,!0),t.child}function tw(e){var t=e.stateNode;t.pendingContext?Yv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yv(e,t.context,!1),Bm(e,t.containerInfo)}function ug(e,t,r,n,s){return co(),Mm(s),t.flags|=256,yt(e,t,r,n),t.child}var dh={dehydrated:null,treeContext:null,retryLane:0};function fh(e){return{baseLanes:e,cachePool:null,transitions:null}}function rw(e,t,r){var n=t.pendingProps,s=$e.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Oe($e,s&1),e===null)return sh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Mu(o,n,0,null),e=Zs(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=fh(r),t.memoizedState=dh,e):Km(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return iC(e,t,o,n,a,s,r);if(i){i=n.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=ms(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=ms(a,i):(i=Zs(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?fh(r):{base
vendor: 7,075 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=dh,n}return i=e.child,e=i.sibling,n=ms(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Km(e,t){return t=Mu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ml(e,t,r,n){return n!==null&&Mm(n),uo(t,e.child,null,r),e=Km(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iC(e,t,r,n,s,i,o){if(r)return t.flags&256?(t.flags&=-257,n=Vd(Error(M(422))),Ml(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,s=t.mode,n=Mu({mode:"visible",children:n.children},s,0,null),i=Zs(i,s,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&uo(t,e.child,null,o),t.child.memoizedState=fh(o),t.memoizedState=dh,i);if(!(t.mode&1))return Ml(e,t,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(M(419)),n=Vd(i,n,void 0),Ml(e,t,o,n)}if(a=(o&e.childLanes)!==0,Dt||a){if(n=it,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,kn(e,s),Sr(n,e,s,-1))}return tp(),n=Vd(Error(M(421))),Ml(e,t,o,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=yC.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Kt=us(s.nextSibling),Qt=t,Fe=!0,br=null,e!==null&&(or[ar++]=pn,or[ar++]=vn,or[ar++]=Xs,pn=e.id,vn=e.overflow,Xs=t),t=Km(t,n.children),t.flags|=4096,t)}function dg(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ih(e.return,t,r)}function Hd(e,t,r,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function nw(e,t,r){var n=t.pendingProps,s=n.revealOrder,i=n.tail;if(yt(e,t,n.children,r),n=$e.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dg(e,r,t);else if(e.tag===19)dg(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Oe($e,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Fc(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Hd(t,!1,s,r,i);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Fc(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Hd(t,!0,r,null,i);break;case"together":Hd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ti|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,r=ms(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ms(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function oC(e,t,r){switch(t.tag){case 3:tw(t),co();break;case 5:Px(t);break;case 1:$t(t.type)&&Ac(t);break;case 4:Bm(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;Oe(Mc,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Oe($e,$e.current&1),t.flags|=128,null):r&t.child.childLanes?rw(e,t,r):(Oe($e,$e.current&1),e=Sn(e,t,r),e!==null?e.sibling:null);Oe($e,$e.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return nw(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Oe($e,$e.current),n)break;return null;case 22:case 23:return t.lanes=0,Xx(e,t,r)}return Sn(e,t,r)}var sw,hh,iw,ow;sw=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};hh=function(){};iw=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,Vs(Kr.current);var i=null;switch(r){case"input":s=Mf(e,s),n=Mf(e,n),i=[];break;case"select":s=Be({},s,{value:void 0}),n=Be({},n,{value:void 0}),i=[];break;case"textarea":s=Ff(e,s),n=Ff(e,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Tc)}Uf(r,n);var o;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ka.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(a=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ka.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&De("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};ow=function(e,t,r,n){r!==n&&(t.flags|=4)};function Bo(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function aC(e,t,r){var n=t.pendingProps;switch(Im(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(t),null;case 1:return $t(t.type)&&Oc(),dt(t),null;
vendor: 31,508 bytes, line 40
40case 3:return n=t.stateNode,fo(),Le(Ft),Le(pt),zm(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,br!==null&&(bh(br),br=null))),hh(e,t),dt(t),null;case 5:Wm(t);var s=Vs(Ma.current);if(r=t.type,e!==null&&t.stateNode!=null)iw(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(M(166));return dt(t),null}if(e=Vs(Kr.current),Rl(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Vr]=t,n[Ra]=i,e=(t.mode&1)!==0,r){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(s=0;s<ea.length;s++)De(ea[s],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":wv(n,i),De("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},De("invalid",n);break;case"textarea":_v(n,i),De("invalid",n)}Uf(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&Al(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Al(n.textContent,a,e),s=["children",""+a]):ka.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&De("scroll",n)}switch(r){case"input":Sl(n),bv(n,i,!0);break;case"textarea":Sl(n),kv(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Tc)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=I0(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Vr]=t,e[Ra]=n,sw(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bf(r,n),r){case"dialog":De("cancel",e),De("close",e),s=n;break;case"iframe":case"object":case"embed":De("load",e),s=n;break;case"video":case"audio":for(s=0;s<ea.length;s++)De(ea[s],e);s=n;break;case"source":De("error",e),s=n;break;case"img":case"image":case"link":De("error",e),De("load",e),s=n;break;case"details":De("toggle",e),s=n;break;case"input":wv(e,n),s=Mf(e,n),De("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=Be({},n,{value:void 0}),De("invalid",e);break;case"textarea":_v(e,n),s=Ff(e,n),De("invalid",e);break;default:s=n}Uf(r,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?L0(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&M0(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Sa(e,l):typeof l=="number"&&Sa(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ka.hasOwnProperty(i)?l!=null&&i==="onScroll"&&De("scroll",e):l!=null&&xm(e,i,l,o))}switch(r){case"input":Sl(e),bv(e,n,!1);break;case"textarea":Sl(e),kv(e);break;case"option":n.value!=null&&e.setAttribute("value",""+gs(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Wi(e,!!n.multiple,i,!1):n.defaultValue!=null&&Wi(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Tc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return dt(t),null;case 6:if(e&&t.stateNode!=null)ow(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(M(166));if(r=Vs(Ma.current),Vs(Kr.current),Rl(t)){if(n=t.stateNode,r=t.memoizedProps,n[Vr]=t,(i=n.nodeValue!==r)&&(e=Qt,e!==null))switch(e.tag){case 3:Al(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Al(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Vr]=t,t.stateNode=n}return dt(t),null;case 13:if(Le($e),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Kt!==null&&t.mode&1&&!(t.flags&128))Sx(),co(),t.flags|=98560,i=!1;else if(i=Rl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(M(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[Vr]=t}else co(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dt(t),i=!1}else br!==null&&(bh(br),br=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||$e.current&1?nt===0&&(nt=3):tp())),t.updateQueue!==null&&(t.flags|=4),dt(t),null);case 4:return fo(),hh(e,t),e===null&&Oa(t.stateNode.containerInfo),dt(t),null;case 10:return Fm(t.type._context),dt(t),null;case 17:return $t(t.type)&&Oc(),dt(t),null;case 19:if(Le($e),i=t.memoizedState,i===null)return dt(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)Bo(i,!1);else{if(nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fc(e),o!==null){for(t.flags|=128,Bo(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Oe($e,$e.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ge()>mo&&(t.flags|=128,n=!0,Bo(i,!1),t.lanes=4194304)}else{if(!n)if(e=Fc(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Fe)return dt(t),null}else 2*Ge()-i.renderingStartTime>mo&&r!==1073741824&&(t.flags|=128,n=!0,Bo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ge(),t.sibling=null,r=$e.current,Oe($e,n?r&1|2:r&1),t):(dt(t),null);case 22:case 23:return ep(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?qt&1073741824&&(dt(t),t.subtreeFlags&6&&(t.flags|=8192)):dt(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function lC(e,t){switch(Im(t),t.tag){case 1:return $t(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fo(),Le(Ft),Le(pt),zm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wm(t),null;case 13:if(Le($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le($e),null;case 4:return fo(),null;case 10:return Fm(t.type._context),null;case 22:case 23:return ep(),null;case 24:return null;default:return null}}var Dl=!1,ht=!1,cC=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Ui(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){He(e,t,n)}else r.current=null}function mh(e,t,r){try{r()}catch(n){He(e,t,n)}}var fg=!1;function uC(e,t){if(Zf=jc,e=dx(),Am(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===r&&++u===s&&(a=o),h===i&&++d===n&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jf={focusedElem:e,selectionRange:r},jc=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,b=x.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:vr(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(_){He(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return x=fg,fg=!1,x}function da(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&mh(t,r,i)}s=s.next}while(s!==n)}}function Ru(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ph(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function aw(e){var t=e.alternate;t!==null&&(e.alternate=null,aw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vr],delete t[Ra],delete t[th],delete t[qE],delete t[YE])),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 lw(e){return e.tag===5||e.tag===3||e.tag===4}function hg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lw(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 vh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Tc));else if(n!==4&&(e=e.child,e!==null))for(vh(e,t,r),e=e.sibling;e!==null;)vh(e,t,r),e=e.sibling}function gh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(gh(e,t,r),e=e.sibling;e!==null;)gh(e,t,r),e=e.sibling}var ot=null,xr=!1;function Ln(e,t,r){for(r=r.child;r!==null;)cw(e,t,r),r=r.sibling}function cw(e,t,r){if(Gr&&typeof Gr.onCommitFiberUnmount=="function")try{Gr.onCommitFiberUnmount(Eu,r)}catch{}switch(r.tag){case 5:ht||Ui(r,t);case 6:var n=ot,s=xr;ot=null,Ln(e,t,r),ot=n,xr=s,ot!==null&&(xr?(e=ot,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ot.removeChild(r.stateNode));break;case 18:ot!==null&&(xr?(e=ot,r=r.stateNode,e.nodeType===8?Fd(e.parentNode,r):e.nodeType===1&&Fd(e,r),Na(e)):Fd(ot,r.stateNode));break;case 4:n=ot,s=xr,ot=r.stateNode.containerInfo,xr=!0,Ln(e,t,r),ot=n,xr=s;break;case 0:case 11:case 14:case 15:if(!ht&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&mh(r,t,o),s=s.next}while(s!==n)}Ln(e,t,r);break;case 1:if(!ht&&(Ui(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){He(r,t,a)}Ln(e,t,r);break;case 21:Ln(e,t,r);break;case 22:r.mode&1?(ht=(n=ht)||r.memoizedState!==null,Ln(e,t,r),ht=n):Ln(e,t,r);break;default:Ln(e,t,r)}}function mg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new cC),t.forEach(function(n){var s=xC.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function pr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ot=a.stateNode,xr=!1;break e;case 3:ot=a.stateNode.containerInfo,xr=!0;break e;case 4:ot=a.stateNode.containerInfo,xr=!0;break e}a=a.return}if(ot===null)throw Error(M(160));cw(i,o,s),ot=null,xr=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){He(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uw(t,e),t=t.sibling}function uw(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pr(t,e),Dr(e),n&4){try{da(3,e,e.return),Ru(3,e)}catch(g){He(e,e.return,g)}try{da(5,e,e.return)}catch(g){He(e,e.return,g)}}break;case 1:pr(t,e),Dr(e),n&512&&r!==null&&Ui(r,r.return);break;case 5:if(pr(t,e),Dr(e),n&512&&r!==null&&Ui(r,r.return),e.flags&32){var s=e.stateNode;try{Sa(s,"")}catch(g){He(e,e.return,g)}}if(n&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&A0(s,i),Bf(a,o);var u=Bf(a,i);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?L0(s,f):d==="dangerouslySetInnerHTML"?M0(s,f):d==="children"?Sa(s,f):xm(s,d,f,u)}switch(a){case"input":Df(s,i);break;case"textarea":R0(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Wi(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?Wi(s,!!i.multiple,i.defaultValue,!0):Wi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ra]=i}catch(g){He(e,e.return,g)}}break;case 6:if(pr(t,e),Dr(e),n&4){if(e.stateNode===null)throw Error(M(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(g){He(e,e.return,g)}}break;case 3:if(pr(t,e),Dr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Na(t.containerInfo)}catch(g){He(e,e.return,g)}break;case 4:pr(t,e),Dr(e);break;case 13:pr(t,e),Dr(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Jm=Ge())),n&4&&mg(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(ht=(u=ht)||d,pr(t,e),ht=u):pr(t,e),Dr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Z=e,d=e.child;d!==null;){for(f=Z=d;Z!==null;){switch(h=Z,p=h.child,h.tag){case 0:case 11:case 14:case 15:da(4,h,h.return);break;case 1:Ui(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){He(n,r,g)}}break;case 5:Ui(h,h.return);break;case 22:if(h.memoizedState!==null){vg(f);continue}}p!==null?(p.return=h,Z=p):vg(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=D0("display",o))}catch(g){He(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){He(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:pr(t,e),Dr(e),n&4&&mg(e);break;case 21:break;default:pr(t,e),Dr(e)}}function Dr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(lw(r)){var n=r;break e}r=r.return}throw Error(M(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Sa(s,""),n.flags&=-33);var i=hg(e);gh(e,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,a=hg(e);vh(e,a,o);break;default:throw Error(M(161))}}catch(l){He(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dC(e,t,r){Z=e,dw(e)}function dw(e,t,r){for(var n=(e.mode&1)!==0;Z!==null;){var s=Z,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||Dl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ht;a=Dl;var u=ht;if(Dl=o,(ht=l)&&!u)for(Z=s;Z!==null;)o=Z,l=o.child,o.tag===22&&o.memoizedState!==null?gg(s):l!==null?(l.return=o,Z=l):gg(s);for(;i!==null;)Z=i,dw(i),i=i.sibling;Z=s,Dl=a,ht=u}pg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,Z=i):pg(e)}}function pg(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ht||Ru(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ht)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:vr(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Xv(t,i,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Xv(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Na(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}ht||t.flags&512&&ph(t)}catch(h){He(t,t.return,h)}}if(t===e){Z=null;break}if(r=t.sibling,r!==null){r.return=t.return,Z=r;break}Z=t.return}}function vg(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Z=r;break}Z=t.return}}function gg(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ru(4,t)}catch(l){He(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){He(t,s,l)}}var i=t.return;try{ph(t)}catch(l){He(t,i,l)}break;case 5:var o=t.return;try{ph(t)}catch(l){He(t,o,l)}}}catch(l){He(t,t.return,l)}if(t===e){Z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Z=a;break}Z=t.return}}var fC=Math.ceil,Bc=Tn.ReactCurrentDispatcher,Qm=Tn.ReactCurrentOwner,cr=Tn.ReactCurrentBatchConfig,be=0,it=null,Ze=null,at=0,qt=0,Bi=Es(0),nt=0,$a=null,ti=0,Iu=0,Zm=0,fa=null,It=null,Jm=0,mo=1/0,fn=null,Wc=!1,yh=null,fs=null,Ll=!1,is=null,zc=0,ha=0,xh=null,ac=-1,lc=0;function _t(){return be&6?Ge():ac!==-1?ac:ac=Ge()}function hs(e){return e.mode&1?be&2&&at!==0?at&-at:KE.transition!==null?(lc===0&&(lc=K0()),lc):(e=je,e!==0||(e=window.event,e=e===void 0?16:rx(e.type)),e):1}function Sr(e,t,r,n){if(50<ha)throw ha=0,xh=null,Error(M(185));tl(e,r,n),(!(be&2)||e!==it)&&(e===it&&(!(be&2)&&(Iu|=r),nt===4&&Qn(e,at)),Ut(e,n),r===1&&be===0&&!(t.mode&1)&&(mo=Ge()+500,Tu&&Cs()))}function Ut(e,t){var r=e.callbackNode;KS(e,t);var n=Cc(e,e===it?at:0);if(n===0)r!==null&&Cv(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Cv(r),t===1)e.tag===0?GE(yg.bind(null,e)):bx(yg.bind(null,e)),VE(function(){!(be&6)&&Cs()}),r=null;else{switch(Q0(n)){case 1:r=Sm;break;case 4:r=Y0;break;case 16:r=Ec;break;case 536870912:r=G0;break;default:r=Ec}r=xw(r,fw.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function fw(e,t){if(ac=-1,lc=0,be&6)throw Error(M(327));var r=e.callbackNode;if(Yi()&&e.callbackNode!==r)return null;var n=Cc(e,e===it?at:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Vc(e,n);else{t=n;var s=be;be|=2;var i=mw();(it!==e||at!==t)&&(fn=null,mo=Ge()+500,Qs(e,t));do try{pC();break}catch(a){hw(e,a)}while(!0);Lm(),Bc.current=i,be=s,Ze!==null?t=0:(it=null,at=0,t=nt)}if(t!==0){if(t===2&&(s=qf(e),s!==0&&(n=s,t=wh(e,s))),t===1)throw r=$a,Qs(e,0),Qn(e,n),Ut(e,Ge()),r;if(t===6)Qn(e,n);else{if(s=e.current.alternate,!(n&30)&&!hC(s)&&(t=Vc(e,n),t===2&&(i=qf(e),i!==0&&(n=i,t=wh(e,i))),t===1))throw r=$a,Qs(e,0),Qn(e,n),Ut(e,Ge()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(M(345));case 2:Ds(e,It,fn);break;case 3:if(Qn(e,n),(n&130023424)===n&&(t=Jm+500-Ge(),10<t)){if(Cc(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){_t(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=eh(Ds.bind(null,e,It,fn),t);break}Ds(e,It,fn);break;case 4:if(Qn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var o=31-kr(n);i=1<<o,o=t[o],o>s&&(s=o),n&=~i}if(n=s,n=Ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fC(n/1960))-n,10<n){e.timeoutHandle=eh(Ds.bind(null,e,It,fn),n);break}Ds(e,It,fn);break;case 5:Ds(e,It,fn);break;default:throw Error(M(329))}}}return Ut(e,Ge()),e.callbackNode===r?fw.bind(null,e):null}function wh(e,t){var r=fa;return e.current.memoizedState.isDehydrated&&(Qs(e,t).flags|=256),e=Vc(e,t),e!==2&&(t=It,It=r,t!==null&&bh(t)),e}function bh(e){It===null?It=e:It.push.apply(It,e)}function hC(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!Er(i(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t){for(t&=~Zm,t&=~Iu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-kr(t),n=1<<r;e[r]=-1,t&=~n}}function yg(e){if(be&6)throw Error(M(327));Yi();var t=Cc(e,0);if(!(t&1))return Ut(e,Ge()),null;var r=Vc(e,t);if(e.tag!==0&&r===2){var n=qf(e);n!==0&&(t=n,r=wh(e,n))}if(r===1)throw r=$a,Qs(e,0),Qn(e,t),Ut(e,Ge()),r;if(r===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ds(e,It,fn),Ut(e,Ge()),null}function Xm(e,t){var r=be;be|=1;try{return e(t)}finally{be=r,be===0&&(mo=Ge()+500,Tu&&Cs())}}function ri(e){is!==null&&is.tag===0&&!(be&6)&&Yi();var t=be;be|=1;var r=cr.transition,n=je;try{if(cr.transition=null,je=1,e)return e()}finally{je=n,cr.transition=r,be=t,!(be&6)&&Cs()}}function ep(){qt=Bi.current,Le(Bi)}function Qs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,zE(r)),Ze!==null)for(r=Ze.return;r!==null;){var n=r;switch(Im(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Oc();break;case 3:fo(),Le(Ft),Le(pt),zm();break;case 5:Wm(n);break;case 4:fo();break;case 13:Le($e);break;case 19:Le($e);break;case 10:Fm(n.type._context);break;case 22:case 23:ep()}r=r.return}if(it=e,Ze=e=ms(e.current,null),at=qt=t,nt=0,$a=null,Zm=Iu=ti=0,It=fa=null,zs!==null){for(t=0;t<zs.length;t++)if(r=zs[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}zs=null}return e}function hw(e,t){do{var r=Ze;try{if(Lm(),sc.current=Uc,$c){for(var n=Ue.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}$c=!1}if(ei=0,st=rt=Ue=null,ua=!1,Da=0,Qm.current=null,r===null||r.return===null){nt=1,$a=t,Ze=null;break}e:{var i=e,o=r.return,a=r,l=t;if(t=at,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ig(o);if(p!==null){p.flags&=-257,og(p,o,a,i,t),p.mode&1&&sg(i,u,t),t=p,l=u;var x=t.updateQueue;if(x===null){var g=new Set;g.add(l),t.updateQueue=g}else x.add(l);break e}else{if(!(t&1)){sg(i,u,t),tp();break e}l=Error(M(426))}}else if(Fe&&a.mode&1){var b=ig(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),og(b,o,a,i,t),Mm(ho(l,a));break e}}i=l=ho(l,a),nt!==4&&(nt=2),fa===null?fa=[i]:fa.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=Qx(i,l,t);Jv(i,y);break e;case 1:a=l;var m=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(fs===null||!fs.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=Zx(i,a,t);Jv(i,_);break e}}i=i.return}while(i!==null)}vw(r)}catch(k){t=k,Ze===r&&r!==null&&(Ze=r=r.return);continue}break}while(!0)}function mw(){var e=Bc.current;return Bc.current=Uc,e===null?Uc:e}function tp(){(nt===0||nt===3||nt===2)&&(nt=4),it===null||!(ti&268435455)&&!(Iu&268435455)||Qn(it,at)}function Vc(e,t){var r=be;be|=2;var n=mw();(it!==e||at!==t)&&(fn=null,Qs(e,t));do try{mC();break}catch(s){hw(e,s)}while(!0);if(Lm(),be=r,Bc.current=n,Ze!==null)throw Error(M(261));return it=null,at=0,nt}function mC(){for(;Ze!==null;)pw(Ze)}function pC(){for(;Ze!==null&&!US();)pw(Ze)}function pw(e){var t=yw(e.alternate,e,qt);e.memoizedProps=e.pendingProps,t===null?vw(e):Ze=t,Qm.current=null}function vw(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=lC(r,t),r!==null){r.flags&=32767,Ze=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{nt=6,Ze=null;return}}else if(r=aC(r,t,qt),r!==null){Ze=r;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);nt===0&&(nt=5)}function Ds(e,t,r){var n=je,s=cr.transition;try{cr.transition=null,je=1,vC(e,t,r,n)}finally{cr.transition=s,je=n}return null}function vC(e,t,r,n){do Yi();while(is!==null);if(be&6)throw Error(M(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(QS(e,i),e===it&&(Ze=it=null,at=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ll||(Ll=!0,xw(Ec,function(){return Yi(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=cr.transition,cr.transition=null;var o=je;je=1;var a=be;be|=4,Qm.current=null,uC(e,r),uw(r,e),DE(Jf),jc=!!Zf,Jf=Zf=null,e.current=r,dC(r),BS(),be=a,je=o,cr.transition=i}else e.current=r;if(Ll&&(Ll=!1,is=e,zc=s),i=e.pendingLanes,i===0&&(fs=null),VS(r.stateNode),Ut(e,Ge()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(Wc)throw Wc=!1,e=yh,yh=null,e;return zc&1&&e.tag!==0&&Yi(),i=e.pendingLanes,i&1?e===xh?ha++:(ha=0,xh=e):ha=0,Cs(),null}function Yi(){if(is!==null){var e=Q0(zc),t=cr.transition,r=je;try{if(cr.transition=null,je=16>e?16:e,is===null)var n=!1;else{if(e=is,is=null,zc=0,be&6)throw Error(M(331));var s=be;for(be|=4,Z=e.current;Z!==null;){var i=Z,o=i.child;if(Z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Z=u;Z!==null;){var d=Z;switch(d.tag){case 0:case 11:case 15:da(8,d,i)}var f=d.child;if(f!==null)f.return=d,Z=f;else for(;Z!==null;){d=Z;var h=d.sibling,p=d.return;if(aw(d),d===u){Z=null;break}if(h!==null){h.return=p,Z=h;break}Z=p}}}var x=i.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}Z=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Z=o;else e:for(;Z!==null;){if(i=Z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:da(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,Z=y;break e}Z=i.return}}var m=e.current;for(Z=m;Z!==null;){o=Z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,Z=w;else e:for(o=m;Z!==null;){if(a=Z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ru(9,a)}}catch(k){He(a,a.return,k)}if(a===o){Z=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,Z=_;break e}Z=a.return}}if(be=s,Cs(),Gr&&typeof Gr.onPostCommitFiberRoot=="function")try{Gr.onPostCommitFiberRoot(Eu,e)}catch{}n=!0}return n}finally{je=r,cr.transition=t}}return!1}function xg(e,t,r){t=ho(r,t),t=Qx(e,t,1),e=ds(e,t,1),t=_t(),e!==null&&(tl(e,1,t),Ut(e,t))}function He(e,t,r){if(e.tag===3)xg(e,e,r);else for(;t!==null;){if(t.tag===3){xg(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fs===null||!fs.has(n))){e=ho(r,e),e=Zx(t,e,1),t=ds(t,e,1),e=_t(),t!==null&&(tl(t,1,e),Ut(t,e));break}}t=t.return}}function gC(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=_t(),e.pingedLanes|=e.suspendedLanes&r,it===e&&(at&r)===r&&(nt===4||nt===3&&(at&130023424)===at&&500>Ge()-Jm?Qs(e,0):Zm|=r),Ut(e,t)}function gw(e,t){t===0&&(e.mode&1?(t=jl,jl<<=1,!(jl&130023424)&&(jl=4194304)):t=1);var r=_t();e=kn(e,t),e!==null&&(tl(e,t,r),Ut(e,r))}function yC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),gw(e,r)}function xC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(M(314))}n!==null&&n.delete(t),gw(e,r)}var yw;yw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ft.current)Dt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Dt=!1,oC(e,t,r);Dt=!!(e.flags&131072)}else Dt=!1,Fe&&t.flags&1048576&&_x(t,Ic,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;oc(e,t),e=t.pendingProps;var s=lo(t,pt.current);qi(t,r),s=Hm(null,t,n,e,s,r);var i=qm();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(n)?(i=!0,Ac(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Um(t),s.updater=Au,t.stateNode=s,s._reactInternals=t,ah(t,n,e,r),t=uh(null,t,n,!0,i,r)):(t.tag=0,Fe&&i&&Rm(t),yt(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(oc(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=bC(n),e=vr(n,e),s){case 0:t=ch(null,t,n,e,r);break e;case 1:t=cg(null,t,n,e,r);break e;case 11:t=ag(null,t,n,e,r);break e;case 14:t=lg(null,t,n,vr(n.type,e),r);break e}throw Error(M(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:vr(n,s),ch(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:vr(n,s),cg(e,t,n,s,r);case 3:e:{if(tw(t),e===null)throw Error(M(387));n=t.pendingProps,i=t.memoizedState,s=i.element,Nx(e,t),Lc(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ho(Error(M(423)),t),t=ug(e,t,n,r,s);break e}else if(n!==s){s=ho(Error(M(424)),t),t=ug(e,t,n,r,s);break e}else for(Kt=us(t.stateNode.containerInfo.firstChild),Qt=t,Fe=!0,br=null,r=Cx(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(co(),n===s){t=Sn(e,t,r);break e}yt(e,t,n,r)}t=t.child}return t;case 5:return Px(t),e===null&&sh(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Xf(n,s)?o=null:i!==null&&Xf(n,i)&&(t.flags|=32),ew(e,t),yt(e,t,o,r),t.child;case 6:return e===null&&sh(t),null;case 13:return rw(e,t,r);case 4:return Bm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=uo(t,null,n,r):yt(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:vr(n,s),ag(e,t,n,s,r);case 7:return yt(e,t,t.pendingProps,r),t.child;case 8:return yt(e,t,t.pendingProps.children,r),t.child;case 12:return yt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,Oe(Mc,n._currentValue),n._currentValue=o,i!==null)if(Er(i.value,o)){if(i.children===s.children&&!Ft.current){t=Sn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);
vendor: 4,300 bytes, line 40
40i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=xn(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),ih(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(M(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),ih(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}yt(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,qi(t,r),s=fr(s),n=n(s),t.flags|=1,yt(e,t,n,r),t.child;case 14:return n=t.type,s=vr(n,t.pendingProps),s=vr(n.type,s),lg(e,t,n,s,r);case 15:return Jx(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:vr(n,s),oc(e,t),t.tag=1,$t(n)?(e=!0,Ac(t)):e=!1,qi(t,r),Kx(t,n,s),ah(t,n,s,r),uh(null,t,n,!0,e,r);case 19:return nw(e,t,r);case 22:return Xx(e,t,r)}throw Error(M(156,t.tag))};function xw(e,t){return q0(e,t)}function wC(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(e,t,r,n){return new wC(e,t,r,n)}function rp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bC(e){if(typeof e=="function")return rp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bm)return 11;if(e===_m)return 14}return 2}function ms(e,t){var r=e.alternate;return r===null?(r=lr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function cc(e,t,r,n,s,i){var o=2;if(n=e,typeof e=="function")rp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Oi:return Zs(r.children,s,i,t);case wm:o=8,s|=8;break;case Of:return e=lr(12,r,t,s|2),e.elementType=Of,e.lanes=i,e;case Af:return e=lr(13,r,t,s),e.elementType=Af,e.lanes=i,e;case Rf:return e=lr(19,r,t,s),e.elementType=Rf,e.lanes=i,e;case P0:return Mu(r,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j0:o=10;break e;case N0:o=9;break e;case bm:o=11;break e;case _m:o=14;break e;case Yn:o=16,n=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=lr(o,r,t,s),t.elementType=e,t.type=n,t.lanes=i,t}function Zs(e,t,r,n){return e=lr(7,e,n,t),e.lanes=r,e}function Mu(e,t,r,n){return e=lr(22,e,n,t),e.elementType=P0,e.lanes=r,e.stateNode={isHidden:!1},e}function qd(e,t,r){return e=lr(6,e,null,t),e.lanes=r,e}function Yd(e,t,r){return t=lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _C(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jd(0),this.expirationTimes=jd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jd(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function np(e,t,r,n,s,i,o,a,l){return e=new _C(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=lr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Um(i),e}function kC(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,591 bytes, line 40
40return{$$typeof:Ti,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function ww(e){if(!e)return ys;e=e._reactInternals;e:{if(ci(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var r=e.type;if($t(r))return wx(e,r,t)}return t}function bw(e,t,r,n,s,i,o,a,l){return e=np(r,n,!0,e,s,i,o,a,l),e.context=ww(null),r=e.current,n=_t(),s=hs(r),i=xn(n,s),i.callback=t??null,ds(r,i,s),e.current.lanes=s,tl(e,s,n),Ut(e,n),e}function Du(e,t,r,n){var s=t.current,i=_t(),o=hs(s);return r=ww(r),t.context===null?t.context=r:t.pendingContext=r,t=xn(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ds(s,t,o),e!==null&&(Sr(e,s,o,i),nc(e,s,o)),o}function Hc(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 wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function sp(e,t){wg(e,t),(e=e.alternate)&&wg(e,t)}function SC(){return null}var _w=typeof reportError=="function"?reportError:function(e){console.error(e)};function ip(e){this._internalRoot=e}Lu.prototype.render=ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));Du(e,t,null,null)};Lu.prototype.unmount=ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ri(function(){Du(null,e,null,null)}),t[_n]=null}};function Lu(e){this._internalRoot=e}Lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=X0();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Kn.length&&t!==0&&t<Kn[r].priority;r++);Kn.splice(r,0,e),r===0&&tx(e)}};function op(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bg(){}function EC(e,t,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var u=Hc(o);i.call(u)}}var o=bw(t,n,e,0,null,!1,!1,"",bg);return e._reactRootContainer=o,e[_n]=o.current,Oa(e.nodeType===8?e.parentNode:e),ri(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var u=Hc(l);a.call(u)}}var l=np(e,0,!1,null,null,!1,!1,"",bg);return e._reactRootContainer=l,e[_n]=l.current,Oa(e.nodeType===8?e.parentNode:e),ri(function(){Du(t,l,r,n)}),l}function $u(e,t,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Hc(o);a.call(l)}}Du(t,o,e,s)}else o=EC(r,t,e,s,n);return Hc(o)}Z0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Xo(t.pendingLanes);r!==0&&(Em(t,r|1),Ut(t,Ge()),!(be&6)&&(mo=Ge()+500,Cs()))}break;case 13:ri(function(){var n=kn(e,1);if(n!==null){var s=_t();Sr(n,e,1,s)}}),sp(e,1)}};Cm=function(e){if(e.tag===13){var t=kn(e,134217728);if(t!==null){var r=_t();Sr(t,e,134217728,r)}sp(e,134217728)}};J0=function(e){if(e.tag===13){var t=hs(e),r=kn(e,t);if(r!==null){var n=_t();Sr(r,e,t,n)}sp(e,t)}};X0=function(){return je};ex=function(e,t){var r=je;try{return je=e,t()}finally{je=r}};zf=function(e,t,r){switch(t){case"input":if(Df(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=Pu(n);if(!s)throw Error(M(90));O0(n),Df(n,s)}}}break;case"textarea":R0(e,r);break;case"select":t=r.value,t!=null&&Wi(e,!!r.multiple,t,!1)}};U0=Xm;B0=ri;var CC={usingClientEntryPoint:!1,Events:[nl,Mi,Pu,F0,$0,Xm]},Wo={findFiberByHostInstance:Ws,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jC={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:Tn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=V0(e),e===null?null:e.stateNode},findFiberByHostInstance:Wo.findFiberByHostInstance||SC,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 Fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fl.isDisabled&&Fl.supportsFiber)try{Eu=Fl.inject(jC),Gr=Fl}catch{}}er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CC;er.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!op(t))throw Error(M(200));return kC(e,t,null,r)};er.createRoot=function(e,t){if(!op(e))throw Error(M(299));var r=!1,n="",s=_w;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=np(e,1,!1,null,null,r,!1,n,s),e[_n]=t.current,Oa(e.nodeType===8?e.parentNode:e),new ip(t)};er.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=V0(t),e=e===null?null:e.stateNode,e};er.flushSync=function(e){return ri(e)};er.hydrate=function(e,t,r){if(!Fu(t))throw Error(M(200));return $u(null,e,t,!0,r)};er.hydrateRoot=function(e,t,r){if(!op(e))throw Error(M(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=_w;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=bw(t,null,e,1,r??null,s,!1,i,o),e[_n]=t.current,Oa(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new Lu(t)};er.render=function(e,t,r){if(!Fu(t))throw Error(M(200));return $u(null,e,t,!1,r)};er.unmountComponentAtNode=function(e){if(!Fu(e))throw Error(M(40));return e._reactRootContainer?(ri(function(){$u(null,null,e,!1,function(){e._reactRootContainer=null,e[_n]=null})}),!0):!1};er.unstable_batchedUpdates=Xm;er.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Fu(r))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return $u(e,t,r,!1,n)};er.version="18.3.1-next-f1338f8080-20240426";function kw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kw)}catch(e){console.error(e)}}kw(),k0.exports=er;var il=k0.exports;const Sw=u0(il);var Ew,_g=il;Ew=_g.createRoot,_g.hydrateRoot;const NC=1,PC=1e6;let Gd=0;function TC(){return Gd=(Gd+1)%Number.MAX_SAFE_INTEGER,Gd.toString()}const Kd=new Map,kg=e=>{if(Kd.has(e))return;const t=setTimeout(()=>{Kd.delete(e),ma({type:"REMOVE_TOAST",toastId:e})},PC);Kd.set(e,t)},OC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,NC)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?kg(r):e.toasts.forEach(n=>{kg(n.id)}),{...e,toasts:e.toasts.map(n=>
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},uc=[];let dc={toasts:[]};function ma(e){dc=OC(dc,e),uc.forEach(t=>{t(dc)})}function _h({...e}){const t=TC(),r=s=>ma({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>ma({type:"DISMISS_TOAST",toastId:t});return ma({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function ap(){const[e,t]=v.useState(dc);return v.useEffect(()=>(uc.push(t),()=>{const r=uc.indexOf(t);r>-1&&uc.splice(r,1)}),[e]),{...e,toast:_h,dismiss:r=>ma({type:"DISMISS_TOAST",toastId:r})}}function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function AC(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Cw(...e){return t=>e.forEach(r=>AC(r,t))}function Xe(...e){return v.useCallback(Cw(...e),e)}function RC(e,t=[]){let r=[];function n(i,o){const a=v.createContext(o),l=r.length;r=[...r,o];function u(f){const{scope:h,children:p,...x}=f,g=(h==null?void 0:h[e][l])||a,b=v.useMemo(()=>x,Object.values(x));return c.jsx(g.Provider,{value:b,children:p})}function d(f,h){const p=(h==null?void 0:h[e][l])||a,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const s=()=>{const i=r.map(o=>v.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,IC(s,...t)]}function IC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var ni=v.forwardRef((e,t)=>{const{children:r,...n}=e,s=v.Children.toArray(r),i=s.find(MC);if(i){const o=i.props.children,a=s.map(l=>l===i?v.Children.count(o)>1?v.Children.only(null):v.isValidElement(o)?o.props.children:null:l);return c.jsx(kh,{...n,ref:t,children:v.isValidElement(o)?v.cloneElement(o,void 0,a):null})}return c.jsx(kh,{...n,ref:t,children:r})});ni.displayName="Slot";var kh=v.forwardRef((e,t)=>{const{children:r,...n}=e;if(v.isValidElement(r)){const s=LC(r);return v.cloneElement(r,{...DC(n,r.props),ref:t?Cw(t,s):s})}return v.Children.count(r)>1?v.Children.only(null):null});kh.displayName="SlotClone";var jw=({children:e})=>c.jsx(c.Fragment,{children:e});function MC(e){return v.isValidElement(e)&&e.type===jw}function DC(e,t){const r={...t};for(const n in t){const s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{i(...a),s(...a)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function LC(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function lp(e){const t=e+"CollectionProvider",[r,n]=RC(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:x,children:g}=p,b=O.useRef(null),y=O.useRef(new Map).current;return c.jsx(s,{scope:x,itemMap:y,collectionRef:b,children:g})};o.displayName=t;const a=e+"CollectionSlot",l=O.forwardRef((p,x)=>{const{scope:g,children:b}=p,y=i(a,g),m=Xe(x,y.collectionRef);return c.jsx(ni,{ref:m,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=O.forwardRef((p,x)=>{const{scope:g,children:b,...y}=p,m=O.useRef(null),w=Xe(x,m),_=i(u,g);return O.useEffect(()=>(_.itemMap.set(m,{ref:m,...y}),()=>void _.itemMap.delete(m))),c.jsx(ni,{[d]:"",ref:w,children:b})});f.displayName=u;function h(p){const x=i(e+"CollectionConsumer",p);return O.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,k)=>y.indexOf(_.ref.current)-y.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:l,ItemSlot:f},h,n]}function On(e,t=[]){let r=[];function n(i,o){const a=v.createContext(o),l=r.length;r=[...r,o];const u=f=>{var y;const{scope:h,children:p,...x}=f,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,b=v.useMemo(()=>x,Object.values(x));return c.jsx(g.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(f,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=r.map(o=>v.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,FC(s,...t)]}function FC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var $C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ke=$C.reduce((e,t)=>
vendor: 4,235 bytes, line 40
40{const r=v.forwardRef((n,s)=>{const{asChild:i,...o}=n,a=i?ni:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...o,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nw(e,t){e&&il.flushSync(()=>e.dispatchEvent(t))}function Wt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function UC(e,t=globalThis==null?void 0:globalThis.document){const r=Wt(e);v.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var BC="DismissableLayer",Sh="dismissableLayer.update",WC="dismissableLayer.pointerDownOutside",zC="dismissableLayer.focusOutside",Sg,Pw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uu=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=v.useContext(Pw),[d,f]=v.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),x=Xe(t,N=>f(N)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),m=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,_=m>=y,k=HC(N=>{const P=N.target,$=[...u.branches].some(U=>U.contains(P));!_||$||(s==null||s(N),o==null||o(N),N.defaultPrevented||a==null||a())},h),C=qC(N=>{const P=N.target;[...u.branches].some(U=>U.contains(P))||(i==null||i(N),o==null||o(N),N.defaultPrevented||a==null||a())},h);return UC(N=>{m===u.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&a&&(N.preventDefault(),a()))},h),v.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Sg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Eg(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Sg)}},[d,h,r,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Eg())},[d,u]),v.useEffect(()=>{const N=()=>p({});return document.addEventListener(Sh,N),()=>document.removeEventListener(Sh,N)},[]),c.jsx(ke.div,{...l,ref:x,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,k.onPointerDownCapture)})});Uu.displayName=BC;var VC="DismissableLayerBranch",Tw=v.forwardRef((e,t)=>{const r=v.useContext(Pw),n=v.useRef(null),s=Xe(t,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),c.jsx(ke.div,{...e,ref:s})});Tw.displayName=VC;function HC(e,t=globalThis==null?void 0:globalThis.document){const r=Wt(e),n=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){Ow(WC,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function qC(e,t=globalThis==null?void 0:globalThis.document){const r=Wt(e),n=v.useRef(!1);return v.useEffect(()=>{const s=i=>{i.target&&!n.current&&Ow(zC,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Eg(){const e=new CustomEvent(Sh);document.dispatchEvent(e)}function Ow(e,t,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Nw(s,i):s.dispatchEvent(i)}var YC=Uu,GC=Tw,Cr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},KC="Portal",cp=v.forwardRef((e,t)=>
40{var a;const{container:r,...n}=e,[s,i]=v.useState(!1);Cr(()=>i(!0),[]);const o=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Sw.createPortal(c.jsx(ke.div,{...n,ref:t}),o):null});cp.displayName=KC;function QC(e,t){return v.useReducer((r,n)=>t[r][n]??r,e)}var js=e=>{const{present:t,children:r}=e,n=ZC(t),s=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Xe(n.ref,JC(s));return typeof r=="function"||n.isPresent?v.cloneElement(s,{ref:i}):null};js.displayName="Presence";function ZC(e){const[t,r]=v.useState(),n=v.useRef({}),s=v.useRef(e),i=v.useRef("none"),o=e?"mounted":"unmounted",[a,l]=QC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=$l(n.current);i.current=a==="mounted"?u:"none"},[a]),Cr(()=>{const u=n.current,d=s.current;if(d!==e){const h=i.current,p=$l(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Cr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const g=$l(n.current).includes(p.animationName);if(p.target===t&&g&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(i.current=$l(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function $l(e){return(e==null?void 0:e.animationName)||"none"}function JC(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Ns({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,s]=XC({defaultProp:t,onChange:r}),i=e!==void 0,o=i?e:n,a=Wt(r),l=v.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else s(u)},[i,e,s,a]);return[o,l]}function XC({defaultProp:e,onChange:t}){const r=v.useState(e),[n]=r,s=v.useRef(n),i=Wt(t);return v.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}var ej="VisuallyHidden",Bu=v.forwardRef((e,t)=>c.jsx(ke.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Bu.displayName=ej;var tj=Bu,up="ToastProvider",[dp,rj,nj]=lp("Toast"),[Aw,W3]=On("Toast",[nj]),[sj,Wu]=Aw(up),Rw=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=v.useState(null),[u,d]=v.useState(0),f=v.useRef(!1),h=v.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${up}\`. Expected non-empty \`string\`.`),c.jsx(dp.Provider,{scope:t,children:c.jsx(sj,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>d(p=>p+1),[]),onToastRemove:v.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};Rw.displayName=up;var Iw="ToastViewport",ij=["F8"],Eh="toast.viewportPause",Ch="toast.viewportResume",Mw=v.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=ij,label:s="Notifications ({hotkey})",...i}=e,o=Wu(Iw,r),a=rj(r),l=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=Xe(t,f,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;v.useEffect(()=>{const b=y=>{var w;n.length!==0&&n.every(_=>y[_]||y.code===_)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),v.useEffect(()=>{const b=l.current,y=f.current;if(x&&b&&y){const m=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(Eh);y.dispatchEvent(C),o.isClosePausedRef.current=!0}},w=()=>
40{if(o.isClosePausedRef.current){const C=new CustomEvent(Ch);y.dispatchEvent(C),o.isClosePausedRef.current=!1}},_=C=>{!b.contains(C.relatedTarget)&&w()},k=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",m),b.addEventListener("focusout",_),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",k),window.addEventListener("blur",m),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",k),window.removeEventListener("blur",m),window.removeEventListener("focus",w)}}},[x,o.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:b})=>{const m=a().map(w=>{const _=w.ref.current,k=[_,...yj(_)];return b==="forwards"?k:k.reverse()});return(b==="forwards"?m.reverse():m).flat()},[a]);return v.useEffect(()=>{const b=f.current;if(b){const y=m=>{var k,C,N;const w=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!w){const P=document.activeElement,$=m.shiftKey;if(m.target===b&&$){(k=u.current)==null||k.focus();return}const R=g({tabbingDirection:$?"backwards":"forwards"}),V=R.findIndex(D=>D===P);Qd(R.slice(V+1))?m.preventDefault():$?(C=u.current)==null||C.focus():(N=d.current)==null||N.focus()}};return b.addEventListener("keydown",y),()=>b.removeEventListener("keydown",y)}},[a,g]),c.jsxs(GC,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&c.jsx(jh,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});Qd(b)}}),c.jsx(dp.Slot,{scope:r,children:c.jsx(ke.ol,{tabIndex:-1,...i,ref:h})}),x&&c.jsx(jh,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});Qd(b)}})]})});Mw.displayName=Iw;var Dw="ToastFocusProxy",jh=v.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,i=Wu(Dw,r);return c.jsx(Bu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&n()}})});jh.displayName=Dw;var zu="Toast",oj="toast.swipeStart",aj="toast.swipeMove",lj="toast.swipeCancel",cj="toast.swipeEnd",Lw=v.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=e,[a=!0,l]=Ns({prop:n,defaultProp:s,onChange:i});return c.jsx(js,{present:r||a,children:c.jsx(fj,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Wt(e.onPause),onResume:Wt(e.onResume),onSwipeStart:pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:pe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Lw.displayName=zu;var[uj,dj]=Aw(zu,{onClose(){}}),fj=v.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...x}=e,g=Wu(zu,r),[b,y]=v.useState(null),m=Xe(t,D=>y(D)),w=v.useRef(null),_=v.useRef(null),k=s||g.duration,C=v.useRef(0),N=v.useRef(k),P=v.useRef(0),{onToastAdd:$,onToastRemove:U}=g,J=Wt(()=>{var X;(b==null?void 0:b.contains(document.activeElement))&&((X=g.viewport)==null||X.focus()),o()}),R=v.useCallback(D=>
vendor: 4,533 bytes, line 40
40{!D||D===1/0||(window.clearTimeout(P.current),C.current=new Date().getTime(),P.current=window.setTimeout(J,D))},[J]);v.useEffect(()=>{const D=g.viewport;if(D){const X=()=>{R(N.current),u==null||u()},G=()=>{const I=new Date().getTime()-C.current;N.current=N.current-I,window.clearTimeout(P.current),l==null||l()};return D.addEventListener(Eh,G),D.addEventListener(Ch,X),()=>{D.removeEventListener(Eh,G),D.removeEventListener(Ch,X)}}},[g.viewport,k,l,u,R]),v.useEffect(()=>{i&&!g.isClosePausedRef.current&&R(k)},[i,k,g.isClosePausedRef,R]),v.useEffect(()=>($(),()=>U()),[$,U]);const V=v.useMemo(()=>b?Vw(b):null,[b]);return g.viewport?c.jsxs(c.Fragment,{children:[V&&c.jsx(hj,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),c.jsx(uj,{scope:r,onClose:J,children:il.createPortal(c.jsx(dp.ItemSlot,{scope:r,children:c.jsx(YC,{asChild:!0,onEscapeKeyDown:pe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||J(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(ke.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:pe(e.onPointerDown,D=>{D.button===0&&(w.current={x:D.clientX,y:D.clientY})}),onPointerMove:pe(e.onPointerMove,D=>{if(!w.current)return;const X=D.clientX-w.current.x,G=D.clientY-w.current.y,I=!!_.current,E=["left","right"].includes(g.swipeDirection),L=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,K=E?L(0,X):0,H=E?0:L(0,G),te=D.pointerType==="touch"?10:2,me={x:K,y:H},Ne={originalEvent:D,delta:me};I?(_.current=me,Ul(aj,f,Ne,{discrete:!1})):Cg(me,g.swipeDirection,te)?(_.current=me,Ul(oj,d,Ne,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(X)>te||Math.abs(G)>te)&&(w.current=null)}),onPointerUp:pe(e.onPointerUp,D=>{const X=_.current,G=D.target;if(G.hasPointerCapture(D.pointerId)&&G.releasePointerCapture(D.pointerId),_.current=null,w.current=null,X){const I=D.currentTarget,E={originalEvent:D,delta:X};Cg(X,g.swipeDirection,g.swipeThreshold)?Ul(cj,p,E,{discrete:!0}):Ul(lj,h,E,{discrete:!0}),I.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),hj=e=>{const{__scopeToast:t,children:r,...n}=e,s=Wu(zu,t),[i,o]=v.useState(!1),[a,l]=v.useState(!1);return vj(()=>o(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(cp,{asChild:!0,children:c.jsx(Bu,{...n,children:i&&c.jsxs(c.Fragment,{children:[s.label," ",r]})})})},mj="ToastTitle",Fw=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return c.jsx(ke.div,{...n,ref:t})});Fw.displayName=mj;var pj="ToastDescription",$w=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return c.jsx(ke.div,{...n,ref:t})});$w.displayName=pj;var Uw="ToastAction",Bw=v.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?c.jsx(zw,{altText:r,asChild:!0,children:c.jsx(fp,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Uw}\`. Expected non-empty \`string\`.`),null)});Bw.displayName=Uw;var Ww="ToastClose",fp=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=dj(Ww,r);return c.jsx(zw,{asChild:!0,children:c.jsx(ke.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,s.onClose)})})});fp.displayName=Ww;var zw=v.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return c.jsx(ke.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function Vw(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),gj(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Vw(n))}}),t}function Ul(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Nw(s,i):s.dispatchEvent(i)}var Cg=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),i=n>s;return t==="left"||t==="right"?i&&n>r:!i&&s>r};function vj(e=()=>{}){const t=Wt(e);Cr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}
vendor: 5,096 bytes, lines 40-85
40function gj(e){return e.nodeType===e.ELEMENT_NODE}function yj(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Qd(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var xj=Rw,Hw=Mw,qw=Lw,Yw=Fw,Gw=$w,Kw=Bw,Qw=fp;function Zw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Zw(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Jw(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Zw(e))&&(n&&(n+=" "),n+=t);return n}const jg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ng=Jw,Vu=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Ng(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],f=i==null?void 0:i[u];if(d===null)return null;const h=jg(d)||jg(f);return s[u][h]}),a=r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(x=>{let[g,b]=x;return Array.isArray(b)?b.includes({...i,...a}[g]):{...i,...a}[g]===b})?[...u,f,h]:u},[]);return Ng(e,o,l,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const wj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xw=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var bj={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 _j=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...a},l)=>v.createElement("svg",{ref:l,...bj,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Xw("lucide",s),...a},[...o.map(([u,d])=>v.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const ye=(e,t)=>{const r=v.forwardRef(({className:n,...s},i)=>v.createElement(_j,{ref:i,iconNode:t,className:Xw(`lucide-${wj(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const eb=ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Hu=ye("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const kj=ye("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 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 Sj=ye("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 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 tb=ye("BrainCircuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
85],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]);/** 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 qu=ye("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 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 Ej=ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 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 Cj=ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 jj=ye("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 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 Nj=ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 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 Yt=ye("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const Pj=ye("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const Tj=ye("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 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 Oj=ye("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 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 hp=ye("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 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 Aj=ye("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const Rj=ye("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** 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 Ij=ye("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 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 Mj=ye("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const Dj=ye("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const Lj=ye("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const Fj=ye("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const $j=ye("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const Uj=ye("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const rb=ye("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Bj=ye("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const Wj=ye("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const zj=ye("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const Vj=ye("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const Hj=ye("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const qj=ye("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const Yj=ye("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const qc=ye("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"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const Gj=ye("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const nb=ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 8,565 bytes, lines 235-240
235],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const sb=ye("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),mp="-",Kj=e=>{const t=Zj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(mp);return a[0]===""&&a.length!==1&&a.shift(),ib(a,t)||Qj(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},ib=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?ib(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(mp);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Pg=/^\[(.+)\]$/,Qj=e=>{if(Pg.test(e)){const t=Pg.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Zj=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Xj(Object.entries(e.classGroups),r).forEach(([i,o])=>{Nh(o,n,i,t)}),n},Nh=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Tg(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(Jj(s)){Nh(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{Nh(o,Tg(t,i),r,n)})})},Tg=(e,t)=>{let r=e;return t.split(mp).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Jj=e=>e.isThemeGetter,Xj=(e,t)=>t?e.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[r,s]}):e,eN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},ob="!",tN=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,d=0,f;for(let b=0;b<a.length;b++){let y=a[b];if(u===0){if(y===s&&(n||a.slice(b,b+i)===t)){l.push(a.slice(d,b)),d=b+i;continue}if(y==="/"){f=b;continue}}y==="["?u++:y==="]"&&u--}const h=l.length===0?a:a.substring(d),p=h.startsWith(ob),x=p?h.substring(1):h,g=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:o}):o},rN=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},nN=e=>({cache:eN(e.cacheSize),parseClassName:tN(e),...Kj(e)}),sN=/\s+/,iN=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(sN);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=r(u);let x=!!p,g=n(x?h.substring(0,p):h);if(!g){if(!x){a=u+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=u+(a.length>0?" "+a:a);continue}x=!1}const b=rN(d).join(":"),y=f?b+ob:b,m=y+g;if(i.includes(m))continue;i.push(m);const w=s(g,x);for(let _=0;_<w.length;++_){const k=w[_];i.push(y+k)}a=u+(a.length>0?" "+a:a)}return a};function oN(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ab(t))&&(n&&(n+=" "),n+=r);return n}const ab=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ab(e[n]))&&(r&&(r+=" "),r+=t);return r};function aN(e,...t){let r,n,s,i=o;function o(l){const u=t.reduce((d,f)=>f(d),e());return r=nN(u),n=r.cache.get,s=r.cache.set,i=a,a(l)}function a(l){const u=n(l);if(u)return u;const d=iN(l,r);return s(l,d),d}return function(){return i(oN.apply(null,arguments))}}const Me=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},lb=/^\[(?:([a-z-]+):)?(.+)\]$/i,lN=/^\d+\/\d+$/,cN=new Set(["px","full","screen"]),uN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dN=/\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$/,fN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>Gi(e)||cN.has(e)||lN.test(e),Fn=e=>Co(e,"length",_N),Gi=e=>!!e&&!Number.isNaN(Number(e)),Zd=e=>Co(e,"number",Gi),zo=e=>!!e&&Number.isInteger(Number(e)),pN=e=>e.endsWith("%")&&Gi(e.slice(0,-1)),de=e=>lb.test(e),$n=e=>uN.test(e),vN=new Set(["length","size","percentage"]),gN=e=>Co(e,vN,cb),yN=e=>Co(e,"position",cb),xN=new Set(["image","url"]),wN=e=>Co(e,xN,SN),bN=e=>Co(e,"",kN),Vo=()=>!0,Co=(e,t,r)=>{const n=lb.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},_N=e=>dN.test(e)&&!fN.test(e),cb=()=>!1,kN=e=>hN.test(e),SN=e=>mN.test(e),EN=()=>{const e=Me("colors"),t=Me("spacing"),r=Me("blur"),n=Me("brightness"),s=Me("borderColor"),i=Me("borderRadius"),o=Me("borderSpacing"),a=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),f=Me("invert"),h=Me("gap"),p=Me("gradientColorStops"),x=Me("gradientColorStopPositions"),g=Me("inset"),b=Me("margin"),y=Me("opacity"),m=Me("padding"),w=Me("saturate"),_=Me("scale"),k=Me("sepia"),C=Me("skew"),N=Me("space"),P=Me("translate"),$=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",de,t],R=()=>[de,t],V=()=>["",rn,Fn],D=()=>["auto",Gi,de],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],I=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",de],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Gi,de];return{cacheSize:500,separator:":",theme:{colors:[Vo],spacing:[rn,Fn],blur:["none","",$n,de],brightness:H(),borderColor:[e],borderRadius:["none","","full",$n,de],borderSpacing:R(),borderWidth:V(),contrast:H(),grayscale:L(),hueRotate:H(),invert:L(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[pN,Fn],inset:J(),margin:J(),opacity:H(),padding:R(),saturate:H(),scale:H(),sepia:L(),skew:H(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[$n]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),de]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zo,de]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",zo,de]}],"grid-cols":[{"grid-cols":[Vo]}],"col-start-end":[{col:["auto",{span:["full",zo,de]},de]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Vo]}],"row-start-end":[{row:["auto",{span:[zo,de]},de]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}
vendor: 9,247 bytes, line 240
240],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",de,t]}],"min-w":[{"min-w":[de,t,"min","max","fit"]}],"max-w":[{"max-w":[de,t,"none","full","min","max","fit","prose",{screen:[$n]},$n]}],h:[{h:[de,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$n,Fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zd]}],"font-family":[{font:[Vo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",de]}],"line-clamp":[{"line-clamp":["none",Gi,Zd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rn,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rn,Fn]}],"underline-offset":[{"underline-offset":["auto",rn,de]}],"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",de]}],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",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),yN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:G()}],"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:["",...G()]}],"outline-offset":[{"outline-offset":[rn,de]}],"outline-w":[{outline:[rn,Fn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[rn,Fn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$n,bN]}],"shadow-color":[{shadow:[Vo]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...I(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":I()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$n,de]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",de]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[zo,de]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],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",de]}],"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 240
240],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",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rn,Fn,Zd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},CN=aN(EN);function le(...e){return CN(Jw(e))}const jN=xj,ub=v.forwardRef(({className:e,...t},r)=>c.jsx(Hw,{ref:r,className:le("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}));ub.displayName=Hw.displayName;const NN=Vu("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"}}),db=v.forwardRef(({className:e,variant:t,...r},n)=>c.jsx(qw,{ref:n,className:le(NN({variant:t}),e),...r}));db.displayName=qw.displayName;const PN=v.forwardRef(({className:e,...t},r)=>c.jsx(Kw,{ref:r,className:le("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));PN.displayName=Kw.displayName;const fb=v.forwardRef(({className:e,...t},r)=>c.jsx(Qw,{ref:r,className:le("absolute right-2 top-2 rounded-md p-1 text-foreground
240/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(nb,{className:"h-4 w-4"})}));fb.displayName=Qw.displayName;const hb=v.forwardRef(({className:e,...t},r)=>c.jsx(Yw,{ref:r,className:le("text-sm font-semibold",e),...t}));hb.displayName=Yw.displayName;const mb=v.forwardRef(({className:e,...t},r)=>c.jsx(Gw,{ref:r,className:le("text-sm opacity-90",e),...t}));mb.displayName=Gw.displayName;function TN(){const{toasts:e}=ap();return c.jsxs(jN,{children:[e.map(function({id:t,title:r,description:n,action:s,...i}){return c.jsxs(db,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[r&&c.jsx(hb,{children:r}),n&&c.jsx(mb,{children:n})]}),s,c.jsx(fb,{})]},t)}),c.jsx(ub,{})]})}var Og=["light","dark"],ON="(prefers-color-scheme: dark)",AN=v.createContext(void 0),RN={setTheme:e=>{},themes:[]},IN=()=>{var e;return(e=v.useContext(AN))!=null?e:RN};v.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=s?Og.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(x,g=!1,b=!0)=>{let y=o?o[x]:x,m=g?x+"|| ''":`'${y}'`,w="";return s&&b&&!g&&Og.includes(x)&&(w+=`d.style.colorScheme = '${x}';`),r==="class"?g||y?w+=`c.add(${m})`:w+="null":y&&(w+=`d[s](n,${m})`),w},p=e?`!function(){${d}${h(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${ON}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var MN=e=>{switch(e){case"success":return FN;case"info":return UN;case"warning":return $N;case"error":return BN;default:return null}},DN=Array(12).fill(0),LN=({visible:e})=>O.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},O.createElement("div",{className:"sonner-spinner"},DN.map((t,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),FN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),$N=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),UN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),BN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),WN=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Ph=1,zN=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
240{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ph++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0;return n.then(async i=>{if(HN(i)&&!i.ok){s=!1;let o=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:r,type:"error",message:o,description:a})}else if(t.success!==void 0){s=!1;let o=typeof t.success=="function"?await t.success(i):t.success,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:r,type:"success",message:o,description:a})}}).catch(async i=>{if(t.error!==void 0){s=!1;let o=typeof t.error=="function"?await t.error(i):t.error,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:r,type:"error",message:o,description:a})}}).finally(()=>{var i;s&&(this.dismiss(r),r=void 0),(i=t.finally)==null||i.call(t)}),r},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Ph++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},Ht=new zN,VN=(e,t)=>{let r=(t==null?void 0:t.id)||Ph++;return Ht.addToast({title:e,...t,id:r}),r},HN=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qN=VN,YN=()=>Ht.toasts;Object.assign(qN,{success:Ht.success,info:Ht.info,warning:Ht.warning,error:Ht.error,custom:Ht.custom,message:Ht.message,promise:Ht.promise,dismiss:Ht.dismiss,loading:Ht.loading},{getHistory:YN});function GN(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}GN(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;
240left: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;background:var(--gray1);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}: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:0;right:0;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}
240: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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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%)} 241`);function Bl(e){return e.label!==void 0}
241var KN=3,QN="32px",ZN=4e3,JN=356,XN=14,eP=20,tP=200;function rP(...e){return e.filter(Boolean).join(" ")}var nP=e=>{var t,r,n,s,i,o,a,l,u,d;let{invert:f,toast:h,unstyled:p,interacting:x,setHeights:g,visibleToasts:b,heights:y,index:m,toasts:w,expanded:_,removeToast:k,defaultRichColors:C,closeButton:N,style:P,cancelButtonStyle:$,actionButtonStyle:U,className:J="",descriptionClassName:R="",duration:V,position:D,gap:X,loadingIcon:G,expandByDefault:I,classNames:E,icons:L,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:H,cn:te}=e,[me,Ne]=O.useState(!1),[vt,xe]=O.useState(!1),[Ct,rr]=O.useState(!1),[mr,Or]=O.useState(!1),[Os,Rn]=O.useState(0),[Ar,In]=O.useState(0),Ao=O.useRef(null),tn=O.useRef(null),yl=m===0,S=m+1<=b,j=h.type,T=h.dismissible!==!1,q=h.className||"",z=h.descriptionClassName||"",B=O.useMemo(()=>y.findIndex(ue=>ue.toastId===h.id)||0,[y,h.id]),re=O.useMemo(()=>{var ue;return(ue=h.closeButton)!=null?ue:N},[h.closeButton,N]),ce=O.useMemo(()=>h.duration||V||ZN,[h.duration,V]),We=O.useRef(0),Re=O.useRef(0),Rr=O.useRef(0),Mn=O.useRef(null),[hi,Ro]=D.split("-"),xl=O.useMemo(()=>y.reduce((ue,Ie,Pe)=>Pe>=B?ue:ue+Ie.height,0),[y,B]),Io=WN(),xd=h.invert||f,mi=j==="loading";Re.current=O.useMemo(()=>B*X+xl,[B,xl]),O.useEffect(()=>{Ne(!0)},[]),O.useLayoutEffect(()=>{if(!me)return;let ue=tn.current,Ie=ue.style.height;ue.style.height="auto";let Pe=ue.getBoundingClientRect().height;ue.style.height=Ie,In(Pe),g(Ir=>Ir.find(Mr=>Mr.toastId===h.id)?Ir.map(Mr=>Mr.toastId===h.id?{...Mr,height:Pe}:Mr):[{toastId:h.id,height:Pe,position:h.position},...Ir])},[me,h.title,h.description,g,h.id]);let Dn=O.useCallback(()=>{xe(!0),Rn(Re.current),g(ue=>ue.filter(Ie=>Ie.toastId!==h.id)),setTimeout(()=>{k(h)},tP)},[h,k,g,Re]);O.useEffect(()=>{if(h.promise&&j==="loading"||h.duration===1/0||h.type==="loading")return;let ue,Ie=ce;return _||x||H&&Io?(()=>{if(Rr.current<We.current){let Pe=new Date().getTime()-We.current;Ie=Ie-Pe}Rr.current=new Date().getTime()})():Ie!==1/0&&(We.current=new Date().getTime(),ue=setTimeout(()=>{var Pe;(Pe=h.onAutoClose)==null||Pe.call(h,h),Dn()},Ie)),()=>clearTimeout(ue)},[_,x,I,h,ce,Dn,h.promise,j,H,Io]),O.useEffect(()=>{let ue=tn.current;if(ue){let Ie=ue.getBoundingClientRect().height;return In(Ie),g(Pe=>[{toastId:h.id,height:Ie,position:h.position},...Pe]),()=>g(Pe=>Pe.filter(Ir=>Ir.toastId!==h.id))}},[g,h.id]),O.useEffect(()=>{h.delete&&Dn()},[Dn,h.delete]);function Zk(){return L!=null&&L.loading?O.createElement("div",{className:"sonner-loader","data-visible":j==="loading"},L.loading):G?O.createElement("div",{className:"sonner-loader","data-visible":j==="loading"},G):O.createElement(LN,{visible:j==="loading"})}return O.createElement("li",{"aria-live":h.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:tn,className:te(J,q,E==null?void 0:E.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,E==null?void 0:E.default,E==null?void 0:E[j],(r=h==null?void 0:h.classNames)==null?void 0:r[j]),"data-sonner-toast":"","data-rich-colors":(n=h.richColors)!=null?n:C,"data-styled":!(h.jsx||h.unstyled||p),"data-mounted":me,"data-promise":!!h.promise,"data-removed":vt,"data-visible":S,"data-y-position":hi,"data-x-position":Ro,"data-index":m,"data-front":yl,"data-swiping":Ct,"data-dismissible":T,"data-type":j,"data-invert":xd,"data-swipe-out":mr,"data-expanded":!!(_||I&&me),style:{"--index":m,"--toasts-before":m,"--z-index":w.length-m,"--offset":`${vt?Os:Re.current}px`,"--initial-height":I?"auto":`${Ar}px`,...P,...h.style},onPointerDown:ue=>{mi||!T||(Ao.current=new Date,Rn(Re.current),ue.target.setPointerCapture(ue.pointerId),ue.target.tagName!=="BUTTON"&&(rr(!0),Mn.current={x:ue.clientX,y:ue.clientY}))},onPointerUp:()=>{var ue,Ie,Pe,Ir;if(mr||!T)return;Mn.current=null;let Mr=Number(((ue=tn.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount").replace("px",""))||0),wl=new Date().getTime()-((Ie=Ao.current)==null?void 0:Ie.getTime()),Jk=Math.abs(Mr)/wl;if(Math.abs(Mr)>=eP||Jk>.11){Rn(Re.current),(Pe=h.onDismiss)==null||Pe.call(h,h),Dn(),Or(!0);return}(Ir=tn.current)==null||Ir.style.setProperty("--swipe-amount","0px"),rr(!1)},onPointerMove:ue=>{var Ie;if(!Mn.current||!T)return;let Pe=ue.clientY-Mn.current.y,Ir=ue.clientX-Mn.current.x,Mr=(hi==="top"?Math.min:Math.max)(0,Pe),wl=ue.pointerType==="touch"?10:2;Math.abs(Mr)>wl?(Ie=tn.current)==null||Ie.style.setProperty("--swipe-amount",`${Pe}px`):Math.abs(Ir)>wl&&(Mn.current=null)}},re&&!h.jsx?O.createElement("button",{"aria-label":K,"data-disabled":mi,"data-close-button":!0,onClick:mi||!T?()=>{}:()=>{var ue;Dn(),(ue=h.onDismiss)==null||ue.call(h,h)}
241,className:te(E==null?void 0:E.closeButton,(s=h==null?void 0:h.classNames)==null?void 0:s.closeButton)},O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,h.jsx||O.isValidElement(h.title)?h.jsx||h.title:O.createElement(O.Fragment,null,j||h.icon||h.promise?O.createElement("div",{"data-icon":"",className:te(E==null?void 0:E.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Zk():null,h.type!=="loading"?h.icon||(L==null?void 0:L[j])||MN(j):null):null,O.createElement("div",{"data-content":"",className:te(E==null?void 0:E.content,(o=h==null?void 0:h.classNames)==null?void 0:o.content)},O.createElement("div",{"data-title":"",className:te(E==null?void 0:E.title,(a=h==null?void 0:h.classNames)==null?void 0:a.title)},h.title),h.description?O.createElement("div",{"data-description":"",className:te(R,z,E==null?void 0:E.description,(l=h==null?void 0:h.classNames)==null?void 0:l.description)},h.description):null),O.isValidElement(h.cancel)?h.cancel:h.cancel&&Bl(h.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||$,onClick:ue=>{var Ie,Pe;Bl(h.cancel)&&T&&((Pe=(Ie=h.cancel).onClick)==null||Pe.call(Ie,ue),Dn())},className:te(E==null?void 0:E.cancelButton,(u=h==null?void 0:h.classNames)==null?void 0:u.cancelButton)},h.cancel.label):null,O.isValidElement(h.action)?h.action:h.action&&Bl(h.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||U,onClick:ue=>{var Ie,Pe;Bl(h.action)&&(ue.defaultPrevented||((Pe=(Ie=h.action).onClick)==null||Pe.call(Ie,ue),Dn()))},className:te(E==null?void 0:E.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function Ag(){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}var sP=e=>{let{invert:t,position:r="bottom-right",hotkey:n=["altKey","KeyT"],expand:s,closeButton:i,className:o,offset:a,theme:l="light",richColors:u,duration:d,style:f,visibleToasts:h=KN,toastOptions:p,dir:x=Ag(),gap:g=XN,loadingIcon:b,icons:y,containerAriaLabel:m="Notifications",pauseWhenPageIsHidden:w,cn:_=rP}=e,[k,C]=O.useState([]),N=O.useMemo(()=>Array.from(new Set([r].concat(k.filter(H=>H.position).map(H=>H.position)))),[k,r]),[P,$]=O.useState([]),[U,J]=O.useState(!1),[R,V]=O.useState(!1),[D,X]=O.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=O.useRef(null),I=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=O.useRef(null),L=O.useRef(!1),K=O.useCallback(H=>{var te;(te=k.find(me=>me.id===H.id))!=null&&te.delete||Ht.dismiss(H.id),C(me=>me.filter(({id:Ne})=>Ne!==H.id))},[k]);return O.useEffect(()=>Ht.subscribe(H=>{if(H.dismiss){C(te=>te.map(me=>me.id===H.id?{...me,delete:!0}:me));return}setTimeout(()=>{Sw.flushSync(()=>{C(te=>{let me=te.findIndex(Ne=>Ne.id===H.id);return me!==-1?[...te.slice(0,me),{...te[me],...H},...te.slice(me+1)]:[H,...te]})})})}),[]),O.useEffect(()=>{if(l!=="system"){X(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:H})=>{X(H?"dark":"light")})},[l]),O.useEffect(()=>{k.length<=1&&J(!1)},[k]),O.useEffect(()=>{let H=te=>{var me,Ne;n.every(vt=>te[vt]||te.code===vt)&&(J(!0),(me=G.current)==null||me.focus()),te.code==="Escape"&&(document.activeElement===G.current||(Ne=G.current)!=null&&Ne.contains(document.activeElement))&&J(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[n]),O.useEffect(()=>{if(G.current)return()=>{E.current&&(E.current.focus({preventScroll:!0}),E.current=null,L.current=!1)}},[G.current]),k.length?O.createElement("section",{"aria-label":`${m} ${I}`,tabIndex:-1},N.map((H,te)=>{var me;let[Ne,vt]=H.split("-");return O.createElement("ol",{key:H,dir:x==="auto"?Ag():x,tabIndex:-1,ref:G,className:o,"data-sonner-toaster":!0,"data-theme":D,"data-y-position":Ne,"data-x-position":vt,style:{"--front-toast-height":`${((me=P[0])==null?void 0:me.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||QN,"--width":`${JN}px`,"--gap":`${g}px`,...f},onBlur:xe=>{L.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(L.current=!1,E.current&&(E.current.focus({preventScroll:!0}),E.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||L.current||(L.current=!0,E.current=xe.relatedTarget)},onMouseEnter:()=>J(!0),onMouseMove:()=>J(!0),onMouseLeave:()=>{R||J(!1)},onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||V(!0)},onPointerUp:()=>V(!1)},k.filter(xe=>!xe.position&&te===0||xe.position===H).map((xe,Ct)=>{var rr,mr;return O.createElement(nP,{key:xe.id,icons:y,index:Ct,toast:xe,defaultRichColors:u,duration:(rr=p==null?void 0:p.duration)!=null?rr:d,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:t,visibleToasts:h,closeButton:(mr=p==null?void 0:p.closeButton)!=null?mr:i,interacting:R,position:H,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:K,toasts:k.filter(Or=>Or.position==xe.position),heights:P.filter(Or=>Or.position==xe.position),setHeights:$,expandByDefault:s,gap:g,loadingIcon:b,expanded:U,pauseWhenPageIsHidden:w,cn:_})}))})):null};const iP=({...e})=>{const{theme:t="system"}=IN();return c.jsx(sP,{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 oP=b0.useId||(()=>{}),aP=0;function Yu(e){const[t,r]=v.useState(oP());return Cr(()=>{r(n=>n??String(aP++))},[e]),t?`radix-${t}`:""}const lP=["top","right","bottom","left"],xs=Math.min,Gt=Math.max,Yc=Math.round,Wl=Math.floor,ws=e=>({x:e,y:e}
vendor: 4,207 bytes, line 241
241),cP={left:"right",right:"left",bottom:"top",top:"bottom"},uP={start:"end",end:"start"};function Th(e,t,r){return Gt(e,xs(t,r))}function En(e,t){return typeof e=="function"?e(t):e}function Cn(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function pp(e){return e==="x"?"y":"x"}function vp(e){return e==="y"?"height":"width"}function bs(e){return["top","bottom"].includes(Cn(e))?"y":"x"}function gp(e){return pp(bs(e))}function dP(e,t,r){r===void 0&&(r=!1);const n=jo(e),s=gp(e),i=vp(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Gc(o)),[o,Gc(o)]}function fP(e){const t=Gc(e);return[Oh(e),t,Oh(t)]}function Oh(e){return e.replace(/start|end/g,t=>uP[t])}function hP(e,t,r){const n=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:n:t?n:s;case"left":case"right":return t?i:o;default:return[]}}function mP(e,t,r,n){const s=jo(e);let i=hP(Cn(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Oh)))),i}function Gc(e){return e.replace(/left|right|bottom|top/g,t=>cP[t])}function pP(e){return{top:0,right:0,bottom:0,left:0,...e}}function pb(e){return typeof e!="number"?pP(e):{top:e,right:e,bottom:e,left:e}}function Kc(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Rg(e,t,r){let{reference:n,floating:s}=e;const i=bs(t),o=gp(t),a=vp(o),l=Cn(t),u=i==="y",d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,h=n[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:n.y-s.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-s.width,y:f};break;default:p={x:n.x,y:n.y}}switch(jo(t)){case"start":p[o]-=h*(r&&u?-1:1);break;case"end":p[o]+=h*(r&&u?-1:1);break}return p}const vP=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Rg(u,n,l),h=n,p={},x=0;for(let g=0;g<a.length;g++){const{name:b,fn:y}=a[g],{x:m,y:w,data:_,reset:k}=await y({x:d,y:f,initialPlacement:n,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=m??d,f=w??f,p={...p,[b]:{...p[b],..._}},k&&x<=50&&(x++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:f}=Rg(u,h,l)),g=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:p}};async function Ua(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=En(t,e),x=pb(p),b=a[h?f==="floating"?"reference":"floating":f],y=Kc(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),m=f==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Kc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:l}):m);return{top:(y.top-k.top+x.top)/_.y,bottom:(k.bottom-y.bottom+x.bottom)/_.y,left:(y.left-k.left+x.left)/_.x,right:(k.right-y.right+x.right)/_.x}}const gP=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=En(e,t)||{};if(u==null)return{};const f=pb(d),h={x:r,y:n},p=gp(s),x=vp(p),g=await o.getDimensions(u),b=p==="y",y=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=i.reference[x]+i.reference[p]-h[p]-i.floating[x],k=h[p]-i.reference[p],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let N=C?C[w]:0;
vendor: 5,812 bytes, line 241
241(!N||!await(o.isElement==null?void 0:o.isElement(C)))&&(N=a.floating[w]||i.floating[x]);const P=_/2-k/2,$=N/2-g[x]/2-1,U=xs(f[y],$),J=xs(f[m],$),R=U,V=N-g[x]-J,D=N/2-g[x]/2+P,X=Th(R,D,V),G=!l.arrow&&jo(s)!=null&&D!==X&&i.reference[x]/2-(D<R?U:J)-g[x]/2<0,I=G?D<R?D-R:D-V:0;return{[p]:h[p]+I,data:{[p]:X,centerOffset:D-X-I,...G&&{alignmentOffset:I}},reset:G}}}),yP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...b}=En(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=Cn(s),m=bs(a),w=Cn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=h||(w||!g?[Gc(a)]:fP(a)),C=x!=="none";!h&&C&&k.push(...mP(a,g,x,_));const N=[a,...k],P=await Ua(t,b),$=[];let U=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&$.push(P[y]),f){const D=dP(s,o,_);$.push(P[D[0]],P[D[1]])}if(U=[...U,{placement:s,overflows:$}],!$.every(D=>D<=0)){var J,R;const D=(((J=i.flip)==null?void 0:J.index)||0)+1,X=N[D];if(X)return{data:{index:D,overflows:U},reset:{placement:X}};let G=(R=U.filter(I=>I.overflows[0]<=0).sort((I,E)=>I.overflows[1]-E.overflows[1])[0])==null?void 0:R.placement;if(!G)switch(p){case"bestFit":{var V;const I=(V=U.filter(E=>{if(C){const L=bs(E.placement);return L===m||L==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(L=>L>0).reduce((L,K)=>L+K,0)]).sort((E,L)=>E[1]-L[1])[0])==null?void 0:V[0];I&&(G=I);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function Ig(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mg(e){return lP.some(t=>e[t]>=0)}const xP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=En(e,t);switch(n){case"referenceHidden":{const i=await Ua(t,{...s,elementContext:"reference"}),o=Ig(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Mg(o)}}}case"escaped":{const i=await Ua(t,{...s,altBoundary:!0}),o=Ig(i,r.floating);return{data:{escapedOffsets:o,escaped:Mg(o)}}}default:return{}}}}};async function wP(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=Cn(r),a=jo(r),l=bs(r)==="y",u=["left","top"].includes(o)?-1:1,d=i&&l?-1:1,f=En(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof x=="number"&&(p=a==="end"?x*-1:x),l?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const bP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await wP(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},_P=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:y,y:m}=b;return{x:y,y:m}}},...l}=En(e,t),u={x:r,y:n},d=await Ua(t,l),f=bs(Cn(s)),h=pp(f);let p=u[h],x=u[f];if(i){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",m=p+d[b],w=p-d[y];p=Th(m,p,w)}if(o){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",m=x+d[b],w=x-d[y];x=Th(m,x,w)}const g=a.fn({...t,[h]:p,[f]:x});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[f]:o}}}}}},kP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=En(e,t),d={x:r,y:n},f=bs(s),h=pp(f);let p=d[h],x=d[f];const g=En(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=h==="y"?"height":"width",_=i.reference[h]-i.floating[w]+b.mainAxis,k=i.reference[h]+i.reference[w]-b.mainAxis;p<_?p=_:p>k&&(p=k)}if(u){var y,m;const w=h==="y"?"width":"height",_=["top","left"].includes(Cn(s)),k=i.reference[f]-i.floating[w]+(_&&((y=o.offset)==null?void 0:y[f])||0)+(_?0:b.crossAxis),C=i.reference[f]+i.reference[w]+(_?0:((m=o.offset)==null?void 0:m[f])||0)-(_?b.crossAxis:0);x<k?x=k:x>C&&(x=C)}return{[h]:p,[f]:x}}}},SP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=En(e,t),d=await Ua(t,u),f=Cn(s),h=jo(s),p=bs(s)==="y",{width:x,height:g}=i.floating;let b,y;f==="top"||f==="bottom"?(b=f,y=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,b=h==="end"?"top":"bottom");const m=g-d.top-d.bottom,w=x-d.left-d.right,_=xs(g-d[b],m),k=xs(x-d[y],w),C=!t.middlewareData.shift;let N=_,P=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=m),C&&!h){const U=Gt(d.left,0),J=Gt(d.right,0),R=Gt(d.top,0),V=Gt(d.bottom,0);p?P=x-2*(U!==0||J!==0?U+J:Gt(d.left,d.right)):N=g-2*(R!==0||V!==0?R+V:Gt(d.top,d.bottom))}await l({...t,availableWidth:P,availableHeight:N});const $=await o.getDimensions(a.floating);return x!==$.width||g!==$.height?{reset:{rects:!0}}:{}}}};function Gu(){return typeof window<"u"}function No(e){return vb(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function en(e){var t;return(t=(vb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vb(e){return Gu()?e instanceof Node||e instanceof Zt(e).Node:!1}function jr(e){return Gu()?e instanceof Element||e instanceof Zt(e).Element:!1}function Zr(e){return Gu()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}
vendor: 5,271 bytes, line 241
241function Dg(e){return!Gu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(s)}function EP(e){return["table","td","th"].includes(No(e))}function Ku(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yp(e){const t=xp(),r=jr(e)?Nr(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function CP(e){let t=_s(e);for(;Zr(t)&&!po(t);){if(yp(t))return t;if(Ku(t))return null;t=_s(t)}return null}function xp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function po(e){return["html","body","#document"].includes(No(e))}function Nr(e){return Zt(e).getComputedStyle(e)}function Qu(e){return jr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dg(e)&&e.host||en(e);return Dg(t)?t.host:t}function gb(e){const t=_s(e);return po(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zr(t)&&ol(t)?t:gb(t)}function Ba(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=gb(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Zt(s);if(i){const a=Ah(o);return t.concat(o,o.visualViewport||[],ol(s)?s:[],a&&r?Ba(a):[])}return t.concat(s,Ba(s,[],r))}function Ah(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yb(e){const t=Nr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=Zr(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=Yc(r)!==i||Yc(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function wp(e){return jr(e)?e:e.contextElement}function Ki(e){const t=wp(e);if(!Zr(t))return ws(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=yb(t);let o=(i?Yc(r.width):r.width)/n,a=(i?Yc(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const jP=ws(0);function xb(e){const t=Zt(e);return!xp()||!t.visualViewport?jP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NP(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Zt(e)?!1:t}function si(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=wp(e);let o=ws(1);t&&(n?jr(n)&&(o=Ki(n)):o=Ki(e));const a=NP(i,r,n)?xb(i):ws(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const h=Zt(i),p=n&&jr(n)?Zt(n):n;let x=h,g=Ah(x);for(;g&&n&&p!==x;){const b=Ki(g),y=g.getBoundingClientRect(),m=Nr(g),w=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*b.x,_=y.top+(g.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=w,u+=_,x=Zt(g),g=Ah(x)}}return Kc({width:d,height:f,x:l,y:u})}function PP(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=en(n),a=t?Ku(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=ws(1);const d=ws(0),f=Zr(n);if((f||!f&&!i)&&((No(n)!=="body"||ol(o))&&(l=Qu(n)),Zr(n))){const h=si(n);u=Ki(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x,y:r.y*u.y-l.scrollTop*u.y+d.y}}function TP(e){return Array.from(e.getClientRects())}function Rh(e,t){const r=Qu(e).scrollLeft;return t?t.left+r:si(en(e)).left+r}function OP(e){const t=en(e),r=Qu(e),n=e.ownerDocument.body,s=Gt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Gt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Rh(e);const a=-r.scrollTop;return Nr(n).direction==="rtl"&&(o+=Gt(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function AP(e,t){const r=Zt(e),n=en(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=xp();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function RP(e,t){const r=si(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=Zr(e)?Ki(e):ws(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=n*i.y;return{width:o,height:a,x:l,y:u}}function Lg(e,t,r){let n;if(t==="viewport")n=AP(e,r);else if(t==="document")n=OP(en(e));else if(jr(t))n=RP(t,r);else{const s=xb(e);n={...t,x:t.x-s.x,y:t.y-s.y}}return Kc(n)}function wb(e,t){const r=_s(e);return r===t||!jr(r)||po(r)?!1:Nr(r).position==="fixed"||wb(r,t)}function IP(e,t){const r=t.get(e);if(r)return r;let n=Ba(e,[],!1).filter(a=>jr(a)&&No(a)!=="body"),s=null;const i=Nr(e).position==="fixed";let o=i?_s(e):e;for(;jr(o)&&!po(o);){const a=Nr(o),l=yp(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ol(o)&&!l&&wb(e,o))?n=n.filter(d=>d!==o):s=a,o=_s(o)}return t.set(e,n),n}function MP(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const o=[...r==="clippingAncestors"?Ku(t)?[]:IP(t,this._c):[].concat(r),n],a=o[0],l=o.reduce((u,d)=>{const f=Lg(t,d,s);
vendor: 11,002 bytes, line 241
241return u.top=Gt(f.top,u.top),u.right=xs(f.right,u.right),u.bottom=xs(f.bottom,u.bottom),u.left=Gt(f.left,u.left),u},Lg(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function DP(e){const{width:t,height:r}=yb(e);return{width:t,height:r}}function LP(e,t,r){const n=Zr(t),s=en(t),i=r==="fixed",o=si(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ws(0);if(n||!n&&!i)if((No(t)!=="body"||ol(s))&&(a=Qu(t)),n){const p=si(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&(l.x=Rh(s));let u=0,d=0;if(s&&!n&&!i){const p=s.getBoundingClientRect();d=p.top+a.scrollTop,u=p.left+a.scrollLeft-Rh(s,p)}const f=o.left+a.scrollLeft-l.x-u,h=o.top+a.scrollTop-l.y-d;return{x:f,y:h,width:o.width,height:o.height}}function Jd(e){return Nr(e).position==="static"}function Fg(e,t){if(!Zr(e)||Nr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return en(e)===r&&(r=r.ownerDocument.body),r}function bb(e,t){const r=Zt(e);if(Ku(e))return r;if(!Zr(e)){let s=_s(e);for(;s&&!po(s);){if(jr(s)&&!Jd(s))return s;s=_s(s)}return r}let n=Fg(e,t);for(;n&&EP(n)&&Jd(n);)n=Fg(n,t);return n&&po(n)&&Jd(n)&&!yp(n)?r:n||CP(e)||r}const FP=async function(e){const t=this.getOffsetParent||bb,r=this.getDimensions,n=await r(e.floating);return{reference:LP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $P(e){return Nr(e).direction==="rtl"}const UP={convertOffsetParentRelativeRectToViewportRelativeRect:PP,getDocumentElement:en,getClippingRect:MP,getOffsetParent:bb,getElementRects:FP,getClientRects:TP,getDimensions:DP,getScale:Ki,isElement:jr,isRTL:$P};function BP(e,t){let r=null,n;const s=en(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const p=Wl(d),x=Wl(s.clientWidth-(u+f)),g=Wl(s.clientHeight-(d+h)),b=Wl(u),m={rootMargin:-p+"px "+-x+"px "+-g+"px "+-b+"px",threshold:Gt(0,xs(1,l))||1};let w=!0;function _(k){const C=k[0].intersectionRatio;if(C!==l){if(!w)return o();C?o(!1,C):n=setTimeout(()=>{o(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(_,{...m,root:s.ownerDocument})}catch{r=new IntersectionObserver(_,m)}r.observe(e)}return o(!0),i}function WP(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=wp(e),d=s||i?[...u?Ba(u):[],...Ba(t)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const f=u&&a?BP(u,r):null;let h=-1,p=null;o&&(p=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),r()}),u&&!l&&p.observe(u),p.observe(t));let x,g=l?si(e):null;l&&b();function b(){const y=si(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&r(),g=y,x=requestAnimationFrame(b)}return r(),()=>{var y;d.forEach(m=>{s&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(x)}}const zP=bP,VP=_P,HP=yP,qP=SP,YP=xP,$g=gP,GP=kP,KP=(e,t,r)=>{const n=new Map,s={platform:UP,...r},i={...s.platform,_c:n};return vP(e,t,{...s,platform:i})};var fc=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Qc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Qc(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!Qc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _b(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ug(e,t){const r=_b(e);return Math.round(t*r)/r}function Xd(e){const t=v.useRef(e);return fc(()=>{t.current=e}),t}function QP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=v.useState(n);Qc(h,n)||p(n);const[x,g]=v.useState(null),[b,y]=v.useState(null),m=v.useCallback(E=>{E!==C.current&&(C.current=E,g(E))},[]),w=v.useCallback(E=>{E!==N.current&&(N.current=E,y(E))},[]),_=i||x,k=o||b,C=v.useRef(null),N=v.useRef(null),P=v.useRef(d),$=l!=null,U=Xd(l),J=Xd(s),R=Xd(u),V=v.useCallback(()=>{if(!C.current||!N.current)return;const E={placement:t,strategy:r,middleware:h};J.current&&(E.platform=J.current),KP(C.current,N.current,E).then(L=>{const K={...L,isPositioned:R.current!==!1};D.current&&!Qc(P.current,K)&&(P.current=K,il.flushSync(()=>{f(K)}))})},[h,t,r,J,R]);fc(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[u]);const D=v.useRef(!1);fc(()=>(D.current=!0,()=>{D.current=!1}),[]),fc(()=>{if(_&&(C.current=_),k&&(N.current=k),_&&k){if(U.current)return U.current(_,k,V);V()}},[_,k,V,U,$]);const X=v.useMemo(()=>({reference:C,floating:N,setReference:m,setFloating:w}),[m,w]),G=v.useMemo(()=>({reference:_,floating:k}),[_,k]),I=v.useMemo(()=>{const E={position:r,left:0,top:0};if(!G.floating)return E;const L=Ug(G.floating,d.x),K=Ug(G.floating,d.y);return a?{...E,transform:"translate("+L+"px, "+K+"px)",..._b(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:K}},[r,a,G.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:V,refs:X,elements:G,floatingStyles:I}),[d,V,X,G,I])}const ZP=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$g({element:n.current,padding:s}).fn(r):{}:n?$g({element:n,padding:s}).fn(r):{}}}},JP=(e,t)=>({...zP(e),options:[e,t]}),XP=(e,t)=>({...VP(e),options:[e,t]}),eT=(e,t)=>({...GP(e),options:[e,t]}),tT=(e,t)=>({...HP(e),options:[e,t]}),rT=(e,t)=>({...qP(e),options:[e,t]}),nT=(e,t)=>({...YP(e),options:[e,t]}),sT=(e,t)=>({...ZP(e),options:[e,t]});var iT="Arrow",kb=v.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...i}=e;return c.jsx(ke.svg,{...i,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});kb.displayName=iT;var oT=kb;function aT(e,t=[]){let r=[];function n(i,o){const a=v.createContext(o),l=r.length;r=[...r,o];function u(f){const{scope:h,children:p,...x}=f,g=(h==null?void 0:h[e][l])||a,b=v.useMemo(()=>x,Object.values(x));return c.jsx(g.Provider,{value:b,children:p})}function d(f,h){const p=(h==null?void 0:h[e][l])||a,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const s=()=>{const i=r.map(o=>v.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,lT(s,...t)]}function lT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function bp(e){const[t,r]=v.useState(void 0);return Cr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var _p="Popper",[Sb,Zu]=aT(_p),[cT,Eb]=Sb(_p),Cb=e=>{const{__scopePopper:t,children:r}=e,[n,s]=v.useState(null);return c.jsx(cT,{scope:t,anchor:n,onAnchorChange:s,children:r})};Cb.displayName=_p;var jb="PopperAnchor",Nb=v.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,i=Eb(jb,r),o=v.useRef(null),a=Xe(t,o);return v.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:c.jsx(ke.div,{...s,ref:a})});Nb.displayName=jb;var kp="PopperContent",[uT,dT]=Sb(kp),Pb=v.forwardRef((e,t)=>{var Ct,rr,mr,Or,Os,Rn;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:x,...g}=e,b=Eb(kp,r),[y,m]=v.useState(null),w=Xe(t,Ar=>m(Ar)),[_,k]=v.useState(null),C=bp(_),N=(C==null?void 0:C.width)??0,P=(C==null?void 0:C.height)??0,$=n+(i!=="center"?"-"+i:""),U=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},J=Array.isArray(u)?u:[u],R=J.length>0,V={padding:U,boundary:J.filter(hT),altBoundary:R},{refs:D,floatingStyles:X,placement:G,isPositioned:I,middlewareData:E}=QP({strategy:"fixed",placement:$,whileElementsMounted:(...Ar)=>WP(...Ar,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[JP({mainAxis:s+P,alignmentAxis:o}),l&&XP({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?eT():void 0,...V}),l&&tT({...V}),rT({...V,apply:({elements:Ar,rects:In,availableWidth:Ao,availableHeight:tn})=>{const{width:yl,height:S}=In.reference,j=Ar.floating.style;j.setProperty("--radix-popper-available-width",`${Ao}px`),j.setProperty("--radix-popper-available-height",`${tn}px`),j.setProperty("--radix-popper-anchor-width",`${yl}px`),j.setProperty("--radix-popper-anchor-height",`${S}px`)}}),_&&sT({element:_,padding:a}),mT({arrowWidth:N,arrowHeight:P}),h&&nT({strategy:"referenceHidden",...V})]}),[L,K]=Ab(G),H=Wt(x);Cr(()=>{I&&(H==null||H())},[I,H]);const te=(Ct=E.arrow)==null?void 0:Ct.x,me=(rr=E.arrow)==null?void 0:rr.y,Ne=((mr=E.arrow)==null?void 0:mr.centerOffset)!==0,[vt,xe]=v.useState();return Cr(()=>{y&&xe(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:I?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:vt,"--radix-popper-transform-origin":[(Or=E.transformOrigin)==null?void 0:Or.x,(Os=E.transformOrigin)==null?void 0:Os.y].join(" "),...((Rn=E.hide)==null?void 0:Rn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(uT,{scope:r,placedSide:L,onArrowChange:k,arrowX:te,arrowY:me,shouldHideArrow:Ne,children:c.jsx(ke.div,{"data-side":L,"data-align":K,...g,ref:w,style:{...g.style,animation:I?void 0:"none"}})})})});Pb.displayName=kp;var Tb="PopperArrow",fT={top:"bottom",right:"left",bottom:"top",left:"r
241ight"},Ob=v.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,i=dT(Tb,n),o=fT[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(oT,{...s,ref:r,style:{...s.style,display:"block"}})})});Ob.displayName=Tb;function hT(e){return e!==null}var mT=e=>({name:"transformOrigin",options:e,fn(t){var b,y,m;const{placement:r,rects:n,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=Ab(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=s.arrow)==null?void 0:y.x)??0)+a/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let x="",g="";return u==="bottom"?(x=o?f:`${h}px`,g=`${-l}px`):u==="top"?(x=o?f:`${h}px`,g=`${n.floating.height+l}px`):u==="right"?(x=`${-l}px`,g=o?f:`${p}px`):u==="left"&&(x=`${n.floating.width+l}px`,g=o?f:`${p}px`),{data:{x,y:g}}}});function Ab(e){const[t,r="center"]=e.split("-");return[t,r]}var pT=Cb,Sp=Nb,Rb=Pb,Ib=Ob,[Ju,z3]=On("Tooltip",[Zu]),Ep=Zu(),Mb="TooltipProvider",vT=700,Bg="tooltip.open",[gT,Db]=Ju(Mb),Lb=e=>{const{__scopeTooltip:t,delayDuration:r=vT,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=e,[o,a]=v.useState(!0),l=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),c.jsx(gT,{scope:t,isOpenDelayed:o,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:i})};Lb.displayName=Mb;var Fb="Tooltip",[V3,Xu]=Ju(Fb),Ih="TooltipTrigger",yT=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Xu(Ih,r),i=Db(Ih,r),o=Ep(r),a=v.useRef(null),l=Xe(t,a,s.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),f=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(Sp,{asChild:!0,...o,children:c.jsx(ke.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:pe(e.onBlur,s.onClose),onClick:pe(e.onClick,s.onClose)})})});yT.displayName=Ih;var xT="TooltipPortal",[H3,wT]=Ju(xT,{forceMount:void 0}),vo="TooltipContent",$b=v.forwardRef((e,t)=>{const r=wT(vo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=e,o=Xu(vo,e.__scopeTooltip);return c.jsx(js,{present:n||o.open,children:o.disableHoverableContent?c.jsx(Ub,{side:s,...i,ref:t}):c.jsx(bT,{side:s,...i,ref:t})})}),bT=v.forwardRef((e,t)=>{const r=Xu(vo,e.__scopeTooltip),n=Db(vo,e.__scopeTooltip),s=v.useRef(null),i=Xe(t,s),[o,a]=v.useState(null),{trigger:l,onClose:u}=r,d=s.current,{onPointerInTransitChange:f}=n,h=v.useCallback(()=>{a(null),f(!1)},[f]),p=v.useCallback((x,g)=>{const b=x.currentTarget,y={x:x.clientX,y:x.clientY},m=ET(y,b.getBoundingClientRect()),w=CT(y,m),_=jT(g.getBoundingClientRect()),k=PT([...w,..._]);a(k),f(!0)},[f]);return v.useEffect(()=>()=>h(),[h]),v.useEffect(()=>{if(l&&d){const x=b=>p(b,d),g=b=>p(b,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",g)}}},[l,d,p,h]),v.useEffect(()=>{if(o){const x=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),w=!NT(y,o);m?h():w&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,o,u,h]),c.jsx(Ub,{...e,ref:i})}),[_T,kT]=Ju(Fb,{isInside:!1}),Ub=v.forwardRef((e,t)=>
241{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Xu(vo,r),u=Ep(r),{onClose:d}=l;return v.useEffect(()=>(document.addEventListener(Bg,d),()=>document.removeEventListener(Bg,d)),[d]),v.useEffect(()=>{if(l.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Uu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(Rb,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(jw,{children:n}),c.jsx(_T,{scope:r,isInside:!0,children:c.jsx(tj,{id:l.contentId,role:"tooltip",children:s||n})})]})})});$b.displayName=vo;var Bb="TooltipArrow",ST=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Ep(r);return kT(Bb,r).isInside?null:c.jsx(Ib,{...s,...n,ref:t})});ST.displayName=Bb;function ET(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function CT(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function jT(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function NT(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i].x,l=t[i].y,u=t[o].x,d=t[o].y;l>n!=d>n&&r<(u-a)*(n-l)/(d-l)+a&&(s=!s)}return s}function PT(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),TT(t)}function TT(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var OT=Lb,Wb=$b;const AT=OT,RT=v.forwardRef(({className:e,sideOffset:t=4,...r},n)=>c.jsx(Wb,{ref:n,sideOffset:t,className:le("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));RT.displayName=Wb.displayName;var ed=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(){}},td=typeof window>"u"||"Deno"in globalThis;function gr(){}function IT(e,t){return typeof e=="function"?e(t):e}function MT(e){return typeof e=="number"&&e>=0&&e!==1/0}function DT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wg(e,t){return typeof e=="function"?e(t):e}function LT(e,t){return typeof e=="function"?e(t):e}function zg(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==Cp(o,t.options))return!1}else if(!za(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Vg(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Wa(t.options.mutationKey)!==Wa(i))return!1}else if(!za(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Cp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wa)(e)}function Wa(e){return JSON.stringify(e,(t,r)=>Mh(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function za(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!za(e[r],t[r])):!1}function zb(e,t){if(e===t)return e;const r=Hg(e)&&Hg(t);if(r||Mh(e)&&Mh(t)){const n=r?e:Object.keys(e),s=n.length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let l=0;for(let u=0;u<o;u++){const d=r?u:i[u];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=zb(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return s===o&&l===s?e:a}return t}function Hg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mh(e){if(!qg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!qg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qg(e){return Object.prototype.toString.call(e)==="[object Object]"}function FT(e){return new Promise(t=>{setTimeout(t,e)})}function $T(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?zb(e,t):t}function UT(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function BT(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var jp=Symbol();function Vb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var qs,Xn,Ji,r0,WT=(r0=class extends ed{constructor(){super();Se(this,qs);Se(this,Xn);Se(this,Ji);fe(this,Ji,t=>{if(!td&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){A(this,Xn)||this.setEventListener(A(this,Ji))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,Xn))==null||t.call(this),fe(this,Xn,void 0))}setEventListener(t){var r;fe(this,Ji,t),(r=A(this,Xn))==null||r.call(this),fe(this,Xn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){A(this,qs)!==t&&(fe(this,qs,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 20,184 bytes, line 241
241this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof A(this,qs)=="boolean"?A(this,qs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qs=new WeakMap,Xn=new WeakMap,Ji=new WeakMap,r0),Hb=new WT,Xi,es,eo,n0,zT=(n0=class extends ed{constructor(){super();Se(this,Xi,!0);Se(this,es);Se(this,eo);fe(this,eo,t=>{if(!td&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){A(this,es)||this.setEventListener(A(this,eo))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,es))==null||t.call(this),fe(this,es,void 0))}setEventListener(t){var r;fe(this,eo,t),(r=A(this,es))==null||r.call(this),fe(this,es,t(this.setOnline.bind(this)))}setOnline(t){A(this,Xi)!==t&&(fe(this,Xi,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return A(this,Xi)}},Xi=new WeakMap,es=new WeakMap,eo=new WeakMap,n0),Zc=new zT;function VT(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function HT(e){return Math.min(1e3*2**e,3e4)}function qb(e){return(e??"online")==="online"?Zc.isOnline():!0}var Yb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ef(e){return e instanceof Yb}function Gb(e){let t=!1,r=0,n=!1,s;const i=VT(),o=g=>{var b;n||(h(new Yb(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Hb.isFocused()&&(e.networkMode==="always"||Zc.isOnline())&&e.canRun(),d=()=>qb(e.networkMode)&&e.canRun(),f=g=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,g),s==null||s(),i.resolve(g))},h=g=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,g),s==null||s(),i.reject(g))},p=()=>new Promise(g=>{var b;s=y=>{(n||u())&&g(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;s=void 0,n||(g=e.onContinue)==null||g.call(e)}),x=()=>{if(n)return;let g;const b=r===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var C;if(n)return;const m=e.retry??(td?0:3),w=e.retryDelay??HT,_=typeof w=="function"?w(r,y):w,k=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,y);if(t||!k){h(y);return}r++,(C=e.onFail)==null||C.call(e,r,y),FT(_).then(()=>u()?void 0:p()).then(()=>{t?h(y):x()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?x():p().then(x),i)}}function qT(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=a=>setTimeout(a,0);const i=a=>{t?e.push(a):s(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var bt=qT(),Ys,s0,Kb=(s0=class{constructor(){Se(this,Ys)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),MT(this.gcTime)&&fe(this,Ys,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(td?1/0:5*60*1e3))}clearGcTimeout(){A(this,Ys)&&(clearTimeout(A(this,Ys)),fe(this,Ys,void 0))}},Ys=new WeakMap,s0),to,ro,sr,ft,Ja,Gs,yr,on,i0,YT=(i0=class extends Kb{constructor(t){super();Se(this,yr);Se(this,to);Se(this,ro);Se(this,sr);Se(this,ft);Se(this,Ja);Se(this,Gs);fe(this,Gs,!1),fe(this,Ja,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,sr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,to,KT(this.options)),this.state=t.state??A(this,to),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,ft))==null?void 0:t.promise}setOptions(t){this.options={...A(this,Ja),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,sr).remove(this)}setData(t,r){const n=$T(this.state.data,t,this.options);return ct(this,yr,on).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ct(this,yr,on).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=A(this,ft))==null?void 0:n.promise;return(s=A(this,ft))==null||s.cancel(t),r?r.then(gr).catch(gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,to))}isActive(){return this.observers.some(t=>LT(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!DT(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=A(this,ft))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=A(this,ft))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,sr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(A(this,ft)&&(A(this,Gs)?A(this,ft).cancel({revert:!0}):A(this,ft).cancelRetry()),this.scheduleGc()),A(this,sr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ct(this,yr,on).call(this,{type:"invalidate"})}fetch(t,r){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(A(this,ft))return A(this,ft).continueRetry(),A(this,ft).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(fe(this,Gs,!0),n.signal)})},i=()=>{const f=Vb(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return s(h),fe(this,Gs,!1),this.options.persister?this.options.persister(f,h,this):f(h)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};s(o),(l=this.options.behavior)==null||l.onFetch(o,this),fe(this,ro,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ct(this,yr,on).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const a=f=>{var h,p,x,g;ef(f)&&f.silent||ct(this,yr,on).call(this,{type:"error",error:f}),ef(f)||((p=(h=A(this,sr).config).onError)==null||p.call(h,f,this),(g=(x=A(this,sr).config).onSettled)==null||g.call(x,this.state.data,f,this)),this.scheduleGc()};return fe(this,ft,Gb({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var h,p,x,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){a(b);return}(p=(h=A(this,sr).config).onSuccess)==null||p.call(h,f,this),(g=(x=A(this,sr).config).onSettled)==null||g.call(x,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,h)=>{ct(this,yr,on).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{ct(this,yr,on).call(this,{type:"pause"})},onContinue:()=>{ct(this,yr,on).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),A(this,ft).start()}},to=new WeakMap,ro=new WeakMap,sr=new WeakMap,ft=new WeakMap,Ja=new WeakMap,Gs=new WeakMap,yr=new WeakSet,on=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...GT(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return ef(s)&&s.revert&&A(this,ro)?{...A(this,ro),fetchStatus:"idle"}:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),bt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),A(this,sr).notify({query:this,type:"updated",action:t})})},i0);function GT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function KT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ur,o0,QT=(o0=class extends ed{constructor(t={}){super();Se(this,Ur);this.config=t,fe(this,Ur,new Map)}build(t,r,n){const s=r.queryKey,i=r.queryHash??Cp(s,r);let o=this.get(i);return o||(o=new YT({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){A(this,Ur).has(t.queryHash)||(A(this,Ur).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=A(this,Ur).get(t.queryHash);r&&(t.destroy(),r===t&&A(this,Ur).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Ur).get(t)}getAll(){return[...A(this,Ur).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>zg(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>zg(t,n)):r}notify(t){bt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ur=new WeakMap,o0),Br,gt,Ks,Wr,zn,a0,ZT=(a0=class extends Kb{constructor(t){super();Se(this,Wr);Se(this,Br);Se(this,gt);Se(this,Ks);this.mutationId=t.mutationId,fe(this,gt,t.mutationCache),fe(this,Br,[]),this.state=t.state||JT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Br).includes(t)||(A(this,Br).push(t),this.clearGcTimeout(),A(this,gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,Br,A(this,Br).filter(r=>r!==t)),this.scheduleGc(),A(this,gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Br).length||(this.state.status==="pending"?this.scheduleGc():A(this,gt).remove(this))}continue(){var t;return((t=A(this,Ks))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,o,a,l,u,d,f,h,p,x,g,b,y,m,w,_,k,C,N;fe(this,Ks,Gb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,$)=>{ct(this,Wr,zn).call(this,{type:"failed",failureCount:P,error:$})},onPause:()=>{ct(this,Wr,zn).call(this,{type:"pause"})},onContinue:()=>{ct(this,Wr,zn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,gt).canRun(this)}));const r=this.state.status==="pending",n=!A(this,Ks).canStart();try{if(!r){ct(this,Wr,zn).call(this,{type:"pending",variables:t,isPaused:n}),await((i=(s=A(this,gt).config).onMutate)==null?void 0:i.call(s,t,this));const $=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));$!==this.state.context&&ct(this,Wr,zn).call(this,{type:"pending",context:$,variables:t,isPaused:n})}const P=await A(this,Ks).start();return await((u=(l=A(this,gt).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,P,t,this.state.context)),await((p=(h=A(this,gt).config).onSettled)==null?void 0:p.call(h,P,null,this.state.variables,this.state.context,this)),await((g=(x=this.options).onSettled)==null?void 0:g.call(x,P,null,t,this.state.context)),ct(this,Wr,zn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(b=A(this,gt).config).onError)==null?void 0:y.call(b,P,t,this.state.context,this)),await((w=(m=this.options).onError)==null?void 0:w.call(m,P,t,this.state.context)),await((k=(_=A(this,gt).config).onSettled)==null?void 0:k.call(_,void 0,P,this.state.variables,this.state.context,this)),await((N=(C=this.options).onSettled)==null?void 0:N.call(C,void 0,P,t,this.state.context)),P}finally{ct(this,Wr,zn).call(this,{type:"error",error:P})}}finally{A(this,gt).runNext(this)}}},Br=new WeakMap,gt=new WeakMap,Ks=new WeakMap,Wr=new WeakSet,zn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),bt.batch(()=>{A(this,Br).forEach(n=>{n.onMutationUpdate(t)}),A(this,gt).notify({mutation:this,type:"updated",action:t})})},a0);function JT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vt,Xa,l0,XT=(l0=class extends ed{constructor(t={}){super();Se(this,Vt);Se(this,Xa);this.config=t,fe(this,Vt,new Map),fe(this,Xa,Date.now())}build(t,r,n){const s=new ZT({mutationCache:this,mutationId:++bl(this,Xa)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){const r=zl(t),n=A(this,Vt).get(r)??[];n.push(t),A(this,Vt).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=zl(t);if(A(this,Vt).has(r)){const s=(n=A(this,Vt).get(r))==null?void 0:n.filter(i=>i!==t);s&&(s.length===0?A(this,Vt).delete(r):A(this,Vt).set(r,s))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=A(this,Vt).get(zl(t)))==null?void 0:n.find(s=>s.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=A(this,Vt).get(zl(t)))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...A(this,Vt).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Vg(r,n))}findAll(t={}){return this.getAll().filter(r=>Vg(t,r))}notify(t){bt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return bt.batch(()=>Promise.all(t.map(r=>r.continue().catch(gr))))}},Vt=new WeakMap,Xa=new WeakMap,l0);function zl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Yg(e){return{onFetch:(t,r)=>{var d,f,h,p,x;const n=t.options,s=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=Vb(t.options,t.fetchOptions),m=async(w,_,k)=>{if(g)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const C={queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};b(C);const N=await y(C),{maxPages:P}=t.options,$=k?BT:UT;return{pages:$(w.pages,N,P),pageParams:$(w.pageParams,_,P)}};if(s&&i.length){const w=s==="backward",_=w?e2:Gg,k={pages:i,pageParams:o},C=_(n,k);a=await m(k,C,w)}else{const w=e??i.length;do{const _=l===0?o[0]??n.initialPageParam:Gg(n,a);if(l>0&&_==null)break;a=await m(a,_),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function Gg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function e2(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ze,ts,rs,no,so,ns,io,oo,c0,t2=(c0=class{constructor(e={}){Se(this,ze);Se(this,ts);Se(this,rs);Se(this,no);Se(this,so);Se(this,ns);Se(this,io);Se(this,oo);fe(this,ze,e.queryCache||new QT),fe(this,ts,e.mutationCache||new XT),fe(this,rs,e.defaultOptions||{}),fe(this,no,new Map),fe(this,so,new Map),fe(this,ns,0)}mount(){bl(this,ns)._++,A(this,ns)===1&&(fe(this,io,Hb.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ze).onFocus())})),fe(this,oo,Zc.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ze).onOnline())})))}unmount(){var e,t;bl(this,ns)._--,A(this,ns)===0&&((e=A(this,io))==null||e.call(this),fe(this,io,void 0),(t=A(this,oo))==null||t.call(this),fe(this,oo,void 0))}isFetching(e){return A(this,ze).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,ts).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=A(this,ze).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=A(this,ze).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(Wg(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return A(this,ze).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=A(this,ze).get(n.queryHash),i=s==null?void 0:s.state.data,o=IT(t,i);if(o!==void 0)return A(this,ze).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return bt.batch(()=>A(this,ze).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=A(this,ze).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=A(this,ze);bt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=A(this,ze),n={type:"active",...e};return bt.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=bt.batch(()=>A(this,ze).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(gr).catch(gr)}invalidateQueries(e={},t={}){return bt.batch(()=>{if(A(this,ze).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=bt.batch(()=>A(this,ze).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(gr)),s.state.fetchStatus==="paused"?Promise.resolve():i}
241));return Promise.all(n).then(gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=A(this,ze).build(this,t);return r.isStaleByTime(Wg(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gr).catch(gr)}fetchInfiniteQuery(e){return e.behavior=Yg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gr).catch(gr)}ensureInfiniteQueryData(e){return e.behavior=Yg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zc.isOnline()?A(this,ts).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ze)}getMutationCache(){return A(this,ts)}getDefaultOptions(){return A(this,rs)}setDefaultOptions(e){fe(this,rs,e)}setQueryDefaults(e,t){A(this,no).set(Wa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,no).values()];let r={};return t.forEach(n=>{za(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){A(this,so).set(Wa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,so).values()];let r={};return t.forEach(n=>{za(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,rs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Cp(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.enabled!==!0&&t.queryFn===jp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,rs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,ze).clear(),A(this,ts).clear()}},ze=new WeakMap,ts=new WeakMap,rs=new WeakMap,no=new WeakMap,so=new WeakMap,ns=new WeakMap,io=new WeakMap,oo=new WeakMap,c0),r2=v.createContext(void 0),n2=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(r2.Provider,{value:e,children:t}));/** 242 * @remix-run/router v1.20.0 243 * 244 * Copyright (c) Remix Software Inc. 245 * 246 * This source code is licensed under the MIT license found in the 247 * LICENSE.md file in the root directory of this source tree. 248 * 249 * @license MIT 250 */function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)}var os;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(os||(os={}));const Kg="popstate";function s2(e){e===void 0&&(e={});function t(n,s){let{pathname:i,search:o,hash:a}=n.location;return Dh("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:Jc(s)}return o2(t,r,null,e)}function Je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function i2(){return Math.random().toString(36).substr(2,8)}function Qg(e,t){return{usr:e.state,key:e.key,idx:t}}function Dh(e,t,r,n){return r===void 0&&(r=null),Va({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Po(t):t,{state:r,key:t&&t.key||n||i2()})}function Jc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Po(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function o2(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,a=os.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(Va({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=os.Pop;let b=d(),y=b==null?null:b-u;u=b,l&&l({action:a,location:g.location,delta:y})}function h(b,y){a=os.Push;let m=Dh(g.location,b,y);u=d()+1;let w=Qg(m,u),_=g.createHref(m);try{o.pushState(w,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(_)}i&&l&&l({action:a,location:g.location,delta:1})}function p(b,y){a=os.Replace;let m=Dh(g.location,b,y);u=d();let w=Qg(m,u),_=g.createHref(m);o.replaceState(w,"",_),i&&l&&l({action:a,location:g.location,delta:0})}function x(b){let y=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof b=="string"?b:Jc(b);return m=m.replace(/ $/,"%20"),Je(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let g={get action(){return a},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Kg,f),l=b,()=>{s.removeEventListener(Kg,f),l=null}},createHref(b){return t(s,b)},createURL:x,encodeLocation(b){let y=x(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(b){return o.go(b)}};return g}var Zg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zg||(Zg={}));function a2(e,t,r){return r===void 0&&(r="/"),l2(e,t,r,!1)}function l2(e,t,r,n){let s=typeof t=="string"?Po(t):t,i=Np(s.pathname||"/",r);if(i==null)return null;let o=Zb(e);c2(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=w2(i);a=y2(o[l],u,n)}return a}function Zb(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Je(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not val
250id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ps([n,l.relativePath]),d=r.concat(l);i.children&&i.children.length>0&&(Je(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zb(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:v2(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Jb(i.path))s(i,o,l)}),t}function Jb(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=Jb(n.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function c2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:g2(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const u2=/^:[\w-]+$/,d2=3,f2=2,h2=1,m2=10,p2=-2,Jg=e=>e==="*";function v2(e,t){let r=e.split("/"),n=r.length;return r.some(Jg)&&(n+=p2),t&&(n+=f2),r.filter(s=>!Jg(s)).reduce((s,i)=>s+(u2.test(i)?d2:i===""?h2:m2),n)}function g2(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function y2(e,t,r){let{routesMeta:n}=e,s={},i="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],u=a===n.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=Xg({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=Xg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 11,946 bytes, lines 250-259
250Object.assign(s,f.params),o.push({params:s,pathname:ps([i,f.pathname]),pathnameBase:S2(ps([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=ps([i,f.pathnameBase]))}return o}function Xg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=x2(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((u,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let g=a[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=a[f];return p&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function x2(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Qb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function w2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Np(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function b2(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?Po(e):e;return{pathname:r?r.startsWith("/")?r:_2(r,t):t,search:E2(n),hash:C2(s)}}function _2(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function tf(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function k2(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Xb(e,t){let r=k2(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function e_(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=Po(e):(s=Va({},e),Je(!s.pathname||!s.pathname.includes("?"),tf("?","pathname","search",s)),Je(!s.pathname||!s.pathname.includes("#"),tf("#","pathname","hash",s)),Je(!s.search||!s.search.includes("#"),tf("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=b2(s,a),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const ps=e=>e.join("/").replace(/\/\/+/g,"/"),S2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,C2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function j2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const t_=["post","put","patch","delete"];new Set(t_);const N2=["get",...t_];new Set(N2);/** 251 * React Router v6.27.0 252 * 253 * Copyright (c) Remix Software Inc. 254 * 255 * This source code is licensed under the MIT license found in the 256 * LICENSE.md file in the root directory of this source tree. 257 * 258 * @license MIT 259 */function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ha.apply(this,arguments)}const Pp=v.createContext(null),P2=v.createContext(null),ui=v.createContext(null),rd=v.createContext(null),di=v.createContext({outlet:null,matches:[],isDataRoute:!1}),r_=v.createContext(null);function T2(e,t){let{relative:r}=t===void 0?{}:t;al()||Je(!1);let{basename:n,navigator:s}=v.useContext(ui),{hash:i,pathname:o,search:a}=s_(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:ps([n,o])),s.createHref({pathname:l,search:a,hash:i})}function al(){return v.useContext(rd)!=null}function ll(){return al()||Je(!1),v.useContext(rd).location}function n_(e){v.useContext(ui).static||v.useLayoutEffect(e)}function O2(){let{isDataRoute:e}=v.useContext(di);return e?V2():A2()}function A2(){al()||Je(!1);let e=v.useContext(Pp),{basename:t,future:r,navigator:n}=v.useContext(ui),{matches:s}=v.useContext(di),{pathname:i}=ll(),o=JSON.stringify(Xb(s,r.v7_relativeSplatPath)),a=v.useRef(!1);return n_(()=>{a.current=!0}),v.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let f=e_(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ps([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,o,i,e])}function s_(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=v.useContext(ui),{matches:s}=v.useContext(di),{pathname:i}=ll(),o=JSON.stringify(Xb(s,n.v7_relativeSplatPath));return v.useMemo(()=>e_(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function R2(e,t){return I2(e,t)}function I2(e,t,r,n){al()||Je(!1);let{navigator:s}=v.useContext(ui),{matches:i}=v.useContext(di),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=ll(),d;if(t){var f;let b=typeof t=="string"?Po(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||Je(!1),d=b}else d=u;let h=d.pathname||"/",p=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=a2(e,{pathname:p}),g=$2(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:ps([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:ps([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,r,n);return t&&g?v.createElement(rd.Provider,{value:{location:Ha({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:os.Pop}},g):g}function M2(){let e=z2(),t=j2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),r?v.createElement("pre",{style:s},r):null,null)}const D2=v.createElement(M2,null);class L2 extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?v.createElement(di.Provider,{value:this.props.routeContext},v.createElement(r_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function F2(e){let{routeContext:t,match:r,children:n}=e,s=v.useContext(Pp);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(di.Provider,{value:t},n)}function $2(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Je(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:p}=r,x=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||x){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,x=!1,g=null,b=null;r&&(p=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||D2,l&&(u<0&&h===0?(x=!0,b=null):u===h&&(x=!0,b=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,h+1)),m=()=>{let w;return p?w=g:x?w=b:f.route.Component?w=v.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,v.createElement(F2,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:w})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(L2,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var i_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(i_||{}),Xc=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}(Xc||{});function U2(e){let t=v.useContext(Pp);return t||Je(!1),t}function B2(e){let t=v.useContext(P2);return t||Je(!1),t}function W2(e){let t=v.useContext(di);return t||Je(!1),t}function o_(e){let t=W2(),r=t.matches[t.matches.length-1];return r.route.id||Je(!1),r.route.id}function z2(){var e;let t=v.useContext(r_),r=B2(Xc.UseRouteError),n=o_(Xc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function V2(){let{router:e}=U2(i_.UseNavigateStable),t=o_(Xc.UseNavigateStable),r=v.useRef(!1);return n_(()=>{r.current=!0}),v.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ha({fromRouteId:t},i)))},[e,t])}function Vn(e){Je(!1)}function H2(e){let{basename:t="/",children:r=null,location:n,navigationType:s=os.Pop,navigator:i,static:o=!1,future:a}=e;al()&&Je(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:o,future:Ha({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof n=="string"&&(n=Po(n));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:x="default"}=n,g=v.useMemo(()=>{let b=Np(d,l);return b==null?null:{location:{pathname:b,search:f,hash:h,state:p,key:x},navigationType:s}},[l,d,f,h,p,x,s]);return g==null?null:v.createElement(ui.Provider,{value:u},v.createElement(rd.Provider,{children:r,value:g}))}function q2(e){let{children:t,location:r}=e;return R2(Lh(t),r)}new Promise(()=>{});function Lh(e,t){t===void 0&&(t=[]);let r=[];return v.Children.forEach(e,(n,s)=>{if(!v.isValidElement(n))return;let i=[...t,s];if(n.type===v.Fragment){r.push.apply(r,Lh(n.props.children,i));return}n.type!==Vn&&Je(!1),!n.props.index||!n.props.children||Je(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,
259shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Lh(n.props.children,i)),r.push(o)}),r}/** 260 * React Router DOM v6.27.0 261 * 262 * Copyright (c) Remix Software Inc. 263 * 264 * This source code is licensed under the MIT license found in the 265 * LICENSE.md file in the root directory of this source tree. 266 * 267 * @license MIT 268 */function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fh.apply(this,arguments)}function Y2(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function G2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function K2(e,t){return e.button===0&&(!t||t==="_self")&&!G2(e)}const Q2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Z2="6";try{window.__reactRouterVersion=Z2}catch{}const J2="startTransition",ey=b0[J2];function X2(e){let{basename:t,children:r,future:n,window:s}=e,i=v.useRef();i.current==null&&(i.current=s2({window:s,v5Compat:!0}));let o=i.current,[a,l]=v.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=v.useCallback(f=>{u&&ey?ey(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>o.listen(d),[o,d]),v.createElement(H2,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}const eO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hc=v.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,h=Y2(t,Q2),{basename:p}=v.useContext(ui),x,g=!1;if(typeof u=="string"&&tO.test(u)&&(x=u,eO))try{let w=new URL(window.location.href),_=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=Np(_.pathname,p);_.origin===w.origin&&k!=null?u=k+_.search+_.hash:g=!0}catch{}let b=T2(u,{relative:s}),y=rO(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function m(w){n&&n(w),w.defaultPrevented||y(w)}return v.createElement("a",Fh({},h,{href:x||b,onClick:g||i?n:m,ref:r,target:l}))});var ty;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ty||(ty={}));var ry;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ry||(ry={}));function rO(e,t){let{target:r,replace:n,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=O2(),u=ll(),d=s_(e,{relative:o});return v.useCallback(f=>{if(K2(f,r)){f.preventDefault();let h=n!==void 0?n:Jc(u)===Jc(d);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,d,n,s,r,e,i,o,a])}class nO extends O.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Error caught by boundary:",t,r)}render(){return this.state.hasError?c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:c.jsxs("div",{className:"max-w-md mx-auto text-center p-6",children:[c.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Something went wrong"}),c.jsx("p",{className:"text-gray-600 mb-4",children:"We're sorry, but something unexpected happened."}),c.jsx("button",{onClick:()=>window.location.reload(),className:"bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600",children:"Reload Page"})]})}):this.props.children}}const $h=Vu("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"}}),mt=v.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},i)=>{const o=n?ni:"button";return c.jsx(o,{className:le($h({variant:t,size:r,className:e})),ref:i,...s})});mt.displayName="Button";const ny=[{name:"About",href:"#about"},{name:"Workshops",href:"#workshops"},{name:"Testimonials",href:"#testimonials"},{name:"Newsletter",href:"/newsletter"}],nd=()=>{const[e,t]=v.useState(!1),[r,n]=v.useState(!1),s="https://calendly.com/megan-iammegananderson/exploration-call";return v.useEffect(()=>{const i=()=>{const o=window.scrollY;n(o>50)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]),c.jsx("header",{className:le("fixed top-0 left-0 right-0 z-50 transition-all duration-300 py-4",r?"bg-white/80 backdrop-blur-md shadow-sm py-3":"bg-transparent py-4"),children:c.jsxs("div",{className:"container max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("nav",{className:"flex items-center justify-between",children:[c.jsx("div",{className:"flex items-center",children:c.jsxs(hc,{to:"/",className:"flex items-center",children:[c.jsx("img",{src:"/lovable-uploads/0881593c-38e8-43f9-9899-81ac82378032.png",alt:"AI Advantage Logo",className:"h-10 w-auto transition-opacity duration-300 hover:opacity-80"}),c.jsx("span",{className:"ml-3 text-lg font-semibold",children:"AI Advantage"})]})}),c.jsxs("div",{className:"hidden md:flex items-center space-x-1",children:[ny.map(i=>i.href.startsWith("/")?c.jsx(hc,{to:i.href,className:"px-4 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-gray-50 transition-colors",children:i.name},i.name):c.jsx("a",{href:i.href,className:"px-4 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-gray-50 transition-colors",children:i.name},i.name)),c.jsx(mt,{className:"ml-4 animate-fade-in-down",asChild:!0,children:c.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:"Book a Call"})})]}),c.jsx("div",{className:"md:hidden",children:c.jsxs("button",{type:"button",className:"p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none",onClick:()=>t(!e),children:[c.jsx("span",{className:"sr-only",children:e?"Close menu":"Open menu"}),e?c.jsx(nb,{className:"block h-6 w-6","aria-hidden":"true"}):c.jsx(Bj,{className:"block h-6 w-6","aria-hidden":"true"})]})})]}),e&&c.jsx("div",{className:"md:hidden absolute top-full left-0 right-0 bg-white shadow-lg animate-fade-in-down",children:c.jsxs("div",{className:"pt-2 pb-4 px-4 space-y-1",children:[ny.map(i=>i.href.startsWith("/")?c.jsx(hc,{to:i.href,className:"block px-3 py-2 text-base font-medium text-gray-700 rounded-md hover:bg-gray-50",onClick:()=>t(!1),children:i.name},i.name):c.jsx("a",{href:i.href,className:"block px-3 py-2 text-base font-medium text-gray-700 rounded-md hover:bg-gray-50",onClick:()=>t(!1),children:i.name},i.name)),c.jsx(mt,{className:"w-full mt-4",asChild:!0,children:c.jsx("a",{href:s,onClick:()=>t(!1),target:"_blank",rel:"noopener noreferrer",children:"Book a Call"})})]})})]})})},sd=()=>{const e=new Date().getFullYear();return c.jsx("footer",{className:"bg-secondary py-12 mt-20",children:c.jsxs("div",{className:"container max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[c.jsxs("div",{className:"col-span-1 md:col-span-2",children:[c.jsx("img",{src:"/lovable-uploads/0881593c-38e8-43f9-9899-81ac82378032.png",alt:"AI Advantage Logo",className:"h-12 w-auto mb-4"}),c.jsx("h3",{className:"text-lg font-semibold mb-3",children:"AI Advantage"}),c.jsx("p",{className:"text-gray-600 mb-4 max-w-md",children:"Helping loan originators and real estate professionals leverage AI to grow their business, save time, and stay ahead in a rapidly evolving industry."}),c.jsxs("div",{className:"flex space-x-4",children:[c.jsx("a",{href:"https://www.instagram.com/iammegananderson",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-primary transition-colors","aria-label":"Instagram",children:c.jsx(Dj,{size:20})}),c.jsx("a",{href:"https://www.facebook.com/i.am.meganm.anderson/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-primary transition-colors","aria-label":"Facebook",children:c.jsx(Aj,{size:20})}),c.jsx("a",{href:"https://www.linkedin.com/in/iammegananderson/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-primary transition-colors","aria-label":"LinkedIn",children:c.jsx($j,{size:20})}),c.jsx("a",{href:"mailto:[email protected]",className:"text-gray-600 hover:text-primary transition-colors","aria-label":"Email",children:c.jsx(Uj,{size:20})})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wider mb-4",children:"Qu
268ick Links"}),c.jsxs("ul",{className:"space-y-2",children:[c.jsx("li",{children:c.jsx("a",{href:"#about",className:"text-gray-600 hover:text-primary transition-colors",children:"About"})}),c.jsx("li",{children:c.jsx("a",{href:"#workshops",className:"text-gray-600 hover:text-primary transition-colors",children:"Workshops"})}),c.jsx("li",{children:c.jsx("a",{href:"#testimonials",className:"text-gray-600 hover:text-primary transition-colors",children:"Testimonials"})}),c.jsx("li",{children:c.jsx(hc,{to:"/newsletter",className:"text-gray-600 hover:text-primary transition-colors",children:"Newsletter"})})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wider mb-4",children:"Contact"}),c.jsxs("ul",{className:"space-y-2",children:[c.jsx("li",{className:"text-gray-600",children:c.jsx("a",{href:"mailto:[email protected]",className:"text-gray-600 hover:text-primary transition-colors",children:"[email protected]"})}),c.jsx("li",{children:c.jsx("a",{href:"https://calendly.com/megan-iammegananderson/exploration-call",className:"text-gray-600 hover:text-primary transition-colors",children:"Book a Call"})})]})]})]}),c.jsx("div",{className:"border-t border-gray-200 mt-12 pt-8",children:c.jsxs("p",{className:"text-gray-500 text-sm text-center",children:["© ",e," AI Advantage. All rights reserved."]})})]})})},a_=({src:e,alt:t,className:r,containerClassName:n,width:s,height:i})=>{const[o,a]=v.useState(!1);return v.useEffect(()=>{const l=new Image;l.src=e,l.onload=()=>{a(!0)}},[e]),c.jsxs("div",{className:le("overflow-hidden relative",n),children:[c.jsx("div",{className:le("w-full h-full absolute inset-0 bg-muted scale-110 blur-2xl transform opacity-50 transition-opacity duration-500",o?"opacity-0":"opacity-100"),style:{backgroundImage:`url(${e})`,backgroundSize:"cover",backgroundPosition:"center"}}),c.jsx("img",{src:e,alt:t,width:s,height:i,className:le("transition-all duration-500 ease-in-out",o?"opacity-100 blur-0 scale-100":"opacity-0 blur-sm scale-105",r),onLoad:()=>a(!0)})]})},sO=()=>{const e=v.useRef(null),t="https://calendly.com/megan-iammegananderson/exploration-call";return v.useEffect(()=>{const r=e.current;if(!r)return;const n=s=>{const{clientX:i,clientY:o}=s,a=(i/window.innerWidth-.5)*20,l=(o/window.innerHeight-.5)*20;r.style.setProperty("--x",`${a}px`),r.style.setProperty("--y",`${l}px`)};return window.addEventListener("mousemove",n),()=>{window.removeEventListener("mousemove",n)}},[]),c.jsxs("div",{ref:e,className:"relative min-h-screen flex items-center pt-16 overflow-hidden",style:{background:` 269 radial-gradient(circle at 20% 20%, rgba(249, 250, 251, 0.8) 0%, transparent 50%), 270 radial-gradient(circle at 80% 80%, rgba(243, 244, 246, 0.8) 0%, transparent 50%) 271 `,"--x":"0px","--y":"0px"},children:[c.jsx("div",{className:"absolute top-0 left-0 right-0 bottom-0 opacity-30 pointer-events-none",children:c.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(0,0,0,0.04)_0,transparent_70%)]",style:{transform:"translate(var(--x), var(--y))"}})}),c.jsxs("div",{className:"section-container flex flex-col lg:flex-row items-center justify-between gap-12 z-10",children:[c.jsxs("div",{className:"flex-1 max-w-2xl animate-fade-in-up",children:[c.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-display font-bold leading-tight mb-6",children:"How Loan Officers and Realtors Are Using AI to Attract Clients, Save Time, and Grow Their Business"}),c.jsx("p",{className:"text-lg md:text-xl text-gray-600 mb-8 max-w-xl",children:"Join the AI Workshop Series to Quickly Integrate AI into Your Real Estate or Mortgage Business"}),c.jsx("div",{className:"flex justify-start",children:c.jsx(mt,{className:"px-8 py-6 text-base font-semibold",size:"lg",asChild:!0,children:c.jsxs("a",{href:t,className:"flex items-center",children:["Curious If This Is Right For You? ",c.jsx(Hu,{className:"ml-2 h-4 w-4"})]})})})]}),c.jsx("div",{className:"flex-1 w-full lg:w-auto animate-fade-in",children:c.jsxs("a",{href:t,className:"block relative aspect-square max-w-md mx-auto hover:scale-[1.02] transition-transform duration-300",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-white/20 to-gray-100/60 rounded-3xl transform rotate-6 shadow-xl"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-white/40 to-gray-100/80 rounded-3xl transform -rotate-3 shadow-xl"}),c.jsxs("div",{className:"relative bg-white rounded-2xl p-6 shadow-lg glass-card hover:shadow-xl transition-shadow duration-300",children:[c.jsx(a_,{src:"/lovable-uploads/606fb181-3f2d-45e8-9c5a-2b9f04e9579a.png",alt:"Megan Anderson presenting at an AI
271workshop with a full audience",className:"w-full h-auto rounded-xl object-cover mb-4 animate-zoom-in",containerClassName:"aspect-video"}),c.jsx("h3",{className:"text-xl font-semibold mb-2",children:"What's in these virtual workshops?"}),c.jsx("p",{className:"text-gray-600 mb-4",children:"Join Megan Anderson where she shares how to quickly implement AI to attract and convert more clients in the real estate market."}),c.jsx("div",{className:"flex justify-end items-center",children:c.jsx("div",{className:"px-2 bg-gray-100 text-gray-600 text-xs font-medium rounded py-[4px] mx-[90px]",children:"Live Virtual Sessions"})})]})]})})]}),c.jsx("div",{className:"absolute bottom-10 left-0 right-0 flex justify-center animate-bounce",children:c.jsx("a",{href:"#benefits",className:"text-gray-400 hover:text-gray-600 transition-colors",children:c.jsx("svg",{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",children:c.jsx("path",{d:"M12 5v14M5 12l7 7 7-7"})})})})]})},iO=[{icon:c.jsx(tb,{className:"h-6 w-6"}),title:"AI-Powered Strategies",description:"Learn to leverage cutting-edge AI tools specifically designed for loan originators and real estate professionals."},{icon:c.jsx(hp,{className:"h-6 w-6"}),title:"Reclaim Your Time",description:"Learn to quickly craft AI prompts that speed up repetitive tasks, so you can focus on building relationships and closing deals."},{icon:c.jsx(Yj,{className:"h-6 w-6"}),title:"Grow Your Business",description:"Learn how to use AI tools to create better marketing content, follow up with leads faster, and turn more conversations into closings."},{icon:c.jsx(sb,{className:"h-6 w-6"}),title:"Stay Ahead of Competitors",description:"Use AI with confidence to get more done, elevate your work, and stay focused on what matters most."},{icon:c.jsx(Rj,{className:"h-6 w-6"}),title:"Customized for Your Business",description:"We'll map out your business processes and pain points, then show you how to use AI tools and tailored language to make your work faster and easier."},{icon:c.jsx(Lj,{className:"h-6 w-6"}),title:"Practical Implementation",description:"No tech skills neededâmy workshops focus on hands-on, real-world applications you can start using right away."}],oO=()=>{const e=v.useRef([]);return v.useEffect(()=>{const t=new IntersectionObserver(r=>{r.forEach(n=>{n.isIntersecting&&n.target.classList.add("is-visible")})},{threshold:.1});return e.current.forEach(r=>{r&&t.observe(r)}),()=>{e.current.forEach(r=>{r&&t.unobserve(r)})}}
271,[]),c.jsxs("section",{id:"benefits",className:"py-20 relative overflow-hidden bg-white",children:[c.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_40%,rgba(0,0,0,0.02)_0,transparent_60%)]"}),c.jsxs("div",{className:"section-container relative z-10",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold mb-6",children:"Work Smarter, Not Harder: Use AI to Create Content, Save Time, and Focus on What Matters"}),c.jsx("p",{className:"text-lg text-gray-600",children:"My workshops teach loan originators and real estate professionals practical AI strategies to easily create quality content, save hours on repetitive tasks, and confidently use AI tools in their business."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:iO.map((t,r)=>c.jsxs("div",{ref:n=>e.current[r]=n,className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 fade-in-section hover-lift",style:{transitionDelay:`${r*100}ms`},children:[c.jsx("div",{className:"inline-flex items-center justify-center p-3 bg-secondary rounded-lg mb-4",children:t.icon}),c.jsx("h3",{className:"text-xl font-semibold mb-3",children:t.title}),c.jsx("p",{className:"text-gray-600",children:t.description})]},r))})]})]})},aO=Vu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function mc({className:e,variant:t,...r}){return c.jsx("div",{className:le(aO({variant:t}),e),...r})}const lO=()=>{const e=v.useRef([]);return v.useEffect(()=>{const t=new IntersectionObserver(r=>{r.forEach(n=>{n.isIntersecting&&n.target.classList.add("is-visible")})},{threshold:.1});return e.current.forEach(r=>{r&&t.observe(r)}),()=>{e.current.forEach(r=>{r&&t.unobserve(r)})}},[]),c.jsx("section",{id:"about",className:"py-8 bg-white relative",children:c.jsx("div",{className:"section-container py-6",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center",children:[c.jsxs("div",{ref:t=>e.current[0]=t,className:"fade-in-section",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold mb-6",children:"Empowering Professionals with AI"}),c.jsx("p",{className:"text-lg text-gray-600 mb-3",children:"Megan Anderson is the Vice President of Client Relations at Highway.AI and the creator of the AI Advantage. With over 10,000 loan officers trained throughout her career, she has established herself as a leading voice in mortgage advising and market analysis."}),c.jsx("p",{className:"text-lg text-gray-600 mb-3",children:"Her approach to AI training is shaped by her work with industry expert Barry Habib, focusing on practical strategies that help originators and real estate professionals save time while growing their businesses in today's competitive market."}),c.jsx("p",{className:"text-lg text-gray-600 mb-4",children:"Her engaging speaking style and insightful commentary have made her a sought-after speaker at industry conferences and events. Megan's contributions to the mortgage sector are characterized by her innovative training methods and her commitment to empowering professionals with the tools and knowledge needed to excel in today's competitive environment."}),c.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 bg-secondary p-2 rounded-lg",children:c.jsx(kj,{className:"h-5 w-5"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-1",children:"Award-Winning"}),c.jsx("p",{className:"text-sm text-gray-600",children:"Industry recognized"})]})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 bg-secondary p-2 rounded-lg",children:c.jsx(qu,{className:"h-5 w-5"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-1",children:"10+ Years"}),c.jsx("p",{className:"text-sm text-gray-600",children:"Industry experience"})]})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 bg-secondary p-2 rounded-lg",children:c.jsx(Hj,{className:"h-5 w-5"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-1",children:"Expert Speaker"}),c.jsx("p",{className:"text-sm text-gray-600",children:"5+ yrs speaking experience"})]})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 bg-secondary p-2 rounded-lg",children:c.jsx(qc,{className:"h-5 w-5"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-1",children:"10,000+"}),c.jsx("p",{className:"text-sm text-gray-600",children:"Professionals trained"})]})]})]}),c.jsxs("div",{className:"mt-6",children:[c.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Industry Recognition"}),c.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[c.jsx(mc,{variant:"secondary",className:"py-1",children:"Housing Wire's 2020 Women of Influence"}),c.jsx(mc,{variant:"secondary",className:"py-1",children:"2019 & 2022 Women with Vision Award"}),c.jsx(mc,{variant:"secondary",className:"py-1",children:"2019's 40 Under 40"})]}),c.jsxs("div",{className:"flex justify-center gap-8 mt-4",children:[c.jsx("a",{href:"https://www.housingwire.com/articles/2020-hw-woman-of-influence-megan-anderson/",target:"_blank",rel:"noopener noreferrer",className:"inline-block",children:c.jsx("img",{src:"/lovable-uploads/ff49baeb-d380-43d3-b30c-ccaffa2b2399.png",alt:"Housing Wire Logo",className:"h-14 w-auto object-contain"})}),c.jsx("a",{href:"https://read.visionyoursuccess.net/megan-anderson",target:"_blank",rel:"noopener noreferrer",className:"inline-block",children:c.jsx("img",{src:"/lovable-uploads/49456bcc-8415-4ed0-ab6b-c698a94756ed.png",alt:"Women With Vision Logo",className:"h-14 w-auto object-contain"})}),c.jsx("a",{href:"https://nationalmortgageprofessional.com/news/74161/national-mortgage-professional-magazineunder-most-influential-mortgage-professionals",target:"_blank",rel:"noopener noreferrer",className:"inline-block",children:c.jsx("img",{src:"/lovable-uploads/3d0c3f30-ec17-40be-af73-b9f5c9c24c5c.png",alt:"National Mortgage Professional Magazine Logo",className:"h-14 w-auto object-contain"})})]})]})]}),c.jsx("div",{ref:t=>e.current[1]=t,className:"fade-in-section",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute -top-5 -left-5 right-10 bottom-10 border-2 border-gray-100 rounded-xl"}),c.jsx("div",{className:"relative overflow-hidden rounded-xl shadow-xl",children:c.jsx(a_,{src:"/lovable-uploads/f4f1c058-1596-4444-8772-ef1977ee445c.png",alt:"Megan Anderson speaking at a professional event",className:"w-full h-auto object-cover rounded-xl"})}),c.jsxs("div",{className:"absolute -bottom-10 -right-10 p-6 bg-white rounded-2xl shadow-lg max-w-xs glass-card",children:[c.jsx("p",{className:"italic text-gray-600 text-sm",children:`"AI isn't just a toolâit's the competitive advantage that gives real estate professionals the edge they need in today's market while saving their most valuable resource: time."`}),c.jsx("div",{className:"mt-4 flex items-center",children:c.jsx("div",{className:"ml-2 font-semibold",children:"Megan Anderson"})})]})]})})]})})})},cO=()=>{const e=v.useRef([]);return v.useEffect(()=>{console.log("Workshops component mounted - checking for any date text");const t=new IntersectionObserver(r=>{r.forEach(n=>
271{n.isIntersecting&&n.target.classList.add("is-visible")})},{threshold:.1});return e.current.forEach(r=>{r&&t.observe(r)}),()=>{e.current.forEach(r=>{r&&t.unobserve(r)})}},[]),c.jsxs("section",{id:"workshops",className:"py-16 bg-secondary/50 relative",children:[c.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_70%_60%,rgba(0,0,0,0.02)_0,transparent_60%)]"}),c.jsxs("div",{className:"section-container relative z-10",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold mb-6",children:"What's in these virtual workshops?"}),c.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Join Megan Anderson where she shares how to quickly implement AI to attract and convert more clients in the real estate market."}),c.jsx("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 text-lg font-medium",children:c.jsx("div",{className:"flex items-center",children:c.jsx("span",{children:"Live Virtual Sessions"})})})]}),c.jsx("div",{className:"max-w-4xl mx-auto",children:c.jsxs("div",{ref:t=>e.current[0]=t,className:"bg-white rounded-xl shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-all duration-300 fade-in-section hover-lift",children:[c.jsx("div",{className:"bg-gradient-to-r from-gray-100 to-white p-1",children:c.jsx(mc,{variant:"secondary",className:"ml-4 mt-4",children:"Beginner-Friendly"})}),c.jsxs("div",{className:"p-6 md:p-8",children:[c.jsx("h3",{className:"text-2xl font-semibold mb-3",children:"The AI Advantage Workshop Series"}),c.jsx("p",{className:"text-gray-600 mb-4",children:"Learn how to leverage AI tools to speed up repetitive tasks, create compelling content, and craft personalized client experiences that help you stand out in today's market."}),c.jsxs("div",{className:"flex flex-wrap items-center mb-6 gap-4",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx(qu,{className:"w-4 h-4 mr-2 text-gray-500"}),c.jsx("span",{className:"text-sm",children:"Weekly Sessions"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(hp,{className:"w-4 h-4 mr-2 text-gray-500"}),c.jsx("span",{className:"text-sm",children:"Live Sessions"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(tb,{className:"w-4 h-4 mr-2 text-gray-500"}),c.jsx("span",{className:"text-sm",children:"Interactive Zoom Workshop"})]})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-base mb-3",children:"What You'll Learn:"}),c.jsxs("ul",{className:"space-y-2.5",children:[c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"text-sm text-gray-600",children:"How to save 3-5 hours per week with AI"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"text-sm text-gray-600",children:"Creating content in seconds that attracts clients"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"text-sm text-gray-600",children:"Building client communications that convert"})]})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-base mb-3",children:"You'll Receive:"}),c.jsxs("ul",{className:"space-y-2.5",children:[c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"text-sm text-gray-600",children:"Ready-to-use AI templates for daily tasks"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"text-sm text-gray-600",children:"Done for you prompts"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"text-sm text-gray-600",children:"A clear roadmap for using AI tools that match your business needs"})]})]})]})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 border-t border-gray-100 pt-6",children:[c.jsx("div",{children:c.jsx("p",{className:"text-gray-700 font-medium",children:"Space is limited to 20 participants"})}),c.jsx("div",{className:"text-center sm:text-right sm:ml-auto",children:c.jsx(mt,{size:"lg",className:"px-8",asChild:!0,children:c.jsx("a",{href:"https://calendly.com/megan-iammegananderson/exploration-call",children:"Curious if this is right for you?"})})})]})]})]})}),c.jsxs("div",{className:"mt-16 text-center",children:[c.jsx("p",{className:"text-gray-600 mb-6 max-w-2xl mx-auto",children:"Not sure if this workshop is right for you? Schedule a free 15-minute call to see how AI can support your business."}),c.jsx(mt,{variant:"outline",size:"lg",asChild:!0,children:c.jsx("a",{href:"https://calendly.com/megan-iammegananderson/exploration-call",children:"Book Your Free AI Discovery Call"})})]})]})]})};var Tp="Avatar",[uO,q3]=On(Tp),[dO,l_]=uO(Tp),c_=v.forwardRef((e,t)=>
271{const{__scopeAvatar:r,...n}=e,[s,i]=v.useState("idle");return c.jsx(dO,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:c.jsx(ke.span,{...n,ref:t})})});c_.displayName=Tp;var u_="AvatarImage",d_=v.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...i}=e,o=l_(u_,r),a=fO(n,i.referrerPolicy),l=Wt(u=>{s(u),o.onImageLoadingStatusChange(u)});return Cr(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?c.jsx(ke.img,{...i,ref:t,src:n}):null});d_.displayName=u_;var f_="AvatarFallback",h_=v.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...s}=e,i=l_(f_,r),[o,a]=v.useState(n===void 0);return v.useEffect(()=>{if(n!==void 0){const l=window.setTimeout(()=>a(!0),n);return()=>window.clearTimeout(l)}},[n]),o&&i.imageLoadingStatus!=="loaded"?c.jsx(ke.span,{...s,ref:t}):null});h_.displayName=f_;function fO(e,t){const[r,n]=v.useState("idle");return Cr(()=>{if(!e){n("error");return}let s=!0;const i=new window.Image,o=a=>()=>{s&&n(a)};return n("loading"),i.onload=o("loaded"),i.onerror=o("error"),i.src=e,t&&(i.referrerPolicy=t),()=>{s=!1}},[e,t]),r}var m_=c_,p_=d_,v_=h_;const g_=v.forwardRef(({className:e,...t},r)=>c.jsx(m_,{ref:r,className:le("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));g_.displayName=m_.displayName;const y_=v.forwardRef(({className:e,...t},r)=>c.jsx(p_,{ref:r,className:le("aspect-square h-full w-full",e),...t}));y_.displayName=p_.displayName;const hO=v.forwardRef(({className:e,...t},r)=>c.jsx(v_,{ref:r,className:le("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));hO.displayName=v_.displayName;const Vl=[{quote:"Thank you @Megan Anderson for sharing your knowledge in the AI Challenge. I'm learning so much this week!",name:"Amanda Smith",title:"Real Estate Professional",image:"/lovable-uploads/c65341e7-2427-44b0-8519-a619ce5ca4ee.png"},{quote:"AI Challenge webinar today was Excellent.",name:"Michael Robinson",title:"Business Owner",image:"/lovable-uploads/a35dae3c-05a1-40a1-b282-d5e21ee8e739.png"},{quote:"Thanks for putting this on Megan. Worth it for anyone who isn't making the use of AI. I thought there was a lot of value for anyone who is wanting to start leveraging AI.",name:"Jason Miller",title:"Mortgage Professional",image:"/lovable-uploads/a6feab86-485c-42c7-86b6-8aa4f986b952.png"}],x_=()=>{const[e,t]=v.useState(0),[r,n]=v.useState(!1),s=v.useRef(null),i=()=>{r||(n(!0),t(a=>a>0?a-1:Vl.length-1),setTimeout(()=>n(!1),500))},o=()=>{r||(n(!0),t(a=>a<Vl.length-1?a+1:0),setTimeout(()=>n(!1),500))};return v.useEffect(()=>{const a=new IntersectionObserver(l=>{l.forEach(u=>{u.isIntersecting&&u.target.classList.add("is-visible")})},{threshold:.1});return s.current&&a.observe(s.current),()=>{s.current&&a.unobserve(s.current)}},[]),c.jsxs("section",{id:"testimonials",className:"py-20 bg-white relative",children:[c.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_20%_80%,rgba(0,0,0,0.02)_0,transparent_60%)]"}),c.jsxs("div",{className:"section-container relative z-10",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold mb-6",children:"Hear From Our Community"}),c.jsx("p",{className:"text-lg text-gray-600",children:"What others are saying about using AI to make business easier and more effective."})]}),c.jsx("div",{className:"max-w-5xl mx-auto mb-16",children:c.jsx("div",{className:"flex justify-center",children:c.jsx("div",{className:"w-full max-w-2xl",children:c.jsx("div",{className:"aspect-video rounded-lg overflow-hidden shadow-lg",children:c.jsx("iframe",{src:"https://www.youtube.com/embed/cFoGHOUYNJs",title:"Video Testimonial",className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})})}),c.jsxs("div",{ref:s,className:"fade-in-section max-w-5xl mx-auto relative",children:[c.jsx("div",{className:"overflow-hidden rounded-xl bg-secondary/30 p-2",children:c.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${e*100}%)`},children:Vl.map((a,l)=>c.jsx("div",{className:"min-w-full p-8 md:p-12 bg-white rounded-lg shadow-sm",children:c.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center md:items-start",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsxs("div",{className:"relative",children:[c.jsx(Vj,{className:"absolute -top-2 -left-2 h-6 w-6 text-primary/20"}),c.jsx(g_,{className:"h-20 w-20 md:h-24 md:w-24 rounded-full overflow-hidden border-4 border-white shadow-md",children:c.jsx(y_,{src:a.image,alt:a.name})})]})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("p",{className:"text-lg md:text-xl text-gray-700 italic mb-6",children:['"',a.quote,'"']}),c.jsx("h4",{className:"font-semibold text-lg",children:a.name}),c.jsx("p",{className:"text-gray-600",children:a.title})]})]})},l))})}),c.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Vl.map((a,l)=>c.jsx("button",{className:`h-2 w-2 rounded-full transition-all duration-300 ${l===e?"bg-primary w-6":"bg-gray-300"}`,onClick:()=>{t(l)},"aria-label":`Go to testimonial ${l+1}`},l))}),c.jsxs("div",{className:"flex justify-between mt-8",children:[c.jsxs(mt,{variant:"outline",size:"icon",onClick:i,className:"rounded-full",disabled:r,children:[c.jsx(eb,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Previous testimonial"})]}),c.jsxs(mt,{variant:"outline",size:"icon",onClick:o,className:"rounded-full",disabled:r,children:[c.jsx(Hu,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Next testimonial"})]})]})]})]})]})},mO=()=>{const e=v.useRef(null),t="https://calendly.com/megan-iammegananderson/exploration-call";return v.useEffect(()=>{const r=new IntersectionObserver(n=>
271{n.forEach(s=>{s.isIntersecting&&s.target.classList.add("is-visible")})},{threshold:.1});return e.current&&r.observe(e.current),()=>{e.current&&r.unobserve(e.current)}},[]),c.jsxs("section",{id:"book-call",className:"py-12 bg-white relative",children:[c.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(0,0,0,0.02)_0,transparent_70%)]"}),c.jsx("div",{className:"section-container relative z-10",children:c.jsxs("div",{ref:e,className:"max-w-4xl mx-auto text-center fade-in-section",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold mb-6",children:"Simplify Your Workflow with Smart AI Strategies"}),c.jsx("p",{className:"text-lg text-gray-600 mb-10 max-w-2xl mx-auto",children:"Schedule a free 15-minute call to explore how AI can save you time, streamline your process, and support your goals."}),c.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[c.jsx("div",{className:"bg-secondary/20 p-6 rounded-xl border border-gray-100 hover:shadow-md transition-all duration-300",children:c.jsxs("div",{className:"flex items-start mb-4",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),c.jsx("p",{className:"text-left text-gray-700",children:"Discover AI tools tailored for your real estate niche"})]})}),c.jsx("div",{className:"bg-secondary/20 p-6 rounded-xl border border-gray-100 hover:shadow-md transition-all duration-300",children:c.jsxs("div",{className:"flex items-start mb-4",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),c.jsx("p",{className:"text-left text-gray-700",children:"Learn how AI can help streamline your marketing strategy"})]})}),c.jsx("div",{className:"bg-secondary/20 p-6 rounded-xl border border-gray-100 hover:shadow-md transition-all duration-300",children:c.jsxs("div",{className:"flex items-start mb-4",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),c.jsx("p",{className:"text-left text-gray-700",children:"Discover how to improve customer acquisition and follow-up"})]})})]}),c.jsx("div",{className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100 mb-8",children:c.jsx(mt,{size:"lg",className:"px-8 py-6 text-base w-full sm:w-auto",asChild:!0,children:c.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center",children:["Book Your Free AI Strategy Call ",c.jsx(Hu,{className:"ml-2 h-5 w-5"})]})})})]})})]})},pO=()=>(v.useEffect(()=>{try{const e=()=>{document.querySelectorAll(".fade-in-section").forEach(r=>{r.getBoundingClientRect().top<window.innerHeight-150&&r.classList.add("is-visible")})};return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}}catch(e){console.error("Error in scroll handler:",e)}},[]),c.jsxs("div",{className:"min-h-screen bg-white",children:[c.jsx(nd,{}),c.jsxs("main",{className:"space-y-0",children:[c.jsx(sO,{}),c.jsx(oO,{}),c.jsx(lO,{}),c.jsx(cO,{}),c.jsx(x_,{}),c.jsx(mO,{})]}),c.jsx(sd,{})]})),vO=()=>{const e=ll();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})};var cl=e=>e.type==="checkbox",Hs=e=>e instanceof Date,xt=e=>e==null;const w_=e=>typeof e=="object";var Ke=e=>!xt(e)&&!Array.isArray(e)&&w_(e)&&!Hs(e),b_=e=>Ke(e)&&e.target?cl(e.target)?e.target.checked:e.target.value:e,gO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,__=(e,t)=>e.has(gO(t)),yO=e=>{const t=e.constructor&&e.constructor.prototype;return Ke(t)&&t.hasOwnProperty("isPrototypeOf")},Op=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nt(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Op&&(e instanceof Blob||e instanceof FileList))&&(r||Ke(e)))if(t=r?[]:{},!r&&!yO(e))t=e;
vendor: 32,793 bytes, line 271
271else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Nt(e[n]));else return e;return t}var id=e=>Array.isArray(e)?e.filter(Boolean):[],qe=e=>e===void 0,W=(e,t,r)=>{if(!t||!Ke(e))return r;const n=id(t.split(/[,[\].]+?/)).reduce((s,i)=>xt(s)?s:s[i],e);return qe(n)||n===e?qe(e[t])?r:e[t]:n},ir=e=>typeof e=="boolean",Ap=e=>/^\w*$/.test(e),k_=e=>id(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,r)=>{let n=-1;const s=Ap(t)?[t]:k_(t),i=s.length,o=i-1;for(;++n<i;){const a=s[n];let l=r;if(n!==o){const u=e[a];l=Ke(u)||Array.isArray(u)?u:isNaN(+s[n+1])?{}:[]}if(a==="__proto__")return;e[a]=l,e=e[a]}return e};const eu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_r={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},S_=O.createContext(null),od=()=>O.useContext(S_),xO=e=>{const{children:t,...r}=e;return O.createElement(S_.Provider,{value:r},t)};var E_=(e,t,r,n=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==_r.all&&(t._proxyFormState[o]=!n||_r.all),r&&(r[o]=!0),e[o]}});return s},Pt=e=>Ke(e)&&!Object.keys(e).length,C_=(e,t,r,n)=>{r(e);const{name:s,...i}=e;return Pt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!n||_r.all))},pa=e=>Array.isArray(e)?e:[e],j_=(e,t,r)=>!e||!t||e===t||pa(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Rp(e){const t=O.useRef(e);t.current=e,O.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function wO(e){const t=od(),{control:r=t.control,disabled:n,name:s,exact:i}=e||{},[o,a]=O.useState(r._formState),l=O.useRef(!0),u=O.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=O.useRef(s);return d.current=s,Rp({disabled:n,next:f=>l.current&&j_(d.current,f.name,i)&&C_(f,u.current,r._updateFormState)&&a({...r._formState,...f}),subject:r._subjects.state}),O.useEffect(()=>(l.current=!0,u.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),E_(o,r,u.current,!1)}var qr=e=>typeof e=="string",N_=(e,t,r,n,s)=>qr(e)?(n&&t.watch.add(e),W(r,e,s)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),W(r,i))):(n&&(t.watchAll=!0),r);function bO(e){const t=od(),{control:r=t.control,name:n,defaultValue:s,disabled:i,exact:o}=e||{},a=O.useRef(n);a.current=n,Rp({disabled:i,subject:r._subjects.values,next:d=>{j_(a.current,d.name,o)&&u(Nt(N_(a.current,r._names,d.values||r._formValues,!1,s)))}});const[l,u]=O.useState(r._getWatch(n,s));return O.useEffect(()=>r._removeUnmounted()),l}function _O(e){const t=od(),{name:r,disabled:n,control:s=t.control,shouldUnregister:i}=e,o=__(s._names.array,r),a=bO({control:s,name:r,defaultValue:W(s._formValues,r,W(s._defaultValues,r,e.defaultValue)),exact:!0}),l=wO({control:s,name:r,exact:!0}),u=O.useRef(s.register(r,{...e.rules,value:a,...ir(e.disabled)?{disabled:e.disabled}:{}}));return O.useEffect(()=>{const d=s._options.shouldUnregister||i,f=(h,p)=>{const x=W(s._fields,h);x&&x._f&&(x._f.mount=p)};if(f(r,!0),d){const h=Nt(W(s._options.defaultValues,r));Ee(s._defaultValues,r,h),qe(W(s._formValues,r))&&Ee(s._formValues,r,h)}return()=>{(o?d&&!s._state.action:d)?s.unregister(r):f(r,!1)}},[r,s,o,i]),O.useEffect(()=>{W(s._fields,r)&&s._updateDisabledField({disabled:n,fields:s._fields,name:r,value:W(s._fields,r)._f.value})},[n,r,s]),{field:{name:r,value:a,...ir(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:O.useCallback(d=>u.current.onChange({target:{value:b_(d),name:r},type:eu.CHANGE}),[r]),onBlur:O.useCallback(()=>u.current.onBlur({target:{value:W(s._formValues,r),name:r},type:eu.BLUR}),[r,s]),ref:O.useCallback(d=>{const f=W(s._fields,r);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),reportValidity:()=>d.reportValidity()})},[s._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!W(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!W(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!W(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!W(l.validatingFields,r)},error:{enumerable:!0,get:()=>W(l.errors,r)}})}}const kO=e=>e.render(_O(e));var P_=(e,t,r,n,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:s||!0}}:{},sy=e=>({isOnSubmit:!e||e===_r.onSubmit,isOnBlur:e===_r.onBlur,isOnChange:e===_r.onChange,isOnAll:e===_r.all,isOnTouch:e===_r.onTouched}),iy=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const va=(e,t,r,n)=>{for(const s of r||Object.keys(e)){const i=W(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(va(a,t))break}else if(Ke(a)&&va(a,t))break}}};var SO=(e,t,r)=>{const n=pa(W(e,r));return Ee(n,"root",t[r]),Ee(e,r,n),e},Ip=e=>e.type==="file",gn=e=>typeof e=="function",tu=e=>{if(!Op)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pc=e=>qr(e),Mp=e=>e.type==="radio",ru=e=>e instanceof RegExp;const oy={value:!1,isValid:!1},ay={value:!0,isValid:!0};var T_=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qe(e[0].attributes.value)?qe(e[0].value)||e[0].value===""?ay:{value:e[0].value,isValid:!0}:ay:oy}return oy};const ly={isValid:!1,value:null};var O_=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,ly):ly;function cy(e,t,r="validate"){if(pc(e)||Array.isArray(e)&&e.every(pc)||ir(e)&&!e)return{type:r,message:pc(e)?e:"",ref:t}}var vi=e=>Ke(e)&&!ru(e)?e:{value:e,message:""},uy=async(e,t,r,n,s)=>{const{ref:i,refs:o,required:a,maxLength:l,minLength:u,min:d,max:f,pattern:h,validate:p,name:x,valueAsNumber:g,mount:b,disabled:y}=e._f,m=W(t,x);if(!b||y)return{};const w=o?o[0]:i,_=R=>{n&&w.reportValidity&&(w.setCustomValidity(ir(R)?"":R||""),w.reportValidity())},k={},C=Mp(i),N=cl(i),P=C||N,$=(g||Ip(i))&&qe(i.value)&&qe(m)||tu(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,U=P_.bind(null,x,r,k),J=(R,V,D,X=nn.maxLength,G=nn.minLength)=>{const I=R?V:D;k[x]={type:R?X:G,message:I,ref:i,...U(R?X:G,I)}};if(s?!Array.isArray(m)||!m.length:a&&(!P&&($||xt(m))||ir(m)&&!m||N&&!T_(o).isValid||C&&!O_(o).isValid)){const{value:R,message:V}=pc(a)?{value:!!a,message:a}:vi(a);if(R&&(k[x]={type:nn.required,message:V,ref:w,...U(nn.required,V)},!r))return _(V),k}if(!$&&(!xt(d)||!xt(f))){let R,V;const D=vi(f),X=vi(d);if(!xt(m)&&!isNaN(m)){const G=i.valueAsNumber||m&&+m;xt(D.value)||(R=G>D.value),xt(X.value)||(V=G<X.value)}else{const G=i.valueAsDate||new Date(m),I=K=>new Date(new Date().toDateString()+" "+K),E=i.type=="time",L=i.type=="week";qr(D.value)&&m&&(R=E?I(m)>I(D.value):L?m>D.value:G>new Date(D.value)),qr(X.value)&&m&&(V=E?I(m)<I(X.value):L?m<X.value:G<new Date(X.value))}if((R||V)&&(J(!!R,D.message,X.message,nn.max,nn.min),!r))return _(k[x].message),k}if((l||u)&&!$&&(qr(m)||s&&Array.isArray(m))){const R=vi(l),V=vi(u),D=!xt(R.value)&&m.length>+R.value,X=!xt(V.value)&&m.length<+V.value;if((D||X)&&(J(D,R.message,V.message),!r))return _(k[x].message),k}if(h&&!$&&qr(m)){const{value:R,message:V}=vi(h);if(ru(R)&&!m.match(R)&&(k[x]={type:nn.pattern,message:V,ref:i,...U(nn.pattern,V)},!r))return _(V),k}if(p){if(gn(p)){const R=await p(m,t),V=cy(R,w);if(V&&(k[x]={...V,...U(nn.validate,V.message)},!r))return _(V.message),k}else if(Ke(p)){let R={};for(const V in p){if(!Pt(R)&&!r)break;const D=cy(await p[V](m,t),w,V);D&&(R={...D,...U(V,D.message)},_(D.message),r&&(k[x]=R))}if(!Pt(R)&&(k[x]={ref:w,...R},!r))return k}}return _(!0),k};function EO(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=qe(e)?n++:e[t[n++]];return e}function CO(e){for(const t in e)if(e.hasOwnProperty(t)&&!qe(e[t]))return!1;return!0}function et(e,t){const r=Array.isArray(t)?t:Ap(t)?[t]:k_(t),n=r.length===1?e:EO(e,r),s=r.length-1,i=r[s];return n&&delete n[i],s!==0&&(Ke(n)&&Pt(n)||Array.isArray(n)&&CO(n))&&et(e,r.slice(0,-1)),e}var rf=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Uh=e=>xt(e)||!w_(e);function Zn(e,t){if(Uh(e)||Uh(t))return e===t;if(Hs(e)&&Hs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const s of r){const i=e[s];if(!n.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Hs(i)&&Hs(o)||Ke(i)&&Ke(o)||Array.isArray(i)&&Array.isArray(o)?!Zn(i,o):i!==o)return!1}}return!0}var A_=e=>e.type==="select-multiple",jO=e=>Mp(e)||cl(e),nf=e=>tu(e)&&e.isConnected,R_=e=>{for(const t in e)if(gn(e[t]))return!0;return!1};function nu(e,t={}){const r=Array.isArray(e);if(Ke(e)||r)for(const n in e)Array.isArray(e[n])||Ke(e[n])&&!R_(e[n])?(t[n]=Array.isArray(e[n])?[]:{},nu(e[n],t[n])):xt(e[n])||(t[n]=!0);return t}function I_(e,t,r){const n=Array.isArray(e);if(Ke(e)||n)for(const s in e)Array.isArray(e[s])||Ke(e[s])&&!R_(e[s])?qe(t)||Uh(r[s])?r[s]=Array.isArray(e[s])?nu(e[s],[]):{...nu(e[s])}:I_(e[s],xt(t)?{}:t[s],r[s]):r[s]=!Zn(e[s],t[s]);return r}var Ho=(e,t)=>I_(e,t,nu(t)),M_=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>qe(e)?e:t?e===""?NaN:e&&+e:r&&qr(e)?new Date(e):n?n(e):e;function sf(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Ip(t)?t.files:Mp(t)?O_(e.refs).value:A_(t)?[...t.selectedOptions].map(({value:r})=>r):cl(t)?T_(e.refs).value:M_(qe(t.value)?e.ref.value:t.value,e)}var NO=(e,t,r,n)=>{const s={};for(const i of e){const o=W(t,i);o&&Ee(s,i,o._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:n}},qo=e=>qe(e)?e:ru(e)?e.source:Ke(e)?ru(e.value)?e.value.source:e.value:e;const dy="AsyncFunction";var PO=e=>(!e||!e.validate)&&!!(gn(e.validate)&&e.validate.constructor.name===dy||Ke(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===dy)),TO=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function fy(e,t,r){const n=W(e,r);if(n||Ap(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const i=s.join("."),o=W(t,i),a=W(e,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:r}}var OO=(e,t,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?n.isOnBlur:s.isOnBlur)?!e:(r?n.isOnChange:s.isOnChange)?e:!0,AO=(e,t)=>!id(W(e,t)).length&&et(e,t);const RO={mode:_r.onSubmit,reValidateMode:_r.onChange,shouldFocusError:!0};function IO(e={}){let t={...RO,...e},r={submitCount:0,isDirty:!1,isLoading:gn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},s=Ke(t.defaultValues)||Ke(t.values)?Nt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Nt(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:rf(),array:rf(),state:rf()},h=sy(t.mode),p=sy(t.reValidateMode),x=t.criteriaMode===_r.all,g=S=>j=>{clearTimeout(u),u=setTimeout(S,j)},b=async S=>{if(!e.disabled&&(d.isValid||S)){const j=t.resolver?Pt((await P()).errors):await U(n,!0);j!==r.isValid&&f.state.next({isValid:j})}},y=(S,j)=>{!e.disabled&&(d.isValidating||d.validatingFields)&&((S||Array.from(a.mount)).forEach(T=>{T&&(j?Ee(r.validatingFields,T,j):et(r.validatingFields,T))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Pt(r.validatingFields)}))},m=(S,j=[],T,q,z=!0,B=!0)=>{if(q&&T&&!e.disabled){if(o.action=!0,B&&Array.isArray(W(n,S))){const re=T(W(n,S),q.argA,q.argB);z&&Ee(n,S,re)}if(B&&Array.isArray(W(r.errors,S))){const re=T(W(r.errors,S),q.argA,q.argB);z&&Ee(r.errors,S,re),AO(r.errors,S)}if(d.touchedFields&&B&&Array.isArray(W(r.touchedFields,S))){const re=T(W(r.touchedFields,S),q.argA,q.argB);z&&Ee(r.touchedFields,S,re)}d.dirtyFields&&(r.dirtyFields=Ho(s,i)),f.state.next({name:S,isDirty:R(S,j),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(i,S,j)},w=(S,j)=>{Ee(r.errors,S,j),f.state.next({errors:r.errors})},_=S=>{r.errors=S,f.state.next({errors:r.errors,isValid:!1})},k=(S,j,T,q)=>{const z=W(n,S);if(z){const B=W(i,S,qe(T)?W(s,S):T);qe(B)||q&&q.defaultChecked||j?Ee(i,S,j?B:sf(z._f)):X(S,B),o.mount&&b()}},C=(S,j,T,q,z)=>{let B=!1,re=!1;const ce={name:S};if(!e.disabled){const We=!!(W(n,S)&&W(n,S)._f&&W(n,S)._f.disabled);if(!T||q){d.isDirty&&(re=r.isDirty,r.isDirty=ce.isDirty=R(),B=re!==ce.isDirty);const Re=We||Zn(W(s,S),j);re=!!(!We&&W(r.dirtyFields,S)),Re||We?et(r.dirtyFields,S):Ee(r.dirtyFields,S,!0),ce.dirtyFields=r.dirtyFields,B=B||d.dirtyFields&&re!==!Re}if(T){const Re=W(r.touchedFields,S);Re||(Ee(r.touchedFields,S,T),ce.touchedFields=r.touchedFields,B=B||d.touchedFields&&Re!==T)}B&&z&&f.state.next(ce)}return B?ce:{}},N=(S,j,T,q)=>{const z=W(r.errors,S),B=d.isValid&&ir(j)&&r.isValid!==j;if(e.delayError&&T?(l=g(()=>w(S,T)),l(e.delayError)):(clearTimeout(u),l=null,T?Ee(r.errors,S,T):et(r.errors,S)),(T?!Zn(z,T):z)||!Pt(q)||B){const re={...q,...B&&ir(j)?{isValid:j}:{},errors:r.errors,name:S};r={...r,...re},f.state.next(re)}},P=async S=>{y(S,!0);const j=await t.resolver(i,t.context,NO(S||a.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y(S),j},$=async S=>{const{errors:j}=await P(S);if(S)for(const T of S){const q=W(j,T);q?Ee(r.errors,T,q):et(r.errors,T)}else r.errors=j;return j},U=async(S,j,T={valid:!0})=>{for(const q in S){const z=S[q];if(z){const{_f:B,...re}=z;if(B){const ce=a.array.has(B.name),We=z._f&&PO(z._f);We&&d.validatingFields&&y([q],!0);const Re=await uy(z,i,x,t.shouldUseNativeValidation&&!j,ce);if(We&&d.validatingFields&&y([q]),Re[B.name]&&(T.valid=!1,j))break;!j&&(W(Re,B.name)?ce?SO(r.errors,Re,B.name):Ee(r.errors,B.name,Re[B.name]):et(r.errors,B.name))}!Pt(re)&&await U(re,j,T)}}return T.valid},J=()=>{for(const S of a.unMount){const j=W(n,S);j&&(j._f.refs?j._f.refs.every(T=>!nf(T)):!nf(j._f.ref))&&xe(S)}a.unMount=new Set},R=(S,j)=>!e.disabled&&(S&&j&&Ee(i,S,j),!Zn(H(),s)),V=(S,j,T)=>N_(S,a,{...o.mount?i:qe(j)?s:qr(S)?{[S]:j}:j},T,j),D=S=>id(W(o.mount?i:s,S,e.shouldUnregister?W(s,S,[]):[])),X=(S,j,T={})=>{const q=W(n,S);let z=j;if(q){const B=q._f;B&&(!B.disabled&&Ee(i,S,M_(j,B)),z=tu(B.ref)&&xt(j)?"":j,A_(B.ref)?[...B.ref.options].forEach(re=>re.selected=z.includes(re.value)):B.refs?cl(B.ref)?B.refs.length>1?B.refs.forEach(re=>(!re.defaultChecked||!re.disabled)&&(re.checked=Array.isArray(z)?!!z.find(ce=>ce===re.value):z===re.value)):B.refs[0]&&(B.refs[0].checked=!!z):B.refs.forEach(re=>re.checked=re.value===z):Ip(B.ref)?B.ref.value="":(B.ref.value=z,B.ref.type||f.values.next({name:S,values:{...i}})))}(T.shouldDirty||T.shouldTouch)&&C(S,z,T.shouldTouch,T.shouldDirty,!0),T.shouldValidate&&K(S)},G=(S,j,T)=>{for(const q in j){const z=j[q],B=`${S}.${q}`,re=W(n,B);(a.array.has(S)||Ke(z)||re&&!re._f)&&!Hs(z)?G(B,z,T):X(B,z,T)}},I=(S,j,T={})=>{const q=W(n,S),z=a.array.has(S),B=Nt(j);Ee(i,S,B),z?(f.array.next({name:S,values:{...i}}),(d.isDirty||d.dirtyFields)&&T.shouldDirty&&f.state.next({name:S,dirtyFields:Ho(s,i),isDirty:R(S,B)})):q&&!q._f&&!xt(B)?G(S,B,T):X(S,B,T),iy(S,a)&&f.state.next({...r}),f.values.next({name:o.mount?S:void 0,values:{...i}})},E=async S=>{o.mount=!0;const j=S.target;let T=j.name,q=!0;const z=W(n,T),B=()=>j.type?sf(z._f):b_(S),re=ce=>{q=Number.isNaN(ce)||Hs(ce)&&isNaN(ce.getTime())||Zn(ce,W(i,T,ce))};if(z){let ce,We;const Re=B(),Rr=S.type===eu.BLUR||S.type===eu.FOCUS_OUT,Mn=!TO(z._f)&&!t.resolver&&!W(r.errors,T)&&!z._f.deps||OO(Rr,W(r.touchedFields,T),r.isSubmitted,p,h),hi=iy(T,a,Rr);Ee(i,T,Re),Rr?(z._f.onBlur&&z._f.onBlur(S),l&&l(0)):z._f.onChange&&z._f.onChange(S);const Ro=C(T,Re,Rr,!1),xl=!Pt(Ro)||hi;if(!Rr&&f.values.next({name:T,type:S.type,values:{...i}}),Mn)return d.isValid&&(e.mode==="onBlur"?Rr&&b():b()),xl&&f.state.next({name:T,...hi?{}:Ro});if(!Rr&&hi&&f.state.next({...r}),t.resolver){const{errors:Io}=await P([T]);if(re(Re),q){const xd=fy(r.errors,n,T),mi=fy(Io,n,xd.name||T);ce=mi.error,T=mi.name,We=Pt(Io)}}else y([T],!0),ce=(await uy(z,i,x,t.shouldUseNativeValidation))[T],y([T]),re(Re),q&&(ce?We=!1:d.isValid&&(We=await U(n,!0)));q&&(z._f.deps&&K(z._f.deps),N(T,We,ce,Ro))}},L=(S,j)=>{if(W(r.errors,j)&&S.focus)return S.focus(),1},K=async(S,j={})=>{let T,q;const z=pa(S);if(t.resolver){const B=await $(qe(S)?S:z);T=Pt(B),q=S?!z.some(re=>W(B,re)):T}else S?(q=(await Promise.all(z.map(async B=>{const re=W(n,B);return await U(re&&re._f?{[B]:re}:re)}))).every(Boolean),!(!q&&!r.isValid)&&b()):q=T=await U(n);return f.state.next({...!qr(S)||d.isValid&&T!==r.isValid?{}:{name:S},...t.resolver||!S?{isValid:T}:{},errors:r.errors}),j.shouldFocus&&!q&&va(n,L,S?z:a.mount),q},H=S=>{const j={...o.mount?i:s};return qe(S)?j:qr(S)?W(j,S):S.map(T=>W(j,T))},te=(S,j)=>({invalid:!!W((j||r).errors,S),isDirty:!!W((j||r).dirtyFields,S),error:W((j||r).errors,S),isValidating:!!W(r.validatingFields,S),isTouched:!!W((j||r).touchedFields,S)}),me=S=>{S&&pa(S).forEach(j=>et(r.errors,j)),f.state.next({errors:S?r.errors:{}})},Ne=(S,j,T)=>{const q=(W(n,S,{_f:{}})._f||{}).ref,z=W(r.errors,S)||{},{ref:B,message:re,type:ce,...We}=z;Ee(r.errors,S,{...We,...j,ref:q}),f.state.next({name:S,errors:r.errors,isValid:!1}),T&&T.shouldFocus&&q&&q.focus&&q.focus()},vt=(S,j)=>gn(S)?f.values.subscribe({next:T=>S(V(void 0,j),T)}):V(S,j,!0),xe=(S,j={})=>{for(const T of S?pa(S):a.mount)a.mount.delete(T),a.array.delete(T),j.keepValue||(et(n,T),et(i,T)),!j.keepError&&et(r.errors,T),!j.keepDirty&&et(r.dirtyFields,T),!j.keepTouched&&et(r.touchedFields,T),!j.keepIsValidating&&et(r.validatingFields,T),!t.shouldUnregister&&!j.keepDefaultValue&&et(s,T);f.values.next({values:{...i}}),f.state.next({...r,...j.keepDirty?{isDirty:R()}:{}}),!j.keepIsValid&&b()},Ct=({disabled:S,name:j,field:T,fields:q,value:z})=>{if(ir(S)&&o.mount||S){const B=S?void 0:qe(z)?sf(T?T._f:W(q,j)._f):z;Ee(i,j,B),C(j,B,!1,!1,!0)}},rr=(S,j={})=>{let T=W(n,S);const q=ir(j.disabled)||ir(e.disabled);return Ee(n,S,{...T||{},_f:{...T&&T._f?T._f:{ref:{name:S}},name:S,mount:!0,...j}}),a.mount.add(S),T?Ct({field:T,disabled:ir(j.disabled)?j.disabled:e.disabled,name:S,value:j.value}):k(S,!0,j.value),{...q?{disabled:j.disabled||e.disabled}:{},...t.progressive?{required:!!j.required,min:qo(j.min),max:qo(j.max),minLength:qo(j.minLength),maxLength:qo(j.maxLength),pattern:qo(j.pattern)}:{},name:S,onChange:E,onBlur:E,ref:z=>{if(z){rr(S,j),T=W(n,S);const B=qe(z.value)&&z.querySelectorAll&&z.querySelectorAll("input,select,textarea")[0]||z,re=jO(B),ce=T._f.refs||[];if(re?ce.find(We=>We===B):B===T._f.ref)return;Ee(n,S,{_f:{...T._f,...re?{refs:[...ce.filter(nf),B,...Array.isArray(W(s,S))?[{}]:[]],ref:{type:B.type,name:S}}:{ref:B}}}),k(S,!1,void 0,B)}else T=W(n,S,{}),T._f&&(T._f.mount=!1),(t.shouldUnregister||j.shouldUnregister)&&!(__(a.array,S)&&o.action)&&a.unMount.add(S)}}},mr=()=>t.shouldFocusError&&va(n,L,a.mount),Or=S=>{ir(S)&&(f.state.next({disabled:S}),va(n,(j,T)=>{const q=W(n,T);q&&(j.disabled=q._f.disabled||S,Array.isArray(q._f.refs)&&q._f.refs.forEach(z=>{z.disabled=q._f.disabled||S}))},0,!1))},Os=(S,j)=>async T=>{let q;T&&(T.preventDefault&&T.preventDefault(),T.persist&&T.persist());let z=Nt(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:B,values:re}=await P();r.errors=B,z=re}else await U(n);if(et(r.errors,"root"),Pt(r.errors)){f.state.next({errors:{}});try{await S(z,T)}catch(B){q=B}}else j&&await j({...r.errors},T),mr(),setTimeout(mr);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Pt(r.errors)&&!q,submitCount:r.submitCount+1,errors:r.errors}),q)throw q},Rn=(S,j={})=>{W(n,S)&&(qe(j.defaultValue)?I(S,Nt(W(s,S))):(I(S,j.defaultValue),Ee(s,S,Nt(j.defaultValue))),j.keepTouched||et(r.touchedFields,S),j.keepDirty||(et(r.dirtyFields,S),r.isDirty=j.defaultValue?R(S,Nt(W(s,S))):R()),j.keepError||(et(r.errors,S),d.isValid&&b()),f.state.next({...r}))},Ar=(S,j={})=>{const T=S?Nt(S):s,q=Nt(T),z=Pt(S),B=z?s:q;if(j.keepDefaultValues||(s=T),!j.keepValues){if(j.keepDirtyValues){const re=new Set([...a.mount,...Object.keys(Ho(s,i))]);for(const ce of Array.from(re))W(r.dirtyFields,ce)?Ee(B,ce,W(i,ce)):I(ce,W(B,ce))}else{if(Op&&qe(S))for(const re of a.mount){const ce=W(n,re);if(ce&&ce._f){const We=Array.isArray(ce._f.refs)?ce._f.refs[0]:ce._f.ref;if(tu(We)){const Re=We.closest("form");if(Re){Re.reset();break}}}}n={}}i=e.shouldUnregister?j.keepDefaultValues?Nt(s):{}:Nt(B),f.array.next({values:{...B}}),f.values.next({values:{...B}})}a={mount:j.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!j.keepIsValid||!!j.keepDirtyValues,o.watch=!!e.shouldUnregister,f.state.next({submitCount:j.keepSubmitCount?r.submitCount:0,isDirty:z?!1:j.keepDirty?r.isDirty:!!(j.keepDefaultValues&&!Zn(S,s)),isSubmitted:j.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:z?{}:j.keepDirtyValues?j.keepDefaultValues&&i?Ho(s,i):r.dirtyFields:j.keepDefaultValues&&S?Ho(s,S):j.keepDirty?r.dirtyFields:{},touchedFields:j.keepTouched?r.touchedFields:{},errors:j.keepErrors?r.errors:{},isSubmitSuccessful:j.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},In=(S,j)=>Ar(gn(S)?S(i):S,j);return{control:{register:rr,unregister:xe,getFieldState:te,handleSubmit:Os,setError:Ne,_executeSchema:P,_getWatch:V,_getDirty:R,_updateValid:b,_removeUnmounted:J,_updateFieldArray:m,_updateDisabledField:Ct,_getFieldArray:D,_reset:Ar,_resetDefaultValues:()=>gn(t.defaultValues)&&t.defaultValues().then(S=>{In(S,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:S=>{r={...r,...S}},_disableForm:Or,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(S){o=S},get _defaultValues(){return s},get _names(){return a},set _names(S){a=S},get _formState(){return r},set _formState(S){r=S},get _options(){return t},set _options(S){t={...t,...S}}},trigger:K,register:rr,handleSubmit:Os,watch:vt,setValue:I,getValues:H,reset:In,resetField:Rn,clearErrors:me,unregister:xe,setError:Ne,setFocus:(S,j={})=>{const T=W(n,S),q=T&&T._f;if(q){const z=q.refs?q.refs[0]:q.ref;z.focus&&(z.focus(),j.shouldSelect&&z.select())}},getFieldState:te}}function MO(e={}){const t=O.useRef(),r=O.useRef(),[n,s]=O.useState({isDirty:!1,isValidating:!1,isLoading:gn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:gn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IO(e),formState:n});const i=t.current.control;return i._options=e,Rp({subject:i._subjects.state,next:o=>{C_(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),O.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),O.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),O.useEffect(()=>{e.values&&!Zn(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),O.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),O.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),O.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),O.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[n]),t.current.formState=E_(n,i),t.current}const hy=(e,t,r)=>{if(e&&"reportValidity"in e){const n=W(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},D_=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?hy(n.ref,r,e):n.refs&&n.refs.forEach(s=>hy(s,r,e))}},DO=(e,t)=>{t.shouldUseNativeValidation&&D_(e,t);const r={};for(const n in e){const s=W(t.fields,n),i=Object.assign(e[n]||{},{ref:s&&s.ref});if(LO(t.names||Object.keys(e),n)){const o=Object.assign({},W(r,n));Ee(o,"root",i),Ee(r,n,o)}else Ee(r,n,i)}return r},LO=(e,t)=>e.some(r=>r.startsWith(t+"."));var FO=function(e,t){for(var r={};e.length;){var n=e[0],s=n.code,i=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var a=n.unionErrors[0].errors[0];r[o]={message:a.message,type:a.code}}else r[o]={message:i,type:s};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[o].types,u=l&&l[n.code];r[o]=P_(o,t,r,s,u?[].concat(u,n.message):n.message)}e.shift()}return r},$O=function(e,t,r){return r===void 0&&(r={}),function(n,s,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(u){return i.shouldUseNativeValidation&&D_({},i),{errors:{},values:r.raw?n:u}})}catch(u){return a(u)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:DO(FO(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},we;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(we||(we={}));var my;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(my||(my={}));const Q=we.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Us=e=>{switch(typeof e){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return isNaN(e)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":return Array.isArray(e)?Q.array:e===null?Q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Q.promise:typeof Map<"u"&&e instanceof Map?Q.map:typeof Set<"u"&&e instanceof Set?Q.set:typeof Date<"u"&&e instanceof Date?Q.date:Q.object;default:return Q.unknown}},F=we.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ur extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},n={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),n}static assert(t){if(!(t instanceof ur))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,we.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}ur.create=e=>new ur(e);const qa=(e,t)=>{let r;switch(e.code){case F.invalid_type:e.received===Q.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,we.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:r=`Unrecognized key(s) in object: ${we.joinValues(e.keys,", ")}`;break;case F.invalid_union:r="Invalid input";break;case F.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${we.joinValues(e.options)}`;break;case F.invalid_enum_value:r=`Invalid enum value. Expected ${we.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:r="Invalid function arguments";break;case F.invalid_return_type:r="Invalid function return type";break;case F.invalid_date:r="Invalid date";break;case F.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:we.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case F.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case F.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case F.custom:r="Invalid input";break;case F.invalid_intersection_types:r="Intersection results could not be merged";break;case F.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:r="Number must be finite";break;default:r=t.defaultError,we.assertNever(e)}return{message:r}};let UO=qa;function Bh(){return UO}const Wh=e=>{const{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=n.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}};function Y(e,t){const r=Bh(),n=Wh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===qa?void 0:qa].filter(s=>!!s)});e.common.issues.push(n)}class kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const s of r){if(s.status==="aborted")return ie;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const s of r){const i=await s.key,o=await s.value;n.push({key:i,value:o})}return kt.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const s of r){const{key:i,value:o}=s;
vendor: 6,007 bytes, line 271
271if(i.status==="aborted"||o.status==="aborted")return ie;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}}const ie=Object.freeze({status:"aborted"}),ta=e=>({status:"dirty",value:e}),zt=e=>({status:"valid",value:e}),py=e=>e.status==="aborted",vy=e=>e.status==="dirty",su=e=>e.status==="valid",iu=e=>typeof Promise<"u"&&e instanceof Promise;function ou(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function L_(e,t,r,n,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ee||(ee={}));var ra,na;class Jr{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gy=(e,t)=>{if(su(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ur(e.common.issues);return this._error=r,this._error}}};function ae(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{var l,u;const{message:d}=e;return o.code==="invalid_enum_value"?{message:d??a.defaultError}:typeof a.data>"u"?{message:(l=d??n)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(u=d??r)!==null&&u!==void 0?u:a.defaultError}},description:s}}class ve{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Us(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Us(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new kt,ctx:{common:t.parent.common,data:t.data,parsedType:Us(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(iu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const s={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Us(t)},i=this._parseSync({data:t,path:s.path,parent:s});return gy(s,i)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Us(t)},s=this._parse({data:t,path:n.path,parent:n}),i=await(iu(s)?s:Promise.resolve(s));return gy(n,i)}refine(t,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:F.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new Nn({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return wn.create(this,this._def)}nullable(){return oi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qr.create(this,this._def)}promise(){return Ga.create(this,this._def)}or(t){return cu.create([this,t],this._def)}and(t){return uu.create(this,t,this._def)}transform(t){return new Nn({...ae(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new pu({...ae(this._def),innerType:this,defaultValue:r,typeName:se.ZodDefault})}brand(){return new B_({typeName:se.ZodBranded,type:this,...ae(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new vu({...ae(this._def),innerType:this,catchValue:r,typeName:se.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ad.create(this,t)}readonly(){return gu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const BO=/^c[^\s-]{8,}
271$/i,WO=/^[0-9a-z]+$/,zO=/^[0-9A-HJKMNP-TV-Z]{26}$/,VO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,HO=/^[a-z0-9_-]{21}$/i,qO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,YO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,GO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let of;const KO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,QO=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ZO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}
vendor: 41,286 bytes, line 271
271=))?$/,F_="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",JO=new RegExp(`^${F_}$`);function $_(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function XO(e){return new RegExp(`^${$_(e)}$`)}function eA(e){let t=`${F_}T${$_(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function tA(e,t){return!!((t==="v4"||!t)&&KO.test(e)||(t==="v6"||!t)&&QO.test(e))}class yn extends ve{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Q.string){const i=this._getOrReturnCtx(t);return Y(i,{code:F.invalid_type,expected:Q.string,received:i.parsedType}),ie}const n=new kt;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),Y(s,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),Y(s,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?Y(s,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Y(s,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")YO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"email",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")of||(of=new RegExp(GO,"u")),of.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"emoji",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")VO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"uuid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")HO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"nanoid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")BO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"cuid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")WO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"cuid2",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")zO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"ulid",code:F.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),Y(s,{validation:"url",code:F.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"regex",code:F.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),Y(s,{code:F.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),Y(s,{code:F.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),Y(s,{code:F.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?eA(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{code:F.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?JO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{code:F.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?XO(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{code:F.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?qO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"duration",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?tA(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"ip",code:F.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?ZO.test(t.data)||(s=this._getOrReturnCtx(t,s),Y(s,{validation:"base64",code:F.invalid_string,message:i.message}),n.dirty()):we.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:F.invalid_string,...ee.errToObj(n)})}_addCheck(t){return new yn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ee.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...ee.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ee.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ee.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...ee.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...ee.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...ee.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...ee.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...ee.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...ee.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...ee.errToObj(r)})}nonempty(t){return this.min(1,ee.errToObj(t))}trim(){return new yn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new yn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new yn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}yn.create=e=>{var t;return new yn({checks:[],typeName:se.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ae(e)})};function rA(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class go extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Q.number){const i=this._getOrReturnCtx(t);return Y(i,{code:F.invalid_type,expected:Q.number,received:i.parsedType}),ie}let n;const s=new kt;for(const i of this._def.checks)i.kind==="int"?we.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Y(n,{code:F.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Y(n,{code:F.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Y(n,{code:F.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?rA(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),Y(n,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Y(n,{code:F.not_finite,message:i.message}),s.dirty()):we.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ee.toString(r))}setLimit(t,r,n,s){return new go({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:ee.toString(s)}]})}_addCheck(t){return new go({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ee.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&we.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}go.create=e=>new go({checks:[],typeName:se.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});class yo extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Q.bigint){const i=this._getOrReturnCtx(t);return Y(i,{code:F.invalid_type,expected:Q.bigint,received:i.parsedType}),ie}let n;const s=new kt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Y(n,{code:F.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Y(n,{code:F.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Y(n,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):we.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ee.toString(r))}setLimit(t,r,n,s){return new yo({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:ee.toString(s)}]})}_addCheck(t){return new yo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}yo.create=e=>{var t;return new yo({checks:[],typeName:se.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ae(e)})};class zh extends ve{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Q.boolean){const n=this._getOrReturnCtx(t);return Y(n,{code:F.invalid_type,expected:Q.boolean,received:n.parsedType}),ie}return zt(t.data)}}zh.create=e=>new zh({typeName:se.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});class Ya extends ve{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Q.date){const i=this._getOrReturnCtx(t);return Y(i,{code:F.invalid_type,expected:Q.date,received:i.parsedType}),ie}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Y(i,{code:F.invalid_date}),ie}const n=new kt;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),Y(s,{code:F.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),Y(s,{code:F.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):we.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ya({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:ee.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:ee.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Ya.create=e=>new Ya({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:se.ZodDate,...ae(e)});class Vh extends ve{_parse(t){if(this._getType(t)!==Q.symbol){const n=this._getOrReturnCtx(t);return Y(n,{code:F.invalid_type,expected:Q.symbol,received:n.parsedType}),ie}return zt(t.data)}}Vh.create=e=>new Vh({typeName:se.ZodSymbol,...ae(e)});class au extends ve{_parse(t){if(this._getType(t)!==Q.undefined){const n=this._getOrReturnCtx(t);return Y(n,{code:F.invalid_type,expected:Q.undefined,received:n.parsedType}),ie}return zt(t.data)}}au.create=e=>new au({typeName:se.ZodUndefined,...ae(e)});class lu extends ve{_parse(t){if(this._getType(t)!==Q.null){const n=this._getOrReturnCtx(t);return Y(n,{code:F.invalid_type,expected:Q.null,received:n.parsedType}),ie}return zt(t.data)}}lu.create=e=>new lu({typeName:se.ZodNull,...ae(e)});class Hh extends ve{constructor(){super(...arguments),this._any=!0}_parse(t){return zt(t.data)}}Hh.create=e=>new Hh({typeName:se.ZodAny,...ae(e)});class Qi extends ve{constructor(){super(...arguments),this._unknown=!0}_parse(t){return zt(t.data)}}Qi.create=e=>new Qi({typeName:se.ZodUnknown,...ae(e)});class ks extends ve{_parse(t){const r=this._getOrReturnCtx(t);return Y(r,{code:F.invalid_type,expected:Q.never,received:r.parsedType}),ie}}ks.create=e=>new ks({typeName:se.ZodNever,...ae(e)});class qh extends ve{_parse(t){if(this._getType(t)!==Q.undefined){const n=this._getOrReturnCtx(t);return Y(n,{code:F.invalid_type,expected:Q.void,received:n.parsedType}),ie}return zt(t.data)}}qh.create=e=>new qh({typeName:se.ZodVoid,...ae(e)});class Qr extends ve{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==Q.array)return Y(r,{code:F.invalid_type,expected:Q.array,received:r.parsedType}),ie;if(s.exactLength!==null){const o=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(o||a)&&(Y(r,{code:o?F.too_big:F.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(Y(r,{code:F.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(Y(r,{code:F.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>s.type._parseAsync(new Jr(r,o,r.path,a)))).then(o=>kt.mergeArray(n,o));const i=[...r.data].map((o,a)=>s.type._parseSync(new Jr(r,o,r.path,a)));return kt.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new Qr({...this._def,minLength:{value:t,message:ee.toString(r)}})}max(t,r){return new Qr({...this._def,maxLength:{value:t,message:ee.toString(r)}})}length(t,r){return new Qr({...this._def,exactLength:{value:t,message:ee.toString(r)}})}nonempty(t){return this.min(1,t)}}Qr.create=(e,t)=>new Qr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...ae(t)});function Ci(e){if(e instanceof Ve){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=wn.create(Ci(n))}return new Ve({...e._def,shape:()=>t})}else return e instanceof Qr?new Qr({...e._def,type:Ci(e.element)}):e instanceof wn?wn.create(Ci(e.unwrap())):e instanceof oi?oi.create(Ci(e.unwrap())):e instanceof jn?jn.create(e.items.map(t=>Ci(t))):e}class Ve extends ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=we.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Q.object){const u=this._getOrReturnCtx(t);return Y(u,{code:F.invalid_type,expected:Q.object,received:u.parsedType}),ie}const{status:n,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ks&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const d=i[u],f=s.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new Jr(s,f,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof ks){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")a.length>0&&(Y(s,{code:F.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of a){const f=s.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new Jr(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>kt.mergeObjectSync(n,u)):kt.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return ee.errToObj,new Ve({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var s,i,o,a;const l=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=ee.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ve({...this._def,unknownKeys:"strip"})}passthrough(){return new Ve({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ve({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ve({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Ve({...this._def,catchall:t})}pick(t){const r={};return we.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Ve({...this._def,shape:()=>r})}omit(t){const r={};return we.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new Ve({...this._def,shape:()=>r})}deepPartial(){return Ci(this)}partial(t){const r={};return we.objectKeys(this.shape).forEach(n=>{const s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}),new Ve({...this._def,shape:()=>r})}required(t){const r={};return we.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof wn;)i=i._def.innerType;r[n]=i}}),new Ve({...this._def,shape:()=>r})}keyof(){return U_(we.objectKeys(this.shape))}}Ve.create=(e,t)=>new Ve({shape:()=>e,unknownKeys:"strip",catchall:ks.create(),typeName:se.ZodObject,...ae(t)});Ve.strictCreate=(e,t)=>new Ve({shape:()=>e,unknownKeys:"strict",catchall:ks.create(),typeName:se.ZodObject,...ae(t)});Ve.lazycreate=(e,t)=>new Ve({shape:e,unknownKeys:"strip",catchall:ks.create(),typeName:se.ZodObject,...ae(t)});class cu extends ve{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new ur(a.ctx.common.issues));return Y(r,{code:F.invalid_union,unionErrors:o}),ie}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of n){const u={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new ur(l));return Y(r,{code:F.invalid_union,unionErrors:a}),ie}}get options(){return this._def.options}}cu.create=(e,t)=>new cu({options:e,typeName:se.ZodUnion,...ae(t)});const an=e=>e instanceof fu?an(e.schema):e instanceof Nn?an(e.innerType()):e instanceof hu?[e.value]:e instanceof ii?e.options:e instanceof mu?we.objectValues(e.enum):e instanceof pu?an(e._def.innerType):e instanceof au?[void 0]:e instanceof lu?[null]:e instanceof wn?[void 0,...an(e.unwrap())]:e instanceof oi?[null,...an(e.unwrap())]:e instanceof B_||e instanceof gu?an(e.unwrap()):e instanceof vu?an(e._def.innerType):[];class Dp extends ve{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.object)return Y(r,{code:F.invalid_type,expected:Q.object,received:r.parsedType}),ie;const n=this.discriminator,s=r.data[n],i=this.optionsMap.get(s);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(Y(r,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const s=new Map;for(const i of r){const o=an(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new Dp({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...ae(n)})}}function Yh(e,t){const r=Us(e),n=Us(t);if(e===t)return{valid:!0,data:e};if(r===Q.object&&n===Q.object){const s=we.objectKeys(t),i=we.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=Yh(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Q.array&&n===Q.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=Yh(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return r===Q.date&&n===Q.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class uu extends ve{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=(i,o)=>{if(py(i)||py(o))return ie;const a=Yh(i.value,o.value);return a.valid?((vy(i)||vy(o))&&r.dirty(),{status:r.value,value:a.data}):(Y(n,{code:F.invalid_intersection_types}),ie)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}uu.create=(e,t,r)=>new uu({left:e,right:t,typeName:se.ZodIntersection,...ae(r)});class jn extends ve{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.array)return Y(n,{code:F.invalid_type,expected:Q.array,received:n.parsedType}),ie;if(n.data.length<this._def.items.length)return Y(n,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&n.data.length>this._def.items.length&&(Y(n,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Jr(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>kt.mergeArray(r,o)):kt.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new jn({...this._def,rest:t})}}jn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new jn({items:e,typeName:se.ZodTuple,rest:null,...ae(t)})};class du extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.object)return Y(n,{code:F.invalid_type,expected:Q.object,received:n.parsedType}),ie;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in n.data)s.push({key:i._parse(new Jr(n,a,n.path,a)),value:o._parse(new Jr(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?kt.mergeObjectAsync(r,s):kt.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof ve?new du({keyType:t,valueType:r,typeName:se.ZodRecord,...ae(n)}):new du({keyType:yn.create(),valueType:t,typeName:se.ZodRecord,...ae(r)})}}class Gh extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.map)return Y(n,{code:F.invalid_type,expected:Q.map,received:n.parsedType}),ie;const s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([a,l],u)=>({key:s._parse(new Jr(n,a,n.path,[u,"key"])),value:i._parse(new Jr(n,l,n.path,[u,"value"]))}));if(n.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return ie;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),a.set(u.value,d.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return ie;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),a.set(u.value,d.value)}return{status:r.value,value:a}}}}Gh.create=(e,t,r)=>new Gh({valueType:t,keyType:e,typeName:se.ZodMap,...ae(r)});class xo extends ve{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.set)return Y(n,{code:F.invalid_type,expected:Q.set,received:n.parsedType}),ie;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(Y(n,{code:F.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(Y(n,{code:F.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const d of l){if(d.status==="aborted")return ie;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}const a=[...n.data.values()].map((l,u)=>i._parse(new Jr(n,l,n.path,u)));return n.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new xo({...this._def,minSize:{value:t,message:ee.toString(r)}})}max(t,r){return new xo({...this._def,maxSize:{value:t,message:ee.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}xo.create=(e,t)=>new xo({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...ae(t)});class ga extends ve{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.function)return Y(r,{code:F.invalid_type,expected:Q.function,received:r.parsedType}),ie;function n(a,l){return Wh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Bh(),qa].filter(u=>!!u),issueData:{code:F.invalid_arguments,argumentsError:l}})}function s(a,l){return Wh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Bh(),qa].filter(u=>!!u),issueData:{code:F.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ga){const a=this;return zt(async function(...l){const u=new ur([]),d=await a._def.args.parseAsync(l,i).catch(p=>{throw u.addIssue(n(l,p)),u}),f=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(f,i).catch(p=>{throw u.addIssue(s(f,p)),u})})}else{const a=this;return zt(function(...l){const u=a._def.args.safeParse(l,i);if(!u.success)throw new ur([n(l,u.error)]);const d=Reflect.apply(o,this,u.data),f=a._def.returns.safeParse(d,i);if(!f.success)throw new ur([s(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ga({...this._def,args:jn.create(t).rest(Qi.create())})}returns(t){return new ga({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new ga({args:t||jn.create([]).rest(Qi.create()),returns:r||Qi.create(),typeName:se.ZodFunction,...ae(n)})}}class fu extends ve{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}fu.create=(e,t)=>new fu({getter:e,typeName:se.ZodLazy,...ae(t)});class hu extends ve{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Y(r,{received:r.data,code:F.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:t.data}}get value(){return this._def.value}}hu.create=(e,t)=>new hu({value:e,typeName:se.ZodLiteral,...ae(t)});function U_(e,t){return new ii({values:e,typeName:se.ZodEnum,...ae(t)})}class ii extends ve{constructor(){super(...arguments),ra.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return Y(r,{expected:we.joinValues(n),received:r.parsedType,code:F.invalid_type}),ie}if(ou(this,ra)||L_(this,ra,new Set(this._def.values)),!ou(this,ra).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return Y(r,{received:r.data,code:F.invalid_enum_value,options:n}),ie}return zt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return ii.create(t,{...this._def,...r})}exclude(t,r=this._def){return ii.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}ra=new WeakMap;ii.create=U_;class mu extends ve{constructor(){super(...arguments),na.set(this,void 0)}_parse(t){const r=we.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Q.string&&n.parsedType!==Q.number){const s=we.objectValues(r);return Y(n,{expected:we.joinValues(s),received:n.parsedType,code:F.invalid_type}),ie}if(ou(this,na)||L_(this,na,new Set(we.getValidEnumValues(this._def.values))),!ou(this,na).has(t.data)){const s=we.objectValues(r);return Y(n,{received:n.data,code:F.invalid_enum_value,options:s}),ie}return zt(t.data)}get enum(){return this._def.values}}na=new WeakMap;mu.create=(e,t)=>new mu({values:e,typeName:se.ZodNativeEnum,...ae(t)});class Ga extends ve{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.promise&&r.common.async===!1)return Y(r,{code:F.invalid_type,expected:Q.promise,received:r.parsedType}),ie;const n=r.parsedType===Q.promise?r.data:Promise.resolve(r.data);return zt(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Ga.create=(e,t)=>new Ga({type:e,typeName:se.ZodPromise,...ae(t)});class Nn extends ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{Y(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return ie;const l=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return l.status==="aborted"?ie:l.status==="dirty"||r.value==="dirty"?ta(l.value):l});{if(r.value==="aborted")return ie;const a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?ie:a.status==="dirty"||r.value==="dirty"?ta(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ie:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ie:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!su(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>su(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);we.assertNever(s)}}Nn.create=(e,t,r)=>new Nn({schema:e,typeName:se.ZodEffects,effect:t,...ae(r)});Nn.createWithPreprocess=(e,t,r)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...ae(r)});class wn extends ve{_parse(t){return this._getType(t)===Q.undefined?zt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}wn.create=(e,t)=>new wn({innerType:e,typeName:se.ZodOptional,...ae(t)});class oi extends ve{_parse(t){return this._getType(t)===Q.null?zt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:se.ZodNullable,...ae(t)});class pu extends ve{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===Q.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}pu.create=(e,t)=>new pu({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ae(t)});class vu extends ve{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return iu(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ur(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ur(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}vu.create=(e,t)=>new vu({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ae(t)});class Kh extends ve{_parse(t){if(this._getType(t)!==Q.nan){const n=this._getOrReturnCtx(t);return Y(n,{code:F.invalid_type,expected:Q.nan,received:n.parsedType}),ie}return{status:"valid",value:t.data}}}Kh.create=e=>new Kh({typeName:se.ZodNaN,...ae(e)});class B_ extends ve{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class ad extends ve{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ie:i.status==="dirty"?(r.dirty(),ta(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ie:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new ad({in:t,out:r,typeName:se.ZodPipeline})}}class gu extends ve{_parse(t){const r=this._def.innerType._parse(t),n=s=>(su(s)&&(s.value=Object.freeze(s.value)),s);return iu(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}gu.create=(e,t)=>new gu({innerType:e,typeName:se.ZodReadonly,...ae(t)});Ve.lazycreate;var se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));const As=yn.create;go.create;Kh.create;yo.create;zh.create;const nA=Ya.create;Vh.create;au.create;lu.create;Hh.create;Qi.create;ks.create;qh.create;Qr.create;const sA=Ve.create;Ve.strictCreate;cu.create;Dp.create;uu.create;jn.create;du.create;Gh.create;xo.create;ga.create;fu.create;hu.create;ii.create;mu.create;Ga.create;Nn.create;wn.create;oi.create;Nn.createWithPreprocess;ad.create;function _e(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Xt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){const r=_e(e);return isNaN(t)?Xt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Pr(e,t){const r=_e(e);
271if(isNaN(t))return Xt(e,NaN);if(!t)return r;const n=r.getDate(),s=Xt(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const i=s.getDate();return n>=i?s:(r.setFullYear(s.getFullYear(),s.getMonth(),n),r)}const Lp=6048e5,iA=864e5;let oA={};function ul(){return oA}function Xr(e,t){var a,l,u,d;const r=ul(),n=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=_e(e),i=s.getDay(),o=(i<n?7:0)+i-n;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function ai(e){return Xr(e,{weekStartsOn:1})}function W_(e){const t=_e(e),r=t.getFullYear(),n=Xt(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=ai(n),i=Xt(e,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=ai(i);return t.getTime()>=s.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function wo(e){const t=_e(e);return t.setHours(0,0,0,0),t}function yu(e){const t=_e(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Yr(e,t){const r=wo(e),n=wo(t),s=+r-yu(r),i=+n-yu(n);return Math.round((s-i)/iA)}function aA(e){const t=W_(e),r=Xt(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),ai(r)}function Qh(e,t){const r=t*7;return wt(e,r)}function lA(e,t){return Pr(e,t*12)}function cA(e){let t;return e.forEach(function(r){const n=_e(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function uA(e){let t;return e.forEach(r=>{const n=_e(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Lt(e,t){const r=wo(e),n=wo(t);return+r==+n}function Fp(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function dA(e){if(!Fp(e)&&typeof e!="number")return!1;const t=_e(e);return!isNaN(Number(t))}function Ka(e,t){const r=_e(e),n=_e(t),s=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return s*12+i}function fA(e,t,r){const n=Xr(e,r),s=Xr(t,r),i=+n-yu(n),o=+s-yu(s);return Math.round((i-o)/Lp)}function $p(e){const t=_e(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Bt(e){const t=_e(e);return t.setDate(1),t.setHours(0,0,0,0),t}function z_(e){const t=_e(e),r=Xt(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Up(e,t){var a,l,u,d;const r=ul(),n=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=_e(e),i=s.getDay(),o=(i<n?-7:0)+6-(i-n);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function V_(e){return Up(e,{weekStartsOn:1})}const hA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mA=(e,t,r)=>{let n;const s=hA[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function af(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const pA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yA={date:af({formats:pA,defaultWidth:"full"}),time:af({formats:vA,defaultWidth:"full"}),dateTime:af({formats:gA,defaultWidth:"full"})},xA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wA=(e,t,r,n)=>xA[e];function Yo(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const bA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_A={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},SA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
271ay","Saturday"]},EA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},CA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jA=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},NA={ordinalNumber:jA,era:Yo({values:bA,defaultWidth:"wide"}),quarter:Yo({values:_A,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Yo({values:kA,defaultWidth:"wide"}),day:Yo({values:SA,defaultWidth:"wide"}),dayPeriod:Yo({values:EA,defaultWidth:"wide",formattingValues:CA,defaultFormattingWidth:"wide"})};function Go(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?TA(a,f=>f.test(o)):PA(a,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function PA(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function TA(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function OA(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const AA=/^(\d+)(th|st|nd|rd)?/i,RA=/\d+/i,IA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},MA={any:[/^b/i,/^(a|c)/i]},DA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},LA={any:[/1/i,/2/i,/3/i,/4/i]},FA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},$A={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},UA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},BA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},WA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},VA={ordinalNumber:OA({matchPattern:AA,parsePattern:RA,valueCallback:e=>parseInt(e,10)}),era:Go({matchPatterns:IA,defaultMatchWidth:"wide",parsePatterns:MA,defaultParseWidth:"any"}),quarter:Go({matchPatterns:DA,defaultMatchWidth:"wide",parsePatterns:LA,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Go({matchPatterns:FA,defaultMatchWidth:"wide",parsePatterns:$A,defaultParseWidth:"any"}),day:Go({matchPatterns:UA,defaultMatchWidth:"wide",parsePatterns:BA,defaultParseWidth:"any"}),dayPeriod:Go({matchPatterns:WA,defaultMatchWidth:"any",parsePatterns:zA,defaultParseWidth:"any"})},H_={code:"en-US",formatDistance:mA,formatLong:yA,formatRelative:wA,localize:NA,match:VA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function HA(e){const t=_e(e);return Yr(t,z_(t))+1}function q_(e){const t=_e(e),r=+ai(t)-+aA(t);return Math.round(r/Lp)+1}function Y_(e,t){var d,f,h,p;const r=_e(e),n=r.getFullYear(),s=ul(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((p=(h=s.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=Xt(e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const a=Xr(o,t),l=Xt(e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const u=Xr(l,t);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function qA(e,t){var a,l,u,d;const r=ul(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=Y_(e,t),i=Xt(e,0);return i.setFullYear(s,0,n),i.setHours(0,0,0,0),Xr(i,t)}function G_(e,t){const r=_e(e),n=+Xr(r,t)-+qA(r,t);return Math.round(n/Lp)+1}function Ce(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Un={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ce(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ce(r+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return Ce(s,t.length)}},gi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yy={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return Un.y(e,t)},Y:function(e,t,r,n){const s=Y_(e,n),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return Ce(o,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):Ce(i,t.length)},R:function(e,t){const r=W_(e);return Ce(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ce(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ce(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ce(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Un.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ce(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=G_(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):Ce(s,t.length)},I:function(e,t,r){const n=q_(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ce(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Un.d(e,t)},D:function(e,t,r){const n=HA(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ce(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ce(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ce(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return Ce(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=gi.noon:n===0?s=gi.midnight:s=n/12>
vendor: 2,852 bytes, line 271
271=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=gi.evening:n>=12?s=gi.afternoon:n>=4?s=gi.morning:s=gi.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Un.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Un.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Un.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Un.s(e,t)},S:function(e,t){return Un.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return wy(n);case"XXXX":case"XX":return Ls(n);case"XXXXX":case"XXX":default:return Ls(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return wy(n);case"xxxx":case"xx":return Ls(n);case"xxxxx":case"xxx":default:return Ls(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xy(n,":");case"OOOO":default:return"GMT"+Ls(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xy(n,":");case"zzzz":default:return"GMT"+Ls(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ce(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ce(n,t.length)}};function xy(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),i=n%60;return i===0?r+String(s):r+String(s)+t+Ce(i,2)}function wy(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Ls(e,t)}function Ls(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Ce(Math.trunc(n/60),2),i=Ce(n%60,2);return r+s+t+i}const by=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},K_=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},YA=(e,t)=>
271{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return by(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",by(n,t)).replace("{{time}}",K_(s,t))},GA={p:K_,P:YA},KA=/^D+$/,QA=/^Y+$/,ZA=["D","DD","YY","YYYY"];function JA(e){return KA.test(e)}function XA(e){return QA.test(e)}function eR(e,t,r){const n=tR(e,t,r);if(console.warn(n),ZA.includes(e))throw new RangeError(n)}function tR(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const rR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sR=/^'([^]*?)'?$/,iR=/''/g,oR=/[a-zA-Z]/;function Pn(e,t,r){var d,f,h,p,x,g,b,y;const n=ul(),s=(r==null?void 0:r.locale)??n.locale??H_,i=(r==null?void 0:r.firstWeekContainsDate)??((f=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((g=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:g.weekStartsOn)??n.weekStartsOn??((y=(b=n.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,a=_e(e);if(!dA(a))throw new RangeError("Invalid time value");let l=t.match(nR).map(m=>{const w=m[0];if(w==="p"||w==="P"){const _=GA[w];return _(m,s.formatLong)}return m}).join("").match(rR).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const w=m[0];if(w==="'")return{isToken:!1,value:aR(m)};if(yy[w])return{isToken:!0,value:m};if(w.match(oR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(m=>{if(!m.isToken)return m.value;const w=m.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&XA(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&JA(w))&&eR(w,t,String(e));const _=yy[w[0]];return _(a,w,s.localize,u)}).join("")}function aR(e){const t=e.match(sR);return t?t[1].replace(iR,"'"):e}function lR(e){const t=_e(e),r=t.getFullYear(),n=t.getMonth(),s=Xt(e,0);return s.setFullYear(r,n+1,0),s.setHours(0,0,0,0),s.getDate()}function cR(e){return Math.trunc(+_e(e)/1e3)}function uR(e){const t=_e(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function dR(e,t){return fA(uR(e),Bt(e),t)+1}function Zh(e,t){const r=_e(e),n=_e(t);return r.getTime()>n.getTime()}function Q_(e,t){const r=_e(e),n=_e(t);return+r<+n}function Bp(e,t){const r=_e(e),n=_e(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function fR(e,t){const r=_e(e),n=_e(t);return r.getFullYear()===n.getFullYear()}function lf(e,t){return wt(e,-t)}function cf(e,t){const r=_e(e),n=r.getFullYear(),s=r.getDate(),i=Xt(e,0);i.setFullYear(n,t,15),i.setHours(0,0,0,0);const o=lR(i);return r.setMonth(t,Math.min(s,o)),r}function _y(e,t){const r=_e(e);return isNaN(+r)?Xt(e,NaN):(r.setFullYear(t),r)}const Qa={_origin:"https://api.emailjs.com"},hR=(e,t="https://api.emailjs.com")=>{Qa._userID=e,Qa._origin=t},Z_=(e,t,r)=>{if(!e)throw"The user ID is required. Visit https://dashboard.emailjs.com/admin/integration";if(!t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!r)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0};class ky{constructor(t){this.status=t.status,this.text=t.responseText}}const J_=(e,t,r={})=>new Promise((n,s)=>{const i=new XMLHttpRequest;i.addEventListener("load",({target:o})=>{const a=new ky(o);a.status===200||a.text==="OK"?n(a):s(a)}),i.addEventListener("error",({target:o})=>{s(new ky(o))}),i.open("POST",Qa._origin+e,!0),Object.keys(r).forEach(o=>{i.setRequestHeader(o,r[o])}),i.send(t)}),mR=(e,t,r,n)=>{const s=n||Qa._userID;return Z_(s,e,t),J_("/api/v1.0/email/send",JSON.stringify({lib_version:"3.2.0",user_id:s,service_id:e,template_id:t,template_params:r}),{"Content-type":"application/json"})},pR=e=>{let t;if(typeof e=="string"?t=document.querySelector(e):t=e,!t||t.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return t},vR=(e,t,r,n)=>{const s=n||Qa._userID,i=pR(r);Z_(s,e,t);const o=new FormData(i);return o.append("lib_version","3.2.0"),o.append("service_id",e),o.append("template_id",t),o.append("user_id",s),J_("/api/v1.0/email/send-form",o)},gR={init:hR,send:mR,sendForm:vR};var ne=function(){return ne=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ne.apply(this,arguments)};function yR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function X_(e,t,r){for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function dl(e){return e.mode==="multiple"}function fl(e){return e.mode==="range"}function ld(e){return e.mode==="single"}var xR={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rd
271p-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function wR(e,t){return Pn(e,"LLLL y",t)}function bR(e,t){return Pn(e,"d",t)}function _R(e,t){return Pn(e,"LLLL",t)}function kR(e){return"".concat(e)}function SR(e,t){return Pn(e,"cccccc",t)}function ER(e,t){return Pn(e,"yyyy",t)}var CR=Object.freeze({__proto__:null,formatCaption:wR,formatDay:bR,formatMonthCaption:_R,formatWeekNumber:kR,formatWeekdayName:SR,formatYearCaption:ER}),jR=function(e,t,r){return Pn(e,"do MMMM (EEEE)",r)},NR=function(){return"Month: "},PR=function(){return"Go to next month"},TR=function(){return"Go to previous month"},OR=function(e,t){return Pn(e,"cccc",t)},AR=function(e){return"Week n. ".concat(e)},RR=function(){return"Year: "},IR=Object.freeze({__proto__:null,labelDay:jR,labelMonthDropdown:NR,labelNext:PR,labelPrevious:TR,labelWeekNumber:AR,labelWeekday:OR,labelYearDropdown:RR});function MR(){var e="buttons",t=xR,r=H_,n={},s={},i=1,o={},a=new Date;return{captionLayout:e,classNames:t,formatters:CR,labels:IR,locale:r,modifiersClassNames:n,modifiers:s,numberOfMonths:i,styles:o,today:a,mode:"default"}}function DR(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,s=e.toMonth,i=e.fromDate,o=e.toDate;return n?i=Bt(n):t&&(i=new Date(t,0,1)),s?o=$p(s):r&&(o=new Date(r,11,31)),{fromDate:i?wo(i):void 0,toDate:o?wo(o):void 0}}var e1=v.createContext(void 0);function LR(e){var t,r=e.initialProps,n=MR(),s=DR(r),i=s.fromDate,o=s.toDate,a=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;a!=="buttons"&&(!i||!o)&&(a="buttons");var l;(ld(r)||dl(r)||fl(r))&&(l=r.onSelect);var u=ne(ne(ne({},n),r),{captionLayout:a,classNames:ne(ne({},n.classNames),r.classNames),components:ne({},r.components),formatters:ne(ne({},n.formatters),r.formatters),fromDate:i,labels:ne(ne({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:ne(ne({},n.modifiers),r.modifiers),modifiersClassNames:ne(ne({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:ne(ne({},n.styles),r.styles),toDate:o});return c.jsx(e1.Provider,{value:u,children:e.children})}function Ae(){var e=v.useContext(e1);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function t1(e){var t=Ae(),r=t.locale,n=t.classNames,s=t.styles,i=t.formatters.formatCaption;return c.jsx("div",{className:n.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:r})})}function FR(e){return c.jsx("svg",ne({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:c.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function r1(e){var t,r,n=e.onChange,s=e.value,i=e.children,o=e.caption,a=e.className,l=e.style,u=Ae(),d=(r=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:FR;return c.jsxs("div",{className:a,style:l,children:[c.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),c.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:n,children:i}),c.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[o,c.jsx(d,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function $R(e){var t,r=Ae(),n=r.fromDate,s=r.toDate,i=r.styles,o=r.locale,a=r.formatters.formatMonthCaption,l=r.classNames,u=r.components,d=r.labels.labelMonthDropdown;if(!n)return c.jsx(c.Fragment,{});if(!s)return c.jsx(c.Fragment,{});var f=[];if(fR(n,s))for(var h=Bt(n),p=n.getMonth();p<=s.getMonth();p++)f.push(cf(h,p));else for(var h=Bt(new Date),p=0;p<=11;p++)f.push(cf(h,p));var x=function(b){var y=Number(b.target.value),m=cf(Bt(e.displayMonth),y);e.onChange(m)},g=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:r1;return c.jsx(g,{name:"months","aria-label":d(),className:l.dropdown_month,style:i.dropdown_month,onChange:x,value:e.displayMonth.getMonth(),c
271aption:a(e.displayMonth,{locale:o}),children:f.map(function(b){return c.jsx("option",{value:b.getMonth(),children:a(b,{locale:o})},b.getMonth())})})}function UR(e){var t,r=e.displayMonth,n=Ae(),s=n.fromDate,i=n.toDate,o=n.locale,a=n.styles,l=n.classNames,u=n.components,d=n.formatters.formatYearCaption,f=n.labels.labelYearDropdown,h=[];if(!s)return c.jsx(c.Fragment,{});if(!i)return c.jsx(c.Fragment,{});for(var p=s.getFullYear(),x=i.getFullYear(),g=p;g<=x;g++)h.push(_y(z_(new Date),g));var b=function(m){var w=_y(Bt(r),Number(m.target.value));e.onChange(w)},y=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:r1;return c.jsx(y,{name:"years","aria-label":f(),className:l.dropdown_year,style:a.dropdown_year,onChange:b,value:r.getFullYear(),caption:d(r,{locale:o}),children:h.map(function(m){return c.jsx("option",{value:m.getFullYear(),children:d(m,{locale:o})},m.getFullYear())})})}function BR(e,t){var r=v.useState(e),n=r[0],s=r[1],i=t===void 0?n:t;return[i,s]}function WR(e){var t=e.month,r=e.defaultMonth,n=e.today,s=t||r||n||new Date,i=e.toDate,o=e.fromDate,a=e.numberOfMonths,l=a===void 0?1:a;if(i&&Ka(i,s)<0){var u=-1*(l-1);s=Pr(i,u)}return o&&Ka(s,o)<0&&(s=o),Bt(s)}function zR(){var e=Ae(),t=WR(e),r=BR(t,e.month),n=r[0],s=r[1],i=function(o){var a;if(!e.disableNavigation){var l=Bt(o);s(l),(a=e.onMonthChange)===null||a===void 0||a.call(e,l)}};return[n,i]}function VR(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,s=Bt(e),i=Bt(Pr(s,n)),o=Ka(i,s),a=[],l=0;l<o;l++){var u=Pr(s,l);a.push(u)}return r&&(a=a.reverse()),a}function HR(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=n?i:1,a=Bt(e);if(!r)return Pr(a,o);var l=Ka(r,e);if(!(l<i))return Pr(a,o)}}function qR(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=n?i:1,a=Bt(e);if(!r)return Pr(a,-o);var l=Ka(a,r);if(!(l<=0))return Pr(a,-o)}}var n1=v.createContext(void 0);function YR(e){var t=Ae(),r=zR(),n=r[0],s=r[1],i=VR(n,t),o=HR(n,t),a=qR(n,t),l=function(f){return i.some(function(h){return Bp(f,h)})},u=function(f,h){l(f)||(h&&Q_(f,h)?s(Pr(f,1+t.numberOfMonths*-1)):s(f))},d={currentMonth:n,displayMonths:i,goToMonth:s,goToDate:u,previousMonth:a,nextMonth:o,isDateDisplayed:l};return c.jsx(n1.Provider,{value:d,children:e.children})}function hl(){var e=v.useContext(n1);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Sy(e){var t,r=Ae(),n=r.classNames,s=r.styles,i=r.components,o=hl().goToMonth,a=function(d){o(Pr(d,e.displayIndex?-e.dis
271playIndex:0))},l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:t1,u=c.jsx(l,{id:e.id,displayMonth:e.displayMonth});return c.jsxs("div",{className:n.caption_dropdowns,style:s.caption_dropdowns,children:[c.jsx("div",{className:n.vhidden,children:u}),c.jsx($R,{onChange:a,displayMonth:e.displayMonth}),c.jsx(UR,{onChange:a,displayMonth:e.displayMonth})]})}function GR(e){return c.jsx("svg",ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function KR(e){return c.jsx("svg",ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var xu=v.forwardRef(function(e,t){var r=Ae(),n=r.classNames,s=r.styles,i=[n.button_reset,n.button];e.className&&i.push(e.className);var o=i.join(" "),a=ne(ne({},s.button_reset),s.button);return e.style&&Object.assign(a,e.style),c.jsx("button",ne({},e,{ref:t,type:"button",className:o,style:a}))});function QR(e){var t,r,n=Ae(),s=n.dir,i=n.locale,o=n.classNames,a=n.styles,l=n.labels,u=l.labelPrevious,d=l.labelNext,f=n.components;if(!e.nextMonth&&!e.previousMonth)return c.jsx(c.Fragment,{});var h=u(e.previousMonth,{locale:i}),p=[o.nav_button,o.nav_button_previous].join(" "),x=d(e.nextMonth,{locale:i}),g=[o.nav_button,o.nav_button_next].join(" "),b=(t=f==null?void 0:f.IconRight)!==null&&t!==void 0?t:KR,y=(r=f==null?void 0:f.IconLeft)!==null&&r!==void 0?r:GR;return c.jsxs("div",{className:o.nav,style:a.nav,children:[!e.hidePrevious&&c.jsx(xu,{name:"previous-month","aria-label":h,className:p,style:a.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?c.jsx(b,{className:o.nav_icon,style:a.nav_icon}):c.jsx(y,{className:o.nav_icon,style:a.nav_icon})}),!e.hideNext&&c.jsx(xu,{name:"next-month","aria-label":x,className:g,style:a.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?c.jsx(y,{className:o.nav_icon,style:a.nav_icon}):c.jsx(b,{className:o.nav_icon,style:a.nav_icon})})]})}function Ey(e){var t=Ae().numberOfMonths,r=hl(),n=r.previousMonth,s=r.nextMonth,i=r.goToMonth,o=r.displayMonths,a=o.findIndex(function(x){return Bp(e.displayMonth,x)}),l=a===0,u=a===o.length-1,d=t>1&&(l||!u),f=t>1&&(u||!l),h=function(){n&&i(n)},p=function(){s&&i(s)};return c.jsx(QR,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:s,previousMonth:n,onPreviousClick:h,onNextClick:p})}function ZR(e){var t,r=Ae(),n=r.classNames,s=r.disableNavigation,i=r.styles,o=r.captionLayout,a=r.components,l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:t1,u;return s?u=c.jsx(l,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?u=c.jsx(Sy,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?u=c.jsxs(c.Fragment,{children:[c.jsx(Sy,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),c.jsx(Ey,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=c.jsxs(c.Fragment,{children:[c.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(Ey,{displayMonth:e.displayMonth,id:e.id})]}),c.jsx("div",{className:n.caption,style:i.caption,children:u})}function JR(e){var t=Ae(),r=t.footer,n=t.styles,s=t.classNames.tfoot;return r?c.jsx("tfoot",{className:s,style:n.tfoot,children:c.jsx("tr",{children:c.jsx("td",{colSpan:8,children:r})})}):c.jsx(c.Fragment,{})}function XR(e,t,r){for(var n=r?ai(new Date):Xr(new Date,{locale:e,weekStartsOn:t}),s=[],i=0;i<7;i++){var o=wt(n,i);s.push(o)}return s}function eI(){var e=Ae(),t=e.classNames,r=e.styles,n=e.showWeekNumber,s=e.locale,i=e.weekStartsOn,o=e.ISOWeek,a=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=XR(s,i,o);return c.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&c.jsx("td",{style:r.head_cell,className:t.head_cell}),u.map(function(d,f){return c.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(d,{locale:s}),children:a(d,{locale:s})},f)})]})}function tI(){var e,t=Ae(),r=t.classNames,n=t.styles,s=t.components,i=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:eI;return c.jsx("thead",{style:n.head,className:r.head,children:c.jsx(i,{})})}function rI(e){var t=Ae(),r=t.locale,n=t.formatters.formatDay;return c.jsx(c.Fragment,{children:n(e.date,{locale:r})})}var Wp=v.createContext(void 0);function nI(e){if(!dl(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return c.jsx(Wp.Provider,{value:t,children:e.children})}return c.jsx(sI,{initialProps:e.initialProps,children:e.children})}function sI(e){var t=e.initialProps,r=e.children,n=t.selected,s=t.min,i=t.max,o=function(u,d,f){var h,p;(h=t.onDayClick)===null||h===void 0||h.call(t,u,d,f);var x=!!(d.selected&&s&&(n==null?void 0:n.length)===s);if(!x){var g=!!(!d.selected&&i&&(n==null?void 0:n.length)===i);if(!g){var b=n?X_([],n):[];if(d.selected){var y=b.findIndex(function(m){return Lt(u,m)});b.splice(y,1)}else b.push(u);(p=t.onSelect)===null||p===void 0||p.call(t,b,u,d,f)}}},a={disabled:[]};n&&a.disabled.push(function(u){var d=i&&n.length>i-1,f=n.some(function(h){return Lt(h,u)});return!!(d&&!f)});
271var l={selected:n,onDayClick:o,modifiers:a};return c.jsx(Wp.Provider,{value:l,children:r})}function zp(){var e=v.useContext(Wp);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function iI(e,t){var r=t||{},n=r.from,s=r.to;return n&&s?Lt(s,e)&&Lt(n,e)?void 0:Lt(s,e)?{from:s,to:void 0}:Lt(n,e)?void 0:Zh(n,e)?{from:e,to:s}:{from:n,to:e}:s?Zh(e,s)?{from:s,to:e}:{from:e,to:s}:n?Q_(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Vp=v.createContext(void 0);function oI(e){if(!fl(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return c.jsx(Vp.Provider,{value:t,children:e.children})}return c.jsx(aI,{initialProps:e.initialProps,children:e.children})}function aI(e){var t=e.initialProps,r=e.children,n=t.selected,s=n||{},i=s.from,o=s.to,a=t.min,l=t.max,u=function(p,x,g){var b,y;(b=t.onDayClick)===null||b===void 0||b.call(t,p,x,g);var m=iI(p,n);(y=t.onSelect)===null||y===void 0||y.call(t,m,p,x,g)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(d.range_start=[i],o?(d.range_end=[o],Lt(i,o)||(d.range_middle=[{after:i,before:o}])):d.range_end=[i]):o&&(d.range_start=[o],d.range_end=[o]),a&&(i&&!o&&d.disabled.push({after:lf(i,a-1),before:wt(i,a-1)}),i&&o&&d.disabled.push({after:i,before:wt(i,a-1)}),!i&&o&&d.disabled.push({after:lf(o,a-1),before:wt(o,a-1)})),l){if(i&&!o&&(d.disabled.push({before:wt(i,-l+1)}),d.disabled.push({after:wt(i,l-1)})),i&&o){var f=Yr(o,i)+1,h=l-f;d.disabled.push({before:lf(i,h)}),d.disabled.push({after:wt(o,h)})}!i&&o&&(d.disabled.push({before:wt(o,-l+1)}),d.disabled.push({after:wt(o,l-1)}))}return c.jsx(Vp.Provider,{value:{selected:n,onDayClick:u,modifiers:d},children:r})}function Hp(){var e=v.useContext(Vp);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function vc(e){return Array.isArray(e)?X_([],e):e!==void 0?[e]:[]}function lI(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],s=r[1];t[n]=vc(s)}),t}var Tr;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Tr||(Tr={}));var cI=Tr.Selected,sn=Tr.Disabled,uI=Tr.Hidden,dI=Tr.Today,uf=Tr.RangeEnd,df=Tr.RangeMiddle,ff=Tr.RangeStart,fI=Tr.Outside;function hI(e,t,r){var n,s=(n={},n[cI]=vc(e.selected),n[sn]=vc(e.disabled),n[uI]=vc(e.hidden),n[dI]=[e.today],n[uf]=[],n[df]=[],n[ff]=[],n[fI]=[],n);return e.fromDate&&s[sn].push({before:e.fromDate}),e.toDate&&s[sn].push({after:e.toDate}),dl(e)?s[sn]=s[sn].concat(t.modifiers[sn]):fl(e)&&(s[sn]=s[sn].concat(r.modifiers[sn]),s[ff]=r.modifiers[ff],s[df]=r.modifiers[df],s[uf]=r.modifiers[uf]),s}var s1=v.createContext(void 0);function mI(e){var t=Ae(),r=zp(),n=Hp(),s=hI(t,r,n),i=lI(t.modifiers),o=ne(ne({},s),i);return c.jsx(s1.Provider,{value:o,children:e.children})}function i1(){var e=v.useContext(s1);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function pI(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function vI(e){return!!(e&&typeof e=="object"&&"from"in e)}function gI(e){return!!(e&&typeof e=="object"&&"after"in e)}function yI(e){return!!(e&&typeof e=="object"&&"before"in e)}function xI(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function wI(e,t){var r,n=t.from,s=t.to;if(n&&s){var i=Yr(s,n)<0;i&&(r=[s,n],n=r[0],s=r[1]);var o=Yr(e,n)>=0&&Yr(s,e)>=0;return o}return s?Lt(s,e):n?Lt(n,e):!1}function bI(e){return Fp(e)}function _I(e){return Array.isArray(e)&&e.every(Fp)}function kI(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(bI(r))return Lt(e,r);if(_I(r))return r.includes(e);if(vI(r))return wI(e,r);if(xI(r))return r.dayOfWeek.includes(e.getDay());if(pI(r)){var n=Yr(r.before,e),s=Yr(r.after,e),i=n>0,o=s<0,a=Zh(r.before,r.after);return a?o&&i:i||o}return gI(r)?Yr(e,r.after)>0:yI(r)?Yr(r.before,e)>0:typeof r=="function"?r(e):!1})}function qp(e,t,r){var n=Object.keys(t).reduce(function(i,o){var a=t[o];return kI(e,a)&&i.push(o),i},[]),s={};
271return n.forEach(function(i){return s[i]=!0}),r&&!Bp(e,r)&&(s.outside=!0),s}function SI(e,t){for(var r=Bt(e[0]),n=$p(e[e.length-1]),s,i,o=r;o<=n;){var a=qp(o,t),l=!a.disabled&&!a.hidden;if(!l){o=wt(o,1);continue}if(a.selected)return o;a.today&&!i&&(i=o),s||(s=o),o=wt(o,1)}return i||s}var EI=365;function o1(e,t){var r=t.moveBy,n=t.direction,s=t.context,i=t.modifiers,o=t.retry,a=o===void 0?{count:0,lastFocused:e}:o,l=s.weekStartsOn,u=s.fromDate,d=s.toDate,f=s.locale,h={day:wt,week:Qh,month:Pr,year:lA,startOfWeek:function(b){return s.ISOWeek?ai(b):Xr(b,{locale:f,weekStartsOn:l})},endOfWeek:function(b){return s.ISOWeek?V_(b):Up(b,{locale:f,weekStartsOn:l})}},p=h[r](e,n==="after"?1:-1);n==="before"&&u?p=cA([u,p]):n==="after"&&d&&(p=uA([d,p]));var x=!0;if(i){var g=qp(p,i);x=!g.disabled&&!g.hidden}return x?p:a.count>EI?a.lastFocused:o1(p,{moveBy:r,direction:n,context:s,modifiers:i,retry:ne(ne({},a),{count:a.count+1})})}var a1=v.createContext(void 0);function CI(e){var t=hl(),r=i1(),n=v.useState(),s=n[0],i=n[1],o=v.useState(),a=o[0],l=o[1],u=SI(t.displayMonths,r),d=s??(a&&t.isDateDisplayed(a))?a:u,f=function(){l(s),i(void 0)},h=function(b){i(b)},p=Ae(),x=function(b,y){if(s){var m=o1(s,{moveBy:b,direction:y,context:p,modifiers:r});Lt(s,m)||(t.goToDate(m,s),h(m))}},g={focusedDay:s,focusTarget:d,blur:f,focus:h,focusDayAfter:function(){return x("day","after")},focusDayBefore:function(){return x("day","before")},focusWeekAfter:function(){return x("week","after")},focusWeekBefore:function(){return x("week","before")},focusMonthBefore:function(){return x("month","before")},focusMonthAfter:function(){return x("month","after")},focusYearBefore:function(){return x("year","before")},focusYearAfter:function(){return x("year","after")},focusStartOfWeek:function(){return x("startOfWeek","before")},focusEndOfWeek:function(){return x("endOfWeek","after")}};return c.jsx(a1.Provider,{value:g,children:e.children})}function Yp(){var e=v.useContext(a1);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function jI(e,t){var r=i1(),n=qp(e,r,t);return n}var Gp=v.createContext(void 0);function NI(e){if(!ld(e.initialProps)){var t={selected:void 0};return c.jsx(Gp.Provider,{value:t,children:e.children})}return c.jsx(PI,{initialProps:e.initialProps,children:e.children})}function PI(e){var t=e.initialProps,r=e.children,n=function(i,o,a){var l,u,d;if((l=t.onDayClick)===null||l===void 0||l.call(t,i,o,a),o.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,i,o,a);return}(d=t.onSelect)===null||d===void 0||d.call(t,i,i,o,a)},s={selected:t.selected,onDayClick:n};return c.jsx(Gp.Provider,{value:s,children:r})}function l1(){var e=v.useContext(Gp);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function TI(e,t){var r=Ae(),n=l1(),s=zp(),i=Hp(),o=Yp(),a=o.focusDayAfter,l=o.focusDayBefore,u=o.focusWeekAfter,d=o.focusWeekBefore,f=o.blur,h=o.focus,p=o.focusMonthBefore,x=o.focusMonthAfter,g=o.focusYearBefore,b=o.focusYearAfter,y=o.focusStartOfWeek,m=o.focusEndOfWeek,w=function(I){var E,L,K,H;ld(r)?(E=n.onDayClick)===null||E===void 0||E.call(n,e,t,I):dl(r)?(L=s.onDayClick)===null||L===void 0||L.call(s,e,t,I):fl(r)?(K=i.onDayClick)===null||K===void 0||K.call(i,e,t,I):(H=r.onDayClick)===null||H===void 0||H.call(r,e,t,I)},_=function(I){var E;h(e),(E=r.onDayFocus)===null||E===void 0||E.call(r,e,t,I)},k=function(I){var E;f(),(E=r.onDayBlur)===null||E===void 0||E.call(r,e,t,I)},C=function(I){var E;(E=r.onDayMouseEnter)===null||E===void 0||E.call(r,e,t,I)},N=function(I){var E;(E=r.onDayMouseLeave)===null||E===void 0||E.call(r,e,t,I)},P=function(I){var E;(E=r.onDayPointerEnter)===null||E===void 0||E.call(r,e,t,I)},$=function(I){var E;(E=r.onDayPointerLeave)===null||E===void 0||E.call(r,e,t,I)},U=function(I){var E;(E=r.onDayTouchCancel)===null||E===void 0||E.call(r,e,t,I)},J=function(I){var E;(E=r.onDayTouchEnd)===null||E===void 0||E.call(r,e,t,I)},R=function(I){var E;(E=r.onDayTouchMove)===null||E===void 0||E.call(r,e,t,I)},V=function(I){var E;(E=r.onDayTouchStart)===null||E===void 0||E.call(r,e,t,I)},D=function(I){var E;(E=r.onDayKeyUp)===null||E===void 0||E.call(r,e,t,I)},X=function(I){var E;switch(I.key){case"ArrowLeft":I.preventDefault(),I.stopPropagation(),r.dir==="rtl"?a():l();break;case"ArrowRight":I.preventDefault(),I.stopPropagation(),r.dir==="rtl"?l(
271):a();break;case"ArrowDown":I.preventDefault(),I.stopPropagation(),u();break;case"ArrowUp":I.preventDefault(),I.stopPropagation(),d();break;case"PageUp":I.preventDefault(),I.stopPropagation(),I.shiftKey?g():p();break;case"PageDown":I.preventDefault(),I.stopPropagation(),I.shiftKey?b():x();break;case"Home":I.preventDefault(),I.stopPropagation(),y();break;case"End":I.preventDefault(),I.stopPropagation(),m();break}(E=r.onDayKeyDown)===null||E===void 0||E.call(r,e,t,I)},G={onClick:w,onFocus:_,onBlur:k,onKeyDown:X,onKeyUp:D,onMouseEnter:C,onMouseLeave:N,onPointerEnter:P,onPointerLeave:$,onTouchCancel:U,onTouchEnd:J,onTouchMove:R,onTouchStart:V};return G}function OI(){var e=Ae(),t=l1(),r=zp(),n=Hp(),s=ld(e)?t.selected:dl(e)?r.selected:fl(e)?n.selected:void 0;return s}function AI(e){return Object.values(Tr).includes(e)}function RI(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var s=e.modifiersClassNames[n];if(s)r.push(s);else if(AI(n)){var i=e.classNames["day_".concat(n)];i&&r.push(i)}}),r}function II(e,t){var r=ne({},e.styles.day);return Object.keys(t).forEach(function(n){var s;r=ne(ne({},r),(s=e.modifiersStyles)===null||s===void 0?void 0:s[n])}),r}function MI(e,t,r){var n,s,i,o=Ae(),a=Yp(),l=jI(e,t),u=TI(e,l),d=OI(),f=!!(o.onDayCl
271ick||o.mode!=="default");v.useEffect(function(){var C;l.outside||a.focusedDay&&f&&Lt(a.focusedDay,e)&&((C=r.current)===null||C===void 0||C.focus())},[a.focusedDay,e,r,f,l.outside]);var h=RI(o,l).join(" "),p=II(o,l),x=!!(l.outside&&!o.showOutsideDays||l.hidden),g=(i=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&i!==void 0?i:rI,b=c.jsx(g,{date:e,displayMonth:t,activeModifiers:l}),y={style:p,className:h,children:b,role:"gridcell"},m=a.focusTarget&&Lt(a.focusTarget,e)&&!l.outside,w=a.focusedDay&&Lt(a.focusedDay,e),_=ne(ne(ne({},y),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=w||m?0:-1,n)),u),k={isButton:f,isHidden:x,activeModifiers:l,selectedDays:d,buttonProps:_,divProps:y};return k}function DI(e){var t=v.useRef(null),r=MI(e.date,e.displayMonth,t);return r.isHidden?c.jsx("div",{role:"gridcell"}):r.isButton?c.jsx(xu,ne({name:"day",ref:t},r.buttonProps)):c.jsx("div",ne({},r.divProps))}function LI(e){var t=e.number,r=e.dates,n=Ae(),s=n.onWeekNumberClick,i=n.styles,o=n.classNames,a=n.locale,l=n.labels.labelWeekNumber,u=n.formatters.formatWeekNumber,d=u(Number(t),{locale:a});if(!s)return c.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:d});var f=l(Number(t),{locale:a}),h=function(p){s(t,r,p)};return c.jsx(xu,{name:"week-number","aria-label":f,className:o.weeknumber,style:i.weeknumber,onClick:h,children:d})}function FI(e){var t,r,n=Ae(),s=n.styles,i=n.classNames,o=n.showWeekNumber,a=n.components,l=(t=a==null?void 0:a.Day)!==null&&t!==void 0?t:DI,u=(r=a==null?void 0:a.WeekNumber)!==null&&r!==void 0?r:LI,d;return o&&(d=c.jsx("td",{className:i.cell,style:s.cell,children:c.jsx(u,{number:e.weekNumber,dates:e.dates})})),c.jsxs("tr",{className:i.row,style:s.row,children:[d,e.dates.map(function(f){return c.jsx("td",{className:i.cell,style:s.cell,role:"presentation",children:c.jsx(l,{displayMonth:e.displayMonth,date:f})},cR(f))})]})}function Cy(e,t,r){for(var n=r!=null&&r.ISOWeek?V_(t):Up(t,r),s=r!=null&&r.ISOWeek?ai(e):Xr(e,r),i=Yr(n,s),o=[],a=0;a<=i;a++)o.push(wt(s,a));var l=o.reduce(function(u,d){var f=r!=null&&r.ISOWeek?q_(d):G_(d,r),h=u.find(function(p){return p.weekNumber===f});return h?(h.dates.push(d),u):(u.push({weekNumber:f,dates:[d]}),u)},[]);return l}function $I(e,t){var r=Cy(Bt(e),$p(e),t);if(t!=null&&t.useFixedWeeks){var n=dR(e,t);if(n<6){var s=r[r.length-1],i=s.dates[s.dates.length-1],o=Qh(i,6-n),a=Cy(Qh(i,1),o,t);r.push.apply(r,a)}}return r}function UI(e){var t,r,n,s=Ae(),i=s.locale,o=s.classNames,a=s.styles,l=s.hideHead,u=s.fixedWeeks,d=s.components,f=s.weekStartsOn,h=s.firstWeekContainsDate,p=s.ISOWeek,x=$I(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:p,locale:i,weekStartsOn:f,firstWeekContainsDate:h}),g=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:tI,b=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:FI,y=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:JR;return c.jsxs("table",{id:e.id,className:o.table,style:a.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&c.jsx(g,{}),c.jsx("tbody",{className:o.tbody,style:a.tbody,children:x.map(function(m){return c.jsx(b,{displayMonth:e.displayMonth,dates:m.dates,weekNumber:m.weekNumber},m.weekNumber)})}),c.jsx(y,{displayMonth:e.displayMonth})]})}function BI(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var WI=BI()?v.useLayoutEffect:v.useEffect,hf=!1,zI=0;function jy(){return"react-day-picker-".concat(++zI)}function VI(e){var t,r=e??(hf?jy():null),n=v.useState(r),s=n[0],i=n[1];return WI(function(){s===null&&i(jy())},[]),v.useEffect(function(){hf===!1&&(hf=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function HI(e){var t,r,n=Ae(),s=n.dir,i=n.classNames,o=n.styles,a=n.components,l=hl().displayMonths,u=VI(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[i.month],h=o.month,p=e.displayIndex===0,x=e.displayIndex===l.length-1,g=!p&&!x;s==="rtl"&&(t=[p,x],x=t[0],p=t[1]),p&&(f.push(i.caption_start),h=ne(ne({},h),o.caption_start)),x&&(f.push(i.caption_end),h=ne(ne({},h),o.caption_end)),g&&(f.push(i.caption_between),h=ne(ne({},h),o.caption_between));var b=(r=a==null?void 0:a.Caption)!==null&&r!==void 0?r:ZR;return c.jsxs("div",{className:f.join(" "),style:h,children:[c.jsx(b,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(UI,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function qI(e){var t=Ae(),r=t.classNames,n=t.styles;return c.jsx("div",{className:r.months,style:n.months,children:e.children})}function YI(e){var t,r,n=e.initialProps,s=Ae(),i=Yp(),o=hl(),a=v.useState(!1),l=a[0],u=a[1];v.useEffect(function(){s.initialFocus&&i.focusTarget&&(l||(i.focus(i.focusTarget),u(!0)))},[s.initialFocus,l,i.focus,i.focusTarget,i]);var d=[s.classNames.root,s.className];s.numberOfMonths>1&&d.push(s.classNames.multiple_months),s.showWeekNumber&&d.push(s.classNames.with_weeknumber);var f=ne(ne({},s.styles.root),s.style),h=Object.keys(n).filter(function(x){return x.startsWith("data-")}).reduce(function(x,g){var b;return ne(ne({},x),(b={},b[g]=n[g],b))},{}),p=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:qI;return c.jsx("div",ne({className:d.join(" "),style:f,dir:s.dir,id:s.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:c.jsx(p,{children:o.displayMonths.map(function(x,g){return c.jsx(HI,{displayIndex:g,displayMonth:x},g)})})}))}function GI(e){var t=e.children,r=yR(e,["children"]);return c.jsx(LR,{initialProps:r,children:c.jsx(YR,{children:c.jsx(NI,{initialProps:r,children:c.jsx(nI,{initialProps:r,children:c.jsx(oI,{initialProps:r,children:c.jsx(mI,{children:c.jsx(CI,{children:t})})})})})})})}function KI(e){return c.jsx(GI,ne({},e,{children:c.jsx(YI,{initialProps:e})}))}function c1({className:e,classNames:t,showOutsideDays:r=!0,...n}){return c.jsx(KI,{showOutsideDays:r,className:le("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
271ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:le($h({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:le($h({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>c.jsx(jj,{className:"h-4 w-4"}),IconRight:({...s})=>c.jsx(Nj,{className:"h-4 w-4"})},...n})}c1.displayName="Calendar";var QI="Label",u1=v.forwardRef((e,t)=>c.jsx(ke.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));u1.displayName=QI;var d1=u1;const ZI=Vu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ye=v.forwardRef(({className:e,...t},r)=>c.jsx(d1,{ref:r,className:le(ZI(),e),...t}));Ye.displayName=d1.displayName;const JI=xO,f1=v.createContext({}),Bn=({...e})=>c.jsx(f1.Provider,{value:{name:e.name},children:c.jsx(kO,{...e})}),cd=()=>{const e=v.useContext(f1),t=v.useContext(h1),{getFieldState:r,formState:n}=od(),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},h1=v.createContext({}),ln=v.forwardRef(({className:e,...t},r)=>{const n=v.useId();return c.jsx(h1.Provider,{value:{id:n},children:c.jsx("div",{ref:r,className:le("space-y-2",e),...t})})});ln.displayName="FormItem";const cn=v.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:s}=cd();return c.jsx(Ye,{ref:r,className:le(n&&"text-destructive",e),htmlFor:s,...t})});cn.displayName="FormLabel";const un=v.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:s,formMessageId:i}=cd();return c.jsx(ni,{ref:t,id:n,"aria-describedby":r?`${s} ${i}`:`${s}`,"aria-invalid":!!r,...e})});un.displayName="FormControl";const m1=v.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=cd();return c.jsx("p",{ref:r,id:n,className:le("text-sm text-muted-foreground",e),...t})});m1.displayName="FormDescription";const dn=v.forwardRef(({className:e,children:t,...r},n)=>{const{error:s,formMessageId:i}=cd(),o=s?String(s==null?void 0:s.message):t;return o?c.jsx("p",{ref:n,id:i,className:le("text-sm font-medium text-destructive",e),...r,children:o}):null});dn.displayName="FormMessage";const zr=v.forwardRef(({className:e,type:t,...r},n)=>c.jsx("input",{type:t,className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));zr.displayName="Input";const ya=v.forwardRef(({className:e,...t},r)=>c.jsx("textarea",{className:le("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
271ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));ya.displayName="Textarea";const Tt=v.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Tt.displayName="Card";const Ot=v.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("flex flex-col space-y-1.5 p-6",e),...t}));Ot.displayName="CardHeader";const At=v.forwardRef(({className:e,...t},r)=>c.jsx("h3",{ref:r,className:le("text-2xl font-semibold leading-none tracking-tight",e),...t}));At.displayName="CardTitle";const xa=v.forwardRef(({className:e,...t},r)=>c.jsx("p",{ref:r,className:le("text-sm text-muted-foreground",e),...t}));xa.displayName="CardDescription";const Rt=v.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("p-6 pt-0",e),...t}));Rt.displayName="CardContent";const XI=v.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:le("flex items-center p-6 pt-0",e),...t}));XI.displayName="CardFooter";var mf=0;function eM(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ny()),document.body.insertAdjacentElement("beforeend",e[1]??Ny()),mf++,()=>{mf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),mf--}},[])}function Ny(){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 pf="focusScope.autoFocusOnMount",vf="focusScope.autoFocusOnUnmount",Py={bubbles:!1,cancelable:!0},tM="FocusScope",p1=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=v.useState(null),u=Wt(s),d=Wt(i),f=v.useRef(null),h=Xe(t,g=>l(g)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let g=function(w){if(p.paused||!a)return;const _=w.target;a.contains(_)?f.current=_:Hn(f.current,{select:!0})},b=function(w){if(p.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Hn(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Hn(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const m=new MutationObserver(y);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),m.disconnect()}}},[n,a,p.paused]),v.useEffect(()=>{if(a){Oy.add(p);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(pf,Py);a.addEventListener(pf,u),a.dispatchEvent(y),y.defaultPrevented||(rM(aM(v1(a)),{select:!0}),document.activeElement===g&&Hn(a))}return()=>{a.removeEventListener(pf,u),setTimeout(()=>{const y=new CustomEvent(vf,Py);a.addEventListener(vf,d),a.dispatchEvent(y),y.defaultPrevented||Hn(g??document.body,{select:!0}),a.removeEventListener(vf,d),Oy.remove(p)},0)}}},[a,u,d,p]);const x=v.useCallback(g=>{if(!r&&!n||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const m=g.currentTarget,[w,_]=nM(m);w&&_?!g.shiftKey&&y===_?(g.preventDefault(),r&&Hn(w,{select:!0})):g.shiftKey&&y===w&&(g.preventDefault(),r&&Hn(_,{select:!0})):y===m&&g.preventDefault()}},[r,n,p.paused]);return c.jsx(ke.div,{tabIndex:-1,...o,ref:h,onKeyDown:x})});p1.displayName=tM;function rM(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Hn(n,{select:t}),document.activeElement!==r)return}function nM(e){const t=v1(e),r=Ty(t,e),n=Ty(t.reverse(),e);return[r,n]}function v1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ty(e,t){for(const r of e)if(!sM(r,{upTo:t}))return r}function sM(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 iM(e){return e instanceof HTMLInputElement&&"select"in e}function Hn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&iM(e)&&t&&e.select()}}var Oy=oM();function oM(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Ay(e,t),e.unshift(t)},remove(t){var r;e=Ay(e,t),(r=e[0])==null||r.resume()}}}function Ay(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function aM(e){return e.filter(t=>t.tagName!=="A")}var lM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body}
vendor: 4,796 bytes, line 271
271,yi=new WeakMap,Hl=new WeakMap,ql={},gf=0,g1=function(e){return e&&(e.host||g1(e.parentNode))},cM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=g1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},uM=function(e,t,r,n){var s=cM(t,Array.isArray(e)?e:[e]);ql[r]||(ql[r]=new WeakMap);var i=ql[r],o=[],a=new Set,l=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};s.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var p=h.getAttribute(n),x=p!==null&&p!=="false",g=(yi.get(h)||0)+1,b=(i.get(h)||0)+1;yi.set(h,g),i.set(h,b),o.push(h),g===1&&x&&Hl.set(h,!0),b===1&&h.setAttribute(r,"true"),x||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),a.clear(),gf++,function(){o.forEach(function(f){var h=yi.get(f)-1,p=i.get(f)-1;yi.set(f,h),i.set(f,p),h||(Hl.has(f)||f.removeAttribute(n),Hl.delete(f)),p||f.removeAttribute(r)}),gf--,gf||(yi=new WeakMap,yi=new WeakMap,Hl=new WeakMap,ql={})}},dM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=lM(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),uM(n,s,r,"aria-hidden")):function(){return null}},Hr=function(){return Hr=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Hr.apply(this,arguments)};function y1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function fM(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var gc="right-scroll-bar-position",yc="width-before-scroll-bar",hM="with-scroll-bars-hidden",mM="--removed-body-scroll-bar-size";function yf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pM(e,t){var r=v.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var vM=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ry=new WeakMap;function gM(e,t){var r=pM(null,function(n){return e.forEach(function(s){return yf(s,n)})});return vM(function(){var n=Ry.get(r);if(n){var s=new Set(n),i=new Set(e),o=r.current;s.forEach(function(a){i.has(a)||yf(a,null)}),i.forEach(function(a){s.has(a)||yf(a,o)})}Ry.set(r,e)},[e]),r}function yM(e){return e}function xM(e,t){t===void 0&&(t=yM);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var a=r;r=[],a.forEach(i),o=r}var l=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return s}function wM(e){e===void 0&&(e={});var t=xM(null);return t.options=Hr({async:!0,ssr:!1},e),t}var x1=function(e){var t=e.sideCar,r=y1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,Hr({},r))};x1.isSideCarExport=!0;function bM(e,t){return e.useMedium(t),x1}var w1=wM(),xf=function(){},ud=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:xf,onWheelCapture:xf,onTouchMoveCapture:xf}),s=n[0],i=n[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,x=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,m=e.gapMode,w=y1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,k=gM([r,t]),C=Hr(Hr({},w),s);return v.createElement(v.Fragment,null,d&&v.createElement(_,{sideCar:w1,removeScrollBar:u,shards:f,noIsolation:p,inert:x,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:m}),o?v.cloneElement(v.Children.only(a),Hr(Hr({},C),{ref:k}
vendor: 12,758 bytes, lines 271-311
271)):v.createElement(y,Hr({},C,{className:l,ref:k}),a))});ud.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ud.classNames={fullWidth:yc,zeroRight:gc};var _M=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_M();return t&&e.setAttribute("nonce",t),e}function SM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=kM())&&(SM(t,r),EM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jM=function(){var e=CM();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b1=function(){var e=jM(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},NM={left:0,top:0,right:0,gap:0},wf=function(e){return parseInt(e||"",10)||0},PM=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[wf(r),wf(n),wf(s)]},TM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NM;var t=PM(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},OM=b1(),Zi="data-scroll-locked",AM=function(e,t,r,n){var s=e.left,i=e.top,o=e.right,a=e.gap;return r===void 0&&(r="margin"),` 272 .`.concat(hM,` { 273 overflow: hidden `).concat(n,`; 274 padding-right: `).concat(a,"px ").concat(n,`; 275 } 276 body[`).concat(Zi,`] { 277 overflow: hidden `).concat(n,`; 278 overscroll-behavior: contain; 279 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 280 padding-left: `.concat(s,`px; 281 padding-top: `).concat(i,`px; 282 padding-right: `).concat(o,`px; 283 margin-left:0; 284 margin-top:0; 285 margin-right: `).concat(a,"px ").concat(n,`; 286 `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` 287 } 288 289 .`).concat(gc,` { 290 right: `).concat(a,"px ").concat(n,`; 291 } 292 293 .`).concat(yc,` { 294 margin-right: `).concat(a,"px ").concat(n,`; 295 } 296 297 .`).concat(gc," .").concat(gc,` { 298 right: 0 `).concat(n,`; 299 } 300 301 .`).concat(yc," .").concat(yc,` { 302 margin-right: 0 `).concat(n,`; 303 } 304 305 body[`).concat(Zi,`] { 306 `).concat(mM,": ").concat(a,`px; 307 } 308`)},Iy=function(){var e=parseInt(document.body.getAttribute(Zi)||"0",10);return isFinite(e)?e:0},RM=function(){v.useEffect(function(){return document.body.setAttribute(Zi,(Iy()+1).toString()),function(){var e=Iy()-1;e<=0?document.body.removeAttribute(Zi):document.body.setAttribute(Zi,e.toString())}},[])},IM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;RM();var i=v.useMemo(function(){return TM(s)},[s]);return v.createElement(OM,{styles:AM(i,!t,s,r?"":"!important")})},Jh=!1;if(typeof window<"u")try{var Yl=Object.defineProperty({},"passive",{get:function(){return Jh=!0,!0}});window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{Jh=!1}var xi=Jh?{passive:!1}:!1,MM=function(e){return e.tagName==="TEXTAREA"},_1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!MM(e)&&r[t]==="visible")},DM=function(e){return _1(e,"overflowY")},LM=function(e){return _1(e,"overflowX")},My=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=k1(e,n);if(s){var i=S1(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},FM=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},$M=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},k1=function(e,t){return e==="v"?DM(t):LM(t)},S1=function(e,t){return e==="v"?FM(t):$M(t)},UM=function(e,t){return e==="h"&&t==="rtl"?-1:1},BM=function(e,t,r,n,s){var i=UM(e,window.getComputedStyle(t).direction),o=i*n,a=r.target,l=t.contains(a),u=!1,d=o>0,f=0,h=0;do{var p=S1(e,a),x=p[0],g=p[1],b=p[2],y=g-b-i*x;(x||y)&&k1(e,a)&&(f+=y,h+=x),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(h)<1||!s))&&(u=!0),u},Gl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dy=function(e){return[e.deltaX,e.deltaY]},Ly=function(e){return e&&"current"in e?e.current:e},WM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zM=function(e){return` 309 .block-interactivity-`.concat(e,` {pointer-events: none;} 310 .allow-interactivity-`).concat(e,` {pointer-events: all;} 311`)},VM=0,wi=[];function HM(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),s=v.useState(VM++)[0],i=v.useState(b1)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=fM([e.lockRef.current],(e.shards||[]).map(Ly),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var y=Gl(g),m=r.current,w="deltaX"in g?g.deltaX:m[0]-y[0],_="deltaY"in g?g.deltaY:m[1]-y[1],k,C=g.target,N=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in g&&N==="h"&&C.type==="range")return!1;var P=My(N,C);if(!P)return!0;if(P?k=N:(k=N==="v"?"h":"v",P=My(N,C)),!P)return!1;if(!n.current&&"changedTouches"in g&&(w||_)&&(n.current=k),!k)return!0;var $=n.current||k;return BM($,b,g,$==="h"?w:_,!0)},[]),l=v.useCallback(function(g){var b=g;if(!(!wi.length||wi[wi.length-1]!==i)){var y="deltaY"in b?Dy(b):Gl(b),m=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&WM(k.delta,y)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(o.current.shards||[]).map(Ly).filter(Boolean).filter(function(k){return k.contains(b.target)}),_=w.length>0?a(b,w[0]):!o.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),u=v.useCallback(function(g,b,y,m){var w={name:g,delta:b,target:y,should:m,shadowParent:qM(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),d=v.useCallback(function(g){r.current=Gl(g),n.current=void 0},[]),f=v.useCallback(function(g){u(g.type,Dy(g),g.target,a(g,e.lockRef.current))},[]),h=v.useCallback(function(g){u(g.type,Gl(g),g.target,a(g,e.lockRef.current))},[]);v.useEffect(function(){return wi.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,xi),document.addEventListener("touchmove",l,xi),document.addEventListener("touchstart",d,xi),function(){wi=wi.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,xi),document.removeEventListener("touchmove",l,xi),document.removeEventListener("touchstart",d,xi)}},[]);var p=e.removeScrollBar,x=e.inert;return v.createElement(v.Fragment,null,x?v.createElement(i,{styles:zM(s)}):null,p?v.createElement(IM,{gapMode:e.gapMode}):null)}function qM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const YM=bM(w1,HM);var E1=v.forwardRef(function(e,t){return v.createElement(ud,Hr({},e,{ref:t,sideCar:YM}))});E1.classNames=ud.classNames;var Kp="Popover",[C1,Y3]=On(Kp,[Zu]),ml=Zu(),[GM,Ps]=C1(Kp),j1=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=ml(t),l=v.useRef(null),[u,d]=v.useState(!1),[f=!1,h]=Ns({prop:n,defaultProp:s,onChange:i});return c.jsx(pT,{...a,children:c.jsx(GM,{scope:t,contentId:Yu(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:v.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:u,onCustomAnchorAdd:v.useCallback(()=>d(!0),[]),onCustomAnchorRemove:v.useCallback(()=>d(!1),[]),modal:o,children:r})})};j1.displayName=Kp;var N1="PopoverAnchor",KM=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Ps(N1,r),i=ml(r),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return v.useEffect(()=>(o(),()=>a()),[o,a]),c.jsx(Sp,{...i,...n,ref:t})});KM.displayName=N1;var P1="PopoverTrigger",T1=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Ps(P1,r),i=ml(r),o=Xe(t,s.triggerRef),a=c.jsx(ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":M1(s.open),...n,ref:o,onClick:pe(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:c.jsx(Sp,{asChild:!0,...i,children:a})});T1.displayName=P1;var Qp="PopoverPortal",[QM,ZM]=C1(Qp,{forceMount:void 0}),O1=e=>{const{__scopePopover:t,forceMount:r,children:n,container:s}=e,i=Ps(Qp,t);return c.jsx(QM,{scope:t,forceMount:r,children:c.jsx(js,{present:r||i.open,children:c.jsx(cp,{asChild:!0,container:s,children:n})})})};O1.displayName=Qp;var bo="PopoverContent",A1=v.forwardRef((e,t)=>{const r=ZM(bo,e.__scopePopover),{forceMount:n=r.forceMount,...s}=e,i=Ps(bo,e.__scopePopover);return c.jsx(js,{present:n||i.open,children:i.modal?c.jsx(JM,{...s,ref:t}):c.jsx(XM,{...s,ref:t})})});A1.displayName=bo;var JM=v.forwardRef((e,t)=>{const r=Ps(bo,e.__scopePopover),n=v.useRef(null),s=Xe(t,n),i=v.useRef(!1);return v.useEffect(()=>{const o=n.current;if(o)return dM(o)},[]),c.jsx(E1,{as:ni,allowPinchZoom:!0,children:c.jsx(R1,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),XM=v.forwardRef((e,t)=>{const r=Ps(bo,e.__scopePopover),n=v.useRef(!1),s=v.useRef(!1);return c.jsx(R1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),R1=v.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=e,h=Ps(bo,r),p=ml(r);return eM(),c.jsx(p1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:c.jsx(Uu,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:c.jsx(Rb,{"data-state":M1(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),I1="PopoverClose",e4=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Ps(I1,r);return c.jsx(ke.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>s.onOpenChange(!1))})});e4.displayName=I1;var t4="PopoverArrow",r4=v.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=ml(r);return c.jsx(Ib,{...s,...n,ref:t})});r4.displayName=t4;function M1(e){return e?"open":"closed"}var n4=j1,s4=T1,i4=O1,D1=A1;const o4=n4,a4=s4,L1=v.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},s)=>c.jsx(i4,{children:c.jsx(D1,{ref:s,align:t,sideOffset:r,className:le("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
311de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));L1.displayName=D1.displayName;const l4=sA({name:As().min(2,{message:"Name must be at least 2 characters."}),email:As().email({message:"Please enter a valid email address."}),organization:As().min(2,{message:"Organization name is required."}),eventType:As().min(1,{message:"Please select an event type."}),attendees:As().min(1,{message:"Please provide estimated attendees."}),date:nA({required_error:"Please select a date."}),location:As().min(2,{message:"Event location is required."}),details:As().min(10,{message:"Please provide event details (min 10 characters)."})}),c4="YOUR_SERVICE_ID",u4="YOUR_TEMPLATE_ID",d4="YOUR_PUBLIC_KEY",f4=()=>{const[e,t]=O.useState(!1),r=MO({resolver:$O(l4),defaultValues:{name:"",email:"",organization:"",eventType:"",attendees:"",location:"",details:""}}),n=async s=>{console.log("Form submitted:",s),t(!0);try{const i=Pn(s.date,"PPP"),o={to_email:"[email protected]",from_name:s.name,from_email:s.email,organization:s.organization,event_type:s.eventType,attendees:s.attendees,event_date:i,location:s.location,details:s.details,reply_to:s.email};await gR.send(c4,u4,o,d4),_h({title:"Booking request submitted!",description:"We'll review your request and get back to you soon."}),r.reset()}catch(i){console.error("Error sending email:",i),_h({title:"Something went wrong",description:"Unable to submit your request. Please try again later.",variant:"destructive"})}finally{t(!1)}};return c.jsxs("div",{className:"min-h-screen bg-white",children:[c.jsx(nd,{}),c.jsxs("main",{children:[c.jsx("section",{className:"py-16 md:py-24 bg-secondary/10",children:c.jsxs("div",{className:"container max-w-screen-xl mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold mb-6",children:"Book Megan Anderson for Your Next Event"}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Elevate your event with insights on AI in business. Fill out the form below to request Megan as a speaker for your upcoming conference, workshop, or corporate event."})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 items-start",children:[c.jsx("div",{className:"lg:col-span-2 order-2 lg:order-1",children:c.jsxs(Tt,{className:"shadow-lg bg-white border-0",children:[c.jsxs(Ot,{children:[c.jsx(At,{children:"Speaking Engagement Request"}),c.jsx(xa,{children:"Please provide details about your event to help us prepare the best presentation for your audience."})]}),c.jsx(Rt,{children:c.jsx(JI,{...r,children:c.jsxs("form",{onSubmit:r.handleSubmit(n),className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(Bn,{control:r.control,name:"name",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Your Name"}),c.jsx(un,{children:c.jsx(zr,{placeholder:"Full name",...s})}),c.jsx(dn,{})]})}),c.jsx(Bn,{control:r.control,name:"email",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Email Address"}),c.jsx(un,{children:c.jsx(zr,{placeholder:"[email protected]",...s})}),c.jsx(dn,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(Bn,{control:r.control,name:"organization",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Organization"}),c.jsx(un,{children:c.jsx(zr,{placeholder:"Company or organization name",...s})}),c.jsx(dn,{})]})}),c.jsx(Bn,{control:r.control,name:"eventType",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Event Type"}),c.jsx(un,{children:c.jsx(zr,{placeholder:"Conference, workshop, webinar, etc.",...s})}),c.jsx(dn,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(Bn,{control:r.control,name:"attendees",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Estimated Attendees"}),c.jsx(un,{children:c.jsx(zr,{placeholder:"Number of attendees",...s})}),c.jsx(dn,{})]})}),c.jsx(Bn,{control:r.control,name:"date",render:({field:s})=>c.jsxs(ln,{className:"flex flex-col",children:[c.jsx(cn,{children:"Event Date"}),c.jsxs(o4,{children:[c.jsx(a4,{asChild:!0,children:c.jsx(un,{children:c.jsxs(mt,{variant:"outline",className:le("w-full pl-3 text-left font-normal",!s.value&&"text-muted-foreground"),children:[s.value?Pn(s.value,"PPP"):c.jsx("span",{children:"Select date"}),c.jsx(qu,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),c.jsx(L1,{className:"w-auto p-0",align:"start",children:c.jsx(c1,{mode:"single",selected:s.value,onSelect:s.onChange,disabled:i=>i<new Date,initialFocus:!0,className:le("p-3 pointer-events-auto")})})]}),c.jsx(dn,{})]})})]}),c.jsx(Bn,{control:r.control,name:"location",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Event Location"}),c.jsx(un,{children:c.jsx(zr,{placeholder:"City, State or Virtual",...s})}),c.jsx(dn,{})]})}),c.jsx(Bn,{control:r.control,name:"details",render:({field:s})=>c.jsxs(ln,{children:[c.jsx(cn,{children:"Event Details"}),c.jsx(un,{children:c.jsx(ya,{placeholder:"Please provide additional details about your event, audience, and what topics you'd like covered.",className:"min-h-[120px]",...s})}),c.jsx(m1,{children:"Include any specific topics or focus areas you're interested in."}),c.jsx(dn,{})]})}),c.jsx(mt,{type:"submit",className:"w-full md:w-auto",size:"lg",disabled:e,children:e?"Submitting...":"Submit Request"})]})})})]})}),c.jsx("div",{className:"order-1 lg:order-2",children:c.jsx("div",{className:"sticky top-28",children:c.jsxs("div",{className:"bg-white rounded-xl shadow-lg overflow-hidden border border-gray-100",children:[c.jsx("div",{className:"aspect-video w-full overflow-hidden",children:c.jsx("img",{src:"/lovable-uploads/eb4f281a-adb9-4a31-b2d3-e4f7969f4c14.png",alt:"Megan Anderson speaking portrait",className:"w-full h-full object-cover"})}),c.jsxs("div",{className:"p-6",children:[c.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Speaking Topics"}),c.jsxs("ul",{className:"space-y-3 mb-6",children:[c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-1 flex-shrink-0"}),c.jsx("span",{children:"AI Implementation for Business Growth"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-1 flex-shrink-0"}),c.jsx("span",{children:"Time-Saving AI Strategies for Professionals"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-1 flex-shrink-0"}),c.jsx("span",{children:"AI for Marketing to Attract and Convert Leads"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx(Yt,{className:"h-5 w-5 text-green-500 mr-3 mt-1 flex-shrink-0"}),c.jsx("span",{children:"Housing and Rate Forecast"})]})]}),c.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Event Format Options"}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx(qc,{className:"h-5 w-5 text-gray-500 mr-3 flex-shrink-0"}),c.jsx("span",{children:"Keynote Presentations (45-90 min)"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(qc,{className:"h-5 w-5 text-gray-500 mr-3 flex-shrink-0"}),c.jsx("span",{children:"Interactive Workshops (2-4 hours)"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(hp,{className:"h-5 w-5 text-gray-500 mr-3 flex-shrink-0"}),c.jsx("span",{children:"Half/Full Day Training Sessions"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(rb,{className:"h-5 w-5 text-gray-500 mr-3 flex-shrink-0"}),c.jsx("span",{children:"In-person or Virtual Options"})]})]})]})]})})})]})]})}),c.jsx("section",{className:"py-16 bg-white",children:c.jsxs("div",{className:"container max-w-screen-xl mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl font-display font-bold mb-4",children:"Previous Speaking Engagements"}),c.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:"Megan has delivered engaging presentations at various industry events across the country."})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[c.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 shadow-sm",children:[c.jsx("div",{className:"text-lg font-semibold mb-2",children:"AI Summit 2023"}),c.jsx("div",{className:"text-gray-600 mb-1",children:"Chicago, IL"}),c.jsx("div",{className:"text-gray-600 mb-4",children:"September 2023"}),c.jsx("p",{className:"text-gray-700",children:'Keynote presentation on "The Future of AI in Business Operations" with over 500 attendees.'})]}),c.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 shadow-sm",children:[c.jsx("div",{className:"text-lg font-semibold mb-2",children:"Tech Forward Conference"}),c.jsx("div",{className:"text-gray-600 mb-1",children:"Seattle, WA"}),c.jsx("div",{className:"text-gray-600 mb-4",children:"May 2023"}),c.jsx("p",{className:"text-gray-700",children:'Workshop on "Implementing AI Tools for Growth" with hands-on demonstrations.'})]}),c.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 shadow-sm",children:[c.jsx("div",{className:"text-lg font-semibold mb-2",children:"Innovation Forum"}),c.jsx("div",{className:"text-gray-600 mb-1",children:"Virtual Event"}),c.jsx("div",{className:"text-gray-600 mb-4",children:"March 2023"}),c.jsx("p",{className:"text-gray-700",children:'Panel discussion on "Ethical Considerations in AI Adoption" with industry leaders.'})]})]})]})})]}),c.jsx(sd,{})]})},h4=()=>{const e=v.useRef(null),t=v.useRef(null);return v.useEffect(()=>{const r=new IntersectionObserver(i=>
311{i.forEach(o=>{o.isIntersecting&&o.target.classList.add("is-visible")})},{threshold:.1});e.current&&r.observe(e.current);const n=document.createElement("script");n.src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js",n.async=!0,n.type="text/javascript",n.onload=()=>{const i=document.createElement("script");i.type="text/javascript",i.textContent=` 312 (function($) { 313 window.fnames = new Array(); 314 window.ftypes = new Array(); 315 fnames[0]='EMAIL'; 316 ftypes[0]='email'; 317 fnames[1]='FNAME'; 318 ftypes[1]='text'; 319 fnames[2]='LNAME'; 320 ftypes[2]='text'; 321 fnames[3]='ADDRESS'; 322 ftypes[3]='address'; 323 fnames[4]='PHONE'; 324 ftypes[4]='phone'; 325 fnames[5]='BIRTHDAY'; 326 ftypes[5]='birthday'; 327 }(jQuery)); 328 var $mcj = jQuery.noConflict(true); 329 `,document.body.appendChild(i)},document.body.appendChild(n);const s=document.createElement("link");return s.href="//cdn-images.mailchimp.com/embedcode/classic-061523.css",s.rel="stylesheet",s.type="text/css",document.head.appendChild(s),()=>{e.current&&r.unobserve(e.current),document.body.removeChild(n)}},[]),c.jsxs("section",{id:"newsletter",className:"py-20 bg-secondary relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-gray-200 to-transparent"}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-gray-200 to-transparent"}),c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("div",{className:"absolute top-0 left-0 w-96 h-96 bg-gradient-to-br from-primary/5 to-transparent rounded-full transform -translate-x-1/2 -translate-y-1/2 blur-3xl"}),c.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-gradient-to-tl from-primary/5 to-transparent rounded-full transform translate-x-1/2 translate-y-1/2 blur-3xl"})]}),c.jsx("div",{className:"section-container relative z-10",children:c.jsx("div",{ref:e,className:"max-w-3xl mx-auto fade-in-section",children:c.jsxs("div",{className:"p-8 md:p-12 bg-white rounded-2xl shadow-sm border border-gray-100",children:[c.jsxs("div",{className:"flex flex-col items-center text-center mb-8",children:[c.jsx("div",{className:"p-3 bg-secondary rounded-full mb-6",children:c.jsx(Sj,{className:"h-6 w-6"})}),c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold mb-6",children:"Get AI Tips Directly to Your Inbox"}),c.jsx("p",{className:"text-lg text-gray-600 max-w-2xl",children:"Get weekly AI strategies, tool recommendations, and industry insightsâdesigned for both loan officers and real estate professionals."})]}),c.jsx("div",{ref:t,className:"max-w-lg mx-auto",children:c.jsx("div",{id:"mc_embed_shell",children:c.jsx("div",{id:"mc_embed_signup",className:"w-full",children:c.jsx("form",{action:"https://gmail.us14.list-manage.com/subscribe/post?u=bfb20297530030ccf87bcf288&id=3e80471057&f_id=0068bbe5f0",method:"post",id:"mc-embedded-subscribe-form",name:"mc-embedded-subscribe-form",className:"validate",target:"_blank",children:c.jsxs("div",{id:"mc_embed_signup_scroll",children:[c.jsxs("div",{className:"indicates-required text-right text-sm mb-2",children:[c.jsx("span",{className:"asterisk text-red-500",children:"*"})," indicates required"]}),c.jsxs("div",{className:"mc-field-group mb-4",children:[c.jsxs("label",{htmlFor:"mce-EMAIL",className:"block text-sm font-medium mb-1",children:["Email Address ",c.jsx("span",{className:"asterisk text-red-500",children:"*"})]}),c.jsx("input",{type:"email",name:"EMAIL",className:"required email w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-primary/20 focus:border-primary",id:"mce-EMAIL",required:!0})]}),c.jsx("div",{hidden:!0,children:c.jsx("input",{type:"hidden",name:"tags",value:"40191602"})}),c.jsxs("div",{id:"mce-responses",className:"clear",children:[c.jsx("div",{className:"response",id:"mce-error-response",style:{display:"none"}}),c.jsx("div",{className:"response",id:"mce-success-response",style:{display:"none"}})]}),c.jsx("div",{"aria-hidden":"true",style:{position:"absolute",left:"-5000px"},children:c.jsx("input",{type:"text",name:"b_bfb20297530030ccf87bcf288_3e80471057",tabIndex:-1,value:""})}),c.jsx("div",{className:"clear text-center mt-4",children:c.jsx("input",{type:"submit",name:"subscribe",id:"mc-embedded-subscribe",className:"bg-primary hover:bg-primary/90 text-white font-medium py-2 px-6 rounded-md cursor-pointer transition-colors",value:"Subscribe"})})]})})})})}),c.jsx("div",{className:"mt-8 pt-8 border-t border-gray-100",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 text-center",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-2",children:"Weekly AI Tips"}),c.jsx("p",{className:"text-sm text-gray-600",children:"Practical strategies you can implement immediately"})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-2",children:"Life, Lessons & AI"}),c.jsx("p",{className:"text-sm text-gray-600",children:"Get a peek behind the scenes as I share where I am, what I'm learning, and how I'm using AI along the way"})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-2",children:"Tool Reviews"}),c.jsx("p",{className:"text-sm text-gray-600",children:"Stay informed about the latest AI tools"})]})]})})]})})})]})},m4=()=>c.jsxs("div",{className:"min-h-screen bg-white",children:[c.jsx(nd,{}),c.jsxs("main",{className:"pt-24",children:[c.jsxs("div",{className:"mb-12 text-center",children:[c.jsx("h1",{className:"text-4xl md:text-5xl font-display font-bold mb-4",children:"Newsletter"}),c.jsx("p",{className:"text-lg text-gray-600 max-w-xl mx-auto",children:"Subscribe to re
329ceive the latest AI insights and strategies for mortgage and real estate professionals."})]}),c.jsx(h4,{})]}),c.jsx(sd,{})]});function p4(e,t=[]){let r=[];function n(i,o){const a=v.createContext(o),l=r.length;r=[...r,o];function u(f){const{scope:h,children:p,...x}=f,g=(h==null?void 0:h[e][l])||a,b=v.useMemo(()=>x,Object.values(x));return c.jsx(g.Provider,{value:b,children:p})}function d(f,h){const p=(h==null?void 0:h[e][l])||a,x=v.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const s=()=>{const i=r.map(o=>v.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,v4(s,...t)]}function v4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var g4=v.createContext(void 0);function Zp(e){const t=v.useContext(g4);return e||t||"ltr"}var bf="rovingFocusGroup.onEntryFocus",y4={bubbles:!1,cancelable:!0},dd="RovingFocusGroup",[Xh,F1,x4]=lp(dd),[w4,$1]=p4(dd,[x4]),[b4,_4]=w4(dd),U1=v.forwardRef((e,t)=>c.jsx(Xh.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Xh.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(k4,{...e,ref:t})})}));U1.displayName=dd;var k4=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=v.useRef(null),p=Xe(t,h),x=Zp(i),[g=null,b]=Ns({prop:o,defaultProp:a,onChange:l}),[y,m]=v.useState(!1),w=Wt(u),_=F1(r),k=v.useRef(!1),[C,N]=v.useState(0);return v.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(bf,w),()=>P.removeEventListener(bf,w)},[w]),c.jsx(b4,{scope:r,orientation:n,dir:x,loop:s,currentTabStopId:g,onItemFocus:v.useCallback(P=>b(P),[b]),onItemShiftTab:v.useCallback(()=>m(!0),[]),onFocusableItemAdd:v.useCallback(()=>N(P=>P+1),[]),onFocusableItemRemove:v.useCallback(()=>N(P=>P-1),[]),children:c.jsx(ke.div,{tabIndex:y||C===0?-1:0,"data-orientation":n,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{k.current=!0}),onFocus:pe(e.onFocus,P=>{const $=!k.current;if(P.target===P.currentTarget&&$&&!y){const U=new CustomEvent(bf,y4);if(P.currentTarget.dispatchEvent(U),!U.defaultPrevented){const J=_().filter(G=>G.focusable),R=J.find(G=>G.active),V=J.find(G=>
vendor: 4,156 bytes, line 329
329G.id===g),X=[R,V,...J].filter(Boolean).map(G=>G.ref.current);z1(X,d)}}k.current=!1}),onBlur:pe(e.onBlur,()=>m(!1))})})}),B1="RovingFocusGroupItem",W1=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...o}=e,a=Yu(),l=i||a,u=_4(B1,r),d=u.currentTabStopId===l,f=F1(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=u;return v.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),c.jsx(Xh.ItemSlot,{scope:r,id:l,focusable:n,active:s,children:c.jsx(ke.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:pe(e.onMouseDown,x=>{n?u.onItemFocus(l):x.preventDefault()}),onFocus:pe(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:pe(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const g=C4(x,u.orientation,u.dir);if(g!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let y=f().filter(m=>m.focusable).map(m=>m.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const m=y.indexOf(x.currentTarget);y=u.loop?j4(y,m+1):y.slice(m+1)}setTimeout(()=>z1(y))}})})})});W1.displayName=B1;var S4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function C4(e,t,r){const n=E4(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return S4[n]}function z1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function j4(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var N4=U1,P4=W1;function V1(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Jp="Radio",[T4,H1]=On(Jp),[O4,A4]=T4(Jp),q1=v.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:l,form:u,...d}=e,[f,h]=v.useState(null),p=Xe(t,b=>h(b)),x=v.useRef(!1),g=f?u||!!f.closest("form"):!0;return c.jsxs(O4,{scope:r,checked:s,disabled:o,children:[c.jsx(ke.button,{type:"button",role:"radio","aria-checked":s,"data-state":K1(s),"data-disabled":o?"":void 0,disabled:o,value:a,...d,ref:p,onClick:pe(e.onClick,b=>{s||l==null||l(),g&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),g&&c.jsx(R4,{control:f,bubbles:!x.current,name:n,value:a,checked:s,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});q1.displayName=Jp;var Y1="RadioIndicator",G1=v.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...s}=e,i=A4(Y1,r);return c.jsx(js,{present:n||i.checked,children:c.jsx(ke.span,{"data-state":K1(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})})});G1.displayName=Y1;var R4=e=>{const{control:t,checked:r,bubbles:n=!0,...s}=e,i=v.useRef(null),o=V1(r),a=bp(t);return v.useEffect(()=>{const l=i.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==r&&f){const h=new Event("click",{bubbles:n});f.call(l,r),l.dispatchEvent(h)}},[o,r,n]),c.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function K1(e){return e?"checked":"unchecked"}var I4=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xp="RadioGroup",[M4,G3]=On(Xp,[$1,H1]),Q1=$1(),Z1=H1(),[D4,L4]=M4(Xp),J1=v.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...h}=e,p=Q1(r),x=Zp(u),[g,b]=Ns({prop:i,defaultProp:s,onChange:f});return c.jsx(D4,{scope:r,name:n,required:o,disabled:a,value:g,onValueChange:b,children:c.jsx(N4,{asChild:!0,...p,orientation:l,dir:x,loop:d,children:c.jsx(ke.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:x,...h,ref:t})})})});J1.displayName=Xp;var X1="RadioGroupItem",ek=v.forwardRef((e,t)=>
329{const{__scopeRadioGroup:r,disabled:n,...s}=e,i=L4(X1,r),o=i.disabled||n,a=Q1(r),l=Z1(r),u=v.useRef(null),d=Xe(t,u),f=i.value===s.value,h=v.useRef(!1);return v.useEffect(()=>{const p=g=>{I4.includes(g.key)&&(h.current=!0)},x=()=>h.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",x)}},[]),c.jsx(P4,{asChild:!0,...a,focusable:!o,active:f,children:c.jsx(q1,{disabled:o,required:i.required,checked:f,...l,...s,name:i.name,ref:d,onCheck:()=>i.onValueChange(s.value),onKeyDown:pe(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:pe(s.onFocus,()=>{var p;h.current&&((p=u.current)==null||p.click())})})})});ek.displayName=X1;var F4="RadioGroupIndicator",tk=v.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,s=Z1(r);return c.jsx(G1,{...s,...n,ref:t})});tk.displayName=F4;var rk=J1,nk=ek,$4=tk;const ji=v.forwardRef(({className:e,...t},r)=>c.jsx(rk,{className:le("grid gap-2",e),...t,ref:r}));ji.displayName=rk.displayName;const Fs=v.forwardRef(({className:e,...t},r)=>c.jsx(nk,{ref:r,className:le("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:c.jsx($4,{className:"flex items-center justify-center",children:c.jsx(Oj,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Fs.displayName=nk.displayName;var ev="Checkbox",[U4,K3]=On(ev),[B4,W4]=U4(ev),sk=v.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:l="on",onCheckedChange:u,form:d,...f}=e,[h,p]=v.useState(null),x=Xe(t,_=>p(_)),g=v.useRef(!1),b=h?d||!!h.closest("form"):!0,[y=!1,m]=Ns({prop:s,defaultProp:i,onChange:u}),w=v.useRef(y);return v.useEffect(()=>{const _=h==null?void 0:h.form;if(_){const k=()=>m(w.current);return _.addEventListener("reset",k),()=>_.removeEventListener("reset",k)}},[h,m]),c.jsxs(B4,{scope:r,state:y,disabled:a,children:[c.jsx(ke.button,{type:"button",role:"checkbox","aria-checked":vs(y)?"mixed":y,"aria-required":o,"data-state":ak(y),"data-disabled":a?"":void 0,disabled:a,value:l,...f,ref:x,onKeyDown:pe(e.onKeyDown,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:pe(e.onClick,_=>{m(k=>vs(k)?!0:!k),b&&(g.current=_.isPropagationStopped(),g.current||_.stopPropagation())})}),b&&c.jsx(z4,{control:h,bubbles:!g.current,name:n,value:l,checked:y,required:o,disabled:a,form:d,style:{transform:"translateX(-100%)"},defaultChecked:vs(i)?!1:i})]})});sk.displayName=ev;var ik="CheckboxIndicator",ok=v.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,i=W4(ik,r);return c.jsx(js,{present:n||vs(i.state)||i.state===!0,children:c.jsx(ke.span,{"data-state":ak(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});ok.displayName=ik;var z4=e=>{const{control:t,checked:r,bubbles:n=!0,defaultChecked:s,...i}=e,o=v.useRef(null),a=V1(r),l=bp(t);v.useEffect(()=>{const d=o.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(a!==r&&p){const x=new Event("click",{bubbles:n});d.indeterminate=vs(r),p.call(d,vs(r)?!1:r),d.dispatchEvent(x)}},[a,r,n]);const u=v.useRef(vs(r)?!1:r);return c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s??u.current,...i,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function vs(e){return e==="indeterminate"}function ak(e){return vs(e)?"indeterminate":e?"checked":"unchecked"}var lk=sk,V4=ok;const em=v.forwardRef(({className:e,...t},r)=>c.jsx(lk,{ref:r,className:le("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:c.jsx(V4,{className:le("flex items-center justify-center text-current"),children:c.jsx(Ej,{className:"h-4 w-4"})})}));em.displayName=lk.displayName;class wu{static detectEntryIds(){console.log("Entry IDs have been configured for your Google Form!"),console.log("Form ID:",this.formId),console.log("Entry IDs:",this.entryIds)}static async submitForm(t){console.log("=== GOOGLE FORM SUBMISSION DEBUG ==="),console.log("Original form data:",t);try{const r=`https://docs.google.com/forms/d/e/${this.formId}/viewform`,n=new URLSearchParams;t.name&&n.append(this.entryIds.name,t.name),t.businessStage&&n.append(this.entryIds.businessStage,t.businessStage),t.challenge&&n.append(this.entryIds.challenge,t.challenge),t.aifamiliarity&&n.append(this.entryIds.aifamiliarity,t.aifamiliarity),t.pricePoint&&n.append(this.entryIds.pricePoint,t.pricePoint),t.structure&&n.append(this.entryIds.structure,t.structure),t.transformation&&n.append(this.entryIds.transformation,t.transformation),t.connection&&n.append(this.entryIds.connection,t.connection),t.role==="other"&&t.roleOther?(n.append(this.entryIds.role,"__other_option__"),n.append(this.entryIds.roleOther,t.roleOther)):t.role&&n.append(this.entryIds.role,t.role),t.helpNeeded.filter(o=>o&&o!=="other").forEach(o=>{n.append(this.entryIds.helpNeeded,o)}),t.helpNeeded.includes("other")&&t.helpOther&&(n.append(this.entryIds.helpNeeded,"__other_option__"),n.append(this.entryIds.helpOther,t.helpOther));const i=`${r}?${n.toString()}`;return console.log("Opening pre-filled Google Form:",i),window.open(i,"_blank"),!0}catch(r){throw console.error("Form submission error:",r),r}}}wd(wu,"formId","1FAIpQLScSRYSI16ME1lV9cHJ9sGBDZIelPNqBDVh_r6dS99NccM6StQ"),wd(wu,"entryIds",{name:"entry.1308851604",role:"entry.414344023",roleOther:"entry.414344023.other_option_response",businessStage:"entry.1756265078",challenge:"entry.1502258911",aifamiliarity:"entry.316070480",helpNeeded:"entry.169878697",helpOther:"entry.169878697.other_option_response",pricePoint:"entry.1865918725",structure:"entry.1427894044",transformation:"entry.1698317647",connection:"entry.889830806"});const H4=({formData:e})=>{const t=n=>
329n.length===0?"None selected":n.join(", "),r=()=>e.role==="other"?e.roleOther:e.role;return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Survey Results"}),c.jsx("p",{className:"text-gray-600",children:"Here's what you submitted:"})]}),c.jsxs("div",{className:"grid gap-4",children:[c.jsxs(Tt,{children:[c.jsx(Ot,{children:c.jsx(At,{className:"text-lg",children:"Personal Information"})}),c.jsxs(Rt,{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Name:"}),c.jsx("span",{className:"ml-2",children:e.name||"Not provided"})]}),c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Role:"}),c.jsx("span",{className:"ml-2",children:r()||"Not selected"})]}),c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Business Stage:"}),c.jsx("span",{className:"ml-2",children:e.businessStage||"Not selected"})]}),c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Biggest Challenge:"}),c.jsx("div",{className:"mt-1 p-3 bg-gray-50 rounded text-sm",children:e.challenge||"Not provided"})]})]})]}),c.jsxs(Tt,{children:[c.jsx(Ot,{children:c.jsx(At,{className:"text-lg",children:"AI & Needs"})}),c.jsxs(Rt,{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"AI Familiarity:"}),c.jsx("span",{className:"ml-2",children:e.aifamiliarity||"Not selected"})]}),c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Help Needed:"}),c.jsxs("div",{className:"mt-1 p-3 bg-gray-50 rounded text-sm",children:[t(e.helpNeeded),e.helpOther&&c.jsxs("div",{className:"mt-2",children:[c.jsx("span",{className:"font-medium",children:"Other:"})," ",e.helpOther]})]})]})]})]}),c.jsxs(Tt,{children:[c.jsx(Ot,{children:c.jsx(At,{className:"text-lg",children:"Membership Preferences"})}),c.jsxs(Rt,{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Price Point:"}),c.jsx("span",{className:"ml-2",children:e.pricePoint||"Not selected"})]}),c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"Structure Preference:"}),c.jsx("span",{className:"ml-2",children:e.structure||"Not selected"})]}),c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"90-Day Transformation Goal:"}),c.jsx("div",{className:"mt-1 p-3 bg-gray-50 rounded text-sm",children:e.transformation||"Not provided"})]})]})]}),c.jsxs(Tt,{children:[c.jsx(Ot,{children:c.jsx(At,{className:"text-lg",children:"Connection"})}),c.jsx(Rt,{children:c.jsxs("div",{children:[c.jsx("span",{className:"font-medium",children:"How We Connected:"}),c.jsx("div",{className:"mt-1 p-3 bg-gray-50 rounded text-sm",children:e.connection||"Not provided"})]})})]})]})]})},q4=()=>{const[e,t]=v.useState(0),[r,n]=v.useState(!1),[s,i]=v.useState(!1),{toast:o}=ap(),[a,l]=v.useState({name:"",role:"",roleOther:"",businessStage:"",challenge:"",aifamiliarity:"",helpNeeded:[],helpOther:"",pricePoint:"",structure:"",transformation:"",connection:""});v.useEffect(()=>{wu.detectEntryIds()},[]);const u=async()=>{n(!0);try{if(await wu.submitForm(a))o({title:"Opening Google Form",description:"A new tab will open with your responses pre-filled. Please submit it there."}),i(!0),t(x.length-1);else throw new Error("Submission failed")}catch(m){console.error("Error submitting form:",m),o({title:"Error",description:"There was an issue opening the form. Please try again.",variant:"destructive"})}finally{n(!1)}},d=()=>{t(m=>Math.min(m+1,x.length-1))},f=()=>{t(m=>Math.max(m-1,0))},h=(m,w)=>{l(_=>({..._,[m]:w}))},p=(m,w)=>{l(_=>({..._,helpNeeded:w?[..._.helpNeeded,m]:_.helpNeeded.filter(k=>k!==m)}))},x=[{title:"Let's Co-Create Something That Actually Serves You",content:c.jsxs("div",{className:"text-center space-y-6",children:[c.jsx("div",{className:"text-6xl mb-4",children:"ð"}),c.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"Hey there! Thanks for taking a few minutes to share your thoughts with me."}),c.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"This will help shape a membership designed to support youâwith real tools, real community, and real transformation."}),c.jsx("p",{className:"text-lg font-medium text-primary",children:"No wrong answers. Just be you."})]})},{title:"You + Your Business",content:c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ye,{htmlFor:"name",className:"text-base font-medium",children:"What is your name?"}),c.jsx(zr,{id:"name",value:a.name,onChange:m=>h("name",m.target.value),placeholder:"Tell us about yourself...",className:"text-base"})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Ye,{className:"text-base font-medium",children:"What's your role?"}),c.jsxs(ji,{value:a.role,onValueChange:m=>h("role",m),className:"space-y-3",children:[["Realtor","Loan Officer","Marketer","Business Owner"].map(m=>c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Fs,{value:m,id:m}),c.jsx(Ye,{htmlFor:m,className:"text-base cursor-pointer",children:m})]},m)),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Fs,{value:"other",id:"other"}),c.jsx(Ye,{htmlFor:"other",className:"text-base cursor-pointer",children:"Other:"}),c.jsx(zr,{value:a.roleOther,onChange:m=>h("roleOther",m.target.value),placeholder:"Tell us more...",className:"ml-2 flex-1"})]})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Ye,{className:"text-base font-medium",children:"What stage are you in with your business?"}),c.jsx(ji,{value:a.businessStage,onValueChange:m=>h("businessStage",m),className:"space-y-3",children:["Just starting out","Growing steadily","Scaling rapidly","Pivoting or rebuilding"].map(m=>c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Fs,{value:m,id:m}),c.jsx(Ye,{htmlFor:m,className:"text-base cursor-pointer",children:m})]},m))})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ye,{htmlFor:"challenge",className:"text-base font-medium",children:"What's your biggest current challenge in business or marketing?"}),c.jsx(ya,{id:"challenge",value:a.challenge,onChange:m=>h("challenge",m.target.value),placeholder:"Share what's keeping you up at night...",className:"min-h-[100px] text-base"})]})]})},{title:"AI Awareness + Needs",content:c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx(Ye,{className:"text-base font-medium",children:"How familiar are you with tools like ChatGPT?"}),c.jsx(ji,{value:a.aifamiliarity,onValueChange:m=>h("aifamiliarity",m),className:"space-y-3",children:["I've never used them","I've played around a bit","I use them occasionally","I use them regularly and want to go deeper"].map(m=>c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Fs,{value:m,id:m}),c.jsx(Ye,{htmlFor:m,className:"text-base cursor-pointer",children:m})]},m))})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Ye,{className:"text-base font-medium",children:"What would you love help with? (Check all that apply)"}),c.jsxs("div",{className:"space-y-3",children:[["Building automated email campaigns","Creating social content faster","Targeting clients more effectively","Personal growth + mindset support","All of the above"].map(m=>c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(em,{id:m,checked:a.helpNeeded.includes(m),onCheckedChange:w=>p(m,w)}),c.jsx(Ye,{htmlFor:m,className:"text-base cursor-pointer",children:m})]},m)),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(em,{id:"helpOther",checked:a.helpNeeded.includes("other"),onCheckedChange:m=>p("other",m)}),c.jsx(Ye,{htmlFor:"helpOther",className:"text-base cursor-pointer",children:"Something else:"}),c.jsx(zr,{value:a.helpOther,onChange:m=>h("helpOther",m.target.value),placeholder:"Tell us what...",className:"ml-2 flex-1"})]})]})]})]})},{title:"Building the Membership",content:c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ye,{className:"text-base font-medium",children:"If a monthly membership gave you:"}),c.jsxs("div",{className:"bg-secondary/30 p-4 rounded-lg space-y-3 text-sm",children:[c.jsx("p",{children:'⢠Done-for-you daily AI prompts customized for your business. Think "copy-paste" instructions to help you write emails, plan content, respond to leads, and more'}),c.jsx("p",{children:"⢠One live Q&A call per month where you can get feedback, ask questions, or watch live AI workflows in action"}),c.jsx("p",{children:"⢠One AI-powered build-out each monthâfrom setting up a campaign for first-time buyers to automating your newsletter or marketing strategy"}),c.jsx("p",{children:"⢠Access to a private community where you can connect, share wins, and get ongoing support"})]}),c.jsx(Ye,{className:"text-base font-medium",children:"What price point would feel accessible and aligned?"})]}),c.jsx(ji,{value:a.pricePoint,onValueChange:m=>h("pricePoint",m),className:"space-y-3",children:["$49/month","$99/month","$149/month"].map(m=>c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Fs,{value:m,id:m}),c.jsx(Ye,{htmlFor:m,className:"text-base cursor-pointer",children:m})]},m))})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Ye,{className:"text-base font-medium",children:"How much structure or flexibility would you prefer?"}),c.jsx(ji,{value:a.structure,onValueChange:m=>h("structure",m),className:"space-y-3",children:["I want structure, deadlines, and accountability","I want flexibility and content I can use anytime","A mix of both"].map(m=>c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Fs,{value:m,id:m}),c.jsx(Ye,{htmlFor:m,className:"text-base cursor-pointer",children:m})]},m))})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ye,{htmlFor:"transformation",className:"text-base font-medium",children:"What kind of transformation would you love to experience in the next 90 days?"}),c.jsx(ya,{id:"transformation",value:a.transformation,onChange:m=>h("transformation",m.target.value),placeholder:"Dream big... what would make this feel like a game-changer?",className:"min-h-[100px] text-base"})]})]})},{title:"Community + Connection",content:c.jsx("div",{className:"space-y-6",children:c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ye,{htmlFor:"connection",className:"text-base font-medium",children:"How did we first connectâor what keeps you coming back to these emails?"}),c.jsx(ya,{id:"connection",value:a.connection,onChange:m=>h("connection",m.target.value),placeholder:"Share your story with me...",className:"min-h-[120px] text-base"})]})})},{title:s?"Survey Results":"Thank You!",content:s?c.jsx(H4,{formData:a}):c.jsxs("div",{className:"text-center space-y-6",children:[c.jsx(Mj,{className:"w-16 h-16 mx-auto text-primary fill-current"}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-2xl font-display font-semibold",children:"You're amazing."}),c.jsx("p",{className:"text-lg text-gray-600",children:"Thanks for sharing a bit of your world with me."}),c.jsx("p",{className:"text-base text-gray-500",children:"I'll be diving into these responses and will share updates soon about what we're building together."})]})]})}],g=e===x.length-1,b=e===0,y=e===x.length-1;return c.jsx("div",{className:"min-h-screen bg-gradient-to-br from-background via-secondary/20 to-background",children:c.jsxs("div",{className:"container max-w-4xl mx-auto px-4 py-12",children:[!y&&c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[c.jsx("span",{children:"Progress"}
329),c.jsxs("span",{children:[e+1," of ",x.length-1]})]}),c.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:c.jsx("div",{className:"bg-primary h-2 rounded-full transition-all duration-500",style:{width:`${(e+1)/(x.length-1)*100}%`}})})]}),c.jsxs(Tt,{className:"glass-card border-0 shadow-lg",children:[c.jsx(Ot,{className:"text-center pb-6",children:c.jsx(At,{className:"text-2xl md:text-3xl font-display font-bold",children:x[e].title})}),c.jsxs(Rt,{className:"space-y-8",children:[c.jsx("div",{className:"min-h-[400px]",children:x[e].content}),c.jsxs("div",{className:"flex justify-between pt-6 border-t",children:[c.jsxs(mt,{variant:"outline",onClick:f,disabled:b,className:"flex items-center gap-2",children:[c.jsx(eb,{className:"w-4 h-4"}),"Previous"]}),g?s?null:c.jsx(mt,{onClick:u,disabled:r,className:"bg-primary hover:bg-primary/90",children:r?"Submitting...":"Complete Survey"}):c.jsxs(mt,{onClick:d,className:"flex items-center gap-2",children:[e===0?"Let's Start":"Continue",c.jsx(Hu,{className:"w-4 h-4"})]})]})]})]})]})})},Y4="modulepreload",G4=function(e){return"/"+e},Fy={},pl=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(r.map(l=>{if(l=G4(l),l in Fy)return;Fy[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Y4,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},K4=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>pl(async()=>{const{default:n}=await Promise.resolve().then(()=>To);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};class tv extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class $y extends tv{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Uy extends tv{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class By extends tv{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var tm;(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"})(tm||(tm={}));var Q4=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};class Z4{constructor(t,{headers:r={},customFetch:n,region:s=tm.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=K4(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return Q4(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o,signal:a}=r;let l={},{region:u}=r;u||(u=this.region);const d=new URL(`${this.url}/${t}`);u&&u!=="any"&&(l["x-region"]=u,d.searchParams.set("forceFunctionRegion",u));let f;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",f=o):typeof o=="string"?(l["Content-Type"]="text/plain",f=o):typeof FormData<"u"&&o instanceof FormData?f=o:(l["Content-Type"]="application/json",f=JSON.stringify(o)));const h=yield this.fetch(d.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),s),body:f,signal:a}).catch(b=>{throw b.name==="AbortError"?b:new $y(b)}),p=h.headers.get("x-relay-error");
329if(p&&p==="true")throw new Uy(h);if(!h.ok)throw new By(h);let x=((n=h.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),g;return x==="application/json"?g=yield h.json():x==="application/octet-stream"?g=yield h.blob():x==="text/event-stream"?g=h:x==="multipart/form-data"?g=yield h.formData():g=yield h.text(),{data:g,error:null,response:h}}catch(s){return s instanceof Error&&s.name==="AbortError"?{data:null,error:new $y(s)}:{data:null,error:s,response:s instanceof By||s instanceof Uy?s.context:void 0}}})}}var Mt={},rv={},fd={},vl={},hd={},md={},J4=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},_o=J4();const X4=_o.fetch,ck=_o.fetch.bind(_o),uk=_o.Headers,eD=_o.Request,tD=_o.Response,To=Object.freeze(Object.defineProperty({__proto__:null,Headers:uk,Request:eD,Response:tD,default:ck,fetch:X4},Symbol.toStringTag,{value:"Module"})),rD=rS(To);var pd={};Object.defineProperty(pd,"__esModule",{value:!0});let nD=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
329de=t.code}};pd.default=nD;var dk=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(md,"__esModule",{value:!0});const sD=dk(rD),iD=dk(pd);let oD=class{constructor(t){var r,n;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(r=t.shouldThrowOnError)!==null&&r!==void 0?r:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=sD.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,r){return this.headers=new Headers(this.headers),this.headers.set(t,r),this}then(t,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l,u;let d=null,f=null,h=null,p=i.status,x=i.statusText;if(i.ok){if(this.method!=="HEAD"){const m=await i.text();m===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?f=m:f=JSON.parse(m))}const b=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),y=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");b&&y&&y.length>1&&(h=parseInt(y[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(d={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,h=null,p=406,x="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const b=await i.text();try{d=JSON.parse(b),Array.isArray(d)&&i.status===404&&(f=[],d=null,p=200,x="OK")}catch{i.status===404&&b===""?(p=204,x="No Content"):d={message:b}}if(d&&this.isMaybeSingle&&(!((u=d==null?void 0:d.details)===null||u===void 0)&&u.includes("0 rows"))&&(d=null,p=200,x="OK"),d&&this.shouldThrowOnError)throw new iD.default(d)}return{error:d,data:f,count:h,status:p,statusText:x}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,r)}returns(){return this}overrideTypes(){return this}};md.default=oD;var aD=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hd,"__esModule",{value:!0});const lD=aD(md);let cD=class extends lD.default{select(t){let r=!1;const n=(t??"*").split("").map(s=>/\s/.test(s)&&!r?"":(s==='"'&&(r=!r),s)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,r,{foreignTable:n,referencedTable:s=n}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${r-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.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}
329explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[t?"analyze":null,r?"verbose":null,n?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};hd.default=cD;var uD=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vl,"__esModule",{value:!0});const dD=uD(hd);let fD=class extends dD.default{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=Array.from(new Set(r)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${o}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r,referencedTable:n=r}={}){const s=n?`${n}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}};vl.default=fD;var hD=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fd,"__esModule",{value:!0});const Ko=hD(vl);let mD=class{constructor(t,{headers:r={},schema:n,fetch:s}){this.url=t,this.headers=new Headers(r),this.schema=n,this.fetch=s}select(t,{head:r=!1,count:n}={}){const s=r?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),n&&this.headers.append("Prefer",`count=${n}`),new Ko.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:r,defaultToNull:n=!0}={}){var s;const i="POST";if(r&&this.headers.append("Prefer",`count=${r}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
3290){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Ko.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:s,defaultToNull:i=!0}={}){var o;const a="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),r!==void 0&&this.url.searchParams.set("on_conflict",r),s&&this.headers.append("Prefer",`count=${s}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(l.length>0){const u=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new Ko.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(t,{count:r}={}){var n;const s="PATCH";return r&&this.headers.append("Prefer",`count=${r}`),new Ko.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:t}={}){var r;const n="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Ko.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}};fd.default=mD;var fk=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rv,"__esModule",{value:!0});const pD=fk(fd),vD=fk(vl);let gD=class hk{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(t){const r=new URL(`${this.url}/${t}`);return new pD.default(r,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new hk(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([f,h])=>h!==void 0).map(([f,h])=>[f,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([f,h])=>{l.searchParams.append(f,h)})):(a="POST",u=r);const d=new Headers(this.headers);return i&&d.set("Prefer",`count=${i}`),new vD.default({method:a,url:l,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};rv.default=gD;var Oo=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.PostgrestError=Mt.PostgrestBuilder=Mt.PostgrestTransformBuilder=Mt.PostgrestFilterBuilder=Mt.PostgrestQueryBuilder=Mt.PostgrestClient=void 0;const mk=Oo(rv);Mt.PostgrestClient=mk.default;const pk=Oo(fd);Mt.PostgrestQueryBuilder=pk.default;const vk=Oo(vl);Mt.PostgrestFilterBuilder=vk.default;const gk=Oo(hd);Mt.PostgrestTransformBuilder=gk.default;const yk=Oo(md);Mt.PostgrestBuilder=yk.default;const xk=Oo(pd);Mt.PostgrestError=xk.default;var yD=Mt.default={PostgrestClient:mk.default,PostgrestQueryBuilder:pk.default,PostgrestFilterBuilder:vk.default,PostgrestTransformBuilder:gk.default,PostgrestBuilder:yk.default,PostgrestError:xk.default};const{PostgrestClient:xD,PostgrestQueryBuilder:t5,PostgrestFilterBuilder:r5,PostgrestTransformBuilder:n5,PostgrestBuilder:s5,PostgrestError:i5}=yD;class wD{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."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,s=parseInt(n.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 330import ws from "ws" 331new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 332 333Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const bD="2.15.5",_D=`realtime-js/${bD}`,kD="1.0.0",rm=1e4,SD=1e3,ED=100;var wa;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(wa||(wa={}));var tt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(tt||(tt={}));var wr;(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"})(wr||(wr={}));var nm;(function(e){e.websocket="websocket"}
333)(nm||(nm={}));var Bs;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Bs||(Bs={}));class CD{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const s=r.getUint8(1),i=r.getUint8(2);let o=this.HEADER_LENGTH+2;const a=n.decode(t.slice(o,o+s));o=o+s;const l=n.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class wk{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Te;(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"})(Te||(Te={}));const Wy=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((i,o)=>(i[o]=jD(o,e,t,s),i),{})},jD=(e,t,r,n)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=r[e];return i&&!n.includes(i)?bk(i,o):sm(o)},bk=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return OD(t,r)}switch(e){case Te.bool:return ND(t);case Te.float4:case Te.float8:case Te.int2:case Te.int4:case Te.int8:case Te.numeric:case Te.oid:return PD(t);case Te.json:case Te.jsonb:return TD(t);case Te.timestamp:return AD(t);case Te.abstime:case Te.date:case Te.daterange:case Te.int4range:case Te.int8range:case Te.money:case Te.reltime:case Te.text:case Te.time:case Te.timestamptz:case Te.timetz:case Te.tsrange:case Te.tstzrange:return sm(t);default:return sm(t)}},sm=e=>e,ND=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},PD=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},TD=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},OD=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>bk(t,a))}return e},AD=e=>typeof e=="string"?e.replace(" ","T"):e,_k=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class _f{constructor(t,r,n={},s=rm){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.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,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}
333_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var zy;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(zy||(zy={}));class ba{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ba.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=ba.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ba.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const i=this.cloneDeep(t),o=this.transformState(r),a={},l={};return this.map(i,(u,d)=>{o[u]||(l[u]=d)}),this.map(o,(u,d)=>{const f=i[u];if(f){const h=d.map(b=>b.presence_ref),p=f.map(b=>b.presence_ref),x=d.filter(b=>p.indexOf(b.presence_ref)<0),g=f.filter(b=>h.indexOf(b.presence_ref)<0);x.length>0&&(a[u]=x),g.length>0&&(l[u]=g)}else a[u]=d}),this.syncDiff(i,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const d=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),d.length>0){const f=t[a].map(p=>p.presence_ref),h=d.filter(p=>f.indexOf(p.presence_ref)<0);t[a].unshift(...h)}n(a,d,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const d=l.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Vy;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Vy||(Vy={}));var _a;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(_a||(_a={}));var hn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(hn||(hn={}));class nv{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=tt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new _f(this,wr.join,this.params,this.timeout),this.rejoinTimer=new wk(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=tt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=tt.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=tt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=tt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=tt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(wr.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new ba(this),this.broadcastEndpointURL=_k(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==tt.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(p=>p.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[_a.PRESENCE]&&this.bindings[_a.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(hn.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(hn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:p})=>{var x;if(this.socket.setAuth(),p===void 0){t==null||t(hn.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,b=(x=g==null?void 0:g.length)!==null&&x!==void 0?x:0,y=[];for(let m=0;m<b;m++){const w=g[m],{filter:{event:_,schema:k,table:C,filter:N}}=w,P=p&&p[m];if(P&&P.event===_&&P.schema===k&&P.table===C&&P.filter===N)y.push(Object.assign(Object.assign({},w),{id:P.id}));else{this.unsubscribe(),this.state=tt.errored,t==null||t(hn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,t&&t(hn.SUBSCRIBED);return}}).receive("error",p=>{this.state=tt.errored,t==null||t(hn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(hn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===tt.joined&&t===_a.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,r,n)}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=tt.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(wr.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new _f(this,wr.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=tt.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new _f(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>ED){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:d}=wr;if(n&&[a,l,u,d].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)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 x,g,b;return((x=p.filter)===null||x===void 0?void 0:x.event)==="*"||((b=(g=p.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(p=>p.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var x,g,b,y,m,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const _=p.id,k=(x=p.filter)===null||x===void 0?void 0:x.event;return _&&((g=r.ids)===null||g===void 0?void 0:g.includes(_))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((b=r.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(m=(y=p==null?void 0:p.filter)===null||y===void 0?void 0:y.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((w=r==null?void 0:r.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const x=h.data,{schema:g,table:b,commit_timestamp:y,type:m,errors:w}=x;h=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:y,eventType:m,new:{},old:{},errors:w}),this._getPayloadRecords(x))}p.callback(h,n)})}_isClosed(){return this.state===tt.closed}_isJoined(){return this.state===tt.joined}_isJoining(){return this.state===tt.joining}_isLeaving(){return this.state===tt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&nv.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(wr.close,{},t)}_onError(t){this._on(wr.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=tt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=Wy(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=Wy(t.columns,t.old_record)),r}}const kf=()=>{},Kl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},RD=[1e3,2e3,5e3,1e4],ID=1e4,MD=` 334 addEventListener("message", (e) => { 335 if (e.data.event === "start") { 336 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 337 } 338 });`;class DD{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=rm,this.transport=null,this.heartbeatIntervalMs=Kl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=kf,this.ref=0,this.reconnectTimer=null,this.logger=kf,this.conn=null,this.sendBuffer=[],this.serializer
338=new CD,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>pl(async()=>{const{default:a}=await Promise.resolve().then(()=>To);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${nm.websocket}`,this.httpEndpoint=_k(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=wD.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 339 340To use Realtime in Node.js, you need to provide a WebSocket implementation: 341 342Option 1: Use Node.js 22+ which has native WebSocket support 343Option 2: Install and provide the "ws" package: 344 345 npm install ws 346 347 import ws from "ws" 348 const client = new RealtimeClient(url, { 349 ...options, 350 transport: ws 351 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:kD}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},t?this.conn.close(t,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case wa.connecting:return Bs.Connecting;case wa.open:return Bs.Open;case wa.closing:return Bs.Closing;default:return Bs.Closed}}isConnected(){return this.connectionState()===Bs.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new nv(`realtime:${t}`,r,this);return this.channels.push(i),i}}push(t){const{topic:r,event:n,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(SD,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
351heduleTimeout()},Kl.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:i,ref:o}=r,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
351heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(wr.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([MD],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const s={access_token:r,version:_D};r&&n.updateJoinPayload(s),n.joinedOnce&&n._isJoined()&&n._push(wr.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new wk(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Kl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,i,o,a,l,u,d;if(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:rm,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Kl.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:kf,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=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:f=>RD[f-1]||ID,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(f,h)=>h(JSON.stringify(f)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class sv extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Qe(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class LD extends sv{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class im extends sv{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var FD=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};const kk=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>pl(async()=>{const{default:n}=await Promise.resolve().then(()=>To);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},$D=()=>FD(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield pl(()=>Promise.resolve().then(()=>To),void 0)).Response:Response}),om=e=>{if(Array.isArray(e))return e.map(r=>om(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=om(n)}),t},UD=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
351return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var fi=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};const Sf=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),BD=(e,t,r)=>fi(void 0,void 0,void 0,function*(){const n=yield $D();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(s=>{const i=e.status||500,o=(s==null?void 0:s.statusCode)||i+"";t(new LD(Sf(s),i,o))}).catch(s=>{t(new im(Sf(s),s))}):t(new im(Sf(e),e))}),WD=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?s:(UD(n)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),Object.assign(Object.assign({},s),r))};function gl(e,t,r,n,s,i){return fi(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(r,WD(t,n,s,i)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>BD(l,a,n))})})}function bu(e,t,r,n){return fi(this,void 0,void 0,function*(){return gl(e,"GET",t,r,n)})}function $r(e,t,r,n,s){return fi(this,void 0,void 0,function*(){return gl(e,"POST",t,n,s,r)})}function am(e,t,r,n,s){return fi(this,void 0,void 0,function*(){return gl(e,"PUT",t,n,s,r)})}function zD(e,t,r,n){return fi(this,void 0,void 0,function*(){return gl(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function Sk(e,t,r,n,s){return fi(this,void 0,void 0,function*(){return gl(e,"DELETE",t,n,s,r)})}var VD=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};class HD{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}then(t,r){return this.execute().then(t,r)}execute(){return VD(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Qe(t))return{data:null,error:t};throw t}})}}var qD=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};class YD{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}asStream(){return new HD(this.downloadFn,this.shouldThrowOnError)}then(t,r){return this.execute().then(t,r)}execute(){return qD(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Qe(t))return{data:null,error:t};throw t}})}}var jt=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};const GD={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Hy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class KD{constructor(t,r={},n,s){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=kk(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,s){return jt(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Hy),s);let a=Object.assign(Object.assign({},this.headers),t==="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",this.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(r),d=this._getFinalPath(u),f=yield(t=="PUT"?am:$r)(this.fetch,`${this.url}/object/${d}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Qe(i))return{data:null,error:i};throw i}})}upload(t,r,n){return jt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,s){return jt(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",r);try{let l;const u=Object.assign({upsert:Hy.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const f=yield am(this.fetch,a.toString(),l,{headers:d});return{data:{path:i,fullPath:f.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Qe(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,r){return jt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const s=Object.assign({},this.headers);r!=null&&r.upsert&&(s["x-upsert"]="true");const i=yield $r(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new sv("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qe(n))return{data:null,error:n};throw n}})}update(t,r,n){return jt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return jt(this,void 0,void 0,function*(){try{return{data:yield $r(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Qe(s))return{data:null,error:s};throw s}})}copy(t,r,n){return jt(this,void 0,void 0,function*(){try{return{data:{path:(yield $r(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Qe(s))return{data:null,error:s};throw s}})}createSignedUrl(t,r,n){return jt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield $r(this.fetch,`${this.url}/object/sign/${s}
351`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Qe(s))return{data:null,error:s};throw s}})}createSignedUrls(t,r,n){return jt(this,void 0,void 0,function*(){try{const s=yield $r(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Qe(s))return{data:null,error:s};throw s}})}download(t,r){const s=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(t),l=()=>bu(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0});return new YD(l,this.shouldThrowOnError)}info(t){return jt(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield bu(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:om(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qe(n))return{data:null,error:n};throw n}})}exists(t){return jt(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield zD(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qe(n)&&n instanceof im){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),s=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&s.push(i);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${u}`)}}}remove(t){return jt(this,void 0,void 0,function*(){try{return{data:yield Sk(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Qe(r))return{data:null,error:r};throw r}})}list(t,r,n){return jt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},GD),r),{prefix:t||""});return{data:yield $r(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Qe(s))return{data:null,error:s};throw s}})}listV2(t,r){return jt(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield $r(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qe(n))return{data:null,error:n};throw n}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const QD="2.12.2",ZD={"X-Client-Info":`storage-js/${QD}`};var bi=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};class JD{constructor(t,r={},n,s){this.shouldThrowOnError=!1;const i=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},ZD),r),this.fetch=kk(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return bi(this,void 0,void 0,function*(){try{return{data:yield bu(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Qe(t))return{data:null,error:t};throw t}})}getBucket(t){return bi(this,void 0,void 0,function*(){try{return{data:yield bu(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Qe(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return bi(this,void 0,void 0,function*(){try{return{data:yield $r(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qe(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return bi(this,void 0,void 0,function*(){try{return{data:yield am(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qe(n))return{data:null,error:n};throw n}})}emptyBucket(t){return bi(this,void 0,void 0,function*(){try{return{data:yield $r(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Qe(r))return{data:null,error:r};throw r}})}deleteBucket(t){return bi(this,void 0,void 0,function*(){try{return{data:yield Sk(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Qe(r))return{data:null,error:r};throw r}})}}class XD extends JD{constructor(t,r={},n,s){super(t,r,n,s)}from(t){return new KD(this.url,this.headers,t,this.fetch)}}const eL="2.58.0";let sa="";typeof Deno<"u"?sa="deno":typeof document<"u"?sa="web":typeof navigator<"u"&&navigator.product==="ReactNative"?sa="react-native":sa="node";const tL={"X-Client-Info":`supabase-js-${sa}/${eL}`},rL={headers:tL}
351,nL={schema:"public"},sL={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},iL={};var oL=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};const aL=e=>{let t;return e?t=e:typeof fetch>"u"?t=ck:t=fetch,(...r)=>t(...r)},lL=()=>typeof Headers>"u"?uk:Headers,cL=(e,t,r)=>{const n=aL(r),s=lL();return(i,o)=>oL(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),n(i,Object.assign(Object.assign({},o),{headers:u}))})};var uL=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};function dL(e){return e.endsWith("/")?e:e+"/"}function fL(e,t){var r,n;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:u,realtime:d,global:f}=t,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(r=f==null?void 0:f.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>uL(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function hL(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(dL(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const Ek="2.72.0",Ni=30*1e3,lm=3,Ef=lm*Ni,mL="http://localhost:9999",pL="supabase.auth.token",vL={"X-Client-Info":`gotrue-js/${Ek}`},cm="X-Supabase-Api-Version",Ck={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},gL=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,yL=10*60*1e3;class iv extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function oe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class xL extends iv{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function wL(e){return oe(e)&&e.name==="AuthApiError"}class jk extends iv{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Ts extends iv{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class qn extends Ts{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function bL(e){return oe(e)&&e.name==="AuthSessionMissingError"}class Qo extends Ts{constructor(){super("Auth session or user missing","AuthInvalidToken
351ResponseError",500,void 0)}}class Ql extends Ts{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Zl extends Ts{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function _L(e){return oe(e)&&e.name==="AuthImplicitGrantRedirectError"}class qy extends Ts{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class um extends Ts{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Cf(e){return oe(e)&&e.name==="AuthRetryableFetchError"}class Yy extends Ts{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class dm extends Ts{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Gy=` 352\r=`.split(""),kL=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Gy.length;t+=1)e[Gy[t].charCodeAt(0)]=-2;for(let t=0;t<_u.length;t+=1)e[_u[t].charCodeAt(0)]=t;return e})();function Ky(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(_u[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(_u[n]),t.queuedBits-=6}}function Nk(e,t,r){const n=kL[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Qy(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{CL(o,n,r)};for(let o=0;o<e.length;o+=1)Nk(e.charCodeAt(o),s,i);return t.join("")}function SL(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 EL(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}SL(n,t)}}function CL(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function jL(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Nk(e.charCodeAt(s),r,n);return new Uint8Array(t)}function NL(e){const t=[];return EL(e,r=>t.push(r)),new Uint8Array(t)}function PL(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>Ky(s,r,n)),Ky(null,r,n),t.join("")}function TL(e){return Math.round(Date.now()/1e3)+e}function OL(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const nr=()=>typeof window<"u"&&typeof document<"u",Rs={tested:!1,writable:!1},Pk=()=>{if(!nr())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Rs.tested)return Rs.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Rs.tested=!0,Rs.writable=!0}catch{Rs.tested=!0,Rs.writable=!1}return Rs.writable};function AL(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const Tk=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>pl(async()=>{const{default:n}=await Promise.resolve().then(()=>To);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},RL=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Pi=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Is=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Wn=async(e,t)=>{await e.removeItem(t)};class vd{constructor(){this.promise=new vd.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}vd.promiseConstructor=Promise;function jf(e){const t=e.split(".");if(t.length!==3)throw new dm("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!gL.test(t[n]))throw new dm("JWT not in base64url format");return{header:JSON.parse(Qy(t[0])),payload:JSON.parse(Qy(t[1])),signature:jL(t[2]),raw:{header:t[0],payload:t[1]}}}async function IL(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function ML(e,t){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function DL(e){return("0"+e.toString(16)).substr(-2)}function LL(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,DL).join("")}async function FL(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function $L(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code
352challenge method will default to use plain instead of sha256."),e;const r=await FL(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _i(e,t,r=!1){const n=LL();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Pi(e,`${t}-code-verifier`,s);const i=await $L(n);return[i,n===i?"plain":"s256"]}const UL=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function BL(e){const t=e.headers.get(cm);if(!t||!t.match(UL))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function WL(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 zL(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 VL=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ki(e){if(!VL.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Nf(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Zy(e){return JSON.parse(JSON.stringify(e))}var HL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};const $s=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),qL=[502,503,504];async function Jy(e){var t;if(!RL(e))throw new um($s(e),0);if(qL.includes(e.status))throw new um($s(e),e.status);let r;try{r=await e.json()}catch(i){throw new jk($s(i),i)}let n;const s=BL(e);if(s&&s.getTime()>=Ck["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Yy($s(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new qn}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Yy($s(r),e.status,r.weak_password.reasons);throw new xL($s(r),e.status||500,n)}const YL=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function he(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[cm]||(i[cm]=Ck["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await GL(e,t,r+a,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function GL(e,t,r,n,s,i){const o=YL(t,n,s,i);let a;try{a=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new um($s(l),0)}if(a.ok||await Jy(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await Jy(l)}}function Lr(e){var t;let r=null;JL(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=TL(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function Xy(e){const t=Lr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Jn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function KL(e){return{data:e,error:null}}function QL(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=HL(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function ZL(e){return e}function JL(e){return e.access_token&&e.refresh_token&&e.expires_in}const Pf=["global","local","others"];var XL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};class e3{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=Tk(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,r=Pf[0]){if(Pf.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Pf.join(", ")}`);try{return await he(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await he(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Jn})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=XL(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await he(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:QL,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(oe(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await he(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Jn})}catch(r){if(oe(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await he(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:ZL});if(d.error)throw d.error;const f=await d.json(),h=(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>
3520&&(p.forEach(x=>{const g=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(oe(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){ki(t);try{return await he(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Jn})}catch(r){if(oe(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){ki(t);try{return await he(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Jn})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){ki(t);try{return await he(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Jn})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){ki(t.userId);try{const{data:r,error:n}=await he(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(oe(r))return{data:null,error:r};throw r}}async _deleteFactor(t){ki(t.userId),ki(t.id);try{return{data:await he(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(oe(r))return{data:null,error:r};throw r}}}function e0(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}function t3(){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)}}const Si={debug:!!(globalThis&&Pk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Ok extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class r3 extends Ok{}async function n3(e,t,r){Si.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),Si.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Si.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{Si.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Si.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new r3(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Si.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function Ak(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function s3(e){return parseInt(e,16)}function i3(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function o3(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:d,uri:f,version:h}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);
352if(!((t=e.statement)===null||t===void 0)&&t.includes(` 353`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=Ak(e.address),x=d?`${d}://${n}`:n,g=e.statement?`${e.statement} 354`:"",b=`${x} wants you to sign in with your Ethereum account: 355${p} 356 357${g}`;let y=`URI: ${f} 358Version: ${h} 359Chain ID: ${r}${o?` 360Nonce: ${o}`:""} 361Issued At: ${i.toISOString()}`;if(s&&(y+=` 362Expiration Time: ${s.toISOString()}`),a&&(y+=` 363Not Before: ${a.toISOString()}`),l&&(y+=` 364Request ID: ${l}`),u){let m=` 365Resources:`;for(const w of u){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);m+=` 366- ${w}`}y+=m}return`${b} 367${y}`}t3();const a3={url:mL,storageKey:pL,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:vL,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function t0(e,t,r){return await r()}const Ei={};class Za{constructor(t){var r,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=Za.nextInstanceID,Za.nextInstanceID+=1,this.instanceID>0&&nr()&&console.warn("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.");const s=Object.assign(Object.assign({},a3),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new e3({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Tk(s.fetch),this.lock=s.lock||t0,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:nr()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=n3:this.lock=t0,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)},this.persistSession?(s.storage?this.storage=s.storage:Pk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=e0(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=e0(this.memoryStorage)),nr()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,r;return(r=(t=Ei[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Ei[this.storageKey]=Object.assign(Object.assign({},Ei[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Ei[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ei[this.storageKey]=Object.assign(Object.assign({},Ei[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ek}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const r=AL(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),nr()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),_L(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 await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return oe(r)?{error:r}:{error:new jk("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const i=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Lr}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(oe(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var r,n,s;try{let i;if("email"in t){const{email:d,password:f,options:h}=t;let p=null,x=null;this.flowType==="pkce"&&([p,x]=await _i(this.storage,this.storageKey)),i=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:x},xform:Lr})}else if("phone"in t){const{phone:d,password:f,options:h}=t;i=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Lr})}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{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(oe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:a}=t;r=await he(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:Xy}
367)}else if("phone"in t){const{phone:i,password:o,options:a}=t;r=await he(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:Xy})}else throw new Ql("You must provide either an email or phone number and a password");const{data:n,error:s}=r;return s?{data:{user:null,session:null},error:s}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new Qo}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,i,o,a,l,u,d,f,h;let p,x;if("message"in t)p=t.message,x=t.signature;else{const{chain:g,wallet:b,statement:y,options:m}=t;let w;if(nr())if(typeof b=="object")w=b;else{const $=window;if("ethereum"in $&&typeof $.ethereum=="object"&&"request"in $.ethereum&&typeof $.ethereum.request=="function")w=$.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 b!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=b}const _=new URL((r=m==null?void 0:m.url)!==null&&r!==void 0?r:window.location.href),k=await w.request({method:"eth_requestAccounts"}).then($=>$).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 C=Ak(k[0]);let N=(n=m==null?void 0:m.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!N){const $=await w.request({method:"eth_chainId"});N=s3($)}const P={domain:_.host,address:C,statement:y,uri:_.href,version:"1",chainId:N,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=m==null?void 0:m.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=o3(P),x=await w.request({method:"personal_sign",params:[i3(p),C]})}try{const{data:g,error:b}=await he(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:x},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Lr});if(b)throw b;return!g||!g.session||!g.user?{data:{user:null,session:null},error:new Qo}:(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),{data:Object.assign({},g),error:b})}catch(g){if(oe(g))return{data:{user:null,session:null},error:g};throw g}}async signInWithSolana(t){var r,n,s,i,o,a,l,u,d,f,h,p;let x,g;if("message"in t)x=t.message,g=t.signature;else{const{chain:b,wallet:y,statement:m,options:w}=t;let _;if(nr())if(typeof y=="object")_=y;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))_=C.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=y}const k=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const C=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),m?{statement:m}:null));let N;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")N=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)N=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in N&&"signature"in N&&(typeof N.signedMessage=="string"||N.signedMessage instanceof Uint8Array)&&N.signature instanceof Uint8Array)x=typeof N.signedMessage=="string"?N.signedMessage:new TextDecoder().decode(N.signedMessage),g=N.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${k.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(n=w==null?void 0:w.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((f=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...w.sign
367InWithSolana.resources.map(N=>`- ${N}`)]:[]].join(` 368`);const C=await _.signMessage(new TextEncoder().encode(x),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=C}}try{const{data:b,error:y}=await he(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:PL(g)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Lr});if(y)throw y;return!b||!b.session||!b.user?{data:{user:null,session:null},error:new Qo}:(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),{data:Object.assign({},b),error:y})}catch(b){if(oe(b))return{data:{user:null,session:null},error:b};throw b}}async _exchangeCodeForSession(t){const r=await Is(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{const{data:i,error:o}=await he(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Lr});if(await Wn(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Qo}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(oe(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,a=await he(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Lr}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Qo}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await _i(this.storage,this.storageKey));const{error:f}=await he(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:d}=await he(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{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new Ql("You must provide either an email or phone number.")}catch(a){if(oe(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var r,n;try{let s,i;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await he(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Lr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(oe(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var r,n,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await _i(this.storage,this.storageKey)),await he(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:KL})}catch(i){if(oe(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new qn;const{error:s}=await he(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(oe(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t,{error:o}=await he(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:n,type:s,options:i}=t,{data:o,error:a}=await he(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{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(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Is(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
368id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Ef:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await Is(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Nf()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,d)=>(!o&&u==="user"&&(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."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,d))})}return{data:{session:t},error:null}}const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await he(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Jn}):await this._useSession(async r=>{var n,s,i;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new qn}:await he(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:Jn})})}catch(r){if(oe(r))return bL(r)&&(await this._removeSession(),await Wn(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new qn;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await _i(this.storage,this.storageKey));const{data:u,error:d}=await he(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Jn});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new qn;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=jf(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(r){if(oe(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:a}=r;if(a)throw a;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new qn;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t,r){try{if(!nr())throw new Zl("No browser detected.");
368if(t.error||t.error_description||t.error_code)throw new Zl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new qy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Zl("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new qy("No code detected.");const{data:m,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!i||!a||!o||!u)throw new Zl("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let h=d+f;l&&(h=parseInt(l));const p=h-d;p*1e3<=Ni&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${f}s`);const x=h-f;d-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,h,d):d-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,h,d);const{data:g,error:b}=await this._getUser(i);if(b)throw b;const y={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:t.type},error:null}}catch(n){if(oe(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Is(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return{error:i};const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(wL(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Wn(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=OL(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await _i(this.storage,this.storageKey,!0));try{return await he(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(oe(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(oe(r))return{data:null,error:r};throw r}}async linkIdentity(t){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,a,l,u,d;const{data:f,error:h}=i;if(h)throw h;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 he(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return nr()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(oe(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
368return await he(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(oe(r))return{data:null,error:r};throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await ML(async s=>(s>0&&await IL(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await he(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Lr})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Cf(i)&&Date.now()+o-n<Ni})}catch(n){if(this._debug(r,"error",n),oe(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),nr()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await Is(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Is(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Pi(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Nf()}else if(s&&!s.user&&!s.user){const o=await Is(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Wn(this.storage,this.storageKey+"-user"),await Pi(this.storage,this.storageKey,s)):s.user=Nf()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Ef;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${Ef}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Cf(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new qn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new vd;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new qn;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),oe(i)){const o={session:null,error:i};return Cf(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Pi(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=Zy(s);await Pi(this.storage,this.storageKey,i)}else{const s=Zy(r);await Pi(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await Wn(this.storage,this.storageKey),await Wn(this.storage,this.storageKey+"-code-verifier"),await Wn(this.storage,this.storageKey+"-user"),this.userStorage&&await Wn(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&nr()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
368catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ni);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/Ni);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ni}ms, refresh threshold is ${lm} ticks`),s<=lm&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Ok)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!nr()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await _i(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?{data:null,error:i}:await he(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(oe(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await he(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?{data:null,error:u}:(t.factorType==="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}`),{data:l,error:null})})}catch(r){if(oe(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return{data:null,error:i};const{data:o,error:a}=await he(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(r){if(oe(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?{data:null,error:i}:await he(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(oe(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){const{data:{user:t},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(t==null?void 0:t.factors)||[],s=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=jf(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((n=(r=s.user.factors)===null||r===void 0?void 0:r.filter(f=>f.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+yL>s)return n;const{data:i,error:o}=await he(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:p,error:x}
368=await this.getSession();if(x||!p.session)return{data:null,error:x};n=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=jf(n);r!=null&&r.allowExpired||WL(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:p}=await this.getUser(n);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const d=zL(s.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,NL(`${a}.${l}`)))throw new dm("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}}Za.nextInstanceID=0;const l3=Za;class c3 extends l3{constructor(t){super(t)}}var u3=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};class d3{constructor(t,r,n){var s,i,o;this.supabaseUrl=t,this.supabaseKey=r;const a=hL(t);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:nL,realtime:iL,auth:Object.assign(Object.assign({},sL),{storageKey:l}),global:rL},d=fL(n??{},u);this.storageKey=(s=d.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=d.global.headers)!==null&&i!==void 0?i:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=cL(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new xD(new URL("rest/v1",a).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new XD(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new Z4(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,r;return u3(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:i,storageKey:o,flowType:a,lock:l,debug:u},d,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new c3({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),d),storageKey:o,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:i,flowType:a,lock:l,debug:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new DD(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const f3=(e,t,r)=>new d3(e,t,r);function h3(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}h3()&&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 N
368ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const m3="https://oqfqhuvbsauuwpbuscpj.supabase.co",p3="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9xZnFodXZic2F1dXdwYnVzY3BqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTkzOTA5NTcsImV4cCI6MjA3NDk2Njk1N30.-97PN0QO96W6R9hU24s5IMGgRwGMPvN5j8mBdu3NxDQ",v3=f3(m3,p3,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),g3="/assets/limitlist-cover-Q4vuBgbx.png";console.log("LimitList component loaded");const y3=()=>{const{toast:e}=ap(),t=async r=>{r.preventDefault(),console.log("ð¥ FORM SUBMITTED!");const n=r.currentTarget,s=new FormData(n),i=s.get("email"),o=s.get("firstName");if(console.log("Form data:",{email:i,firstName:o}),!i){console.log("Email validation failed"),e({title:"Email Required",description:"Please enter your email address.",variant:"destructive"});return}try{console.log("Starting database insert...");const{data:a,error:l}=await v3.from("limitlist_contacts").insert([{email:i,first_name:o||null}]).select();if(console.log("Database response:",{data:a,error:l}),l){console.error("Database error:",l),e({title:"Error",description:`Failed to save: ${l.message}`,variant:"destructive"});return}console.log("Success! Data inserted:",a),e({title:"Success!",description:"Thank you for signing up! We'll notify you when the book launches."}),n.reset()}catch(a){console.error("Unexpected error:",a),e({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}};return c.jsx("div",{className:"min-h-screen bg-[#2E2E2E] flex items-center justify-center px-4 py-12",children:c.jsx("div",{className:"max-w-4xl w-full",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:g3,alt:"LimitList Book Cover",className:"w-full max-w-md rounded-lg shadow-2xl"})}),c.jsxs("div",{className:"text-white space-y-8",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-5xl md:text-6xl font-bold tracking-wide",children:"LIMITLIST"}),c.jsx("p",{className:"text-xl md:text-2xl leading-relaxed font-light tracking-wide",children:"What would your life look like without the limits you've placed on yourself?"})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-[#E6D8C3] text-lg",children:"Join the movement. Be the first to know when the book launches."}),c.jsxs("form",{onSubmit:t,className:"space-y-4",children:[c.jsx("input",{type:"email",name:"email",className:"w-full bg-white/10 border border-white/20 text-white placeholder:text-white/60 focus:border-[#D35400] focus:ring-[#D35400] rounded-md px-4 py-3",required:!0,placeholder:"Your Email"}),c.jsx("input",{type:"text",name:"firstName",className:"w-full bg-white/10 border border-white/20 text-white placeholder:text-white/60 focus:border-[#D35400] focus:ring-[#D35400] rounded-md px-4 py-3",placeholder:"First Name"}),c.jsx("button",{type:"submit",className:"w-full bg-[#D35400] hover:bg-[#D35400]/90 text-white font-semibold py-3 text-lg rounded-md transition-colors",children:"Join the Movement"})]})]}),c.jsxs("div",{className:"text-sm text-[#E6D8C3]/80 space-y-2",children:[c.jsx("p",{children:"By Megan Anderson"}),c.jsx("p",{className:"italic",children:'"The truth is the starting point."'})]})]})]})})})};var ov="Collapsible",[x3,Rk]=On(ov),[w3,av]=x3(ov),Ik=v.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=e,[l=!1,u]=Ns({prop:n,defaultProp:s,onChange:o});return c.jsx(w3,{scope:r,disabled:i,contentId:Yu(),open:l,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),children:c.jsx(ke.div,{"data-state":cv(l),"data-disabled":i?"":void 0,...a,ref:t})})});Ik.displayName=ov;var Mk="CollapsibleTrigger",Dk=v.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,s=av(Mk,r);return c.jsx(ke.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":cv(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:t,onClick:pe(e.onClick,s.onOpenToggle)})});Dk.displayName=Mk;var lv="CollapsibleContent",Lk=v.forwardRef((e,t)=>
368{const{forceMount:r,...n}=e,s=av(lv,e.__scopeCollapsible);return c.jsx(js,{present:r||s.open,children:({present:i})=>c.jsx(b3,{...n,ref:t,present:i})})});Lk.displayName=lv;var b3=v.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=e,o=av(lv,r),[a,l]=v.useState(n),u=v.useRef(null),d=Xe(t,u),f=v.useRef(0),h=f.current,p=v.useRef(0),x=p.current,g=o.open||a,b=v.useRef(g),y=v.useRef();return v.useEffect(()=>{const m=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(m)},[]),Cr(()=>{const m=u.current;if(m){y.current=y.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const w=m.getBoundingClientRect();f.current=w.height,p.current=w.width,b.current||(m.style.transitionDuration=y.current.transitionDuration,m.style.animationName=y.current.animationName),l(n)}},[o.open,n]),c.jsx(ke.div,{"data-state":cv(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:g&&s})});function cv(e){return e?"open":"closed"}var _3=Ik,k3=Dk,S3=Lk,An="Accordion",E3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[uv,C3,j3]=lp(An),[gd,o5]=On(An,[j3,Rk]),dv=Rk(),Fk=O.forwardRef((e,t)=>{const{type:r,...n}=e,s=n,i=n;return c.jsx(uv.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?c.jsx(O3,{...i,ref:t}):c.jsx(T3,{...s,ref:t})})});Fk.displayName=An;var[$k,N3]=gd(An),[Uk,P3]=gd(An,{collapsible:!1}),T3=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:i=!1,...o}=e,[a,l]=Ns({prop:r,defaultProp:n,onChange:s});return c.jsx($k,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:O.useCallback(()=>i&&l(""),[i,l]),children:c.jsx(Uk,{scope:e.__scopeAccordion,collapsible:i,children:c.jsx(Bk,{...o,ref:t})})})}),O3=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=e,[o=[],a]=Ns({prop:r,defaultProp:n,onChange:s}),l=O.useCallback(d=>a((f=[])=>[...f,d]),[a]),u=O.useCallback(d=>a((f=[])=>f.filter(h=>h!==d)),[a]);return c.jsx($k,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:c.jsx(Uk,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(Bk,{...i,ref:t})})})}),[A3,yd]=gd(An),Bk=O.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:s,orientation:i="vertical",...o}=e,a=O.useRef(null),l=Xe(a,t),u=C3(r),f=Zp(s)==="ltr",h=pe(e.onKeyDown,p=>{var P;if(!E3.includes(p.key))return;const x=p.target,g=u().filter($=>{var U;return!((U=$.ref.current)!=null&&U.disabled)}),b=g.findIndex($=>$.ref.current===x),y=g.length;if(b===-1)return;p.preventDefault();let m=b;const w=0,_=y-1,k=()=>{m=b+1,m>_&&(m=w)},C=()=>{m=b-1,m<w&&(m=_)};switch(p.key){case"Home":m=w;break;case"End":m=_;break;case"ArrowRight":i==="horizontal"&&(f?k():C());break;case"ArrowDown":i==="vertical"&&k();break;case"ArrowLeft":i==="horizontal"&&(f?C():k());break;case"ArrowUp":i==="vertical"&&C();break}const N=m%y;(P=g[N].ref.current)==null||P.focus()});return c.jsx(A3,{scope:r,disabled:n,direction:s,orientation:i,children:c.jsx(uv.Slot,{scope:r,children:c.jsx(ke.div,{...o,"data-orientation":i,ref:l,onKeyDown:n?void 0:h})})})}),ku="AccordionItem",[R3,fv]=gd(ku),Wk=O.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...s}=e,i=yd(ku,r),o=N3(ku,r),a=dv(r),l=Yu(),u=n&&o.value.includes(n)||!1,d=i.disabled||e.disabled;return c.jsx(R3,{scope:r,open:u,disabled:d,triggerId:l,children:c.jsx(_3,{"data-orientation":i.orientation,"data-state":Gk(u),...a,...s,ref:t,disabled:d,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});Wk.displayName=ku;var zk="AccordionHeader",Vk=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=yd(An,r),i=fv(zk,r);return c.jsx(ke.h3,{"data-orientation":s.orientation,"data-state":Gk(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Vk.displayName=zk;var fm="AccordionTrigger",Hk=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,s=yd(An,r),i=fv(fm,r),o=P3(fm,r),a=dv(r);return c.jsx(uv.ItemSlot,{scope:r,children:c.jsx(k3,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...a,...n,ref:t})})});Hk.displayName=fm;var qk="AccordionContent",Yk=O.forwardRef((e,t)=>
368{const{__scopeAccordion:r,...n}=e,s=yd(An,r),i=fv(qk,r),o=dv(r);return c.jsx(S3,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Yk.displayName=qk;function Gk(e){return e?"open":"closed"}var I3=Fk,M3=Wk,D3=Vk,Kk=Hk,Qk=Yk;const L3=I3,xc=v.forwardRef(({className:e,...t},r)=>c.jsx(M3,{ref:r,className:le("border-b",e),...t}));xc.displayName="AccordionItem";const wc=v.forwardRef(({className:e,children:t,...r},n)=>c.jsx(D3,{className:"flex",children:c.jsxs(Kk,{ref:n,className:le("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,c.jsx(Cj,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));wc.displayName=Kk.displayName;const bc=v.forwardRef(({className:e,children:t,...r},n)=>c.jsx(Qk,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:c.jsx("div",{className:le("pb-4 pt-0",e),children:t})}));bc.displayName=Qk.displayName;const F3=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(nd,{}),c.jsx("section",{className:"pt-32 pb-16 px-4 bg-gradient-to-b from-primary/5 to-background",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 text-foreground",children:"Getting Started with AI Automations"}),c.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-8 max-w-3xl mx-auto",children:'A 90-minute beginner workshop for Loan Officers & Realtors to map workflows, identify high- vs-low-value tasks, and design your first automationâwithout being "technical."'}),c.jsx(mt,{size:"lg",className:"text-lg px-8 py-6 h-auto",onClick:()=>window.open("https://buy.stripe.com/3cIeV5bnaeUobw3a3Z3F601","_blank"),children:"Reserve Your Seat"})]})}),c.jsx("section",{className:"py-16 px-4",children:c.jsx("div",{className:"max-w-6xl mx-auto",children:c.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[c.jsxs(Tt,{children:[c.jsxs(Ot,{children:[c.jsx(qu,{className:"w-8 h-8 text-primary mb-2"}),c.jsx(At,{children:"When"})]}),c.jsxs(Rt,{children:[c.jsx("p",{className:"text-muted-foreground",children:"Thursday, November 6, 2025"}),c.jsx("p",{className:"text-muted-foreground",children:"2:00 PM MT ⢠90 minutes"}),c.jsx("p",{className:"text-sm text-primary mt-2",children:"Virtual ⢠Recording included"})]})]}),c.jsxs(Tt,{children:[c.jsxs(Ot,{children:[c.jsx(qc,{className:"w-8 h-8 text-primary mb-2"}),c.jsx(At,{children:"Hosted By"})]}),c.jsxs(Rt,{children:[c.jsx("p",{className:"font-medium",children:"Megan Anderson"}),c.jsx("p",{className:"text-muted-foreground",children:"Founder of the AI Advantage"})]})]}),c.jsxs(Tt,{children:[c.jsxs(Ot,{children:[c.jsx(rb,{className:"w-8 h-8 text-primary mb-2"}),c.jsx(At,{children:"Who It's For"})]}),c.jsx(Rt,{children:c.jsx("p",{className:"text-muted-foreground",children:"Loan Officers and Realtors new to AI automations, who want a practical framework to save time on repetitive tasks."})})]})]})})}),c.jsx("section",{className:"py-16 px-4 bg-muted/30",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"You Will Learn"}),c.jsx("div",{className:"space-y-4",children:["How to map your business cycle and identify high- vs-low-value steps","How to use ChatGPT as a thought partner (ideation, troubleshooting, prompts)","How to structure automations (triggers, actions, outcomes)","Overview of automation building software - no tech skills required"].map((e,t)=>c.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-lg bg-background border",children:[c.jsx(Pj,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),c.jsx("p",{className:"text-lg",children:e})]},t))})]})}),c.jsx("section",{className:"py-16 px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"You'll Receive"}),c.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[c.jsxs(Tt,{className:"text-center",children:[c.jsxs(Ot,{children:[c.jsx(Gj,{className:"w-12 h-12 text-primary mx-auto mb-2"}),c.jsx(At,{children:"Recording"})]}
368),c.jsx(Rt,{children:c.jsx(xa,{children:"Full workshop recording for future reference"})})]}),c.jsxs(Tt,{className:"text-center",children:[c.jsxs(Ot,{children:[c.jsx(Ij,{className:"w-12 h-12 text-primary mx-auto mb-2"}),c.jsx(At,{children:"Worksheet"})]}),c.jsx(Rt,{children:c.jsx(xa,{children:"Fillable worksheet to map your workflows"})})]}),c.jsxs(Tt,{className:"text-center",children:[c.jsxs(Ot,{children:[c.jsx(Fj,{className:"w-12 h-12 text-primary mx-auto mb-2"}),c.jsx(At,{children:"Prompt Pack"})]}),c.jsx(Rt,{children:c.jsx(xa,{children:"Starter prompt pack to get you going"})})]})]})]})}),c.jsx("section",{className:"py-16 px-4 bg-muted/30",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-4",children:"Workshop Roadmap"}),c.jsx("p",{className:"text-center text-muted-foreground mb-16",children:"Your 90-minute journey to AI automation mastery"}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"hidden md:block absolute left-1/2 top-0 bottom-0 w-0.5 bg-primary/20 -translate-x-1/2"}),c.jsx("div",{className:"space-y-12",children:[{icon:qj,title:"Framing & Value-Based Design",description:"Learn to identify high-impact tasks worth automating",color:"text-blue-500"},{icon:zj,title:"Guided Worksheet Exercise",description:"Map your unique business workflows step-by-step",color:"text-purple-500"},{icon:Wj,title:"ChatGPT Live Demo",description:"See how AI becomes your automation thought partner",color:"text-green-500"},{icon:sb,title:"Automation Software Overview",description:"Gentle intro to building blocks - no coding needed",color:"text-orange-500"},{icon:Tj,title:"Q&A Session",description:"Get your specific questions answered",color:"text-pink-500"}].map((e,t)=>c.jsxs("div",{className:"relative flex items-center gap-8",children:[c.jsx("div",{className:`flex-1 ${t%2===0?"md:text-right":"md:order-3"}`,children:c.jsxs(Tt,{className:"inline-block w-full md:w-auto hover:shadow-lg transition-shadow",children:[c.jsx(Ot,{children:c.jsxs("div",{className:`flex items-center gap-3 ${t%2===0?"md:flex-row-reverse md:justify-end":""}`,children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(e.icon,{className:`w-6 h-6 ${e.color}`})}),c.jsx(At,{className:"text-lg",children:e.title})]})}),c.jsx(Rt,{children:c.jsx("p",{className:"text-muted-foreground",children:e.description})})]})}),c.jsx("div",{className:"hidden md:block relative z-10 flex-shrink-0",children:c.jsx("div",{className:"w-4 h-4 rounded-full bg-primary border-4 border-background"})}),c.jsx("div",{className:`flex-1 ${t%2===0?"md:order-3":""} hidden md:block`})]},t))})]})]})}),c.jsx("section",{className:"py-16 px-4",children:c.jsx("div",{className:"max-w-4xl mx-auto text-center",children:c.jsxs("div",{className:"bg-primary/5 border-2 border-primary/20 rounded-lg p-8",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Your Outcome"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Leave with a clear, customized automation framework for one time-draining task (e.g., client follow-up, newsletter, or admin)."})]})})}),c.jsx("section",{className:"py-16 px-4 bg-primary/5",children:c.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready to Get Started?"}),c.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Join us on November 6th and transform how you work with AI automation."}),c.jsx(mt,{size:"lg",className:"text-lg px-8 py-6 h-auto",onClick:()=>window.open("https://buy.stripe.com/3cIeV5bnaeUobw3a3Z3F601","_blank"),children:"Reserve Your Seat"})]})}),c.jsx(x_,{}),c.jsx("section",{className:"py-16 px-4",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Frequently Asked Questions"}),c.jsxs(L3,{type:"single",collapsible:!0,className:"w-full",children:[c.jsxs(xc,{value:"item-1",children:[c.jsx(wc,{className:"text-left",children:"Do I need tech experience?"}),c.jsx(bc,{children:"No. This is a beginner session focused on thinking and simple steps. You don't need any technical background to benefit from this workshop."})]}),c.jsxs(xc,{value:"item-2",children:[c.jsx(wc,{className:"text-left",children:"Will I get the recording?"}),c.jsx(bc,{children:"Yes. All attendees will receive the full workshop recording, plus the fillable worksheet and starter prompt pack."})]}),c.jsxs(xc,{value:"item-3",children:[c.jsx(wc,{className:"text-left",children:"What tools do I need?"}),c.jsx(bc,{children:"ChatGPT (free or paid version) and an optional Make account. We'll provide guidance on setting these up if needed."})]})]})]})}),c.jsx(sd,{})]}),$3=new t2({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}}),U3=()=>c.jsx(nO,{children:c.jsx(n2,{client:$3,children:c.jsx(X2,{children:c.jsxs(AT,{children:[c.jsx(TN,{}),c.jsx(iP,{}),c.jsxs(q2,{children:[c.jsx(Vn,{path:"/",element:c.jsx(pO,{})}),c.jsx(Vn,{path:"/book-speaking",element:c.jsx(f4,{})}),c.jsx(Vn,{path:"/newsletter",element:c.jsx(m4,{})}),c.jsx(Vn,{path:"/survey",element:c.jsx(q4,{})}),c.jsx(Vn,{path:"/limitlist",element:c.jsx(y3,{})}),c.jsx(Vn,{path:"/ai-workshop",element:c.jsx(F3,{})}),c.jsx(Vn,{path:"*",element:c.jsx(vO,{})})]})]})})})});Ew(document.getElementById("root")).render(c.jsx(U3,{}));
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.