PageSourceSearch

https://agentic-codeforall-freelancers.lovable.app/assets/index-CRk9p1s8.js

js agentic-codeforall-freelancers.lovable.app collected 2026-10-03 03:18:30 UTC 861,240 bytes, 326 lines download raw bytes

vendor: 4,140 bytes, lines 1-9
1var r0=e=>{throw TypeError(e)};var jd=(e,t,n)=>t.has(e)||r0("Cannot "+n);var R=(e,t,n)=>(jd(e,t,"read from private field"),n?n.call(e):t.get(e)),me=(e,t,n)=>t.has(e)?r0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),oe=(e,t,n,r)=>(jd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ot=(e,t,n)=>(jd(e,t,"access private method"),n);var _l=(e,t,n,r)=>({set _(s){oe(e,t,s,n)},get _(){return R(e,t,r)}});function JC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function _1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C1={exports:{}},Cu={},E1={exports:{}},le={};/**
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 tl=Symbol.for("react.element"),XC=Symbol.for("react.portal"),e3=Symbol.for("react.fragment"),t3=Symbol.for("react.strict_mode"),n3=Symbol.for("react.profiler"),r3=Symbol.for("react.provider"),s3=Symbol.for("react.context"),o3=Symbol.for("react.forward_ref"),i3=Symbol.for("react.suspense"),a3=Symbol.for("react.memo"),l3=Symbol.for("react.lazy"),s0=Symbol.iterator;function c3(e){return e===null||typeof e!="object"?null:(e=s0&&e[s0]||e["@@iterator"],typeof e=="function"?e:null)}var j1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k1=Object.assign,T1={};function gi(e,t,n){this.props=e,this.context=t,this.refs=T1,this.updater=n||j1}gi.prototype.isReactComponent={};gi.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")};gi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N1(){}N1.prototype=gi.prototype;function Km(e,t,n){this.props=e,this.context=t,this.refs=T1,this.updater=n||j1}var Gm=Km.prototype=new N1;Gm.constructor=Km;k1(Gm,gi.prototype);Gm.isPureReactComponent=!0;var o0=Array.isArray,P1=Object.prototype.hasOwnProperty,Ym={current:null},A1={key:!0,ref:!0,__self:!0,__source:!0};function R1(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)P1.call(t,r)&&!A1.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:tl,type:e,key:o,ref:i,props:s,_owner:Ym.current}}function u3(e,t){return{$$typeof:tl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qm(e){return typeof e=="object"&&e!==null&&e.$$typeof===tl}function d3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var i0=/\/+/g;function kd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?d3(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function cc(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case tl:case XC:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+kd(i,0):r,o0(s)?(n="",e!=null&&(n=e.replace(i0,"$&/")+"/"),cc(s,t,n,"",function(u){return u})):s!=null&&(Qm(s)&&(s=u3(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(i0,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",o0(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+kd(o,a);i+=cc(o,t,n,l,s)}else if(l=c3(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+kd(o,a++),i+=cc(o,t,n,l,s);else if(o==="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 i}function Cl(e,t,n){if(e==null)return e;var r=[],s=0;return cc(e,r,"","",function(o){return t.call(n,o,s++)}),r}function f3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var St={current:null},uc={transition:null},h3={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:uc,ReactCurrentOwner:Ym};function O1(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:Cl,forEach:function(e,t,n){Cl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cl(e,function(){t++}),t},toArray:function(e){return Cl(e,function(t){return t})||[]},only:function(e){if(!Qm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=gi;le.Fragment=e3;le.Profiler=n3;le.PureComponent=Km;le.StrictMode=t3;le.Suspense=i3;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h3;le.act=O1;le.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=k1({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Ym.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)P1.call(t,l)&&!A1.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:tl,type:e.type,key:s,ref:o,props:r,_owner:i}};le.createContext=function(e){return e={$$typeof:s3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r3,_context:e},e.Consumer=e};le.createElement=R1;le.createFactory=function(e){var t=R1.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:o3,render:e}};le.isValidElement=Qm;le.lazy=function(e){return{$$typeof:l3,_payload:{_status:-1,_result:e},_init:f3}};le.memo=function(e,t){return{$$typeof:a3,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=uc.transition;uc.transition={};try{e()}finally{uc.transition=t}};le.unstable_act=O1;le.useCallback=function(e,t){return St.current.useCallback(e,t)};le.useContext=function(e){return St.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return St.current.useDeferredValue(e)};le.useEffect=function(e,t){return St.current.useEffect(e,t)};le.useId=function(){return St.current.useId()};le.useImperativeHandle=function(e,t,n){return St.current.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return St.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return St.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return St.current.useMemo(e,t)};le.useReducer=function(e,t,n){return St.current.useReducer(e,t,n)};le.useRef=function(e){return St.current.useRef(e)};le.useState=function(e){return St.current.useState(e)};le.useSyncExternalStore=function(e,t,n){return St.current.useSyncExternalStore(e,t,n)};le.useTransition=function(){return St.current.useTransition()};le.version="18.3.1";E1.exports=le;var x=E1.exports;const $=_1(x),Zm=JC({__proto__:null,default:$},[x]);/**
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 m3=x,p3=Symbol.for("react.element"),g3=Symbol.for("react.fragment"),v3=Object.prototype.hasOwnProperty,y3=m3.__SECRET_INT
vendor: 11,400 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x3={key:!0,ref:!0,__self:!0,__source:!0};function I1(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)v3.call(t,r)&&!x3.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:p3,type:e,key:o,ref:i,props:s,_owner:y3.current}}Cu.Fragment=g3;Cu.jsx=I1;Cu.jsxs=I1;C1.exports=Cu;var c=C1.exports,L1={exports:{}},Bt={},M1={exports:{}},D1={};/**
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(T,P){var M=T.length;T.push(P);e:for(;0<M;){var K=M-1>>>1,H=T[K];if(0<s(H,P))T[K]=P,T[M]=H,M=K;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var P=T[0],M=T.pop();if(M!==P){T[0]=M;e:for(var K=0,H=T.length,J=H>>>1;K<J;){var Z=2*(K+1)-1,pe=T[Z],ye=Z+1,V=T[ye];if(0>s(pe,M))ye<H&&0>s(V,pe)?(T[K]=V,T[ye]=M,K=ye):(T[K]=pe,T[Z]=M,K=Z);else if(ye<H&&0>s(V,M))T[K]=V,T[ye]=M,K=ye;else break e}}return P}function s(T,P){var M=T.sortIndex-P.sortIndex;return M!==0?M:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,f=null,h=3,m=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=T)r(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(u)}}function S(T){if(p=!1,w(T),!y)if(n(l)!==null)y=!0,B(_);else{var P=n(u);P!==null&&F(S,P.startTime-T)}}function _(T,P){y=!1,p&&(p=!1,v(j),j=-1),m=!0;var M=h;try{for(w(P),f=n(l);f!==null&&(!(f.expirationTime>P)||T&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,h=f.priorityLevel;var H=K(f.expirationTime<=P);P=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&r(l),w(P)}else r(l);f=n(l)}if(f!==null)var J=!0;else{var Z=n(u);Z!==null&&F(S,Z.startTime-P),J=!1}return J}finally{f=null,h=M,m=!1}}var C=!1,E=null,j=-1,k=5,N=-1;function I(){return!(e.unstable_now()-N<k)}function O(){if(E!==null){var T=e.unstable_now();N=T;var P=!0;try{P=E(!0,T)}finally{P?U():(C=!1,E=null)}}else C=!1}var U;if(typeof g=="function")U=function(){g(O)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,z=A.port2;A.port1.onmessage=O,U=function(){z.postMessage(null)}}else U=function(){b(O,0)};function B(T){E=T,C||(C=!0,U())}function F(T,P){j=b(function(){T(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,B(_))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(T){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var M=h;h=P;try{return T()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var M=h;h=T;try{return P()}finally{h=M}},e.unstable_scheduleCallback=function(T,P,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,T){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=M+H,T={id:d++,callback:P,priorityLevel:T,startTime:M,expirationTime:H,sortIndex:-1},M>K?(T.sortIndex=M,t(u,T),n(l)===null&&T===n(u)&&(p?(v(j),j=-1):p=!0,F(S,M-K))):(T.sortIndex=H,t(l,T),y||m||(y=!0,B(_))),T},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(T){var P=h;return function(){var M=h;h=P;try{return T.apply(this,arguments)}finally{h=M}}}})(D1);M1.exports=D1;var w3=M1.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 b3=x,Ft=w3;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var V1=new Set,ga={};function qs(e,t){ri(e,t),ri(e+"Capture",t)}function ri(e,t){for(ga[e]=t,e=0;e<t.length;e++)V1.add(t[e])}var rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qf=Object.prototype.hasOwnProperty,S3=/^[: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]*$/,a0={},l0={};function _3(e){return qf.call(l0,e)?!0:qf.call(a0,e)?!1:S3.test(e)?l0[e]=!0:(a0[e]=!0,!1)}function C3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E3(e,t,n,r){if(t===null||typeof t>"u"||C3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _t(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new _t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new _t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new _t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new _t(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){st[e]=new _t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new _t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new _t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new _t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new _t(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jm=/[\-:]([a-z])/g;function Xm(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(Jm,Xm);st[t]=new _t(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(Jm,Xm);st[t]=new _t(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(Jm,Xm);st[t]=new _t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new _t(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new _t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new _t(e,1,!1,e.toLowerCase(),null,!0,!0)});function ep(e,t,n,r){var s=st.hasOwnProperty(t)?st[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E3(t,n,s,r)&&(n=null),r||s===null?_3(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ur=b3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,El=Symbol.for("react.element"),vo=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),Kf=Symbol.for("react.profiler"),$1=Symbol.for("react.provider"),F1=Symbol.for("react.context"),np=Symbol.for("react.forward_ref"),Gf=Symbol.for("react.suspense"),Yf=Symbol.for("react.suspense_list"),rp=Symbol.for("react.memo"),jr=Symbol.for("react.lazy"),B1=Symbol.for("react.offscreen"),c0=Symbol.iterator;function Ri(e){return e===null||typeof e!="object"?null:(e=c0&&e[c0]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Td;function Wi(e){if(Td===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Td=t&&t[1]||""}return`
34`+Td+e}var Nd=!1;function Pd(e,t){if(!e||Nd)return"";Nd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 15,597 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),o=r.stack.split(`
36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=`
37`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Nd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wi(e):""}function j3(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=Pd(e.type,!1),e;case 11:return e=Pd(e.type.render,!1),e;case 1:return e=Pd(e.type,!0),e;default:return""}}function Qf(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 yo:return"Fragment";case vo:return"Portal";case Kf:return"Profiler";case tp:return"StrictMode";case Gf:return"Suspense";case Yf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F1:return(e.displayName||"Context")+".Consumer";case $1:return(e._context.displayName||"Context")+".Provider";case np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rp:return t=e.displayName||null,t!==null?t:Qf(e.type)||"Memo";case jr:t=e._payload,e=e._init;try{return Qf(e(t))}catch{}}return null}function k3(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 Qf(t);case 8:return t===tp?"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 Qr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T3(e){var t=U1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jl(e){e._valueTracker||(e._valueTracker=T3(e))}function z1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oc(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 Zf(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function u0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function H1(e,t){t=t.checked,t!=null&&ep(e,"checked",t,!1)}function Jf(e,t){H1(e,t);var n=Qr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xf(e,t.type,Qr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function d0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xf(e,t,n){(t!=="number"||Oc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qi=Array.isArray;function Mo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function eh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function f0(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(qi(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qr(n)}}function W1(e,t){var n=Qr(t.value),r=Qr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function h0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function q1(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 th(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?q1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var kl,K1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(kl=kl||document.createElement("div"),kl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function va(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xi={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},N3=["Webkit","ms","Moz","O"];Object.keys(Xi).forEach(function(e){N3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xi[t]=Xi[e]})});function G1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xi.hasOwnProperty(e)&&Xi[e]?(""+t).trim():t+"px"}function Y1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=G1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var P3=Le({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 nh(e,t){if(t){if(P3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function rh(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 sh=null;function sp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oh=null,Do=null,Vo=null;function m0(e){if(e=sl(e)){if(typeof oh!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Nu(t),oh(e.stateNode,e.type,t))}}function Q1(e){Do?Vo?Vo.push(e):Vo=[e]:Do=e}function Z1(){if(Do){var e=Do,t=Vo;if(Vo=Do=null,m0(e),t)for(e=0;e<t.length;e++)m0(t[e])}}function J1(e,t){return e(t)}function X1(){}var Ad=!1;function ew(e,t,n){if(Ad)return e(t,n);Ad=!0;try{return J1(e,t,n)}finally{Ad=!1,(Do!==null||Vo!==null)&&(X1(),Z1())}}function ya(e,t){var n=e.stateNode;if(n===null)return null;var r=Nu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var ih=!1;if(rr)try{var Oi={};Object.defineProperty(Oi,"passive",{get:function(){ih=!0}}),window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{ih=!1}function A3(e,t,n,r,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var ea=!1,Ic=null,Lc=!1,ah=null,R3={onError:function(e){ea=!0,Ic=e}};function O3(e,t,n,r,s,o,i,a,l){ea=!1,Ic=null,A3.apply(R3,arguments)}function I3(e,t,n,r,s,o,i,a,l){if(O3.apply(this,arguments),ea){if(ea){var u=Ic;ea=!1,Ic=null}else throw Error(L(198));Lc||(Lc=!0,ah=u)}}function Ks(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tw(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 p0(e){if(Ks(e)!==e)throw Error(L(188))}function L3(e){var t=e.alternate;if(!t){if(t=Ks(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return p0(s),e;if(o===r)return p0(s),t;o=o.sibling}throw Error(L(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function nw(e){return e=L3(e),e!==null?rw(e):null}function rw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rw(e);if(t!==null)return t;e=e.sibling}return null}var sw=Ft.unstable_scheduleCallback,g0=Ft.unstable_cancelCallback,M3=Ft.unstable_shouldYield,D3=Ft.unstable_requestPaint,$e=Ft.unstable_now,V3=Ft.unstable_getCurrentPriorityLevel,op=Ft.unstable_ImmediatePriority,ow=Ft.unstable_UserBlockingPriority,Mc=Ft.unstable_NormalPriority,$3=Ft.unstable_LowPriority,iw=Ft.unstable_IdlePriority,Eu=null,Vn=null;function F3(e){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(Eu,e,void 0,(e.current.flags&128)===128)}catch{}}var bn=Math.clz32?Math.clz32:z3,B3=Math.log,U3=Math.LN2;function z3(e){return e>>>=0,e===0?32:31-(B3(e)/U3|0)|0}var Tl=64,Nl=4194304;function Ki(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 Dc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=Ki(a):(o&=i,o!==0&&(r=Ki(o)))}else i=n&~s,i!==0?r=Ki(i):o!==0&&(r=Ki(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-bn(t),s=1<<n,r|=e[n],t&=~s;return r}function H3(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 W3(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-bn(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=H3(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function lh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function aw(){var e=Tl;return Tl<<=1,!(Tl&4194240)&&(Tl=64),e}function Rd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=n}function q3(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-bn(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function ip(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ve=0;function lw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cw,ap,uw,dw,fw,ch=!1,Pl=[],Ur=null,zr=null,Hr=null,xa=new Map,wa=new Map,Nr=[],K3="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 v0(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":Hr=null;break;case"pointerover":case"pointerout":xa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wa.delete(t.pointerId)}}function Ii(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=sl(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 12,661 bytes, line 37
37function G3(e,t,n,r,s){switch(t){case"focusin":return Ur=Ii(Ur,e,t,n,r,s),!0;case"dragenter":return zr=Ii(zr,e,t,n,r,s),!0;case"mouseover":return Hr=Ii(Hr,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return xa.set(o,Ii(xa.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,wa.set(o,Ii(wa.get(o)||null,e,t,n,r,s)),!0}return!1}function hw(e){var t=ws(e.target);if(t!==null){var n=Ks(t);if(n!==null){if(t=n.tag,t===13){if(t=tw(n),t!==null){e.blockedOn=t,fw(e.priority,function(){uw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sh=r,n.target.dispatchEvent(r),sh=null}else return t=sl(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function y0(e,t,n){dc(e)&&n.delete(t)}function Y3(){ch=!1,Ur!==null&&dc(Ur)&&(Ur=null),zr!==null&&dc(zr)&&(zr=null),Hr!==null&&dc(Hr)&&(Hr=null),xa.forEach(y0),wa.forEach(y0)}function Li(e,t){e.blockedOn===t&&(e.blockedOn=null,ch||(ch=!0,Ft.unstable_scheduleCallback(Ft.unstable_NormalPriority,Y3)))}function ba(e){function t(s){return Li(s,e)}if(0<Pl.length){Li(Pl[0],e);for(var n=1;n<Pl.length;n++){var r=Pl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ur!==null&&Li(Ur,e),zr!==null&&Li(zr,e),Hr!==null&&Li(Hr,e),xa.forEach(t),wa.forEach(t),n=0;n<Nr.length;n++)r=Nr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nr.length&&(n=Nr[0],n.blockedOn===null);)hw(n),n.blockedOn===null&&Nr.shift()}var $o=ur.ReactCurrentBatchConfig,Vc=!0;function Q3(e,t,n,r){var s=ve,o=$o.transition;$o.transition=null;try{ve=1,lp(e,t,n,r)}finally{ve=s,$o.transition=o}}function Z3(e,t,n,r){var s=ve,o=$o.transition;$o.transition=null;try{ve=4,lp(e,t,n,r)}finally{ve=s,$o.transition=o}}function lp(e,t,n,r){if(Vc){var s=uh(e,t,n,r);if(s===null)Ud(e,t,r,$c,n),v0(e,r);else if(G3(s,e,t,n,r))r.stopPropagation();else if(v0(e,r),t&4&&-1<K3.indexOf(e)){for(;s!==null;){var o=sl(s);if(o!==null&&cw(o),o=uh(e,t,n,r),o===null&&Ud(e,t,r,$c,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Ud(e,t,r,null,n)}}var $c=null;function uh(e,t,n,r){if($c=null,e=sp(r),e=ws(e),e!==null)if(t=Ks(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $c=e,null}function mw(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(V3()){case op:return 1;case ow:return 4;case Mc:case $3:return 16;case iw:return 536870912;default:return 16}default:return 16}}var Vr=null,cp=null,fc=null;function pw(){if(fc)return fc;var e,t=cp,n=t.length,r,s="value"in Vr?Vr.value:Vr.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return fc=s.slice(e,1<r?1-r:void 0)}function hc(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 Al(){return!0}function x0(){return!1}function Ut(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Al:x0,this.isPropagationStopped=x0,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),t}var vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},up=Ut(vi),rl=Le({},vi,{view:0,detail:0}),J3=Ut(rl),Od,Id,Mi,ju=Le({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dp,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!==Mi&&(Mi&&e.type==="mousemove"?(Od=e.screenX-Mi.screenX,Id=e.screenY-Mi.screenY):Id=Od=0,Mi=e),Od)},movementY:function(e){return"movementY"in e?e.movementY:Id}}),w0=Ut(ju),X3=Le({},ju,{dataTransfer:0}),e5=Ut(X3),t5=Le({},rl,{relatedTarget:0}),Ld=Ut(t5),n5=Le({},vi,{animationName:0,elapsedTime:0,pseudoElement:0}),r5=Ut(n5),s5=Le({},vi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),o5=Ut(s5),i5=Le({},vi,{data:0}),b0=Ut(i5),a5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l5={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"},c5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u5(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=c5[e])?!!t[e]:!1}function dp(){return u5}var d5=Le({},rl,{key:function(e){if(e.key){var t=a5[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l5[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dp,charCode:function(e){return e.type==="keypress"?hc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f5=Ut(d5),h5=Le({},ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),S0=Ut(h5),m5=Le({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dp}),p5=Ut(m5),g5=Le({},vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),v5=Ut(g5),y5=Le({},ju,{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}),x5=Ut(y5),w5=[9,13,27,32],fp=rr&&"CompositionEvent"in window,ta=null;rr&&"documentMode"in document&&(ta=document.documentMode);var b5=rr&&"TextEvent"in window&&!ta,gw=rr&&(!fp||ta&&8<ta&&11>=ta),_0=" ",C0=!1;function vw(e,t){switch(e){case"keyup":return w5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xo=!1;function S5(e,t){switch(e){case"compositionend":return yw(t);case"keypress":return t.which!==32?null:(C0=!0,_0);case"textInput":return e=t.data,e===_0&&C0?null:e;default:return null}}function _5(e,t){if(xo)return e==="compositionend"||!fp&&vw(e,t)?(e=pw(),fc=cp=Vr=null,xo=!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 gw&&t.locale!=="ko"?null:t.data;default:return null}}var C5={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 E0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C5[e.type]:t==="textarea"}function xw(e,t,n,r){Q1(r),t=Fc(t,"onChange"),0<t.length&&(n=new up("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var na=null,Sa=null;function E5(e){Pw(e,0)}function ku(e){var t=So(e);if(z1(t))return e}function j5(e,t){if(e==="change")return t}var ww=!1;if(rr){var Md;if(rr){var Dd="oninput"in document;if(!Dd){var j0=document.createElement("div");j0.setAttribute("oninput","return;"),Dd=typeof j0.oninput=="function"}Md=Dd}else Md=!1;ww=Md&&(!document.documentMode||9<document.documentMode)}function k0(){na&&(na.detachEvent("onpropertychange",bw),Sa=na=null)}function bw(e){if(e.propertyName==="value"&&ku(Sa)){var t=[];xw(t,Sa,e,sp(e)),ew(E5,t)}}function k5(e,t,n){e==="focusin"?(k0(),na=t,Sa=n,na.attachEvent("onpropertychange",bw)):e==="focusout"&&k0()}function T5(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ku(Sa)}function N5(e,t){if(e==="click")return ku(t)}function P5(e,t){if(e==="input"||e==="change")return ku(t)}function A5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cn=typeof Object.is=="function"?Object.is:A5;function _a(e,t){if(Cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!qf.call(t,s)||!Cn(e[s],t[s]))return!1}return!0}function T0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function N0(e,t){var n=T0(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=T0(n)}}function Sw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _w(){for(var e=window,t=Oc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oc(e.document)}return t}function hp(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 R5(e){var t=_w(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sw(n.ownerDocument.documentElement,n)){if(r!==null&&hp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=N0(n,o);var i=N0(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var O5=rr&&"documentMode"in document&&11>=document.documentMode,wo=null,dh=null,ra=null,fh=!1;
vendor: 4,672 bytes, line 37
37function P0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fh||wo==null||wo!==Oc(r)||(r=wo,"selectionStart"in r&&hp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ra&&_a(ra,r)||(ra=r,r=Fc(dh,"onSelect"),0<r.length&&(t=new up("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wo)))}function Rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bo={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionend:Rl("Transition","TransitionEnd")},Vd={},Cw={};rr&&(Cw=document.createElement("div").style,"AnimationEvent"in window||(delete bo.animationend.animation,delete bo.animationiteration.animation,delete bo.animationstart.animation),"TransitionEvent"in window||delete bo.transitionend.transition);function Tu(e){if(Vd[e])return Vd[e];if(!bo[e])return e;var t=bo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cw)return Vd[e]=t[n];return e}var Ew=Tu("animationend"),jw=Tu("animationiteration"),kw=Tu("animationstart"),Tw=Tu("transitionend"),Nw=new Map,A0="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 rs(e,t){Nw.set(e,t),qs(t,[e])}for(var $d=0;$d<A0.length;$d++){var Fd=A0[$d],I5=Fd.toLowerCase(),L5=Fd[0].toUpperCase()+Fd.slice(1);rs(I5,"on"+L5)}rs(Ew,"onAnimationEnd");rs(jw,"onAnimationIteration");rs(kw,"onAnimationStart");rs("dblclick","onDoubleClick");rs("focusin","onFocus");rs("focusout","onBlur");rs(Tw,"onTransitionEnd");ri("onMouseEnter",["mouseout","mouseover"]);ri("onMouseLeave",["mouseout","mouseover"]);ri("onPointerEnter",["pointerout","pointerover"]);ri("onPointerLeave",["pointerout","pointerover"]);qs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qs("onBeforeInput",["compositionend","keypress","textInput","paste"]);qs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="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(" "),M5=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gi));function R0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,I3(r,t,void 0,e),e.currentTarget=null}function Pw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;R0(s,a,u),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;R0(s,a,u),o=l}}}if(Lc)throw e=ah,Lc=!1,ah=null,e}function je(e,t){var n=t[vh];n===void 0&&(n=t[vh]=new Set);var r=e+"__bubble";n.has(r)||(Aw(t,e,2,!1),n.add(r))}function Bd(e,t,n){var r=0;t&&(r|=4),Aw(n,e,r,t)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function Ca(e){if(!e[Ol]){e[Ol]=!0,V1.forEach(function(n){n!=="selectionchange"&&(M5.has(n)||Bd(n,!1,e),Bd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ol]||(t[Ol]=!0,Bd("selectionchange",!1,t))}}function Aw(e,t,n,r){switch(mw(t)){case 1:var s=Q3;break;case 4:s=Z3;break;default:s=lp}n=s.bind(null,t,n,e),s=void 0,!ih||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function Ud(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=ws(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}ew(function(){var u=o,d=sp(n),f=[];e:{var h=Nw.get(e);if(h!==void 0){var m=up,y=e;switch(e){case"keypress":if(hc(n)===0)break e;case"keydown":case"keyup":m=f5;break;case"focusin":y="focus",m=Ld;break;case"focusout":y="blur",m=Ld;break;case"beforeblur":case"afterblur":m=Ld;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=w0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=e5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=p5;break;case Ew:case jw:case kw:m=r5;break;case Tw:m=v5;break;case"scroll":m=J3;break;case"wheel":m=x5;break;case"copy":case"cut":case"paste":m=o5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=S0}var p=(t&4)!==0,b=!p&&e==="scroll",v=p?h!==null?h+"Capture":null:h;p=[];for(var g=u,w;g!==null;){w=g;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,v!==null&&(S=ya(g,v),S!=null&&p.push(Ea(g,S,w)))),b)break;g=g.return}0<p.length&&(h=new m(h,y,null,n,d),f.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==sh&&(y=n.relatedTarget||n.fromElement)&&(ws(y)||y[sr]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?ws(y):null,y!==null&&(b=Ks(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(p=w0,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=S0,S="onPointerLeave",v="onPointerEnter",g="pointer"),b=m==null?h:So(m),w=y==null?h:So(y),h=new p(S,g+"leave",m,n,d),h.target=b,h.relatedTarget=w,S=null,ws(d)===u&&(p=new p(v,g+"enter",y,n,d),p.target=w,p.relatedTarget=b,S=p),b=S,m&&y)t:{for(p=m,v=y,g=0,w=p;w;w=no(w))g++;for(w=0,S=v;S;S=no(S))w++;for(;0<g-w;)p=no(p),g--;for(;0<w-g;)v=no(v),w--;for(;g--;){if(p===v||v!==null&&p===v.alternate)break t;p=no(p),v=no(v)}p=null}else p=null;m!==null&&O0(f,h,m,p,!1),y!==null&&b!==null&&O0(f,b,y,p,!0)}}e:{if(h=u?So(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var _=j5;else if(E0(h))if(ww)_=P5;else{_=T5;var C=k5}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=N5);if(_&&(_=_(e,u))){xw(f,_,n,d);break e}C&&C(e,h,u),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&Xf(h,"number",h.value)}switch(C=u?So(u):window,e){case"focusin":(E0(C)||C.contentEditable==="true")&&(wo=C,dh=u,ra=null);break;case"focusout":ra=dh=wo=null;break;case"mousedown":fh=!0;break;case"contextmenu":case"mouseup":case"dragend":fh=!1,P0(f,n,d);break;case"selectionchange":if(O5)break;case"keydown":case"keyup":P0(f,n,d)}var E;if(fp)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else xo?vw(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(gw&&n.locale!=="ko"&&(xo||j!=="onCompositionStart"?j==="onCompositionEnd"&&xo&&(E=pw()):(Vr=d,cp="value"in Vr?Vr.value:Vr.textContent,xo=!0)),C=Fc(u,j),0<C.length&&(j=new b0(j,e,null,n,d),f.push({event:j,listeners:C}),E?j.data=E:(E=yw(n),E!==null&&(j.data=E)))),(E=b5?S5(e,n):_5(e,n))&&(u=Fc(u,"onBeforeInput"),0<u.length&&(d=new b0("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=E))}Pw(f,t)})}function Ea(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=ya(e,n),o!=null&&r.unshift(Ea(e,o,s)),o=ya(e,t),o!=null&&r.push(Ea(e,o,s))),e=e.return}return r}function no(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,594 bytes, lines 37-38
37function O0(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=ya(n,o),l!=null&&i.unshift(Ea(n,l,a))):s||(l=ya(n,o),l!=null&&i.push(Ea(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var D5=/\r\n?/g,V5=/\u0000|\uFFFD/g;function I0(e){return(typeof e=="string"?e:""+e).replace(D5,`
38`).replace(V5,"")}function Il(e,t,n){if(t=I0(t),I0(e)!==t&&n)throw Error(L(425))}function Bc(){}var hh=null,mh=null;function ph(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 gh=typeof setTimeout=="function"?setTimeout:void 0,$5=typeof clearTimeout=="function"?clearTimeout:void 0,L0=typeof Promise=="function"?Promise:void 0,F5=typeof queueMicrotask=="function"?queueMicrotask:typeof L0<"u"?function(e){return L0.resolve(null).then(e).catch(B5)}:gh;function B5(e){setTimeout(function(){throw e})}function zd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ba(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ba(t)}function Wr(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 M0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yi=Math.random().toString(36).slice(2),Ln="__reactFiber$"+yi,ja="__reactProps$"+yi,sr="__reactContainer$"+yi,vh="__reactEvents$"+yi,U5="__reactListeners$"+yi,z5="__reactHandles$"+yi;function ws(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sr]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=M0(e);e!==null;){if(n=e[Ln])return n;e=M0(e)}return t}e=n,n=e.parentNode}return null}function sl(e){return e=e[Ln]||e[sr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function So(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Nu(e){return e[ja]||null}var yh=[],_o=-1;function ss(e){return{current:e}}function ke(e){0>_o||(e.current=yh[_o],yh[_o]=null,_o--)}function Se(e,t){_o++,yh[_o]=e.current,e.current=t}var Zr={},ft=ss(Zr),Tt=ss(!1),Ms=Zr;function si(e,t){var n=e.type.contextTypes;if(!n)return Zr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Nt(e){return e=e.childContextTypes,e!=null}function Uc(){ke(Tt),ke(ft)}function D0(e,t,n){if(ft.current!==Zr)throw Error(L(168));Se(ft,t),Se(Tt,n)}function Rw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(L(108,k3(e)||"Unknown",s));return Le({},n,r)}function zc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zr,Ms=ft.current,Se(ft,e),Se(Tt,Tt.current),!0}function V0(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Rw(e,t,Ms),r.__reactInternalMemoizedMergedChildContext=e,ke(Tt),ke(ft),Se(ft,e)):ke(Tt),Se(Tt,n)}var Zn=null,Pu=!1,Hd=!1;function Ow(e){Zn===null?Zn=[e]:Zn.push(e)}function H5(e){Pu=!0,Ow(e)}function os(){if(!Hd&&Zn!==null){Hd=!0;var e=0,t=ve;try{var n=Zn;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zn=null,Pu=!1}catch(s){throw Zn!==null&&(Zn=Zn.slice(e+1)),sw(op,os),s}finally{ve=t,Hd=!1}}return null}var Co=[],Eo=0,Hc=null,Wc=0,Wt=[],qt=0,Ds=null,Xn=1,er="";function hs(e,t){Co[Eo++]=Wc,Co[Eo++]=Hc,Hc=e,Wc=t}function Iw(e,t,n){Wt[qt++]=Xn,Wt[qt++]=er,Wt[qt++]=Ds,Ds=e;var r=Xn;e=er;var s=32-bn(r)-1;r&=~(1<<s),n+=1;var o=32-bn(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Xn=1<<32-bn(t)+s|n<<s|r,er=o+e}else Xn=1<<o|n<<s|r,er=e}function mp(e){e.return!==null&&(hs(e,1),Iw(e,1,0))}function pp(e){for(;e===Hc;)Hc=Co[--Eo],Co[Eo]=null,Wc=Co[--Eo],Co[Eo]=null;for(;e===Ds;)Ds=Wt[--qt],Wt[qt]=null,er=Wt[--qt],Wt[qt]=null,Xn=Wt[--qt],Wt[qt]=null}var Vt=null,Dt=null,Te=!1,wn=null;function Lw(e,t){var n=Kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $0(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 13,214 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Vt=e,Dt=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Vt=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ds!==null?{id:Xn,overflow:er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Vt=e,Dt=null,!0):!1;default:return!1}}function xh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wh(e){if(Te){var t=Dt;if(t){var n=t;if(!$0(e,t)){if(xh(e))throw Error(L(418));t=Wr(n.nextSibling);var r=Vt;t&&$0(e,t)?Lw(r,n):(e.flags=e.flags&-4097|2,Te=!1,Vt=e)}}else{if(xh(e))throw Error(L(418));e.flags=e.flags&-4097|2,Te=!1,Vt=e}}}function F0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vt=e}function Ll(e){if(e!==Vt)return!1;if(!Te)return F0(e),Te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ph(e.type,e.memoizedProps)),t&&(t=Dt)){if(xh(e))throw Mw(),Error(L(418));for(;t;)Lw(e,t),t=Wr(t.nextSibling)}if(F0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Dt=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=Vt?Wr(e.stateNode.nextSibling):null;return!0}function Mw(){for(var e=Dt;e;)e=Wr(e.nextSibling)}function oi(){Dt=Vt=null,Te=!1}function gp(e){wn===null?wn=[e]:wn.push(e)}var W5=ur.ReactCurrentBatchConfig;function Di(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Ml(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function B0(e){var t=e._init;return t(e._payload)}function Dw(e){function t(v,g){if(e){var w=v.deletions;w===null?(v.deletions=[g],v.flags|=16):w.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=Yr(v,g),v.index=0,v.sibling=null,v}function o(v,g,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<g?(v.flags|=2,g):w):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,w,S){return g===null||g.tag!==6?(g=Zd(w,v.mode,S),g.return=v,g):(g=s(g,w),g.return=v,g)}function l(v,g,w,S){var _=w.type;return _===yo?d(v,g,w.props.children,S,w.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===jr&&B0(_)===g.type)?(S=s(g,w.props),S.ref=Di(v,g,w),S.return=v,S):(S=wc(w.type,w.key,w.props,null,v.mode,S),S.ref=Di(v,g,w),S.return=v,S)}function u(v,g,w,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Jd(w,v.mode,S),g.return=v,g):(g=s(g,w.children||[]),g.return=v,g)}function d(v,g,w,S,_){return g===null||g.tag!==7?(g=Os(w,v.mode,S,_),g.return=v,g):(g=s(g,w),g.return=v,g)}function f(v,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Zd(""+g,v.mode,w),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case El:return w=wc(g.type,g.key,g.props,null,v.mode,w),w.ref=Di(v,null,g),w.return=v,w;case vo:return g=Jd(g,v.mode,w),g.return=v,g;case jr:var S=g._init;return f(v,S(g._payload),w)}if(qi(g)||Ri(g))return g=Os(g,v.mode,w,null),g.return=v,g;Ml(v,g)}return null}function h(v,g,w,S){var _=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return _!==null?null:a(v,g,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case El:return w.key===_?l(v,g,w,S):null;case vo:return w.key===_?u(v,g,w,S):null;case jr:return _=w._init,h(v,g,_(w._payload),S)}if(qi(w)||Ri(w))return _!==null?null:d(v,g,w,S,null);Ml(v,w)}return null}function m(v,g,w,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(w)||null,a(g,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case El:return v=v.get(S.key===null?w:S.key)||null,l(g,v,S,_);case vo:return v=v.get(S.key===null?w:S.key)||null,u(g,v,S,_);case jr:var C=S._init;return m(v,g,w,C(S._payload),_)}if(qi(S)||Ri(S))return v=v.get(w)||null,d(g,v,S,_,null);Ml(g,S)}return null}function y(v,g,w,S){for(var _=null,C=null,E=g,j=g=0,k=null;E!==null&&j<w.length;j++){E.index>j?(k=E,E=null):k=E.sibling;var N=h(v,E,w[j],S);if(N===null){E===null&&(E=k);break}e&&E&&N.alternate===null&&t(v,E),g=o(N,g,j),C===null?_=N:C.sibling=N,C=N,E=k}if(j===w.length)return n(v,E),Te&&hs(v,j),_;if(E===null){for(;j<w.length;j++)E=f(v,w[j],S),E!==null&&(g=o(E,g,j),C===null?_=E:C.sibling=E,C=E);return Te&&hs(v,j),_}for(E=r(v,E);j<w.length;j++)k=m(E,v,j,w[j],S),k!==null&&(e&&k.alternate!==null&&E.delete(k.key===null?j:k.key),g=o(k,g,j),C===null?_=k:C.sibling=k,C=k);return e&&E.forEach(function(I){return t(v,I)}),Te&&hs(v,j),_}function p(v,g,w,S){var _=Ri(w);if(typeof _!="function")throw Error(L(150));if(w=_.call(w),w==null)throw Error(L(151));for(var C=_=null,E=g,j=g=0,k=null,N=w.next();E!==null&&!N.done;j++,N=w.next()){E.index>j?(k=E,E=null):k=E.sibling;var I=h(v,E,N.value,S);if(I===null){E===null&&(E=k);break}e&&E&&I.alternate===null&&t(v,E),g=o(I,g,j),C===null?_=I:C.sibling=I,C=I,E=k}if(N.done)return n(v,E),Te&&hs(v,j),_;if(E===null){for(;!N.done;j++,N=w.next())N=f(v,N.value,S),N!==null&&(g=o(N,g,j),C===null?_=N:C.sibling=N,C=N);return Te&&hs(v,j),_}for(E=r(v,E);!N.done;j++,N=w.next())N=m(E,v,j,N.value,S),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?j:N.key),g=o(N,g,j),C===null?_=N:C.sibling=N,C=N);return e&&E.forEach(function(O){return t(v,O)}),Te&&hs(v,j),_}function b(v,g,w,S){if(typeof w=="object"&&w!==null&&w.type===yo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case El:e:{for(var _=w.key,C=g;C!==null;){if(C.key===_){if(_=w.type,_===yo){if(C.tag===7){n(v,C.sibling),g=s(C,w.props.children),g.return=v,v=g;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===jr&&B0(_)===C.type){n(v,C.sibling),g=s(C,w.props),g.ref=Di(v,C,w),g.return=v,v=g;break e}n(v,C);break}else t(v,C);C=C.sibling}w.type===yo?(g=Os(w.props.children,v.mode,S,w.key),g.return=v,v=g):(S=wc(w.type,w.key,w.props,null,v.mode,S),S.ref=Di(v,g,w),S.return=v,v=S)}return i(v);case vo:e:{for(C=w.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(v,g.sibling),g=s(g,w.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Jd(w,v.mode,S),g.return=v,v=g}return i(v);case jr:return C=w._init,b(v,g,C(w._payload),S)}if(qi(w))return y(v,g,w,S);if(Ri(w))return p(v,g,w,S);Ml(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(v,g.sibling),g=s(g,w),g.return=v,v=g):(n(v,g),g=Zd(w,v.mode,S),g.return=v,v=g),i(v)):n(v,g)}return b}var ii=Dw(!0),Vw=Dw(!1),qc=ss(null),Kc=null,jo=null,vp=null;function yp(){vp=jo=Kc=null}function xp(e){var t=qc.current;ke(qc),e._currentValue=t}function bh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fo(e,t){Kc=e,vp=jo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kt=!0),e.firstContext=null)}function Zt(e){var t=e._currentValue;if(vp!==e)if(e={context:e,memoizedValue:t,next:null},jo===null){if(Kc===null)throw Error(L(308));jo=e,Kc.dependencies={lanes:0,firstContext:e}}else jo=jo.next=e;return t}var bs=null;function wp(e){bs===null?bs=[e]:bs.push(e)}function $w(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,wp(t)):(n.next=s.next,s.next=n),t.interleaved=n,or(e,r)}function or(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var kr=!1;function bp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fw(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 nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,or(e,n)}return s=r.interleaved,s===null?(t.next=t,wp(r)):(t.next=s.next,s.next=t),r.interleaved=t,or(e,n)}function mc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ip(e,n)}}function U0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gc(e,t,n,r){var s=e.updateQueue;kr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=u=l=null,a=o;do{var h=a.lane,m=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,p=a;switch(h=t,m=n,p.tag){case 1:if(y=p.payload,typeof y=="function"){f=y.call(m,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,h=typeof y=="function"?y.call(m,f,h):y,h==null)break e;f=Le({},f,h);break e;case 2:kr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,i|=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 i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);$s|=i,e.lanes=i,e.memoizedState=f}}function z0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(L(191,s));s.call(r)}}}var ol={},$n=ss(ol),ka=ss(ol),Ta=ss(ol);function Ss(e){if(e===ol)throw Error(L(174));return e}function Sp(e,t){switch(Se(Ta,t),Se(ka,e),Se($n,ol),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:th(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=th(t,e)}ke($n),Se($n,t)}function ai(){ke($n),ke(ka),ke(Ta)}function Bw(e){Ss(Ta.current);var t=Ss($n.current),n=th(t,e.type);t!==n&&(Se(ka,e),Se($n,n))}function _p(e){ka.current===e&&(ke($n),ke(ka))}var Ae=ss(0);function Yc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wd=[];function Cp(){for(var e=0;e<Wd.length;e++)Wd[e]._workInProgressVersionPrimary=null;Wd.length=0}var pc=ur.ReactCurrentDispatcher,qd=ur.ReactCurrentBatchConfig,Vs=0,Ie=null,Ke=null,Ye=null,Qc=!1,sa=!1,Na=0,q5=0;function it(){throw Error(L(321))}function Ep(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cn(e[n],t[n]))return!1;return!0}function jp(e,t,n,r,s,o){if(Vs=o,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pc.current=e===null||e.memoizedState===null?Q5:Z5,e=n(r,s),sa){o=0;do{if(sa=!1,Na=0,25<=o)throw Error(L(301));o+=1,Ye=Ke=null,t.updateQueue=null,pc.current=J5,e=n(r,s)}while(sa)}if(pc.current=Zc,t=Ke!==null&&Ke.next!==null,Vs=0,Ye=Ke=Ie=null,Qc=!1,t)throw Error(L(300));return e}function kp(){var e=Na!==0;return Na=0,e}function An(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e,Ye}
vendor: 4,944 bytes, line 38
38function Jt(){if(Ke===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=Ye===null?Ie.memoizedState:Ye.next;if(t!==null)Ye=t,Ke=e;else{if(e===null)throw Error(L(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Pa(e,t){return typeof t=="function"?t(e):t}function Kd(e){var t=Jt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=Ke,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,u=o;do{var d=u.lane;if((Vs&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,Ie.lanes|=d,$s|=d}u=u.next}while(u!==null&&u!==o);l===null?i=r:l.next=a,Cn(r,t.memoizedState)||(kt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Ie.lanes|=o,$s|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gd(e){var t=Jt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Cn(o,t.memoizedState)||(kt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uw(){}function zw(e,t){var n=Ie,r=Jt(),s=t(),o=!Cn(r.memoizedState,s);if(o&&(r.memoizedState=s,kt=!0),r=r.queue,Tp(qw.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ye!==null&&Ye.memoizedState.tag&1){if(n.flags|=2048,Aa(9,Ww.bind(null,n,r,s,t),void 0,null),Qe===null)throw Error(L(349));Vs&30||Hw(n,t,s)}return s}function Hw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ww(e,t,n,r){t.value=n,t.getSnapshot=r,Kw(t)&&Gw(e)}function qw(e,t,n){return n(function(){Kw(t)&&Gw(e)})}function Kw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cn(e,n)}catch{return!0}}function Gw(e){var t=or(e,1);t!==null&&Sn(t,e,1,-1)}function H0(e){var t=An();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=Y5.bind(null,Ie,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Yw(){return Jt().memoizedState}function gc(e,t,n,r){var s=An();Ie.flags|=e,s.memoizedState=Aa(1|t,n,void 0,r===void 0?null:r)}function Au(e,t,n,r){var s=Jt();r=r===void 0?null:r;var o=void 0;if(Ke!==null){var i=Ke.memoizedState;if(o=i.destroy,r!==null&&Ep(r,i.deps)){s.memoizedState=Aa(t,n,o,r);return}}Ie.flags|=e,s.memoizedState=Aa(1|t,n,o,r)}function W0(e,t){return gc(8390656,8,e,t)}function Tp(e,t){return Au(2048,8,e,t)}function Qw(e,t){return Au(4,2,e,t)}function Zw(e,t){return Au(4,4,e,t)}function Jw(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 Xw(e,t,n){return n=n!=null?n.concat([e]):null,Au(4,4,Jw.bind(null,t,e),n)}function Np(){}function eb(e,t){var n=Jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ep(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tb(e,t){var n=Jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ep(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nb(e,t,n){return Vs&21?(Cn(n,t)||(n=aw(),Ie.lanes|=n,$s|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=n)}function K5(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var r=qd.transition;qd.transition={};try{e(!1),t()}finally{ve=n,qd.transition=r}}function rb(){return Jt().memoizedState}function G5(e,t,n){var r=Gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sb(e))ob(t,n);else if(n=$w(e,t,n,r),n!==null){var s=wt();Sn(n,e,r,s),ib(n,t,r)}}function Y5(e,t,n){var r=Gr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sb(e))ob(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,Cn(a,i)){var l=t.interleaved;l===null?(s.next=s,wp(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=$w(e,t,s,r),n!==null&&(s=wt(),Sn(n,e,r,s),ib(n,t,r))}}
vendor: 5,880 bytes, lines 38-40
38function sb(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function ob(e,t){sa=Qc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ib(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ip(e,n)}}var Zc={readContext:Zt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Q5={readContext:Zt,useCallback:function(e,t){return An().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:W0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gc(4194308,4,Jw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gc(4194308,4,e,t)},useInsertionEffect:function(e,t){return gc(4,2,e,t)},useMemo:function(e,t){var n=An();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=An();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=G5.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=An();return e={current:e},t.memoizedState=e},useState:H0,useDebugValue:Np,useDeferredValue:function(e){return An().memoizedState=e},useTransition:function(){var e=H0(!1),t=e[0];return e=K5.bind(null,e[1]),An().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,s=An();if(Te){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Qe===null)throw Error(L(349));Vs&30||Hw(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,W0(qw.bind(null,r,o,e),[e]),r.flags|=2048,Aa(9,Ww.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=An(),t=Qe.identifierPrefix;if(Te){var n=er,r=Xn;n=(r&~(1<<32-bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Na++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=q5++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Z5={readContext:Zt,useCallback:eb,useContext:Zt,useEffect:Tp,useImperativeHandle:Xw,useInsertionEffect:Qw,useLayoutEffect:Zw,useMemo:tb,useReducer:Kd,useRef:Yw,useState:function(){return Kd(Pa)},useDebugValue:Np,useDeferredValue:function(e){var t=Jt();return nb(t,Ke.memoizedState,e)},useTransition:function(){var e=Kd(Pa)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:Uw,useSyncExternalStore:zw,useId:rb,unstable_isNewReconciler:!1},J5={readContext:Zt,useCallback:eb,useContext:Zt,useEffect:Tp,useImperativeHandle:Xw,useInsertionEffect:Qw,useLayoutEffect:Zw,useMemo:tb,useReducer:Gd,useRef:Yw,useState:function(){return Gd(Pa)},useDebugValue:Np,useDeferredValue:function(e){var t=Jt();return Ke===null?t.memoizedState=e:nb(t,Ke.memoizedState,e)},useTransition:function(){var e=Gd(Pa)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:Uw,useSyncExternalStore:zw,useId:rb,unstable_isNewReconciler:!1};function hn(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Sh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ru={isMounted:function(e){return(e=e._reactInternals)?Ks(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wt(),s=Gr(e),o=nr(r,s);o.payload=t,n!=null&&(o.callback=n),t=qr(e,o,s),t!==null&&(Sn(t,e,s,r),mc(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wt(),s=Gr(e),o=nr(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=qr(e,o,s),t!==null&&(Sn(t,e,s,r),mc(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wt(),r=Gr(e),s=nr(n,r);s.tag=2,t!=null&&(s.callback=t),t=qr(e,s,r),t!==null&&(Sn(t,e,r,n),mc(t,e,r))}};function q0(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!_a(n,r)||!_a(s,o):!0}function ab(e,t,n){var r=!1,s=Zr,o=t.contextType;return typeof o=="object"&&o!==null?o=Zt(o):(s=Nt(t)?Ms:ft.current,r=t.contextTypes,o=(r=r!=null)?si(e,s):Zr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ru,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function K0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ru.enqueueReplaceState(t,t.state,null)}function _h(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},bp(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Zt(o):(o=Nt(t)?Ms:ft.current,s.context=si(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Sh(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Ru.enqueueReplaceState(s,s.state,null),Gc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function li(e,t){try{var n="",r=t;do n+=j3(r),r=r.return;while(r);var s=n}catch(o){s=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:s,digest:null}}function Yd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ch(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var X5=typeof WeakMap=="function"?WeakMap:Map;
vendor: 10,977 bytes, line 40
40function lb(e,t,n){n=nr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xc||(Xc=!0,Ih=r),Ch(e,t)},n}function cb(e,t,n){n=nr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ch(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ch(e,t),typeof r!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function G0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new X5;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=hE.bind(null,e,t,n),t.then(e,e))}function Y0(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 Q0(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=nr(-1,1),t.tag=2,qr(n,t,1))),n.lanes|=1),e)}var eE=ur.ReactCurrentOwner,kt=!1;function pt(e,t,n,r){t.child=e===null?Vw(t,null,n,r):ii(t,e.child,n,r)}function Z0(e,t,n,r,s){n=n.render;var o=t.ref;return Fo(t,s),r=jp(e,t,n,r,o,s),n=kp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(Te&&n&&mp(t),t.flags|=1,pt(e,t,r,s),t.child)}function J0(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Dp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ub(e,t,o,r,s)):(e=wc(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:_a,n(i,r)&&e.ref===t.ref)return ir(e,t,s)}return t.flags|=1,e=Yr(o,r),e.ref=t.ref,e.return=t,t.child=e}function ub(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(_a(o,r)&&e.ref===t.ref)if(kt=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(kt=!0);else return t.lanes=e.lanes,ir(e,t,s)}return Eh(e,t,n,r,s)}function db(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Se(To,It),It|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Se(To,It),It|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Se(To,It),It|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Se(To,It),It|=r;return pt(e,t,s,n),t.child}function fb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Eh(e,t,n,r,s){var o=Nt(n)?Ms:ft.current;return o=si(t,o),Fo(t,s),n=jp(e,t,n,r,o,s),r=kp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(Te&&r&&mp(t),t.flags|=1,pt(e,t,n,s),t.child)}function X0(e,t,n,r,s){if(Nt(n)){var o=!0;zc(t)}else o=!1;if(Fo(t,s),t.stateNode===null)vc(e,t),ab(t,n,r),_h(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Zt(u):(u=Nt(n)?Ms:ft.current,u=si(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&K0(t,i,r,u),kr=!1;var h=t.memoizedState;i.state=h,Gc(t,r,i,s),l=t.memoizedState,a!==r||h!==l||Tt.current||kr?(typeof d=="function"&&(Sh(t,n,d,r),l=t.memoizedState),(a=kr||q0(t,n,a,r,h,l,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Fw(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:hn(t.type,a),i.props=u,f=t.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Zt(l):(l=Nt(n)?Ms:ft.current,l=si(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==l)&&K0(t,i,r,l),kr=!1,h=t.memoizedState,i.state=h,Gc(t,r,i,s);var y=t.memoizedState;a!==f||h!==y||Tt.current||kr?(typeof m=="function"&&(Sh(t,n,m,r),y=t.memoizedState),(u=kr||q0(t,n,u,r,h,y,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return jh(e,t,n,r,o,s)}function jh(e,t,n,r,s,o){fb(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&V0(t,n,!1),ir(e,t,o);r=t.stateNode,eE.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ii(t,e.child,null,o),t.child=ii(t,null,a,o)):pt(e,t,a,o),t.memoizedState=r.state,s&&V0(t,n,!0),t.child}function hb(e){var t=e.stateNode;t.pendingContext?D0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&D0(e,t.context,!1),Sp(e,t.containerInfo)}function ev(e,t,n,r,s){return oi(),gp(s),t.flags|=256,pt(e,t,n,r),t.child}var kh={dehydrated:null,treeContext:null,retryLane:0};function Th(e){return{baseLanes:e,cachePool:null,transitions:null}}function mb(e,t,n){var r=t.pendingProps,s=Ae.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Se(Ae,s&1),e===null)return wh(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Lu(i,r,0,null),e=Os(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Th(n),t.memoizedState=kh,e):Pp(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return tE(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Yr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Yr(a,o):(o=Os(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Th(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=kh,r}return o=e.child,e=o.sibling,r=Yr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pp(e,t){return t=Lu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dl(e,t,n,r){return r!==null&&gp(r),ii(t,e.child,null,n),e=Pp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tE(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Yd(Error(L(422))),Dl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Lu({mode:"visible",children:r.children},s,0,null),o=Os(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ii(t,e.child,null,i),t.child.memoizedState=Th(i),t.memoizedState=kh,o);if(!(t.mode&1))return Dl(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(L(419)),r=Yd(o,r,void 0),Dl(e,t,i,r)}if(a=(i&e.childLanes)!==0,kt||a){if(r=Qe,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,or(e,s),Sn(r,e,s,-1))}return Mp(),r=Yd(Error(L(421))),Dl(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=mE.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,Dt=Wr(s.nextSibling),Vt=t,Te=!0,wn=null,e!==null&&(Wt[qt++]=Xn,Wt[qt++]=er,Wt[qt++]=Ds,Xn=e.id,er=e.overflow,Ds=t),t=Pp(t,r.children),t.flags|=4096,t)}function tv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bh(e.return,t,n)}function Qd(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function pb(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(pt(e,t,r.children,n),r=Ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tv(e,n,t);else if(e.tag===19)tv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Se(Ae,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Yc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Qd(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Yc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Qd(t,!0,n,null,o);break;case"together":Qd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ir(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$s|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=Yr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nE(e,t,n){switch(t.tag){case 3:hb(t),oi();break;case 5:Bw(t);break;case 1:Nt(t.type)&&zc(t);break;case 4:Sp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Se(qc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Se(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?mb(e,t,n):(Se(Ae,Ae.current&1),e=ir(e,t,n),e!==null?e.sibling:null);Se(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pb(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Se(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,db(e,t,n)}return ir(e,t,n)}var gb,Nh,vb,yb;gb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nh=function(){};vb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ss($n.current);var o=null;switch(n){case"input":s=Zf(e,s),r=Zf(e,r),o=[];break;case"select":s=Le({},s,{value:void 0}),r=Le({},r,{value:void 0}),o=[];break;case"textarea":s=eh(e,s),r=eh(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bc)}nh(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ga.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ga.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&je("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};yb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vi(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rE(e,t,n){var r=t.pendingProps;switch(pp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return Nt(t.type)&&Uc(),at(t),null;case 3:return r=t.stateNode,ai(),ke(Tt),ke(ft),Cp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wn!==null&&(Dh(wn),wn=null))),Nh(e,t),at(t),null;case 5:_p(t);var s=Ss(Ta.current);if(n=t.type,e!==null&&t.stateNode!=null)vb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return at(t),null}if(e=Ss($n.current),Ll(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ln]=t,r[ja]=o,e=(t.mode&1)!==0,n){case"dialog":je("cancel",r),je("close",r);break;case"iframe":case"object":case"embed":je("load",r);break;case"video":case"audio":for(s=0;s<Gi.length;s++)je(Gi[s],r);break;case"source":je("error",r);break;case"img":case"image":case"link":je("error",r),je("load",r);break;case"details":je("toggle",r);break;case"input":u0(r,o),je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},je("invalid",r);break;case"textarea":f0(r,o),je("invalid",r)}nh(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 28,896 bytes, line 40
40i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Il(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Il(r.textContent,a,e),s=["children",""+a]):ga.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&je("scroll",r)}switch(n){case"input":jl(r),d0(r,o,!0);break;case"textarea":jl(r),h0(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Bc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=q1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ln]=t,e[ja]=r,gb(e,t,!1,!1),t.stateNode=e;e:{switch(i=rh(n,r),n){case"dialog":je("cancel",e),je("close",e),s=r;break;case"iframe":case"object":case"embed":je("load",e),s=r;break;case"video":case"audio":for(s=0;s<Gi.length;s++)je(Gi[s],e);s=r;break;case"source":je("error",e),s=r;break;case"img":case"image":case"link":je("error",e),je("load",e),s=r;break;case"details":je("toggle",e),s=r;break;case"input":u0(e,r),s=Zf(e,r),je("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Le({},r,{value:void 0}),je("invalid",e);break;case"textarea":f0(e,r),s=eh(e,r),je("invalid",e);break;default:s=r}nh(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Y1(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&K1(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&va(e,l):typeof l=="number"&&va(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ga.hasOwnProperty(o)?l!=null&&o==="onScroll"&&je("scroll",e):l!=null&&ep(e,o,l,i))}switch(n){case"input":jl(e),d0(e,r,!1);break;case"textarea":jl(e),h0(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Mo(e,!!r.multiple,o,!1):r.defaultValue!=null&&Mo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Bc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return at(t),null;case 6:if(e&&t.stateNode!=null)yb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=Ss(Ta.current),Ss($n.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(o=r.nodeValue!==n)&&(e=Vt,e!==null))switch(e.tag){case 3:Il(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Il(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ln]=t,t.stateNode=r}return at(t),null;case 13:if(ke(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Te&&Dt!==null&&t.mode&1&&!(t.flags&128))Mw(),oi(),t.flags|=98560,o=!1;else if(o=Ll(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[Ln]=t}else oi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),o=!1}else wn!==null&&(Dh(wn),wn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ae.current&1?Ge===0&&(Ge=3):Mp())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return ai(),Nh(e,t),e===null&&Ca(t.stateNode.containerInfo),at(t),null;case 10:return xp(t.type._context),at(t),null;case 17:return Nt(t.type)&&Uc(),at(t),null;case 19:if(ke(Ae),o=t.memoizedState,o===null)return at(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Vi(o,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Yc(e),i!==null){for(t.flags|=128,Vi(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Se(Ae,Ae.current&1|2),t.child}e=e.sibling}o.tail!==null&&$e()>ci&&(t.flags|=128,r=!0,Vi(o,!1),t.lanes=4194304)}else{if(!r)if(e=Yc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Te)return at(t),null}else 2*$e()-o.renderingStartTime>ci&&n!==1073741824&&(t.flags|=128,r=!0,Vi(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$e(),t.sibling=null,n=Ae.current,Se(Ae,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return Lp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?It&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function sE(e,t){switch(pp(t),t.tag){case 1:return Nt(t.type)&&Uc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ai(),ke(Tt),ke(ft),Cp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _p(t),null;case 13:if(ke(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ae),null;case 4:return ai(),null;case 10:return xp(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var Vl=!1,ct=!1,oE=typeof WeakSet=="function"?WeakSet:Set,W=null;function ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Ph(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var nv=!1;function iE(e,t){if(hh=Vc,e=_w(),hp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===s&&(a=i),h===o&&++d===r&&(l=i),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mh={focusedElem:e,selectionRange:n},Vc=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:hn(t.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}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(L(163))}}catch(S){Ve(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return y=nv,nv=!1,y}function oa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Ph(t,n,o)}s=s.next}while(s!==r)}}function Ou(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ah(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xb(e){var t=e.alternate;t!==null&&(e.alternate=null,xb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[ja],delete t[vh],delete t[U5],delete t[z5])),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 wb(e){return e.tag===5||e.tag===3||e.tag===4}function rv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wb(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 Rh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bc));else if(r!==4&&(e=e.child,e!==null))for(Rh(e,t,n),e=e.sibling;e!==null;)Rh(e,t,n),e=e.sibling}function Oh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Oh(e,t,n),e=e.sibling;e!==null;)Oh(e,t,n),e=e.sibling}var tt=null,yn=!1;function vr(e,t,n){for(n=n.child;n!==null;)bb(e,t,n),n=n.sibling}function bb(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(Eu,n)}catch{}switch(n.tag){case 5:ct||ko(n,t);case 6:var r=tt,s=yn;tt=null,vr(e,t,n),tt=r,yn=s,tt!==null&&(yn?(e=tt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tt.removeChild(n.stateNode));break;case 18:tt!==null&&(yn?(e=tt,n=n.stateNode,e.nodeType===8?zd(e.parentNode,n):e.nodeType===1&&zd(e,n),ba(e)):zd(tt,n.stateNode));break;case 4:r=tt,s=yn,tt=n.stateNode.containerInfo,yn=!0,vr(e,t,n),tt=r,yn=s;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ph(n,t,i),s=s.next}while(s!==r)}vr(e,t,n);break;case 1:if(!ct&&(ko(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,t,a)}vr(e,t,n);break;case 21:vr(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,vr(e,t,n),ct=r):vr(e,t,n);break;default:vr(e,t,n)}}function sv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oE),t.forEach(function(r){var s=pE.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:tt=a.stateNode,yn=!1;break e;case 3:tt=a.stateNode.containerInfo,yn=!0;break e;case 4:tt=a.stateNode.containerInfo,yn=!0;break e}a=a.return}if(tt===null)throw Error(L(160));bb(o,i,s),tt=null,yn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Ve(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sb(t,e),t=t.sibling}function Sb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(an(t,e),Pn(e),r&4){try{oa(3,e,e.return),Ou(3,e)}catch(p){Ve(e,e.return,p)}try{oa(5,e,e.return)}catch(p){Ve(e,e.return,p)}}break;case 1:an(t,e),Pn(e),r&512&&n!==null&&ko(n,n.return);break;case 5:if(an(t,e),Pn(e),r&512&&n!==null&&ko(n,n.return),e.flags&32){var s=e.stateNode;try{va(s,"")}catch(p){Ve(e,e.return,p)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&H1(s,o),rh(a,i);var u=rh(a,o);for(i=0;i<l.length;i+=2){var d=l[i],f=l[i+1];d==="style"?Y1(s,f):d==="dangerouslySetInnerHTML"?K1(s,f):d==="children"?va(s,f):ep(s,d,f,u)}switch(a){case"input":Jf(s,o);break;case"textarea":W1(s,o);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Mo(s,!!o.multiple,m,!1):h!==!!o.multiple&&(o.defaultValue!=null?Mo(s,!!o.multiple,o.defaultValue,!0):Mo(s,!!o.multiple,o.multiple?[]:"",!1))}s[ja]=o}catch(p){Ve(e,e.return,p)}}break;case 6:if(an(t,e),Pn(e),r&4){if(e.stateNode===null)throw Error(L(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(p){Ve(e,e.return,p)}}break;case 3:if(an(t,e),Pn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(p){Ve(e,e.return,p)}break;case 4:an(t,e),Pn(e);break;case 13:an(t,e),Pn(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Op=$e())),r&4&&sv(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ct=(u=ct)||d,an(t,e),ct=u):an(t,e),Pn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(W=e,d=e.child;d!==null;){for(f=W=d;W!==null;){switch(h=W,m=h.child,h.tag){case 0:case 11:case 14:case 15:oa(4,h,h.return);break;case 1:ko(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(p){Ve(r,n,p)}}break;case 5:ko(h,h.return);break;case 22:if(h.memoizedState!==null){iv(f);continue}}m!==null?(m.return=h,W=m):iv(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=G1("display",i))}catch(p){Ve(e,e.return,p)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(p){Ve(e,e.return,p)}}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:an(t,e),Pn(e),r&4&&sv(e);break;case 21:break;default:an(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wb(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(va(s,""),r.flags&=-33);var o=rv(e);Oh(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=rv(e);Rh(e,a,i);break;default:throw Error(L(161))}}catch(l){Ve(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aE(e,t,n){W=e,_b(e)}function _b(e,t,n){for(var r=(e.mode&1)!==0;W!==null;){var s=W,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Vl;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ct;a=Vl;var u=ct;if(Vl=i,(ct=l)&&!u)for(W=s;W!==null;)i=W,l=i.child,i.tag===22&&i.memoizedState!==null?av(s):l!==null?(l.return=i,W=l):av(s);for(;o!==null;)W=o,_b(o),o=o.sibling;W=s,Vl=a,ct=u}ov(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,W=o):ov(e)}}function ov(e){for(;W!==null;){var t=W;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ct||Ou(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ct)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:hn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&z0(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}z0(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ba(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}ct||t.flags&512&&Ah(t)}catch(h){Ve(t,t.return,h)}}if(t===e){W=null;break}if(n=t.sibling,n!==null){n.return=t.return,W=n;break}W=t.return}}function iv(e){for(;W!==null;){var t=W;if(t===e){W=null;break}var n=t.sibling;if(n!==null){n.return=t.return,W=n;break}W=t.return}}function av(e){for(;W!==null;){var t=W;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ou(4,t)}catch(l){Ve(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ve(t,s,l)}}var o=t.return;try{Ah(t)}catch(l){Ve(t,o,l)}break;case 5:var i=t.return;try{Ah(t)}catch(l){Ve(t,i,l)}}}catch(l){Ve(t,t.return,l)}if(t===e){W=null;break}var a=t.sibling;if(a!==null){a.return=t.return,W=a;break}W=t.return}}var lE=Math.ceil,Jc=ur.ReactCurrentDispatcher,Ap=ur.ReactCurrentOwner,Yt=ur.ReactCurrentBatchConfig,fe=0,Qe=null,Ue=null,rt=0,It=0,To=ss(0),Ge=0,Ra=null,$s=0,Iu=0,Rp=0,ia=null,jt=null,Op=0,ci=1/0,Yn=null,Xc=!1,Ih=null,Kr=null,$l=!1,$r=null,eu=0,aa=0,Lh=null,yc=-1,xc=0;function wt(){return fe&6?$e():yc!==-1?yc:yc=$e()}function Gr(e){return e.mode&1?fe&2&&rt!==0?rt&-rt:W5.transition!==null?(xc===0&&(xc=aw()),xc):(e=ve,e!==0||(e=window.event,e=e===void 0?16:mw(e.type)),e):1}function Sn(e,t,n,r){if(50<aa)throw aa=0,Lh=null,Error(L(185));nl(e,n,r),(!(fe&2)||e!==Qe)&&(e===Qe&&(!(fe&2)&&(Iu|=n),Ge===4&&Pr(e,rt)),Pt(e,r),n===1&&fe===0&&!(t.mode&1)&&(ci=$e()+500,Pu&&os()))}function Pt(e,t){var n=e.callbackNode;W3(e,t);var r=Dc(e,e===Qe?rt:0);if(r===0)n!==null&&g0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&g0(n),t===1)e.tag===0?H5(lv.bind(null,e)):Ow(lv.bind(null,e)),F5(function(){!(fe&6)&&os()}),n=null;else{switch(lw(r)){case 1:n=op;break;case 4:n=ow;break;case 16:n=Mc;break;case 536870912:n=iw;break;default:n=Mc}n=Ab(n,Cb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cb(e,t){if(yc=-1,xc=0,fe&6)throw Error(L(327));var n=e.callbackNode;if(Bo()&&e.callbackNode!==n)return null;var r=Dc(e,e===Qe?rt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=tu(e,r);else{t=r;var s=fe;fe|=2;var o=jb();(Qe!==e||rt!==t)&&(Yn=null,ci=$e()+500,Rs(e,t));do try{dE();break}catch(a){Eb(e,a)}while(!0);yp(),Jc.current=o,fe=s,Ue!==null?t=0:(Qe=null,rt=0,t=Ge)}if(t!==0){if(t===2&&(s=lh(e),s!==0&&(r=s,t=Mh(e,s))),t===1)throw n=Ra,Rs(e,0),Pr(e,r),Pt(e,$e()),n;if(t===6)Pr(e,r);else{if(s=e.current.alternate,!(r&30)&&!cE(s)&&(t=tu(e,r),t===2&&(o=lh(e),o!==0&&(r=o,t=Mh(e,o))),t===1))throw n=Ra,Rs(e,0),Pr(e,r),Pt(e,$e()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:ms(e,jt,Yn);break;case 3:if(Pr(e,r),(r&130023424)===r&&(t=Op+500-$e(),10<t)){if(Dc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){wt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=gh(ms.bind(null,e,jt,Yn),t);break}ms(e,jt,Yn);break;case 4:if(Pr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-bn(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lE(r/1960))-r,10<r){e.timeoutHandle=gh(ms.bind(null,e,jt,Yn),r);break}ms(e,jt,Yn);break;case 5:ms(e,jt,Yn);break;default:throw Error(L(329))}}}return Pt(e,$e()),e.callbackNode===n?Cb.bind(null,e):null}function Mh(e,t){var n=ia;return e.current.memoizedState.isDehydrated&&(Rs(e,t).flags|=256),e=tu(e,t),e!==2&&(t=jt,jt=n,t!==null&&Dh(t)),e}function Dh(e){jt===null?jt=e:jt.push.apply(jt,e)}function cE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!Cn(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pr(e,t){for(t&=~Rp,t&=~Iu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bn(t),r=1<<n;e[n]=-1,t&=~r}}function lv(e){if(fe&6)throw Error(L(327));Bo();var t=Dc(e,0);if(!(t&1))return Pt(e,$e()),null;var n=tu(e,t);if(e.tag!==0&&n===2){var r=lh(e);r!==0&&(t=r,n=Mh(e,r))}if(n===1)throw n=Ra,Rs(e,0),Pr(e,t),Pt(e,$e()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ms(e,jt,Yn),Pt(e,$e()),null}function Ip(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(ci=$e()+500,Pu&&os())}}function Fs(e){$r!==null&&$r.tag===0&&!(fe&6)&&Bo();var t=fe;fe|=1;var n=Yt.transition,r=ve;try{if(Yt.transition=null,ve=1,e)return e()}finally{ve=r,Yt.transition=n,fe=t,!(fe&6)&&os()}}function Lp(){It=To.current,ke(To)}function Rs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$5(n)),Ue!==null)for(n=Ue.return;n!==null;){var r=n;switch(pp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Uc();break;case 3:ai(),ke(Tt),ke(ft),Cp();break;case 5:_p(r);break;case 4:ai();break;case 13:ke(Ae);break;case 19:ke(Ae);break;case 10:xp(r.type._context);break;case 22:case 23:Lp()}n=n.return}if(Qe=e,Ue=e=Yr(e.current,null),rt=It=t,Ge=0,Ra=null,Rp=Iu=$s=0,jt=ia=null,bs!==null){for(t=0;t<bs.length;t++)if(n=bs[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}bs=null}return e}function Eb(e,t){do{var n=Ue;try{if(yp(),pc.current=Zc,Qc){for(var r=Ie.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Qc=!1}if(Vs=0,Ye=Ke=Ie=null,sa=!1,Na=0,Ap.current=null,n===null||n.return===null){Ge=1,Ra=t,Ue=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=rt,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 m=Y0(i);if(m!==null){m.flags&=-257,Q0(m,i,a,o,t),m.mode&1&&G0(o,u,t),t=m,l=u;var y=t.updateQueue;if(y===null){var p=new Set;p.add(l),t.updateQueue=p}else y.add(l);break e}else{if(!(t&1)){G0(o,u,t),Mp();break e}l=Error(L(426))}}else if(Te&&a.mode&1){var b=Y0(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Q0(b,i,a,o,t),gp(li(l,a));break e}}o=l=li(l,a),Ge!==4&&(Ge=2),ia===null?ia=[o]:ia.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=lb(o,l,t);U0(o,v);break e;case 1:a=l;var g=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Kr===null||!Kr.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=cb(o,a,t);U0(o,S);break e}}o=o.return}while(o!==null)}Tb(n)}catch(_){t=_,Ue===n&&n!==null&&(Ue=n=n.return);continue}break}while(!0)}function jb(){var e=Jc.current;return Jc.current=Zc,e===null?Zc:e}function Mp(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Qe===null||!($s&268435455)&&!(Iu&268435455)||Pr(Qe,rt)}function tu(e,t){var n=fe;fe|=2;var r=jb();(Qe!==e||rt!==t)&&(Yn=null,Rs(e,t));do try{uE();break}catch(s){Eb(e,s)}while(!0);if(yp(),fe=n,Jc.current=r,Ue!==null)throw Error(L(261));return Qe=null,rt=0,Ge}function uE(){for(;Ue!==null;)kb(Ue)}function dE(){for(;Ue!==null&&!M3();)kb(Ue)}function kb(e){var t=Pb(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?Tb(e):Ue=t,Ap.current=null}function Tb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=sE(n,t),n!==null){n.flags&=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Ue=null;return}}else if(n=rE(n,t,It),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);Ge===0&&(Ge=5)}function ms(e,t,n){var r=ve,s=Yt.transition;try{Yt.transition=null,ve=1,fE(e,t,n,r)}finally{Yt.transition=s,ve=r}return null}function fE(e,t,n,r){do Bo();while($r!==null);if(fe&6)throw Error(L(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(q3(e,o),e===Qe&&(Ue=Qe=null,rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$l||($l=!0,Ab(Mc,function(){return Bo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Yt.transition,Yt.transition=null;var i=ve;ve=1;var a=fe;fe|=4,Ap.current=null,iE(e,n),Sb(n,e),R5(mh),Vc=!!hh,mh=hh=null,e.current=n,aE(n),D3(),fe=a,ve=i,Yt.transition=o}else e.current=n;if($l&&($l=!1,$r=e,eu=s),o=e.pendingLanes,o===0&&(Kr=null),F3(n.stateNode),Pt(e,$e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Xc)throw Xc=!1,e=Ih,Ih=null,e;return eu&1&&e.tag!==0&&Bo(),o=e.pendingLanes,o&1?e===Lh?aa++:(aa=0,Lh=e):aa=0,os(),null}function Bo(){if($r!==null){var e=lw(eu),t=Yt.transition,n=ve;try{if(Yt.transition=null,ve=16>e?16:e,$r===null)var r=!1;else{if(e=$r,$r=null,eu=0,fe&6)throw Error(L(331));var s=fe;for(fe|=4,W=e.current;W!==null;){var o=W,i=o.child;if(W.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(W=u;W!==null;){var d=W;switch(d.tag){case 0:case 11:case 15:oa(8,d,o)}var f=d.child;if(f!==null)f.return=d,W=f;else for(;W!==null;){d=W;var h=d.sibling,m=d.return;if(xb(d),d===u){W=null;break}if(h!==null){h.return=m,W=h;break}W=m}}}var y=o.alternate;if(y!==null){var p=y.child;if(p!==null){y.child=null;do{var b=p.sibling;p.sibling=null,p=b}while(p!==null)}}W=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,W=i;else e:for(;W!==null;){if(o=W,o.flags&2048)switch(o.tag){case 0:case 11:case 15:oa(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,W=v;break e}W=o.return}}var g=e.current;for(W=g;W!==null;){i=W;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,W=w;else e:for(i=g;W!==null;){if(a=W,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ou(9,a)}}catch(_){Ve(a,a.return,_)}if(a===i){W=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,W=S;break e}W=a.return}}if(fe=s,os(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(Eu,e)}catch{}r=!0}return r}finally{ve=n,Yt.transition=t}}return!1}function cv(e,t,n){t=li(n,t),t=lb(e,t,1),e=qr(e,t,1),t=wt(),e!==null&&(nl(e,1,t),Pt(e,t))}function Ve(e,t,n){if(e.tag===3)cv(e,e,n);else for(;t!==null;){if(t.tag===3){cv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kr===null||!Kr.has(r))){e=li(n,e),e=cb(t,e,1),t=qr(t,e,1),e=wt(),t!==null&&(nl(t,1,e),Pt(t,e));break}}t=t.return}}function hE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wt(),e.pingedLanes|=e.suspendedLanes&n,Qe===e&&(rt&n)===n&&(Ge===4||Ge===3&&(rt&130023424)===rt&&500>$e()-Op?Rs(e,0):Rp|=n),Pt(e,t)}function Nb(e,t){t===0&&(e.mode&1?(t=Nl,Nl<<=1,!(Nl&130023424)&&(Nl=4194304)):t=1);var n=wt();e=or(e,t),e!==null&&(nl(e,t,n),Pt(e,n))}function mE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nb(e,n)}function pE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Nb(e,n)}var Pb;Pb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return kt=!1,nE(e,t,n);kt=!!(e.flags&131072)}else kt=!1,Te&&t.flags&1048576&&Iw(t,Wc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vc(e,t),e=t.pendingProps;var s=si(t,ft.current);Fo(t,n),s=jp(null,t,r,e,s,n);var o=kp();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,Nt(r)?(o=!0,zc(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,bp(t),s.updater=Ru,t.stateNode=s,s._reactInternals=t,_h(t,r,e,n),t=jh(null,t,r,!0,o,n)):(t.tag=0,Te&&o&&mp(t),pt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vc(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=vE(r),e=hn(r,e),s){case 0:t=Eh(null,t,r,e,n);break e;case 1:t=X0(null,t,r,e,n);break e;case 11:t=Z0(null,t,r,e,n);break e;case 14:t=J0(null,t,r,hn(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:hn(r,s),Eh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:hn(r,s),X0(e,t,r,s,n);case 3:e:{if(hb(t),e===null)throw Error(L(387));
vendor: 4,674 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,s=o.element,Fw(e,t),Gc(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=li(Error(L(423)),t),t=ev(e,t,r,n,s);break e}else if(r!==s){s=li(Error(L(424)),t),t=ev(e,t,r,n,s);break e}else for(Dt=Wr(t.stateNode.containerInfo.firstChild),Vt=t,Te=!0,wn=null,n=Vw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oi(),r===s){t=ir(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return Bw(t),e===null&&wh(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,ph(r,s)?i=null:o!==null&&ph(r,o)&&(t.flags|=32),fb(e,t),pt(e,t,i,n),t.child;case 6:return e===null&&wh(t),null;case 13:return mb(e,t,n);case 4:return Sp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ii(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:hn(r,s),Z0(e,t,r,s,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,Se(qc,r._currentValue),r._currentValue=i,o!==null)if(Cn(o.value,i)){if(o.children===s.children&&!Tt.current){t=ir(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=nr(-1,n&-n),l.tag=2;var u=o.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}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),bh(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(L(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),bh(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}pt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Fo(t,n),s=Zt(s),r=r(s),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,s=hn(r,t.pendingProps),s=hn(r.type,s),J0(e,t,r,s,n);case 15:return ub(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:hn(r,s),vc(e,t),t.tag=1,Nt(r)?(e=!0,zc(t)):e=!1,Fo(t,n),ab(t,r,s),_h(t,r,s,n),jh(null,t,r,!0,e,n);case 19:return pb(e,t,n);case 22:return db(e,t,n)}throw Error(L(156,t.tag))};function Ab(e,t){return sw(e,t)}function gE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,n,r){return new gE(e,t,n,r)}function Dp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vE(e){if(typeof e=="function")return Dp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===np)return 11;if(e===rp)return 14}return 2}function Yr(e,t){var n=e.alternate;return n===null?(n=Kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wc(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Dp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case yo:return Os(n.children,s,o,t);case tp:i=8,s|=8;break;case Kf:return e=Kt(12,n,t,s|2),e.elementType=Kf,e.lanes=o,e;case Gf:return e=Kt(13,n,t,s),e.elementType=Gf,e.lanes=o,e;case Yf:return e=Kt(19,n,t,s),e.elementType=Yf,e.lanes=o,e;case B1:return Lu(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $1:i=10;break e;case F1:i=9;break e;case np:i=11;break e;case rp:i=14;break e;case jr:i=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Kt(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function Os(e,t,n,r){return e=Kt(7,e,r,t),e.lanes=n,e}function Lu(e,t,n,r){return e=Kt(22,e,r,t),e.elementType=B1,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 4,686 bytes, line 40
40function Zd(e,t,n){return e=Kt(6,e,null,t),e.lanes=n,e}function Jd(e,t,n){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yE(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rd(0),this.expirationTimes=Rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Vp(e,t,n,r,s,o,i,a,l){return e=new yE(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Kt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bp(o),e}function xE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Rb(e){if(!e)return Zr;e=e._reactInternals;e:{if(Ks(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(Nt(n))return Rw(e,n,t)}return t}function Ob(e,t,n,r,s,o,i,a,l){return e=Vp(n,r,!0,e,s,o,i,a,l),e.context=Rb(null),n=e.current,r=wt(),s=Gr(n),o=nr(r,s),o.callback=t??null,qr(n,o,s),e.current.lanes=s,nl(e,s,r),Pt(e,r),e}function Mu(e,t,n,r){var s=t.current,o=wt(),i=Gr(s);return n=Rb(n),t.context===null?t.context=n:t.pendingContext=n,t=nr(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qr(s,t,i),e!==null&&(Sn(e,s,i,o),mc(e,s,i)),i}function nu(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 uv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $p(e,t){uv(e,t),(e=e.alternate)&&uv(e,t)}function wE(){return null}var Ib=typeof reportError=="function"?reportError:function(e){console.error(e)};function Fp(e){this._internalRoot=e}Du.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Mu(e,t,null,null)};Du.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fs(function(){Mu(null,e,null,null)}),t[sr]=null}};function Du(e){this._internalRoot=e}Du.prototype.unstable_scheduleHydration=function(e){if(e){var t=dw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nr.length&&t!==0&&t<Nr[n].priority;n++);Nr.splice(n,0,e),n===0&&hw(e)}};function Bp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dv(){}function bE(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=nu(i);o.call(u)}}var i=Ob(t,r,e,0,null,!1,!1,"",dv);return e._reactRootContainer=i,e[sr]=i.current,Ca(e.nodeType===8?e.parentNode:e),Fs(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=nu(l);a.call(u)}}var l=Vp(e,0,!1,null,null,!1,!1,"",dv);return e._reactRootContainer=l,e[sr]=l.current,Ca(e.nodeType===8?e.parentNode:e),Fs(function(){Mu(t,l,n,r)}),l}function $u(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=nu(i);a.call(l)}}Mu(t,i,e,s)}else i=bE(n,t,e,s,r);return nu(i)}cw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ki(t.pendingLanes);n!==0&&(ip(t,n|1),Pt(t,$e()),!(fe&6)&&(ci=$e()+500,os()))}break;case 13:Fs(function(){var r=or(e,1);if(r!==null){var s=wt();Sn(r,e,1,s)}}),$p(e,1)}};ap=function(e){if(e.tag===13){var t=or(e,134217728);if(t!==null){var n=wt();Sn(t,e,134217728,n)}$p(e,134217728)}};uw=function(e){if(e.tag===13){var t=Gr(e),n=or(e,t);if(n!==null){var r=wt();Sn(n,e,t,r)}$p(e,t)}};dw=function(){return ve};fw=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};oh=function(e,t,n){switch(t){case"input":if(Jf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Nu(r);
40if(!s)throw Error(L(90));z1(r),Jf(r,s)}}}break;case"textarea":W1(e,n);break;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}};J1=Ip;X1=Fs;var SE={usingClientEntryPoint:!1,Events:[sl,So,Nu,Q1,Z1,Ip]},$i={findFiberByHostInstance:ws,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_E={bundleType:$i.bundleType,version:$i.version,rendererPackageName:$i.rendererPackageName,rendererConfig:$i.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ur.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nw(e),e===null?null:e.stateNode},findFiberByHostInstance:$i.findFiberByHostInstance||wE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fl.isDisabled&&Fl.supportsFiber)try{Eu=Fl.inject(_E),Vn=Fl}catch{}}Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SE;Bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bp(t))throw Error(L(200));return xE(e,t,null,n)};Bt.createRoot=function(e,t){if(!Bp(e))throw Error(L(299));var n=!1,r="",s=Ib;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Vp(e,1,!1,null,null,n,!1,r,s),e[sr]=t.current,Ca(e.nodeType===8?e.parentNode:e),new Fp(t)};Bt.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(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=nw(t),e=e===null?null:e.stateNode,e};Bt.flushSync=function(e){return Fs(e)};Bt.hydrate=function(e,t,n){if(!Vu(t))throw Error(L(200));return $u(null,e,t,!0,n)};Bt.hydrateRoot=function(e,t,n){if(!Bp(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Ib;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ob(t,null,e,1,n??null,s,!1,o,i),e[sr]=t.current,Ca(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Du(t)};Bt.render=function(e,t,n){if(!Vu(t))throw Error(L(200));return $u(null,e,t,!1,n)};Bt.unmountComponentAtNode=function(e){if(!Vu(e))throw Error(L(40));return e._reactRootContainer?(Fs(function(){$u(null,null,e,!1,function(){e._reactRootContainer=null,e[sr]=null})}),!0):!1};Bt.unstable_batchedUpdates=Ip;Bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vu(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return $u(e,t,n,!1,r)};Bt.version="18.3.1-next-f1338f8080-20240426";function Lb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lb)}catch(e){console.error(e)}}Lb(),L1.exports=Bt;var Gs=L1.exports;const Mb=_1(Gs);var Db,fv=Gs;Db=fv.createRoot,fv.hydrateRoot;const CE=1,EE=1e6;let Xd=0;function jE(){return Xd=(Xd+1)%Number.MAX_SAFE_INTEGER,Xd.toString()}const ef=new Map,hv=e=>{if(ef.has(e))return;const t=setTimeout(()=>{ef.delete(e),la({type:"REMOVE_TOAST",toastId:e})},EE);ef.set(e,t)},kE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,CE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?hv(n):e.toasts.forEach(r=>{hv(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},bc=[];let Sc={toasts:[]};
vendor: 13,725 bytes, line 40
40function la(e){Sc=kE(Sc,e),bc.forEach(t=>{t(Sc)})}function TE({...e}){const t=jE(),n=s=>la({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>la({type:"DISMISS_TOAST",toastId:t});return la({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function NE(){const[e,t]=x.useState(Sc);return x.useEffect(()=>(bc.push(t),()=>{const n=bc.indexOf(t);n>-1&&bc.splice(n,1)}),[e]),{...e,toast:TE,dismiss:n=>la({type:"DISMISS_TOAST",toastId:n})}}function ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function mv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vb(...e){return t=>{let n=!1;const r=e.map(s=>{const o=mv(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():mv(e[s],null)}}}}function Ce(...e){return x.useCallback(Vb(...e),e)}function PE(e,t){const n=x.createContext(t),r=o=>{const{children:i,...a}=o,l=x.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function s(o){const i=x.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function Ys(e,t=[]){let n=[];function r(o,i){const a=x.createContext(i),l=n.length;n=[...n,i];const u=f=>{var v;const{scope:h,children:m,...y}=f,p=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,b=x.useMemo(()=>y,Object.values(y));return c.jsx(p.Provider,{value:b,children:m})};u.displayName=o+"Provider";function d(f,h){var p;const m=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,y=x.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const s=()=>{const o=n.map(i=>x.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,AE(s,...t)]}function AE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ui(e){const t=OE(e),n=x.forwardRef((r,s)=>{const{children:o,...i}=r,a=x.Children.toArray(o),l=a.find(LE);if(l){const u=l.props.children,d=a.map(f=>f===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:f);return c.jsx(t,{...i,ref:s,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var RE=ui("Slot");function OE(e){const t=x.forwardRef((n,r)=>{const{children:s,...o}=n;if(x.isValidElement(s)){const i=DE(s),a=ME(o,s.props);return s.type!==x.Fragment&&(a.ref=r?Vb(r,i):i),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $b=Symbol("radix.slottable");function IE(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=$b,t}function LE(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$b}function ME(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function DE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Fb(e){const t=e+"CollectionProvider",[n,r]=Ys(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:b,children:v}=p,g=$.useRef(null),w=$.useRef(new Map).current;return c.jsx(s,{scope:b,itemMap:w,collectionRef:g,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ui(a),u=$.forwardRef((p,b)=>{const{scope:v,children:g}=p,w=o(a,v),S=Ce(b,w.collectionRef);return c.jsx(l,{ref:S,children:g})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=ui(d),m=$.forwardRef((p,b)=>{const{scope:v,children:g,...w}=p,S=$.useRef(null),_=Ce(b,S),C=o(d,v);return $.useEffect(()=>(C.itemMap.set(S,{ref:S,...w}),()=>void C.itemMap.delete(S))),c.jsx(h,{[f]:"",ref:_,children:g})});m.displayName=d;function y(p){const b=o(e+"CollectionConsumer",p);return $.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,E)=>w.indexOf(C.ref.current)-w.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},y,r]}var VE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=VE.reduce((e,t)=>{const n=ui(`Primitive.${t}`),r=x.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bb(e,t){e&&Gs.flushSync(()=>e.dispatchEvent(t))}function En(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function $E(e,t=globalThis==null?void 0:globalThis.document){const n=En(e);x.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var FE="DismissableLayer",Vh="dismissableLayer.update",BE="dismissableLayer.pointerDownOutside",UE="dismissableLayer.focusOutside",pv,Ub=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),il=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,u=x.useContext(Ub),[d,f]=x.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=x.useState({}),y=Ce(t,E=>f(E)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(b),g=d?p.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=v,_=HE(E=>{const j=E.target,k=[...u.branches].some(N=>N.contains(j));!S||k||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},h),C=WE(E=>{const j=E.target;[...u.branches].some(N=>N.contains(j))||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},h);return $E(E=>{g===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(pv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),gv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=pv)}},[d,h,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),gv())},[d,u]),x.useEffect(()=>{const E=()=>m({});return document.addEventListener(Vh,E),()=>document.removeEventListener(Vh,E)},[]),c.jsx(ce.div,{...l,ref:y,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,_.onPointerDownCapture)})});il.displayName=FE;var zE="DismissableLayerBranch",zb=x.forwardRef((e,t)=>{const n=x.useContext(Ub),r=x.useRef(null),s=Ce(t,r);return x.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),c.jsx(ce.div,{...e,ref:s})});zb.displayName=zE;function HE(e,t=globalThis==null?void 0:globalThis.document){const n=En(e),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Hb(BE,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function WE(e,t=globalThis==null?void 0:globalThis.document){const n=En(e),r=x.useRef(!1);return x.useEffect(()=>{const s=o=>{o.target&&!r.current&&Hb(UE,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gv(){const e=new CustomEvent(Vh);document.dispatchEvent(e)}function Hb(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Bb(s,o):s.dispatchEvent(o)}var qE=il,KE=zb,Ze=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},GE="Portal",Fu=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=x.useState(!1);Ze(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Mb.createPortal(c.jsx(ce.div,{...r,ref:t}),i):null});Fu.displayName=GE;function YE(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Qs=e=>{const{present:t,children:n}=e,r=QE(t),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),o=Ce(r.ref,ZE(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:o}):null};Qs.displayName="Presence";function QE(e){const[t,n]=x.useState(),r=x.useRef(null),s=x.useRef(e),o=x.useRef("none"),i=e?"mounted":"unmounted",[a,l]=YE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Bl(r.current);o.current=a==="mounted"?u:"none"},[a]),Ze(()=>{const u=r.current,d=s.current;if(d!==e){const h=o.current,m=Bl(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Ze(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const p=Bl(r.current).includes(m.animationName);if(m.target===t&&p&&(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=m=>{m.target===t&&(o.current=Bl(r.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:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Bl(e){return(e==null?void 0:e.animationName)||"none"}function ZE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var JE=Zm[" useInsertionEffect ".trim().toString()]||Ze;function Oa({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,o,i]=XE({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=x.useCallback(d=>{var f;if(a){const h=ej(d)?d(e):d;h!==e&&((f=i.current)==null||f.call(i,h))}else o(d)},[a,e,o,i]);return[l,u]}function XE({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),s=x.useRef(n),o=x.useRef(t);return JE(()=>{o.current=t},[t]),x.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function ej(e){return typeof e=="function"}var Wb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tj="VisuallyHidden",Bu=x.forwardRef((e,t)=>c.jsx(ce.span,{...e,ref:t,style:{...Wb,...e.style}}));Bu.displayName=tj;var nj=Bu,Up="ToastProvider",[zp,rj,sj]=Fb("Toast"),[qb,kV]=Ys("Toast",[sj]),[oj,Uu]=qb(Up),Kb=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=x.useState(null),[u,d]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Up}\`. Expected non-empty \`string\`.`),c.jsx(zp.Provider,{scope:t,children:c.jsx(oj,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>d(m=>m+1),[]),onToastRemove:x.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};Kb.displayName=Up;var Gb="ToastViewport",ij=["F8"],$h="toast.viewportPause",Fh="toast.viewportResume",Yb=x.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=ij,label:s="Notifications ({hotkey})",...o}=e,i=Uu(Gb,n),a=rj(n),l=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),h=Ce(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;x.useEffect(()=>{const b=v=>{var w;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),x.useEffect(()=>{const b=l.current,v=f.current;if(y&&b&&v){const g=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent($h);v.dispatchEvent(C),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(Fh);v.dispatchEvent(C),i.isClosePausedRef.current=!1}},S=C=>{!b.contains(C.relatedTarget)&&w()},_=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",g),b.addEventListener("focusout",S),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",_),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",_),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[y,i.isClosePausedRef]);const p=x.useCallback(({tabbingDirection:b})=>{const g=a().map(w=>{const S=w.ref.current,_=[S,...xj(S)];return b==="forwards"?_:_.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return x.useEffect(()=>{const b=f.current;if(b){const v=g=>{var _,C,E;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const j=document.activeElement,k=g.shiftKey;if(g.target===b&&k){(_=u.current)==null||_.focus();return}const O=p({tabbingDirection:k?"backwards":"forwards"}),U=O.findIndex(A=>A===j);tf(O.slice(U+1))?g.preventDefault():k?(C=u.current)==null||C.focus():(E=d.current)==null||E.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,p]),c.jsxs(KE,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&c.jsx(Bh,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});tf(b)}}),c.jsx(zp.Slot,{scope:n,children:c.jsx(ce.ol,{tabIndex:-1,...o,ref:h})}),y&&c.jsx(Bh,{ref:d,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});tf(b)}})]})});Yb.displayName=Gb;var Qb="ToastFocusProxy",Bh=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=Uu(Qb,n);return c.jsx(Bu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Bh.displayName=Qb;var al="Toast",aj="toast.swipeStart",lj="toast.swipeMove",cj="toast.swipeCancel",uj="toast.swipeEnd",Zb=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=Oa({prop:r,defaultProp:s??!0,onChange:o,caller:al});return c.jsx(Qs,{present:n||a,children:c.jsx(hj,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:En(e.onPause),onResume:En(e.onResume),onSwipeStart:ie(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ie(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:ie(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:ie(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)})})})});Zb.displayName=al;var[dj,fj]=qb(al,{onClose(){}}),hj=x.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...y}=e,p=Uu(al,n),[b,v]=x.useState(null),g=Ce(t,A=>v(A)),w=x.useRef(null),S=x.useRef(null),_=s||p.duration,C=x.useRef(0),E=x.useRef(_),j=x.useRef(0),{onToastAdd:k,onToastRemove:N}=p,I=En(()=>{var z;(b==null?void 0:b.contains(document.activeElement))&&((z=p.viewport)==null||z.focus()),i()}),O=x.useCallback(A=>{!A||A===1/0||(window.clearTimeout(j.current),C.current=new Date().getTime(),j.current=window.setTimeout(I,A))},[I]);x.useEffect(()=>{const A=p.viewport;if(A){const z=()=>{O(E.current),u==null||u()},B=()=>{const F=new Date().getTime()-C.current;E.current=E.current-F,window.clearTimeout(j.current),l==null||l()};return A.addEventListener($h,B),A.addEventListener(Fh,z),()=>{A.removeEventListener($h,B),A.removeEventListener(Fh,z)}}},[p.viewport,_,l,u,O]),x.useEffect(()=>{o&&!p.isClosePausedRef.current&&O(_)},[o,_,p.isClosePausedRef,O]),x.useEffect(()=>(k(),()=>N()),[k,N]);const U=x.useMemo(()=>b?s2(b):null,[b]);return p.viewport?c.jsxs(c.Fragment,{children:[U&&c.jsx(mj,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),c.jsx(dj,{scope:n,onClose:I,children:Gs.createPortal(c.jsx(zp.ItemSlot,{scope:n,children:c.jsx(qE,{asChild:!0,onEscapeKeyDown:ie(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||I(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(ce.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ie(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:ie(e.onPointerDown,A=>{A.button===0&&(w.current={x:A.clientX,y:A.clientY})}),onPointerMove:ie(e.onPointerMove,A=>{if(!w.current)return;const z=A.clientX-w.current.x,B=A.clientY-w.current.y,F=!!S.current,T=["left","right"].includes(p.swipeDirection),P=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,M=T?P(0,z):0,K=T?0:P(0,B),H=A.pointerType==="touch"?10:2,J={x:M,y:K},Z={originalEvent:A,delta:J};F?(S.current=J,Ul(lj,f,Z,{discrete:!1})):vv(J,p.swipeDirection,H)?(S.current=J,Ul(aj,d,Z,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(z)>H||Math.abs(B)>H)&&(w.current=null)}),onPointerUp:ie(e.onPointerUp,A=>{const z=S.current,B=A.target;if(B.hasPointerCapture(A.pointerId)&&B.releasePointerCapture(A.pointerId),S.current=null,w.current=null,z){const F=A.currentTarget,T={originalEvent:A,delta:z};vv(z,p.swipeDirection,p.swipeThreshold)?Ul(uj,m,T,{discrete:!0}):Ul(cj,h,T,{discrete:!0}),F.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),mj=e=>{const{__scopeToast:t,children:n,...r}=e,s=Uu(al,t),[o,i]=x.useState(!1),[a,l]=x.useState(!1);return vj(()=>i(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Fu,{asChild:!0,children:c.jsx(Bu,{...r,children:o&&c.jsxs(c.Fragment,{children:[s.label," ",n]})})})},pj="ToastTitle",Jb=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ce.div,{...r,ref:t})});Jb.displayName=pj;var gj="ToastDescription",Xb=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ce.div,{...r,ref:t})});Xb.displayName=gj;var e2="ToastAction",t2=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(r2,{altText:n,asChild:!0,children:c.jsx(Hp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${e2}\`. Expected non-empty \`string\`.`),null)});t2.displayName=e2;var n2="ToastClose",Hp=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=fj(n2,n);return c.jsx(r2,{asChild:!0,children:c.jsx(ce.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,s.onClose)})})});Hp.displayName=n2;var r2=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return c.jsx(ce.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function s2(e){const t=[];
vendor: 5,948 bytes, lines 40-84
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),yj(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...s2(r))}}),t}function Ul(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Bb(s,o):s.dispatchEvent(o)}var vv=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function vj(e=()=>{}){const t=En(e);Ze(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function yj(e){return e.nodeType===e.ELEMENT_NODE}function xj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var wj=Kb,o2=Yb,i2=Zb,a2=Jb,l2=Xb,c2=t2,u2=Hp;function d2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=d2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function f2(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=d2(e))&&(r&&(r+=" "),r+=t);return r}const yv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xv=f2,zu=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return xv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],f=o==null?void 0:o[u];if(d===null)return null;const h=yv(d)||yv(f);return s[u][h]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(y=>{let[p,b]=y;return Array.isArray(b)?b.includes({...o,...a}[p]):{...o,...a}[p]===b})?[...u,f,h]:u},[]);return xv(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const bj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h2=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var Sj={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=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>x.createElement("svg",{ref:l,...Sj,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:h2("lucide",s),...a},[...i.map(([u,d])=>x.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
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 xe=(e,t)=>{const n=x.forwardRef(({className:r,...s},o)=>x.createElement(_j,{ref:o,iconNode:t,className:h2(`lucide-${bj(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Cj=xe("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 di=xe("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 Ej=xe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
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 jj=xe("Brain",[["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:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["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:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
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 kj=xe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Jr=xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const tr=xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 m2=xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Hu=xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const p2=xe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 ru=xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 Tj=xe("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
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 Nj=xe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Pj=xe("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
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 g2=xe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
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=xe("MessageSquareQuote",[["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"}],["path",{d:"M8 12a2 2 0 0 0 2-2V8H8",key:"1jfesj"}],["path",{d:"M14 12a2 2 0 0 0 2-2V8h-2",key:"1dq9mh"}]]);/**
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=xe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
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 nf=xe("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
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 Oj=xe("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/**
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 wv=xe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
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 Ij=xe("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"}]]);/**
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 Lj=xe("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"}]]);/**
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 Mj=xe("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"}]]);/**
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 Dj=xe("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"}]]);/**
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 Vj=xe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
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 v2=xe("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"}]]);/**
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 ll=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
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 $j=xe("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"}]]),Wp="-",Fj=e=>{const t=Uj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Wp);return a[0]===""&&a.length!==1&&a.shift(),y2(a,t)||Bj(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},y2=(e,t)=>
vendor: 11,920 bytes, line 200
200{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?y2(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Wp);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},bv=/^\[(.+)\]$/,Bj=e=>{if(bv.test(e)){const t=bv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Uj=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hj(Object.entries(e.classGroups),n).forEach(([o,i])=>{Uh(i,r,o,t)}),r},Uh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Sv(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(zj(s)){Uh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{Uh(i,Sv(t,o),n,r)})})},Sv=(e,t)=>{let n=e;return t.split(Wp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},zj=e=>e.isThemeGetter,Hj=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,Wj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},x2="!",qj=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let u=0,d=0,f;for(let b=0;b<a.length;b++){let v=a[b];if(u===0){if(v===s&&(r||a.slice(b,b+o)===t)){l.push(a.slice(d,b)),d=b+o;continue}if(v==="/"){f=b;continue}}v==="["?u++:v==="]"&&u--}const h=l.length===0?a:a.substring(d),m=h.startsWith(x2),y=m?h.substring(1):h,p=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},Kj=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Gj=e=>({cache:Wj(e.cacheSize),parseClassName:qj(e),...Fj(e)}),Yj=/\s+/,Qj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(Yj);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(u);let y=!!m,p=r(y?h.substring(0,m):h);if(!p){if(!y){a=u+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=u+(a.length>0?" "+a:a);continue}y=!1}const b=Kj(d).join(":"),v=f?b+x2:b,g=v+p;if(o.includes(g))continue;o.push(g);const w=s(p,y);for(let S=0;S<w.length;++S){const _=w[S];o.push(v+_)}a=u+(a.length>0?" "+a:a)}return a};function Zj(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=w2(t))&&(r&&(r+=" "),r+=n);return r}const w2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=w2(e[r]))&&(n&&(n+=" "),n+=t);return n};function Jj(e,...t){let n,r,s,o=i;function i(l){const u=t.reduce((d,f)=>f(d),e());return n=Gj(u),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=Qj(l,n);return s(l,d),d}return function(){return o(Zj.apply(null,arguments))}}const Ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b2=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xj=/^\d+\/\d+$/,ek=new Set(["px","full","screen"]),tk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nk=/\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$/,rk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ok=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=e=>Uo(e)||ek.has(e)||Xj.test(e),yr=e=>xi(e,"length",hk),Uo=e=>!!e&&!Number.isNaN(Number(e)),rf=e=>xi(e,"number",Uo),Fi=e=>!!e&&Number.isInteger(Number(e)),ik=e=>e.endsWith("%")&&Uo(e.slice(0,-1)),ae=e=>b2.test(e),xr=e=>tk.test(e),ak=new Set(["length","size","percentage"]),lk=e=>xi(e,ak,S2),ck=e=>xi(e,"position",S2),uk=new Set(["image","url"]),dk=e=>xi(e,uk,pk),fk=e=>xi(e,"",mk),Bi=()=>!0,xi=(e,t,n)=>{const r=b2.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},hk=e=>nk.test(e)&&!rk.test(e),S2=()=>!1,mk=e=>sk.test(e),pk=e=>ok.test(e),gk=()=>{const e=Ee("colors"),t=Ee("spacing"),n=Ee("blur"),r=Ee("brightness"),s=Ee("borderColor"),o=Ee("borderRadius"),i=Ee("borderSpacing"),a=Ee("borderWidth"),l=Ee("contrast"),u=Ee("grayscale"),d=Ee("hueRotate"),f=Ee("invert"),h=Ee("gap"),m=Ee("gradientColorStops"),y=Ee("gradientColorStopPositions"),p=Ee("inset"),b=Ee("margin"),v=Ee("opacity"),g=Ee("padding"),w=Ee("saturate"),S=Ee("scale"),_=Ee("sepia"),C=Ee("skew"),E=Ee("space"),j=Ee("translate"),k=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",ae,t],O=()=>[ae,t],U=()=>["",Kn,yr],A=()=>["auto",Uo,ae],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",ae],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Uo,ae];return{cacheSize:500,separator:":",theme:{colors:[Bi],spacing:[Kn,yr],blur:["none","",xr,ae],brightness:K(),borderColor:[e],borderRadius:["none","","full",xr,ae],borderSpacing:O(),borderWidth:U(),contrast:K(),grayscale:P(),hueRotate:K(),invert:P(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[ik,yr],inset:I(),margin:I(),opacity:K(),padding:O(),saturate:K(),scale:K(),sepia:P(),skew:K(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[xr]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:[...z(),ae]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fi,ae]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Fi,ae]}],"grid-cols":[{"grid-cols":[Bi]}],"col-start-end":[{col:["auto",{span:["full",Fi,ae]},ae]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Bi]}],"row-start-end":[{row:["auto",{span:[Fi,ae]},ae]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[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":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ae,t]}],"min-w":[{"min-w":[ae,t,"min","max","fit"]}],"max-w":[{"max-w":[ae,t,"none","full","min","max","fit","prose",{screen:[xr]},xr]}],h:[{h:[ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xr,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rf]}],"font-family":[{font:[Bi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ae]}],"line-clamp":[{"line-clamp":["none",Uo,rf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kn,yr]}],"underline-offset":[{"underline-offset":["auto",Kn,ae]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],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",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),ck]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 4,885 bytes, line 200
200],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[Kn,ae]}],"outline-w":[{outline:[Kn,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Kn,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xr,fk]}],"shadow-color":[{shadow:[Bi]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xr,ae]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Fi,ae]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"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",ae]}],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",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,942 bytes, line 200
200],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Kn,yr,rf]}],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"]}}},vk=Jj(gk);function ue(...e){return vk(f2(e))}const yk=wj,_2=x.forwardRef(({className:e,...t},n)=>c.jsx(o2,{ref:n,className:ue("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}));_2.displayName=o2.displayName;const xk=zu("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"}}),C2=x.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(i2,{ref:r,className:ue(xk({variant:t}),e),...n}));C2.displayName=i2.displayName;const wk=x.forwardRef(({className:e,...t},n)=>c.jsx(c2,{ref:n,className:ue("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));wk.displayName=c2.displayName;const E2=x.forwardRef(({className:e,...t},n)=>c.jsx(u2,{ref:n,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground
200/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(ll,{className:"h-4 w-4"})}));E2.displayName=u2.displayName;const j2=x.forwardRef(({className:e,...t},n)=>c.jsx(a2,{ref:n,className:ue("text-sm font-semibold",e),...t}));j2.displayName=a2.displayName;const k2=x.forwardRef(({className:e,...t},n)=>c.jsx(l2,{ref:n,className:ue("text-sm opacity-90",e),...t}));k2.displayName=l2.displayName;function bk(){const{toasts:e}=NE();return c.jsxs(yk,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return c.jsxs(C2,{...o,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(j2,{children:n}),r&&c.jsx(k2,{children:r})]}),s,c.jsx(E2,{})]},t)}),c.jsx(_2,{})]})}var _v=["light","dark"],Sk="(prefers-color-scheme: dark)",_k=x.createContext(void 0),Ck={setTheme:e=>{},themes:[]},Ek=()=>{var e;return(e=x.useContext(_k))!=null?e:Ck};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?_v.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(y,p=!1,b=!0)=>{let v=i?i[y]:y,g=p?y+"|| ''":`'${v}'`,w="";return s&&b&&!p&&_v.includes(y)&&(w+=`d.style.colorScheme = '${y}';`),n==="class"?p||v?w+=`c.add(${g})`:w+="null":v&&(w+=`d[s](n,${g})`),w},m=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Sk}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var jk=e=>{switch(e){case"success":return Nk;case"info":return Ak;case"warning":return Pk;case"error":return Rk;default:return null}},kk=Array(12).fill(0),Tk=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},kk.map((n,r)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Nk=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Pk=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ak=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Rk=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ok=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ik=()=>{let[e,t]=$.useState(document.hidden);return $.useEffect(()=>{let n=()=>{t(document.hidden)};
200return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},zh=1,Lk=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:zh++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
200this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,o,i=r.then(async l=>{if(o=["resolve",l],$.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(Dk(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>o[0]==="reject"?u(o[1]):l(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||zh++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Et=new Lk,Mk=(e,t)=>{let n=(t==null?void 0:t.id)||zh++;return Et.addToast({title:e,...t,id:n}),n},Dk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Vk=Mk,$k=()=>Et.toasts,Fk=()=>Et.getActiveToasts(),Bk=Object.assign(Vk,{success:Et.success,info:Et.info,warning:Et.warning,error:Et.error,custom:Et.custom,message:Et.message,promise:Et.promise,dismiss:Et.dismiss,loading:Et.loading},{getHistory:$k,getToasts:Fk});function Uk(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Uk(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
200left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
200:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
200--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
201`);function zl(e){return e.label!==void 0}var zk=3,Hk="32px",Wk="16px",Cv=4e3,qk=356,Kk=14,Gk=20,Yk=200;function ln(...e){return e.filter(Boolean).join(" ")}function Qk(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Zk=e=>{var t,n,r,s,o,i,a,l,u,d,f;let{invert:h,toast:m,unstyled:y,interacting:p,setHeights:b,visibleToasts:v,heights:g,index:w,toasts:S,expanded:_,removeToast:C,defaultRichColors:E,closeButton:j,style:k,cancelButtonStyle:N,actionButtonStyle:I,className:O="",descriptionClassName:U="",duration:A,position:z,gap:B,loadingIcon:F,expandByDefault:T,classNames:P,icons:M,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:H}=e,[J,Z]=$.useState(null),[pe,ye]=$.useState(null),[V,ne]=$.useState(!1),[he,re]=$.useState(!1),[Q,D]=$.useState(!1),[se,de]=$.useState(!1),[Ne,He]=$.useState(!1),[Je,Rt]=$.useState(0),[ht,Nn]=$.useState(0),Xt=$.useRef(m.duration||A||Cv),Xs=$.useRef(null),en=$.useRef(null),yl=w===0,xl=w+1<=v,Ct=m.type,qn=m.dismissible!==!1,Sd=m.className||"",Ni=m.descriptionClassName||"",tn=$.useMemo(()=>g.findIndex(te=>te.toastId===m.id)||0,[g,m.id]),Pi=$.useMemo(()=>{var te;return(te=m.closeButton)!=null?te:j},[m.closeButton,j]),eo=$.useMemo(()=>m.duration||A||Cv,[m.duration,A]),fr=$.useRef(0),hr=$.useRef(0),wl=$.useRef(0),mr=$.useRef(null),[_d,Cd]=z.split("-"),Ai=$.useMemo(()=>g.reduce((te,ge,we)=>we>=tn?te:te+ge.height,0),[g,tn]),bl=Ik(),Sl=m.invert||h,to=Ct==="loading";hr.current=$.useMemo(()=>tn*B+Ai,[tn,Ai]),$.useEffect(()=>{Xt.current=eo},[eo]),$.useEffect(()=>{ne(!0)},[]),$.useEffect(()=>{let te=en.current;if(te){let ge=te.getBoundingClientRect().height;return Nn(ge),b(we=>[{toastId:m.id,height:ge,position:m.position},...we]),()=>b(we=>we.filter(rn=>rn.toastId!==m.id))}},[b,m.id]),$.useLayoutEffect(()=>{if(!V)return;let te=en.current,ge=te.style.height;te.style.height="auto";let we=te.getBoundingClientRect().height;te.style.height=ge,Nn(we),b(rn=>rn.find(sn=>sn.toastId===m.id)?rn.map(sn=>sn.toastId===m.id?{...sn,height:we}:sn):[{toastId:m.id,height:we,position:m.position},...rn])},[V,m.title,m.description,b,m.id]);let nn=$.useCallback(()=>{re(!0),Rt(hr.current),b(te=>te.filter(ge=>ge.toastId!==m.id)),setTimeout(()=>{C(m)},Yk)},[m,C,b,hr]);$.useEffect(()=>{if(m.promise&&Ct==="loading"||m.duration===1/0||m.type==="loading")return;let te;return _||p||H&&bl?(()=>{if(wl.current<fr.current){let ge=new Date().getTime()-fr.current;Xt.current=Xt.current-ge}
201wl.current=new Date().getTime()})():Xt.current!==1/0&&(fr.current=new Date().getTime(),te=setTimeout(()=>{var ge;(ge=m.onAutoClose)==null||ge.call(m,m),nn()},Xt.current)),()=>clearTimeout(te)},[_,p,m,Ct,H,bl,nn]),$.useEffect(()=>{m.delete&&nn()},[nn,m.delete]);function Ed(){var te,ge,we;return M!=null&&M.loading?$.createElement("div",{className:ln(P==null?void 0:P.loader,(te=m==null?void 0:m.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Ct==="loading"},M.loading):F?$.createElement("div",{className:ln(P==null?void 0:P.loader,(ge=m==null?void 0:m.classNames)==null?void 0:ge.loader,"sonner-loader"),"data-visible":Ct==="loading"},F):$.createElement(Tk,{className:ln(P==null?void 0:P.loader,(we=m==null?void 0:m.classNames)==null?void 0:we.loader),visible:Ct==="loading"})}return $.createElement("li",{tabIndex:0,ref:en,className:ln(O,Sd,P==null?void 0:P.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[Ct],(n=m==null?void 0:m.classNames)==null?void 0:n[Ct]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:E,"data-styled":!(m.jsx||m.unstyled||y),"data-mounted":V,"data-promise":!!m.promise,"data-swiped":Ne,"data-removed":he,"data-visible":xl,"data-y-position":_d,"data-x-position":Cd,"data-index":w,"data-front":yl,"data-swiping":Q,"data-dismissible":qn,"data-type":Ct,"data-invert":Sl,"data-swipe-out":se,"data-swipe-direction":pe,"data-expanded":!!(_||T&&V),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${he?Je:hr.current}px`,"--initial-height":T?"auto":`${ht}px`,...k,...m.style},onDragEnd:()=>{D(!1),Z(null),mr.current=null},onPointerDown:te=>{to||!qn||(Xs.current=new Date,Rt(hr.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(D(!0),mr.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,ge,we,rn;if(se||!qn)return;mr.current=null;let sn=Number(((te=en.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pr=Number(((ge=en.current)==null?void 0:ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),cs=new Date().getTime()-((we=Xs.current)==null?void 0:we.getTime()),on=J==="x"?sn:pr,gr=Math.abs(on)/cs;if(Math.abs(on)>=Gk||gr>.11){Rt(hr.current),(rn=m.onDismiss)==null||rn.call(m,m),ye(J==="x"?sn>0?"right":"left":pr>0?"down":"up"),nn(),de(!0),He(!1);return}D(!1),Z(null)},onPointerMove:te=>{var ge,we,rn,sn;if(!mr.current||!qn||((ge=window.getSelection())==null?void 0:ge.toString().length)>0)return;let pr=te.clientY-mr.current.y,cs=te.clientX-mr.current.x,on=(we=e.swipeDirections)!=null?we:Qk(z);!J&&(Math.abs(cs)>1||Math.abs(pr)>1)&&Z(Math.abs(cs)>Math.abs(pr)?"x":"y");let gr={x:0,y:0};J==="y"?(on.includes("top")||on.includes("bottom"))&&(on.includes("top")&&pr<0||on.includes("bottom")&&pr>0)&&(gr.y=pr):J==="x"&&(on.includes("left")||on.includes("right"))&&(on.includes("left")&&cs<0||on.includes("right")&&cs>0)&&(gr.x=cs),(Math.abs(gr.x)>0||Math.abs(gr.y)>0)&&He(!0),(rn=en.current)==null||rn.style.setProperty("--swipe-amount-x",`${gr.x}px`),(sn=en.current)==null||sn.style.setProperty("--swipe-amount-y",`${gr.y}px`)}},Pi&&!m.jsx?$.createElement("button",{"aria-label":K,"data-disabled":to,"data-close-button":!0,onClick:to||!qn?()=>{}:()=>{var te;nn(),(te=m.onDismiss)==null||te.call(m,m)},className:ln(P==null?void 0:P.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(o=M==null?void 0:M.close)!=null?o:Ok):null,m.jsx||x.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:$.createElement($.Fragment,null,Ct||m.icon||m.promise?$.createElement("div",{"data-icon":"",className:ln(P==null?void 0:P.icon,(i=m==null?void 0:m.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Ed():null,m.type!=="loading"?m.
201icon||(M==null?void 0:M[Ct])||jk(Ct):null):null,$.createElement("div",{"data-content":"",className:ln(P==null?void 0:P.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},$.createElement("div",{"data-title":"",className:ln(P==null?void 0:P.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?$.createElement("div",{"data-description":"",className:ln(U,Ni,P==null?void 0:P.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),x.isValidElement(m.cancel)?m.cancel:m.cancel&&zl(m.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||N,onClick:te=>{var ge,we;zl(m.cancel)&&qn&&((we=(ge=m.cancel).onClick)==null||we.call(ge,te),nn())},className:ln(P==null?void 0:P.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,x.isValidElement(m.action)?m.action:m.action&&zl(m.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||I,onClick:te=>{var ge,we;zl(m.action)&&((we=(ge=m.action).onClick)==null||we.call(ge,te),!te.defaultPrevented&&nn())},className:ln(P==null?void 0:P.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Ev(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Jk(e,t){let n={};return[e,t].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?Wk:Hk;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Xk=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:f,duration:h,style:m,visibleToasts:y=zk,toastOptions:p,dir:b=Ev(),gap:v=Kk,loadingIcon:g,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:_}=e,[C,E]=$.useState([]),j=$.useMemo(()=>Array.from(new Set([r].concat(C.filter(H=>H.position).map(H=>H.position)))),[C,r]),[k,N]=$.useState([]),[I,O]=$.useState(!1),[U,A]=$.useState(!1),[z,B]=$.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=$.useRef(null),T=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=$.useRef(null),M=$.useRef(!1),K=$.useCallback(H=>{E(J=>{var Z;return(Z=J.find(pe=>pe.id===H.id))!=null&&Z.delete||Et.dismiss(H.id),J.filter(({id:pe})=>pe!==H.id)})},[]);return $.useEffect(()=>Et.subscribe(H=>{if(H.dismiss){E(J=>J.map(Z=>Z.id===H.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{Mb.flushSync(()=>{E(J=>{let Z=J.findIndex(pe=>pe.id===H.id);return Z!==-1?[...J.slice(0,Z),{...J[Z],...H},...J.slice(Z+1)]:[H,...J]})})})}),[]),$.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:J})=>{B(J?"dark":"light")})}catch{H.addListener(({matches:Z})=>{try{B(Z?"dark":"light")}catch(pe){console.error(pe)}})}},[d]),$.useEffect(()=>{C.length<=1&&O(!1)},[C]),$.useEffect(()=>{let H=J=>{var Z,pe;s.every(ye=>J[ye]||J.code===ye)&&(O(!0),(Z=F.current)==null||Z.focus()),J.code==="Escape"&&(document.activeElement===F.current||(pe=F.current)!=null&&pe.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[s]),$.useEffect(()=>{if(F.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,M.current=!1)}},[F.current]),$.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((H,J)=>{var Z;let[pe,ye]=H.split("-");return C.length?$.createElement("ol",{key:H,dir:b==="auto"?Ev():b,tabIndex:-1,ref:F,className:a,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":pe,"data-lifted":I&&C.length>1&&!o,"data-x-position":ye,style:{"--front-toast-height":`${((Z=k[0])==null?void 0:Z.height)||0}px`,"--width":`${qk}px`,"--gap":`${v}px`,...m,...Jk(l,u)},onBlur:V=>{M.current&&!V.currentTarget.contains(V.relatedTarget)&&(M.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:V=>{V.target instanceof HTMLElement&&V.target.dataset.dismissible==="false"||M.current||(M.current=!0,P.current=V.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{U||O(!1)},onDragEnd:()=>O(!1),onPointerDown:V=>{V.target instanceof HTMLElement&&V.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},C.filter(V=>!V.position&&J===0||V.position===H).map((V,ne)=>{var he,re;return $.createElement(Zk,{key:V.id,icons:w,index:ne,toast:V,defaultRichColors:f,duration:(he=p==null?void 0:p.duration)!=null?he:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:y,closeButton:(re=p==null?void 0:p.closeButton)!=null?re:i,interacting:U,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:C.filter(Q=>Q.position==V.position),heights:k.filter(Q=>Q.position==V.position),setHeights:N,expandByDefault:o,gap:v,loadingIcon:g,expanded:I,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const e6=({...e})=>{const{theme:t="system"}=Ek();return c.jsx(Xk,{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 t6=Zm[" useId ".trim().toString()]||(()=>{}),n6=0;function Is(e){const[t,n]=x.useState(t6());return Ze(()=>{n(r=>r??String(n6++))},[e]),t?`radix-${t}`:""}const r6=["top","right","bottom","left"],Xr=Math.min,Lt=Math.max,su=Math.round,Hl=Math.floor,Fn=e=>({x:e,y:e}
vendor: 12,404 bytes, line 201
201),s6={left:"right",right:"left",bottom:"top",top:"bottom"},o6={start:"end",end:"start"};function Hh(e,t,n){return Lt(e,Xr(t,n))}function ar(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function wi(e){return e.split("-")[1]}function qp(e){return e==="x"?"y":"x"}function Kp(e){return e==="y"?"height":"width"}const i6=new Set(["top","bottom"]);function Dn(e){return i6.has(lr(e))?"y":"x"}function Gp(e){return qp(Dn(e))}function a6(e,t,n){n===void 0&&(n=!1);const r=wi(e),s=Gp(e),o=Kp(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ou(i)),[i,ou(i)]}function l6(e){const t=ou(e);return[Wh(e),t,Wh(t)]}function Wh(e){return e.replace(/start|end/g,t=>o6[t])}const jv=["left","right"],kv=["right","left"],c6=["top","bottom"],u6=["bottom","top"];function d6(e,t,n){switch(e){case"top":case"bottom":return n?t?kv:jv:t?jv:kv;case"left":case"right":return t?c6:u6;default:return[]}}function f6(e,t,n,r){const s=wi(e);let o=d6(lr(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Wh)))),o}function ou(e){return e.replace(/left|right|bottom|top/g,t=>s6[t])}function h6(e){return{top:0,right:0,bottom:0,left:0,...e}}function T2(e){return typeof e!="number"?h6(e):{top:e,right:e,bottom:e,left:e}}function iu(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Tv(e,t,n){let{reference:r,floating:s}=e;const o=Dn(t),i=Gp(t),a=Kp(i),l=lr(t),u=o==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(wi(t)){case"start":m[i]-=h*(n&&u?-1:1);break;case"end":m[i]+=h*(n&&u?-1:1);break}return m}const m6=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Tv(u,r,l),h=r,m={},y=0;for(let p=0;p<a.length;p++){const{name:b,fn:v}=a[p],{x:g,y:w,data:S,reset:_}=await v({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});d=g??d,f=w??f,m={...m,[b]:{...m[b],...S}},_&&y<=50&&(y++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):_.rects),{x:d,y:f}=Tv(u,h,l)),p=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:m}};async function Ia(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ar(t,e),y=T2(m),b=a[h?f==="floating"?"reference":"floating":f],v=iu(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),g=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},_=iu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(v.top-_.top+y.top)/S.y,bottom:(_.bottom-v.bottom+y.bottom)/S.y,left:(v.left-_.left+y.left)/S.x,right:(_.right-v.right+y.right)/S.x}}const p6=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=ar(e,t)||{};if(u==null)return{};const f=T2(d),h={x:n,y:r},m=Gp(s),y=Kp(m),p=await i.getDimensions(u),b=m==="y",v=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=o.reference[y]+o.reference[m]-h[m]-o.floating[y],_=h[m]-o.reference[m],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=C?C[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(C)))&&(E=a.floating[w]||o.floating[y]);const j=S/2-_/2,k=E/2-p[y]/2-1,N=Xr(f[v],k),I=Xr(f[g],k),O=N,U=E-p[y]-I,A=E/2-p[y]/2+j,z=Hh(O,A,U),B=!l.arrow&&wi(s)!=null&&A!==z&&o.reference[y]/2-(A<O?N:I)-p[y]/2<0,F=B?A<O?A-O:A-U:0;return{[m]:h[m]+F,data:{[m]:z,centerOffset:A-z-F,...B&&{alignmentOffset:F}},reset:B}}}),g6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:p=!0,...b}=ar(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=lr(s),g=Dn(a),w=lr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(w||!p?[ou(a)]:l6(a)),C=y!=="none";!h&&C&&_.push(...f6(a,p,y,S));const E=[a,..._],j=await Ia(t,b),k=[];let N=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&k.push(j[v]),f){const A=a6(s,i,S);k.push(j[A[0]],j[A[1]])}if(N=[...N,{placement:s,overflows:k}],!k.every(A=>A<=0)){var I,O;const A=(((I=o.flip)==null?void 0:I.index)||0)+1,z=E[A];if(z&&(!(f==="alignment"?g!==Dn(z):!1)||N.every(T=>T.overflows[0]>0&&Dn(T.placement)===g)))return{data:{index:A,overflows:N},reset:{placement:z}};let B=(O=N.filter(F=>F.overflows[0]<=0).sort((F,T)=>F.overflows[1]-T.overflows[1])[0])==null?void 0:O.placement;if(!B)switch(m){case"bestFit":{var U;const F=(U=N.filter(T=>{if(C){const P=Dn(T.placement);return P===g||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,M)=>P+M,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:U[0];F&&(B=F);break}case"initialPlacement":B=a;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function Nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pv(e){return r6.some(t=>e[t]>=0)}const v6=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=ar(e,t);switch(r){case"referenceHidden":{const o=await Ia(t,{...s,elementContext:"reference"}),i=Nv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Pv(i)}}}case"escaped":{const o=await Ia(t,{...s,altBoundary:!0}),i=Nv(o,n.floating);return{data:{escapedOffsets:i,escaped:Pv(i)}}}default:return{}}}}},N2=new Set(["left","top"]);async function y6(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=lr(n),a=wi(n),l=Dn(n)==="y",u=N2.has(i)?-1:1,d=o&&l?-1:1,f=ar(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),l?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const x6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await y6(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},w6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...l}=ar(e,t),u={x:n,y:r},d=await Ia(t,l),f=Dn(lr(s)),h=qp(f);let m=u[h],y=u[f];if(o){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=m+d[b],w=m-d[v];m=Hh(g,m,w)}if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=y+d[b],w=y-d[v];y=Hh(g,y,w)}const p=a.fn({...t,[h]:m,[f]:y});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:o,[f]:i}}}}}},b6=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ar(e,t),d={x:n,y:r},f=Dn(s),h=qp(f);let m=d[h],y=d[f];const p=ar(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=h==="y"?"height":"width",S=o.reference[h]-o.floating[w]+b.mainAxis,_=o.reference[h]+o.reference[w]-b.mainAxis;m<S?m=S:m>_&&(m=_)}if(u){var v,g;const w=h==="y"?"width":"height",S=N2.has(lr(s)),_=o.reference[f]-o.floating[w]+(S&&((v=i.offset)==null?void 0:v[f])||0)+(S?0:b.crossAxis),C=o.reference[f]+o.reference[w]+(S?0:((g=i.offset)==null?void 0:g[f])||0)-(S?b.crossAxis:0);y<_?y=_:y>C&&(y=C)}return{[h]:m,[f]:y}}}},S6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=ar(e,t),d=await Ia(t,u),f=lr(s),h=wi(s),m=Dn(s)==="y",{width:y,height:p}=o.floating;let b,v;f==="top"||f==="bottom"?(b=f,v=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,b=h==="end"?"top":"bottom");const g=p-d.top-d.bottom,w=y-d.left-d.right,S=Xr(p-d[b],g),_=Xr(y-d[v],w),C=!t.middlewareData.shift;let E=S,j=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),C&&!h){const N=Lt(d.left,0),I=Lt(d.right,0),O=Lt(d.top,0),U=Lt(d.bottom,0);m?j=y-2*(N!==0||I!==0?N+I:Lt(d.left,d.right)):E=p-2*(O!==0||U!==0?O+U:Lt(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:E});const k=await i.getDimensions(a.floating);return y!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function bi(e){return P2(e)?(e.nodeName||"").toLowerCase():"#document"}function $t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wn(e){var t;return(t=(P2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function P2(e){return Wu()?e instanceof Node||e instanceof $t(e).Node:!1}function jn(e){return Wu()?e instanceof Element||e instanceof $t(e).Element:!1}function zn(e){return Wu()?e instanceof HTMLElement||e instanceof $t(e).HTMLElement:!1}function Av(e){return!Wu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $t(e).ShadowRoot}const _6=new Set(["inline","contents"]);function cl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_6.has(s)}const C6=new Set(["table","td","th"]);function E6(e){return C6.has(bi(e))}const j6=[":popover-open",":modal"];function qu(e){return j6.some(t=>{try{return e.matches(t)}catch{return!1}})}const k6=["transform","translate","scale","rotate","perspective"],T6=["transform","translate","scale","rotate","perspective","filter"],N6=["paint","layout","strict","content"];function Yp(e){const t=Qp(),n=jn(e)?kn(e):e;return k6.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||T6.some(r=>(n.willChange||"").includes(r))||N6.some(r=>(n.contain||"").includes(r))}function P6(e){let t=es(e);for(;zn(t)&&!fi(t);){if(Yp(t))return t;if(qu(t))return null;t=es(t)}return null}function Qp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const A6=new Set(["html","body","#document"]);function fi(e){return A6.has(bi(e))}function kn(e){return $t(e).getComputedStyle(e)}function Ku(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if(bi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Av(e)&&e.host||Wn(e);return Av(t)?t.host:t}function A2(e){const t=es(e);return fi(t)?e.ownerDocument?e.ownerDocument.body:e.body:zn(t)&&cl(t)?t:A2(t)}function La(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=A2(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=$t(s);if(o){const a=qh(i);return t.concat(i,i.visualViewport||[],cl(s)?s:[],a&&n?La(a):[])}return t.concat(s,La(s,[],n))}function qh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function R2(e){const t=kn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=zn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=su(n)!==o||su(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Zp(e){return jn(e)?e:e.contextElement}function zo(e){const t=Zp(e);if(!zn(t))return Fn(1);
vendor: 6,653 bytes, line 201
201const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=R2(t);let i=(o?su(n.width):n.width)/r,a=(o?su(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const R6=Fn(0);function O2(e){const t=$t(e);return!Qp()||!t.visualViewport?R6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$t(e)?!1:t}function Bs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Zp(e);let i=Fn(1);t&&(r?jn(r)&&(i=zo(r)):i=zo(e));const a=O6(o,n,r)?O2(o):Fn(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(o){const h=$t(o),m=r&&jn(r)?$t(r):r;let y=h,p=qh(y);for(;p&&r&&m!==y;){const b=zo(p),v=p.getBoundingClientRect(),g=kn(p),w=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,S=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=w,u+=S,y=$t(p),p=qh(y)}}return iu({width:d,height:f,x:l,y:u})}function Jp(e,t){const n=Ku(e).scrollLeft;return t?t.left+n:Bs(Wn(e)).left+n}function I2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Jp(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function I6(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=Wn(r),a=t?qu(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Fn(1);const d=Fn(0),f=zn(r);if((f||!f&&!o)&&((bi(r)!=="body"||cl(i))&&(l=Ku(r)),zn(r))){const m=Bs(r);u=zo(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=i&&!f&&!o?I2(i,l,!0):Fn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function L6(e){return Array.from(e.getClientRects())}function M6(e){const t=Wn(e),n=Ku(e),r=e.ownerDocument.body,s=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jp(e);const a=-n.scrollTop;return kn(r).direction==="rtl"&&(i+=Lt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function D6(e,t){const n=$t(e),r=Wn(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=Qp();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const V6=new Set(["absolute","fixed"]);function $6(e,t){const n=Bs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=zn(e)?zo(e):Fn(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,u=r*o.y;return{width:i,height:a,x:l,y:u}}function Rv(e,t,n){let r;if(t==="viewport")r=D6(e,n);else if(t==="document")r=M6(Wn(e));else if(jn(t))r=$6(t,n);else{const s=O2(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return iu(r)}function L2(e,t){const n=es(e);return n===t||!jn(n)||fi(n)?!1:kn(n).position==="fixed"||L2(n,t)}function F6(e,t){const n=t.get(e);if(n)return n;let r=La(e,[],!1).filter(a=>jn(a)&&bi(a)!=="body"),s=null;const o=kn(e).position==="fixed";let i=o?es(e):e;for(;jn(i)&&!fi(i);){const a=kn(i),l=Yp(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&V6.has(s.position)||cl(i)&&!l&&L2(e,i))?r=r.filter(d=>d!==i):s=a,i=es(i)}return t.set(e,r),r}function B6(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?qu(t)?[]:F6(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const f=Rv(t,d,s);return u.top=Lt(f.top,u.top),u.right=Xr(f.right,u.right),u.bottom=Xr(f.bottom,u.bottom),u.left=Lt(f.left,u.left),u},Rv(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function U6(e){const{width:t,height:n}=R2(e);return{width:t,height:n}}function z6(e,t,n){const r=zn(t),s=Wn(t),o=n==="fixed",i=Bs(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Fn(0);function u(){l.x=Jp(s)}if(r||!r&&!o)if((bi(t)!=="body"||cl(s))&&(a=Ku(t)),r){const m=Bs(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&u();o&&!r&&s&&u();const d=s&&!r&&!o?I2(s,a):Fn(0),f=i.left+a.scrollLeft-l.x-d.x,h=i.top+a.scrollTop-l.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function sf(e){return kn(e).position==="static"}function Ov(e,t){if(!zn(e)||kn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Wn(e)===n&&(n=n.ownerDocument.body),n}function M2(e,t){const n=$t(e);if(qu(e))return n;if(!zn(e)){let s=es(e);for(;s&&!fi(s);){if(jn(s)&&!sf(s))return s;s=es(s)}return n}let r=Ov(e,t);for(;r&&E6(r)&&sf(r);)r=Ov(r,t);return r&&fi(r)&&sf(r)&&!Yp(r)?n:r||P6(e)||n}const H6=async function(e){const t=this.getOffsetParent||M2,n=this.getDimensions,r=await n(e.floating);return{reference:z6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W6(e){return kn(e).direction==="rtl"}const q6={convertOffsetParentRelativeRectToViewportRelativeRect:I6,getDocumentElement:Wn,getClippingRect:B6,getOffsetParent:M2,getElementRects:H6,getClientRects:L6,getDimensions:U6,getScale:zo,isElement:jn,isRTL:W6};function D2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function K6(e,t){let n=null,r;const s=Wn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const y=Hl(f),p=Hl(s.clientWidth-(d+h)),b=Hl(s.clientHeight-(f+m)),v=Hl(d),w={rootMargin:-y+"px "+-p+"px "+-b+"px "+-v+"px",threshold:Lt(0,Xr(1,l))||1};let S=!0;function _(C){const E=C[0].intersectionRatio;if(E!==l){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!D2(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return i(!0),o}function G6(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Zp(e),d=s||o?[...u?La(u):[],...La(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const f=u&&a?K6(u,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let y,p=l?Bs(e):null;l&&b();function b(){const v=Bs(e);p&&!D2(p,v)&&n(),p=v,y=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(y)}}
vendor: 4,124 bytes, line 201
201const Y6=x6,Q6=w6,Z6=g6,J6=S6,X6=v6,Iv=p6,eT=b6,tT=(e,t,n)=>{const r=new Map,s={platform:q6,...n},o={...s.platform,_c:r};return m6(e,t,{...s,platform:o})};var nT=typeof document<"u",rT=function(){},_c=nT?x.useLayoutEffect:rT;function au(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!au(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!au(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function V2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lv(e,t){const n=V2(e);return Math.round(t*n)/n}function of(e){const t=x.useRef(e);return _c(()=>{t.current=e}),t}function sT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=x.useState(r);au(h,r)||m(r);const[y,p]=x.useState(null),[b,v]=x.useState(null),g=x.useCallback(T=>{T!==C.current&&(C.current=T,p(T))},[]),w=x.useCallback(T=>{T!==E.current&&(E.current=T,v(T))},[]),S=o||y,_=i||b,C=x.useRef(null),E=x.useRef(null),j=x.useRef(d),k=l!=null,N=of(l),I=of(s),O=of(u),U=x.useCallback(()=>{if(!C.current||!E.current)return;const T={placement:t,strategy:n,middleware:h};I.current&&(T.platform=I.current),tT(C.current,E.current,T).then(P=>{const M={...P,isPositioned:O.current!==!1};A.current&&!au(j.current,M)&&(j.current=M,Gs.flushSync(()=>{f(M)}))})},[h,t,n,I,O]);_c(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const A=x.useRef(!1);_c(()=>(A.current=!0,()=>{A.current=!1}),[]),_c(()=>{if(S&&(C.current=S),_&&(E.current=_),S&&_){if(N.current)return N.current(S,_,U);U()}},[S,_,U,N,k]);const z=x.useMemo(()=>({reference:C,floating:E,setReference:g,setFloating:w}),[g,w]),B=x.useMemo(()=>({reference:S,floating:_}),[S,_]),F=x.useMemo(()=>{const T={position:n,left:0,top:0};if(!B.floating)return T;const P=Lv(B.floating,d.x),M=Lv(B.floating,d.y);return a?{...T,transform:"translate("+P+"px, "+M+"px)",...V2(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:M}},[n,a,B.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:U,refs:z,elements:B,floatingStyles:F}),[d,U,z,B,F])}const oT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Iv({element:r.current,padding:s}).fn(n):{}:r?Iv({element:r,padding:s}).fn(n):{}}}},iT=(e,t)=>({...Y6(e),options:[e,t]}),aT=(e,t)=>({...Q6(e),options:[e,t]}),lT=(e,t)=>({...eT(e),options:[e,t]}),cT=(e,t)=>({...Z6(e),options:[e,t]}),uT=(e,t)=>({...J6(e),options:[e,t]}),dT=(e,t)=>({...X6(e),options:[e,t]}),fT=(e,t)=>({...oT(e),options:[e,t]});var hT="Arrow",$2=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return c.jsx(ce.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});$2.displayName=hT;var mT=$2;function pT(e){const[t,n]=x.useState(void 0);return Ze(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Xp="Popper",[F2,Gu]=Ys(Xp),[gT,B2]=F2(Xp),U2=e=>{const{__scopePopper:t,children:n}=e,[r,s]=x.useState(null);return c.jsx(gT,{scope:t,anchor:r,onAnchorChange:s,children:n})};U2.displayName=Xp;var z2="PopperAnchor",H2=x.forwardRef((e,t)=>
vendor: 4,723 bytes, line 201
201{const{__scopePopper:n,virtualRef:r,...s}=e,o=B2(z2,n),i=x.useRef(null),a=Ce(t,i);return x.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(ce.div,{...s,ref:a})});H2.displayName=z2;var eg="PopperContent",[vT,yT]=F2(eg),W2=x.forwardRef((e,t)=>{var V,ne,he,re,Q,D;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:y,...p}=e,b=B2(eg,n),[v,g]=x.useState(null),w=Ce(t,se=>g(se)),[S,_]=x.useState(null),C=pT(S),E=(C==null?void 0:C.width)??0,j=(C==null?void 0:C.height)??0,k=r+(o!=="center"?"-"+o:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(u)?u:[u],O=I.length>0,U={padding:N,boundary:I.filter(wT),altBoundary:O},{refs:A,floatingStyles:z,placement:B,isPositioned:F,middlewareData:T}=sT({strategy:"fixed",placement:k,whileElementsMounted:(...se)=>G6(...se,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[iT({mainAxis:s+j,alignmentAxis:i}),l&&aT({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?lT():void 0,...U}),l&&cT({...U}),uT({...U,apply:({elements:se,rects:de,availableWidth:Ne,availableHeight:He})=>{const{width:Je,height:Rt}=de.reference,ht=se.floating.style;ht.setProperty("--radix-popper-available-width",`${Ne}px`),ht.setProperty("--radix-popper-available-height",`${He}px`),ht.setProperty("--radix-popper-anchor-width",`${Je}px`),ht.setProperty("--radix-popper-anchor-height",`${Rt}px`)}}),S&&fT({element:S,padding:a}),bT({arrowWidth:E,arrowHeight:j}),h&&dT({strategy:"referenceHidden",...U})]}),[P,M]=G2(B),K=En(y);Ze(()=>{F&&(K==null||K())},[F,K]);const H=(V=T.arrow)==null?void 0:V.x,J=(ne=T.arrow)==null?void 0:ne.y,Z=((he=T.arrow)==null?void 0:he.centerOffset)!==0,[pe,ye]=x.useState();return Ze(()=>{v&&ye(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:F?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(re=T.transformOrigin)==null?void 0:re.x,(Q=T.transformOrigin)==null?void 0:Q.y].join(" "),...((D=T.hide)==null?void 0:D.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(vT,{scope:n,placedSide:P,onArrowChange:_,arrowX:H,arrowY:J,shouldHideArrow:Z,children:c.jsx(ce.div,{"data-side":P,"data-align":M,...p,ref:w,style:{...p.style,animation:F?void 0:"none"}})})})});W2.displayName=eg;var q2="PopperArrow",xT={top:"bottom",right:"left",bottom:"top",left:"right"},K2=x.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=yT(q2,r),i=xT[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(mT,{...s,ref:n,style:{...s.style,display:"block"}})})});K2.displayName=q2;function wT(e){return e!==null}var bT=e=>({name:"transformOrigin",options:e,fn(t){var b,v,g;const{placement:n,rects:r,middlewareData:s}=t,i=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=G2(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,m=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let y="",p="";return u==="bottom"?(y=i?f:`${h}px`,p=`${-l}px`):u==="top"?(y=i?f:`${h}px`,p=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,p=i?f:`${m}px`):u==="left"&&(y=`${r.floating.width+l}px`,p=i?f:`${m}px`),{data:{x:y,y:p}}}});function G2(e){const[t,n="center"]=e.split("-");return[t,n]}var ST=U2,Y2=H2,Q2=W2,Z2=K2,[Yu,TV]=Ys("Tooltip",[Gu]),tg=Gu(),J2="TooltipProvider",_T=700,Mv="tooltip.open",[CT,X2]=Yu(J2),eS=e=>{const{__scopeTooltip:t,delayDuration:n=_T,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,i=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(CT,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:o})};eS.displayName=J2;var tS="Tooltip",[NV,Qu]=Yu(tS),Kh="TooltipTrigger",ET=x.forwardRef((e,t)=>
vendor: 5,599 bytes, line 201
201{const{__scopeTooltip:n,...r}=e,s=Qu(Kh,n),o=X2(Kh,n),i=tg(n),a=x.useRef(null),l=Ce(t,a,s.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(Y2,{asChild:!0,...i,children:c.jsx(ce.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:ie(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ie(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ie(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ie(e.onBlur,s.onClose),onClick:ie(e.onClick,s.onClose)})})});ET.displayName=Kh;var jT="TooltipPortal",[PV,kT]=Yu(jT,{forceMount:void 0}),hi="TooltipContent",nS=x.forwardRef((e,t)=>{const n=kT(hi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=Qu(hi,e.__scopeTooltip);return c.jsx(Qs,{present:r||i.open,children:i.disableHoverableContent?c.jsx(rS,{side:s,...o,ref:t}):c.jsx(TT,{side:s,...o,ref:t})})}),TT=x.forwardRef((e,t)=>{const n=Qu(hi,e.__scopeTooltip),r=X2(hi,e.__scopeTooltip),s=x.useRef(null),o=Ce(t,s),[i,a]=x.useState(null),{trigger:l,onClose:u}=n,d=s.current,{onPointerInTransitChange:f}=r,h=x.useCallback(()=>{a(null),f(!1)},[f]),m=x.useCallback((y,p)=>{const b=y.currentTarget,v={x:y.clientX,y:y.clientY},g=OT(v,b.getBoundingClientRect()),w=IT(v,g),S=LT(p.getBoundingClientRect()),_=DT([...w,...S]);a(_),f(!0)},[f]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(l&&d){const y=b=>m(b,d),p=b=>m(b,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",p)}}},[l,d,m,h]),x.useEffect(()=>{if(i){const y=p=>{const b=p.target,v={x:p.clientX,y:p.clientY},g=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),w=!MT(v,i);g?h():w&&(h(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,i,u,h]),c.jsx(rS,{...e,ref:o})}),[NT,PT]=Yu(tS,{isInside:!1}),AT=IE("TooltipContent"),rS=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Qu(hi,n),u=tg(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(Mv,d),()=>document.removeEventListener(Mv,d)),[d]),x.useEffect(()=>{if(l.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(il,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(Q2,{"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(AT,{children:r}),c.jsx(NT,{scope:n,isInside:!0,children:c.jsx(nj,{id:l.contentId,role:"tooltip",children:s||r})})]})})});nS.displayName=hi;var sS="TooltipArrow",RT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=tg(n);return PT(sS,n).isInside?null:c.jsx(Z2,{...s,...r,ref:t})});RT.displayName=sS;function OT(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function IT(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function LT(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function MT(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],u=a.x,d=a.y,f=l.x,h=l.y;d>r!=h>r&&n<(f-u)*(r-d)/(h-d)+u&&(s=!s)}return s}function DT(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),VT(t)}function VT(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $T=eS,oS=nS;const FT=$T,BT=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(oS,{ref:r,sideOffset:t,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
201de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));BT.displayName=oS.displayName;var Zu=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(){}},Ju=typeof window>"u"||"Deno"in globalThis;function mn(){}function UT(e,t){return typeof e=="function"?e(t):e}function zT(e){return typeof e=="number"&&e>=0&&e!==1/0}function HT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gh(e,t){return typeof e=="function"?e(t):e}function WT(e,t){return typeof e=="function"?e(t):e}function Dv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==ng(i,t.options))return!1}else if(!Da(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Vv(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ma(t.options.mutationKey)!==Ma(o))return!1}else if(!Da(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ng(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ma)(e)}function Ma(e){return JSON.stringify(e,(t,n)=>Yh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Da(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Da(e[n],t[n])):!1}function iS(e,t){if(e===t)return e;const n=$v(e)&&$v(t);if(n||Yh(e)&&Yh(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<i;d++){const f=n?d:o[d];(!n&&l.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=iS(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return s===i&&u===s?e:a}return t}function $v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yh(e){if(!Fv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fv(e){return Object.prototype.toString.call(e)==="[object Object]"}function qT(e){return new Promise(t=>{setTimeout(t,e)})}function KT(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?iS(e,t):t}function GT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function YT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rg=Symbol();function aS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var js,Or,Yo,p1,QT=(p1=class extends Zu{constructor(){super();me(this,js);me(this,Or);me(this,Yo);oe(this,Yo,t=>{if(!Ju&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Or)||this.setEventListener(R(this,Yo))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Or))==null||t.call(this),oe(this,Or,void 0))}setEventListener(t){var n;oe(this,Yo,t),(n=R(this,Or))==null||n.call(this),oe(this,Or,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,js)!==t&&(oe(this,js,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,js)=="boolean"?R(this,js):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},js=new WeakMap,Or=new WeakMap,Yo=new WeakMap,p1),lS=new QT,Qo,Ir,Zo,g1,ZT=(g1=class extends Zu{constructor(){super();me(this,Qo,!0);me(this,Ir);me(this,Zo);oe(this,Zo,t=>{if(!Ju&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}
vendor: 4,347 bytes, line 201
201onSubscribe(){R(this,Ir)||this.setEventListener(R(this,Zo))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ir))==null||t.call(this),oe(this,Ir,void 0))}setEventListener(t){var n;oe(this,Zo,t),(n=R(this,Ir))==null||n.call(this),oe(this,Ir,t(this.setOnline.bind(this)))}setOnline(t){R(this,Qo)!==t&&(oe(this,Qo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Qo)}},Qo=new WeakMap,Ir=new WeakMap,Zo=new WeakMap,g1),lu=new ZT;function JT(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function XT(e){return Math.min(1e3*2**e,3e4)}function cS(e){return(e??"online")==="online"?lu.isOnline():!0}var uS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function af(e){return e instanceof uS}function dS(e){let t=!1,n=0,r=!1,s;const o=JT(),i=p=>{var b;r||(h(new uS(p)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>lS.isFocused()&&(e.networkMode==="always"||lu.isOnline())&&e.canRun(),d=()=>cS(e.networkMode)&&e.canRun(),f=p=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,p),s==null||s(),o.resolve(p))},h=p=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,p),s==null||s(),o.reject(p))},m=()=>new Promise(p=>{var b;s=v=>{(r||u())&&p(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var p;s=void 0,r||(p=e.onContinue)==null||p.call(e)}),y=()=>{if(r)return;let p;const b=n===0?e.initialPromise:void 0;try{p=b??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(f).catch(v=>{var C;if(r)return;const g=e.retry??(Ju?0:3),w=e.retryDelay??XT,S=typeof w=="function"?w(n,v):w,_=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!_){h(v);return}n++,(C=e.onFail)==null||C.call(e,n,v),qT(S).then(()=>u()?void 0:m()).then(()=>{t?h(v):y()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?y():m().then(y),o)}}var eN=e=>setTimeout(e,0);function tN(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=eN;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var gt=tN(),ks,v1,fS=(v1=class{constructor(){me(this,ks)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zT(this.gcTime)&&oe(this,ks,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ju?1/0:5*60*1e3))}clearGcTimeout(){R(this,ks)&&(clearTimeout(R(this,ks)),oe(this,ks,void 0))}},ks=new WeakMap,v1),Jo,Ts,Ht,Ns,lt,Xa,Ps,gn,Gn,y1,nN=(y1=class extends fS{constructor(t){super();me(this,gn);me(this,Jo);me(this,Ts);me(this,Ht);me(this,Ns);me(this,lt);me(this,Xa);me(this,Ps);oe(this,Ps,!1),oe(this,Xa,t.defaultOptions),this.setOptions(t.options),this.observers=[],oe(this,Ns,t.client),oe(this,Ht,R(this,Ns).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,oe(this,Jo,sN(this.options)),this.state=t.state??R(this,Jo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,lt))==null?void 0:t.promise}setOptions(t){this.options={...R(this,Xa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Ht).remove(this)}setData(t,n){const r=KT(this.state.data,t,this.options);return ot(this,gn,Gn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ot(this,gn,Gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=R(this,lt))==null?void 0:r.promise;return(s=R(this,lt))==null||s.cancel(t),n?n.then(mn).catch(mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Jo))}isActive(){return this.observers.some(t=>WT(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rg||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 201
201Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Gh(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!HT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,lt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,lt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Ht).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,lt)&&(R(this,Ps)?R(this,lt).cancel({revert:!0}):R(this,lt).cancelRetry()),this.scheduleGc()),R(this,Ht).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,gn,Gn).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 201
201fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,lt))return R(this,lt).continueRetry(),R(this,lt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(oe(this,Ps,!0),r.signal)})},o=()=>{const h=aS(this.options,n),y=(()=>{const p={client:R(this,Ns),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return oe(this,Ps,!1),this.options.persister?this.options.persister(h,y,this):h(y)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,Ns),state:this.state,fetchFn:o};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),oe(this,Ts,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&ot(this,gn,Gn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var m,y,p,b;af(h)&&h.silent||ot(this,gn,Gn).call(this,{type:"error",error:h}),af(h)||((y=(m=R(this,Ht).config).onError)==null||y.call(m,h,this),(b=(p=R(this,Ht).config).onSettled)==null||b.call(p,this.state.data,h,this)),this.scheduleGc()};return oe(this,lt,dS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,y,p,b;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){l(v);return}(y=(m=R(this,Ht).config).onSuccess)==null||y.call(m,h,this),(b=(p=R(this,Ht).config).onSettled)==null||b.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,m)=>{ot(this,gn,Gn).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{ot(this,gn,Gn).call(this,{type:"pause"})},onContinue:()=>{ot(this,gn,Gn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,lt).start()}},Jo=new WeakMap,Ts=new WeakMap,Ht=new WeakMap,Ns=new WeakMap,lt=new WeakMap,Xa=new WeakMap,Ps=new WeakMap,gn=new WeakSet,Gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...rN(r.data,this.options),fetchMeta:t.meta??null};case"success":return oe(this,Ts,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return af(s)&&s.revert&&R(this,Ts)?{...R(this,Ts),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,Ht).notify({query:this,type:"updated",action:t})})},y1);function rN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Rn,x1,oN=(x1=class extends Zu{constructor(t={}){super();me(this,Rn);this.config=t,oe(this,Rn,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??ng(s,n);let i=this.get(o);return i||(i=new nN({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){R(this,Rn).has(t.queryHash)||(R(this,Rn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Rn).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Rn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Rn).get(t)}getAll(){return[...R(this,Rn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Dv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Dv(t,r)):n}notify(t){gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rn=new WeakMap,x1),On,mt,As,In,br,w1,iN=(w1=class extends fS{constructor(t){super();me(this,In);me(this,On);me(this,mt);me(this,As);this.mutationId=t.mutationId,oe(this,mt,t.mutationCache),oe(this,On,[]),this.state=t.state||aN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,On).includes(t)||(R(this,On).push(t),this.clearGcTimeout(),R(this,mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){oe(this,On,R(this,On).filter(n=>n!==t)),this.scheduleGc(),R(this,mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,On).length||(this.state.status==="pending"?this.scheduleGc():R(this,mt).remove(this))}continue(){var t;return((t=R(this,As))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,u,d,f,h,m,y,p,b,v,g,w,S,_,C,E,j;const n=()=>{ot(this,In,br).call(this,{type:"continue"})};oe(this,As,dS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,N)=>{ot(this,In,br).call(this,{type:"failed",failureCount:k,error:N})},onPause:()=>{ot(this,In,br).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,mt).canRun(this)}));const r=this.state.status==="pending",s=!R(this,As).canStart();try{if(r)n();else{ot(this,In,br).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=R(this,mt).config).onMutate)==null?void 0:i.call(o,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&ot(this,In,br).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const k=await R(this,As).start();return await((d=(u=R(this,mt).config).onSuccess)==null?void 0:d.call(u,k,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,k,t,this.state.context)),await((y=(m=R(this,mt).config).onSettled)==null?void 0:y.call(m,k,null,this.state.variables,this.state.context,this)),await((b=(p=this.options).onSettled)==null?void 0:b.call(p,k,null,t,this.state.context)),ot(this,In,br).call(this,{type:"success",data:k}),k}catch(k){try{throw await((g=(v=R(this,mt).config).onError)==null?void 0:g.call(v,k,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,k,t,this.state.context)),await((C=(_=R(this,mt).config).onSettled)==null?void 0:C.call(_,void 0,k,this.state.variables,this.state.context,this)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,void 0,k,t,this.state.context)),k}finally{ot(this,In,br).call(this,{type:"error",error:k})}}finally{R(this,mt).runNext(this)}}},On=new WeakMap,mt=new WeakMap,As=new WeakMap,In=new WeakSet,br=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),gt.batch(()=>{R(this,On).forEach(r=>{r.onMutationUpdate(t)}),R(this,mt).notify({mutation:this,type:"updated",action:t})})},w1);function aN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jn,vn,el,b1,lN=(b1=class extends Zu{constructor(t={}){super();me(this,Jn);me(this,vn);me(this,el);this.config=t,oe(this,Jn,new Set),oe(this,vn,new Map),oe(this,el,0)}build(t,n,r){const s=new iN({mutationCache:this,mutationId:++_l(this,el)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){R(this,Jn).add(t);const n=Wl(t);if(typeof n=="string"){const r=R(this,vn).get(n);r?r.push(t):R(this,vn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,Jn).delete(t)){const n=Wl(t);if(typeof n=="string"){const r=R(this,vn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&R(this,vn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Wl(t);if(typeof n=="string"){const r=R(this,vn).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Wl(t);if(typeof n=="string"){const s=(r=R(this,vn).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){gt.batch(()=>{R(this,Jn).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,Jn).clear(),R(this,vn).clear()})}getAll(){return Array.from(R(this,Jn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Vv(n,r))}findAll(t={}){return this.getAll().filter(n=>Vv(t,n))}notify(t){gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return gt.batch(()=>Promise.all(t.map(n=>n.continue().catch(mn))))}},Jn=new WeakMap,vn=new WeakMap,el=new WeakMap,b1);function Wl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Bv(e){return{onFetch:(t,n)=>{var d,f,h,m,y;const r=t.options,s=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=aS(t.options,t.fetchOptions),g=async(w,S,_)=>{if(p)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return b(I),I})(),j=await v(E),{maxPages:k}=t.options,N=_?YT:GT;return{pages:N(w.pages,j,k),pageParams:N(w.pageParams,S,k)}};if(s&&o.length){const w=s==="backward",S=w?cN:Uv,_={pages:o,pageParams:i},C=S(r,_);a=await g(_,C,w)}else{const w=e??o.length;do{const S=l===0?i[0]??r.initialPageParam:Uv(r,a);if(l>0&&S==null)break;a=await g(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var p,b;return(b=(p=t.options).persister)==null?void 0:b.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Uv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cN(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Me,Lr,Mr,Xo,ei,Dr,ti,ni,S1,uN=(S1=class{constructor(e={}){me(this,Me);me(this,Lr);me(this,Mr);me(this,Xo);me(this,ei);me(this,Dr);me(this,ti);me(this,ni);oe(this,Me,e.queryCache||new oN),oe(this,Lr,e.mutationCache||new lN),oe(this,Mr,e.defaultOptions||{}),oe(this,Xo,new Map),oe(this,ei,new Map),oe(this,Dr,0)}mount(){_l(this,Dr)._++,R(this,Dr)===1&&(oe(this,ti,lS.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Me).onFocus())})),oe(this,ni,lu.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Me).onOnline())})))}unmount(){var e,t;_l(this,Dr)._--,R(this,Dr)===0&&((e=R(this,ti))==null||e.call(this),oe(this,ti,void 0),(t=R(this,ni))==null||t.call(this),oe(this,ni,void 0))}isFetching(e){return R(this,Me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Lr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,Me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,Me).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=R(this,Me).get(r.queryHash),o=s==null?void 0:s.state.data,i=UT(t,o);if(i!==void 0)return R(this,Me).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return gt.batch(()=>R(this,Me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,Me);gt.batch(()=>
201{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Me);return gt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=gt.batch(()=>R(this,Me).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(mn).catch(mn)}invalidateQueries(e,t={}){return gt.batch(()=>(R(this,Me).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=gt.batch(()=>R(this,Me).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(mn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(mn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Me).build(this,t);return n.isStaleByTime(Gh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mn).catch(mn)}fetchInfiniteQuery(e){return e.behavior=Bv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mn).catch(mn)}ensureInfiniteQueryData(e){return e.behavior=Bv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return lu.isOnline()?R(this,Lr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Me)}getMutationCache(){return R(this,Lr)}getDefaultOptions(){return R(this,Mr)}setDefaultOptions(e){oe(this,Mr,e)}setQueryDefaults(e,t){R(this,Xo).set(Ma(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Xo).values()],n={};return t.forEach(r=>{Da(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,ei).set(Ma(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,ei).values()],n={};return t.forEach(r=>{Da(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Mr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ng(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===rg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Mr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Me).clear(),R(this,Lr).clear()}},Me=new WeakMap,Lr=new WeakMap,Mr=new WeakMap,Xo=new WeakMap,ei=new WeakMap,Dr=new WeakMap,ti=new WeakMap,ni=new WeakMap,S1),dN=x.createContext(void 0),fN=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(dN.Provider,{value:e,children:t}));/**
202 * @remix-run/router v1.23.0
203 *
204 * Copyright (c) Remix Software Inc.
205 *
206 * This source code is licensed under the MIT license found in the
207 * LICENSE.md file in the root directory of this source tree.
208 *
209 * @license MIT
210 */function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(this,arguments)}var Fr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fr||(Fr={}));const zv="popstate";function hN(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return Qh("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:mS(s)}return pN(t,n,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mN(){return Math.random().toString(36).substr(2,8)}function Hv(e,t){return{usr:e.state,key:e.key,idx:t}}function Qh(e,t,n,r){return n===void 0&&(n=null),cu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xu(t):t,{state:n,key:t&&t.key||r||mN()})}function mS(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pN(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Fr.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(cu({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=Fr.Pop;let b=d(),v=b==null?null:b-u;u=b,l&&l({action:a,location:p.location,delta:v})}function h(b,v){a=Fr.Push;let g=Qh(p.location,b,v);u=d()+1;let w=Hv(g,u),S=p.createHref(g);try{i.pushState(w,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(S)}o&&l&&l({action:a,location:p.location,delta:1})}function m(b,v){a=Fr.Replace;let g=Qh(p.location,b,v);u=d();let w=Hv(g,u),S=p.createHref(g);i.replaceState(w,"",S),o&&l&&l({action:a,location:p.location,delta:0})}function y(b){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:mS(b);return g=g.replace(/ $/,"%20"),At(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return a},get location(){return e(s,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(zv,f),l=b,()=>{s.removeEventListener(zv,f),l=null}},createHref(b){return t(s,b)},createURL:y,encodeLocation(b){let v=y(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:m,go(b){return i.go(b)}};return p}var Wv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wv||(Wv={}));function gN(e,t,n){return n===void 0&&(n="/"),vN(e,t,n,!1)}function vN(e,t,n,r){let s=typeof t=="string"?Xu(t):t,o=vS(s.pathname||"/",n);if(o==null)return null;let i=pS(e);yN(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=NN(o);a=kN(i[l],u,r)}return a}function pS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(At(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
210id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ho([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(At(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),pS(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:EN(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of gS(o.path))s(o,i,l)}),t}function gS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=gS(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function yN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xN=/^:[\w-]+$/,wN=3,bN=2,SN=1,_N=10,CN=-2,qv=e=>e==="*";function EN(e,t){let n=e.split("/"),r=n.length;return n.some(qv)&&(r+=CN),t&&(r+=bN),n.filter(s=>!qv(s)).reduce((s,o)=>s+(xN.test(o)?wN:o===""?SN:_N),r)}function jN(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function kN(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=Kv({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Kv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 4,131 bytes, lines 210-219
210Object.assign(s,f.params),i.push({params:s,pathname:Ho([o,f.pathname]),pathnameBase:PN(Ho([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=Ho([o,f.pathnameBase]))}return i}function Kv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TN(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let p=a[f]||"";i=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const y=a[f];return m&&!y?u[h]=void 0:u[h]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function TN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function NN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hS(!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 vS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Ho=e=>e.join("/").replace(/\/\/+/g,"/"),PN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function AN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yS=["post","put","patch","delete"];new Set(yS);const RN=["get",...yS];new Set(RN);/**
211 * React Router v6.30.1
212 *
213 * Copyright (c) Remix Software Inc.
214 *
215 * This source code is licensed under the MIT license found in the
216 * LICENSE.md file in the root directory of this source tree.
217 *
218 * @license MIT
219 */function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uu.apply(this,arguments)}const ON=x.createContext(null),IN=x.createContext(null),xS=x.createContext(null),ed=x.createContext(null),td=x.createContext({outlet:null,matches:[],isDataRoute:!1}),wS=x.createContext(null);function sg(){return x.useContext(ed)!=null}function bS(){return sg()||At(!1),x.useContext(ed).location}function LN(e,t){return MN(e,t)}function MN(e,t,n,r){sg()||At(!1);let{navigator:s}=x.useContext(xS),{matches:o}=x.useContext(td),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=bS(),d;if(t){var f;let b=typeof t=="string"?Xu(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||At(!1),d=b}else d=u;let h=d.pathname||"/",m=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=gN(e,{pathname:m}),p=BN(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Ho([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Ho([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r);return t&&p?x.createElement(ed.Provider,{value:{location:uu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Fr.Pop}},p):p}function DN(){let e=WN(),t=AN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application 
219Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const VN=x.createElement(DN,null);class $N extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(td.Provider,{value:this.props.routeContext},x.createElement(wS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FN(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(ON);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(td.Provider,{value:t},r)}function BN(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||At(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:m}=n,y=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||y){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let m,y=!1,p=null,b=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,p=f.route.errorElement||VN,l&&(u<0&&h===0?(y=!0,b=null):u===h&&(y=!0,b=f.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,h+1)),g=()=>{let w;return m?w=p:y?w=b:f.route.Component?w=x.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,x.createElement(FN,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement($N,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Zh=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}(Zh||{});function UN(e){let t=x.useContext(IN);return t||At(!1),t}function zN(e){let t=x.useContext(td);return t||At(!1),t}function HN(e){let t=zN(),n=t.matches[t.matches.length-1];return n.route.id||At(!1),n.route.id}function WN(){var e;let t=x.useContext(wS),n=UN(Zh.UseRouteError),r=HN(Zh.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Jh(e){At(!1)}function KN(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Fr.Pop,navigator:o,static:i=!1,future:a}=e;sg()&&At(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:o,static:i,future:uu({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=Xu(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:y="default"}=r,p=x.useMemo(()=>{let b=vS(d,l);return b==null?null:{location:{pathname:b,search:f,hash:h,state:m,key:y},navigationType:s}},[l,d,f,h,m,y,s]);return p==null?null:x.createElement(xS.Provider,{value:u},x.createElement(ed.Provider,{children:n,value:p}))}function GN(e){let{children:t,location:n}=e;return LN(Xh(t),n)}new Promise(()=>{});
219function Xh(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let o=[...t,s];if(r.type===x.Fragment){n.push.apply(n,Xh(r.props.children,o));return}r.type!==Jh&&At(!1),!r.props.index||!r.props.children||At(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Xh(r.props.children,o)),n.push(i)}),n}/**
220 * React Router DOM v6.30.1
221 *
222 * Copyright (c) Remix Software Inc.
223 *
224 * This source code is licensed under the MIT license found in the
225 * LICENSE.md file in the root directory of this source tree.
226 *
227 * @license MIT
228 */const YN="6";try{window.__reactRouterVersion=YN}catch{}const QN="startTransition",Gv=Zm[QN];function ZN(e){let{basename:t,children:n,future:r,window:s}=e,o=x.useRef();o.current==null&&(o.current=hN({window:s,v5Compat:!0}));let i=o.current,[a,l]=x.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=x.useCallback(f=>{u&&Gv?Gv(()=>l(f)):l(f)},[l,u]);return x.useLayoutEffect(()=>i.listen(d),[i,d]),x.useEffect(()=>qN(r),[r]),x.createElement(KN,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var Yv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Yv||(Yv={}));var Qv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qv||(Qv={}));const og=x.createContext({});function ig(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const SS=typeof window<"u",_S=SS?x.useLayoutEffect:x.useEffect,nd=x.createContext(null);function ag(e,t){e.indexOf(t)===-1&&e.push(t)}function lg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Hn=(e,t,n)=>n>t?t:n<e?e:n;let rd=()=>{},mi=()=>{};const cr={},CS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ES(e){return typeof e=="object"&&e!==null}const jS=e=>/^0[^.\s]+$/u.test(e);function cg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qt=e=>e,JN=(e,t)=>n=>t(e(n)),ul=(...e)=>e.reduce(JN),Va=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ug{constructor(){this.subscriptions=[]}add(t){return ag(this.subscriptions,t),()=>lg(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bn=e=>e*1e3,Gt=e=>e/1e3;function kS(e,t){return t?e*(1e3/t):0}const TS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XN=1e-7,eP=12;function tP(e,t,n,r,s){let o,i,a=0;do i=t+(n-t)/2,o=TS(i,r,s)-e,o>0?n=i:t=i;while(Math.abs(o)>XN&&++a<eP);return i}function dl(e,t,n,r){if(e===t&&n===r)return Qt;const s=o=>tP(o,0,1,e,n);return o=>o===0||o===1?o:TS(s(o),t,r)}const NS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PS=e=>t=>1-e(1-t),AS=dl(.33,1.53,.69,.99),dg=PS(AS),RS=NS(dg),OS=e=>(e*=2)<1?.5*dg(e):.5*(2-Math.pow(2,-10*(e-1))),fg=e=>1-Math.sin(Math.acos(e)),IS=PS(fg),LS=NS(fg),nP=dl(.42,0,1,1),rP=dl(0,0,.58,1),MS=dl(.42,0,.58,1),sP=e=>Array.isArray(e)&&typeof e[0]!="number",DS=e=>Array.isArray(e)&&typeof e[0]=="number",Zv={linear:Qt,easeIn:nP,easeInOut:MS,easeOut:rP,circIn:fg,circInOut:LS,circOut:IS,backIn:dg,backInOut:RS,backOut:AS,anticipate:OS},oP=e=>typeof e=="string",Jv=e=>{if(DS(e)){mi(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return dl(t,n,r,s)}else if(oP(e))return mi(Zv[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Zv[e];return e},ql=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Xv={value:null,addProjectionMetrics:null};function iP(e,t){let n=new Set,r=new Set,s=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;
vendor: 40,676 bytes, line 228
228function u(f){i.has(f)&&(d.schedule(f),e()),l++,f(a)}const d={schedule:(f,h=!1,m=!1)=>{const p=m&&s?n:r;return h&&i.add(f),p.has(f)||p.add(f),f},cancel:f=>{r.delete(f),i.delete(f)},process:f=>{if(a=f,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(u),t&&Xv.value&&Xv.value.frameloop[t].push(l),l=0,n.clear(),s=!1,o&&(o=!1,d.process(f))}};return d}const aP=40;function VS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,i=ql.reduce((w,S)=>(w[S]=iP(o,t?S:void 0),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:m,postRender:y}=i,p=()=>{const w=cr.useManualTiming?s.timestamp:performance.now();n=!1,cr.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(w-s.timestamp,aP),1)),s.timestamp=w,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),d.process(s),f.process(s),h.process(s),m.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},b=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:ql.reduce((w,S)=>{const _=i[S];return w[S]=(C,E=!1,j=!1)=>(n||b(),_.schedule(C,E,j)),w},{}),cancel:w=>{for(let S=0;S<ql.length;S++)i[ql[S]].cancel(w)},state:s,steps:i}}const{schedule:_e,cancel:ts,state:nt,steps:lf}=VS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0);let Cc;function lP(){Cc=void 0}const yt={now:()=>(Cc===void 0&&yt.set(nt.isProcessing||cr.useManualTiming?nt.timestamp:performance.now()),Cc),set:e=>{Cc=e,queueMicrotask(lP)}},$S=e=>t=>typeof t=="string"&&t.startsWith(e),FS=$S("--"),cP=$S("var(--"),hg=e=>cP(e)?uP.test(e.split("/*")[0].trim()):!1,uP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ey(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Si={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$a={...Si,transform:e=>Hn(0,1,e)},Kl={...Si,default:1},ca=e=>Math.round(e*1e5)/1e5,mg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dP(e){return e==null}const fP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pg=(e,t)=>n=>!!(typeof n=="string"&&fP.test(n)&&n.startsWith(e)||t&&!dP(n)&&Object.prototype.hasOwnProperty.call(n,t)),BS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,i,a]=r.match(mg);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},hP=e=>Hn(0,255,e),cf={...Si,transform:e=>Math.round(hP(e))},_s={test:pg("rgb","red"),parse:BS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cf.transform(e)+", "+cf.transform(t)+", "+cf.transform(n)+", "+ca($a.transform(r))+")"};function mP(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const em={test:pg("#"),parse:mP,transform:_s.transform},fl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sr=fl("deg"),Un=fl("%"),q=fl("px"),pP=fl("vh"),gP=fl("vw"),ty={...Un,parse:e=>Un.parse(e)/100,transform:e=>Un.transform(e*100)},No={test:pg("hsl","hue"),parse:BS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Un.transform(ca(t))+", "+Un.transform(ca(n))+", "+ca($a.transform(r))+")"},Be={test:e=>_s.test(e)||em.test(e)||No.test(e),parse:e=>_s.test(e)?_s.parse(e):No.test(e)?No.parse(e):em.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_s.transform(e):No.transform(e),getAnimatableNone:e=>{const t=Be.parse(e);return t.alpha=0,Be.transform(t)}},vP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yP(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(mg))==null?void 0:t.length)||0)+(((n=e.match(vP))==null?void 0:n.length)||0)>0}const US="number",zS="color",xP="var",wP="var(",ny="${}",bP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const a=t.replace(bP,l=>(Be.test(l)?(r.color.push(o),s.push(zS),n.push(Be.parse(l))):l.startsWith(wP)?(r.var.push(o),s.push(xP),n.push(l)):(r.number.push(o),s.push(US),n.push(parseFloat(l))),++o,ny)).split(ny);return{values:n,split:a,indexes:r,types:s}}function HS(e){return Fa(e).values}function WS(e){const{split:t,types:n}=Fa(e),r=t.length;return s=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],s[i]!==void 0){const a=n[i];a===US?o+=ca(s[i]):a===zS?o+=Be.transform(s[i]):o+=s[i]}return o}}const SP=e=>typeof e=="number"?0:Be.test(e)?Be.getAnimatableNone(e):e;function _P(e){const t=HS(e);return WS(e)(t.map(SP))}const ns={test:yP,parse:HS,createTransformer:WS,getAnimatableNone:_P};function uf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function CP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,i=0;if(!t)s=o=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=uf(l,a,e+1/3),o=uf(l,a,e),i=uf(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}function du(e,t){return n=>n>0?t:e}const Re=(e,t,n)=>e+(t-e)*n,df=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},EP=[em,_s,No],jP=e=>EP.find(t=>t.test(e));function ry(e){const t=jP(e);if(rd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===No&&(n=CP(n)),n}const sy=(e,t)=>{const n=ry(e),r=ry(t);if(!n||!r)return du(e,t);const s={...n};return o=>(s.red=df(n.red,r.red,o),s.green=df(n.green,r.green,o),s.blue=df(n.blue,r.blue,o),s.alpha=Re(n.alpha,r.alpha,o),_s.transform(s))},tm=new Set(["none","hidden"]);function kP(e,t){return tm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TP(e,t){return n=>Re(e,t,n)}function gg(e){return typeof e=="number"?TP:typeof e=="string"?hg(e)?du:Be.test(e)?sy:AP:Array.isArray(e)?qS:typeof e=="object"?Be.test(e)?sy:NP:du}function qS(e,t){const n=[...e],r=n.length,s=e.map((o,i)=>gg(o)(o,t[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}}function NP(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=gg(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function PP(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],i=e.indexes[o][r[o]],a=e.values[i]??0;n[s]=a,r[o]++}return n}const AP=(e,t)=>{const n=ns.createTransformer(t),r=Fa(e),s=Fa(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?tm.has(e)&&!s.values.length||tm.has(t)&&!r.values.length?kP(e,t):ul(qS(PP(r,s),s.values),n):(rd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),du(e,t))};function KS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):gg(e)(e,t)}const RP=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>_e.update(t,n),stop:()=>ts(t),now:()=>nt.isProcessing?nt.timestamp:yt.now()}},GS=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=Math.round(e(o/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},fu=2e4;function vg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fu;)t+=n,r=e.next(t);return t>=fu?1/0:t}function OP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(vg(r),fu);return{type:"keyframes",ease:o=>r.next(s*o).value/t,duration:Gt(s)}}const IP=5;function YS(e,t,n){const r=Math.max(t-IP,0);return kS(n-e(r),t-r)}const Pe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ff=.001;function LP({duration:e=Pe.duration,bounce:t=Pe.bounce,velocity:n=Pe.velocity,mass:r=Pe.mass}){let s,o;rd(e<=Bn(Pe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Hn(Pe.minDamping,Pe.maxDamping,i),e=Hn(Pe.minDuration,Pe.maxDuration,Gt(e)),i<1?(s=u=>{const d=u*i,f=d*e,h=d-n,m=nm(u,i),y=Math.exp(-f);return ff-h/m*y},o=u=>{const f=u*i*e,h=f*n+n,m=Math.pow(i,2)*Math.pow(u,2)*e,y=Math.exp(-f),p=nm(Math.pow(u,2),i);return(-s(u)+ff>0?-1:1)*((h-m)*y)/p}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-ff+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=DP(s,o,a);if(e=Bn(e),isNaN(l))return{stiffness:Pe.stiffness,damping:Pe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const MP=12;function DP(e,t,n){let r=n;for(let s=1;s<MP;s++)r=r-e(r)/t(r);return r}function nm(e,t){return e*Math.sqrt(1-t*t)}const VP=["duration","bounce"],$P=["stiffness","damping","mass"];function oy(e,t){return t.some(n=>e[n]!==void 0)}function FP(e){let t={velocity:Pe.velocity,stiffness:Pe.stiffness,damping:Pe.damping,mass:Pe.mass,isResolvedFromDuration:!1,...e};if(!oy(e,$P)&&oy(e,VP))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Hn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Pe.mass,stiffness:s,damping:o}}else{const n=LP(e);t={...t,...n,mass:Pe.mass},t.isResolvedFromDuration=!0}return t}function hu(e=Pe.visualDuration,t=Pe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=FP({...n,velocity:-Gt(n.velocity||0)}),y=h||0,p=u/(2*Math.sqrt(l*d)),b=i-o,v=Gt(Math.sqrt(l/d)),g=Math.abs(b)<5;r||(r=g?Pe.restSpeed.granular:Pe.restSpeed.default),s||(s=g?Pe.restDelta.granular:Pe.restDelta.default);let w;if(p<1){const _=nm(v,p);w=C=>{const E=Math.exp(-p*v*C);return i-E*((y+p*v*b)/_*Math.sin(_*C)+b*Math.cos(_*C))}}else if(p===1)w=_=>i-Math.exp(-v*_)*(b+(y+v*b)*_);else{const _=v*Math.sqrt(p*p-1);w=C=>{const E=Math.exp(-p*v*C),j=Math.min(_*C,300);return i-E*((y+p*v*b)*Math.sinh(j)+_*b*Math.cosh(j))/_}}const S={calculatedDuration:m&&f||null,next:_=>{const C=w(_);if(m)a.done=_>=f;else{let E=_===0?y:0;p<1&&(E=_===0?Bn(y):YS(w,_,C));const j=Math.abs(E)<=r,k=Math.abs(i-C)<=s;a.done=j&&k}return a.value=a.done?i:C,a},toString:()=>{const _=Math.min(vg(S),fu),C=GS(E=>S.next(_*E).value,_,30);return _+"ms "+C},toTransition:()=>{}};return S}hu.applyToOptions=e=>{const t=OP(e,100,hu);return e.ease=t.ease,e.duration=Bn(t.duration),e.type="keyframes",e};function rm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=j=>a!==void 0&&j<a||l!==void 0&&j>l,y=j=>a===void 0?l:l===void 0||Math.abs(a-j)<Math.abs(l-j)?a:l;let p=n*t;const b=f+p,v=i===void 0?b:i(b);v!==b&&(p=v-f);const g=j=>-p*Math.exp(-j/r),w=j=>v+g(j),S=j=>{const k=g(j),N=w(j);h.done=Math.abs(k)<=u,h.value=h.done?v:N};let _,C;const E=j=>{m(h.value)&&(_=j,C=hu({keyframes:[h.value,y(h.value)],velocity:YS(w,j,h.value),damping:s,stiffness:o,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:j=>{let k=!1;return!C&&_===void 0&&(k=!0,S(j),E(j)),_!==void 0&&j>=_?C.next(j-_):(!k&&S(j),h)}}}function BP(e,t,n){const r=[],s=n||cr.mix||KS,o=e.length-1;for(let i=0;i<o;i++){let a=s(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Qt:t;a=ul(l,a)}r.push(a)}return r}function UP(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(mi(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=BP(t,r,s),l=a.length,u=d=>{if(i&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Va(e[f],e[f+1],d);return a[f](h)};return n?d=>u(Hn(e[0],e[o-1],d)):u}function zP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Va(0,t,r);e.push(Re(n,1,s))}}function HP(e){const t=[0];return zP(t,e.length-1),t}function WP(e,t){return e.map(n=>n*t)}function qP(e,t){return e.map(()=>t||MS).splice(0,e.length-1)}function ua({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=sP(r)?r.map(Jv):Jv(r),o={done:!1,value:t[0]},i=WP(n&&n.length===t.length?n:HP(t),e),a=UP(i,t,{ease:Array.isArray(s)?s:qP(t,s)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const KP=e=>e!==null;function yg(e,{repeat:t,repeatType:n="loop"},r,s=1){const o=e.filter(KP),a=s<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const GP={decay:rm,inertia:rm,tween:ua,keyframes:ua,spring:hu};function QS(e){typeof e.type=="string"&&(e.type=GP[e.type])}class xg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const YP=e=>e/100;class wg extends xg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;QS(t);const{type:n=ua,repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:i=0}=t;let{keyframes:a}=t;const l=n||ua;l!==ua&&typeof a[0]!="number"&&(this.mixKeyframes=ul(YP,KS(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=vg(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:y,onUpdate:p,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,S=r;if(f){const j=Math.min(this.currentTime,s)/a;let k=Math.floor(j),N=j%1;!N&&j>=1&&(N=1),N===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(h==="reverse"?(N=1-N,m&&(N-=m/a)):h==="mirror"&&(S=i)),w=Hn(0,1,N)*a}const _=g?{done:!1,value:d[0]}:S.next(w);o&&(_.value=o(_.value));let{done:C}=_;!g&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&y!==rm&&(_.value=yg(d,this.options,b,this.speed)),p&&p(_.value),E&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Gt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Gt(t)}get time(){return Gt(this.currentTime)}set time(t){var n;t=Bn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(yt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Gt(this.currentTime))}play(){var s,o;if(this.isStopped)return;const{driver:t=RP,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),(o=(s=this.options).onPlay)==null||o.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function QP(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Cs=e=>e*180/Math.PI,sm=e=>{const t=Cs(Math.atan2(e[1],e[0]));return om(t)},ZP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sm,rotateZ:sm,skewX:e=>Cs(Math.atan(e[1])),skewY:e=>Cs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},om=e=>(e=e%360,e<0&&(e+=360),e),iy=sm,ay=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ly=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),JP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ay,scaleY:ly,scale:e=>(ay(e)+ly(e))/2,rotateX:e=>om(Cs(Math.atan2(e[6],e[5]))),rotateY:e=>om(Cs(Math.atan2(-e[2],e[0]))),rotateZ:iy,rotate:iy,skewX:e=>Cs(Math.atan(e[4])),skewY:e=>Cs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function im(e){return e.includes("scale")?1:0}function am(e,t){if(!e||e==="none")return im(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=JP,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ZP,s=a}if(!s)return im(t);const o=r[t],i=s[1].split(",").map(eA);return typeof o=="function"?o(i):i[o]}const XP=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return am(n,t)};function eA(e){return parseFloat(e.trim())}const _i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ci=new Set(_i),cy=e=>e===Si||e===q,tA=new Set(["x","y","z"]),nA=_i.filter(e=>!tA.has(e));function rA(e){const t=[];return nA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Br={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>am(t,"x"),y:(e,{transform:t})=>am(t,"y")};Br.translateX=Br.x;Br.translateY=Br.y;const Ls=new Set;let lm=!1,cm=!1,um=!1;function ZS(){if(cm){const e=Array.from(Ls).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=rA(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,i])=>{var a;(a=r.getValue(o))==null||a.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cm=!1,lm=!1,Ls.forEach(e=>e.complete(um)),Ls.clear()}function JS(){Ls.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cm=!0)})}function sA(){um=!0,JS(),ZS(),um=!1}class bg{constructor(t,n,r,s,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Ls.add(this),lm||(lm=!0,_e.read(JS),_e.resolveKeyframes(ZS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const o=s==null?void 0:s.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),s&&o===void 0&&s.set(t[0])}QP(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ls.delete(this)}cancel(){this.state==="scheduled"&&(Ls.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const oA=e=>e.startsWith("--");function iA(e,t,n){oA(t)?e.style.setProperty(t,n):e.style[t]=n}const aA=cg(()=>window.ScrollTimeline!==void 0),lA={};function cA(e,t){const n=cg(e);return()=>lA[t]??n()}const XS=cA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Yi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yi([0,.65,.55,1]),circOut:Yi([.55,0,1,.45]),backIn:Yi([.31,.01,.66,-.59]),backOut:Yi([.33,1.53,.69,.99])};function e_(e,t){if(e)return typeof e=="function"?XS()?GS(e,t):"ease-out":DS(e)?Yi(e):Array.isArray(e)?e.map(n=>e_(n,t)||uy.easeOut):uy[e]}function uA(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:i="loop",ease:a="easeOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const f=e_(a,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function t_(e){return typeof e=="function"&&"applyToOptions"in e}function dA({type:e,...t}){return t_(e)&&XS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class fA extends xg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,mi(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=dA(t);this.animation=uA(n,r,s,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const d=yg(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):iA(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Gt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Gt(t)}get time(){return Gt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&aA()?(this.animation.timeline=t,Qt):n(this)}}const n_={anticipate:OS,backInOut:RS,circInOut:LS};function hA(e){return e in n_}function mA(e){typeof e.ease=="string"&&hA(e.ease)&&(e.ease=n_[e.ease])}const hf=10;class pA extends fA{constructor(t){mA(t),QS(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:o,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new wg({...i,autoplay:!1}),l=Math.max(hf,yt.now()-this.startTime),u=Hn(0,hf,l-hf);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const dy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ns.test(e)||e==="0")&&!e.startsWith("url("));function gA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vA(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],i=dy(s,t),a=dy(o,t);return rd(i===a,`You are trying to animate ${t} from "${s}" to "${o}". "${i?o:s}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:gA(e)||(n==="spring"||t_(n))&&r}function dm(e){e.duration=0,e.type="keyframes"}const yA=new Set(["opacity","clipPath","filter","transform"]),xA=cg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wA(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:o,type:i}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return xA()&&n&&yA.has(n)&&(n!=="transform"||!u)&&!l&&!r&&s!=="mirror"&&o!==0&&i!=="inertia"}const bA=40;class SA extends xg{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:l,motionValue:u,element:d,...f}){var y;super(),this.stop=()=>{var p,b;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=yt.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:i,name:l,motionValue:u,element:d,...f},m=(d==null?void 0:d.KeyframeResolver)||bg;this.keyframeResolver=new m(a,(p,b,v)=>this.onKeyframesResolved(p,b,h,!v),l,u,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var b,v;this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:l,isHandoff:u,onUpdate:d}=r;this.resolvedAt=yt.now(),vA(t,o,i,a)||((cr.instantAnimations||!l)&&(d==null||d(yg(t,r,n))),t[0]=t[t.length-1],dm(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>bA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&wA(h),y=(v=(b=h.motionValue)==null?void 0:b.owner)==null?void 0:v.current,p=m?new pA({...h,element:y}):new wg(h);p.finished.then(()=>{this.notifyFinished()}).catch(Qt),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),sA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function r_(e,t,n,r=0,s=1){const o=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(o,i):s===1?o*r:a-o*r}const _A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function CA(e){const t=_A.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const EA=4;function s_(e,t,n=1){mi(n<=EA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=CA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const i=o.trim();return CS(i)?parseFloat(i):i}return hg(s)?s_(s,t,n+1):s}const jA={type:"spring",stiffness:500,damping:25,restSpeed:10},kA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TA={type:"keyframes",duration:.8},NA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PA=(e,{keyframes:t})=>t.length>2?TA:Ci.has(e)?e.startsWith("scale")?kA(t[1]):jA:NA,AA=e=>e!==null;function RA(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(AA),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}function Sg(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function OA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const _g=(e,t,n,r={},s,o)=>i=>{const a=Sg(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Bn(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:s};OA(a)||Object.assign(d,PA(e,d)),d.duration&&(d.duration=Bn(d.duration)),d.repeatDelay&&(d.repeatDelay=Bn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(dm(d),d.delay===0&&(f=!0)),(cr.instantAnimations||cr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(f=!0,dm(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const h=RA(d.keyframes,a);if(h!==void 0){_e.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new wg(d):new SA(d)};function fy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cg(e,t,n,r){if(typeof t=="function"){const[s,o]=fy(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=fy(r);t=t(n!==void 0?n:e.custom,s,o)}return t}function Wo(e,t,n){const r=e.getProps();return Cg(r,t,n!==void 0?n:r.custom,e)}const o_=new Set(["width","height","top","left","right","bottom",..._i]),hy=30,IA=e=>!isNaN(parseFloat(e));class LA{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const s=yt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=IA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ug);const r=this.events[t].add(n);return t==="change"?()=>{r(),_e.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hy);return kS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pi(e,t){return new LA(e,t)}const fm=e=>Array.isArray(e);function MA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pi(n))}function DA(e){return fm(e)?e[e.length-1]||0:e}function VA(e,t){const n=Wo(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const i in o){const a=DA(o[i]);MA(e,i,a)}}const dt=e=>!!(e&&e.getVelocity);function $A(e){return!!(dt(e)&&e.add)}function hm(e,t){const n=e.getValue("willChange");if($A(n))return n.add(t);if(!n&&cr.WillChange){const r=new cr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Eg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const FA="framerAppearId",i_="data-"+Eg(FA);function a_(e){return e.props[i_]}function BA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function l_(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...a}=t;const l=o==null?void 0:o.reduceMotion;r&&(o=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const f in a){const h=e.getValue(f,e.latestValues[f]??null),m=a[f];if(m===void 0||d&&BA(d,f))continue;const y={delay:n,...Sg(o||{},f)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(m)&&m===p&&!y.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const w=a_(e);if(w){const S=window.MotionHandoffAnimation(w,f,_e);S!==null&&(y.startTime=S,b=!0)}}hm(e,f);const v=l??e.shouldReduceMotion;h.start(_g(f,h,m,v&&o_.has(f)?{type:!1}:y,e,b));const g=h.animation;g&&u.push(g)}return i&&Promise.all(u).then(()=>{_e.update(()=>{i&&VA(e,i)})}),u}function mm(e,t,n={}){var l;const r=Wo(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(l_(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return UA(e,t,u,d,f,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,d]=a==="beforeChildren"?[o,i]:[i,o];return u().then(()=>d())}else return Promise.all([o(),i(n.delay)])}function UA(e,t,n=0,r=0,s=0,o=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(mm(l,t,{...i,delay:n+(typeof r=="function"?0:r)+r_(e.variantChildren,l,r,s,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function zA(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>mm(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=mm(e,t,n);else{const s=typeof t=="function"?Wo(e,t,n.custom):t;r=Promise.all(l_(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const HA={test:e=>e==="auto",parse:e=>e},c_=e=>t=>t.test(e),u_=[Si,q,Un,Sr,gP,pP,HA],my=e=>u_.find(c_(e));function WA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jS(e):!0}const qA=new Set(["brightness","contrast","saturate","opacity"]);function KA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mg)||[];if(!r)return e;const s=n.replace(r,"");let o=qA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const GA=/\b([a-z-]*)\(.*?\)/gu,pm={...ns,getAnimatableNone:e=>{const t=e.match(GA);return t?t.map(KA).join(" "):e}},py={...Si,transform:Math.round},YA={rotate:Sr,rotateX:Sr,rotateY:Sr,rotateZ:Sr,scale:Kl,scaleX:Kl,scaleY:Kl,scaleZ:Kl,skew:Sr,skewX:Sr,skewY:Sr,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:$a,originX:ty,originY:ty,originZ:q},jg={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,inset:q,insetBlock:q,insetBlockStart:q,insetBlockEnd:q,insetInline:q,insetInlineStart:q,insetInlineEnd:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,paddingBlock:q,paddingBlockStart:q,paddingBlockEnd:q,paddingInline:q,paddingInlineStart:q,paddingInlineEnd:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,marginBlock:q,marginBlockStart:q,marginBlockEnd:q,marginInline:q,marginInlineStart:q,marginInlineEnd:q,fontSize:q,backgroundPositionX:q,backgroundPositionY:q,...YA,zIndex:py,fillOpacity:$a,strokeOpacity:$a,numOctaves:py},QA={...jg,color:Be,backgroundColor:Be,outlineColor:Be,fill:Be,stroke:Be,borderColor:Be,borderTopColor:Be,borderRightColor:Be,borderBottomColor:Be,borderLeftColor:Be,filter:pm,WebkitFilter:pm},d_=e=>QA[e];function f_(e,t){let n=d_(e);return n!==pm&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ZA=new Set(["auto","none","0"]);function JA(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!ZA.has(o)&&Fa(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=f_(n,s)}class XA extends bg{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),hg(f))){const h=s_(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!o_.has(r)||t.length!==2)return;const[s,o]=t,i=my(s),a=my(o),l=ey(s),u=ey(o);if(l!==u&&Br[r]){this.needsMeasurement=!0;return}if(i!==a)if(cy(i)&&cy(a))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Br[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||WA(t[s]))&&r.push(s);r.length&&JA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Br[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=r.length-1,i=r[o];r[o]=Br[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 12,676 bytes, line 228
228h(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function kg(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const h_=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function gm(e){return ES(e)&&"offsetHeight"in e}const{schedule:Tg,cancel:AV}=VS(queueMicrotask,!1),dn={x:!1,y:!1};function m_(){return dn.x||dn.y}function e9(e){return e==="x"||e==="y"?dn[e]?null:(dn[e]=!0,()=>{dn[e]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function p_(e,t){const n=kg(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function gy(e){return!(e.pointerType==="touch"||m_())}function t9(e,t,n={}){const[r,s,o]=p_(e,n),i=a=>{if(!gy(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const d=f=>{gy(f)&&(u(f),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,s)};return r.forEach(a=>{a.addEventListener("pointerenter",i,s)}),o}const g_=(e,t)=>t?e===t?!0:g_(e,t.parentElement):!1,Ng=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,n9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r9(e){return n9.has(e.tagName)||e.isContentEditable===!0}const s9=new Set(["INPUT","SELECT","TEXTAREA"]);function o9(e){return s9.has(e.tagName)||e.isContentEditable===!0}const Ec=new WeakSet;function vy(e){return t=>{t.key==="Enter"&&e(t)}}function mf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const i9=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vy(()=>{if(Ec.has(n))return;mf(n,"down");const s=vy(()=>{mf(n,"up")}),o=()=>mf(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yy(e){return Ng(e)&&!m_()}function a9(e,t,n={}){const[r,s,o]=p_(e,n),i=a=>{const l=a.currentTarget;if(!yy(a))return;Ec.add(l);const u=t(l,a),d=(m,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Ec.has(l)&&Ec.delete(l),yy(m)&&typeof u=="function"&&u(m,{success:y})},f=m=>{d(m,l===window||l===document||n.useGlobalTarget||g_(l,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,s),gm(a)&&(a.addEventListener("focus",u=>i9(u,s)),!r9(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Pg(e){return ES(e)&&"ownerSVGElement"in e}const jc=new WeakMap;let _r;const v_=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Pg(r)&&"getBBox"in r?r.getBBox()[t]:r[n],l9=v_("inline","width","offsetWidth"),c9=v_("block","height","offsetHeight");function u9({target:e,borderBoxSize:t}){var n;(n=jc.get(e))==null||n.forEach(r=>{r(e,{get width(){return l9(e,t)},get height(){return c9(e,t)}})})}function d9(e){e.forEach(u9)}function f9(){typeof ResizeObserver>"u"||(_r=new ResizeObserver(d9))}function h9(e,t){_r||f9();const n=kg(e);return n.forEach(r=>{let s=jc.get(r);s||(s=new Set,jc.set(r,s)),s.add(t),_r==null||_r.observe(r)}),()=>{n.forEach(r=>{const s=jc.get(r);s==null||s.delete(t),s!=null&&s.size||_r==null||_r.unobserve(r)})}}const kc=new Set;let Po;function m9(){Po=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};kc.forEach(t=>t(e))},window.addEventListener("resize",Po)}function p9(e){return kc.add(e),Po||m9(),()=>{kc.delete(e),!kc.size&&typeof Po=="function"&&(window.removeEventListener("resize",Po),Po=void 0)}}function xy(e,t){return typeof e=="function"?p9(e):h9(e,t)}function g9(e){return Pg(e)&&e.tagName==="svg"}const v9=[...u_,Be,ns],y9=e=>v9.find(c_(e)),wy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ao=()=>({x:wy(),y:wy()}),by=()=>({min:0,max:0}),qe=()=>({x:by(),y:by()}),vm={current:null},y_={current:!1},x9=typeof window<"u";function w9(){if(y_.current=!0,!!x9)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vm.current=e.matches;e.addEventListener("change",t),t()}else vm.current=!1}const b9=new WeakMap;function sd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ba(e){return typeof e=="string"||Array.isArray(e)}const Ag=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rg=["initial",...Ag];function od(e){return sd(e.animate)||Rg.some(t=>Ba(e[t]))}function x_(e){return!!(od(e)||e.variants)}function S9(e,t,n){for(const r in t){const s=t[r],o=n[r];if(dt(s))e.addValue(r,s);else if(dt(o))e.addValue(r,pi(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(r);e.addValue(r,pi(i!==void 0?i:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Sy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let mu={};function w_(e){mu=e}function _9(){return mu}class C9{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:o,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=bg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=yt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,_e.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=od(n),this.isVariantNode=x_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];u[m]!==void 0&&dt(y)&&y.set(u[m])}}mount(t){var n;this.current=t,b9.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(y_.current||w9(),this.shouldReduceMotion=vm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),ts(this.notifyUpdate),ts(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ci.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&_e.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in mu){const n=mu[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Sy.length;r++){const s=Sy[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,i=t[o];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=S9(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=pi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(CS(r)||jS(r))?r=parseFloat(r):!y9(r)&&ns.test(n)&&(r=f_(t,n)),this.setBaseTarget(t,dt(r)?r.get():r)),dt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=Cg(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!dt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ug),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Tg.render(this.render)}}class b_ extends C9{constructor(){super(...arguments),this.KeyframeResolver=XA}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class is{constructor(t){this.isMounted=!1,this.node=t}update(){}}function S_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function E9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function j9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pf(e){return e===void 0||e===1}function ym({scale:e,scaleX:t,scaleY:n}){return!pf(e)||!pf(t)||!pf(n)}function ps(e){return ym(e)||__(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}
vendor: 8,424 bytes, line 228
228function __(e){return _y(e.x)||_y(e.y)}function _y(e){return e&&e!=="0%"}function pu(e,t,n){const r=e-n,s=t*r;return n+s}function Cy(e,t,n,r,s){return s!==void 0&&(e=pu(e,s,r)),pu(e,n,r)+t}function xm(e,t=0,n=1,r,s){e.min=Cy(e.min,t,n,r,s),e.max=Cy(e.max,t,n,r,s)}function C_(e,{x:t,y:n}){xm(e.x,t.translate,t.scale,t.originPoint),xm(e.y,n.translate,n.scale,n.originPoint)}const Ey=.999999999999,jy=1.0000000000001;function k9(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,i;for(let a=0;a<s;a++){o=n[a],i=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Oo(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,C_(e,i)),r&&ps(o.latestValues)&&Oo(e,o.latestValues))}t.x<jy&&t.x>Ey&&(t.x=1),t.y<jy&&t.y>Ey&&(t.y=1)}function Ro(e,t){e.min=e.min+t,e.max=e.max+t}function ky(e,t,n,r,s=.5){const o=Re(e.min,e.max,s);xm(e,t,n,o,r)}function Oo(e,t){ky(e.x,t.x,t.scaleX,t.scale,t.originX),ky(e.y,t.y,t.scaleY,t.scale,t.originY)}function E_(e,t){return S_(j9(e.getBoundingClientRect(),t))}function T9(e,t,n){const r=E_(e,n),{scroll:s}=t;return s&&(Ro(r.x,s.offset.x),Ro(r.y,s.offset.y)),r}const N9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},P9=_i.length;function A9(e,t,n){let r="",s=!0;for(let o=0;o<P9;o++){const i=_i[o],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(i.startsWith("scale")?1:0);else{const u=parseFloat(a);l=i.startsWith("scale")?u===1:u===0}if(!l||n){const u=h_(a,jg[i]);if(!l){s=!1;const d=N9[i]||i;r+=`${d}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Og(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let i=!1,a=!1;for(const l in t){const u=t[l];if(Ci.has(l)){i=!0;continue}else if(FS(l)){s[l]=u;continue}else{const d=h_(u,jg[l]);l.startsWith("origin")?(a=!0,o[l]=d):r[l]=d}}if(t.transform||(i||n?r.transform=A9(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=o;r.transformOrigin=`${l} ${u} ${d}`}}function j_(e,{style:t,vars:n},r,s){const o=e.style;let i;for(i in t)o[i]=t[i];s==null||s.applyProjectionStyles(o,r);for(i in n)o.setProperty(i,n[i])}function Ty(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ui={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;const n=Ty(e,t.target.x),r=Ty(e,t.target.y);return`${n}% ${r}%`}},R9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=ns.parse(e);if(s.length>5)return r;const o=ns.createTransformer(e),i=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+i]/=a,s[1+i]/=l;const u=Re(a,l,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),o(s)}},wm={borderRadius:{...Ui,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ui,borderTopRightRadius:Ui,borderBottomLeftRadius:Ui,borderBottomRightRadius:Ui,boxShadow:R9};function k_(e,{layout:t,layoutId:n}){return Ci.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wm[e]||e==="opacity")}function Ig(e,t,n){var i;const r=e.style,s=t==null?void 0:t.style,o={};if(!r)return o;for(const a in r)(dt(r[a])||s&&dt(s[a])||k_(a,e)||((i=n==null?void 0:n.getValue(a))==null?void 0:i.liveStyle)!==void 0)&&(o[a]=r[a]);return o}function O9(e){return window.getComputedStyle(e)}class I9 extends b_{constructor(){super(...arguments),this.type="html",this.renderInstance=j_}readValueFromInstance(t,n){var r;if(Ci.has(n))return(r=this.projection)!=null&&r.isProjecting?im(n):XP(t,n);{const s=O9(t),o=(FS(n)?s.getPropertyValue(n):s[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return E_(t,n)}build(t,n,r){Og(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ig(t,n,r)}}const L9={offset:"stroke-dashoffset",array:"stroke-dasharray"},M9={offset:"strokeDashoffset",array:"strokeDasharray"};function D9(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?L9:M9;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const V9=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function T_(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...a},l,u,d){if(Og(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const m of V9)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&D9(f,s,o,i,!1)}const N_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),P_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $9(e,t,n,r){j_(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(N_.has(s)?s:Eg(s),t.attrs[s])}function A_(e,t,n){const r=Ig(e,t,n);for(const s in e)if(dt(e[s])||dt(t[s])){const o=_i.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}class F9 extends b_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ci.has(n)){const r=d_(n);return r&&r.default||0}return n=N_.has(n)?n:Eg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return A_(t,n,r)}build(t,n,r){T_(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){$9(t,n,r,s)}mount(t){this.isSVGTag=P_(t.tagName),super.mount(t)}}const B9=Rg.length;function R_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?R_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<B9;n++){const r=Rg[n],s=e.props[r];(Ba(s)||s===!1)&&(t[r]=s)}return t}function O_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const U9=[...Ag].reverse(),z9=Ag.length;function H9(e){return t=>Promise.all(t.map(({animation:n,options:r})=>zA(e,n,r)))}function W9(e){let t=H9(e),n=Ny(),r=!0;const s=l=>(u,d)=>{var h;const f=Wo(e,d,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(f){const{transition:m,transitionEnd:y,...p}=f;u={...u,...p,...y}}return u};function o(l){t=l(e)}function i(l){const{props:u}=e,d=R_(e.parent)||{},f=[],h=new Set;let m={},y=1/0;for(let b=0;b<z9;b++){const v=U9[b],g=n[v],w=u[v]!==void 0?u[v]:d[v],S=Ba(w),_=v===l?g.isActive:null;_===!1&&(y=b);let C=w===d[v]&&w!==u[v]&&S;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),g.protectedKeys={...m},!g.isActive&&_===null||!w&&!g.prevProp||sd(w)||typeof w=="boolean")continue;const E=q9(g.prevProp,w);let j=E||v===l&&g.isActive&&!C&&S||b>y&&S,k=!1;const N=Array.isArray(w)?w:[w];let I=N.reduce(s(v),{});_===!1&&(I={});const{prevResolvedValues:O={}}=g,U={...O,...I},A=F=>{j=!0,h.has(F)&&(k=!0,h.delete(F)),g.needsAnimating[F]=!0;const T=e.getValue(F);T&&(T.liveStyle=!1)};for(const F in U){const T=I[F],P=O[F];if(m.hasOwnProperty(F))continue;let M=!1;fm(T)&&fm(P)?M=!O_(T,P):M=T!==P,M?T!=null?A(F):h.add(F):T!==void 0&&h.has(F)?A(F):g.protectedKeys[F]=!0}g.prevProp=w,g.prevResolvedValues=I,g.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(j=!1);const z=C&&E;j&&(!z||k)&&f.push(...N.map(F=>{const T={type:v};if(typeof F=="string"&&r&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:P}=e,M=Wo(P,F);if(P.enteringChildren&&M){const{delayChildren:K}=M.transition||{};T.delay=r_(P.enteringChildren,e,K)}}return{animation:F,options:T}}))}if(h.size){const b={};if(typeof u.initial!="boolean"){const v=Wo(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}h.forEach(v=>{const g=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),b[v]=g??null}),f.push({animation:b})}let p=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Prom
vendor: 2,607 bytes, line 228
228ise.resolve()}function a(l,u){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(h=>{var m;return(m=h.animationState)==null?void 0:m.setActive(l,u)}),n[l].isActive=u;const d=i(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ny()}}}function q9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!O_(t,e):!1}function us(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ny(){return{animate:us(!0),whileInView:us(),whileHover:us(),whileTap:us(),whileDrag:us(),whileFocus:us(),exit:us()}}function Py(e,t){e.min=t.min,e.max=t.max}function cn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const I_=1e-4,K9=1-I_,G9=1+I_,L_=.01,Y9=0-L_,Q9=0+L_;function xt(e){return e.max-e.min}function Z9(e,t,n){return Math.abs(e-t)<=n}function Ry(e,t,n,r=.5){e.origin=r,e.originPoint=Re(t.min,t.max,e.origin),e.scale=xt(n)/xt(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=K9&&e.scale<=G9||isNaN(e.scale))&&(e.scale=1),(e.translate>=Y9&&e.translate<=Q9||isNaN(e.translate))&&(e.translate=0)}function da(e,t,n,r){Ry(e.x,t.x,n.x,r?r.originX:void 0),Ry(e.y,t.y,n.y,r?r.originY:void 0)}function Oy(e,t,n){e.min=n.min+t.min,e.max=e.min+xt(t)}function J9(e,t,n){Oy(e.x,t.x,n.x),Oy(e.y,t.y,n.y)}function Iy(e,t,n){e.min=t.min-n.min,e.max=e.min+xt(t)}function gu(e,t,n){Iy(e.x,t.x,n.x),Iy(e.y,t.y,n.y)}function Ly(e,t,n,r,s){return e-=t,e=pu(e,1/n,r),s!==void 0&&(e=pu(e,1/s,r)),e}function X9(e,t=0,n=1,r=.5,s,o=e,i=e){if(Un.test(t)&&(t=parseFloat(t),t=Re(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=Re(o.min,o.max,r);e===o&&(a-=t),e.min=Ly(e.min,t,n,a,s),e.max=Ly(e.max,t,n,a,s)}function My(e,t,[n,r,s],o,i){X9(e,t[n],t[r],t[s],t.scale,o,i)}const e8=["x","scaleX","originX"],t8=["y","scaleY","originY"];function Dy(e,t,n,r){My(e.x,t,e8,n?n.x:void 0,r?r.x:void 0),My(e.y,t,t8,n?n.y:void 0,r?r.y:void 0)}function Vy(e){return e.translate===0&&e.scale===1}function M_(e){return Vy(e.x)&&Vy(e.y)}function $y(e,t){return e.min===t.min&&e.max===t.max}function n8(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Fy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D_(e,t){return Fy(e.x,t.x)&&Fy(e.y,t.y)}function By(e){return xt(e.x)/xt(e.y)}function Uy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function zt(e){return[e("x"),e("y")]}function r8(e,t,n){let r="";
vendor: 19,221 bytes, line 228
228const s=e.x.translate/t.x,o=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((s||o||i)&&(r=`translate3d(${s}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:m,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const V_=["TopLeft","TopRight","BottomLeft","BottomRight"],s8=V_.length,zy=e=>typeof e=="string"?parseFloat(e):e,Hy=e=>typeof e=="number"||q.test(e);function o8(e,t,n,r,s,o){s?(e.opacity=Re(0,n.opacity??1,i8(r)),e.opacityExit=Re(t.opacity??1,0,a8(r))):o&&(e.opacity=Re(t.opacity??1,n.opacity??1,r));for(let i=0;i<s8;i++){const a=`border${V_[i]}Radius`;let l=Wy(t,a),u=Wy(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Hy(l)===Hy(u)?(e[a]=Math.max(Re(zy(l),zy(u),r),0),(Un.test(u)||Un.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Re(t.rotate||0,n.rotate||0,r))}function Wy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const i8=$_(0,.5,IS),a8=$_(.5,.95,Qt);function $_(e,t,n){return r=>r<e?0:r>t?1:n(Va(e,t,r))}function l8(e,t,n){const r=dt(e)?e:pi(e);return r.start(_g("",r,t,n)),r.animation}function Ua(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const c8=(e,t)=>e.depth-t.depth;class u8{constructor(){this.children=[],this.isDirty=!1}add(t){ag(this.children,t),this.isDirty=!0}remove(t){lg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(c8),this.isDirty=!1,this.children.forEach(t)}}function d8(e,t){const n=yt.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(ts(r),e(o-t))};return _e.setup(r,!0),()=>ts(r)}function Tc(e){return dt(e)?e.get():e}class f8{constructor(){this.members=[]}add(t){ag(this.members,t),t.scheduleRender()}remove(t){if(lg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const s=r.options.layoutDependency,o=t.options.layoutDependency;s!==void 0&&o!==void 0&&s===o||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gf=["","X","Y","Z"],h8=1e3;let m8=0;function vf(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function F_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=a_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",_e,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&F_(r)}function B_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},a=t==null?void 0:t()){this.id=m8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(v8),this.nodes.forEach(b8),this.nodes.forEach(S8),this.nodes.forEach(y8)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new u8)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ug),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Pg(i)&&!g9(i),this.instance=i;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;_e.read(()=>{f=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=d8(h,250),Nc.hasAnimatedSinceResize&&(Nc.hasAnimatedSinceResize=!1,this.nodes.forEach(Gy)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||k8,{onLayoutAnimationStart:p,onLayoutAnimationComplete:b}=u.getProps(),v=!this.targetLayout||!D_(this.targetLayout,m),g=!f&&h;if(this.options.layoutRoot||this.resumeFrom||g||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Sg(y,"layout"),onPlay:p,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,g)}else f||Gy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ts(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_8),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&F_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ky);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(w8),this.nodes.forEach(p8),this.nodes.forEach(g8)):this.nodes.forEach(Ky),this.clearAllSnapshots();const a=yt.now();nt.delta=Hn(0,1e3/60,a-nt.timestamp),nt.timestamp=a,nt.isProcessing=!0,lf.update.process(nt),lf.preRender.process(nt),lf.render.process(nt),nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(x8),this.sharedNodes.forEach(C8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xt(this.snapshot.measuredBox.x)&&!xt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!M_(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(a||ps(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),T8(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:i}=this.options;if(!i)return qe();const a=i.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(N8))){const{scroll:d}=this.root;d&&(Ro(a.x,d.offset.x),Ro(a.y,d.offset.y))}return a}removeElementScroll(i){var l;const a=qe();if(cn(a,i),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&cn(a,i),Ro(a.x,f.offset.x),Ro(a.y,f.offset.y))}return a}applyTransform(i,a=!1){const l=qe();cn(l,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Oo(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ps(d.latestValues)&&Oo(l,d.latestValues)}return ps(this.latestValues)&&Oo(l,this.latestValues),l}removeTransform(i){const a=qe();cn(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ps(u.latestValues))continue;ym(u.latestValues)&&u.updateSnapshot();const d=qe(),f=u.measurePageBox();cn(d,f),Dy(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ps(this.latestValues)&&Dy(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=nt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qe(),this.targetWithTransforms=qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),J9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):cn(this.target,this.layout.layoutBox),C_(this.target,this.targetDelta)):cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ym(this.parent.latestValues)||__(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,l){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),gu(this.relativeTargetOrigin,a,l),cn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const i=this.getLead(),a=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===nt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;cn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;k9(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=qe());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),da(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Uy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ao(),this.projectionDelta=Ao(),this.projectionDeltaWithTransform=Ao()}setAnimationOrigin(i,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=Ao();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=qe(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,p=m!==y,b=this.getStack(),v=!b||b.members.length<=1,g=!!(p&&!v&&this.options.crossfade===!0&&!this.path.some(j8));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const _=S/1e3;Yy(f.x,i.x,_),Yy(f.y,i.y,_),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),E8(this.relativeTarget,this.relativeTargetOrigin,h,_),w&&n8(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=qe()),cn(w,this.relativeTarget)),p&&(this.animationValues=d,o8(d,u,this.latestValues,_,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ts(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{Nc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pi(0)),this.currentAnimation=l8(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),i.onUpdate&&i.onUpdate(d)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(h8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=i;if(!(!a||!l||!u)){if(this!==i&&this.layout&&u&&U_(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||qe(
vendor: 5,362 bytes, line 228
228);const f=xt(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;const h=xt(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}cn(a,l),Oo(a,d),da(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new f8),this.sharedNodes.get(i).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var a;const{layoutId:i}=this.options;return i?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:i}=this.options;return i?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&vf("z",i,u,this.animationValues);for(let d=0;d<gf.length;d++)vf(`rotate${gf[d]}`,i,u,this.animationValues),vf(`skew${gf[d]}`,i,u,this.animationValues);i.render();for(const d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Tc(a==null?void 0:a.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Tc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ps(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=r8(this.projectionDeltaWithTransform,this.treeScale,d);l&&(f=l(d,f)),i.transform=f;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in wm){if(d[y]===void 0)continue;const{correct:p,applyTo:b,isCSSVariable:v}=wm[y],g=f==="none"?d[y]:p(d[y],u);if(b){const w=b.length;for(let S=0;S<w;S++)i[b[S]]=g}else v?this.options.visualElement.renderState.vars[y]=g:i[y]=g}this.options.layoutId&&(i.pointerEvents=u===this?Tc(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(qy),this.root.sharedNodes.clear()}}}function p8(e){e.updateLayout()}function g8(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?zt(f=>{const h=i?t.measuredBox[f]:t.layoutBox[f],m=xt(h);h.min=r[f].min,h.max=h.min+m}):U_(o,t.layoutBox,r)&&zt(f=>{const h=i?t.measuredBox[f]:t.layoutBox[f],m=xt(r[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const a=Ao();da(a,r,t.layoutBox);const l=Ao();i?da(l,e.applyTransform(s,!0),t.measuredBox):da(l,r,t.layoutBox);const u=!M_(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const y=qe();gu(y,t.layoutBox,h.layoutBox);const p=qe();gu(p,r,m.layoutBox),D_(y,p)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function v8(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function y8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function x8(e){e.clearSnapshot()}function qy(e){e.clearMeasurements()}function Ky(e){e.isLayoutDirty=!1}function w8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function b8(e){e.resolveTargetDelta()}function S8(e){e.calcProjection()}
vendor: 11,946 bytes, lines 228-236
228function _8(e){e.resetSkewAndRotation()}function C8(e){e.removeLeadSnapshot()}function Yy(e,t,n){e.translate=Re(t.translate,0,n),e.scale=Re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qy(e,t,n,r){e.min=Re(t.min,n.min,r),e.max=Re(t.max,n.max,r)}function E8(e,t,n,r){Qy(e.x,t.x,n.x,r),Qy(e.y,t.y,n.y,r)}function j8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const k8={duration:.45,ease:[.4,0,.1,1]},Zy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jy=Zy("applewebkit/")&&!Zy("chrome/")?Math.round:Qt;function Xy(e){e.min=Jy(e.min),e.max=Jy(e.max)}function T8(e){Xy(e.x),Xy(e.y)}function U_(e,t,n){return e==="position"||e==="preserve-aspect"&&!Z9(By(t),By(n),.2)}function N8(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const P8=B_({attachResizeListener:(e,t)=>Ua(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),yf={current:void 0},z_=B_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yf.current){const e=new P8({});e.mount(window),e.setOptions({layoutScroll:!0}),yf.current=e}return yf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Lg=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ex(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function A8(...e){return t=>{let n=!1;const r=e.map(s=>{const o=ex(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():ex(e[s],null)}}}}function R8(...e){return x.useCallback(A8(...e),e)}class O8 extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=gm(r)&&r.offsetWidth||0,o=gm(r)&&r.offsetHeight||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left,i.bottom=o-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function I8({children:e,isPresent:t,anchorX:n,anchorY:r,root:s}){var f;const o=x.useId(),i=x.useRef(null),a=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=x.useContext(Lg),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=R8(i,u);return x.useInsertionEffect(()=>{const{width:h,height:m,top:y,left:p,right:b,bottom:v}=a.current;if(t||!i.current||!h||!m)return;const g=n==="left"?`left: ${p}`:`right: ${b}`,w=r==="bottom"?`bottom: ${v}`:`top: ${y}`;i.current.dataset.motionPopId=o;const S=document.createElement("style");l&&(S.nonce=l);const _=s??document.head;return _.appendChild(S),S.sheet&&S.sheet.insertRule(`
229          [data-motion-pop-id="${o}"] {
230            position: absolute !important;
231            width: ${h}px !important;
232            height: ${m}px !important;
233            ${g}px !important;
234            ${w}px !important;
235          }
236        `),()=>{_.contains(S)&&_.removeChild(S)}},[t]),c.jsx(O8,{isPresent:t,childRef:i,sizeRef:a,children:x.cloneElement(e,{ref:d})})}const L8=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:i,anchorX:a,anchorY:l,root:u})=>{const d=ig(M8),f=x.useId();let h=!0,m=x.useMemo(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:y=>{d.set(y,!0);for(const p of d.values())if(!p)return;r&&r()},register:y=>(d.set(y,!1),()=>d.delete(y))}),[n,d,r]);return o&&h&&(m={...m}),x.useMemo(()=>{d.forEach((y,p)=>d.set(p,!1))},[n]),x.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),i==="popLayout"&&(e=c.jsx(I8,{isPresent:n,anchorX:a,anchorY:l,root:u,children:e})),c.jsx(nd.Provider,{value:m,children:e})};function M8(){return new Map}function H_(e=!0){const t=x.useContext(nd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=x.useId();x.useEffect(()=>{if(e)return s(o)},[e]);const i=x.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,i]:[!0]}const Gl=e=>e.key||"";function tx(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const Ar=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:i=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[d,f]=H_(i),h=x.useMemo(()=>tx(e),[e]),m=i&&!d?[]:h.map(Gl),y=x.useRef(!0),p=x.useRef(h),b=ig(()=>new Map),v=x.useRef(new Set),[g,w]=x.useState(h),[S,_]=x.useState(h);_S(()=>{y.current=!1,p.current=h;for(let j=0;j<S.length;j++){const k=Gl(S[j]);m.includes(k)?(b.delete(k),v.current.delete(k)):b.get(k)!==!0&&b.set(k,!1)}},[S,m.length,m.join("-")]);const C=[];if(h!==g){let j=[...h];for(let k=0;k<S.length;k++){const N=S[k],I=Gl(N);m.includes(I)||(j.splice(k,0,N),C.push(N))}return o==="wait"&&C.length&&(j=C),_(tx(j)),w(h),null}const{forceRender:E}=x.useContext(og);return c.jsx(c.Fragment,{children:S.map(j=>{const k=Gl(j),N=i&&!d?!1:h===S||m.includes(k),I=()=>{if(v.current.has(k))return;if(v.current.add(k),b.has(k))b.set(k,!0);else return;let O=!0;b.forEach(U=>{U||(O=!1)}),O&&(E==null||E(),_(p.current),i&&(f==null||f()),r&&r())};return c.jsx(L8,{isPresent:N,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,root:u,onExitComplete:N?void 0:I,anchorX:a,anchorY:l,children:j},k)})})},W_=x.createContext({strict:!1}),nx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let rx=!1;function D8(){if(rx)return;const e={};for(const t in nx)e[t]={isEnabled:n=>nx[t].some(r=>!!n[r])};w_(e),rx=!0}function q_(){return D8(),_9()}function V8(e){const t=q_();for(const n in e)t[n]={...t[n],...e[n]};w_(t)}const $8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function vu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$8.has(e)}let K_=e=>!vu(e);function F8(e){typeof e=="function"&&(K_=t=>t.startsWith("on")?!vu(t):e(t))}try{F8(require("@emotion/is-prop-valid").default)}catch{}function B8(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(K_(s)||n===!0&&vu(s)||!t&&!vu(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const id=x.createContext({});function U8(e,t){if(od(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ba(n)?n:void 0,animate:Ba(r)?r:void 0}}return e.inherit!==!1?t:{}}function z8(e){const{initial:t,animate:n}=U8(e,x.useContext(id));return x.useMemo(()=>({initial:t,animate:n}),[sx(t),sx(n)])}function sx(e){return Array.isArray(e)?e.join(" "):e}const Mg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function G_(e,t,n){for(const r in t)!dt(t[r])&&!k_(r,n)&&(e[r]=t[r])}function H8({transformTemplate:e},t){return x.useMemo(()=>{const n=Mg();return Og(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W8(e,t){const n=e.style||{},r={};return G_(r,n,e),Object.assign(r,H8(e,t)),r}function q8(e,t){const n={},r=W8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Y_=()=>({...Mg(),attrs:{}});function K8(e,t,n,r){const s=x.useMemo(()=>{const o=Y_();return T_(o,t,P_(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};G_(o,e.style,e),s.style={...o,...s.style}}return s}const G8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Dg(e){return typeof e!="string"||e.includes("-")?!1:!!(G8.indexOf(e)>-1||/[A-Z]/u.test(e))}function Y8(e,t,n,{latestValues:r},s,o=!1,i){const l=(i??Dg(e)?K8:q8)(t,r,s,e),u=B8(t,typeof e=="string",o),d=e!==x.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=x.useMemo(()=>dt(f)?f.get():f,[f]);return x.createElement(e,{...d,children:h})}function Q8({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:Z8(n,r,s,e),renderState:t()}}function Z8(e,t,n,r){const s={},o=r(e,{});for(const h in o)s[h]=Tc(o[h]);let{initial:i,animate:a}=e;const l=od(e),u=x_(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?a:i;if(f&&typeof f!="boolean"&&!sd(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const y=Cg(e,h[m]);if(y){const{transitionEnd:p,transition:b,...v}=y;for(const g in v){let w=v[g];if(Array.isArray(w)){const S=d?w.length-1:0;w=w[S]}w!==null&&(s[g]=w)}for(const g in p)s[g]=p[g]}}}return s}const Q_=e=>(t,n)=>{const r=x.useContext(id),s=x.useContext(nd),o=()=>Q8(e,t,r,s);return n?o():ig(o)},J8=Q_({scrapeMotionValuesFromProps:Ig,createRenderState:Mg}),X8=Q_({scrapeMotionValuesFromProps:A_,createRenderState:Y_}),eR=Symbol.for("motionComponentSymbol");function tR(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const s=x.useRef(null);return x.useCallback(o=>{var a;o&&((a=e.onMount)==null||a.call(e,o)),t&&(o?t.mount(o):t.unmount());const i=r.current;if(typeof i=="function")if(o){const l=i(o);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):i(o);else i&&(i.current=o)},[t])}const Z_=x.createContext({});function ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nR(e,t,n,r,s,o){var w,S;const{visualElement:i}=x.useContext(id),a=x.useContext(W_),l=x.useContext(nd),u=x.useContext(Lg),d=u.reducedMotion,f=u.skipAnimations,h=x.useRef(null),m=x.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:o}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,p=x.useContext(Z_);y&&!y.projection&&s&&(y.type==="html"||y.type==="svg")&&rR(h.current,n,s,p);const b=x.useRef(!1);x.useInsertionEffect(()=>{y&&b.current&&y.update(n,l)});const v=n[i_],g=x.useRef(!!v&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,v))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,v)));return _S(()=>{m.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),g.current&&y.animationState&&y.animationState.animateChanges())}),x.useEffect(()=>{y&&(!g.current&&y.animationState&&y.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,v)}),g.current=!1),y.enteringChildren=void 0)}),y}function rR(e,t,n,r){const{layoutId:s,layout:o,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:J_(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!i||a&&ho(a),visualElement:e,animationType:typeof o=="str
236ing"?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function J_(e){if(e)return e.options.allowProjection!==!1?e.projection:J_(e.parent)}function xf(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&V8(r);const o=n?n==="svg":Dg(e),i=o?X8:J8;function a(u,d){let f;const h={...x.useContext(Lg),...u,layoutId:sR(u)},{isStatic:m}=h,y=z8(u),p=i(u,m);if(!m&&SS){oR();const b=iR(h);f=b.MeasureLayout,y.visualElement=nR(e,p,h,s,b.ProjectionNode,o)}return c.jsxs(id.Provider,{value:y,children:[f&&y.visualElement?c.jsx(f,{visualElement:y.visualElement,...h}):null,Y8(e,u,tR(p,y.visualElement,d),p,m,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=x.forwardRef(a);return l[eR]=e,l}function sR({layoutId:e}){const t=x.useContext(og).id;return t&&e!==void 0?t+"-"+e:e}function oR(e,t){x.useContext(W_).strict}function iR(e){const t=q_(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function aR(e,t){if(typeof Proxy>"u")return xf;const n=new Map,r=(o,i)=>xf(o,i,e,t),s=(o,i)=>r(o,i);return new Proxy(s,{get:(o,i)=>i==="create"?r:(n.has(i)||n.set(i,xf(i,void 0,e,t)),n.get(i))})}const lR=(e,t)=>t.isSVG??Dg(e)?new F9(t):new I9(t,{allowProjection:e!==x.Fragment});class cR extends is{constructor(t){super(t),t.animationState||(t.animationState=W9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let uR=0;class dR extends is{constructor(){super(...arguments),this.id=uR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const fR={animation:{Feature:cR},exit:{Feature:dR}};function hl(e){return{point:{x:e.pageX,y:e.pageY}}}const hR=e=>t=>Ng(t)&&e(t,hl(t));function fa(e,t,n,r){return Ua(e,t,hR(n),r)}const X_=({current:e})=>e?e.ownerDocument.defaultView:null,ox=(e,t)=>Math.abs(e-t);function mR(e,t){const n=ox(e.x,t.x),r=ox(e.y,t.y);return Math.sqrt(n**2+r**2)}const ix=new Set(["auto","scroll"]);class e4{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=bf(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,p=mR(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!p)return;const{point:b}=m,{timestamp:v}=nt;this.history.push({...b,timestamp:v});const{onStart:g,onMove:w}=this.handlers;y||(g&&g(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=wf(y,this.transformPagePoint),_e.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=bf(m.type==="pointercancel"?this.lastMoveEventInfo:wf(y,this.transformPagePoint),this.history);this.startEvent&&p&&p(m,g),b&&b(m,g)},!Ng(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=s||window;const l=hl(t),u=wf(l,this.transformPagePoint),{point:d}=u,{timestamp:f}=nt;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;
vendor: 13,642 bytes, line 236
236h&&h(t,bf(u,this.history)),this.removeListeners=ul(fa(this.contextWindow,"pointermove",this.handlePointerMove),fa(this.contextWindow,"pointerup",this.handlePointerUp),fa(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(ix.has(r.overflowX)||ix.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:s.x-n.x,y:s.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),_e.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ts(this.updatePoint)}}function wf(e,t){return t?{point:t(e.point)}:e}function ax(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bf({point:e},t){return{point:e,delta:ax(e,t4(t)),offset:ax(e,pR(t)),velocity:gR(t,.1)}}function pR(e){return e[0]}function t4(e){return e[e.length-1]}function gR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=t4(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Bn(t)));)n--;if(!r)return{x:0,y:0};const o=Gt(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function vR(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Re(n,e,r.max):Math.min(e,n)),e}function lx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yR(e,{top:t,left:n,bottom:r,right:s}){return{x:lx(e.x,n,s),y:lx(e.y,t,r)}}function cx(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function xR(e,t){return{x:cx(e.x,t.x),y:cx(e.y,t.y)}}function wR(e,t){let n=.5;const r=xt(e),s=xt(t);return s>r?n=Va(t.min,t.max-r,e.min):r>s&&(n=Va(e.min,e.max-s,t.min)),Hn(0,1,n)}function bR(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bm=.35;function SR(e=bm){return e===!1?e=0:e===!0&&(e=bm),{x:ux(e,"left","right"),y:ux(e,"top","bottom")}}function ux(e,t,n){return{min:dx(e,t),max:dx(e,n)}}function dx(e,t){return typeof e=="number"?e:e[t]||0}const _R=new WeakMap;class CR{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=f=>{n?(this.stopAnimation(),this.snapToCursor(hl(f).point)):this.pauseAnimation()},i=(f,h)=>{this.stopAnimation();const{drag:m,dragPropagation:y,onDragStart:p}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=e9(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zt(v=>{let g=this.getAxisMotionValue(v).get()||0;if(Un.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[v];S&&(g=xt(S)*(parseFloat(g)/100))}}this.originPoint[v]=g}),p&&_e.update(()=>p(f,h),!1,!0),hm(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:p,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=h;if(y&&this.currentDirection===null){this.currentDirection=jR(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),b&&_e.update(()=>b(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>zt(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)==null?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new e4(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:X_(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!r)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&_e.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Yl(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=vR(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,s=this.constraints;t&&ho(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=yR(r.layoutBox,t):this.constraints=!1,this.elastic=SR(n),s!==this.constraints&&!ho(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&zt(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=bR(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ho(t))return!1;const r=t.current;mi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=T9(r,s.root,this.visualElement.getTransformPagePoint());let i=xR(s.layout.layoutBox,o);if(n){const a=n(E9(i));this.hasMutatedConstraints=!!a,a&&(i=S_(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=zt(d=>{if(!Yl(d,n,this.currentDirection))return;let f=l&&l[d]||{};i&&(f={min:0,max:0});const h=s?200:1e6,m=s?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hm(this.visualElement,t),r.start(_g(t,r,0,n,this.visualElement,!1))}stopAnimation(){zt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){zt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){zt(n=>{const{drag:r}=this.getProps();if(!Yl(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:a}=s.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-Re(i,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ho(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};zt(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();s[i]=wR({min:l,max:l},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),zt(i=>{if(!Yl(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];a.set(Re(l,u,s[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_R.set(this.visualElement,this);const t=this.visualElement.current,n=fa(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=u.target,m=h!==t&&o9(h);d&&f&&!m&&this.start(u)});let r;const s=()=>{const{dragConstraints:u}=this.getProps();ho(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=ER(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),_e.read(s);const a=Ua(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(zt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=bm,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function fx(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ER(e,t,n){const r=xy(e,fx(n)),s=xy(t,fx(n));return()=>{r(),s()}}function Yl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kR extends is{constructor(t){super(t),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new CR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Sf=e=>(t,n)=>{e&&_e.update(()=>e(t,n),!1,!0)};class TR extends is{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(t){this.session=new e4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:X_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Sf(t),onStart:Sf(n),onMove:Sf(r),onEnd:(o,i)=>{delete this.session,s&&_e.postRender(()=>s(o,i))}}}mount(){this.removePointerDownListener=fa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let _f=!1;class NR extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),_f&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,{projection:i}=r;return i&&(i.isPresent=o,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),_f=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||_e.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;_f=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function n4(e){const[t,n]=H_(),r=x.useContext(og);return c.jsx(NR,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Z_),isPresent:t,safeToRemove:n})}const PR={pan:{Feature:TR},drag:{Feature:kR,ProjectionNode:z_,MeasureLayout:n4}};
vendor: 8,836 bytes, line 236
236function hx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&_e.postRender(()=>o(t,hl(t)))}class AR extends is{mount(){const{current:t}=this.node;t&&(this.unmount=t9(t,(n,r)=>(hx(this.node,r,"Start"),s=>hx(this.node,s,"End"))))}unmount(){}}class RR extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ul(Ua(this.node.current,"focus",()=>this.onFocus()),Ua(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mx(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=r[s];o&&_e.postRender(()=>o(t,hl(t)))}class OR extends is{mount(){const{current:t}=this.node;t&&(this.unmount=a9(t,(n,r)=>(mx(this.node,r,"Start"),(s,{success:o})=>mx(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Sm=new WeakMap,Cf=new WeakMap,IR=e=>{const t=Sm.get(e.target);t&&t(e)},LR=e=>{e.forEach(IR)};function MR({root:e,...t}){const n=e||document;Cf.has(n)||Cf.set(n,{});const r=Cf.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(LR,{root:e,...t})),r[s]}function DR(e,t,n){const r=MR(t);return Sm.set(e,n),r.observe(e),()=>{Sm.delete(e),r.unobserve(e)}}const VR={some:0,all:1};class $R extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:VR[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(l)};return DR(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(FR(t,n))&&this.startObserver()}unmount(){}}function FR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const BR={inView:{Feature:$R},tap:{Feature:OR},focus:{Feature:RR},hover:{Feature:AR}},UR={layout:{ProjectionNode:z_,MeasureLayout:n4}},zR={...fR,...BR,...PR,...UR},Y=aR(zR,lR),HR={some:0,all:1};function WR(e,t,{root:n,margin:r,amount:s="some"}={}){const o=kg(e),i=new WeakMap,a=u=>{u.forEach(d=>{const f=i.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){const h=t(d.target,d);typeof h=="function"?i.set(d.target,h):l.unobserve(d.target)}else typeof f=="function"&&(f(d),i.delete(d.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof s=="number"?s:HR[s]});return o.forEach(u=>l.observe(u)),()=>l.disconnect()}function ze(e,{root:t,margin:n,amount:r,once:s=!1,initial:o=!1}={}){const[i,a]=x.useState(o);return x.useEffect(()=>{if(!e.current||s&&i)return;const l=()=>(a(!0),s?void 0:()=>a(!1)),u={root:t&&t.current||void 0,margin:n,amount:r};return WR(e.current,l,u)},[t,e,n,s,r]),i}const qR=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],KR={utm_source:"quiz_lovable___utm_source",utm_medium:"quiz_lovable___utm_medium",utm_campaign:"quiz_lovable___utm_campain",utm_content:"quiz_lovable___utm_content",utm_term:"quiz_lovable___utm_term"},px="freelancers",ml=()=>{const e=x.useMemo(()=>{const n=new URLSearchParams(window.location.search),r={};return qR.forEach(s=>{const o=n.get(s);o&&(r[s]=o)}),r},[]);return{utmParams:e,appendUtmToUrl:n=>{try{const r=new URL(n),s=new URLSearchParams(window.location.search);Object.entries(e).forEach(([a,l])=>{r.searchParams.has(a)||r.searchParams.append(a,l);const u=KR[a];u&&!r.searchParams.has(u)&&r.searchParams.append(u,l)});const o=s.get("promo_code");o&&!r.searchParams.has("promo_code")&&r.searchParams.append("promo_code",o);const i=s.get("chegaste_ate_nos_atraves_de_algum_parceiro_");return i&&r.searchParams.set("chegaste_ate_nos_atraves_de_algum_parceiro_",i),px&&!r.searchParams.has("quiz_lovable___page_viewed")&&r.searchParams.append("quiz_lovable___page_viewed",px),r.toString()}catch{return n}}}},wr={cursosTecnologia:{title:"Cursos de Tecnologia",items:[{title:"Introdução a Tecnologia",hours:"15h a 35h",description:"Capacita-te nas áreas de tecnologia altamente valorizadas no mercado de hoje.",links:[{label:"Análise de dados (SQL)",href:"https://codeforall.com/cursos-iniciacao/introducao-ao-sql"},{label:"Programação (JavaScript)",href:"https://codeforall.com/cursos-iniciacao/introducao-a-programacao-com-javascript"},{label:"Cibersegurança",href:"https://codeforall.com/cursos-iniciacao/ciberseguranca/"},{label:"Desenvolvimento de jogos",href:"https://codeforall.com/cursos-iniciacao/introducao-desenvolvimento-jogos"},{label:"Tecnologias cloud e DevOps",href:"https://codeforall.com/cursos-iniciacao/introducao-cloud-devops"}],cta:{label:"Aprende as bases de tecnologia",href:"https://codeforall.com/cursos-curtos/cursos-fundamentos"}},{title:"Bootcamp | Software Engineering & AI",hours:"565h",description:"Para quem pretende iniciar a sua jornada a programar do zero e/ou está à procura de uma transição de carreira.",format:"Online · 26 semanas · Part-time",cta:{label:"Muda de carreira para programação",href:"https://codeforall.com/cursos-intensivos/software-engineering-ai"}}]},cursosIA:{title:"Cursos de Inteligência Artificial",items:[{title:"Introdução a IA",hours:"14h a 35h",description:"Aprende a dominar a inteligência artificial e prepara as tuas capacidades para o futuro.",links:[{label:"Geral",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-iniciantes"},{label:"Produto e Automação (Vibe Coding)",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-produto-automacao",highlight:!0},{label:"Programadores",href:"https://codeforall.com/cursos-especializacao/inteligencia-artificial-para-programadores"},{label:"Professores",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-professores"},{label:"Psicólogos",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-psicologos"},{label:"Setor Comunicação",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-comunicacao"},{label:"Setor Contabilidade",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-contabilidade"},{label:"Setor Jurídico",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-juridico"},{label:"Setor RH",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-recursos-humanos"},{label:"Setor Sustentabilidade",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-sustentabilidade"},{label:"Setor Vendas",href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-vendas"}],cta:{label:"Aprende as bases de inteligência artificial",href:"https://codeforall.com/cursos-curtos/cursos-ia"}},{title:"Automação e Agentes com IA",hours:"45h",description:"Curso intensivo focado na criação de automações e agentes com inteligência artificial. Constrói agentes capazes de executar tarefas reais, melhorar processos e criar impacto imediato no teu trabalho.",format:"Online · 6 semanas · Pós-laboral",links:[{label:"Consultores & Leadership",href:"https://agentic-codeforall-consultants.lovable.app",external:!0},{label:"Freelancers",href:"https://agentic-codeforall-freelancers.lovable.app",external:!0},{label:"Founders & Small Business Owners",href:"https://agentic-codeforall-sbos.lovable.app",external:!0}],linksLabel:"ESCOLHE O PERCURSO MAIS RELEVANTE PARA O TEU PERFIL",cta:{label:"Curso Automação e Agentes com IA",href:"https://agentic.codeforall.com"}}]},empresas:{title:"Formação para empresas",items:[{title:"Formação para empresas",href:"https://codeforall.com/empresas",description:"Capacite a sua equipa em Inteligência Artificial com turmas e acompanhamento personalizado."},{title:"Fundo de Compensação do Trabalho (FCT)",href:"https://codeforall.com/servicos-para-empresas/fundo-compensacao-trabalho-fct",description:"Descubra qual é o saldo da sua empresa no FCT e como pode resgatá-lo."}]},alunos:{title:"Outro",items:[{title:"Método de ensino",href:"https://codeforall.com/servicos-para-ti/metodo-de-ensino",description:"Desbloqueia o teu potencial através de um m
236étodo de ensino único."},{title:"Opções de pagamento",href:"https://codeforall.com/servicos-para-ti/financiamento",description:"Descobre opções flexíveis de pagamento."},{title:"Referencia um amigo",href:"https://codeforall.com/servicos-para-ti/referencia",description:"Por cada amigo que referencies, ambos ganham uma recompensa."},{title:"Apoio a carreiras",href:"https://codeforall.com/servicos-para-ti/carreiras",description:"Conhece os nossos serviços de apoio à mudança de carreira."},{title:"Cheque-formação + Digital",href:"https://codeforall.com/servicos-para-ti/cheque-digital-formacao",description:"Candidata-te ao apoio do Cheque-Formação + Digital do IEFP."}]}},GR=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(null),{appendUtmToUrl:s}=ml(),o=a=>{r(n===a?null:a)},i=()=>{t(!1),r(null)};return c.jsxs("header",{className:"cfa-header",children:[c.jsxs("div",{className:"cfa-header__wrapper",children:[c.jsx("a",{className:"cfa-header__logo",href:"https://codeforall.com",target:"_self",rel:"noreferrer",children:c.jsx("svg",{width:"192",height:"32",viewBox:"0 0 576 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{children:[c.jsx("path",{d:"M110.318 3.72119L88.8192 25.2199L75.4899 38.5491C74.42 39.6191 74.42 41.3478 75.4899 42.4178L88.8192 55.747L110.318 77.2457L125.581 61.9821L104.083 40.4834L125.581 18.9848L110.318 3.72119ZM83.5539 39.5137L87.8547 35.2129C88.387 34.6805 89.2567 34.6805 89.789 35.2129L94.0898 39.5137C94.6221 40.046 94.6221 40.9156 94.0898 41.448L89.789 45.7488C89.2567 46.2811 88.387 46.2811 87.8547 45.7488L83.5539 41.448C83.0216 40.9156 83.0216 40.046 83.5539 39.5137ZM115.583 62.9466L111.282 67.2474C110.75 67.7798 109.88 67.7798 109.348 67.2474L94.3006 52.1999C93.7683 51.6676 93.7683 50.798 94.3006 50.2656L98.6014 45.9648C99.1337 45.4325 100.003 45.4325 100.536 45.9648L115.583 61.0123C116.116 61.5447 116.116 62.4143 115.583 62.9466ZM115.583 19.9493L100.536 34.9968C100.003 35.5291 99.1337 35.5291 98.6014 34.9968L94.3006 30.696C93.7683 30.1637 93.7683 29.294 94.3006 28.7617L109.348 13.7142C109.88 13.1819 110.75 13.1819 111.282 13.7142L115.583 18.015C116.116 18.5473 116.116 19.417 115.583 19.9493Z",fill:"#EA1F27"}),c.jsx("path",{d:"M73.5245 40.4883L52.0258 18.9896L38.6966 5.66036C37.6266 4.59043 35.8979 4.59043 34.828 5.66036L21.4987 18.9896L0 40.4883L15.2636 55.7519L36.7623 34.2532L58.2609 55.7519L73.5245 40.4883ZM37.7268 13.7243L42.0276 18.0251C42.5599 18.5575 42.5599 19.4271 42.0276 19.9594L37.7268 24.2602C37.1944 24.7925 36.3248 24.7925 35.7925 24.2602L31.4917 19.9594C30.9594 19.4271 30.9594 18.5575 31.4917 18.0251L35.7925 13.7243C36.3248 13.192 37.1944 13.192 37.7268 13.7243ZM14.2938 45.7536L9.99301 41.4528C9.46068 40.9205 9.46068 40.0509 9.99301 39.5185L25.0405 24.471C25.5728 23.9387 26.4425 23.9387 26.9748 24.471L31.2756 28.7718C31.8079 29.3042 31.8079 30.1738 31.2756 30.7061L16.2281 45.7536C15.6958 46.2859 14.8261 46.2859 14.2938 45.7536ZM57.2911 45.7536L42.2437 30.7061C41.7113 30.1738 41.7113 29.3042 42.2437 28.7718L46.5444 24.471C47.0768 23.9387 47.9464 23.9387 48.4787 24.471L63.5262 39.5185C64.0586 40.0509 64.0586 40.9205 63.5262 41.4528L59.2254 45.7536C58.6931 46.2859 57.8235 46.2859 57.2911 45.7536Z",fill:"#EA1F27"}),c.jsx("path",{opacity:"0.95",d:"M154.764 61.9291C148.972 61.9291 146.273 60.6115 146.273 53.7228V27.5544C146.273 20.6658 148.977 19.3481 154.764 19.3481H178.002V26.9325H157.004C154.691 26.9325 154.227 27.3963 154.227 29.6416V51.7042C154.227 53.9495 154.691 54.4133 157.004 54.4133H178.002V61.9238H154.764V61.9291Z",fill:"white"}),c.jsx("path",{opacity:"0.95",d:"M193.52 61.9291C187.728 61.9291 185.029 60.6115 185.029 53.7228V27.5544C185.029 20.6658 187.733 19.3481 193.52 19.3481H212.283C218.076 19.3481 220.774 20.6658 220.774 27.5544V53.7228C220.774 60.6115 218.071 61.9291 212.283 61.9291H193.52ZM212.9 29.6468C212.9 27.4016 212.436 26.9378 210.123 26.9378H195.76C193.446 26.9378 192.983 27.4016 192.983 29.6468V51.7095C192.983 53.9547 193.446 54.4185 195.76 54.4185H210.123C212.436 54.4185 212.9 53.9547 212.9 51.7095V29.6468Z",fill:"white"}),c.jsx("path",{opacity:"0.95",d:"M237.841 61.9292C232.048 61.9292 229.35 60.6116 229.35 53.723V27.5546C229.35 20.6659 232.053 19.3483 237.841 19.3483H257.22V0H265.095V53.7282C265.095 60.6169 262.391 61.9345 256.604 61.9345H237.841V61.9292ZM257.22 26.9379H240.081C237.767 26.9379 237.303 27.4017 237.303 29.647V51.7096C237.303 53.9549 237.767 54.4187 240.081 54.4187H254.443C256.757 54.4187 257.22 53.9549 257.22 51.7096V26.9379Z",fill:"white"}),c.jsx("path",{opacity:"0.95",d:"M282.235 61.9291C276.443 61.9291 273.744 60.6115 273.744 53.7228V27.5544C273.744 20.6658 276.448 19.3481 282.235 19.3481H300.998C306.791 19.3481 309.489 20.6658 309.489 27.5544V37.2312C309.489 44.1198 306.785 45.4375 300.998 45.4375H281.697V51.7095C281.697 54.3395 282.393 54.4185 285.787 54.4185H307.792V61.9291H282.235ZM301.615 29.6468C301.615 27.4016 301.151 26.9378 298.837 26.9378H284.475C282.161 26.9378 281.697 27.4016 281.697 29.6468V37.9322H298.837C301.151 37.9322 301.615 37.4684 301.615 35.2231V29.6468Z",fill:"white"}),c.jsx("path",{d:"M334.967 61.9292V26.8641H327.941V19.2798H334.967V8.20628C334.967 1.31764 337.671 0 343.458 0H354.806V7.58436H345.693C343.379 7.58436 342.915 8.04817 342.915 10.2934V19.2745H354.806V26.8588H342.915V61.9292H334.962H334.967Z",fill:"#EA1F27"}),c.jsx("path",{d:"M368.782 61.9291C362.99 61.9291 360.291 60.6115 360.291 53.7228V27.5544C360.291 20.6658 362.995 19.3481 368.782 19.3481H387.545C393.337 19.3481 396.036 20.6658 396.036 27.5544V53.7228C396.036 60.6115 393.332 61.9291 387.545 61.9291H368.782ZM388.162 29.6468C388.162 27.4016 387.698 26.9378 385.384 26.9378H371.022C368.708 26.9378 368.244 27.4016 368.244 29.6468V51.7095C368.244 53.9547 368.708 54.4185 371.022 54.4185H385.384C387.698 54.4185 388.162 53.9547 388.162 51.7095V29.6468Z",fill:"#EA1F27"}),c.jsx("path",{d:"M404.68 61.9292V27.5598C404.68 20.6712 407.383 19.3535 413.171 19.3535H430.542V26.9379H415.411C413.097 26.9379 412.633 27.4017 412.633 29.6469V61.9292H404.68Z",fill:"#EA1F27"}),c.jsx("path",{d:"M457.26 61.9292C451.468 61.9292 448.77 60.6116 448.77 53.7229V43.5033C448.77 36.6146 451.473 35.297 457.26 35.297H476.561V29.6469C476.561 27.4017 476.097 26.9379 473.784 26.9379H449.618V19.3535H476.024C481.816 19.3535 484.515 20.6712 484.515 27.5598V53.7282C484.515 60.6168 481.811 61.9345 476.024 61.9345H457.26V61.9292ZM476.561 42.8866H459.421C457.108 42.8866 456.644 43.3504 456.644 45.5957V51.7096C456.
236644 53.9548 457.108 54.4186 459.421 54.4186H473.784C476.097 54.4186 476.561 53.9548 476.561 51.7096V42.8866Z",fill:"#EA1F27"}),c.jsx("path",{d:"M501.573 61.9292C495.781 61.9292 493.082 60.6116 493.082 53.723V0H501.035V51.7149C501.035 53.9601 501.499 54.424 503.813 54.424H509.837V61.9345H501.578L501.573 61.9292Z",fill:"#EA1F27"}),c.jsx("path",{d:"M523.501 61.9292C517.708 61.9292 515.01 60.6116 515.01 53.723V0H522.963V51.7149C522.963 53.9601 523.427 54.424 525.741 54.424H531.765V61.9345H523.506L523.501 61.9292Z",fill:"#EA1F27"}),c.jsx("path",{d:"M537.398 67.9746V64.4907H576V67.9746H537.398Z",fill:"white"})]})})}),c.jsx("nav",{className:"cfa-header__nav",children:c.jsxs("ul",{className:"cfa-header__nav-list",children:[c.jsxs("li",{className:"nav-item has-mega-menu",children:[c.jsxs("button",{className:"nav-trigger",children:["Cursos de Tecnologia",c.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nav-trigger__icon","aria-hidden":"true",children:c.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})]}),c.jsx("div",{className:"mega-menu",children:c.jsxs("div",{className:"mega-menu__inner mega-menu__inner--intro",children:[c.jsxs("div",{className:"mega-menu__courses mega-menu__courses--intro",children:[c.jsxs("div",{className:"course-card flex flex-col",children:[c.jsxs("div",{className:"course-card__header",children:[c.jsx("img",{src:"/images/icon-tecnologia.png",alt:"",className:"course-card__icon"}),c.jsx("h4",{className:"course-card__title",children:"Introdução a Tecnologia"}),c.jsx("span",{className:"course-card__hours",children:"15h a 30h"})]}),c.jsx("p",{className:"course-card__description",children:"Capacita-te nas áreas de tecnologia altamente valorizadas no mercado de hoje. Cursos introdutórios e práticos."}),c.jsx("p",{className:"course-card__description course-card__description--bold",children:c.jsx("strong",{children:"Cursos a 750€ (100% financiados via Cheque IEFP)"})}),c.jsxs("ul",{className:"course-card__list",children:[c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/introducao-ao-sql",children:"Análise de dados (SQL)"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/introducao-a-programacao-com-javascript",children:"Programação (JavaScript)"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/ciberseguranca/",children:"Cibersegurança"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/introducao-desenvolvimento-jogos",children:"Desenvolvimento de jogos"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/introducao-cloud-devops",children:"Tecnologias cloud e DevOps"})})]}),c.jsxs("a",{className:"course-card__cta mt-auto",href:"https://codeforall.com/cursos-curtos/cursos-fundamentos",children:["Aprende as bases de tecnologia",c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]}),c.jsxs("div",{className:"course-card flex flex-col",children:[c.jsxs("div",{className:"course-card__header",children:[c.jsx("img",{src:"/images/icon-fullstack.png",alt:"",className:"course-card__icon"}),c.jsx("h4",{className:"course-card__title",children:"Bootcamp | Software Engineering & AI"}),c.jsx("span",{className:"course-card__hours",children:"565h"})]}),c.jsx("p",{className:"course-card__description",children:"Para quem pretende iniciar a sua jornada a programar do zero e/ou está à procura de uma transição de carreira para programação, com uma base sólida em software e contacto com inteligência artificial aplicada."}),c.jsx("div",{className:"course-card__format",children:c.jsx("span",{className:"course-card__format-value font-bold",children:"Formato: Online · 26 semanas · Part-time"})}),c.jsx("ul",{className:"course-card__list",children:c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-intensivos/software-engineering-ai",target:"_blank",rel:"noopener noreferrer",children:"Bootcamp de Software Engineering"})})}),c.jsxs("a",{href:"https://codeforall.com/cursos-intensivos/software-engineering-ai",className:"course-card__cta mt-auto",children:["Muda de carreira para programação",c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]})]}),c.jsx("div",{className:"mega-menu__promo",children:c.jsx("img",{src:"/images/menu-cursos-financiados-new.png",alt:"Cursos 100% financiados – Cheque Formação + Digital",loading:"lazy"})})]})})]}),c.jsxs("li",{className:"nav-item has-mega-menu",children:[c.jsxs("button",{className:"nav-trigger",children:["Cursos de Inteligência Artificial",c.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nav-trigger__icon","aria-hidden":"true",children:c.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.564
23664L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})]}),c.jsx("div",{className:"mega-menu",children:c.jsxs("div",{className:"mega-menu__inner mega-menu__inner--intro",children:[c.jsxs("div",{className:"mega-menu__courses mega-menu__courses--intro",children:[c.jsxs("div",{className:"course-card flex flex-col",children:[c.jsxs("div",{className:"course-card__header",children:[c.jsx("img",{src:"/images/icon-shortcourses.png",alt:"",className:"course-card__icon"}),c.jsx("h4",{className:"course-card__title",children:"Introdução a IA"}),c.jsx("span",{className:"course-card__hours",children:"14h a 35h"})]}),c.jsx("p",{className:"course-card__description",children:"Aprende a dominar a inteligência artificial e prepara as tuas capacidades para o futuro. Cursos introdutórios e práticos."}),c.jsx("p",{className:"course-card__description course-card__description--bold",children:c.jsx("strong",{children:"Cursos a 750€ (100% financiados via Cheque IEFP)"})}),c.jsxs("ul",{className:"course-card__list",children:[c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-iniciantes",children:"Geral"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-produto-automacao",children:"Produto e Automação (Vibe Coding)"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-especializacao/inteligencia-artificial-para-programadores",children:"Programadores"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-professores",children:"Professores"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-psicologos",children:"Psicólogos"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-comunicacao",children:"Setor Comunicação"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-contabilidade",children:"Setor Contabilidade"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-juridico",children:"Setor Jurídico"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-recursos-humanos",children:"Setor RH"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-sustentabilidade",children:"Setor Sustentabilidade"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/cursos-iniciacao/inteligencia-artificial-setor-vendas",children:"Setor Vendas"})})]}),c.jsxs("a",{className:"course-card__cta mt-auto",href:"https://codeforall.com/cursos-curtos/cursos-ia",children:["Aprende as bases de inteligência artificial",c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]}),c.jsxs("div",{className:"course-card flex flex-col",children:[c.jsxs("div",{className:"course-card__header",children:[c.jsx("img",{alt:"",className:"course-card__icon",src:"/lovable-uploads/2579c500-c943-483d-8543-9678ed6f90d6.png"}),c.jsx("h4",{className:"course-card__title",children:"Automação e Agentes com IA"}),c.jsx("span",{className:"course-card__hours",children:"45h"})]}),c.jsx("p",{className:"course-card__description",children:"Curso intensivo focado na criação de automações e agentes com inteligência artificial. Constrói agentes capazes de executar tarefas reais, melhorar processos e criar impacto imediato no teu trabalho."}),c.jsx("div",{className:"course-card__format",children:c.jsx("span",{className:"course-card__format-value font-bold",children:"Formato: Online · 6 semanas · Pós-laboral"})}),c.jsx("ul",{className:"course-card__list",children:c.jsx("li",{children:c.jsx("a",{href:s("https://agentic.codeforall.com"),children:"Curso Automação e Agentes com IA"})})}),c.jsx("p",{className:"text-[11px] text-red-500 font-bold uppercase tracking-wider mt-3 mb-1",children:"Ou vê o curso de acordo com o teu perfil:"}),c.jsxs("ul",{className:"course-card__list",children:[c.jsx("li",{children:c.jsx("a",{href:s("https://agentic-codeforall-consultants.lovable.app"),target:"_blank",rel:"noopener noreferrer",children:"Consultores & Leadership"})}),c.jsx("li",{children:c.jsx("a",{href:s("https://agentic-codeforall-freelancers.lovable.app"),target:"_blank",rel:"noopener noreferrer",children:"Freelancers"})}),c.jsx("li",{children:c.jsx("a",{href:s("https://agentic-codeforall-sbos.lovable.app"),target:"_blank",rel:"noopener noreferrer",children:"Founders & Small Business Owners"})})]}),c.jsxs("a",{href:s("https://agentic.codeforall.com"),className:"course-card__cta mt-auto",children:["Domina a nova era de IA",c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]})]}),c.jsx("div",{className:"mega-menu__promo",children:c.jsx("img",{src:"/images/cheque-header-ia.webp",alt:"Cursos de Inteligência Artificial 100% financiados – Cheque Formação + Digital",loading:"lazy"})})]})})]}),c.jsxs("li",{className:"nav-item has-mega-menu",children:[c.jsxs("button",{className:"nav-trigger",children:["Formação para empresas",c.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nav-trigger__icon","aria-hidden":"true",children:c.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.564
23664L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})]}),c.jsx("div",{className:"mega-menu mega-menu--services",children:c.jsxs("div",{className:"mega-menu__inner mega-menu__inner--services",children:[c.jsxs("div",{className:"services-intro",children:[c.jsx("h3",{className:"services-intro__title",children:"Serviços para empresas"}),c.jsx("p",{className:"services-intro__text",children:"Saiba mais sobre as possibilidades de serviços direcionados para empresas dentro da Code for All_."})]}),c.jsxs("div",{className:"service-cards",children:[c.jsxs("a",{href:"https://codeforall.com/empresas",className:"service-card",children:[c.jsx("h4",{className:"service-card__title",children:"Formação para empresas"}),c.jsx("p",{className:"service-card__text",children:"Capacite a sua equipa em Inteligência Artificial com turmas e acompanhamento personalizado."}),c.jsx("svg",{className:"service-card__arrow",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]}),c.jsxs("a",{href:"https://codeforall.com/servicos-para-empresas/fundo-compensacao-trabalho-fct",className:"service-card",children:[c.jsx("h4",{className:"service-card__title",children:"Fundo de Compensação do Trabalho"}),c.jsx("p",{className:"service-card__text",children:"Descubra qual é o saldo da sua empresa no FCT e como pode resgatá-lo com a Code for All_."}),c.jsx("svg",{className:"service-card__arrow",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]})]})})]}),c.jsxs("li",{className:"nav-item has-mega-menu",children:[c.jsxs("button",{className:"nav-trigger",children:["Outros",c.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nav-trigger__icon","aria-hidden":"true",children:c.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})]}),c.jsx("div",{className:"mega-menu mega-menu--services",children:c.jsxs("div",{className:"mega-menu__inner mega-menu__inner--services",children:[c.jsxs("div",{className:"services-intro",children:[c.jsx("h3",{className:"services-intro__title",children:"Serviços para alunos"}),c.jsx("p",{className:"services-intro__text",children:"Sabe mais sobre o nosso método único de ensino e os serviços dedicados a apoiar-te ao longo da tua jornada com a Code for All_."})]}),c.jsxs("div",{className:"service-cards service-cards--alunos",children:[c.jsxs("a",{href:"https://codeforall.com/servicos-para-ti/metodo-de-ensino",className:"service-card",children:[c.jsx("h4",{className:"service-card__title",children:"Método de ensino"}),c.jsx("p",{className:"service-card__text",children:"Desbloqueia o teu potencial através de um método de ensino único e adaptado a cada pessoa."}),c.jsx("svg",{className:"service-card__arrow",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]}),c.jsxs("a",{href:"https://codeforall.com/servicos-para-ti/financiamento",className:"service-card",children:[c.jsx("h4",{className:"service-card__title",children:"Opções de pagamento"}),c.jsx("p",{className:"service-card__text",children:"Descobre opções flexíveis de pagamento para impulsionar a tua transformação."}),c.jsx("svg",{className:"service-card__arrow",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]}),c.jsxs("a",{href:"https://codeforall.com/servicos-para-ti/carreiras",className:"service-card",children:[c.jsx("h4",{className:"service-card__title",children:"Apoio a carreiras"}),c.jsx("p",{className:"service-card__text",children:"Conhece os nossos serviços de apoio à mudança de carreira e começa a tua transição profissional."}),c.jsx("svg",{className:"service-card__arrow",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]}),c.jsxs("a",{href:"https://codeforall.com/servicos-para-ti/cheque-digital-formacao",className:"service-card",children:[c.jsx("h4",{className:"service-card__title",children:"Cheque-formação + Digital"}),c.jsx("p",{className:"service-card__text",children:"Candidata-te ao apoio do Cheque-Formação + Digital do IEFP e investe na tua educação tecnológica."}),c.jsx("svg",{className:"service-card__arrow",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]})]})})]})]})}),c.jsx("a",{href:"https://codeforall.com/a-code-for-all/contacta-nos",className:"cfa-header__cta",children:"Contacta-nos"}),c.jsx("button",{className:"cfa-header__mobile-menu",type:"button","aria-label":"Menu",onClick:()=>t(!0),children:c.jsx("svg",{width:"24",height:"24",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})]}),c.jsx(Ar,{children:e&&c.jsxs(c.Fragment,{children:[c.jsx(Y.div,{initial:{opacity:0}
236,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"mobile-menu-backdrop",onClick:i}),c.jsxs(Y.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3,ease:"easeOut"},className:"mobile-menu",children:[c.jsxs("div",{className:"mobile-menu__header",children:[c.jsx("a",{href:"https://codeforall.com",className:"mobile-menu__logo",onClick:i,children:c.jsx("svg",{width:"160",height:"28",viewBox:"0 0 576 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{children:[c.jsx("path",{d:"M110.318 3.72119L88.8192 25.2199L75.4899 38.5491C74.42 39.6191 74.42 41.3478 75.4899 42.4178L88.8192 55.747L110.318 77.2457L125.581 61.9821L104.083 40.4834L125.581 18.9848L110.318 3.72119ZM83.5539 39.5137L87.8547 35.2129C88.387 34.6805 89.2567 34.6805 89.789 35.2129L94.0898 39.5137C94.6221 40.046 94.6221 40.9156 94.0898 41.448L89.789 45.7488C89.2567 46.2811 88.387 46.2811 87.8547 45.7488L83.5539 41.448C83.0216 40.9156 83.0216 40.046 83.5539 39.5137ZM115.583 62.9466L111.282 67.2474C110.75 67.7798 109.88 67.7798 109.348 67.2474L94.3006 52.1999C93.7683 51.6676 93.7683 50.798 94.3006 50.2656L98.6014 45.9648C99.1337 45.4325 100.003 45.4325 100.536 45.9648L115.583 61.0123C116.116 61.5447 116.116 62.4143 115.583 62.9466ZM115.583 19.9493L100.536 34.9968C100.003 35.5291 99.1337 35.5291 98.6014 34.9968L94.3006 30.696C93.7683 30.1637 93.7683 29.294 94.3006 28.7617L109.348 13.7142C109.88 13.1819 110.75 13.1819 111.282 13.7142L115.583 18.015C116.116 18.5473 116.116 19.417 115.583 19.9493Z",fill:"#EA1F27"}),c.jsx("path",{d:"M73.5245 40.4883L52.0258 18.9896L38.6966 5.66036C37.6266 4.59043 35.8979 4.59043 34.828 5.66036L21.4987 18.9896L0 40.4883L15.2636 55.7519L36.7623 34.2532L58.2609 55.7519L73.5245 40.4883ZM37.7268 13.7243L42.0276 18.0251C42.5599 18.5575 42.5599 19.4271 42.0276 19.9594L37.7268 24.2602C37.1944 24.7925 36.3248 24.7925 35.7925 24.2602L31.4917 19.9594C30.9594 19.4271 30.9594 18.5575 31.4917 18.0251L35.7925 13.7243C36.3248 13.192 37.1944 13.192 37.7268 13.7243ZM14.2938 45.7536L9.99301 41.4528C9.46068 40.9205 9.46068 40.0509 9.99301 39.5185L25.0405 24.471C25.5728 23.9387 26.4425 23.9387 26.9748 24.471L31.2756 28.7718C31.8079 29.3042 31.8079 30.1738 31.2756 30.7061L16.2281 45.7536C15.6958 46.2859 14.8261 46.2859 14.2938 45.7536ZM57.2911 45.7536L42.2437 30.7061C41.7113 30.1738 41.7113 29.3042 42.2437 28.7718L46.5444 24.471C47.0768 23.9387 47.9464 23.9387 48.4787 24.471L63.5262 39.5185C64.0586 40.0509 64.0586 40.9205 63.5262 41.4528L59.2254 45.7536C58.6931 46.2859 57.8235 46.2859 57.2911 45.7536Z",fill:"#EA1F27"}),c.jsx("path",{opacity:"0.95",d:"M154.764 61.9291C148.972 61.9291 146.273 60.6115 146.273 53.7228V27.5544C146.273 20.6658 148.977 19.3481 154.764 19.3481H178.002V26.9325H157.004C154.691 26.9325 154.227 27.3963 154.227 29.6416V51.7042C154.227 53.9495 154.691 54.4133 157.004 54.4133H178.002V61.9238H154.764V61.9291Z",fill:"white"}),c.jsx("path",{opacity:"0.95",d:"M193.52 61.9291C187.728 61.9291 185.029 60.6115 185.029 53.7228V27.5544C185.029 20.6658 187.733 19.3481 193.52 19.3481H212.283C218.076 19.3481 220.774 20.6658 220.774 27.5544V53.7228C220.774 60.6115 218.071 61.9291 212.283 61.9291H193.52ZM212.9 29.6468C212.9 27.4016 212.436 26.9378 210.123 26.9378H195.76C193.446 26.9378 192.983 27.4016 192.983 29.6468V51.7095C192.983 53.9547 193.446 54.4185 195.76 54.4185H210.123C212.436 54.4185 212.9 53.9547 212.9 51.7095V29.6468Z",fill:"white"}),c.jsx("path",{opacity:"0.95",d:"M237.841 61.9292C232.048 61.9292 229.35 60.6116 229.35 53.723V27.5546C229.35 20.6659 232.053 19.3483 237.841 19.3483H257.22V0H265.095V53.7282C265.095 60.6169 262.391 61.9345 256.604 61.9345H237.841V61.9292ZM257.22 26.9379H240.081C237.767 26.9379 237.303 27.4017 237.303 29.647V51.7096C237.303 53.9549 237.767 54.4187 240.081 54.4187H254.443C256.757 54.4187 257.22 53.9549 257.22 51.7096V26.9379Z",fill:"white"}),c.jsx("path",{opacity:"0.95",d:"M282.235 61.9291C276.443 61.9291 273.744 60.6115 273.744 53.7228V27.5544C273.744 20.6658 276.448 19.3481 282.235 19.3481H300.998C306.791 19.3481 309.489 20.6658 309.489 27.5544V37.2312C309.489 44.1198 306.785 45.4375 300.998 45.4375H281.697V51.7095C281.697 54.3395 282.393 54.4185 285.787 54.4185H307.792V61.9291H282.235ZM301.615 29.6468C301.615 27.4016 301.151 26.9378 298.837 26.9378H284.475C282.161 26.9378 281.697 27.4016 281.697 29.6468V37.9322H298.837C301.151 37.9322 301.615 37.4684 301.615 35.2231V29.6468Z",fill:"white"}),c.jsx("path",{d:"M334.967 61.9292V26.8641H327.941V19.2798H334.967V8.20628C334.967 1.31764 337.671 0 343.458 0H354.806V7.58436H345.693C343.379 7.58436 342.915 8.04817 342.915 10.2934V19.2745H354.806V26.8588H342.915V61.9292H334.962H334.967Z",fill:"#EA1F27"}),c.jsx("path",{d:"M368.782 61.9291C362.99 61.9291 360.291 60.6115 360.291 53.7228V27.5544C360.291 20.6658 362.995 19.3481 368.782 19.3481H387.545C393.337 19.3481 396.036 20.6658 396.036 27.5544V53.7228C396.036 60.6115 393.332 61.9291 387.545 61.9291H368.782ZM388.162 29.6468C388.162 27.4016 387.698 26.9378 385.384 26.9378H371.022C368.708 26.9378 368.244 27.4016 368.244 29.6468V51.7095C368.244 53.9547 368.708 54.4185 371.022 54.4185H385.384C387.698 54.4185 388.162 53.9547 388.162 51.7095V29.6468Z",fill:"#EA1F27"}),c.jsx("path",{d:"M404.68 61.9292V27.5598C404.68 20.6712 407.383 19.3535 413.171 19.3535H430.542V26.9379H415.411C413.097 26.9379 412.633 27.4017 412.633 29.6469V61.9292H404.68Z",fill:"#EA1F27"}),c.jsx("path",{d:"M457.26 61.9292C451.468 61.9292 448.77 60.6116 448.77 53.7229V43.5033C448.77 36.6146 451.473 35.297 457.26 35.297H476.561V29.6469C476.561 27.4017 476.097 26.9379 473.784 26.9379H449.618V19.3535H476.024C481.816 19.3535 484.515 20.6712 484.515 27.5598V53.7282C484.515 60.6168 481.811 61.9345 476.024 61.9345H457.26V61.9292ZM476.561 42.8866H459.421C457.108 42.8866 456.644 43.3504 456.644 45.5957V51.7096C456.
236644 53.9548 457.108 54.4186 459.421 54.4186H473.784C476.097 54.4186 476.561 53.9548 476.561 51.7096V42.8866Z",fill:"#EA1F27"}),c.jsx("path",{d:"M501.573 61.9292C495.781 61.9292 493.082 60.6116 493.082 53.723V0H501.035V51.7149C501.035 53.9601 501.499 54.424 503.813 54.424H509.837V61.9345H501.578L501.573 61.9292Z",fill:"#EA1F27"}),c.jsx("path",{d:"M523.501 61.9292C517.708 61.9292 515.01 60.6116 515.01 53.723V0H522.963V51.7149C522.963 53.9601 523.427 54.424 525.741 54.424H531.765V61.9345H523.506L523.501 61.9292Z",fill:"#EA1F27"}),c.jsx("path",{d:"M537.398 67.9746V64.4907H576V67.9746H537.398Z",fill:"white"})]})})}),c.jsx("button",{className:"mobile-menu__close",onClick:i,"aria-label":"Fechar menu",children:c.jsx(ll,{size:24})})]}),c.jsxs("div",{className:"mobile-menu__content",children:[c.jsxs("nav",{className:"mobile-menu__nav",children:[c.jsxs("div",{className:"mobile-menu__item",children:[c.jsxs("button",{className:`mobile-menu__trigger ${n==="tecnologia"?"mobile-menu__trigger--open":""}`,onClick:()=>o("tecnologia"),children:[c.jsx("span",{children:wr.cursosTecnologia.title}),c.jsx(tr,{size:20,className:`mobile-menu__chevron ${n==="tecnologia"?"mobile-menu__chevron--open":""}`})]}),c.jsx(Ar,{children:n==="tecnologia"&&c.jsx(Y.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"mobile-menu__submenu",children:wr.cursosTecnologia.items.map((a,l)=>c.jsxs("div",{className:"mobile-submenu__section",children:[c.jsxs("div",{className:"mobile-submenu__header",children:[c.jsx("img",{src:l===0?"/images/icon-tecnologia.png":"/images/icon-fullstack.png",alt:"",className:"mobile-submenu__icon"}),c.jsx("h4",{className:"mobile-submenu__title",children:a.title}),c.jsx("span",{className:"mobile-submenu__hours",children:a.hours})]}),c.jsx("p",{className:"mobile-submenu__desc",children:a.description}),l===0&&c.jsx("p",{className:"mobile-submenu__funding",children:c.jsx("strong",{children:"Cursos a 750€ (100% financiados via Cheque*)"})}),a.links&&c.jsx("ul",{className:"mobile-submenu__links",children:a.links.map((u,d)=>c.jsx("li",{children:c.jsxs("a",{href:u.href,onClick:i,children:["• ",u.label]})},d))}),a.format&&c.jsx("p",{className:"mobile-submenu__format",children:a.format}),a.cta&&c.jsxs("a",{href:a.cta.href,className:"mobile-submenu__cta",onClick:i,children:[a.cta.label,c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]},l))})})]}),c.jsxs("div",{className:"mobile-menu__item",children:[c.jsxs("button",{className:`mobile-menu__trigger ${n==="ia"?"mobile-menu__trigger--open":""}`,onClick:()=>o("ia"),children:[c.jsx("span",{children:wr.cursosIA.title}),c.jsx(tr,{size:20,className:`mobile-menu__chevron ${n==="ia"?"mobile-menu__chevron--open":""}`})]}),c.jsx(Ar,{children:n==="ia"&&c.jsx(Y.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"mobile-menu__submenu",children:wr.cursosIA.items.map((a,l)=>c.jsxs("div",{className:"mobile-submenu__section",children:[c.jsxs("div",{className:"mobile-submenu__header",children:[c.jsx("img",{src:l===0?"/images/icon-shortcourses.png":"/images/icon-cybersecurity.png",alt:"",className:"mobile-submenu__icon"}),c.jsx("h4",{className:"mobile-submenu__title",children:a.title}),c.jsx("span",{className:"mobile-submenu__hours",children:a.hours})]}),c.jsx("p",{className:"mobile-submenu__desc",children:a.description}),l===0&&c.jsx("p",{className:"mobile-submenu__funding",children:c.jsx("strong",{children:"Cursos a 750€ (100% financiados via Cheque*)"})}),a.linksLabel&&c.jsx("p",{className:"text-[11px] text-white/50 uppercase tracking-wider mt-2 mb-1",children:a.linksLabel}),a.links&&c.jsx("ul",{className:"mobile-submenu__links",children:a.links.map((u,d)=>c.jsx("li",{children:c.jsxs("a",{href:u.external?s(u.href):u.href,onClick:i,className:u.highlight?"mobile-submenu__link--highlight":"",target:u.external?"_blank":void 0,rel:u.external?"noopener noreferrer":void 0,children:["• ",u.label]})},d))}),a.format&&c.jsx("p",{className:"mobile-submenu__format",children:a.format}),a.cta&&c.jsxs("a",{href:a.cta.href,className:"mobile-submenu__cta",onClick:i,children:[a.cta.label,c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]})]},l))})})]}),c.jsxs("div",{className:"mobile-menu__item text-white",children:[c.jsxs("button",{className:`mobile-menu__trigger ${n==="empresas"?"mobile-menu__trigger--open":""}`,onClick:()=>o("empresas"),children:[c.jsx("span",{children:wr.empresas.title}),c.jsx(tr,{size:20,className:`mobile-menu__chevron ${n==="empresas"?"mobile-menu__chevron--open":""}`})]}),c.jsx(Ar,{children:n==="empresas"&&c.jsx(Y.div,{initial:{height:0,opacity:0}
vendor: 9,243 bytes, line 236
236,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"mobile-menu__submenu",children:wr.empresas.items.map((a,l)=>c.jsxs("a",{href:a.href,className:"mobile-submenu__link-card",onClick:i,children:[c.jsx("h4",{children:a.title}),c.jsx("p",{children:a.description}),c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]},l))})})]}),c.jsxs("div",{className:"mobile-menu__item",children:[c.jsxs("button",{className:`mobile-menu__trigger ${n==="alunos"?"mobile-menu__trigger--open":""}`,onClick:()=>o("alunos"),children:[c.jsx("span",{children:wr.alunos.title}),c.jsx(tr,{size:20,className:`mobile-menu__chevron ${n==="alunos"?"mobile-menu__chevron--open":""}`})]}),c.jsx(Ar,{children:n==="alunos"&&c.jsx(Y.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"mobile-menu__submenu",children:wr.alunos.items.map((a,l)=>c.jsxs("a",{href:a.href,className:"mobile-submenu__link-card",onClick:i,children:[c.jsx("h4",{children:a.title}),c.jsx("p",{children:a.description}),c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M9 18l6-6-6-6"})})]},l))})})]})]}),c.jsx("a",{href:"https://codeforall.com/a-code-for-all/contacta-nos",className:"mobile-menu__cta",onClick:i,children:"Contacta-nos"})]})]})]})})]})},YR=zu("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"}}),bt=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?RE:"button";return c.jsx(i,{className:ue(YR({variant:t,size:n,className:e})),ref:o,...s})});bt.displayName="Button";const QR=zu("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 ZR({className:e,variant:t,...n}){return c.jsx("div",{className:ue(QR({variant:t}),e),...n})}var Ef="focusScope.autoFocusOnMount",jf="focusScope.autoFocusOnUnmount",gx={bubbles:!1,cancelable:!0},JR="FocusScope",Vg=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=x.useState(null),u=En(s),d=En(o),f=x.useRef(null),h=Ce(t,p=>l(p)),m=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let p=function(w){if(m.paused||!a)return;const S=w.target;a.contains(S)?f.current=S:Cr(f.current,{select:!0})},b=function(w){if(m.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||Cr(f.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&Cr(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),g.disconnect()}}},[r,a,m.paused]),x.useEffect(()=>{if(a){yx.add(m);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(Ef,gx);a.addEventListener(Ef,u),a.dispatchEvent(v),v.defaultPrevented||(XR(s7(r4(a)),{select:!0}),document.activeElement===p&&Cr(a))}return()=>{a.removeEventListener(Ef,u),setTimeout(()=>{const v=new CustomEvent(jf,gx);a.addEventListener(jf,d),a.dispatchEvent(v),v.defaultPrevented||Cr(p??document.body,{select:!0}),a.removeEventListener(jf,d),yx.remove(m)},0)}}},[a,u,d,m]);const y=x.useCallback(p=>{if(!n&&!r||m.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const g=p.currentTarget,[w,S]=e7(g);w&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&Cr(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&Cr(S,{select:!0})):v===g&&p.preventDefault()}},[n,r,m.paused]);return c.jsx(ce.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});Vg.displayName=JR;function XR(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cr(r,{select:t}),document.activeElement!==n)return}function e7(e){const t=r4(e),n=vx(t,e),r=vx(t.reverse(),e);return[n,r]}function r4(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vx(e,t){for(const n of e)if(!t7(n,{upTo:t}))return n}function t7(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 n7(e){return e instanceof HTMLInputElement&&"select"in e}function Cr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&n7(e)&&t&&e.select()}}var yx=r7();function r7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xx(e,t),e.unshift(t)},remove(t){var n;e=xx(e,t),(n=e[0])==null||n.resume()}}}function xx(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function s7(e){return e.filter(t=>t.tagName!=="A")}var kf=0;function s4(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wx()),document.body.insertAdjacentElement("beforeend",e[1]??wx()),kf++,()=>{kf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),kf--}},[])}function wx(){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 Mn=function(){return Mn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Mn.apply(this,arguments)};function Ei(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function o7(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function l(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function i7(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Pc="right-scroll-bar-position",Ac="width-before-scroll-bar",a7="with-scroll-bars-hidden",l7="--removed-body-scroll-bar-size";function Tf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function c7(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var u7=typeof window<"u"?x.useLayoutEffect:x.useEffect,bx=new WeakMap;function d7(e,t){var n=c7(null,function(r){return e.forEach(function(s){return Tf(s,r)})});return u7(function(){var r=bx.get(n);if(r){var s=new Set(r),o=new Set(e),i=n.current;s.forEach(function(a){o.has(a)||Tf(a,null)}),o.forEach(function(a){s.has(a)||Tf(a,i)})}bx.set(n,e)},[e]),n}function f7(e){return e}function h7(e,t){t===void 0&&(t=f7);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;
vendor: 5,624 bytes, lines 236-273
236n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var l=function(){var d=i;i=[],d.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return s}function m7(e){e===void 0&&(e={});var t=h7(null);return t.options=Mn({async:!0,ssr:!1},e),t}var o4=function(e){var t=e.sideCar,n=Ei(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,Mn({},n))};o4.isSideCarExport=!0;function p7(e,t){return e.useMedium(t),o4}var i4=m7(),Nf=function(){},ad=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Nf,onWheelCapture:Nf,onTouchMoveCapture:Nf}),s=r[0],o=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,y=e.noIsolation,p=e.inert,b=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,w=e.gapMode,S=Ei(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,C=d7([n,t]),E=Mn(Mn({},S),s);return x.createElement(x.Fragment,null,d&&x.createElement(_,{sideCar:i4,removeScrollBar:u,shards:f,noRelative:m,noIsolation:y,inert:p,setCallbacks:o,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?x.cloneElement(x.Children.only(a),Mn(Mn({},E),{ref:C})):x.createElement(g,Mn({},E,{className:l,ref:C}),a))});ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ad.classNames={fullWidth:Ac,zeroRight:Pc};var g7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=g7();return t&&e.setAttribute("nonce",t),e}function y7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function x7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var w7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=v7())&&(y7(t,n),x7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b7=function(){var e=w7();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},a4=function(){var e=b7(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},S7={left:0,top:0,right:0,gap:0},Pf=function(e){return parseInt(e||"",10)||0},_7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Pf(n),Pf(r),Pf(s)]},C7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return S7;var t=_7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E7=a4(),qo="data-scroll-locked",j7=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
237  .`.concat(a7,` {
238   overflow: hidden `).concat(r,`;
239   padding-right: `).concat(a,"px ").concat(r,`;
240  }
241  body[`).concat(qo,`] {
242    overflow: hidden `).concat(r,`;
243    overscroll-behavior: contain;
244    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
245    padding-left: `.concat(s,`px;
246    padding-top: `).concat(o,`px;
247    padding-right: `).concat(i,`px;
248    margin-left:0;
249    margin-top:0;
250    margin-right: `).concat(a,"px ").concat(r,`;
251    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
252  }
253  
254  .`).concat(Pc,` {
255    right: `).concat(a,"px ").concat(r,`;
256  }
257  
258  .`).concat(Ac,` {
259    margin-right: `).concat(a,"px ").concat(r,`;
260  }
261  
262  .`).concat(Pc," .").concat(Pc,` {
263    right: 0 `).concat(r,`;
264  }
265  
266  .`).concat(Ac," .").concat(Ac,` {
267    margin-right: 0 `).concat(r,`;
268  }
269  
270  body[`).concat(qo,`] {
271    `).concat(l7,": ").concat(a,`px;
272  }
273`)},Sx=function(){var e=parseInt(document.body.getAttribute(qo)||"0",10);return isFinite(e)?e:0},k7=function(){x.useEffect(function(){return document.body.setAttribute(qo,(Sx()+1).toString()),function(){var e=Sx()-1;e<=0?document.body.removeAttribute(qo):document.body.setAttribute(qo,e.toString())}},[])},T7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;k7();var o=x.useMemo(function(){return C7(s)},[s]);return x.createElement(E7,{styles:j7(o,!t,s,n?"":"!important")})},_m=!1;if(typeof window<"u")try{var Ql=Object.defineProperty({},"passive",{get:function(){return _m=!0,!0}});window.addEventListener("test",Ql,Ql),window.removeEventListener("test",Ql,Ql)}catch{_m=!1}var ro=_m?{passive:!1}:!1,N7=function(e){return e.tagName==="TEXTAREA"},l4=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!N7(e)&&n[t]==="visible")},P7=function(e){return l4(e,"overflowY")},A7=function(e){return l4(e,"overflowX")},_x=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=c4(e,r);if(s){var o=u4(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},R7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},O7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},c4=function(e,t){return e==="v"?P7(t):A7(t)},u4=function(e,t){return e==="v"?R7(t):O7(t)},I7=function(e,t){return e==="h"&&t==="rtl"?-1:1}
vendor: 4,364 bytes, lines 273-276
273,L7=function(e,t,n,r,s){var o=I7(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,l=t.contains(a),u=!1,d=i>0,f=0,h=0;do{if(!a)break;var m=u4(e,a),y=m[0],p=m[1],b=m[2],v=p-b-o*y;(y||v)&&c4(e,a)&&(f+=v,h+=y);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(h)<1||!s))&&(u=!0),u},Zl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cx=function(e){return[e.deltaX,e.deltaY]},Ex=function(e){return e&&"current"in e?e.current:e},M7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D7=function(e){return`
274  .block-interactivity-`.concat(e,` {pointer-events: none;}
275  .allow-interactivity-`).concat(e,` {pointer-events: all;}
276`)},V7=0,so=[];function $7(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),s=x.useState(V7++)[0],o=x.useState(a4)[0],i=x.useRef(e);x.useEffect(function(){i.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=i7([e.lockRef.current],(e.shards||[]).map(Ex),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=Zl(p),g=n.current,w="deltaX"in p?p.deltaX:g[0]-v[0],S="deltaY"in p?p.deltaY:g[1]-v[1],_,C=p.target,E=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&E==="h"&&C.type==="range")return!1;var j=_x(E,C);if(!j)return!0;if(j?_=E:(_=E==="v"?"h":"v",j=_x(E,C)),!j)return!1;if(!r.current&&"changedTouches"in p&&(w||S)&&(r.current=_),!_)return!0;var k=r.current||_;return L7(k,b,p,k==="h"?w:S,!0)},[]),l=x.useCallback(function(p){var b=p;if(!(!so.length||so[so.length-1]!==o)){var v="deltaY"in b?Cx(b):Zl(b),g=t.current.filter(function(_){return _.name===b.type&&(_.target===b.target||b.target===_.shadowParent)&&M7(_.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(Ex).filter(Boolean).filter(function(_){return _.contains(b.target)}),S=w.length>0?a(b,w[0]):!i.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=x.useCallback(function(p,b,v,g){var w={name:p,delta:b,target:v,should:g,shadowParent:F7(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=x.useCallback(function(p){n.current=Zl(p),r.current=void 0},[]),f=x.useCallback(function(p){u(p.type,Cx(p),p.target,a(p,e.lockRef.current))},[]),h=x.useCallback(function(p){u(p.type,Zl(p),p.target,a(p,e.lockRef.current))},[]);x.useEffect(function(){return so.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ro),document.addEventListener("touchmove",l,ro),document.addEventListener("touchstart",d,ro),function(){so=so.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,ro),document.removeEventListener("touchmove",l,ro),document.removeEventListener("touchstart",d,ro)}},[]);var m=e.removeScrollBar,y=e.inert;return x.createElement(x.Fragment,null,y?x.createElement(o,{styles:D7(s)}):null,m?x.createElement(T7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function F7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const B7=p7(i4,$7);var $g=x.forwardRef(function(e,t){return x.createElement(ad,Mn({},e,{ref:t,sideCar:B7}))});$g.classNames=ad.classNames;var U7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oo=new WeakMap,Jl=new WeakMap,Xl={},Af=0,d4=function(e){return e&&(e.host||d4(e.parentNode))},z7=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d4(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},H7=function(e,t,n,r){var s=z7(t,Array.isArray(e)?e:[e]);Xl[n]||(Xl[n]=new WeakMap);var o=Xl[n],i=[],a=new Set,l=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};
vendor: 6,958 bytes, lines 276-280
276s.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 m=h.getAttribute(r),y=m!==null&&m!=="false",p=(oo.get(h)||0)+1,b=(o.get(h)||0)+1;oo.set(h,p),o.set(h,b),i.push(h),p===1&&y&&Jl.set(h,!0),b===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return d(t),a.clear(),Af++,function(){i.forEach(function(f){var h=oo.get(f)-1,m=o.get(f)-1;oo.set(f,h),o.set(f,m),h||(Jl.has(f)||f.removeAttribute(r),Jl.delete(f)),m||f.removeAttribute(n)}),Af--,Af||(oo=new WeakMap,oo=new WeakMap,Jl=new WeakMap,Xl={})}},f4=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=U7(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),H7(r,s,n,"aria-hidden")):function(){return null}},ld="Dialog",[h4,OV]=Ys(ld),[W7,Tn]=h4(ld),m4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=x.useRef(null),l=x.useRef(null),[u,d]=Oa({prop:r,defaultProp:s??!1,onChange:o,caller:ld});return c.jsx(W7,{scope:t,triggerRef:a,contentRef:l,contentId:Is(),titleId:Is(),descriptionId:Is(),open:u,onOpenChange:d,onOpenToggle:x.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};m4.displayName=ld;var p4="DialogTrigger",q7=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Tn(p4,n),o=Ce(t,s.triggerRef);return c.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Ug(s.open),...r,ref:o,onClick:ie(e.onClick,s.onOpenToggle)})});q7.displayName=p4;var Fg="DialogPortal",[K7,g4]=h4(Fg,{forceMount:void 0}),v4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=Tn(Fg,t);return c.jsx(K7,{scope:t,forceMount:n,children:x.Children.map(r,i=>c.jsx(Qs,{present:n||o.open,children:c.jsx(Fu,{asChild:!0,container:s,children:i})}))})};v4.displayName=Fg;var yu="DialogOverlay",y4=x.forwardRef((e,t)=>{const n=g4(yu,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=Tn(yu,e.__scopeDialog);return o.modal?c.jsx(Qs,{present:r||o.open,children:c.jsx(Y7,{...s,ref:t})}):null});y4.displayName=yu;var G7=ui("DialogOverlay.RemoveScroll"),Y7=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Tn(yu,n);return c.jsx($g,{as:G7,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(ce.div,{"data-state":Ug(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Us="DialogContent",x4=x.forwardRef((e,t)=>{const n=g4(Us,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=Tn(Us,e.__scopeDialog);return c.jsx(Qs,{present:r||o.open,children:o.modal?c.jsx(Q7,{...s,ref:t}):c.jsx(Z7,{...s,ref:t})})});x4.displayName=Us;var Q7=x.forwardRef((e,t)=>{const n=Tn(Us,e.__scopeDialog),r=x.useRef(null),s=Ce(t,n.contentRef,r);return x.useEffect(()=>{const o=r.current;if(o)return f4(o)},[]),c.jsx(w4,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ie(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:ie(e.onFocusOutside,o=>o.preventDefault())})}),Z7=x.forwardRef((e,t)=>{const n=Tn(Us,e.__scopeDialog),r=x.useRef(!1),s=x.useRef(!1);return c.jsx(w4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),w4=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=Tn(Us,n),l=x.useRef(null),u=Ce(t,l);return s4(),c.jsxs(c.Fragment,{children:[c.jsx(Vg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:c.jsx(il,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ug(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(J7,{titleId:a.titleId}),c.jsx(eO,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Bg="DialogTitle",b4=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Tn(Bg,n);return c.jsx(ce.h2,{id:s.titleId,...r,ref:t})});b4.displayName=Bg;var S4="DialogDescription",_4=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Tn(S4,n);return c.jsx(ce.p,{id:s.descriptionId,...r,ref:t})});_4.displayName=S4;var C4="DialogClose",E4=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Tn(C4,n);return c.jsx(ce.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,()=>s.onOpenChange(!1))})});E4.displayName=C4;function Ug(e){return e?"open":"closed"}var j4="DialogTitleWarning",[IV,k4]=PE(j4,{contentName:Us,titleName:Bg,docsSlug:"dialog"}),J7=({titleId:e})=>{const t=k4(j4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
277
278If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
279
280For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},X7="DialogDescriptionWarning",eO=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${k4(X7).contentName}}.`;return x.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tO=m4,nO=v4,T4=y4,N4=x4,P4=b4,A4=_4,rO=E4;const ji=tO,sO=({...e})=>c.jsx(nO,{...e}),R4=x.forwardRef(({className:e,...t},n)=>c.jsx(T4,{ref:n,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));R4.displayName=T4.displayName;const Zs=x.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(sO,{children:[c.jsx(R4,{}),c.jsxs(N4,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,c.jsxs(rO,{className:"absolute right-4 top-4 roun
280ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(ll,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zs.displayName=N4.displayName;const pl=({className:e,...t})=>c.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});pl.displayName="DialogHeader";const Js=x.forwardRef(({className:e,...t},n)=>c.jsx(P4,{ref:n,className:ue("text-lg font-semibold leading-none tracking-tight",e),...t}));Js.displayName=P4.displayName;const cd=x.forwardRef(({className:e,...t},n)=>c.jsx(A4,{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));cd.displayName=A4.displayName;const O4="/assets/claude-D4aI89rB.png",oO="/assets/n8n-DqwJKGDf.png",I4="/assets/lovable-wordmark-BMVtjS90.png",iO="https://fo3tz.share-eu1.hsforms.com/2SMmEN369S-ytP-rYOwcdXw",aO=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!1),s=i=>{const a=document.querySelector(i);a&&a.scrollIntoView({behavior:"smooth"})},o=["6 semanas - 45h de formação live","100% online - Regime pós-laboral","Usas ferramentas como Claude, n8n e muito mais","Apto para quem não sabe programar"];return c.jsxs(c.Fragment,{children:[c.jsx("section",{className:"relative pt-10 pb-12 md:pt-14 md:pb-16 overflow-hidden bg-[#f8f5f2] px-[32px]",children:c.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-14 items-center max-w-7xl mx-auto",children:[c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[c.jsx(ZR,{className:"mb-6 bg-primary/10 text-primary border-primary/20 hover:bg-primary/15 text-xs md:text-sm font-medium px-3 py-1",children:"Junta-te a >200 ex-alunos da Code for All_ que são freelancers"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-8",children:[c.jsx("img",{src:"/images/badge-herois-pme.png",alt:"Heróis PME - Grande Vencedor",className:"h-10 md:h-12 object-contain"}),c.jsx("a",{href:"https://drive.google.com/file/d/11KcgPA9qfZKa8P93xquStypzxV04TECG/view?usp=drivesdk",target:"_blank",rel:"noreferrer",children:c.jsx("img",{src:"/images/badge-dgert.png",alt:"DGERT Entidade Formadora Certificada",className:"h-10 md:h-12 object-contain"})}),c.jsx("img",{src:"/images/badge-bcorp.png",alt:"Empresa B Certificada",className:"h-10 md:h-12 object-contain"})]}),c.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-primary leading-[1.1] mb-5 font-heading md:text-4xl",children:"Curso Intensivo de Automação e Agentes com IA"}),c.jsx("p",{className:"text-lg font-bold text-foreground leading-snug mb-8 max-w-xl md:text-xl",children:"Constrói automações e agentes que trabalham por ti — e libertam tempo para fazer crescer o teu negócio."}),c.jsx("ul",{className:"space-y-2 mb-8 max-w-xl",children:o.map(i=>c.jsxs("li",{className:"flex items-start gap-2 text-foreground",children:[c.jsx(Hu,{className:"w-4 h-4 mt-1 text-primary flex-shrink-0"}),c.jsx("span",{className:"text-sm md:text-base",children:i})]},i))}),c.jsxs("div",{className:"flex flex-col items-start gap-5",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full sm:w-auto",children:[c.jsx(bt,{size:"lg",onClick:()=>s("#datas"),className:"bg-primary hover:bg-cfa-red-dark text-primary-foreground font-bold text-base px-8 py-6 uppercase tracking-wider shadow-lg transition-all hover:scale-105",children:"Inscreve-te"}),c.jsxs(bt,{size:"lg",variant:"outline",onClick:()=>t(!0),className:"border-primary text-primary hover:bg-primary/10 font-bold text-base px-8 py-6 uppercase tracking-wider","aria-haspopup":"dialog",children:[c.jsx(Oj,{className:"w-5 h-5 mr-2"}),"Marca uma chamada"]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("p",{className:"text-3xl md:text-4xl font-bold text-foreground font-heading leading-none",children:"Desde 125€/mês"}
280),c.jsx("p",{className:"text-sm md:text-base text-foreground/80",children:"10% de desconto + Lovable + Claude até 28 de agosto"})]})]})]}),c.jsxs(Y.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},className:"hidden lg:flex flex-col items-center justify-center gap-6",children:[c.jsx("img",{src:"/images/hero-office.jpg",alt:"Estudantes a trabalhar em ambiente de escritório com iMacs",loading:"eager",decoding:"async",fetchPriority:"high",className:"w-full rounded-2xl object-cover shadow-2xl aspect-[3/2]"}),c.jsx("div",{className:"w-full bg-white/80 backdrop-blur-sm rounded-2xl border border-black/[0.06] px-6 md:px-8 py-3.5",children:c.jsxs("div",{className:"flex items-center gap-6 md:gap-8",children:[c.jsx("span",{className:"text-[10px] font-semibold tracking-[0.2em] text-foreground/50 uppercase whitespace-nowrap md:text-sm",children:"Ferramentas usadas"}),c.jsx("div",{className:"h-6 w-px bg-black/10","aria-hidden":"true"}),c.jsxs("div",{className:"grid grid-cols-3 flex-1 items-center gap-4 md:gap-6",children:[c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:O4,alt:"Claude",className:"h-[22px] md:h-[26px] w-auto object-contain"})}),c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:oO,alt:"n8n",className:"h-[26px] md:h-[30px] w-auto object-contain"})}),c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:I4,alt:"Lovable",className:"h-[18px] md:h-[22px] w-auto object-contain"})})]})]})})]})]})})}),c.jsx(ji,{open:e,onOpenChange:i=>{t(i),i||r(!1)},children:c.jsxs(Zs,{className:"max-w-[680px] w-[calc(100vw-2rem)] max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-2xl",children:[c.jsxs(pl,{className:"space-y-2 text-left",children:[c.jsx(Js,{className:"text-2xl sm:text-3xl font-bold leading-tight",children:"Marca uma chamada"}),c.jsx(cd,{className:"text-sm sm:text-base text-muted-foreground",children:"Preenche os teus dados e a nossa equipa entra em contacto contigo."})]}),c.jsxs("div",{className:"mt-4 -mx-2 sm:mx-0 relative",children:[!n&&c.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:c.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})}),c.jsx("iframe",{src:iO,title:"Marca uma chamada",className:"w-full rounded-lg border-0",style:{height:"560px"},loading:"lazy",onLoad:()=>r(!0)})]})]})})]})},lO=[{label:"Vantagens",href:"#vantagens"},{label:"Objetivos",href:"#objetivos"},{label:"Target",href:"#target"},{label:"Currículo",href:"#curriculo"},{label:"Ferramentas",href:"#ferramentas"},{label:"Preço",href:"#preco"},{label:"Datas",href:"#datas"},{label:"Equipa",href:"#equipa"}],cO=()=>{const[e,t]=x.useState(!1);x.useEffect(()=>{const r=document.getElementById("sticky-nav");if(!r)return;const s=r.offsetTop,o=()=>{t(window.scrollY>=s)};return window.addEventListener("scroll",o),o(),()=>window.removeEventListener("scroll",o)},[]);const n=r=>{const s=document.querySelector(r);if(!s)return;const i=s.getBoundingClientRect().top+window.pageYOffset+-120;window.scrollTo({top:i,behavior:"smooth"})};return c.jsxs(c.Fragment,{children:[c.jsx("nav",{id:"sticky-nav",className:`hidden md:block w-full z-40 transition-all duration-300 ${e?"fixed top-0 left-0 bg-white shadow-md":"bg-[#f8f5f2]"}`,children:c.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"flex items-center py-3 gap-6",children:[c.jsx("a",{href:"/",className:"flex-shrink-0",children:c.jsx("img",{src:"/images/cfa-icon.png",alt:"Code for All",className:"h-6 w-auto"})}),c.jsx("div",{className:"flex items-center gap-6",children:lO.map(r=>c.jsx("button",{onClick:()=>n(r.href),className:"text-sm font-medium transition-colors hover:text-primary text-foreground",children:r.label},r.href))}),c.jsx("div",{className:"flex-1"}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:()=>n("#datas"),className:"bg-primary hover:bg-cfa-red-dark text-white text-sm font-semibold px-5 py-2 rounded-full transition-colors",children:"Inscreve-te"}),c.jsx("a",{href:"https://codeforall.com/a-code-for-all/contacta-nos",target:"_blank",rel:"noopener noreferrer",className:"border border-foreground text-foreground text-sm font-semibold px-5 py-2 rounded-full hover:bg-foreground hover:text-background transition-colors",children:"Contacta-nos"})]})]})})}),c.jsxs("div",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 bg-primary px-4 py-3 flex items-center justify-between",children:[c.jsx("span",{className:"text-white font-semibold text-sm",children:"Domina a nova era de IA"}),c.jsx("button",{onClick:()=>n("#datas"),className:"bg-white text-primary font-semibold text-sm px-5 py-2 rounded-full hover:bg-gray-100 transition-colors",children:"Inscreve-te"})]})]})},Rf=[{name:"Altice",logo:"/images/partners/altice.png"},{name:"TAP",logo:"/images/partners/tap.png"},{name:"Deloitte",logo:"/images/partners/deloitte.png"},{name:"KPMG",logo:"/images/partners/kpmg.png"},{name:"EY",logo:"/images/partners/ey.png"},{name:"PWC",logo:"/images/partners/pwc.png"},{name:"NTT DATA",logo:"/images/partners/ntt-data.png"},{name:"Capgemini",logo:"/images/partners/capgemini.png"},{name:"Feedzai",logo:"/images/partners/feedzai.png"},{name:"Jerónimo Martins",logo:"/images/partners/jeronimo-martins.png"},{name:"Critical Techworks",logo:"/images/partners/critical-techworks.png"},{name:"CTT",logo:"/images/partners/ctt.png"},{name:"BNP Paribas",logo:"/images/partners/bnp-paribas.png"}],uO=[...Rf,...Rf,...Rf],dO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"});return c.jsx("section",{id:"vantagens",className:"section-padding bg-black text-primary-foreground overflow-hidden",children:c.jsxs("div",{className:"container-main",ref:e,children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-4xl mx-auto",children:[c.jsxs("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-8 leading-tight text-white",children:["Queres aumentar o teu rendimento hora? ",c.jsx("span",{className:"text-cfa-red",children:"Domina a skill mais procurada pelas empresas em 2026."})]}),c.jsx("p",{className:"text-lg sm:text-xl text-white leading-relaxed mb-4 font-bold",children:"Automação com IA é uma das skills mais procuradas pelas empresas, em freelancers, em 2026*"}),c.jsx("p",{className:"text-lg sm:text-xl text-primary-foreground
280/90 leading-relaxed mb-4",children:"Se és freelancer, sabes que se conseguires construir automações e agentes não só trabalhas mais rápido e entregas mais valor em menos tempo, mas também consegues criar novos serviços premium dentro da tua expertise — e destacar-te num mercado cada vez mais competitivo."}),c.jsx("p",{className:"text-lg leading-relaxed mb-10 text-muted-foreground sm:text-sm font-light",children:"*Upwork Research, In-Demand Skills 2026"})]}),c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.3},className:"mt-12 text-center",children:[c.jsx("p",{className:"text-sm uppercase tracking-widest text-primary-foreground/50 mb-6 font-medium",children:"Profissionais destas empresas já aprenderam IA com a Code for All"}),c.jsxs("div",{className:"relative w-full overflow-hidden",children:[c.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-16 md:w-24 bg-gradient-to-r from-black to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-16 md:w-24 bg-gradient-to-l from-black to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"flex animate-marquee items-center",style:{width:"fit-content"},children:uO.map((n,r)=>c.jsx("div",{className:"flex-shrink-0 mx-4 md:mx-6 flex items-center justify-center h-7 md:h-8",children:c.jsx("img",{src:n.logo,alt:n.name,className:"max-h-full w-auto object-contain opacity-60 brightness-0 invert",loading:"lazy"})},`${n.name}-${r}`))})]})]})]})})},fO=[{name:"ECO",logo:"/images/media/eco-logo.png",url:"https://eco.sapo.pt/2026/03/16/as-empresas-entraram-na-nova-era-da-ia-os-agentes-novo-curso-prepara-profissionais-portugueses/"},{name:"Human Resources",logo:"/images/media/human-resources-logo.png",url:"https://hrportugal.sapo.pt/quer-aprender-a-criar-e-integrar-agentes-de-ia-veja-este-curso-que-tem-desconto-ate-ao-fim
280-do-mes/#goog_rewarded"},{name:"Jornal Económico",logo:"/images/media/jornal-economico-logo.png",url:"https://jornaleconomico.sapo.pt/noticias/curso-intensivo-da-code-for-all_-ensina-a-criar-e-integrar-agentes-de-ia/"}],hO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"});return c.jsx("section",{ref:e,className:"overflow-hidden",children:c.jsx(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.4},className:"bg-background py-6 md:py-8 px-6",children:c.jsxs("div",{className:"container-main",children:[c.jsx("h3",{className:"text-xl sm:text-2xl font-semibold text-foreground text-center mb-6",children:"Vê o que os media andam a dizer sobre este curso"}),c.jsx("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-10 sm:gap-16",children:fO.map(n=>c.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center",children:c.jsx("img",{src:n.logo,alt:n.name,className:"h-10 sm:h-12 w-auto object-contain"})},n.name))})]})})})};var ud="Collapsible",[mO,LV]=Ys(ud),[pO,zg]=mO(ud),L4=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:o,onOpenChange:i,...a}=e,[l,u]=Oa({prop:r,defaultProp:s??!1,onChange:i,caller:ud});return c.jsx(pO,{scope:n,disabled:o,contentId:Is(),open:l,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),children:c.jsx(ce.div,{"data-state":Wg(l),"data-disabled":o?"":void 0,...a,ref:t})})});L4.displayName=ud;var M4="CollapsibleTrigger",D4=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=zg(M4,n);return c.jsx(ce.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Wg(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:ie(e.onClick,s.onOpenToggle)})});D4.displayName=M4;var Hg="CollapsibleContent",V4=x.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=zg(Hg,e.__scopeCollapsible);return c.jsx(Qs,{present:n||s.open,children:({present:o})=>c.jsx(gO,{...r,ref:t,present:o})})});V4.displayName=Hg;var gO=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...o}=e,i=zg(Hg,n),[a,l]=x.useState(r),u=x.useRef(null),d=Ce(t,u),f=x.useRef(0),h=f.current,m=x.useRef(0),y=m.current,p=i.open||a,b=x.useRef(p),v=x.useRef(void 0);return x.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),Ze(()=>{const g=u.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const w=g.getBoundingClientRect();f.current=w.height,m.current=w.width,b.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),l(r)}},[i.open,r]),c.jsx(ce.div,{"data-state":Wg(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!p,...o,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:p&&s})});function Wg(e){return e?"open":"closed"}var vO=L4;const yO=vO,xO=D4,wO=V4,ec=[{icon:Tj,title:"Triagem e criação de tickets (Jira)",description:"Um aluno está a desenvolver um agente que lê automaticamente emails, identifica o tipo de pedido, define prioridade e cria tickets no Jira com a informação estruturada.",detail:"Os tickets podem depois ser revistos pela equipa, garantindo controlo, mas eliminando a parte manual de triagem e organização."},{icon:jj,title:"Monitorização contínua de concorrência",description:"Um aluno está a construir um agente que acompanha concorrentes diretos e indiretos, desde mudanças em websites, conteúdos e redes sociais até movimentos estratég
280icos no mercado.",detail:"Semanalmente, o agente analisa essa informação e gera insights e recomendações acionáveis sobre tendências, posicionamento e oportunidades."}],bO=({open:e,onOpenChange:t})=>{const[n,r]=x.useState(0),s=()=>r(a=>a===0?ec.length-1:a-1),o=()=>r(a=>a===ec.length-1?0:a+1),i=ec[n];return c.jsx(ji,{open:e,onOpenChange:t,children:c.jsxs(Zs,{className:"max-w-2xl p-0 overflow-hidden bg-background border-border",children:[c.jsx(Js,{className:"sr-only",children:"Casos práticos de alunos"}),c.jsxs("div",{className:"relative",children:[c.jsx("img",{src:"/images/team/turma-1.png",alt:"Primeira turma do curso de automação e agentes",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"absolute bottom-0 inset-x-0 bg-gradient-to-t from-black/70 to-transparent p-4 pt-10",children:c.jsx("p",{className:"text-white text-sm font-medium text-center",children:"👆 Arrasta para veres os agentes que estivemos a criar"})})]}),c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("button",{onClick:s,className:"w-9 h-9 rounded-full bg-muted flex items-center justify-center hover:bg-muted/80 transition-colors","aria-label":"Anterior",children:c.jsx(m2,{className:"w-5 h-5 text-foreground"})}),c.jsxs("span",{className:"text-xs text-muted-foreground font-medium",children:[n+1," / ",ec.length]}),c.jsx("button",{onClick:o,className:"w-9 h-9 rounded-full bg-muted flex items-center justify-center hover:bg-muted/80 transition-colors","aria-label":"Seguinte",children:c.jsx(Hu,{className:"w-5 h-5 text-foreground"})})]}),c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:c.jsx(i.icon,{className:"w-5 h-5 text-primary"})}),c.jsx("h3",{className:"text-lg font-bold text-foreground",children:i.title})]}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:i.description}),c.jsx("p",{className:"text-muted-foreground/80 text-sm leading-relaxed",children:i.detail})]})]})})},SO=[{number:"A",title:"Saber identificar um problema real e desenhar um processo para o resolver",example:"Por exemplo: trabalhas na área financeira e recebes faturas por email que precisam de ser registadas corretamente no sistema de faturação da empresa."},{number:"B",title:"Conseguir traduzir esse processo num workflow que executa sem input manual",example:"Criar um workflow que liga o Gmail ao sistema de faturação, reconhece automaticamente faturas em PDF, extrai os dados certos e regista a fatura sem intervenção humana."},{number:"C",title:"Construir agentes inteligentes que dão pensamento crítico aos workflows",example:"O agente valida se a fatura foi corretamente registada, adapta-se a novos formatos ou línguas (ex.: uma fatura em alemão) e decide autonomamente como agir em cada caso."},{number:"Z",title:"Criar sistemas com vários agentes que trabalham entre si, em escala",example:"Um agente regista a fatura, outro valida erros, outro comunica ao diretor financeiro e outro analisa o gasto mensal e gera relatórios automáticos."}],_O=({step:e,index:t,isInView:n,isOpen:r,onToggle:s,showArrow:o})=>c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:n?{opacity:1,y:0}:{},transition:{duration:.5,delay:.15*t},className:"relative flex items-stretch",children:[c.jsxs("div",{className:"bg-[#353535] border border-white/10 rounded-2xl p-5 sm:p-6 flex-1 hover:border-primary/30 transition-colors",children:[c.jsx("div",{className:"flex items-center gap-3 mb-3",children:c.jsx("span",{className:"w-9 h-9 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-base",children:e.number})}),c.jsx("h3",{className:"text-base font-semibold text-white mb-2 leading-snug",children:e.title}),c.jsxs(yO,{open:r,onOpenChange:s,children:[c.jsxs(xO,{className:"flex items-center gap-1.5 text-xs text-primary hover:text-primary/80 transition-colors cursor-pointer group",children:[c.jsx("span",{children:"Ver exemplo"}),c.jsx(tr,{className:`w-3.5 h-3.5 transition-transform duration-200 ${r?"rotate-180":""}`})]}),c.jsx(wO,{className:"overflow-hidden data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up",children:c.jsx("p",{className:"text-sm text-white/70 leading-relaxed mt-2 pt-2 border-t border-white/10",children:e.example})})]})]}),o&&c.jsx("div",{className:"hidden md:flex items-center justify-center w-8 flex-shrink-0",children:c.jsx(di,{className:"w-5 h-5 text-primary/50"})})]}),CO=()=>{const e=x.useRef(null),[t,n]=x.useState(!1),[r,s]=x.useState(!1),o=ze(e,{once:!0,margin:"-100px"}),i=()=>{n(!t)};return c.jsxs(c.Fragment,{children:[c.jsx("section",{className:"section-padding bg-white text-foreground overflow-hidden",children:c.jsxs("div",{className:"container-main",ref:e,children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:o?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-4xl mx-auto mb-12",children:[c.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-6 leading-tight text-black/[0.98] px-[8px]",children:["No final deste curso, vais tornar-te num perfil que ",c.jsx("span",{className:"text-primary",children:"sabe ir de A a Z."})]}),c.jsx("p",{className:"leading-relaxed mb-10 text-muted-foreground sm:text-sm font-light text-sm",children:"Desenhámos um curso que te prepara para montares uma equipa de agentes com as bases certas: desde saber montar bons processos a conseguir criar automações para os resolver. No final deste curso, vais:"})]}),c.jsx("div",{className:"max-w-5xl mx-auto",children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:SO.map((a,l)=>c.jsx(_O,{step:a,index:l,isInView:o,isOpen:t,onToggle:i,showArrow:l===0||l===2},l))})})]})}),c.jsx(bO,{open:r,onOpenChange:s})]})},jx=[{prefix:"",highlight:"Identificar",rest:", nos teus clientes, quais os processos a automatizar"},{prefix:"",highlight:"Integrar várias ferramentas",rest:" (Jira, Gmail, etc.) num workflow único"},{prefix:"",highlight:"Construir automações replicáveis",rest:" de projeto para projeto"},{prefix:"",highlight:"Saber como testar agentes",rest:" antes de os apresentar ao cliente"},{prefix:"",highlight:"Criar um agente",rest:" que respeita regras de segurança e RGPD"},{prefix:"",highlight:"Criar agentes no curso",rest:" que resolvem um problema real teu"}],EO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),n=jx.slice(0,3),r=jx.slice(3);return c.jsx("section",{id:"objetivos",className:"section-padding bg-[#f9f9f9] overflow-hidden",children:c.jsxs("div",{className:"container-main mx-auto",ref:e,children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-4xl mx-auto mb-8 md:mb-12",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 md:mb-8 leading-tight text-black",children:"Objetivos do curs
280o"}),c.jsx("p",{className:"hidden md:block leading-relaxed mb-8 text-lg text-muted-foreground",children:"No curso de automação e agentes vais aprender a construir sistemas práticos que libertam o teu tempo e escalam o teu negócio."}),c.jsx("p",{className:"text-base md:text-lg text-black font-medium",children:"No final deste curso, vais:"})]}),c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.2},className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-3 md:gap-y-4 max-w-5xl mx-auto",children:[c.jsx("div",{className:"space-y-3 md:space-y-4",children:n.map((s,o)=>c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"w-2 h-2 md:w-2.5 md:h-2.5 rounded-full bg-primary mt-1.5 md:mt-2 flex-shrink-0"}),c.jsxs("p",{className:"text-sm md:text-base text-foreground leading-snug md:leading-relaxed",children:[s.prefix,c.jsx("span",{className:"text-primary font-medium",children:s.highlight}),s.rest]})]},o))}),c.jsx("div",{className:"space-y-3 md:space-y-4",children:r.map((s,o)=>c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"w-2 h-2 md:w-2.5 md:h-2.5 rounded-full bg-primary mt-1.5 md:mt-2 flex-shrink-0"}),c.jsxs("p",{className:"text-sm md:text-base text-foreground leading-snug md:leading-relaxed",children:[s.prefix,c.jsx("span",{className:"text-primary font-medium",children:s.highlight}),s.rest]})]},o))})]})]})})},Cm="/assets/lovable-heart-p4NDRfTf.png",Of="#datas",jO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),{appendUtmToUrl:n}=ml(),r=s=>{if(Of.startsWith("#")){s.preventDefault();const o=document.querySelector(Of);o==null||o.scrollIntoView({behavior:"smooth"})}};return c.jsx("section",{ref:e,className:"bg-black py-12 md:py-16 lg:py-20 px-4",children:c.jsx("div",{className:"container mx-auto max-w-7xl",children:c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-12 items-center",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"inline-flex items-center gap-2 border border-[#be7aeb]/60 rounded-full px-4 py-2 mb-8",children:[c.jsx("span",{className:"text-white text-xs md:text-sm font-bold tracking-[0.15em] uppercase",children:"Para inscrições até 28 de agosto"}),c.jsx(kj,{className:"w-4 h-4 text-[#be7aeb]"})]}),c.jsxs("h2",{className:"text-3xl sm:text-5xl font-bold text-white leading-[1.05] mb-6 font-heading lg:text-4xl",children:["Oferecemos-te uma das"," ",c.jsx("span",{className:"bg-gradient-to-r from-[#ff6b9d] via-[#c084fc] to-[#7c3aed] bg-clip-text text-transparent text-3xl sm:text-4xl",children:"ferramentas de IA"})," ","mais procuradas do mercado"]}),c.jsx("p",{className:"text-base md:text-lg text-white/70 leading-relaxed mb-8 max-w-xl",children:"Incluímos acesso a uma das ferramentas de IA mais poderosas, para praticares e aplicares tudo o que vais aprender."}),c.jsx(bt,{asChild:!0,className:"bg-primary hover:bg-cfa-red-dark text-primary-foreground font-semibold rounded-full px-8 py-6 text-base",children:c.jsx("a",{href:n(Of),onClick:r,children:"Inscreve-te agora"})}),c.jsx("p",{className:"text-xs md:text-sm text-white/60 mt-5 md:mt-6 max-w-xl",children:"Oferta atribuída a alunos após o início do curso. Válida para novas contas Pro. Limitado a 1 código por aluno, mediante disponibilidade."})]}),c.jsx("div",{className:"bg-gradient-to-b from-[#0f0f12] to-[#08080a] border border-white/10 rounded-3xl p-5 md:p-6 shadow-[0_0_40px_-12px_rgba(190,122,235,0.25)]",children:c.jsx("div",{className:"grid grid-cols-1 gap-3 lg:gap-4",children:c.jsxs(Y.div,{whileHover:{y:-2},transition:{duration:.2},className:"group relative rounded-2xl p-4 bg-gradient-to-br from-[#2e0f1f] to-[#0a0a0a] border border-[#ec4899]/30 hover:border-[#ec4899]/60 transition-colors flex items-center gap-3 lg:flex-col lg:items-start lg:gap-3",children:[c.jsx("div",{className:"flex-shrink-0 w-11 h-11 rounded-xl bg-gradient-to-br from-[#be185d]/30 to-[#ec4899]/10 border border-[#ec4899]/30 flex items-center justify-center transition-all group-hover:shadow-[0_0_20px_-2px_rgba(236,72,153,0.5)]",children:c.jsx("img",{src:Cm,alt:"Lovable",className:"h-5 w-auto object-contain"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[c.jsx("span",{className:"text-white font-bold text-lg",children:"Lovable"}),c.jsx("span",{className:"font-bold text-[#f9a8d4] tracking-widest px-1.5 py-0.5 rounded bg-[#C31E64]/20 text-sm",children:"PRO"})]}),c.jsx("p",{className:"text-white/60 leading-snug line-clamp-2 text-sm",children:"Cria apps e websites com IA, sem código"}),c.jsx("div",{className:"mt-2",children:c.jsx("span",{className:"inline-flex items-center gap-1 font-semibold text-white bg-gradient-to-r from-[#be185d] to-[#ec4899] rounded-full px-2.5 py-1 whitespace-nowrap text-base",children:"2 meses oferta"})})]})]})})})]})})})},kO=()=>{const e=x.useRef(null);return ze(e,{once:!0,margin:"-100px"}),null},TO=()=>{const e=x.useRef(null);return ze(e,{once:!0,margin:"-100px"}),null},kx=["Empreendedores","Freelancers","Product Managers","Analistas de Negócio","Curiosos por IA"],NO=[{icon:Dj,text:"Queres criar novos serviços premium dentro da tua expertise"},{icon:$j,text:"Queres saber como usar IA e agentes para aumentar o teu €/hora"},{icon:ru,text:"Queres entregar mais, sem aumentar horas, através de automações"},{icon:Lj,text:"Queres uma diferenciação clara face à concorrência"}],PO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"});return c.jsx("section",{id:"target",className:"section-padding bg-background",ref:e,children:c.jsxs("div",{className:"container-main",children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-4xl mx-auto mb-10 md:mb-14",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 leading-tight",children:"Por que é que este curso é ideal para freelancers?"}),c.jsxs("p",{className:"text-muted-foreground text-lg",children:["Não é sobre trabalhar mais, é sobre aumentar o valor do que já fazes.",c.jsx("br",{}),"Este curso é para ti, se..."]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-
2805 max-w-5xl mx-auto mb-12 md:mb-16",children:NO.map((n,r)=>c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.3+r*.1},className:"flex flex-col items-center text-center rounded-xl border border-border bg-card p-6",children:[c.jsx(n.icon,{className:"w-7 h-7 text-primary mb-4 stroke-[1.5]"}),c.jsx("span",{className:"text-lg font-medium text-foreground",children:n.text})]},r))}),c.jsx(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.4,duration:.6},className:"text-center max-w-4xl mx-auto mb-6 md:mb-8",children:c.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:"Este curso também é indicado para outros perfis que querem estar na linha da frente da automação e agentes:"})}),c.jsx(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.5,duration:.6},className:"text-center max-w-4xl mx-auto mb-10 md:mb-16",children:c.jsx("div",{className:"flex flex-wrap justify-center items-center gap-1 md:gap-2",children:kx.map((n,r)=>c.jsxs("span",{className:"text-primary font-semibold text-base md:text-lg",children:[n,r<kx.length-1&&c.jsx("span",{className:"mx-1 md:mx-2 text-primary",children:"·"})]},n))})}),c.jsx(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.6,duration:.6},className:"max-w-3xl mx-auto text-center",children:c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Nota: Se ainda não se sente confortável a usar ferramentas de IA como o ChatGPT no seu dia a dia, recomendamos começar por um dos nossos"," ",c.jsx("a",{href:"https://codeforall.com/cursos-curtos/cursos-ia",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-primary transition-colors",children:"cursos de introdução à Inteligência Artificial"}),"."]})})]})})},AO="https://share-eu1.hsforms.com/1UoV5dbgcRBuJsHyXgltt3gfo3tz",Em="open-syllabus-modal",RO=()=>{window.dispatchEvent(new Event(Em))},OO=()=>{const[e,t]=x.useState(!1);return x.useEffect(()=>{const n=()=>t(!0);return window.addEventListener(Em,n),()=>window.removeEventListener(Em,n)},[]),c.jsx(ji,{open:e,onOpenChange:t,children:c.jsxs(Zs,{className:"max-w-[680px] w-[calc(100vw-2rem)] max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-2xl",children:[c.jsxs(pl,{className:"space-y-2 text-left",children:[c.jsx(Js,{className:"text-2xl sm:text-3xl font-bold leading-tight",children:"Recebe o syllabus completo"}),c.jsx(cd,{className:"text-sm sm:text-base text-muted-foreground",children:"Deixa os teus dados e enviamos-te todos os módulos, exercícios e ferramentas utilizados ao longo da formação."})]}),c.jsx("div",{className:"mt-4 -mx-2 sm:mx-0",children:c.jsx("iframe",{src:AO,title:"Recebe o syllabus completo",className:"w-full rounded-lg border-0",style:{height:"560px"},loading:"lazy"})}),c.jsx("p",{className:"mt-3 text-xs text-muted-foreground text-center",children:"Sem spam. Apenas informação relevante sobre esta formação."})]})})},Rc="/assets/n8n-DqwJKGDf.png",$4="/assets/flowise-CZl1VVpW.png",jm="/assets/openrouter-Bf1GLQOF.png",If="/assets/claude-wordmark-CkEUqy73.png",IO=[{phase:"1",shortTitle:"Do zero ao primeiro agente",range:"Módulos 1 a 3",description:"Aprendes fazendo. Constróis a tua primeira automação no primeiro dia usando ferramentas no-code e ganhas as bases para identificar oportunidades onde criar (ou não) agentes.",practices:["Construir a primeira automatização com um template no-code","Aplicar o processo de 6 passos: Definir → Mapear → Identificar → Escolher → Construir → Testar","Testar e iterar o workflow com cenários reais"],exercise:"Construir um workflow que recebe um input (email ou formulário) e executa uma sequência de ações automaticamente.",modules:[{num:"1",title:"Fundamentos de IA e Automação"},{num:"2",title:"Identificar Oportunidades e Ferramentas"},{num:"3",title:"Construir o Primeiro Agente do Zero"}],tools:[{name:"Claude",logo:If,opticalScale:1}]},{phase:"2",shortTitle:"Agentes com memória que colaboram",range:"Módulos 4 a 5",description:"Depois de dominares as bases, vais construir workflows mais complexos e crias agentes com memória, contexto e capacidade de raciocínio.",practices:["Implementar padrões agênticos avançados: Reflection, Tool Use, ReAct","Construir um chatbot com RAG (ou seja, memória) usando Flowise","Criar sistemas de memória e contexto para agentes"],exercise:"Criar um agente que lê informação, decide o que fazer e executa a ação correta sem intervenção humana.",modules:[{num:"4",title:"Padrões Agênticos Avançados"},{num:"5",title:"RAG e Chatbots com Flowise"}],tools:[{name:"n8n",logo:Rc,opticalScale:1.05},{name:"Flowise",logo:$4,opticalScale:1}
280,{name:"OpenRouter",logo:jm,opticalScale:1.1}]},{phase:"3",shortTitle:"Optimização e conexão ao mundo real",range:"Módulos 6 a 8",description:"Ligas os teus agentes ao mundo real através de APIs, bases de dados e integrações externas, optimizando custo e performance.",practices:["Integrar APIs externas (Gmail, Slack, CRM, Sheets)","Optimizar workflows para reduzir custos de LLM","Criar agentes que acedem a informação em tempo real","Implementar webhooks e triggers avançados"],exercise:"Construir agentes com várias conexões e optimizados para produção.",modules:[{num:"6",title:"Integrações e APIs"},{num:"7",title:"Bases de Dados e Dados Estruturados"},{num:"8",title:"Optimização de Custos e Performance"}],tools:[{name:"n8n",logo:Rc,opticalScale:1.05},{name:"OpenRouter",logo:jm,opticalScale:1.1},{name:"Claude",logo:If,opticalScale:.78}]},{phase:"4",shortTitle:"Produção, aplicação e melhoria contínua",range:"Módulos 9 a 11",description:"Lidas com erros, segurança e RGPD, fazes deploy em ambientes reais, medes ROI e especializas-te em criar agentes para problemas reais do teu setor.",practices:["Configurar segurança, autenticação e conformidade RGPD","Deploy de workflows em produção (cloud e self-hosting)","Monitorizar desempenho e calcular ROI das automações","Construir agentes especializados para o teu setor"],exercise:"Aplicar agentes e automações inteligentes ao teu projeto final, mais robusto e preparado para crescer.",modules:[{num:"9",title:"Segurança, RGPD e Deploy"},{num:"10",title:"Monitorização e ROI"},{num:"11",title:"Projeto Final e Especialização"}],tools:[{name:"n8n",logo:Rc,opticalScale:1.05},{name:"Claude",logo:If,opticalScale:.78}]}],LO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),[n,r]=x.useState(0);return c.jsx("section",{id:"curriculo",className:"section-padding bg-[#f9f9f9]",ref:e,children:c.jsxs("div",{className:"container-main",children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-4",children:[c.jsx("h2",{className:"text-2xl md:text-4xl font-bold leading-tight mb-3 md:mb-4 text-foreground",children:"O currículo"}),c.jsx("p",{className:"md:text-base text-muted-foreground leading-relaxed max-w-md md:max-w-3xl mx-auto text-base px-[8px]",children:"4 fases progressivas, 11 módulos práticos. Em cada módulo constróis algo concreto — do teu primeiro agente até sistemas multiagentes aplicad
280os ao teu trabalho."})]}),c.jsx("div",{className:"mt-8 md:mt-10 max-w-4xl mx-auto divide-y divide-border overflow-hidden rounded-2xl border border-border bg-white shadow-sm",children:IO.map((s,o)=>{const i=n===o;return c.jsxs("div",{children:[c.jsxs("button",{type:"button",onClick:()=>r(i?-1:o),"aria-expanded":i,className:"flex w-full items-center gap-4 px-5 py-5 md:px-8 md:py-6 text-left transition-colors hover:bg-muted/40",children:[c.jsxs("span",{className:"font-bold text-primary text-sm md:text-base tracking-[0.14em] uppercase whitespace-nowrap",children:["Fase ",s.phase]}),c.jsx("span",{className:"flex-1 min-w-0 text-base md:text-lg font-bold text-foreground leading-snug",children:s.shortTitle}),c.jsx("span",{className:"hidden sm:inline text-xs md:text-sm font-medium text-muted-foreground whitespace-nowrap",children:s.range}),c.jsx(tr,{className:`h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-300 ${i?"rotate-180":""}`})]}),c.jsx("div",{className:`grid transition-all duration-300 ${i?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:c.jsx("div",{className:"overflow-hidden",children:c.jsxs("div",{className:"px-5 pb-7 md:px-8 md:pl-[6rem] md:pb-8",children:[c.jsx("span",{className:"inline-flex sm:hidden mb-4 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:s.range}),c.jsx("p",{className:"max-w-3xl text-sm md:text-base text-muted-foreground leading-relaxed",children:s.description}),c.jsxs("div",{className:"mt-6",children:[c.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-muted-foreground mb-3",children:"O que vais aprender"}),c.jsx("ul",{className:"grid gap-2 md:grid-cols-2 text-sm md:text-[15px] text-foreground",children:s.practices.map(a=>c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx(Jr,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),c.jsx("span",{children:a})]},a))})]}),c.jsxs("div",{className:"mt-6",children:[c.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-muted-foreground mb-3",children:"Módulos incluídos"}),c.jsx("ul",{className:"space-y-1.5",children:s.modules.map(a=>c.jsxs("li",{className:"flex items-baseline gap-3 text-sm md:text-[15px]",children:[c.jsx("span",{className:"font-bold tabular-nums text-primary",children:a.num.padStart(2,"0")}),c.jsx("span",{className:"text-foreground",children:a.title})]},a.num))})]}),c.jsxs("div",{className:"mt-6 rounded-xl border-l-2 border-primary bg-muted/40 px-4 py-3",children:[c.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-primary",children:"Exercício-chave"}),c.jsx("p",{className:"mt-1 text-sm md:text-[15px] text-foreground leading-snug",children:s.exercise})]}),c.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-3",children:[c.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-muted-foreground",children:"Ferramentas"}),s.tools.map(a=>{const u=Math.round(22*(a.opticalScale??1));return c.jsx("img",{src:a.logo,alt:a.name,title:a.name,className:"w-auto object-contain opacity-80",style:{height:u,maxWidth:90}},a.name)})]})]})})})]},s.phase)})}),c.jsx(Y.div,{initial:{opacity:0,y:10},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.3},className:"flex justify-center mt-8 md:mt-10",children:c.jsxs(bt,{variant:"outline",className:"gap-2",onClick:RO,children:[c.jsx(Nj,{className:"w-4 h-4"}),"Descarrega o syllabus"]})}),c.jsx(Y.p,{initial:{opacity:0}
280,animate:t?{opacity:1}:{},transition:{duration:.6,delay:.5},className:"text-center text-xs text-muted-foreground mt-6 md:mt-5",children:"Nota: Os exercícios e projetos podem sofrer alterações face às necessidades e interesses dos alunos de cada turma."})]})})},MO="/assets/openai-DUULDtS7.png",DO="/assets/slack-rVdnDVzn.png",VO="/assets/gemini-RbNGuvPa.png",$O=[{name:"Slack",logo:DO,size:"default"},{name:"Claude",logo:O4,size:"large"},{name:"Gemini",logo:VO,size:"default"},{name:"ChatGPT",logo:MO,size:"default"},{name:"Lovable",logo:I4,size:"large"},{name:"Flowise",logo:$4,size:"large"},{name:"n8n",logo:Rc,size:"large"},{name:"OpenRouter",logo:jm,size:"large"}],FO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"});return c.jsx("section",{id:"ferramentas",ref:e,className:"bg-primary py-12 sm:py-16 lg:py-20",children:c.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center",children:[c.jsxs(Y.div,{initial:{opacity:0,x:-30},animate:t?{opacity:1,x:0}:{opacity:0,x:-30},transition:{duration:.6,ease:"easeOut"},children:[c.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-white mb-4 leading-tight font-heading",children:"Algumas das ferramentas que vais usar ao longo do curso"}),c.jsx("p",{className:"sm:text-xl text-primary-foreground/90 leading-relaxed mb-4 text-base",children:"Vais aprender com várias ferramentas, mas sais a pensar para além delas. Tudo o que aprendes é replicável."})]}),c.jsx(Y.div,{initial:{opacity:0,x:30},animate:t?{opacity:1,x:0}:{opacity:0,x:30},transition:{duration:.6,ease:"easeOut",delay:.2},className:"grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4",children:$O.map((n,r)=>c.jsx(Y.div,{initial:{opacity:0,scale:.9},animate:t?{opacity:1,scale:1}:{opacity:0,scale:.9},transition:{duration:.4,delay:.3+r*.05},className:"bg-white rounded-lg p-4 flex items-center justify-center h-16 sm:h-20",children:c.jsx("img",{src:n.logo,alt:n.name,className:`max-w-full object-contain ${n.size==="large"?"max-h-10 sm:max-h-14":"max-h-8 sm:max-h-10"}`})},n.name))})]})})})};function zi({className:e,...t}){return c.jsx("div",{className:ue("animate-pulse rounded-md bg-muted",e),...t})}const BO="https://fo3tz.share-eu1.hsforms.com/2SMmEN369S-ytP-rYOwcdXw",UO=({open:e,onOpenChange:t})=>{const[n,r]=x.useState(!1);return x.useEffect(()=>{e||r(!1)},[e]),c.jsx(ji,{open:e,onOpenChange:t,children:c.jsxs(Zs,{className:"max-w-[680px] w-[calc(100vw-2rem)] max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-2xl",children:[c.jsxs(pl,{className:"space-y-2 text-left",children:[c.jsx(Js,{className:"text-2xl sm:text-3xl font-bold leading-tight",children:"Marca uma chamada"}),c.jsx(cd,{className:"text-sm sm:text-base text-muted-foreground",children:"Preenche os teus dados e a nossa equipa entra em contacto contigo."})]}),c.jsxs("div",{className:"mt-4 -mx-2 sm:mx-0 relative",children:[!n&&c.jsxs("div",{className:"space-y-3 p-2",children:[c.jsx(zi,{className:"h-10 w-full"}),c.jsx(zi,{className:"h-10 w-full"}),c.jsx(zi,{className:"h-10 w-full"}),c.jsx(zi,{className:"h-24 w-full"}),c.jsx(zi,{className:"h-10 w-1/3"})]}),c.jsx("iframe",{src:BO,title:"Marca uma chamada",onLoad:()=>r(!0),className:"w-full rounded-lg border-0",style:{height:"560px",display:n?"block":"none"}})]}),c.jsx("p",{className:"mt-3 text-xs text-muted-foreground text-center",children:"Sem spam. Apenas contacto sobre esta formação."})]})})},zO=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),[n,r]=x.useState(!1);return c.jsxs("section",{id:"marca-chamada",ref:e,className:"py-16 sm:py-20 lg:py-24 bg-background",children:[c.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:c.jsx("div",{className:"max-w-6xl mx-auto rounded-2xl border border-border bg-[#f9f9f9] shadow-sm overflow-hidden",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center p-6 sm:p-10 lg:p-14",children:[c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.5},children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 text-primary text-xs font-semibold mb-4",children:[c.jsx(wv,{className:"w-3.5 h-3.5"}),"5 minutos · Sem compromisso"]}),c.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold leading-tight mb-4 font-heading text-foreground",children:"Marca uma chamada, sem compromisso"}),c.jsx("p",{className:"text-base sm:text-lg text-muted-foreground leading-relaxed mb-6",children:"Em 5 minutos, fala com a nossa equipa por telefone.  Vamos perceber o teu contexto e ajudar-te a avaliar se este é um bom próximo passo."}),c.jsxs(bt,{onClick:()=>r(!0),size:"lg",className:"bg-primary hover:bg-cfa-red-dark text-primary-foreground font-semibold group px-8",children:["Marca uma chamada",c.jsx(di,{className:"ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),c.jsx(Y.div,{initial:{opacity:0,scale:.95},animate:t?{opacity:1,scale:1}:{},transition:{duration:.5,delay:.2},className:"relative hidden lg:block",children:c.jsxs("div",{className:"relative aspect-square max-w-md mx-auto",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 via-primary/5 to-transparent roun
280ded-3xl"}),c.jsxs("div",{className:"absolute inset-8 bg-card border border-border rounded-2xl shadow-lg p-6 flex flex-col justify-between",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(wv,{className:"w-6 h-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold text-foreground",children:"Code for All_"}),c.jsx("div",{className:"text-xs text-muted-foreground",children:"Equipa de admissões"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"h-2 bg-muted rounded w-3/4"}),c.jsx("div",{className:"h-2 bg-muted rounded w-1/2"}),c.jsx("div",{className:"h-2 bg-muted rounded w-2/3"})]}),c.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[c.jsx("span",{children:"~5 min"}),c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),"Online agora"]})]})]})]})})]})})}),c.jsx(UO,{open:n,onOpenChange:r})]})};function HO(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tx(e){return HO(e)||Array.isArray(e)}function WO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qg(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==o?!1:n.every(i=>{const a=e[i],l=t[i];return typeof a=="function"?`${a}`==`${l}`:!Tx(a)||!Tx(l)?a===l:qg(a,l)})}function Nx(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function qO(e,t){if(e.length!==t.length)return!1;const n=Nx(e),r=Nx(t);return n.every((s,o)=>{const i=r[o];return qg(s,i)})}function Kg(e){return typeof e=="number"}function km(e){return typeof e=="string"}function dd(e){return typeof e=="boolean"}function Px(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oe(e){return Math.abs(e)}function Gg(e){return Math.sign(e)}function ha(e,t){return Oe(e-t)}function KO(e,t){if(e===0||t===0||Oe(e)<=Oe(t))return 0;const n=ha(Oe(e),Oe(t));return Oe(n/e)}function GO(e){return Math.round(e*100)/100}function za(e){return Ha(e).map(Number)}function _n(e){return e[gl(e)]}function gl(e){return Math.max(0,e.length-1)}function Yg(e,t){return t===gl(e)}function Ax(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Ha(e){return Object.keys(e)}function F4(e,t){return[e,t].reduce((n,r)=>(Ha(r).forEach(s=>{const o=n[s],i=r[s],a=Px(o)&&Px(i);n[s]=a?F4(o,i):i}),n),{})}function Tm(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function YO(e,t){const n={start:r,center:s,end:o};function r(){return 0}function s(l){return o(l)/2}function o(l){return t-l}function i(l,u){return km(e)?n[e](l):e(t,l,u)}return{measure:i}}function Wa(){let e=[];function t(s,o,i,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(o,i,a),l=()=>s.removeEventListener(o,i,a);else{const u=s;u.addListener(i),l=()=>u.removeListener(i)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function QO(e,t,n,r){const s=Wa(),o=1e3/60;let i=null,a=0,l=0;function u(){s.add(e,"visibilitychange",()=>{e.hidden&&y()})}function d(){m(),s.clear()}function f(b){if(!l)return;i||(i=b,n(),n());const v=b-i;for(i=b,a+=v;a>=o;)n(),a-=o;const g=a/o;r(g),l&&(l=t.requestAnimationFrame(f))}function h(){l||(l=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(l),i=null,a=0,l=0}function y(){i=null,a=0}return{init:u,destroy:d,start:h,stop:m,update:n,render:r}}function ZO(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",o=r?"x":"y",i=!r&&n?-1:1,a=d(),l=f();function u(y){const{height:p,width:b}=y;return r?p:b}function d(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function h(y){return y*i}return{scroll:s,cross:o,startEdge:a,endEdge:l,measureSize:u,direction:h}}function zs(e=0,t=0){const n=Oe(e-t);function r(u){return u<e}function s(u){return u>t}function o(u){return r(u)||s(u)}function i(u){return o(u)?r(u)?e:t:u}function a(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:o,reachedMax:s,reachedMin:r,removeOffset:a}}function B4(e,t,n){const{constrain:r}=zs(0,e),s=e+1;let o=i(t);function i(h){return n?Oe((s+h)%s):r(h)}function a(){return o}function l(h){return o=i(h),f}
vendor: 15,939 bytes, line 280
280function u(h){return d().set(a()+h)}function d(){return B4(e,a(),n)}const f={get:a,set:l,add:u,clone:d};return f}function JO(e,t,n,r,s,o,i,a,l,u,d,f,h,m,y,p,b,v,g){const{cross:w,direction:S}=e,_=["INPUT","SELECT","TEXTAREA"],C={passive:!1},E=Wa(),j=Wa(),k=zs(50,225).constrain(m.measure(20)),N={mouse:300,touch:400},I={mouse:500,touch:600},O=y?43:25;let U=!1,A=0,z=0,B=!1,F=!1,T=!1,P=!1;function M(D){if(!g)return;function se(Ne){(dd(g)||g(D,Ne))&&ye(Ne)}const de=t;E.add(de,"dragstart",Ne=>Ne.preventDefault(),C).add(de,"touchmove",()=>{},C).add(de,"touchend",()=>{}).add(de,"touchstart",se).add(de,"mousedown",se).add(de,"touchcancel",ne).add(de,"contextmenu",ne).add(de,"click",he,!0)}function K(){E.clear(),j.clear()}function H(){const D=P?n:t;j.add(D,"touchmove",V,C).add(D,"touchend",ne).add(D,"mousemove",V,C).add(D,"mouseup",ne)}function J(D){const se=D.nodeName||"";return _.includes(se)}function Z(){return(y?I:N)[P?"mouse":"touch"]}function pe(D,se){const de=f.add(Gg(D)*-1),Ne=d.byDistance(D,!y).distance;return y||Oe(D)<k?Ne:b&&se?Ne*.5:d.byIndex(de.get(),0).distance}function ye(D){const se=Tm(D,r);P=se,T=y&&se&&!D.buttons&&U,U=ha(s.get(),i.get())>=2,!(se&&D.button!==0)&&(J(D.target)||(B=!0,o.pointerDown(D),u.useFriction(0).useDuration(0),s.set(i),H(),A=o.readPoint(D),z=o.readPoint(D,w),h.emit("pointerDown")))}function V(D){if(!Tm(D,r)&&D.touches.length>=2)return ne(D);const de=o.readPoint(D),Ne=o.readPoint(D,w),He=ha(de,A),Je=ha(Ne,z);if(!F&&!P&&(!D.cancelable||(F=He>Je,!F)))return ne(D);const Rt=o.pointerMove(D);He>p&&(T=!0),u.useFriction(.3).useDuration(.75),a.start(),s.add(S(Rt)),D.preventDefault()}function ne(D){const de=d.byDistance(0,!1).index!==f.get(),Ne=o.pointerUp(D)*Z(),He=pe(S(Ne),de),Je=KO(Ne,He),Rt=O-10*Je,ht=v+Je/50;F=!1,B=!1,j.clear(),u.useDuration(Rt).useFriction(ht),l.distance(He,!y),P=!1,h.emit("pointerUp")}function he(D){T&&(D.stopPropagation(),D.preventDefault(),T=!1)}function re(){return B}return{init:M,destroy:K,pointerDown:re}}function XO(e,t){let r,s;function o(f){return f.timeStamp}function i(f,h){const y=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(Tm(f,t)?f:f.touches[0])[y]}function a(f){return r=f,s=f,i(f)}function l(f){const h=i(f)-i(s),m=o(f)-o(r)>170;return s=f,m&&(r=f),h}function u(f){if(!r||!s)return 0;const h=i(s)-i(r),m=o(f)-o(r),y=o(f)-o(s)>170,p=h/m;return m&&!y&&Oe(p)>.1?p:0}return{pointerDown:a,pointerMove:l,pointerUp:u,readPoint:i}}function eI(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:o,offsetHeight:i}=n;return{top:r,right:s+o,bottom:r+i,left:s,width:o,height:i}}return{measure:e}}function tI(e){function t(r){return e*(r/100)}return{measure:t}}function nI(e,t,n,r,s,o,i){const a=[e].concat(r);let l,u,d=[],f=!1;function h(b){return s.measureSize(i.measure(b))}function m(b){if(!o)return;u=h(e),d=r.map(h);function v(g){for(const w of g){if(f)return;const S=w.target===e,_=r.indexOf(w.target),C=S?u:d[_],E=h(S?e:r[_]);if(Oe(E-C)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(g=>{(dd(o)||o(b,g))&&v(g)}),n.requestAnimationFrame(()=>{a.forEach(g=>l.observe(g))})}function y(){f=!0,l&&l.disconnect()}return{init:m,destroy:y}}function rI(e,t,n,r,s,o){let i=0,a=0,l=s,u=o,d=e.get(),f=0;function h(){const C=r.get()-e.get(),E=!l;let j=0;return E?(i=0,n.set(r),e.set(r),j=C):(n.set(e),i+=C/l,i*=u,d+=i,e.add(i),j=d-f),a=Gg(j),f=d,_}function m(){const C=r.get()-t.get();return Oe(C)<.001}function y(){return l}function p(){return a}function b(){return i}function v(){return w(s)}function g(){return S(o)}function w(C){return l=C,_}function S(C){return u=C,_}const _={direction:p,duration:y,velocity:b,seek:h,settled:m,useBaseFriction:g,useBaseDuration:v,useFriction:S,useDuration:w};return _}function sI(e,t,n,r,s){const o=s.measure(10),i=s.measure(50),a=zs(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(m){if(!u())return;const y=e.reachedMin(t.get())?"min":"max",p=Oe(e[y]-t.get()),b=n.get()-t.get(),v=a.constrain(p/i);n.subtract(b*v),!m&&Oe(b)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(m){l=!m}return{shouldConstrain:u,constrain:d,toggleActive:f}}function oI(e,t,n,r,s){const o=zs(-t+e,0),i=f(),a=d(),l=h();function u(y,p){return ha(y,p)<=1}function d(){const y=i[0],p=_n(i),b=i.lastIndexOf(y),v=i.indexOf(p)+1;return zs(b,v)}function f(){return n.map((y,p)=>{const{min:b,max:v}=o,g=o.constrain(y),w=!p,S=Yg(n,p);return w?v:S||u(b,g)?b:u(v,g)?v:g}).map(y=>parseFloat(y.toFixed(3)))}function h(){if(t<=e+s)return[o.max];if(r==="keepSnaps")return i;const{min:y,max:p}=a;return i.slice(y,p)}return{snapsContained:l,scrollContainLimit:a}}function iI(e,t,n){const r=t[0],s=n?r-e:_n(t);return{limit:zs(s,r)}}function aI(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:l}=zs(o,i);function u(h){return h===1?l(n.get()):h===-1?a(n.get()):!1}function d(h){if(!u(h))return;const m=e*(h*-1);r.forEach(y=>y.add(m))}return{loop:d}}function lI(e){const{max:t,length:n}=e;function r(o){const i=o-t;return n?i/-n:0}return{get:r}}function cI(e,t,n,r,s){const{startEdge:o,endEdge:i}=e,{groupSlides:a}=s,l=f().map(t.measure),u=h(),d=m();function f(){return a(r).map(p=>_n(p)[i]-p[0][o]).map(Oe)}function h(){return r.map(p=>n[o]-p[o]).map(p=>-Oe(p))}function m(){return a(u).map(p=>p[0]).map((p,b)=>p+l[b])}return{snaps:u,snapsAligned:d}}function uI(e,t,n,r,s,o){const{groupSlides:i}=s,{min:a,max:l}=r,u=d();function d(){const h=i(o),m=!e||t==="keepSnaps";return n.length===1?[o]:m?h:h.slice(a,l).map((y,p,b)=>{const v=!p,g=Yg(b,p);if(v){const w=_n(b[0])+1;return Ax(w)}if(g){const w=gl(o)-_n(b)[0]+1;return Ax(w,_n(b)[0])}return y})}return{slideRegistry:u}}function dI(e,t,n,r,s){const{reachedAny:o,removeOffset:i,constrain:a}=r;function l(y){return y.concat().sort((p,b)=>Oe(p)-Oe(b))[0]}function u(y){const p=e?i(y):a(y),b=t.map((g,w)=>({diff:d(g-p,0),index:w})).sort((g,w)=>Oe(g.diff)-Oe(w.diff)),{index:v}=b[0];return{index:v,distance:p}}function d(y,p){const b=[y,y+n,y-n];if(!e)return y;if(!p)return l(b);const v=b.filter(g=>Gg(g)===p);return v.length?l(v):_n(b)-n}function f(y,p){const b=t[y]-s.get(),v=d(b,p);return{index:y,distance:v}}function h(y,p){const b=s.get()+y,{index:v,distance:g}=u(b),w=!e&&o(b);if(!p||w)return{index:v,distance:y};const S=t[v]-g,_=y+d(S,0);return{index:v,distance:_}}return{byDistance:h,byIndex:f,shortcut:d}}function fI(e,t,n,r,s,o,i){function a(f){const h=f.distance,m=f.index!==t.get();o.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(f.index),i.emit("select"))}function l(f,h){const m=s.byDistance(f,h);a(m)}function u(f,h){const m=t.clone().set(f),y=s.byIndex(m.get(),h);a(y)}return{distance:l,index:u}}function hI(e,t,n,r,s,o,i,a){const l={passive:!0,capture:!0};let u=0;function d(m){if(!a)return;function y(p){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const g=n.findIndex(w=>w.includes(p));Kg(g)&&(s.useDuration(0),r.index(g,0),i.emit("slideFocus"))}o.add(document,"keydown",f,!1),t.forEach((p,b)=>{o.add(p,"focus",v=>{(dd(a)||a(m,v))&&y(b)},l)})}function f(m){m.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function Qi(e){let t=e;function n(){return t}function r(l){t=i(l)}function s(l){t+=i(l)}function o(l){t-=i(l)}function i(l){return Kg(l)?l:l.get()}return{get:n,set:r,add:s,subtract:o}}function U4(e,t){const n=e.scroll==="x"?i:a,r=t.style;let s=null,o=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function l(h){if(o)return;const m=GO(e.direction(h));m!==s&&(r.transform=n(m),s=m)}function u(h){o=!h}function d(){o||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:u}}function mI(e,t,n,r,s,o,i,a,l){const d=za(s),f=za(s).reverse(),h=v().concat(g());function m(E,j){return E.reduce((k,N)=>k-s[N],j)}function y(E,j){return E.reduce((k,N)=>m(k,j)>0?k.concat([N]):k,[])}function p(E){return o.map((j,k)=>({start:j-r[k]+.5+E,end:j+t-.5+E}))}function b(E,j,k){const N=p(j);return E.map(I=>{const O=k?0:-n,U=k?n:0,A=k?"end":"start",z=N[I][A];return{index:I,loopPoint:z,slideLocation:Qi(-1),translate:U4(e,l[I]),target:()=>a.get()>z?O:U}})}function v(){const E=i[0],j=y(f,E);return b(j,n,!1)}function g(){const E=t-i[0]-1,j=y(d,E);return b(j,-n,!0)}function w(){return h.every(({index:E})=>{const j=d.filter(k=>k!==E);return m(j,t)<=.1})}function S(){h.forEach(E=>{const{target:j,translate:k,slideLocation:N}=E,I=j();I!==N.get()&&(k.to(I),N.set(I))})}function _(){h.forEach(E=>E.translate.clear())}return{canLoop:w,clear:_,loop:S,loopPoints:h}}function pI(e,t,n){let r,s=!1;function o(l){if(!n)return;function u(d){for(const f of d)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{s||(dd(n)||n(l,d))&&u(d)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),s=!0}return{init:o,destroy:i}}function gI(e,t,n,r){const s={};let o=null,i=null,a,l=!1;function u(){a=new IntersectionObserver(y=>{l||(y.forEach(p=>{const b=t.indexOf(p.target);s[b]=p}),o=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(y=>a.observe(y))}function d(){a&&a.disconnect(),l=!0}function f(y){return Ha(s).reduce((p,b)=>{const v=parseInt(b),{isIntersecting:g}=s[v];return(y&&g||!y&&!g)&&p.push(v),p},[])}function h(y=!0){if(y&&o)return o;if(!y&&i)return i;const p=f(y);return y&&(o=p),y||(i=p),p}return{init:u,destroy:d,get:h}}function vI(e,t,n,r,s,o){const{measureSize:i,startEdge:a,endEdge:l}=e,u=n[0]&&s,d=y(),f=p(),h=n.map(i),m=b();function y(){if(!u)return 0;const g=n[0];return Oe(t[a]-g[a])}function p(){if(!u)return 0;const g=o.getComputedStyle(_n(r));return parseFloat(g.getPropertyValue(`margin-${l}`))}function b(){return n.map((g,w,S)=>{const _=!w,C=Yg(S,w);return _?h[w]+d:C?h[w]+f:S[w+1][a]-g[a]}).map(Oe)}return{slideSizes:h,slideSizesWithGaps:m,startGap:d,endGap:f}}function yI(e,t,n,r,s,o,i,a,l){const{startEdge:u,endEdge:d,direction:f}=e,h=Kg(n);function m(v,g){return za(v).filter(w=>w%g===0).map(w=>v.slice(w,w+g))}function y(v){return v.length?za(v).reduce((g,w,S)=>{const _=_n(g)||0,C=_===0,E=w===gl(v),j=s[u]-o[_][u],k=s[u]-o[w][d],N=!r&&C?f(i):0,I=!r&&E?f(a):0,O=Oe(k-I-(j+N));return S&&O>t+l&&g.push(w),E&&g.push(v.length),g},[]).map((g,w,S)=>{const _=Math.max(S[w-1]||0);return v.slice(_,g)}):[]}function p(v){return h?m(v,n):y(v)}return{groupSlides:p}}function xI(e,t,n,r,s,o,i){const{align:a,axis:l,direction:u,startIndex:d,loop:f,duration:h,dragFree:m,dragThreshold:y,inViewThreshold:p,slidesToScroll:b,skipSnaps:v,containScroll:g,watchResize:w,watchSlides:S,watchDrag:_,watchFocus:C}=o,E=2,j=eI(),k=j.measure(t),N=n.map(j.measure),I=ZO(l,u),O=I.measureSize(k),U=tI(O),A=YO(a,O),z=!f&&!!g,B=f||!!g,{slideSizes:F,slideSizesWithGaps:T,startGap:P,endGap:M}=vI(I,k,N,n,B,s),K=yI(I,O,b,f,k,N,P,M,E),{snaps:H,snapsAligned:J}=cI(I,A,k,N,K),Z=-_n(H)+_n(T),{snapsContained:pe,scrollContainLimit:ye}=oI(O,Z,J,g,E),V=z?pe:J,{limit:ne}=iI(Z,V,f),he=B4(gl(V),d,f),re=he.clone(),Q=za(n),D=({dragHandler:tn,scrollBody:Pi,scrollBounds:eo,options:{loop:fr}})=>{fr||eo.constrain(tn.pointerDown()),Pi.seek()},se=({scrollBody:tn,translate:Pi,location:eo,offsetLocation:fr,previousLocation:hr,scrollLooper:wl,slideLooper:mr,dragHandler:_d,animation:Cd,eventHandler:Ai,scrollBounds:bl,options:{loop:Sl}},to)=>{const nn=tn.settled(),Ed=!bl.shouldConstrain(),te=Sl?nn:nn&&Ed,ge=te&&!_d.pointerDown();ge&&Cd.stop();const we=eo.get()*to+hr.get()*(1-to);fr.set(we),Sl&&(wl.loop(tn.direction()),mr.loop()),Pi.to(fr.get()),ge&&Ai.emit("settle"),te||Ai.emit("scroll")},de=QO(r,s,()=>D(Ni),tn=>se(Ni,tn)),Ne=.68,He=V[he.get()],Je=Qi(He),Rt=Qi(He),ht=Qi(He),Nn=Qi(He),Xt=rI(Je,ht,Rt,Nn,h,Ne),Xs=dI(f,V,Z,ne,Nn),en=fI(de,he,re,Xt,Xs,Nn,i),yl=lI(ne),xl=Wa(),Ct=gI(t,n,i,p),{slideRegistry:qn}=uI(z,g,V,ye,K,Q),Sd=hI(e,n,qn,en,Xt,xl,i,C),Ni={ownerDocument:r,ownerWindow:s,eventHandler:i,containerRect:k,slideRects:N,animation:de,axis:I,dragHandler:JO(I,e,r,s,Nn,XO(I,s),Je,de,en,Xt,Xs,he,i,U,m,y,v,Ne,_),eventStore:xl,percentOfView:U,index:he,indexPrevious:re,limit:ne,location:Je,offsetLocation:ht,previousLocation:Rt,options:o,resizeHandler:nI(t,i,s,n,I,w,j),scrollBody:Xt,scrollBounds:sI(ne,ht,Nn,Xt,U),scrollLooper:aI(Z,ne,ht,[Je,ht,Rt,Nn]),scrollProgress:yl,scrollSnapList:V.map(yl.get),scrollSnaps:V,scrollTarget:Xs,scrollTo:en,slideLooper:mI(I,O,Z,F,T,H,V,ht,n),slideFocus:Sd,slidesHandler:pI(t,i,S),slidesInView:Ct,slideIndexes:Q,slideRegistry:qn,slidesToScroll:K,target:Nn,translate:U4(I,t)};return Ni}function wI(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function s(u){return r(u).forEach(d=>d(t,u)),l}function o(u,d){return e[u]=r(u).concat([d]),l}function i(u,d){return e[u]=r(u).filter(f=>f!==d),l}function a(){e={}}const l={init:n,emit:s,off:i,on:o,clear:a};return l}const bI={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function SI(e){function t(o,i){return F4(o,i||{})}function n(o){const i=o.breakpoints||{},a=Ha(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,u)=>t(l,u),{});return t(o,a)}function r(o){return o.map(i=>Ha(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function _I(e){let t=[];function n(o,i){return t=i.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),i.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function xu(e,t,n){const r=e.ownerDocument,s=r.defaultView,o=SI(s),i=_I(o),a=Wa(),l=wI(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=o,{on:h,off:m,emit:y}=l,p=I;let b=!1,v,g=u(bI,xu.globalOptions),w=u(g),S=[],_,C,E;function j(){const{container:Q,slides:D}=w;C=(km(Q)?e.querySelector(Q):Q)||e.children[0];const de=km(D)?C.querySelectorAll(D):D;E=[].slice.call(de||C.children)}function k(Q){const D=xI(e,C,E,r,s,Q,l);if(Q.loop&&!D.slideLooper.canLoop()){const se=Object.assign({},Q,{loop:!1});return k(se)}return D}function N(Q,D){b||(g=u(g,Q),w=d(g),S=D||S,j(),v=k(w),f([g,...S.map(({options:se})=>se)]).forEach(se=>a.add(se,"change",I)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(re),v.eventHandler.init(re),v.resizeHandler.init(re),v.slidesHandler.init(re),v.options.loop&&v.slideLooper.loop(),C.offsetParent&&E.length&&v.dragHandler.init(re),_=i.init(re,S)))}function I(Q,D){const se=K();O(),N(u({startIndex:se},Q),D),l.emit("reInit")}function O(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),a.clear()}function U(){b||(b=!0,a.clear(),O(),l.emit("destroy"),l.clear())}function A(Q,D,se){!w.active||b||(v.scrollBody.useBaseFriction().useDuration(D===!0?0:w.duration),v.scrollTo.index(Q,se||0))}function z(Q){const D=v.index.add(1).get();A(D,Q,-1)}function B(Q){const D=v.index.add(-1).get();A(D,Q,1)}function F(){return v.index.add(1).get()!==K()}function T(){return v.index.add(-1).get()!==K()}function P(){return v.scrollSnapList}function M(){return v.scrollProgress.get(v.offsetLocation.get())}function K(){return v.index.get()}function H(){return v.indexPrevious.get()}function J(){return v.slidesInView.get()}function Z(){return v.slidesInView.get(!1)}function pe(){return _}function ye(){return v}function V(){return e}function ne(){return C}function he(){return E}const re={canScrollNext:F,canScrollPrev:T,containerNode:ne,internalEngine:ye,destroy:U,off:m,on:h,emit:y,plugins:pe,previousScrollSnap:H,reInit:p,rootNode:V,scrollNext:z,scrollPrev:B,scrollProgress:M,scrollSnapList:P,scrollTo:A,selectedScrollSnap:K,slideNo
280des:he,slidesInView:J,slidesNotInView:Z};return N(t,n),setTimeout(()=>l.emit("init"),0),re}xu.globalOptions=void 0;function Qg(e={},t=[]){const n=x.useRef(e),r=x.useRef(t),[s,o]=x.useState(),[i,a]=x.useState(),l=x.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return x.useEffect(()=>{qg(n.current,e)||(n.current=e,l())},[e,l]),x.useEffect(()=>{qO(r.current,t)||(r.current=t,l())},[t,l]),x.useEffect(()=>{if(WO()&&i){xu.globalOptions=Qg.globalOptions;const u=xu(i,n.current,r.current);return o(u),()=>u.destroy()}else o(void 0)},[i,o]),[a,s]}Qg.globalOptions=void 0;const z4=x.createContext(null);function fd(){const e=x.useContext(z4);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const hd=x.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:o,...i},a)=>{const[l,u]=Qg({...t,axis:e==="horizontal"?"x":"y"},r),[d,f]=x.useState(!1),[h,m]=x.useState(!1),y=x.useCallback(g=>{g&&(f(g.canScrollPrev()),m(g.canScrollNext()))},[]),p=x.useCallback(()=>{u==null||u.scrollPrev()},[u]),b=x.useCallback(()=>{u==null||u.scrollNext()},[u]),v=x.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),p()):g.key==="ArrowRight"&&(g.preventDefault(),b())},[p,b]);return x.useEffect(()=>{!u||!n||n(u)},[u,n]),x.useEffect(()=>{if(u)return y(u),u.on("reInit",y),u.on("select",y),()=>{u==null||u.off("select",y)}},[u,y]),c.jsx(z4.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:b,canScrollPrev:d,canScrollNext:h},children:c.jsx("div",{ref:a,onKeyDownCapture:v,className:ue("relative",s),role:"region","aria-roledescription":"carousel",...i,children:o})})});hd.displayName="Carousel";const md=x.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=fd();return c.jsx("div",{ref:r,className:"overflow-hidden",children:c.jsx("div",{ref:n,className:ue("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});md.displayName="CarouselContent";const pd=x.forwardRef(({className:e,...t},n)=>{const{orientation:r}=fd();return c.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:ue("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});pd.displayName="CarouselItem";const Zg=x.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollPrev:i,canScrollPrev:a}=fd();return c.jsxs(bt,{ref:s,variant:t,size:n,className:ue("absolute h-8 w-8 rounded-full",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[c.jsx(Cj,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Zg.displayName="CarouselPrevious";const Jg=x.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollNext:i,canScrollNext:a}=fd();return c.jsxs(bt,{ref:s,variant:t,size:n,className:ue("absolute h-8 w-8 rounded-full",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[c.jsx(di,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Next slide"})]})});Jg.displayName="CarouselNext";const CI={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function EI(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function jI(e,t){const n=e.rootNode();return t&&t(n)||n}function Xg(e={}){let t,n,r,s,o=null,i=0,a=!1,l=!1,u=!1,d=!1;function f(A,z){n=A;const{mergeOptions:B,optionsAtMedia:F}=z,T=B(CI,Xg.globalOptions),P=B(T,e);if(t=F(P),n.scrollSnapList().length<=1)return;d=t.jump,r=!1,s=EI(n,t.delay);const{eventStore:M,ownerDocument:K}=n.internalEngine(),H=!!n.internalEngine().options.watchDrag,J=jI(n,t.rootNode);M.add(K,"visibilitychange",v),H&&n.on("pointerDown",w),H&&!t.stopOnInteraction&&n.on("pointerUp",S),t.stopOnMouseEnter&&M.add(J,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&M.add(J,"mouseleave",C),t.stopOnFocusIn&&n.on("slideFocusStart",b),t.stopOnFocusIn&&!t.stopOn
280Interaction&&M.add(n.containerNode(),"focusout",p),t.playOnInit&&p()}function h(){n.off("pointerDown",w).off("pointerUp",S).off("slideFocusStart",b),b(),r=!0,a=!1}function m(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(i),i=A.setTimeout(I,s[n.selectedScrollSnap()]),o=new Date().getTime(),n.emit("autoplay:timerset")}function y(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(i),i=0,o=null,n.emit("autoplay:timerstopped")}function p(){if(!r){if(g()){u=!0;return}a||n.emit("autoplay:play"),m(),a=!0}}function b(){r||(a&&n.emit("autoplay:stop"),y(),a=!1)}function v(){if(g())return u=a,b();u&&p()}function g(){const{ownerDocument:A}=n.internalEngine();return A.visibilityState==="hidden"}function w(){l||b()}function S(){l||p()}function _(){l=!0,b()}function C(){l=!1,p()}function E(A){typeof A<"u"&&(d=A),p()}function j(){a&&b()}function k(){a&&p()}function N(){return a}function I(){const{index:A}=n.internalEngine(),z=A.clone().add(1).get(),B=n.scrollSnapList().length-1,F=t.stopOnLastSnap&&z===B;if(n.canScrollNext()?n.scrollNext(d):n.scrollTo(0,d),n.emit("autoplay:select"),F)return b();p()}function O(){if(!o)return null;const A=s[n.selectedScrollSnap()],z=new Date().getTime()-o;return A-z}return{name:"autoplay",options:e,init:f,destroy:h,play:E,stop:j,reset:k,isPlaying:N,timeUntilNext:O}}Xg.globalOptions=void 0;const kI="/assets/ana-santos-KbnnLVvo.jpeg",TI="/assets/miguel-ferreira-DuKJyTPF.jpeg",NI="/assets/samuel-cruz-C-qfxNNH.jpeg",tc=[{name:"Miguel Ferreira",role:"Product Owner",company:"msg insur:it",photo:TI,quote:"Os temas foram muito bem organizados, tornando esta uma das melhores formações que já fiz. Além disso, o espírito de entre ajuda do grupo foi excecional e o formador mostrou-se sempre disponível."},{name:"Ana Santos",role:"Finance Analyst",company:"Code for All_",photo:kI,quote:'Gostei muito do dinamismo do curso, especialmente por termos explorado várias plataformas com diferentes níveis de complexidade e objetivos distintos. Também valorizei bastante o facto de ter sido um curso muito prático, com uma abordagem "mãos na massa".'},{name:"Samuel Cruz",role:"Automation Project Manager",company:"Sodexo",photo:NI,quote:"Começar a criar agentes logo desde a primeira aula, e perceber que afinal montar workflows com IA não era algo do outro mundo."},{name:"Anónimo",anonymous:!0,quote:"De forma geral, gostei mesmo muito do curso e, para mim, é claramente uma recomendação 10/10. Sinto que foi uma experiência extremamente enriquecedora e que superou as expectativas tanto a nível de aprendizagem como de motivação. Também achei muito interessante a componente mais ligada ao mercado. Este ângulo acrescenta bastante valor porque ajuda a ligar a aprendizagem a oportunidades concretas."}],PI=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),[n,r]=x.useState(),[s,o]=x.useState(0),i=l=>{const u=Math.round(l.length/18*1e3)+2500;return Math.min(Math.max(u,5e3),16e3)},a=x.useRef(Xg({delay:i(tc[0].quote),stopOnInteraction:!1,stopOnMouseEnter:!0}));return x.useEffect(()=>{if(!n)return;o(n.selectedScrollSnap());const l=()=>{const u=n.selectedScrollSnap();o(u);const d=i(tc[u].quote);a.current.options.delay=d,a.current.reset()};return n.on("select",l),()=>{n.off("select",l)}},[n]),c.jsx("section",{ref:e,className:"section-padding bg-white overflow-hidden","aria-label":"Testemunhos de alunos",children:c.jsxs("div",{className:"container-main",children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-10 md:mb-14",children:[c.jsx("span",{className:"inline-block text-primary text-xs md:text-sm font-bold uppercase tracking-widest mb-3",children:"O que dizem os alunos"}),c.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 leading-tight text-black px-[8px]",children:["Perguntámos aos nossos alunos o que mais"," ",c.jsx("span",{className:"text-primary",children:"gostaram neste curso"})]}),c.jsx("p",{className:"text-base md:text-lg text-muted-foreground",children:"Espreita o que disse quem já passou pelo curso."})]}),c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.15},className:"relative max-w-2xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-center gap-4 mb-6 md:mb-8",children:[c.jsx("button",{onClick:()=>n==null?void 0:n.scrollPrev(),"aria-label":"Anterior",className:"w-10 h-10 rounded-full bg-white border border-border flex items-center justify-center text-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:c.jsx(m2,{className:"w-5 h-5"})}),c.jsx("div",{className:"flex items-center gap-2",children:tc.map((l,u)=>c.jsx("button",{onClick:()=>n==null?void 0:n.scrollTo(u),"aria-label":`Ir para testemunho ${u+1}`,className:`h-2 rounded-full transition-all ${s===u?"w-6 bg-primary":"w-2 bg-muted-foreground
280/30 hover:bg-muted-foreground/60"}`},u))}),c.jsx("button",{onClick:()=>n==null?void 0:n.scrollNext(),"aria-label":"Seguinte",className:"w-10 h-10 rounded-full bg-white border border-border flex items-center justify-center text-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:c.jsx(Hu,{className:"w-5 h-5"})})]}),c.jsx(hd,{setApi:r,opts:{loop:!0,align:"start"},plugins:[a.current],className:"w-full",children:c.jsx(md,{children:tc.map((l,u)=>c.jsx(pd,{children:c.jsxs("article",{className:"bg-[#f9f9f9] rounded-2xl border border-border shadow-sm p-6 sm:p-7 md:p-8 mx-1 flex flex-col",children:[c.jsx(Ij,{className:"w-5 h-5 md:w-6 md:h-6 text-primary/20 mb-3 flex-shrink-0","aria-hidden":"true"}),c.jsx("blockquote",{className:"text-base sm:text-[17px] leading-relaxed text-foreground mb-5",children:l.quote}),c.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[l.anonymous?c.jsx("div",{className:"w-11 h-11 md:w-12 md:h-12 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:c.jsx(Vj,{className:"w-5 h-5 md:w-6 md:h-6 text-muted-foreground","aria-hidden":"true"})}):c.jsx("img",{src:l.photo,alt:l.name,loading:"lazy",width:48,height:48,className:"w-11 h-11 md:w-12 md:h-12 rounded-full object-cover flex-shrink-0"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"font-bold text-foreground text-sm md:text-base",children:l.name}),!l.anonymous&&l.role&&c.jsxs("p",{className:"text-xs md:text-sm text-muted-foreground truncate",children:[l.role," @ ",l.company]})]})]})]})},u))})})]})]})})},AI=({open:e,onOpenChange:t})=>c.jsx(ji,{open:e,onOpenChange:t,children:c.jsxs(Zs,{className:"max-w-3xl p-0 overflow-hidden bg-background border-border max-h-[90vh]",children:[c.jsx(Js,{className:"sr-only",children:"Testemunhos de alunos"}),c.jsx(PI,{})]})}),RI=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),[n,r]=x.useState(!1),s=[{title:"+3.000 pessoas formadas em Inteligência Artificial",description:"De diversos setores como marketing, contabilidade, recursos humanos, vendas e muito mais."},{title:"+10 anos a descomplicar tecnologia em Portugal",description:"Desde 2015 que já requalificámos +2000 pessoas para programação e cibersegurança."},{title:"Entidade formativa certificada pela DGERT",description:"Um selo de qualidade na formação em Portugal que permite-te usar o Cheque-formação + Digital."},{title:"+30 empresas formadas em IA, em 2025",description:"De PMEs a grandes empresas em Portugal, como a MediaCapital, a Altice e a The Navigator Company."}];return c.jsx("section",{className:"section-padding bg-zinc-50",ref:e,children:c.jsxs("div",{className:"container-main",children:[c.jsx(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-10",children:c.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-6 text-black",children:["Porque é que devo",c.jsx("br",{className:"md:hidden"})," ",c.jsx("span",{className:"bg-primary text-white px-2 py-1",children:"aprender na Code for All_?"})]})}),c.jsx("div",{className:"grid md:grid-cols-4 gap-6 md:gap-8 max-w-6xl mx-auto mt-12",children:s.map((o,i)=>c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.2+i*.1,duration:.5},className:"text-center",children:[c.jsx("div",{className:"flex justify-center mb-4",children:c.jsx(Jr,{className:"w-10 h-10 text-primary stroke-[3]"})}),c.jsx("h3",{className:"text-lg font-bold text-foreground mb-3",children:o.title}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:o.description})]},i))}),c.jsx(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.6,duration:.5},className:"flex justify-center mt-12 md:mt-14",children:c.jsx(bt,{onClick:()=>r(!0),size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-5 md:px-8 py-4 md:py-6 text-sm md:text-lg shadow-md max-w-[280px] md:max-w-none whitespace-normal h-auto text-center leading-snug [&>svg]:hidden",children:c.jsxs("span",{children:[c.jsx(Aj,{className:"inline w-4 h-4 md:w-5 md:h-5 mr-1.5 -mt-0.5 align-middle"}),"Vê os testemunhos dos alunos",c.jsx("br",{className:"md:hidden"})," das últimas edições"]})})}),c.jsx(AI,{open:n,onOpenChange:r})]})})},Lf=[{name:"Altice",logo:"/images/partners/altice.png",height:"h-12"},{name:"Media Capital",logo:"/images/partners/media-capital.png",height:"h-8"},{name:"The Navigator Company",logo:"/images/partners/navigator.png",height:"h-8"},{name:"CTT",logo:"/images/partners/ctt.png",height:"h-8"},{name:"Marketeer",logo:"/images/partners/marketeer.png",height:"h-8"},{name:"Brisa",logo:"/images/partners/brisa.png",height:"h-12"},{name:"BNP Paribas",logo:"/images/partners/bnp-paribas.png",height:"h-12"},{name:"Deloitte",logo:"/images/partners/deloitte.png",height:"h-5"},{name:"Feedzai",logo:"/images/partners/feedzai.png",height:"h-8"},{name:"Capgemini",logo:"/images/partners/capgemini.png",height:"h-5"},{name:"Cognizant",logo:"/images/partners/cognizant.png",height:"h-5"},{name:"Critical Techworks",logo:"/images/partners/critical-techworks.png",height:"h-12"},{name:"ALL Comunicação",logo:"/images/partners/all-comunicacao.png",height:"h-12"},{name:"PLMJ",logo:"/images/partners/plmj.png",height:"h-8"}],OI=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),n=[...Lf,...Lf,...Lf];return c.jsxs("section",{className:"py-16 md:py-24 bg-white overflow-hidden",ref:e,children:[c.jsx("div",{className:"container-main mb-12",children:c.jsx(Y.h2,{className:"font-heading text-2xl md:text-4xl font-bold text-cfa-dark text-center mb-4",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.6},children:"Parceiros e Empresas que formámos"})}),c.jsxs(Y.div,{className:"relative w-full",initial:{opacity:0}
280,animate:t?{opacity:1}:{opacity:0},transition:{duration:.6,delay:.4},children:[c.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 md:w-32 bg-gradient-to-r from-white to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 md:w-32 bg-gradient-to-l from-white to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"flex animate-marquee",style:{width:"fit-content"},children:n.map((r,s)=>c.jsx("div",{className:"flex-shrink-0 mx-4 md:mx-6 flex items-center justify-center",children:c.jsx("img",{src:r.logo,alt:r.name,className:`${r.height} w-auto object-contain opacity-80 hover:opacity-100 transition-opacity duration-300`,loading:"lazy"})},`${r.name}-${s}`))})]})]})},II=()=>{const e=x.useRef(null);return ze(e,{once:!0,margin:"-100px"}),null},Mf=768;function LI(){const[e,t]=x.useState(void 0);return x.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Mf-1}px)`),r=()=>{t(window.innerWidth<Mf)};return n.addEventListener("change",r),t(window.innerWidth<Mf),()=>n.removeEventListener("change",r)},[]),!!e}const Rx=[{icon:v2,title:"45 horas, ao vivo, acompanhadas",description:"Serás 100% acompanhado, por um formador especialista em aplicar IA, workflows e agentes em empresas.",contrast:"Não é um curso assíncrono, sem apoio onde aprendes sozinho."},{icon:Ej,title:"Aprendes agentificação a 360º",description:"O curso ensina-te a criar agentes eficazes e fiáveis. Começas pelas bases: desenhar processos e construir automações funcionais.",contrast:"Não aprendes a automatizar sem perceberes as bases."},{icon:Mj,title:"Projeto real: Agente criado por ti, para ti",description:"Durante o curso vais trabalhar num problema real teu: profissional ou pessoal. Chegas ao fim com uma equipa de agentes que o resolve.",contrast:"Não trabalhas num caso genérico que não se aplica a ti."},{icon:ru,title:"100% online, em pós-laboral",description:"As aulas decorrem após o trabalho, 3x por semana, em sessões de 2h30. O essencial fazes em aula, com trabalho leve entre sessões.",contrast:"Não é um curso de um dia com aprendizagens limitadas."}],Ox=({card:e,index:t,isInView:n})=>{const r=e.icon;return c.jsxs(Y.div,{initial:{opacity:0,y:40},animate:n?{opacity:1,y:0}:{},transition:{duration:.5,delay:.2+t*.1},className:"bg-[#141414] border border-gray-800/50 p-4 md:p-6 rounded-lg flex flex-col h-full",children:[c.jsx("div",{className:"mb-3 md:mb-5",children:c.jsx(r,{className:"w-6 h-6 md:w-8 md:h-8 text-primary",strokeWidth:1.5})}),c.jsx("h3",{className:"text-lg md:text-xl lg:text-2xl font-bold text-white mb-2 md:mb-4 leading-tight",children:e.title}),c.jsx("p",{className:"text-sm md:text-base text-muted-foreground leading-snug md:leading-relaxed flex-grow",children:e.description}),c.jsxs("div",{className:"flex items-start gap-2 md:gap-3 pt-3 md:pt-4 mt-3 md:mt-6 border-t border-gray-800/50",children:[c.jsx(ll,{className:"w-4 h-4 md:w-5 md:h-5 text-primary flex-shrink-0 mt-0.5",strokeWidth:2}),c.jsx("p",{className:"text-muted-foreground/60 text-xs md:text-sm leading-snug md:leading-relaxed",children:e.contrast})]})]})},MI=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),n=LI();return c.jsx("section",{ref:e,className:"py-16 sm:py-20 md:py-28 bg-white",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-10 md:mb-16 max-w-3xl mx-auto",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold mb-4 md:mb-6 text-black px-[8px]",children:"Começa aqui a tua jornada em agentificação"}),c.jsx("p",{className:"leading-relaxed sm:text-lg text-muted-foreground text-base px-[8px]",children:"Desenhámos uma formação totalmente acompanhada que te ensina a pensar de A a Z e a ir muito além do simples uso de ferramentas de IA."})]}),n?c.jsx(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:.2},children:c.jsxs(hd,{opts:{align:"start",loop:!0},className:"w-full",children:[c.jsx(md,{className:"-ml-2",children:Rx.map((r,s)=>c.jsx(pd,{className:"pl-2 basis-[85%]",children:c.jsx(Ox,{card:r,index:s,isInView:t})},s))}),c.jsxs("div",{className:"flex justify-center gap-2 mt-4",children:[c.jsx(Zg,{className:"static translate-y-0 h-8 w-8"}),c.jsx(Jg,{className:"static translate-y-0 h-8 w-8"})]})]})}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-
2805 max-w-7xl mx-auto",children:Rx.map((r,s)=>c.jsx(Ox,{card:r,index:s,isInView:t},s))})]})})},DI=({embedded:e=!1}={})=>{const t=x.useRef(null),n=ze(t,{once:!0,margin:"-100px"}),r=a=>{const l=document.querySelector(a);l&&l.scrollIntoView({behavior:"smooth"})},s=[{label:"Parcela o pagamento até 12x",note:"desde 125€/mês, com entrada de 100€ (sem juros)"},{label:"Reduz 30% do valor no IRS"},{label:"Usufrui de 10% de desconto"},{label:"Receba 2 meses de Lovable PRO"}],o=[{icon:c.jsx(nf,{className:"w-5 h-5 text-primary"}),label:"10% de desconto no curso",value:"200€"},{icon:c.jsx("img",{src:Cm,alt:"",className:"w-5 h-5 object-contain"}),label:"Lovable Pro (2 meses)",value:"~50€"},{icon:c.jsx("div",{className:"w-5 h-5 rounded-full bg-cfa-green/15 flex items-center justify-center",children:c.jsx(nf,{className:"w-3 h-3 text-cfa-green"})}),label:"Dedução IRS estimada (30%)",value:"~470€"}],i=c.jsxs(Y.div,{ref:t,initial:{opacity:0,y:30},animate:n?{opacity:1,y:0}:{},transition:{duration:.6},className:"grid lg:grid-cols-2 gap-6 lg:gap-8",children:[c.jsxs("div",{className:"bg-card rounded-2xl p-8 md:p-10 lg:p-12 shadow-sm border border-border/50 flex flex-col",children:[c.jsxs("h3",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8 leading-tight font-heading",children:["Aproveita os benefícios",c.jsx("br",{}),"de financiamento"]}),c.jsx("ul",{className:"space-y-5 mb-8",children:s.map(a=>c.jsxs("li",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"flex-shrink-0 w-7 h-7 rounded-full bg-primary/10 flex items-center justify-center mt-0.5",children:c.jsx(Jr,{className:"w-4 h-4 text-primary",strokeWidth:3})}),c.jsxs("span",{className:"text-foreground text-base md:text-[15px] leading-relaxed",children:[a.label,a.note&&c.jsx("span",{className:"block italic text-muted-foreground text-sm mt-0.5",children:a.note})]})]},a.label))}),c.jsxs("div",{className:"mt-auto bg-primary/5 rounded-xl p-5 flex gap-4",children:[c.jsx(v2,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-primary font-bold text-sm mb-2",children:"FALA COM A TUA EMPRESA"}),c.jsxs("p",{className:"text-foreground/80 text-sm leading-relaxed",children:["Ajudamos-te a perceber se a tua empresa tem benefícios próprios para apoiar e financiar a tua formação e podemos falar com o departamento de Recursos Humanos para te apoiar neste financiamento."," ",c.jsx("button",{type:"button",onClick:()=>{const a=window.matchMedia("(min-width: 1024px)").matches;window.dispatchEvent(new CustomEvent("pricing:show-company")),a||setTimeout(()=>{var u;const l=document.getElementById("simulador-empresa");l?l.scrollIntoView({behavior:"smooth",block:"start"}):(u=document.getElementById("preco"))==null||u.scrollIntoView({behavior:"smooth"})},350)},className:"text-primary font-semibold underline underline-offset-2 hover:opacity-80 transition-opacity text-left",children:"Usa o nosso simulador e vê os benefícios da tua empresa."})]})]})]})]}),c.jsxs("div",{className:"bg-card rounded-2xl shadow-sm border border-border/50 overflow-hidden flex flex-col",children:[c.jsxs("div",{className:"bg-cfa-black text-white px-6 md:px-8 py-5 flex items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-cfa-green/15 flex items-center justify-center flex-shrink-0",children:c.jsx(Pj,{className:"w-5 h-5 text-cfa-green"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-cfa-green font-bold text-sm md:text-base leading-tight",children:"+700€ EM BENEFÍCIOS"}),c.jsx("p",{className:"text-white/80 text-xs md:text-sm",children:"Incluídos em inscrições até 28 de agosto"})]})]}),c.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[c.jsx("img",{src:Cm,alt:"",className:"w-7 h-7 object-contain"}),c.jsx("div",{className:"w-7 h-7 rounded-full border-2 border-cfa-green flex items-center justify-center",children:c.jsx(nf,{className:"w-3.5 h-3.5 text-cfa-green",strokeWidth:3})})]})]}),c.jsxs("div",{className:"p-6 md:p-8 flex flex-col flex-1",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsxs("span",{className:"relative text-lg text-muted-foreground
280/60 font-medium",children:["1.790€",c.jsx("span",{className:"absolute inset-0 flex items-center pointer-events-none","aria-hidden":"true",children:c.jsx("span",{className:"block w-full h-[2px] bg-muted-foreground/60"})})]}),c.jsx("span",{className:"bg-primary/10 text-primary text-xs font-bold px-3 py-1 rounded-full uppercase tracking-wide",children:"10% Desconto"})]}),c.jsxs("p",{className:"mb-2 font-heading leading-none",children:[c.jsx("span",{className:"text-sm md:text-base text-foreground/70 font-medium mr-2",children:"Desde"}),c.jsx("span",{className:"text-6xl md:text-7xl font-bold text-foreground",children:"125€"}),c.jsx("span",{className:"text-2xl md:text-3xl font-bold text-foreground/80",children:"/mês"})]}),c.jsx("p",{className:"text-foreground text-sm md:text-base font-bold mb-6",children:"com entrada de 100€, ou 1.590€ a pronto pagamento"}),c.jsxs("div",{className:"border-t border-border/60 pt-5 mb-5",children:[c.jsx("p",{className:"text-foreground font-semibold text-sm mb-4",children:"O valor dos teus benefícios:"}),c.jsx("ul",{className:"space-y-3",children:o.map(a=>c.jsxs("li",{className:"flex items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"flex-shrink-0",children:a.icon}),c.jsx("span",{className:"text-foreground text-sm",children:a.label})]}),c.jsx("span",{className:"text-cfa-green font-semibold text-sm",children:a.value})]},a.label))})]}),c.jsxs("div",{className:"bg-cfa-green/10 rounded-lg px-4 py-3 flex items-center justify-between mb-5",children:[c.jsx("span",{className:"text-cfa-green font-bold text-sm uppercase tracking-wide",children:"Total de benefícios"}),c.jsx("span",{className:"text-cfa-green font-bold text-base",children:"+700€"})]}),c.jsxs(bt,{onClick:()=>r("#datas"),className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-bold py-6 text-base uppercase tracking-wider rounded-lg group",children:["Garantir a minha vaga",c.jsx(di,{className:"w-5 h-5 ml-2 group-hover:translate-x-1 transition-transform"})]}),c.jsxs("p",{className:"text-muted-foreground text-xs text-center mt-3 flex items-center justify-center gap-1.5",children:[c.jsx(g2,{className:"w-3 h-3"}),"Vaga limitada. Garante a tua inscrição hoje."]})]})]})]});return e?i:c.jsx("section",{id:"preco",className:"section-padding bg-muted py-[64px]",children:c.jsx("div",{className:"container-main",children:i})})},Io=x.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ue("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Io.displayName="Input";var VI="Label",H4=x.forwardRef((e,t)=>c.jsx(ce.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));H4.displayName=VI;var W4=H4;const $I=zu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vs=x.forwardRef(({className:e,...t},n)=>c.jsx(W4,{ref:n,className:ue($I(),e),...t}));vs.displayName=W4.displayName;const FI=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class e0 extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class BI extends e0{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Ix extends e0{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Lx extends e0{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Nm;(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"})(Nm||(Nm={}));class UI{constructor(t,{headers:n={},customFetch:r,region:s=Nm.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=FI(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return o7(this,arguments,void 0,function*(n,r={}){var s;let o,i;try{const{headers:a,method:l,body:u,signal:d,timeout:f}=r;let h={},{region:m}=r;m||(m=this.region);const y=new URL(`${this.url}/${n}`);m&&m!=="any"&&(h["x-region"]=m,y.searchParams.set("forceFunctionRegion",m));let p;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(h["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(h["Content-Type"]="application/json",p=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?p=JSON.stringify(u):p=u;let b=d;f&&(i=new AbortController,o=setTimeout(()=>i.abort(),f),d?(b=i.signal,d.addEventListener("abort",()=>i.abort())):b=i.signal);const v=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:p,signal:b}).catch(_=>{throw new BI(_)}),g=v.headers.get("x-relay-error");
280if(g&&g==="true")throw new Ix(v);if(!v.ok)throw new Lx(v);let w=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return w==="application/json"?S=yield v.json():w==="application/octet-stream"||w==="application/pdf"?S=yield v.blob():w==="text/event-stream"?S=v:w==="multipart/form-data"?S=yield v.formData():S=yield v.text(),{data:S,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof Lx||a instanceof Ix?a.context:void 0}}finally{o&&clearTimeout(o)}})}}var zI=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},HI=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let i=null,a=null,l=null,u=o.status,d=o.statusText;if(o.ok){var f,h;if(n.method!=="HEAD"){var m;const v=await o.text();v===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((m=n.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?a=v:a=JSON.parse(v))}const p=(f=n.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),b=(h=o.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");p&&b&&b.length>1&&(l=parseInt(b[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var y;const p=await o.text();try{i=JSON.parse(p),Array.isArray(i)&&o.status===404&&(a=[],i=null,u=200,d="OK")}catch{o.status===404&&p===""?(u=204,d="No Content"):i={message:p}}if(i&&n.isMaybeSingle&&(!(i==null||(y=i.details)===null||y===void 0)&&y.includes("0 rows"))&&(i=null,u=200,d="OK"),i&&n.shouldThrowOnError)throw new zI(i)}return{error:i,data:a,count:l,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(o=>{var i;let a="",l="",u="";const d=o==null?void 0:o.cause;if(d){var f,h,m,y;const v=(f=d==null?void 0:d.message)!==null&&f!==void 0?f:"",g=(h=d==null?void 0:d.code)!==null&&h!==void 0?h:"";a=`${(m=o==null?void 0:o.name)!==null&&m!==void 0?m:"FetchError"}: ${o==null?void 0:o.message}`,a+=`
281
282Caused by: ${(y=d==null?void 0:d.name)!==null&&y!==void 0?y:"Error"}: ${v}`,g&&(a+=` (${g})`),d!=null&&d.stack&&(a+=`
283${d.stack}`)}else{var p;a=(p=o==null?void 0:o.stack)!==null&&p!==void 0?p:""}const b=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",l="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${b} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",l="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(l+=`. Your request URL is ${b} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:a,hint:l,code:u},data:null,count:null,status:0,statusText:""}}
283)),s.then(e,t)}returns(){return this}overrideTypes(){return this}},WI=class extends HI{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const o=s?`${s}.order`:"order",i=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:o="text"}={}){var i;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Mx=new RegExp("[,()]");var mo=class extends WI{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Mx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Mx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},qI=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s}
283cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let o=!1;const i=(e??"*").split("").map(u=>/\s/.test(u)&&!o?"":(u==='"'&&(o=!o),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",i),r&&l.append("Prefer",`count=${r}`),new mo({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:o,headers:i}=this.cloneRequestState();if(t&&i.append("Prefer",`count=${t}`),n||i.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>0){const l=[...new Set(a)].map(u=>`"${u}"`);o.searchParams.set("columns",l.join(","))}}return new mo({method:s,url:o,headers:i,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var o;const i="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,f)=>d.concat(Object.keys(f)),[]);if(u.length>0){const d=[...new Set(u)].map(f=>`"${f}"`);a.searchParams.set("columns",d.join(","))}}return new mo({method:i,url:a,headers:l,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new mo({method:r,url:s,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new mo({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function qa(e){"@babel/helpers - typeof";return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(e)}function KI(e,t){if(qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GI(e){var t=KI(e,"string");return qa(t)=="symbol"?t:t+""}function YI(e,t,n){return(t=GI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dx(Object(n),!0).forEach(function(r){YI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D
283x(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var QI=class q4{constructor(t,{headers:n={},schema:r,fetch:s,timeout:o,urlLengthLimit:i=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=i;const a=s??globalThis.fetch;o!==void 0&&o>0?this.fetch=(l,u)=>{const d=new AbortController,f=setTimeout(()=>d.abort(),o),h=u==null?void 0:u.signal;if(h){if(h.aborted)return clearTimeout(f),a(l,u);const m=()=>{clearTimeout(f),d.abort()};return h.addEventListener("abort",m,{once:!0}),a(l,nc(nc({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(f),h.removeEventListener("abort",m)})}return a(l,nc(nc({},u),{},{signal:d.signal})).finally(()=>clearTimeout(f))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new qI(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new q4(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const d=m=>m!==null&&typeof m=="object"&&(!Array.isArray(m)||m.some(d)),f=r&&Object.values(n).some(d);f?(a="POST",u=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([m,y])=>y!==void 0).map(([m,y])=>[m,Array.isArray(y)?`{${y.join(",")}}`:`${y}`]).forEach(([m,y])=>{l.searchParams.append(m,y)})):(a="POST",u=n);const h=new Headers(this.headers);return f?h.set("Prefer",o?`count=${o},return=minimal`:"return=minimal"):o&&h.set("Prefer",`count=${o}`),new mo({method:a,url:l,headers:h,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}};class ZI{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,o=parseInt(s.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
284import ws from "ws"
285new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
286
287Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const JI="2.94.1",XI=`realtime-js/${JI}`,eL="1.0.0",K4="2.0.0",Vx=K4,Pm=1e4,tL=1e3,nL=100;var Tr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Tr||(Tr={}));var We;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(We||(We={}));var xn;(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"})(xn||(xn={}));var Am;(function(e){e.websocket="websocket"})(Am||(Am={}));var ys;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ys||(ys={}));class rL{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},i=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,n,r){var s,o;const i=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(o=t.join_ref)!==null&&o!==void 0?o:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+i.length+u.length+f.length,m=new ArrayBuffer(this.HEADER_LENGTH+h);let y=new DataView(m),p=0;y.setUint8(p++,this.KINDS.userBroadcastPush),y.setUint8(p++,l.length),y.setUint8(p++,a.length),y.setUint8(p++,i.length),y.setUint8(p++,u.length),y.setUint8(p++,f.length),y.setUint8(p++,n),Array.from(l,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(a,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(i,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(u,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(f,v=>y.setUint8(p++,v.charCodeAt(0)));var b=new Uint8Array(m.byteLength+r.byteLength);return b.set(new Uint8Array(m),0),b.set(new Uint8Array(r),m.byteLength),b.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,o,i,a,l]=r;
287return n({join_ref:s,ref:o,topic:i,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),o=n.getUint8(2),i=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+o));l=l+o;const f=r.decode(t.slice(l,l+i));l=l+i;const h=t.slice(l,t.byteLength),m=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,y={type:this.BROADCAST_EVENT,event:d,payload:m};return i>0&&(y.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class G4{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var be;(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"})(be||(be={}));const $x=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((o,i)=>(o[i]=sL(i,e,t,s),o),{}):{}},sL=(e,t,n,r)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=n[e];return o&&!r.includes(o)?Y4(o,i):Rm(i)},Y4=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return lL(t,n)}switch(e){case be.bool:return oL(t);case be.float4:case be.float8:case be.int2:case be.int4:case be.int8:case be.numeric:case be.oid:return iL(t);case be.json:case be.jsonb:return aL(t);case be.timestamp:return cL(t);case be.abstime:case be.date:case be.daterange:case be.int4range:case be.int8range:case be.money:case be.reltime:case be.text:case be.time:case be.timestamptz:case be.timetz:case be.tsrange:case be.tstzrange:return Rm(t);default:return Rm(t)}},Rm=e=>e,oL=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},iL=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},aL=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},lL=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const i=e.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>Y4(t,a))}return e},cL=e=>typeof e=="string"?e.replace(" ","T"):e,Q4=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Df{constructor(t,n,r={},s=Pm){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHo
vendor: 4,365 bytes, line 287
287oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Fx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Fx||(Fx={}));class ma{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ma.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=ma.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ma.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const o=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(o,(u,d)=>{i[u]||(l[u]=d)}),this.map(i,(u,d)=>{const f=o[u];if(f){const h=d.map(b=>b.presence_ref),m=f.map(b=>b.presence_ref),y=d.filter(b=>m.indexOf(b.presence_ref)<0),p=f.filter(b=>h.indexOf(b.presence_ref)<0);y.length>0&&(a[u]=y),p.length>0&&(l[u]=p)}else a[u]=d}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(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(m=>m.presence_ref),h=d.filter(m=>f.indexOf(m.presence_ref)<0);t[a].unshift(...h)}r(a,d,l)}),this.map(i,(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,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Bx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Bx||(Bx={}));var pa;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(pa||(pa={}));var Qn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Qn||(Qn={}));class Lo{constructor(t,n={config:{}},r){var s,o;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=We.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Df(this,xn.join,this.params,this.timeout),this.rejoinTimer=new G4(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=We.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
287i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=We.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this._on(xn.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new ma(this),this.broadcastEndpointURL=Q4(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==We.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[pa.PRESENCE]&&this.bindings[pa.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,f={},h={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(Qn.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(Qn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var y;if(this.socket._isManualToken()||this.socket.setAuth(),m===void 0){t==null||t(Qn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,b=(y=p==null?void 0:p.length)!==null&&y!==void 0?y:0,v=[];for(let g=0;g<b;g++){const w=p[g],{filter:{event:S,schema:_,table:C,filter:E}}=w,j=m&&m[g];if(j&&j.event===S&&Lo.isFilterValueEqual(j.schema,_)&&Lo.isFilterValueEqual(j.table,C)&&Lo.isFilterValueEqual(j.filter,E))v.push(Object.assign(Object.assign({},w),{id:j.id}));else{this.unsubscribe(),this.state=We.errored,t==null||t(Qn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Qn.SUBSCRIBED);return}}).receive("error",m=>{this.state=We.errored,t==null||t(Qn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Qn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===We.joined&&t===pa.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
287in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:i}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=We.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(xn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Df(this,xn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=We.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Df(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>nL){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:d}=xn;if(r&&[a,l,u,d].indexOf(i)>=0&&r!==this._joinRef())return;let h=this._onMessage(i,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var y,p,b;return((y=m.filter)===null||y===void 0?void 0:y.event)==="*"||((b=(p=m.filter)===null||p===void 0?void 0:p.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(m=>m.callback(h,r)):(o=this.bindings[i])===null||o===void 0||o.filter(m=>{var y,p,b,v,g,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in m){const S=m.id,_=(y=m.filter)===null||y===void 0?void 0:y.event;return S&&((p=n.ids)===null||p===void 0?void 0:p.includes(S))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const S=(g=(v=m==null?void 0:m.filter)===null||v===void 0?void 0:v.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return S==="*"||S===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===i}).map(m=>{if(typeof h=="object"&&"ids"in h){const y=h.data,{schema:p,table:b,commit_timestamp:v,type:g,errors:w}=y;h=Object.assign(Object.assign({},{schema:p,table:b,commit_timestamp:v,eventType:g,new:{},old:{},errors:w}),this._getPayloadRecords(y))}m.callback(h,r)})}_isClosed(){return this.state===We.closed}_isJoined(){return this.state===We.joined}_isJoining(){return this.state===We.joining}_isLeaving(){return this.state===We.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&Lo.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(xn.close,{},t)}_onError(t){this._on(xn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=We.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=$x(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=$x(t.columns,t.old_record)),n}}const Vf=()=>{},rc={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},uL=[1e3,2e3,5e3,1e4],dL=1e4,fL=`
288  addEventListener("message", (e) => {
289    if (e.data.event === "start") {
290      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
291    }
292  });`;class hL{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Pm,this.transport=null,this.heartbeatIntervalMs=rc.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Vf,this.ref=0,this.reconnectTimer=null,this.vsn=Vx,this.logger=Vf,this.conn=null,this.sendBuffer=[],this.serializer
292=new rL,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Am.websocket}`,this.httpEndpoint=Q4(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=ZI.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
293
294To use Realtime in Node.js, you need to provide a WebSocket implementation:
295
296Option 1: Use Node.js 22+ which has native WebSocket support
297Option 2: Install and provide the "ws" package:
298
299  npm install ws
300
301  import ws from "ws"
302  const client = new RealtimeClient(url, {
303    ...options,
304    transport: ws
305  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Tr.connecting:return ys.Connecting;case Tr.open:return ys.Open;case Tr.closing:return ys.Closing;default:return ys.Closed}}isConnected(){return this.connectionState()===ys.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new Lo(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(tL,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},rc.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
305{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:o,ref:i}=n,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),o),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,o,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Tr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Tr.open||this.conn.readyState===Tr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(xn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([fL],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
305h(s=>{const o={access_token:n,version:XI};n&&s.updateJoinPayload(o),s.joinedOnce&&s._isJoined()&&s._push(xn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new G4(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},rc.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,o,i,a,l,u,d,f,h,m;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Pm,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:rc.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Vf,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Vx,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=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:y=>uL[y-1]||dL,this.vsn){case eL:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(y,p)=>p(JSON.stringify(y)),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:(y,p)=>p(JSON.parse(y));break;case K4:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(m=t==null?void 0:t.decode)!==null&&m!==void 0?m:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Ka=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function mL(e,t,n){const r=new URL(t,e);if(n)for(const[s,o]of Object.entries(n))o!==void 0&&r.searchParams.set(s,o);return r.toString()}async function pL(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function gL(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:o,headers:i}){const a=mL(e.baseUrl,r,s),l=await pL(e.auth),u=await t(a,{method:n,headers:{...o?{"Content-Type":"application/json"}:{},...l,...i},body:o?JSON.stringify(o):void 0}),d=await u.text(),f=(u.headers.get("content-type")||"").includes("application/json"),h=f&&d?JSON.parse(d):d;if(!u.ok){const m=f?h:void 0,y=m==null?void 0:m.error;throw new Ka((y==null?void 0:y.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:m})}return{status:u.status,headers:u.headers,data:h}}}}function sc(e){return e.join("�")}var vL=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:sc(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${sc(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${sc(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${sc(e.namespace)}`}),!0}catch(t){if(t instanceof Ka&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ka&&n.status===409)return;throw n}}};function io(e){return e.join("�")}var yL=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${io(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${io(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${io(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${io(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${io(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${io(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ka&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ka&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},xL=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=gL({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new vL(this.client,t),this.tableOps=new yL(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
305async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},gd=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function vd(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var oc=class extends gd{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Z4=class extends gd{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const wL=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),bL=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Om=e=>{if(Array.isArray(e))return e.map(n=>Om(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=Om(r)}),t},SL=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Ga(e){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}function _L(e,t){if(Ga(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CL(e){var t=_L(e,"string");return Ga(t)=="symbol"?t:t+""}function EL(e,t,n){return(t=CL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(r){EL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const zx=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},jL=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const s=e,o=s.status||500;if(typeof s.json=="function")s.json().then(i=>{const a=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||o+"";t(new oc(zx(i),o,a,r))}).catch(()=>{if(r==="vectors"){const i=o+"";t(new oc(s.statusText||`HTTP ${o} error`,o,i,r))}else{const i=o+"";t(new oc(s.statusText||`HTTP ${o} error`,o,i,r))}});else{const i=o+"";t(new oc(s.statusText||`HTTP ${o} error`,o,i,r))}}else t(new Z4(zx(e),e,r))},kL=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?ee(ee({},s),n):(bL(r)?(s.headers=ee({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),ee(ee({},s),n))};async function Hi(e,t,n,r,s,o,i){return new Promise((a,l)=>{e(n,kL(t,r,s,o)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(i==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>jL(u,l,r,i))})}function J4(e="storage"){return{get:async(t,n,r,s)=>Hi(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,o)=>Hi(t,"POST",n,s,o,r,e),put:async(t,n,r,s,o)=>Hi(t,"PUT",n,s,o,r,e),head:async(t,n,r,s)=>Hi(t,"HEAD",n,ee(ee({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,o)=>Hi(t,"DELETE",n,s,o,r,e)}}const TL=J4("storage"),{get:Ya,post:pn,put:Im,head:NL,remove:t0}=TL,Mt=J4("vectors");var ki=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=wL(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vd(n))return{data:null,error:n};throw n}}},PL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(vd(t))return{data:null,error:t};throw t}}};let X4;X4=Symbol.toStringTag;var AL=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[X4]="BlobDownloadBuilder",this.promise=null}asStream(){return new PL(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(vd(t))return{data:null,error:t};throw t}}};const RL={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Hx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var OL=class extends ki{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let o;const i=ee(ee({},Hx),r);let a=ee(ee({},s.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&n instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",s.encodeMetadata(l)),o.append("",n)):typeof FormData<"u"&&n instanceof FormData?(o=n,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",s.encodeMetadata(l))):(o=n,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),r!=null&&r.headers&&(a=ee(ee({},a),r.headers));const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),f=await(e=="PUT"?Im:pn)(s.fetch,`${s.url}/object/${d}`,o,ee({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{path:u,id:f.Id,fullPath:f.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const o=s._removeEmptyFolders(e),i=s._getFinalPath(o),a=new URL(s.url+`/object/upload/sign/${i}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const u=ee({upsert:Hx.upsert},r),d=ee(ee({},s.headers),{"x-upsert":String(u.upsert)});return 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),{path:o,fullPath:(await Im(s.fetch,a.toString(),l,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=ee({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const o=await pn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(n.url+o.url),a=i.searchParams.get("token");if(!a)throw new gd("No token returned by API");return{signedUrl:i.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await pn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
305stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await pn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e),o=await pn(r.fetch,`${r.url}/object/sign/${s}`,ee({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${o.signedURL}${i}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await pn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s.map(i=>ee(ee({},i),{},{signedUrl:i.signedURL?encodeURI(`${r.url}${i.signedURL}${o}`):null}))})}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=r?`?${r}`:"",o=this._getFinalPath(e),i=()=>Ya(this.fetch,`${this.url}/${n}/${o}${s}`,{headers:this.headers,noResolveJson:!0});return new AL(i,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Om(await Ya(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await NL(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(vd(r)&&r instanceof Z4){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});i!==""&&r.push(i);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await t0(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=ee(ee(ee({},RL),t),{},{prefix:e||""});return await pn(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=ee({},e);return await pn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const IL="2.94.1",vl={"X-Client-Info":`storage-js/${IL}`};var LL=class extends ki{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const o=s.href.replace(/\/$/,""),i=ee(ee({},vl),t);super(o,i,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Ya(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ya(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await pn(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Im(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await pn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await t0(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},ML=class extends ki{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ee(ee({},vl),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await pn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Ya(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await t0(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!SL(e))throw new gd("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new xL({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
305),r=this.shouldThrowOnError;return new Proxy(n,{get(s,o){const i=s[o];return typeof i!="function"?i:async(...a)=>{try{return{data:await i.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},DL=class extends ki{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ee(ee({},vl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Mt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Mt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},VL=class extends ki{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ee(ee({},vl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},$L=class extends ki{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ee(ee({},vl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},FL=class extends $L{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new BL(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},BL=class extends DL{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new UL(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
305,UL=class extends VL{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,ee(ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},zL=class extends LL{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new OL(this.url,this.headers,e,this.fetch)}get vectors(){return new FL(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new ML(this.url+"/iceberg",this.headers,this.fetch)}};const eC="2.94.1",po=30*1e3,Lm=3,$f=Lm*po,HL="http://localhost:9999",WL="supabase.auth.token",qL={"X-Client-Info":`gotrue-js/${eC}`},Mm="X-Supabase-Api-Version",tC={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},KL=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,GL=10*60*1e3;class Qa extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function G(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class YL extends Qa{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function QL(e){return G(e)&&e.name==="AuthApiError"}class xs extends Qa{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class dr extends Qa{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Ot extends dr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ff(e){return G(e)&&e.name==="AuthSessionMissingError"}class ao extends dr{constructor(){super("Auth session or user missing","AuthInvalidToken
305ResponseError",500,void 0)}}class ic extends dr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ac extends dr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function ZL(e){return G(e)&&e.name==="AuthImplicitGrantRedirectError"}class Wx extends dr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class JL extends dr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Dm extends dr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Bf(e){return G(e)&&e.name==="AuthRetryableFetchError"}class qx extends dr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Vm extends dr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Kx=` 	
306\r=`.split(""),XL=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Kx.length;t+=1)e[Kx[t].charCodeAt(0)]=-2;for(let t=0;t<wu.length;t+=1)e[wu[t].charCodeAt(0)]=t;return e})();function Gx(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(wu[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(wu[r]),t.queuedBits-=6}}function nC(e,t,n){const r=XL[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Yx(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{nM(i,r,n)};for(let i=0;i<e.length;i+=1)nC(e.charCodeAt(i),s,o);return t.join("")}function eM(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 tM(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}eM(r,t)}}function nM(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ko(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)nC(e.charCodeAt(s),n,r);return new Uint8Array(t)}function rM(e){const t=[];return tM(e,n=>t.push(n)),new Uint8Array(t)}function Es(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Gx(s,n,r)),Gx(null,n,r),t.join("")}function sM(e){return Math.round(Date.now()/1e3)+e}function oM(){return Symbol("auth-callback")}const et=()=>typeof window<"u"&&typeof document<"u",ds={tested:!1,writable:!1},rC=()=>{if(!et())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ds.tested)return ds.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ds.tested=!0,ds.writable=!0}catch{ds.tested=!0,ds.writable=!1}return ds.writable};function iM(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
306h((s,o)=>{t[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const sC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),aM=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",go=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},fs=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Xe=async(e,t)=>{await e.removeItem(t)};class yd{constructor(){this.promise=new yd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}yd.promiseConstructor=Promise;function lc(e){const t=e.split(".");if(t.length!==3)throw new Vm("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!KL.test(t[r]))throw new Vm("JWT not in base64url format");return{header:JSON.parse(Yx(t[0])),payload:JSON.parse(Yx(t[1])),signature:Ko(t[2]),raw:{header:t[0],payload:t[1]}}}async function lM(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function cM(e,t){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){r(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function uM(e){return("0"+e.toString(16)).substr(-2)}function dM(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,uM).join("")}async function fM(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function hM(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await fM(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function lo(e,t,n=!1){const r=dM();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await go(e,`${t}-code-verifier`,s);const o=await hM(r);return[o,r===o?"plain":"s256"]}const mM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function pM(e){const t=e.headers.get(Mm);if(!t||!t.match(mM))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function gM(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 vM(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 yM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function co(e){if(!yM.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Uf(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function xM(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const o=r.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function Qx(e){return JSON.parse(JSON.stringify(e))}const gs=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),wM=[502,503,504];async function Zx(e){var t;if(!aM(e))throw new Dm(gs(e),0);if(wM.includes(e.status))throw new Dm(gs(e),e.status);let n;try{n=await e.json()}catch(o){throw new xs(gs(o),o)}let r;const s=pM(e);if(s&&s.getTime()>=tC["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new qx(gs(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Ot}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new qx(gs(n),e.status,n.weak_password.reasons);throw new YL(gs(n),e.status||500,r)}const bM=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function X(e,t,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[Mm]||(o[Mm]=tC["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await SM(e,t,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function SM(e,t,n,r,s,o){const i=bM(t,r,s,o);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new Dm(gs(l),0)}if(a.ok||await Zx(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Zx(l)}}function un(e){var t;let n=null;
306EM(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=sM(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Jx(e){const t=un(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Rr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function _M(e){return{data:e,error:null}}function CM(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=e,i=Ei(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function Xx(e){return e}function EM(e){return e.access_token&&e.refresh_token&&e.expires_in}const zf=["global","local","others"];class jM{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=sC(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=zf[0]){if(zf.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${zf.join(", ")}`);try{return await X(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(G(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await X(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Rr})}catch(r){if(G(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Ei(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await X(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:CM,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(G(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await X(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Rr})}catch(n){if(G(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await X(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:Xx});if(d.error)throw d.error;const f=await d.json(),h=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,m=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(y=>{const p=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);u[`${b}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(G(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){co(t);try{return await X(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Rr})}catch(n){if(G(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){co(t);try{return await X(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Rr})}catch(r){if(G(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){co(t);try{return await X(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Rr})}catch(r){if(G(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){co(t.userId);try{const{data:n,error:r}=await X(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(G(n))return{data:null,error:n};throw n}}
306async _deleteFactor(t){co(t.userId),co(t.id);try{return{data:await X(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(G(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await X(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:Xx});if(d.error)throw d.error;const f=await d.json(),h=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,m=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(y=>{const p=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);u[`${b}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(G(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await X(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(G(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await X(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(G(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await X(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(G(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await X(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(G(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await X(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(G(n))return{data:null,error:n};throw n}}}function e1(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const uo={debug:!!(globalThis&&rC()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
306class oC extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class kM extends oC{}async function TM(e,t,n){uo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),uo.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){uo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{uo.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw uo.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new kM(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(uo.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function NM(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function iC(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function PM(e){return parseInt(e,16)}function AM(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function RM(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:o=new Date,nonce:i,notBefore:a,requestId:l,resources:u,scheme:d,uri:f,version:h}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);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}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
307`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const m=iC(e.address),y=d?`${d}://${r}`:r,p=e.statement?`${e.statement}
308`:"",b=`${y}
308 wants you to sign in with your Ethereum account:
309${m}
310
311${p}`;let v=`URI: ${f}
312Version: ${h}
313Chain ID: ${n}${i?`
314Nonce: ${i}`:""}
315Issued At: ${o.toISOString()}`;if(s&&(v+=`
316Expiration Time: ${s.toISOString()}`),a&&(v+=`
317Not Before: ${a.toISOString()}`),l&&(v+=`
318Request ID: ${l}`),u){let g=`
319Resources:`;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}`);g+=`
320- ${w}`}v+=g}return`${b}
321${v}`}class Fe extends Error{constructor({message:t,code:n,cause:r,name:s}){var o;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(o=s??(r instanceof Error?r.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=n}}class bu extends Fe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function OM({error:e,options:t}){var n,r,s;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Fe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=o.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Fe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=o.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Fe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Fe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Fe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Fe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Fe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Fe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;if(aC(i)){if(o.rp.id!==i)return new Fe({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Fe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Fe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Fe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Fe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function IM({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Fe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Fe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(aC(r)){if(n.rpId!==r)return new Fe({message:`The RP ID "${n.rpId}
321" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Fe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Fe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Fe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class LM{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const MM=new LM;function DM(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Ei(e,["challenge","user","excludeCredentials"]),o=Ko(t).buffer,i=Object.assign(Object.assign({},n),{id:Ko(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:o,user:i});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Ko(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function VM(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Ei(e,["challenge","allowCredentials"]),s=Ko(t).buffer,o=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){o.allowCredentials=new Array(n.length);for(let i=0;i<n.length;i++){const a=n[i];o.allowCredentials[i]=Object.assign(Object.assign({},a),{id:Ko(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function $M(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Es(new Uint8Array(e.response.attestationObject)),clientDataJSON:Es(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function FM(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Es(new Uint8Array(s.authenticatorData)),clientDataJSON:Es(new Uint8Array(s.clientDataJSON)),signature:Es(new Uint8Array(s.signature)),userHandle:s.userHandle?Es(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function aC(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function t1(){var e,t;return!!(et()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function BM(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bu("Browser returned unexpected credential type",t)}:{data:null,error:new bu("Empty credential response",t)}}catch(t){return{data:null,error:OM({error:t,options:e})}}}async function UM(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bu("Browser returned unexpected credential type",t)}:{data:null,error:new bu("Empty credential response",t)}}
321catch(t){return{data:null,error:IM({error:t,options:e})}}}const zM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},HM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Su(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const o in s){const i=s[o];if(i!==void 0)if(Array.isArray(i))r[o]=i;else if(n(i))r[o]=i;else if(t(i)){const a=r[o];t(a)?r[o]=Su(a,i):r[o]=Su(i)}else r[o]=i}return r}function WM(e,t){return Su(zM,e,t||{})}function qM(e,t){return Su(HM,e,t||{})}class KM{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},o){var i;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=s??MM.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const f=r;if(f)d.name=`${d.id}:${f}`;else{const m=(await this.client.getUser()).data.user,y=((i=m==null?void 0:m.user_metadata)===null||i===void 0?void 0:i.name)||(m==null?void 0:m.email)||(m==null?void 0:m.id)||"User";d.name=`${d.id}:${y}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=WM(a.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:f,error:h}=await BM({publicKey:d,signal:u});return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:h}}case"request":{const d=qM(a.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:f,error:h}=await UM(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:u}));return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:h}}}}catch(a){return G(a)?{data:null,error:a}:{data:null,error:new xs("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!n)return{data:null,error:new Qa("rpId is required for WebAuthn authentication")};try{if(!t1())return{data:null,error:new xs("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:o});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(i){return G(i)?{data:null,error:i}:{data:null,error:new xs("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!n)return{data:null,error:new Qa("rpId is required for WebAuthn registration")};try{if(!t1())return{data:null,error:new xs("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(d=>{var f;return(f=d.data)===null||f===void 0?void 0:f.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(i){return G(i)?{data:null,error:i}:{data:null,error:new xs("Unexpected error in register",i)}}}}NM();const GM={url:HL,storageKey:WL,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:qL,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function n1(e,t,n){return await n()}const fo={};class Za{get jwks(){var t,n;return(n=(t=fo[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){fo[this.storageKey]=Object.assign(Object.assign({},fo[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=fo[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){fo[this.storageKey]=Object.assign(Object.assign({},fo[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},GM),t);
321if(this.storageKey=o.storageKey,this.instanceID=(n=Za.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Za.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&et()){const i=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new jM({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=sC(o.fetch),this.lock=o.lock||n1,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&et()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=TM:this.lock=n1,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new KM(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:rC()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=e1(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=e1(this.memoryStorage)),et()&&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)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i);try{await this._notifyAllSubscribers(i.data.event,i.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}this.initialize().catch(i=>{this._debug("#initialize()","error",i)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${eC}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(et()&&(n=iM(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),et()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),ZL(o)){const l=(t=o.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:o}}return{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return G(n)?this._returnResult({error:n}):this._returnResult({error:new xs("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const o=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:un}),{data:i,error:a}=o;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(G(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var n,r,s;try{let o;if("email"in t){const{email:d,password:f,options:h}=t;let m=null,y=null;this.flowType==="pkce"&&([m,y]=await lo(this.storage,this.storageKey)),o=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:m,code_challenge_method:y},xform:un})}else if("phone"in t){const{phone:d,password:f,options:h}=t;o=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},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:un})}else throw new ic("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return await Xe(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:i,options:a}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Jx})}else if("phone"in t){const{phone:o,password:i,options:a}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Jx})}else throw new ic("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const o=new ao;return this._returnResult({data:{user:null,session:null},error:o})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(G(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
321ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,o,i,a,l,u,d,f,h;let m,y;if("message"in t)m=t.message,y=t.signature;else{const{chain:p,wallet:b,statement:v,options:g}=t;let w;if(et())if(typeof b=="object")w=b;else{const k=window;if("ethereum"in k&&typeof k.ethereum=="object"&&"request"in k.ethereum&&typeof k.ethereum.request=="function")w=k.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"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=b}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),_=await w.request({method:"eth_requestAccounts"}).then(k=>k).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const C=iC(_[0]);let E=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const k=await w.request({method:"eth_chainId"});E=PM(k)}const j={domain:S.host,address:C,statement:v,uri:S.href,version:"1",chainId:E,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(o=g==null?void 0:g.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};m=RM(j),y=await w.request({method:"personal_sign",params:[AM(m),C]})}try{const{data:p,error:b}=await X(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:m,signature:y},!((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:un});if(b)throw b;if(!p||!p.session||!p.user){const v=new ao;return this._returnResult({data:{user:null,session:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:b})}catch(p){if(G(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var n,r,s,o,i,a,l,u,d,f,h,m;let y,p;if("message"in t)y=t.message,p=t.signature;else{const{chain:b,wallet:v,statement:g,options:w}=t;let S;if(et())if(typeof v=="object")S=v;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"))S=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 v!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const _=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const C=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),g?{statement:g}:null));let E;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")E=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)E=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)y=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),p=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${_.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(s=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.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
321InWithSolana.resources.map(E=>`- ${E}`)]:[]].join(`
322`);const C=await S.signMessage(new TextEncoder().encode(y),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=C}}try{const{data:b,error:v}=await X(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:Es(p)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:un});if(v)throw v;if(!b||!b.session||!b.user){const g=new ao;return this._returnResult({data:{user:null,session:null},error:g})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:v})}catch(b){if(G(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await fs(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new JL;const{data:o,error:i}=await X(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:un});if(await Xe(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const a=new ao;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=t,a=await X(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:un}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const d=new ao;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(G(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,o,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await lo(this.storage,this.storageKey));const{error:f}=await X(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:d}=await X(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:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new ic("You must provide either an email or phone number.")}catch(a){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,o;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await X(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:un});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(G(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,o,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await lo(this.storage,this.storageKey));const u=await X(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:_M});return!((o=u.data)===null||o===void 0)&&o.url&&et()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Ot;const{error:s}=await X(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(G(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:o}=t,{error:i}=await X(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:r,type:s,options:o}=t,{data:i,error:a}=await X(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new ic("You must provide either an email or phone number and a type")}catch(n){if(G(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await fs(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
322id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<$f:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await fs(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=Uf()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=xM(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await X(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Rr}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ot}:await X(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:Rr})})}catch(n){if(G(n))return Ff(n)&&(await this._removeSession(),await Xe(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new Ot;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await lo(this.storage,this.storageKey));const{data:u,error:d}=await X(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Rr});if(d)throw d;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(r){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ot;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=lc(t.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(n){if(G(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ot;const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(G(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!et())throw new ac("No browser detected.");
322if(t.error||t.error_description||t.error_code)throw new ac(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Wx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ac("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Wx("No code detected.");const{data:g,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!o||!a||!i||!u)throw new ac("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let h=d+f;l&&(h=parseInt(l));const m=h-d;m*1e3<=po&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const y=h-f;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,h,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,h,d);const{data:p,error:b}=await this._getUser(o);if(b)throw b;const v={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:f,expires_at:h,refresh_token:i,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(G(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await fs(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o&&!Ff(o))return this._returnResult({error:o});const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(QL(a)&&(a.status===404||a.status===401||a.status===403)||Ff(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Xe(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=oM(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){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",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await lo(this.storage,this.storageKey,!0));try{return await X(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,u,d;const{data:f,error:h}=o;if(h)throw h;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.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 X(this.fetch,"GET",m,{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 et()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(G(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:o}}=n;if(s)throw s;const{options:i,provider:a,token:l,access_token:u,nonce:d}=t,f=await X(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=o==null?void 0:o.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:un}),{data:h,error:m}=f;return m?this._returnResult({data:{user:null,session:null},error:m}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new ao}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:m}))}catch(s){if(await Xe(this.storage,`${this.storageKey}-code-verifier`),G(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;
322return await X(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await cM(async s=>(s>0&&await lM(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await X(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:un})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Bf(o)&&Date.now()+i-r<po})}catch(r){if(this._debug(n,"error",r),G(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),et()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await fs(this.storage,this.storageKey);if(s&&this.userStorage){let i=await fs(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await go(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:Uf()}else if(s&&!s.user&&!s.user){const i=await fs(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await Xe(this.storage,this.storageKey+"-user"),await go(this.storage,this.storageKey,s)):s.user=Uf()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const o=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<$f;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${$f}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),Bf(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Ot;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new yd;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new Ot;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),G(o)){const i={data:null,error:o};return Bf(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Xe(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await go(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const o=Qx(s);await go(this.storage,this.storageKey,o)}else{const s=Qx(n);await go(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Xe(this.storage,this.storageKey),await Xe(this.storage,this.storageKey+"-code-verifier"),await Xe(this.storage,this.storageKey+"-user"),this.userStorage&&await Xe(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&et()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
322catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),po);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/po);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${po}ms, refresh threshold is ${Lm} ticks`),s<=Lm&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof oC)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!et()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await lo(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?this._returnResult({data:null,error:o}):await X(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await X(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
322if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?$M(t.webauthn.credential_response):FM(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return this._returnResult({data:null,error:o});const i=await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:DM(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:VM(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,o;if(t)try{const{payload:m}=lc(t);let y=null;m.aal&&(y=m.aal);let p=y;const{data:{user:b},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(p="aal2");const w=m.amr||[];return{data:{currentLevel:y,nextLevel:p,currentAuthenticationMethods:w},error:null}}catch(m){if(G(m))return this._returnResult({data:null,error:m});throw m}const{data:{session:i},error:a}
322=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=lc(i.access_token);let u=null;l.aal&&(u=l.aal);let d=u;((o=(s=i.user.factors)===null||s===void 0?void 0:s.filter(m=>m.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(d="aal2");const h=l.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await X(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new Ot})})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:o}=r;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new Ot});const i=await X(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&et()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(r){if(G(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:o}=r;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new Ot});const i=await X(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&et()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(r){if(G(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await X(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Ot})})}catch(t){if(G(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await X(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ot})})}catch(n){if(G(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+GL>s)return r;const{data:o,error:i}=await X(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,r=o.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:m,error:y}
322=await this.getSession();if(y||!m.session)return this._returnResult({data:null,error:y});r=m.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=lc(r);n!=null&&n.allowExpired||gM(o.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:o,header:s,signature:i},error:null}}const d=vM(s.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,i,rM(`${a}.${l}`)))throw new Vm("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(G(r))return this._returnResult({data:null,error:r});throw r}}}Za.nextInstanceID={};const YM=Za,QM="2.94.1";let Zi="";typeof Deno<"u"?Zi="deno":typeof document<"u"?Zi="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Zi="react-native":Zi="node";const ZM={"X-Client-Info":`supabase-js-${Zi}/${QM}`},JM={headers:ZM},XM={schema:"public"},eD={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},tD={};function Ja(e){"@babel/helpers - typeof";return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(e)}function nD(e,t){if(Ja(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rD(e){var t=nD(e,"string");return Ja(t)=="symbol"?t:t+""}function sD(e,t,n){return(t=rD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r1(Object(n),!0).forEach(function(r){sD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const oD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),iD=()=>Headers,aD=(e,t,n)=>{const r=oD(n),s=iD();return async(o,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(o,De(De({},i),{},{headers:u}))}};function lD(e){return e.endsWith("/")?e:e+"/"}function cD(e,t){var n,r;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:u,realtime:d,global:f}=t,h={db:De(De({},l),s),auth:De(De({},u),o),realtime:De(De({},d),i),storage:{},global:De(De(De({},f),a),{},{headers:De(De({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function uD(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(lD(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var dD=class extends YM{constructor(e){super(e)}},fD=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const o=uD(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const i=`sb-${o.hostname.split(".")[0]}-auth-token`,a={db:XM,realtime:tD,auth:De(De({},eD),{},{storageKey:i}),global:JM},l=cD(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=aD(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(De({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new QI(new URL("rest/v1",o).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new zL(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new UI(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
322channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:o,flowType:i,lock:a,debug:l,throwOnError:u},d,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new dD({url:this.authUrl.href,headers:De(De({},h),d),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:i,lock:a,debug:l,throwOnError:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new hL(this.realtimeUrl.href,De(De({},e),{},{params:De(De({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const hD=(e,t,n)=>new fD(e,t,n);function mD(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}mD()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function pD(){var b,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,o=window.parent&&window.parent!==window;if(!s||!o)return localStorage;const i=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=i?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&a.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",f=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),m=(g,w,S)=>new Promise(_=>{const C=h();let E=!1,j;const k=O=>{E||(E=!0,clearTimeout(j),window.removeEventListener("message",N),_(O))},N=O=>{if(u.indexOf(O.origin)<0)return;const U=O.data;U&&U.type===d&&U.requestId===C&&k(U)};window.addEventListener("message",N);const I={type:g,requestId:C,projectId:s,key:w};S!==void 0&&(I.value=S);for(const O of u)window.parent.postMessage(I,O);j=setTimeout(()=>k(null),f)});let y=!0;const p=250;return{getItem:async g=>{let w=await m("lovable-preview-auth:get",g);return!w&&y&&(await new Promise(S=>setTimeout(S,p)),w=await m("lovable-preview-auth:get",g)),y=!1,w&&w.ok&&typeof w.value=="string"?w.value===""?(localStorage.removeItem(g),null):w.value:localStorage.getItem(g)},setItem:(g,w)=>(localStorage.setItem(g,w),m("lovable-preview-auth:set",g,w).then(()=>{})),removeItem:g=>(localStorage.removeItem(g),m("lovable-preview-auth:remove",g).then(()=>{}))}}const gD="https://olixkosyqodlzxtzxczx.supabase.co",vD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9saXhrb3N5cW9kbHp4dHp4Y3p4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQzNjM1MjYsImV4cCI6MjA4OTkzOTUyNn0.-GFNIoO87a-WVUjy32IEMXCLnXl5KK5oQuzxiWnDY4I",$m=hD(gD,vD,{auth:{storage:pD(),persistSession:!0,autoRefreshToken:!0}}),yD=["Descobres se tens benefícios de formação disponíveis","Ajudamos-te a fazer o pitch interno aos teus RH"],xD="#111111",lC="#1E1E1E",cC="#333333",vt="#E5322E",wD="#C42B27",ut="#4CAF83",bD="#999999",uC="#2A2A2A";function s1(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]/g,"")}const SD=()=>
322{const{utmParams:e}=ml(),[t,n]=x.useState("form"),[r,s]=x.useState(!1),[o,i]=x.useState(""),[a,l]=x.useState(""),[u,d]=x.useState(""),[f,h]=x.useState(null),m=x.useRef(null),[y,p]=x.useState([]),[b,v]=x.useState(!1),g=x.useRef(null);x.useEffect(()=>{let C=!1;return(async()=>{try{const{data:E}=await $m.functions.invoke("company-financing-lookup",{body:{action:"list"}});!C&&E&&Array.isArray(E.companies)&&p(E.companies)}catch{}})(),()=>{C=!0}},[]),x.useEffect(()=>{const C=E=>{g.current&&!g.current.contains(E.target)&&v(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[]);const w=(()=>{const C=s1(u);return C.length<2?[]:y.filter(E=>s1(E).includes(C)).slice(0,5)})(),S=async C=>{if(C.preventDefault(),!o.trim()||!a.trim()||!u.trim())return;s(!0),n("checking");const E=Date.now(),j=2e3;try{const{data:k,error:N}=await $m.functions.invoke("company-financing-lookup",{body:{user_name:o.trim(),user_email:a.trim(),company_name:u.trim(),...e,page_url:typeof window<"u"?window.location.href:""}});if(N)throw N;const I=k,O={state:I.state==="A"?"A":"B",matched_company:I.matched_company},U=Date.now()-E;U<j&&await new Promise(A=>setTimeout(A,j-U)),h(O),n("result"),setTimeout(()=>{var A;(A=m.current)==null||A.scrollIntoView({behavior:"smooth",block:"nearest"})},50)}catch(k){console.error(k),Bk.error("Algo correu mal. Tenta novamente."),n("form")}finally{s(!1)}},_=()=>{n("form"),h(null)};return c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"grid lg:grid-cols-2 gap-6 lg:gap-8",children:[c.jsxs("div",{className:"bg-white rounded-2xl p-8 md:p-10 lg:p-12 shadow-sm border border-[#E5E5E5] flex flex-col",children:[c.jsx("h3",{className:"text-foreground mb-5 font-heading font-extrabold text-3xl",style:{lineHeight:1.1},children:"A tua empresa pode financiar esta formação."}),c.jsx("p",{className:"text-foreground/70 text-base mb-8 leading-relaxed",children:"Muitas empresas em Portugal têm orçamento, benefícios ou horas de formação obrigatórias e apoiam os seus colaboradores a investir em formação. Com a Code for All_:"}),c.jsx("ul",{className:"space-y-4 mb-8",children:yD.map(C=>c.jsxs("li",{className:"flex items-start",style:{gap:16},children:[c.jsx("span",{className:"flex-shrink-0 mt-0.5 inline-flex items-center justify-center",style:{width:24,height:24},"aria-hidden":!0,children:c.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",children:[c.jsx("circle",{cx:"12",cy:"12",r:"11",fill:vt}),c.jsx("path",{d:"M7 12.5l3.2 3.2L17 9",stroke:"white",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})]})}),c.jsx("span",{className:"text-foreground text-[15px] leading-relaxed",children:C})]},C))}),c.jsxs("a",{href:"#simulador-empresa",onClick:C=>{var E;C.preventDefault(),(E=document.getElementById("simulador-empresa"))==null||E.scrollIntoView({behavior:"smooth"})},className:"lg:hidden mt-auto mb-4 inline-flex items-center justify-center gap-2 rounded-lg px-5 py-3 text-sm font-bold uppercase tracking-wide text-white shadow-md hover:shadow-lg active:scale-[0.98] transition-all self-stretch",style:{background:vt,letterSpacing:"0.5px"},children:["Simula aqui os benefícios da tua empresa",c.jsx("span",{"aria-hidden":!0,style:{fontSize:16,lineHeight:1},children:"→"})]}),c.jsxs("div",{className:"lg:mt-auto rounded-lg",style:{background:"#FFF5F5",borderLeft:`3px solid ${vt}`,padding:20},children:[c.jsxs("p",{className:"font-bold mb-2",style:{color:vt,fontSize:13,letterSpacing:"0.5px"},children:[c.jsx("span",{className:"lg:hidden",children:"OU FALA COM A TUA EMPRESA"}),c.jsx("span",{className:"hidden lg:inline",children:"FALA COM A TUA EMPRESA"})]}),c.jsxs("p",{className:"text-foreground/80 text-sm leading-relaxed",children:["As empresas têm vários benefícios para formação interna dos seus trabalhadores. Fala com a tua empresa e avaliem a possibilidade de conseguires que este curso seja faturado como despesa de formação. Contacta a nossa equipa para apoio: ",c.jsx("a",{href:"mailto:[email protected]",className:"underline font-medium",style:{color:vt},children:"[email protected]"})]})]})]}),c.jsxs("div",{id:"simulador-empresa",className:"rounded-2xl overflow-hidden flex flex-col shadow-sm",style:{background:xD,color:"white"},children:[c.jsx("div",{style:{height:3,background:ut}}),c.jsxs("div",{className:"px-6 pt-6 pb-4 md:px-[32px] py-[64px]",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("p",{className:"font-bold uppercase text-3xl py-[32px] pb-0",style:{color:ut,letterSpacing:"1px"},children:["Simula os benefícios ",c.jsx("br",{}),"da tua empresa"]}),c.jsxs("span",{className:"inline-flex items-center gap-1.5",style:{color:ut,fontSize:11,fontWeight:600,letterSpacing:"0.5px"},children:[c.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:ut,boxShadow:"0 0 0 4px rgba(76,175,131,0.18)",display:"inline-block"}}),"LIVE"]})]}),c.jsx("p",{className:"mt-1",style:{color:"#FFFFFF",fontSize:14},children:"Verifica em segundos se a tua empresa pode financiar a formação."})]}),c.jsx("div",{ref:m,className:"px-6 md:px-8 pb-8 flex flex-col flex-1",children:c.jsxs(Ar,{mode:"wait",children:[t==="form"&&c.jsxs(Y.form,{onSubmit:S,initial:{opacity:0,y:8}
322,animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.3},className:"space-y-5",children:[c.jsx(Hf,{htmlFor:"cf-name",children:"O teu nome"}),c.jsx(Wf,{id:"cf-name",value:o,onChange:C=>i(C.target.value),placeholder:"O teu nome completo",required:!0}),c.jsx(Hf,{htmlFor:"cf-email",children:"O teu email"}),c.jsx(Wf,{id:"cf-email",type:"email",value:a,onChange:C=>l(C.target.value),placeholder:"O teu email profissional",required:!0}),c.jsx(Hf,{htmlFor:"cf-company",children:"Empresa onde trabalhas"}),c.jsxs("div",{ref:g,className:"relative",children:[c.jsx(Wf,{id:"cf-company",value:u,onChange:C=>{d(C.target.value),v(!0)},onFocus:()=>v(!0),placeholder:"Ex: Coverflex, Talkdesk, Feedzai...",required:!0,autoComplete:"off"}),b&&w.length>0&&c.jsx("ul",{className:"absolute z-20 left-0 right-0 mt-1 rounded-lg overflow-hidden shadow-lg",style:{background:lC,border:`1px solid ${cC}`},children:w.map(C=>c.jsx("li",{children:c.jsx("button",{type:"button",onClick:()=>{d(C),v(!1)},className:"w-full text-left px-4 py-2.5 text-sm text-white transition-colors",style:{background:"transparent"},onMouseEnter:E=>{E.currentTarget.style.background=vt},onMouseLeave:E=>{E.currentTarget.style.background="transparent"},children:C})},C))})]}),c.jsx(_D,{loading:r,children:"Verificar os meus benefícios"}),c.jsxs("p",{className:"text-xs text-center flex items-center justify-center gap-1.5",style:{color:"#555"},children:[c.jsx(g2,{className:"w-3 h-3"}),"Os teus dados são confidenciais."]})]},"form"),t==="checking"&&c.jsx(Y.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.3},children:c.jsx(CD,{companyName:u})},"checking"),t==="result"&&f&&c.jsx(Y.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.3},children:c.jsx(ED,{result:f,companyTyped:u,onReset:_})},"result")]})})]})]})},Hf=({htmlFor:e,children:t})=>c.jsx(vs,{htmlFor:e,className:"text-white block",style:{fontWeight:500,fontSize:13,letterSpacing:"0.3px",marginBottom:6},children:t}),Wf=e=>{const[t,n]=x.useState(!1);return c.jsx(Io,{...e,onFocus:r=>{var s;n(!0),(s=e.onFocus)==null||s.call(e,r)},onBlur:r=>{var s;n(!1),(s=e.onBlur)==null||s.call(e,r)},className:"text-white placeholder:text-[#555]",style:{background:lC,border:`1px solid ${t?vt:cC}`,borderRadius:8,padding:"14px 16px",fontSize:15,height:50,boxShadow:t?"0 0 0 3px rgba(229,50,46,0.15)":"none",transition:"border-color 0.15s, box-shadow 0.15s"}})},_D=({loading:e,children:t})=>{const[n,r]=x.useState(!1);return c.jsx("button",{type:"submit",disabled:e,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),className:"w-full font-bold uppercase rounded-lg flex items-center justify-center",style:{background:n&&!e?wD:vt,color:"white",height:52,letterSpacing:"1px",fontSize:14,transform:n&&!e?"translateY(-1px)":"translateY(0)",boxShadow:n&&!e?"0 4px 16px rgba(229,50,46,0.4)":"none",transition:"all 0.2s",opacity:e?.8:1,cursor:e?"wait":"pointer"},children:e?c.jsx(dC,{}):t})},dC=()=>c.jsx("span",{"aria-label":"A carregar",style:{width:22,height:22,border:"2.5px solid rgba(255,255,255,0.35)",borderTopColor:"white",borderRadius:"50%",display:"inline-block",animation:"spin 0.7s linear infinite"},children:c.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"})}),CD=({companyName:e})=>{const t=["A ligar à base de dados de empresas",`A verificar benefícios de ${e.trim()||"a tua empresa"}`,"A preparar o teu resultado"],[n,r]=x.useState(0);return x.useEffect(()=>{const s=setTimeout(()=>r(1),650),o=setTimeout(()=>r(2),1350);return()=>{clearTimeout(s),clearTimeout(o)}},[]),c.jsxs("div",{className:"py-2",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[c.jsx(dC,{}),c.jsx("p",{className:"font-bold text-white",style:{fontSize:16},children:"A verificar os benefícios da tua empresa"})]}),c.jsx("div",{className:"rounded-full overflow-hidden mb-6",style:{background:"#1A1A1A",height:4},children:c.jsx("div",{style:{height:"100%",background:ut,width:`${(n+1)/t.length*100}%`,transition:"width 0.6s ease"}})}),c.jsx("ul",{className:"space-y-3",children:t.map((s,o)=>{const i=o<n,a=o===n;return c.jsxs("li",{className:"flex items-center gap-3",style:{color:i||a?"white":"#666",fontSize:14,transition:"color 0.3s"},children:[c.jsx("span",{className:"inline-flex items-center justify-center flex-shrink-0",style:{width:20,height:20,borderRadius:"50%",background:i?ut:"transparent",border:`1.5px solid ${i||a?ut:"#333"}`},children:i?c.jsx(Jr,{className:"w-3 h-3",strokeWidth:3,color:"white"}):a?c.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:ut,animation:"spin 1s linear infinite"}}):null}),s]},s)})}),c.jsx("p",{className:"text-xs text-center mt-6",style:{color:"#555"},children:"Isto demora apenas alguns segundos."})]})},o1=()=>
322{const[e,t]=x.useState(!1);return c.jsxs("div",{className:"rounded-lg",style:{background:"linear-gradient(135deg, rgba(76,175,131,0.12), rgba(76,175,131,0.04))",border:"1px solid rgba(76,175,131,0.35)",padding:20},children:[c.jsx("p",{className:"font-bold text-white mb-1",style:{fontSize:15},children:"Até lá, as turmas enchem rápido."}),c.jsx("p",{className:"mb-4",style:{color:"#BBB",fontSize:13.5,lineHeight:1.5},children:"Reserva a tua vaga sem compromisso."}),c.jsx("a",{href:"#datas",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),className:"w-full font-bold uppercase rounded-lg flex items-center justify-center",style:{background:e?"#3F9870":ut,color:"white",height:48,letterSpacing:"1px",fontSize:13,transition:"all 0.2s",textDecoration:"none"},children:"Ver próximas turmas →"})]})},Go=({color:e})=>c.jsx("span",{style:{color:e,marginRight:10,fontWeight:700},children:"→"}),i1=()=>c.jsxs(c.Fragment,{children:[c.jsx("div",{style:{height:1,background:uC,margin:"20px 0"}}),c.jsxs("p",{className:"text-center text-sm",style:{color:bD},children:["Contacta-nos através de"," ",c.jsx("a",{href:"mailto:[email protected]",className:"hover:underline",style:{color:vt,fontWeight:600},children:"[email protected]"})]})]}),a1=()=>c.jsxs("div",{className:"rounded-lg",style:{background:"#1A1A1A",borderLeft:`3px solid ${vt}`,padding:"16px 20px"},children:[c.jsx("p",{className:"font-bold mb-2",style:{color:"white",fontSize:14,letterSpacing:"0.5px"},children:"Sugerimos-te:"}),c.jsxs("div",{className:"space-y-1.5",style:{color:"#DDD",fontSize:14,lineHeight:1.6},children:[c.jsxs("p",{children:[c.jsx(Go,{color:vt}),"Fala com o teu departamento de RH ou People"]}),c.jsxs("p",{children:[c.jsx(Go,{color:vt}),'Pede para que o curso seja faturado como "Formação Profissional"']}),c.jsxs("p",{children:[c.jsx(Go,{color:vt}),"Se precisares de apoio, nós ajudamos-te a preparar o pitch interno"]})]})]}),ED=({result:e,companyTyped:t,onReset:n})=>{const r=e.matched_company||t;return e.state==="A"?c.jsxs("div",{className:"space-y-5",children:[c.jsxs("span",{className:"inline-flex items-center",style:{background:"rgba(76,175,131,0.15)",border:`1px solid ${ut}`,borderRadius:20,padding:"6px 14px",color:ut,fontSize:13,fontWeight:600},children:[c.jsx(Jr,{className:"w-3.5 h-3.5 mr-1.5",strokeWidth:3}),"Empresa encontrada na nossa base de dados"]}),c.jsxs("h4",{className:"font-bold text-white",style:{fontSize:24,lineHeight:1.25},children:["A tua empresa, ",r,", usa Coverflex."]}),c.jsx("p",{style:{color:"#CCC",fontSize:15,lineHeight:1.6},children:"Isto significa que, se tiveres saldo nos Benefícios do teu Coverflex, podes usar o teu saldo em Formação Profissional para reembolsar este curso, com isenção de IRS e Segurança Social."}),c.jsxs("div",{className:"rounded-lg",style:{background:"#1A1A1A",borderLeft:`3px solid ${ut}`,padding:"16px 20px"},children:[c.jsx("p",{className:"font-bold mb-2 uppercase",style:{color:"white",fontSize:13,letterSpacing:"1px"},children:"Como?"}),c.jsxs("div",{className:"space-y-1.5",style:{color:"#DDD",fontSize:14,lineHeight:1.6},children:[c.jsxs("p",{children:[c.jsx(Go,{color:ut}),"Abre a app Coverflex"]}),c.jsxs("p",{children:[c.jsx(Go,{color:ut}),'Verifica o saldo de "Benefits"']}),c.jsxs("p",{children:[c.jsx(Go,{color:ut}),'Se tiveres saldo, clica em "Benefits" e seleciona "Professional training"']})]})]}),c.jsx("div",{style:{height:1,background:uC,margin:"4px 0"}}),c.jsx("p",{style:{color:"#999",fontSize:14,fontStyle:"italic",lineHeight:1.6},children:"De qualquer forma, ajudamos-te a perceber que outros benefícios possas ter internamente com os teus Recursos Humanos."}),c.jsx(a1,{}),c.jsx(o1,{}),c.jsx(i1,{}),c.jsx("button",{onClick:n,className:"text-xs underline w-full text-center hover:text-white",style:{color:"#555"},children:"Pesquisar outra empresa"})]}):c.jsxs("div",{className:"space-y-5",children:[c.jsxs("span",{className:"inline-flex items-center",style:{background:"rgba(229,50,46,0.1)",border:`1px solid ${vt}`,borderRadius:20,padding:"6px 14px",color:vt,fontSize:13,fontWeight:600},children:[c.jsx("span",{className:"mr-1.5",children:"🔍"}),"Sem dados específicos para a tua empresa"]}),c.jsxs("h4",{className:"font-bold text-white",style:{fontSize:22,lineHeight:1.3}
322,children:["Não encontrámos dados específicos sobre os benefícios de formação da tua empresa,"," ",r,", mas isso não significa que não existam!"]}),c.jsx("p",{style:{color:"#CCC",fontSize:15,lineHeight:1.6},children:"A maioria das empresas tem benefícios de formação que os colaboradores desconhecem."}),c.jsx(a1,{}),c.jsx(o1,{}),c.jsx(i1,{}),c.jsx("button",{onClick:n,className:"text-xs underline w-full text-center hover:text-white",style:{color:"#555"},children:"Pesquisar outra empresa"})]})},jD=()=>{const[e,t]=x.useState("self");return x.useEffect(()=>{const n=()=>t("company");return window.addEventListener("pricing:show-company",n),()=>window.removeEventListener("pricing:show-company",n)},[]),c.jsx("section",{id:"preco",className:"section-padding bg-muted py-[64px]",children:c.jsxs("div",{className:"container-main",children:[c.jsx("p",{className:"text-center text-base text-cfa-black mb-3",children:"Como queres pagar a formação?"}),c.jsx("div",{className:"flex justify-center mb-8 md:mb-10",children:c.jsxs("div",{className:"inline-flex items-center bg-card border border-border/60 rounded-full p-1 shadow-sm",role:"tablist","aria-label":"Como queres pagar a formação?",children:[c.jsx(l1,{active:e==="self",onClick:()=>t("self"),children:"Pagas tu"}),c.jsx(l1,{active:e==="company",onClick:()=>t("company"),children:"Paga a tua empresa"})]})}),c.jsx(Ar,{mode:"wait",children:e==="self"?c.jsx(Y.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.3},children:c.jsx(DI,{embedded:!0})},"self"):c.jsx(Y.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.3},children:c.jsx(SD,{})},"company")})]})})},l1=({active:e,onClick:t,children:n})=>c.jsx("button",{type:"button",role:"tab","aria-selected":e,onClick:t,className:`relative px-5 md:px-7 py-2.5 text-sm md:text-base font-semibold rounded-full transition-all duration-300 ease-out ${e?"bg-cfa-black text-white shadow-sm":"text-foreground/60 hover:text-foreground"}`,children:n}),kD=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),{appendUtmToUrl:n}=ml();n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso+Intensivo+de+Automa%C3%A7%C3%A3o+e+Agentes+com+IA&mini_cursos____data_de_inicio=2026-06-08&mini_cursos____data_de_fim=2026-07-16&mini_cursos____regime=P%C3%B3s-Laboral&course_id=cd886716-c225-4df6-904c-e7253bbed89a"),n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso%20Intensivo%20de%20Automa%C3%A7%C3%A3o%20e%20Agentes%20com%20IA&mini_cursos____data_de_inicio=2026-06-22&mini_cursos____data_de_fim=2026-07-30&mini_cursos____regime=P%C3%B3s-Laboral&course_id=bbccd4fb-005e-4782-ab07-950858c813ba"),n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso+Intensivo+de+Automa%C3%A7%C3%A3o+e+Agentes+com+IA&mini_cursos____data_de_inicio=2026-07-06&mini_cursos____data_de_fim=2026-08-13&mini_cursos____regime=Laboral&course_id=304ae8ff-0743-4a74-8c84-f70677b1803b"),n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso%20Intensivo%20de%20Automa%C3%A7%C3%A3o%20e%20Agentes%20com%20IA&mini_cursos____data_de_inicio=2026-07-06&mini_cursos____data_de_fim=2026-08-13&mini_cursos____regime=17h-19h&course_id=af8c9ddb-b9ed-498e-8b3f-33f74329df72"),n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso%20Intensivo%20de%20Automa%C3%A7%C3%A3o%20e%20Agentes%20com%20IA&mini_cursos____data_de_inicio=2026-07-06&mini_cursos____data_de_fim=2026-08-13&mini_cursos____regime=P%C3%B3s-Laboral&course_id=41673783-2577-457b-98e4-6f9342d28885");const r=n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso%20Intensivo%20de%20Automa%C3%A7%C3%A3o%20e%20Agentes%20com%20IA&mini_cursos____data_de_inicio=2026-09-14&mini_cursos____data_de_fim=2026-10-22&mini_cursos____regime=P%C3%B3s-Laboral&course_id=f0e44aee-ffa0-4673-b5e4-d7da885e0aa7"),s=n("https://codeforall.com/cursos-intensivos/checkout/passo1?mini_cursos____curso_de_interesse=Curso%20Intensivo%20de%20Automa%C3%A7%C3%A3o%20e%20Agentes%20com%20IA&mini_cursos____data_de_inicio=2026-09-21&mini_cursos____data_de_fim=2026-10-29&mini_cursos____regime=P%C3%B3s-Laboral&course_id=815a188a-e700-45f3-bf56-1111dccf10bf"),o=n("https://codeforall.com/lista-de-espera/upskilling");return c.jsx("section",{id:"datas",className:"section-padding bg-background",ref:e,children:c.jsxs("div",{className:"container-main",children:[c.jsxs(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-4xl mx-auto mb-8",children:[c.jsx("span",{className:"text-sm font-semibold text-primary uppercase tracking-wider mb-4 block",children:"Próximas Turmas"}),c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold leading-tight",children:"Datas e inscrições"}),c.jsx("p",{className:"text-base text-foreground mt-4",children:"A nossa última turma esgotou em 2 semanas! 🔥 Garante já a tua vaga"})]}),c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs(Y.div,{initial:{opacity:0,x:-20},animate:t?{opacity:1,x:0}:{},transition:{delay:.55},className:"flex flex-col md:flex-row md:items-center gap-4 md:gap-6 p-4 md:p-6 rounded-xl border border-border hover:border-primary/50 transition-all duration-300 bg-card mt-4",children:[c.jsx("div",{className:"flex-shrink-0 w-full md:w-auto",children:c.jsxs("div",{className:"bg-primary text-primary-foreground rounded-xl p-4 text-center md:w-32",children:[c.jsx("div",{className:"text-3xl md:text-4xl font-bold",children:"14"}),c.jsx("div",{className:"text-sm font-medium",children:"Setembro"}),c.jsx("div",{className:"text-xs opacity-80",children:"a 22 de Outubro"})]})}
322),c.jsxs("div",{className:"flex-grow space-y-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"px-2 py-1 bg-secondary text-secondary-foreground text-xs font-semibold rounded",children:"Online"}),c.jsx("span",{className:"px-2 py-1 bg-secondary text-secondary-foreground text-xs font-semibold rounded",children:"Pós-laboral"})]}),c.jsx("div",{className:"text-foreground font-semibold",children:"3 sessões por semana — Segundas, Terças e Quintas"}),c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[c.jsx(ru,{className:"w-4 h-4"}),c.jsx("span",{children:"19h00 – 21h30 · Aulas live"})]})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(bt,{asChild:!0,className:"w-full md:w-auto bg-primary hover:bg-cfa-red-dark text-primary-foreground font-semibold group px-8",children:c.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:["Inscreve-te",c.jsx(di,{className:"ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})})]}),c.jsxs(Y.div,{initial:{opacity:0,x:-20},animate:t?{opacity:1,x:0}:{},transition:{delay:.6},className:"flex flex-col md:flex-row md:items-center gap-4 md:gap-6 p-4 md:p-6 rounded-xl border border-border hover:border-primary/50 transition-all duration-300 bg-card mt-4",children:[c.jsx("div",{className:"flex-shrink-0 w-full md:w-auto",children:c.jsxs("div",{className:"bg-primary text-primary-foreground rounded-xl p-4 text-center md:w-32",children:[c.jsx("div",{className:"text-3xl md:text-4xl font-bold",children:"21"}),c.jsx("div",{className:"text-sm font-medium",children:"Setembro"}),c.jsx("div",{className:"text-xs opacity-80",children:"a 29 de Outubro"})]})}),c.jsxs("div",{className:"flex-grow space-y-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"px-2 py-1 bg-secondary text-secondary-foreground text-xs font-semibold rounded",children:"Online"}),c.jsx("span",{className:"px-2 py-1 bg-secondary text-secondary-foreground text-xs font-semibold rounded",children:"Pós-laboral"})]}),c.jsx("div",{className:"text-foreground font-semibold",children:"3 sessões por semana — Segundas, Terças e Quintas"}),c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[c.jsx(ru,{className:"w-4 h-4"}),c.jsx("span",{children:"19h00 – 21h30 · Aulas live"})]})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(bt,{asChild:!0,className:"w-full md:w-auto bg-primary hover:bg-cfa-red-dark text-primary-foreground font-semibold group px-8",children:c.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:["Inscreve-te",c.jsx(di,{className:"ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})})]}),c.jsx("div",{className:"flex justify-center w-full",children:c.jsx(Y.p,{initial:{opacity:0,y:10},animate:t?{opacity:1,y:0}:{},transition:{delay:.3},className:"text-sm text-muted-foreground mt-6 max-w-3xl text-center",children:"* Após a tua inscrição, iremos entrar em contacto contigo, perceber a tua motivação para o curso e garantir que esta formação é adequada ao teu contexto profissional."})}),c.jsxs(Y.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.5},className:"text-center mt-10",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Estas datas não funcionam para ti? Deixa-nos o teu contacto e avisamos-te de novas datas."}),c.jsx(bt,{asChild:!0,variant:"outline",className:"border-primary text-primary hover:bg-cfa-red hover:text-white hover:border-cfa-red",children:c.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:"Avisem-me de novas datas"})})]})]})]})})},fC=x.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ue("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));fC.displayName="Card";const TD=x.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ue("flex flex-col space-y-1.5 p-6",e),...t}));TD.displayName="CardHeader";const ND=x.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:ue("text-2xl font-semibold leading-none tracking-tight",e),...t}));
322ND.displayName="CardTitle";const PD=x.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));PD.displayName="CardDescription";const hC=x.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ue("p-6 pt-0",e),...t}));hC.displayName="CardContent";const AD=x.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ue("flex items-center p-6 pt-0",e),...t}));AD.displayName="CardFooter";const c1=[{name:"Sérgio Gonçalves",role:"AI Educator & Content Developer",company:"Code for All",companyLogo:"/images/team/logo-cfa.webp",photo:"/images/team/sergio-goncalves.svg",shortBio:"O Sérgio tem mais de 20 anos de experiência em educação e...",fullBio:"O Sérgio tem mais de 20 anos de experiência em educação e formação internacional. O seu percurso foca-se em traduzir conceitos técnicos complexos (como IA e Web3) em conteúdos de formação acessíveis. Especialista em experiential learning e no desenvolvimento de conteúdos digitais e ferramentas pedagógicas, traz para este curso uma forte componente prática em IA aplicada e vasta experiência como formador."},{name:"Davide Calheiros",role:"Founder",company:"Provar",companyLogo:"",photo:"/images/team/davide-calheiros.png",shortBio:"Ambassador oficial da n8n em Portugal e especialista em automação para PMEs...",fullBio:"Davide é fundador da Provar, estúdio de IA e automação focado em PMEs portuguesas, e Ambassador oficial da n8n em Portugal. Trabalha diariamente com empresários para identificar onde a IA realmente cria impacto antes de implementar ferramentas ou automações. Já desenhou soluções para empresas de construção, contabilidade, saúde e indústria. Traz para o curso uma visão extremamente prática: como transformar IA em processos úteis, decisões melhores e resultados mensuráveis."},{name:"Renata Santos",role:"AI Senior Product Owner",company:"NOS",companyLogo:"/images/team/logo-nos.webp",photo:"/images/team/renata-santos.webp",shortBio:"Como AI Senior Product Owner na NOS, a Renata lidera equipas que...",fullBio:"Como AI Senior Product Owner na NOS, a Renata lidera equipas que desenvolvem soluções de inteligência artificial que transformam a experiência de cliente e produtividade. Com experiência no centro global de inovação da Accenture na Irlanda e fundadora do AI Together, trouxe para este curso uma abordagem prática que ensina qualquer profissional a tirar partido da IA no seu dia a dia."},{name:"Tiago Abreu",role:"Internal Management Advisor",company:"Coreflux",companyLogo:"/images/team/logo-coreflux.svg",photo:"/images/team/tiago-abreu.webp",shortBio:"Engenheiro e gestor especializado em digitalização industrial e adoção...",fullBio:"Engenheiro e gestor especializado em digitalização industrial e adoção de IA. Com mais de 10 anos de experiência, apoia empresas na definição de estratégias de produto e na criação de processos inteligentes e escaláveis, partilhando essa experiência e gosto por soluções tecnológicas como formador na Code for All."},{name:"João Pedro Silva",role:"Founder",company:"WisdomCurrent",companyLogo:"",photo:"/images/team/joao-pedro-silva.png",shortBio:"Especialista em IA aplicada, automação e direito digital, com experiência prática na implementação de agentes e workflows em empresas.",fullBio:"Fundador da WisdomCurrent, empresa especializada em formação e consultoria nas áreas de inteligência artificial, automação e direito digital. O João alia experiência prática na implementação de agentes e workflows de automação à capacidade de traduzir conceitos técnicos em aplicações acessíveis para profissionais sem background de programação. O seu trabalho foca-se em ajudar equipas a adotar IA de forma estruturada e responsável, com especial atenção a temas como RGPD, NIS2 e DORA."},{name:"Ricardo Luiz",role:"AI & Product Strategy Lead",company:"mediaweb",companyLogo:"/images/team/logo-mediaweb.svg",photo:"/images/team/ricardo-luiz.svg",shortBio:"Especialista em IA aplicada a Produto e Design, com experiência...",fullBio:"Especialista em IA aplicada a Produto e Design, com experiência em empresas como Promaton, Pipedrive e Talkdesk. O Ricardo comb
322ina visão estratégica e prática educacional para tornar a Inteligência Artificial acessível, ética e centrada nas pessoas. Forma equipas a integrar IA no dia a dia com criatividade e impacto real."},{name:"Rui Ferrão",role:"Chief Technology Officer",company:"Code for All",companyLogo:"/images/team/logo-cfa.webp",photo:"/images/team/rui-ferrao.webp",shortBio:"O Rui lidera projetos de software, cultura tecnológica e parcerias...",fullBio:"O Rui lidera projetos de software, cultura tecnológica e parcerias estratégicas. Criou o bootcamp de Programação, foi mentor de centenas de alunos e integrou AI no currículo. Antes, dirigiu projetos na indústria espacial e liderou equipas de desenvolvimento de software."},{name:"Daniel Carvalho",role:"VP Product & Engineering",company:"miio",companyLogo:"/images/team/logo-miio.webp",photo:"/images/team/daniel-carvalho.webp",shortBio:"Especialista em dados, produto e inteligência artificial, com...",fullBio:"Especialista em dados, produto e inteligência artificial, com experiência internacional em empresas como Glia e Swedbank. O Daniel liderou equipas em projetos de Data Engineering e AI, e tem certificações em Product Ownership, Scrum e Agile. Atualmente a frequentar um MBA na Porto Business School, traz uma abordagem prática e orientada a resultados, conectando tecnologia às verdadeiras necessidades do mercado."}],RD=()=>{const[e,t]=x.useState({}),[n,r]=x.useState(),[s,o]=x.useState(0);x.useEffect(()=>{n&&(o(n.selectedScrollSnap()),n.on("select",()=>{o(n.selectedScrollSnap())}))},[n]);const i=l=>{t(u=>({...u,[l]:!u[l]}))},a=Math.ceil(c1.length/4);return c.jsx("section",{id:"equipa",className:"section-padding bg-muted",children:c.jsxs("div",{className:"container-main",children:[c.jsx(Y.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},className:"text-2xl sm:text-3xl md:text-4xl font-bold text-center mb-12 text-foreground",children:"Equipa pedagógica Code for All_"}),c.jsxs(hd,{setApi:r,opts:{align:"start",loop:!0},className:"w-full max-w-6xl mx-auto",children:[c.jsx(md,{className:"-ml-3",children:c1.map((l,u)=>c.jsx(pd,{className:"pl-3 basis-full sm:basis-1/2 lg:basis-1/4",children:c.jsx(Y.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:u*.1},viewport:{once:!0},className:"h-full",children:c.jsx(fC,{className:"bg-card border-0 shadow-sm rounded-xl overflow-hidden h-full min-h-[320px] sm:min-h-[420px]",children:c.jsx(hC,{className:"p-3 sm:p-4 flex flex-col items-center text-center h-full",children:e[u]?c.jsxs("div",{className:"flex-1 flex flex-col w-full",children:[c.jsx("h3",{className:"font-heading font-bold text-base text-foreground mb-0.5",children:l.name}),c.jsx("p",{className:"text-primary font-medium text-sm mb-2",children:l.role}),c.jsx("div",{className:"h-10 flex items-center justify-center mb-3",children:l.companyLogo?c.jsx("img",{src:l.companyLogo,alt:l.company,className:"h-8 w-auto max-w-[120px] object-contain",onError:d=>{d.target.style.display="none"}}):c.jsx("span",{className:"font-heading font-semibold text-sm text-foreground",children:l.company})}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 overflow-y-auto",children:l.fullBio}),c.jsx("button",{onClick:()=>i(u),className:"text-primary hover:text-primary/80 font-medium text-sm transition-colors mt-3",children:"ver menos"})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"w-full aspect-[4/3] sm:aspect-square mb-2 sm:mb-3 rounded-lg overflow-hidden bg-muted",children:c.jsx("img",{src:l.photo,alt:l.name,className:"w-full h-full object-cover object-top",onError:d=>{d.target.src="/placeholder.svg"}})}),c.jsx("h3",{className:"font-heading font-bold text-sm sm:text-base text-foreground mb-0.5",children:l.name}),c.jsx("p",{className:"text-primary font-medium text-xs sm:text-sm mb-1 sm:mb-2",children:l.role}),c.jsx("div",{className:"h-8 sm:h-10 flex items-center justify-center mb-1 sm:mb-2",children:l.companyLogo?c.jsx("img",{src:l.companyLogo,alt:l.company,className:"h-6 sm:h-8 w-auto max-w-[100px] sm:max-w-[120px] object-contain",onError:d=>{d.target.style.display="none"}}):c.jsx("span",{className:"font-heading font-semibold text-xs sm:text-sm text-foreground",children:l.company})}),c.jsx("p",{className:"text-muted-foreground text-xs sm:text-sm leading-relaxed mb-2 sm:mb-3 line-clamp-2",children:l.shortBio}),c.jsx("button",{onClick:()=>i(u),className:"text-primary hover:text-primary/80 font-medium text-sm transition-colors mt-auto",children:"ver mais"})]})})})})},u))}),c.jsxs("div",{className:"hidden md:block",children:[c.jsx(Zg,{className:"left-0 -translate-x-1/2"}),c.jsx(Jg,{className:"right-0 translate-x-1/2"})]})]}),c.jsx("div",{className:"flex justify-center gap-2 mt-8",children:Array.from({length:a}).map((l,u)=>c.jsx("button",{onClick:()=>n==null?void 0:n.scrollTo(u*4),className:`w-8 h-2 rounded-full transition-colors ${Math.floor(s/4)===u?"bg-primary":"bg-muted"}`,"aria-label":`Go to slide ${u+1}`},u))})]})})},OD=[{question:"Como me posso candidatar aos cursos?",answer:`A candidatura depende do tipo de curso que escolheres. No caso de ser um curso de iniciação, não existe um processo de candidatura, pelo que basta escolheres o curso de iniciação e inscreveres-te no curso de iniciação que melhor se adequa para ti.
323
324Caso pretendas inscrever-te num curso intensivo, podes fazê-lo de duas formas: se já estiveres seguro que queres este curso e quiseres garantir a tua vaga, podes inscrever-te e pagar diretamente o curso; se ainda quiseres perceber mais sobre o curso, ficamos com a tua pré-inscrição registada e entramos em contacto contigo em 48h para te guiarmos da melhor forma.`},{question:"A quem se destinam os cursos de tecnologia da Code for All_?",answer:"Os nossos cursos de tecnologia são destinados a todos! Temos cursos para todos os níveis de conhecimento e, por isso, basta que tenhas vontade de aprender."},{question:"É preciso ter experiência em programação?",answer:"Não! Este curso foi desenhado para profissionais que querem automatizar processos sem escrever código. Usamos ferramentas no-code e low-code. Não precisas de ser programador, precisas apenas de perceber lógica de processos e estar confortável com tecnologia."},{question:"O que vou aprender no curso?",answer:"Este curso não é o típico curso de Inteligência Artificial, não é introdutório nem é apenas acesso a ferramentas. O curso intensivo de automação e agentes com IA é um curso para quem quer começar a dar o salto e entrar neste mund
324o de conseguir implementar IA e criar agentes para operações diárias. Vais ter acesso a um curso aprofundado e prático onde o foco é construir automações reais com agentes. No final acesso terás workflows e agentes prontos a usares e terás aprendido como criar e usá-los da melhor forma no teu dia a dia."},{question:"Vou ter custos para manter os agentes a funcionar? E depois do curso?",answer:"Não, durante o curso, todos os custos com APIs (OpenAI, Claude, Gemini, etc.) e ferramentas (Relay, n8n, Flowise) são 100% cobertos pela Code for All_. Fornecemos contas e acessos pré-configurados para que os alunos se possam focar em aprender, sem se preocuparem com faturas ou configurações complexas. Depois do curso, os alunos transitam para as suas próprias contas, sendo que ensinamos a otimizar para que o custo seja marginal."},{question:"Como vai ser o acompanhamento do professor durante o curso?",answer:`O professor já trabalha connosco há muito tempo e já deu dezenas de formações, por isso tem muita experiência e irá ajudar caso haja dificuldades. Para além disso, o nosso método é desenhado para ser prático e acompanhado. O professor acompanha de forma muito próxima e todas as aulas ficam gravadas, por isso ninguém fica para trás.
325
326Os alunos ainda terão suporte num canal de Slack onde estão o instrutor e a equipa coordenadora para responderem a dúvidas entre sessões.`},{question:"Preciso de ter um computador potente ou instalar muitos programas?",answer:"Não. A grande maioria das ferramentas que usamos são baseadas na cloud. Só precisas de um computador com um browser de internet (como o Chrome ou Firefox) e uma ligação estável à internet. Não é preciso instalar nada complexo nem ter um computador de topo."},{question:"Quais são os critérios de certificação do curso?",answer:"Os critérios de certificação são definidos por curso e por edição, podendo incluir elementos como assiduidade e componente prática, quando aplicável. Para mais informações, contacta [email protected]."},{question:"Posso pagar o curso em prestações?",answer:"Sim! Podes fazer o pagamento por prestações através de opções de financiamento junto dos nossos parceiros Alma e CofidisPay. Escolhe o parcelamento mais conveniente para ti entre 3 e 12 vezes e sem juros."}],ID=()=>{const e=x.useRef(null),t=ze(e,{once:!0,margin:"-100px"}),[n,r]=x.useState(null);return c.jsx("section",{className:"section-padding bg-secondary/30",ref:e,children:c.jsxs("div",{className:"container-main",children:[c.jsx(Y.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-4xl mx-auto mb-16",children:c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-6 leading-tight text-black/[0.98] px-[8px]",children:"FAQ"})}),c.jsx("div",{className:"max-w-3xl mx-auto space-y-2",children:OD.map((s,o)=>c.jsxs(Y.div,{initial:{opacity:0,y:10},animate:t?{opacity:1,y:0}:{},transition:{delay:o*.05},className:"border-b border-border",children:[c.jsxs("button",{onClick:()=>r(n===o?null:o),className:"w-full py-5 flex items-center justify-between text-left hover:text-primary transition-colors",children:[c.jsx("span",{className:"font-medium pr-4",children:s.question}),n===o?c.jsx(p2,{className:"w-5 h-5 flex-shrink-0 text-primary"}):c.jsx(tr,{className:"w-5 h-5 flex-shrink-0"})]}),c.jsx(Y.div,{initial:!1,animate:{height:n===o?"auto":0,opacity:n===o?1:0},transition:{duration:.3},className:"overflow-hidden",children:c.jsx("p",{className:"pb-5 text-muted-foreground",children:s.answer})})]},o))})]})})};function u1(e,[t,n]){return Math.min(n,Math.max(t,e))}var LD=x.createContext(void 0);function MD(e){const t=x.useContext(LD);return e||t||"ltr"}function DD(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var VD=[" ","Enter","ArrowUp","ArrowDown"],$D=[" ","Enter"],Hs="Select",[xd,wd,FD]=Fb(Hs),[Ti,MV]=Ys(Hs,[FD,Gu]),bd=Gu(),[BD,as]=Ti(Hs),[UD,zD]=Ti(Hs),mC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:o,value:i,defaultValue:a,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:h,required:m,form:y}=e,p=bd(t),[b,v]=x.useState(null),[g,w]=x.useState(null),[S,_]=x.useState(!1),C=MD(u),[E,j]=Oa({prop:r,defaultProp:s??!1,onChange:o,caller:Hs}),[k,N]=Oa({prop:i,defaultProp:a,onChange:l,caller:Hs}),I=x.useRef(null),O=b?y||!!b.closest("form"):!0,[U,A]=x.useState(new Set),z=Array.from(U).map(B=>B.props.value).join(";");return c.jsx(ST,{...p,children:c.jsxs(BD,{required:m,scope:t,trigger:b,onTriggerChange:v,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:Is(),value:k,onValueChange:N,open:E,onOpenChange:j,dir:C,triggerPointerDownPosRef:I,disabled:h,children:[c.jsx(xd.Provider,{scope:t,children:c.jsx(UD,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(B=>{A(F=>new Set(F).add(B))},[]),onNativeOptionRemove:x.useCallback(B=>{A(F=>{const T=new Set(F);return T.delete(B),T})},[]),children:n})}),O?c.jsxs(VC,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:k,onChange:B=>N(B.target.value),disabled:h,form:y,children:[k===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},z):null]})})};mC.displayName=Hs;var pC="SelectTrigger",gC=x.forwardRef((e,t)=>
vendor: 16,765 bytes, line 326
326{const{__scopeSelect:n,disabled:r=!1,...s}=e,o=bd(n),i=as(pC,n),a=i.disabled||r,l=Ce(t,i.onTriggerChange),u=wd(n),d=x.useRef("touch"),[f,h,m]=FC(p=>{const b=u().filter(w=>!w.disabled),v=b.find(w=>w.value===i.value),g=BC(b,p,v);g!==void 0&&i.onValueChange(g.value)}),y=p=>{a||(i.onOpenChange(!0),m()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(Y2,{asChild:!0,...o,children:c.jsx(ce.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":$C(i.value)?"":void 0,...s,ref:l,onClick:ie(s.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&y(p)}),onPointerDown:ie(s.onPointerDown,p=>{d.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(y(p),p.preventDefault())}),onKeyDown:ie(s.onKeyDown,p=>{const b=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(b&&p.key===" ")&&VD.includes(p.key)&&(y(),p.preventDefault())})})})});gC.displayName=pC;var vC="SelectValue",yC=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:o,placeholder:i="",...a}=e,l=as(vC,n),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,f=Ce(t,l.onValueNodeChange);return Ze(()=>{u(d)},[u,d]),c.jsx(ce.span,{...a,ref:f,style:{pointerEvents:"none"},children:$C(l.value)?c.jsx(c.Fragment,{children:i}):o})});yC.displayName=vC;var HD="SelectIcon",xC=x.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return c.jsx(ce.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});xC.displayName=HD;var WD="SelectPortal",wC=e=>c.jsx(Fu,{asChild:!0,...e});wC.displayName=WD;var Ws="SelectContent",bC=x.forwardRef((e,t)=>{const n=as(Ws,e.__scopeSelect),[r,s]=x.useState();if(Ze(()=>{s(new DocumentFragment)},[]),!n.open){const o=r;return o?Gs.createPortal(c.jsx(SC,{scope:e.__scopeSelect,children:c.jsx(xd.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),o):null}return c.jsx(_C,{...e,ref:t})});bC.displayName=Ws;var fn=10,[SC,ls]=Ti(Ws),qD="SelectContentImpl",KD=ui("SelectContent.RemoveScroll"),_C=x.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:y,hideWhenDetached:p,avoidCollisions:b,...v}=e,g=as(Ws,n),[w,S]=x.useState(null),[_,C]=x.useState(null),E=Ce(t,V=>S(V)),[j,k]=x.useState(null),[N,I]=x.useState(null),O=wd(n),[U,A]=x.useState(!1),z=x.useRef(!1);x.useEffect(()=>{if(w)return f4(w)},[w]),s4();const B=x.useCallback(V=>{const[ne,...he]=O().map(D=>D.ref.current),[re]=he.slice(-1),Q=document.activeElement;for(const D of V)if(D===Q||(D==null||D.scrollIntoView({block:"nearest"}),D===ne&&_&&(_.scrollTop=0),D===re&&_&&(_.scrollTop=_.scrollHeight),D==null||D.focus(),document.activeElement!==Q))return},[O,_]),F=x.useCallback(()=>B([j,w]),[B,j,w]);x.useEffect(()=>{U&&F()},[U,F]);const{onOpenChange:T,triggerPointerDownPosRef:P}=g;x.useEffect(()=>{if(w){let V={x:0,y:0};const ne=re=>{var Q,D;V={x:Math.abs(Math.round(re.pageX)-(((Q=P.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(re.pageY)-(((D=P.current)==null?void 0:D.y)??0))}},he=re=>{V.x<=10&&V.y<=10?re.preventDefault():w.contains(re.target)||T(!1),document.removeEventListener("pointermove",ne),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",he,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",he,{capture:!0})}}},[w,T,P]),x.useEffect(()=>{const V=()=>T(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[T]);const[M,K]=FC(V=>{const ne=O().filter(Q=>!Q.disabled),he=ne.find(Q=>Q.ref.current===document.activeElement),re=BC(ne,V,he);re&&setTimeout(()=>re.ref.current.focus())}),H=x.useCallback((V,ne,he)=>{const re=!z.current&&!he;(g.value!==void 0&&g.value===ne||re)&&(k(V),re&&(z.current=!0))},[g.value]),J=x.useCallback(()=>w==null?void 0:w.focus(),[w]),Z=x.useCallback((V,ne,he)=>{const re=!z.current&&!he;(g.value!==void 0&&g.value===ne||re)&&I(V)},[g.value]),pe=r==="popper"?Fm:CC,ye=pe===Fm?{side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:y,hideWhenDetached:p,avoidCollisions:b}:{};return c.jsx(SC,{scope:n,content:w,viewport:_,onViewportChange:C,itemRefCallback:H,selectedItem:j,onItemLeave:J,itemTextRefCallback:Z,focusSelectedItem:F,selectedItemText:N,position:r,isPositioned:U,searchRef:M,children:c.jsx($g,{as:KD,allowPinchZoom:!0,children:c.jsx(Vg,{asChild:!0,trapped:g.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:ie(s,V=>{var ne;(ne=g.trigger)==null||ne.focus({preventScroll:!0}),V.preventDefault()}),children:c.jsx(il,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:c.jsx(pe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:V=>V.preventDefault(),...v,...ye,onPlaced:()=>A(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ie(v.onKeyDown,V=>{const ne=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!ne&&V.key.length===1&&K(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let re=O().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(V.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const Q=V.target,D=re.indexOf(Q);re=re.slice(D+1)}setTimeout(()=>B(re)),V.preventDefault()}})})})})})})});_C.displayName=qD;var GD="SelectItemAlignedPosition",CC=x.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,o=as(Ws,n),i=ls(Ws,n),[a,l]=x.useState(null),[u,d]=x.useState(null),f=Ce(t,E=>d(E)),h=wd(n),m=x.useRef(!1),y=x.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=i,w=x.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&u&&p&&b&&v){const E=o.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),k=o.valueNode.getBoundingClientRect(),N=v.getBoundingClientRect();if(o.dir!=="rtl"){const Q=N.left-j.left,D=k.left-Q,se=E.left-D,de=E.width+se,Ne=Math.max(de,j.width),He=window.innerWidth-fn,Je=u1(D,[fn,Math.max(fn,He-Ne)]);a.style.minWidth=de+"px",a.style.left=Je+"px"}else{const Q=j.right-N.right,D=window.innerWidth-k.right-Q,se=window.innerWidth-E.right-D,de=E.width+se,Ne=Math.max(de,j.width),He=window.innerWidth-fn,Je=u1(D,[fn,Math.max(fn,He-Ne)]);a.style.minWidth=de+"px",a.style.right=Je+"px"}const I=h(),O=window.innerHeight-fn*2,U=p.scrollHeight,A=window.getComputedStyle(u),z=parseInt(A.borderTopWidth,10),B=parseInt(A.paddingTop,10),F=parseInt(A.borderBottomWidth,10),T=parseInt(A.paddingBottom,10),P=z+B+U+T+F,M=Math.min(b.offsetHeight*5,P),K=window.getComputedStyle(p),H=parseInt(K.paddingTop,10),J=parseInt(K.paddingBottom,10),Z=E.top+E.height/2-fn,pe=O-Z,ye=b.offsetHeight/2,V=b.offsetTop+ye,ne=z+B+V,he=P-ne;if(ne<=Z){const Q=I.length>0&&b===I[I.length-1].ref.current;a.style.bottom="0px";const D=u.clientHeight-p.offsetTop-p.offsetHeight,se=Math.max(pe,ye+(Q?J:0)+D+F),de=ne+se;a.style.height=de+"px"}else{const Q=I.length>0&&b===I[0].ref.current;a.style.top="0px";const se=Math.max(Z,z+p.offsetTop+(Q?H:0)+ye)+he;a.style.height=se+"px",p.scrollTop=ne-Z+p.offsetTop}a.style.margin=`${fn}px 0`,a.style.minHeight=M+"px",a.style.maxHeight=O+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,o.trigger,o.valueNode,a,u,p,b,v,o.dir,r]);Ze(()=>w(),[w]);const[S,_]=x.useState();Ze(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const C=x.useCallback(E=>{E&&y.current===!0&&(w(),g==null||g(),y.current=!1)},[w,g]);return c.jsx(QD,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:C,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(ce.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});CC.displayName=GD;var YD="SelectPopperPosition",Fm=x.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=fn,...o}=e,i=bd(n);return c.jsx(Q2,{...i,...o,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Fm.displayName=YD;var[QD,n0]=Ti(Ws,{}),Bm="SelectViewport",EC=x.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,o=ls(Bm,n),i=n0(Bm,n),a=Ce(t,o.onViewportChange),l=x.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(xd.Slot,{scope:n,children:c.jsx(ce.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ie(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&f){const m=Math.abs(l.current-d.scrollTop);if(m>0){const y=window.innerHeight-fn*2,p=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),v=Math.max(p,b);if(v<y){const g=v+m,w=Math.min(y,g),S=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});EC.displayName=Bm;var jC="SelectGroup",[ZD,JD]=Ti(jC),XD=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Is();return c.jsx(ZD,{scope:n,id:s,children:c.jsx(ce.div,{role:"group","aria-labelledby":s,...r,ref:t})})});XD.displayName=jC;var kC="SelectLabel",TC=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=JD(kC,n);return c.jsx(ce.div,{id:s.id,...r,ref:t})});TC.displayName=kC;var _u="SelectItem",[eV,NC]=Ti(_u),PC=x.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:o,...i}=e,a=as(_u,n),l=ls(_u,n),u=a.value===r,[d,f]=x.useState(o??""),[h,m]=x.useState(!1),y=Ce(t,g=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,g,r,s)}),p=Is(),b=x.useRef("touch"),v=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(eV,{scope:n,value:r,disabled:s,textId:p,isSelected:u,onItemTextChange:x.useCallback(g=>{f(w=>w||((g==null?void 0:g.textContent)??"").trim())},[]),children:c.jsx(xd.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:c.jsx(ce.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...i,ref:y,onFocus:ie(i.onFocus,()=>m(!0)),onBlur:ie(i.onBlur,()=>m(!1)),onClick:ie(i.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:ie(i.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:ie(i.onPointerDown,g=>{b.current=g.pointerType}),onPointerMove:ie(i.onPointerMove,g=>{var w;b.current=g.pointerType,s?(w=l.onItemLeave)==null||w.call(l):b.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ie(i.onPointerLeave,g=>{var w;g.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:ie(i.onKeyDown,g=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&g.key===" "||($D.includes(g.key)&&v(),g.key===" "&&g.preventDefault())})})})})});PC.displayName=_u;var Ji="SelectItemText",AC=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...o}=e,i=as(Ji,n),a=ls(Ji,n),l=NC(Ji,n),u=zD(Ji,n),[d,f]=x.useState(null),h=Ce(t,v=>f(v),l.onItemTextChange,v=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,v,l.value,l.disabled)}),m=d==null?void 0:d.textContent,y=x.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return Ze(()=>(p(y),()=>b(y)),[p,b,y]),c.jsxs(c.Fragment,{children:[c.jsx(ce.span,{id:l.textId,...o,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Gs.createPortal(o.children,i.valueNode):null]})});AC.displayName=Ji;var RC="SelectItemIndicator",OC=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return NC(RC,n).isSelected?c.jsx(ce.span,{"aria-hidden":!0,...r,ref:t}):null});OC.displayName=RC;var Um="SelectScrollUpButton",IC=x.forwardRef((e,t)=>{const n=ls(Um,e.__scopeSelect),r=n0(Um,e.__scopeSelect),[s,o]=x.useState(!1),i=Ce(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;o(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?c.jsx(MC,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});IC.displayName=Um;var zm="SelectScrollDownButton",LC=x.forwardRef((e,t)=>{const n=ls(zm,e.__scopeSelect),r=n0(zm,e.__scopeSelect),[s,o]=x.useState(!1),i=Ce(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;o(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?c.jsx(MC,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});LC.displayName=zm;var MC=x.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,o=ls("SelectScrollButton",n),i=x.useRef(null),a=wd(n),l=x.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return x.useEffect(()=>()=>l(),[l]),Ze(()=>{var d;const u=a().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),c.jsx(ce.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ie(s.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ie(s.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ie(s.onPointerLeave,()=>{l()})})}),tV="SelectSeparator",DC=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(ce.div,{"aria-hidden":!0,...r,ref:t})});DC.displayName=tV;var Hm="SelectArrow",nV=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=bd(n),o=as(Hm,n),i=ls(Hm,n);return o.open&&i.position==="popper"?c.jsx(Z2,{...s,...r,ref:t}):null});nV.displayName=Hm;var rV="SelectBubbleInput",VC=x.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=x.useRef(null),o=Ce(r,s),i=DD(t);return x.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[i,t]),c.jsx(ce.select,{...n,style:{...Wb,...n.style},ref:o,defaultValue:t})});VC.displayName=rV;function $C(e){return e===""||e===void 0}function FC(e){const t=En(e),n=x.useRef(""),r=x.useRef(0),s=x.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=x.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,o]}function BC(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=sV(e,Math.max(o,0));s.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function sV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var oV=mC,UC=gC,iV=yC,aV=xC,lV=wC,zC=bC,cV=EC,HC=TC,WC=PC,uV=AC,dV=OC,qC=IC,KC=LC,GC=DC;const d1=oV,f1=iV,Wm=x.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(UC,{ref:r,className:ue("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
326ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(aV,{asChild:!0,children:c.jsx(tr,{className:"h-4 w-4 opacity-50"})})]}));Wm.displayName=UC.displayName;const YC=x.forwardRef(({className:e,...t},n)=>c.jsx(qC,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(p2,{className:"h-4 w-4"})}));YC.displayName=qC.displayName;const QC=x.forwardRef(({className:e,...t},n)=>c.jsx(KC,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(tr,{className:"h-4 w-4"})}));QC.displayName=KC.displayName;const qm=x.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>c.jsx(lV,{children:c.jsxs(zC,{ref:s,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(YC,{}),c.jsx(cV,{className:ue("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(QC,{})]})}));qm.displayName=zC.displayName;const fV=x.forwardRef(({className:e,...t},n)=>c.jsx(HC,{ref:n,className:ue("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));fV.displayName=HC.displayName;const Er=x.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(WC,{ref:r,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(dV,{children:c.jsx(Jr,{className:"h-4 w-4"})})}),c.jsx(uV,{children:t})]}));Er.displayName=WC.displayName;const hV=x.forwardRef(({className:e,...t},n)=>c.jsx(GC,{ref:n,className:ue("-mx-1 my-1 h-px bg-muted",e),...t}));hV.displayName=GC.displayName;const h1=[{id:1,label:"Dados de Inscrição"},{id:2,label:"Cheque-Formação + Digital"},{id:3,label:"Pagamento"}],mV=()=>{const e=x.useRef(null);ze(e,{once:!0,margin:"-100px"});const[t,n]=x.useState(!1),[r,s]=x.useState(1),[o,i]=x.useState({firstName:"",lastName:"",email:"",phone:"",country:"Portugal",referral:""}),a=(u,d)=>{i(f=>({...f,[u]:d}))},l=u=>{u.preventDefault(),r<3?s(r+1):(console.log("Form submitted:",o),n(!1),s(1))};return c.jsx(c.Fragment,{children:c.jsx(ji,{open:t,onOpenChange:n,children:c.jsxs(Zs,{className:"sm:max-w-2xl p-0 overflow-hidden",children:[c.jsx("div",{className:"border-b border-border p-4",children:c.jsx("div",{className:"flex items-center justify-between max-w-lg mx-auto",children:h1.map((u,d)=>c.jsxs("div",{className:"flex items-center",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold transition-colors ${r>=u.id?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:r>u.id?c.jsx(Jr,{className:"w-4 h-4"}):u.id}),c.jsx("span",{className:`text-xs font-medium hidden sm:block ${r>=u.id?"text-foreground":"text-muted-foreground"}`,children:u.label})]}),d<h1.length-1&&c.jsx(Hu,{className:"w-4 h-4 text-muted-foreground mx-2 hidden sm:block"})]},u.id))})}),c.jsxs("div",{className:"p-6 md:p-8",children:[c.jsxs(pl,{className:"text-center mb-6",children:[c.jsx(Js,{className:"text-2xl md:text-3xl font-bold",children:"Inscreve-te já!"}),c.jsx("p",{className:"text-muted-foreground mt-2",children:"Reserva a tua vaga num dos nossos cursos, sem c
326ompromisso. 👇"})]}),c.jsxs("form",{onSubmit:l,className:"space-y-5",children:[r===1&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs(vs,{htmlFor:"firstName",className:"text-primary font-medium",children:["Nome ",c.jsx("span",{className:"text-primary",children:"*"})]}),c.jsx(Io,{id:"firstName",value:o.firstName,onChange:u=>a("firstName",u.target.value),className:"bg-cfa-dark border-0 text-primary-foreground placeholder:text-primary-foreground/50",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs(vs,{htmlFor:"lastName",className:"text-primary font-medium",children:["Sobrenome ",c.jsx("span",{className:"text-primary",children:"*"})]}),c.jsx(Io,{id:"lastName",value:o.lastName,onChange:u=>a("lastName",u.target.value),className:"bg-cfa-dark border-0 text-primary-foreground placeholder:text-primary-foreground/50",required:!0})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs(vs,{htmlFor:"email",className:"text-primary font-medium",children:["Email ",c.jsx("span",{className:"text-primary",children:"*"})]}),c.jsx(Io,{id:"email",type:"email",value:o.email,onChange:u=>a("email",u.target.value),className:"bg-cfa-dark border-0 text-primary-foreground placeholder:text-primary-foreground/50",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs(vs,{htmlFor:"phone",className:"text-primary font-medium",children:["Telefone ",c.jsx("span",{className:"text-primary",children:"*"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(d1,{value:o.country,onValueChange:u=>a("country",u),children:[c.jsx(Wm,{className:"w-32 bg-cfa-dark border-0 text-primary-foreground",children:c.jsx(f1,{})}),c.jsxs(qm,{children:[c.jsx(Er,{value:"Portugal",children:"Portugal"}),c.jsx(Er,{value:"Brasil",children:"Brasil"}),c.jsx(Er,{value:"Outro",children:"Outro"})]})]}),c.jsx(Io,{id:"phone",type:"tel",placeholder:"+351",value:o.phone,onChange:u=>a("phone",u.target.value),className:"flex-1 bg-cfa-dark border-0 text-primary-foreground placeholder:text-primary-foreground/50",required:!0})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(vs,{className:"text-muted-foreground font-medium",children:"Chegaste até nós através de algum parceiro?"}),c.jsxs(d1,{value:o.referral,onValueChange:u=>a("referral",u),children:[c.jsx(Wm,{className:"bg-cfa-dark border-0 text-primary-foreground",children:c.jsx(f1,{placeholder:"Selecione"})}),c.jsxs(qm,{children:[c.jsx(Er,{value:"google",children:"Google"}),c.jsx(Er,{value:"linkedin",children:"LinkedIn"}),c.jsx(Er,{value:"amigo",children:"Indicação de amigo"}),c.jsx(Er,{value:"outro",children:"Outro"})]})]})]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Ao submeter aceito a"," ",c.jsx("a",{href:"#",className:"text-primary hover:underline",children:"Privacy Policy"})," ","e os"," ",c.jsx("a",{href:"#",className:"text-primary hover:underline",children:"Terms and Conditions"})," ","da Code for All_."]})]}),r===2&&c.jsxs("div",{className:"text-center py-8",children:[c.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx(Jr,{className:"w-8 h-8 text-primary"})}),c.jsx("h3",{className:"text-xl font-bold mb-2",children:"Dados recebidos!"}),c.jsx("p",{className:"text-muted-foreground",children:"Vamos ajudar-te a candidatar ao Cheque-Formação + Digital para recuperares até 750€."})]}),r===3&&c.jsxs("div",{className:"text-center py-8",children:[c.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx("span",{className:"text-2xl",children:"💳"})}),c.jsx("h3",{className:"text-xl font-bold mb-2",children:"Quase lá!"}),c.jsx("p",{className:"text-muted-foreground",children:"A nossa equipa entrará em contacto contigo em breve para finalizar a inscrição."})]}),c.jsx(bt,{type:"submit",className:"w-full bg-primary hover:bg-cfa-red-dark text-primary-foreground font-semibold py-6",children:r<3?"Seguinte":"Finalizar Inscrição"})]})]})]})})})},ZC=$.forwardRef((e,t)=>
326c.jsxs("footer",{ref:t,...e,className:"bg-white border-t border-cfa-light-grey",children:[c.jsx("div",{className:"container-main py-12 md:py-16",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8 lg:gap-12",children:[c.jsx("div",{className:"lg:col-span-1",children:c.jsx("a",{href:"https://codeforall.com",className:"inline-block",children:c.jsx("svg",{width:"160",height:"27",viewBox:"0 0 576 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{children:[c.jsx("path",{d:"M110.318 3.72119L88.8192 25.2199L75.4899 38.5491C74.42 39.6191 74.42 41.3478 75.4899 42.4178L88.8192 55.747L110.318 77.2457L125.581 61.9821L104.083 40.4834L125.581 18.9848L110.318 3.72119ZM83.5539 39.5137L87.8547 35.2129C88.387 34.6805 89.2567 34.6805 89.789 35.2129L94.0898 39.5137C94.6221 40.046 94.6221 40.9156 94.0898 41.448L89.789 45.7488C89.2567 46.2811 88.387 46.2811 87.8547 45.7488L83.5539 41.448C83.0216 40.9156 83.0216 40.046 83.5539 39.5137ZM115.583 62.9466L111.282 67.2474C110.75 67.7798 109.88 67.7798 109.348 67.2474L94.3006 52.1999C93.7683 51.6676 93.7683 50.798 94.3006 50.2656L98.6014 45.9648C99.1337 45.4325 100.003 45.4325 100.536 45.9648L115.583 61.0123C116.116 61.5447 116.116 62.4143 115.583 62.9466ZM115.583 19.9493L100.536 34.9968C100.003 35.5291 99.1337 35.5291 98.6014 34.9968L94.3006 30.696C93.7683 30.1637 93.7683 29.294 94.3006 28.7617L109.348 13.7142C109.88 13.1819 110.75 13.1819 111.282 13.7142L115.583 18.015C116.116 18.5473 116.116 19.417 115.583 19.9493Z",fill:"#EA1F27"}),c.jsx("path",{d:"M73.5245 40.4883L52.0258 18.9896L38.6966 5.66036C37.6266 4.59043 35.8979 4.59043 34.828 5.66036L21.4987 18.9896L0 40.4883L15.2636 55.7519L36.7623 34.2532L58.2609 55.7519L73.5245 40.4883ZM37.7268 13.7243L42.0276 18.0251C42.5599 18.5575 42.5599 19.4271 42.0276 19.9594L37.7268 24.2602C37.1944 24.7925 36.3248 24.7925 35.7925 24.2602L31.4917 19.9594C30.9594 19.4271 30.9594 18.5575 31.4917 18.0251L35.7925 13.7243C36.3248 13.192 37.1944 13.192 37.7268 13.7243ZM14.2938 45.7536L9.99301 41.4528C9.46068 40.9205 9.46068 40.0509 9.99301 39.5185L25.0405 24.471C25.5728 23.9387 26.4425 23.9387 26.9748 24.471L31.2756 28.7718C31.8079 29.3042 31.8079 30.1738 31.2756 30.7061L16.2281 45.7536C15.6958 46.2859 14.8261 46.2859 14.2938 45.7536ZM57.2911 45.7536L42.2437 30.7061C41.7113 30.1738 41.7113 29.3042 42.2437 28.7718L46.5444 24.471C47.0768 23.9387 47.9464 23.9387 48.4787 24.471L63.5262 39.5185C64.0586 40.0509 64.0586 40.9205 63.5262 41.4528L59.2254 45.7536C58.6931 46.2859 57.8235 46.2859 57.2911 45.7536Z",fill:"#EA1F27"}),c.jsx("path",{opacity:"0.95",d:"M154.764 61.9291C148.972 61.9291 146.273 60.6115 146.273 53.7228V27.5544C146.273 20.6658 148.977 19.3481 154.764 19.3481H178.002V26.9325H157.004C154.691 26.9325 154.227 27.3963 154.227 29.6416V51.7042C154.227 53.9495 154.691 54.4133 157.004 54.4133H178.002V61.9238H154.764V61.9291Z",fill:"#353535"}),c.jsx("path",{opacity:"0.95",d:"M193.52 61.9291C187.728 61.9291 185.029 60.6115 185.029 53.7228V27.5544C185.029 20.6658 187.733 19.3481 193.52 19.3481H212.283C218.076 19.3481 220.774 20.6658 220.774 27.5544V53.7228C220.774 60.6115 218.071 61.9291 212.283 61.9291H193.52ZM212.9 29.6468C212.9 27.4016 212.436 26.9378 210.123 26.9378H195.76C193.446 26.9378 192.983 27.4016 192.983 29.6468V51.7095C192.983 53.9547 193.446 54.4185 195.76 54.4185H210.123C212.436 54.4185 212.9 53.9547 212.9 51.7095V29.6468Z",fill:"#353535"}),c.jsx("path",{opacity:"0.95",d:"M237.841 61.9292C232.048 61.9292 229.35 60.6116 229.35 53.723V27.5546C229.35 20.6659 232.053 19.3483 237.841 19.3483H257.22V0H265.095V53.7282C265.095 60.6169 262.391 61.9345 256.604 61.9345H237.841V61.9292ZM257.22 26.9379H240.081C237.767 26.9379 237.303 27.4017 237.303 29.647V51.7096C237.303 53.9549 237.767 54.4187 240.081 54.4187H254.443C256.757 54.4187 257.22 53.9549 257.22 51.7096V26.9379Z",fill:"#353535"}),c.jsx("path",{opacity:"0.95",d:"M282.235 61.9291C276.443 61.9291 273.744 60.6115 273.744 53.7228V27.5544C273.744 20.6658 276.448 19.3481 282.235 19.3481H300.998C306.791 19.3481 309.489 20.6658 309.489 27.5544V37.2312C309.489 44.1198 306.785 45.4375 300.998 45.4375H281.697V51.7095C281.697 54.3395 282.393 54.4185 285.787 54.4185H307.792V61.9291H282.235ZM301.615 29.6468C301.615 27.4016 301.151 26.9378 298.837 26.9378H284.475C282.161 26.9378 281.697 27.4016 281.697 29.6468V37.9322H298.837C301.151 37.9322 301.615 37.4684 301.615 35.2231V29.6468Z",fill:"#353535"}),c.jsx("path",{d:"M334.967 61.9292V26.8641H327.941V19.2798H334.967V8.20628C334.967 1.31764 337.671 0 343.458 0H354.806V7.58436H345.693C343.379 7.58436 342.915 8.04817 342.915 10.2934V19.2745H354.806V26.8588H342.915V61.9292H334.962H334.967Z",fill:"#EA1F27"}),c.jsx("path",{d:"M368.782 61.9291C362.99 61.9291 360.291 60.6115 360.291 53.7228V27.5544C360.291 20.6658 362.995 19.3481 368.782 19.3481H387.545C393.337 19.3481 396.036 20.6658 396.036 27.5544V53.7228C396.036 60.6115 393.332 61.9291 387.545 61.9291H368.782ZM388.162 29.6468C388.162 27.4016 387.698 26.9378 385.384 26.9378H371.022C368.708 26.9378 368.244 27.4016 368.244 29.6468V51.7095C368.244 53.9547 368.708 54.4185 371.022 54.4185H385.384C387.698 54.4185 388.162 53.9547 388.162 51.7095V29.6468Z",fill:"#EA1F27"}),c.jsx("path",{d:"M404.68 61.9292V27.5598C404.68 20.6712 407.383 19.3535 413.171 19.3535H430.542V26.9379H415.411C413.097 26.9379 412.633 27.4017 412.633 29.6469V61.9292H404.68Z",fill:"#EA1F27"}),c.jsx("path",{d:"M457.26 61.9292C451.468 61.9292 448.77 60.6116 448.77 53.7229V43.5033C448.77 36.6146 451.473 35.297 457.26 35.297H476.561V29.6469C476.561 27.4017 476.097 26.9379 473.784 26.9379H449.618V19.3535H476.024C481.816 19.3535 484.515 20.6712 484.515 27.5598V53.7282C484.515 60.6168 481.811 61.9345 476.024 61.9345H457.26V61.9292ZM476.561 42.8866H459.421C457.108 42.8866 456.644 43.3504 456.644 45.5957V51.7096C456.
326644 53.9548 457.108 54.4186 459.421 54.4186H473.784C476.097 54.4186 476.561 53.9548 476.561 51.7096V42.8866Z",fill:"#EA1F27"}),c.jsx("path",{d:"M501.573 61.9292C495.781 61.9292 493.082 60.6116 493.082 53.723V0H501.035V51.7149C501.035 53.9601 501.499 54.424 503.813 54.424H509.837V61.9345H501.578L501.573 61.9292Z",fill:"#EA1F27"}),c.jsx("path",{d:"M523.501 61.9292C517.708 61.9292 515.01 60.6116 515.01 53.723V0H522.963V51.7149C522.963 53.9601 523.427 54.424 525.741 54.424H531.765V61.9345H523.506L523.501 61.9292Z",fill:"#EA1F27"}),c.jsx("path",{d:"M537.398 67.9746V64.4907H576V67.9746H537.398Z",fill:"#353535"})]})})})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-bold text-cfa-black mb-4",children:"A Code for All_"}),c.jsxs("ul",{className:"space-y-3",children:[c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/a-code-for-all/sobre-nos",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Sobre nós"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/a-code-for-all/faqs",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"FAQs"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/a-code-for-all/imprensa",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Área de imprensa"})}),c.jsx("li",{children:c.jsx("a",{href:"https://www.livroreclamacoes.pt/Inicio/",target:"_blank",rel:"noreferrer",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Livro de reclamações"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/a-code-for-all/contacta-nos",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Contacta-nos"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/a-code-for-all/carreiras",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Trabalha connosco"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-bold text-cfa-black mb-4",children:"Serviços para alunos"}),c.jsxs("ul",{className:"space-y-3",children:[c.jsx("li",{children:c.jsx("a",{href:"https://www.meetup.com/academiadecodigo-lisboa/",target:"_blank",rel:"noreferrer",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Workshops gratuitos"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/servicos-para-ti/metodo-de-ensino",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Método de ensino"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/servicos-para-ti/carreiras",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Apoio a carreiras"})}),c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/servicos-para-ti/referencia",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Referencia um amigo"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-bold text-cfa-black mb-4",children:"Serviços para empresas"}),c.jsxs("ul",{className:"space-y-3",children:[c.jsx("li",{children:c.jsx("a",{href:"https://codeforall.com/empresas",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Talento e formação para empresas"})}),c.jsx("li",{children:c.jsx("a",{href:"https://www.bool.pt/",target:"_blank",rel:"noreferrer",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Consultoria e software house"})}),c.jsx("li",{children:c.jsx("a",{href:"https://www.ubbu.io/pt",target:"_blank",rel:"noreferrer",className:"text-cfa-base-black hover:text-cfa-red transition-colors text-sm",children:"Para escolas"})})]})]}),c.jsxs("div",{className:"flex flex-col items-start lg:items-end gap-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("a",{href:"https://www.facebook.com/wearecodeforall",target:"_blank",rel:"noreferrer",className:"w-10 h-10 rounded-full bg-cfa-base-black flex items-center justify-center text-white hover:bg-cfa-red transition-colors",children:c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}),c.jsx("a",{href:"https://www.instagram.com/wearecodeforall/",target:"_blank",rel:"noreferrer",className:"w-10 h-10 rounded-full bg-cfa-base-black flex items-center justify-center text-white hover:bg-cfa-red transition-colors",children:c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 
3260-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})})}),c.jsx("a",{href:"https://x.com/wearecodeforall",target:"_blank",rel:"noreferrer",className:"w-10 h-10 rounded-full bg-cfa-base-black flex items-center justify-center text-white hover:bg-cfa-red transition-colors",children:c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),c.jsx("a",{href:"https://www.youtube.com/@wearecodeforall",target:"_blank",rel:"noreferrer",className:"w-10 h-10 rounded-full bg-cfa-base-black flex items-center justify-center text-white hover:bg-cfa-red transition-colors",children:c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}),c.jsx("a",{href:"https://www.linkedin.com/school/wearecodeforall/",target:"_blank",rel:"noreferrer",className:"w-10 h-10 rounded-full bg-cfa-base-black flex items-center justify-center text-white hover:bg-cfa-red transition-colors",children:c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})})]}),c.jsxs("div",{className:"flex items-center gap-4 mt-4",children:[c.jsx("a",{href:"https://drive.google.com/file/d/11KcgPA9qfZKa8P93xquStypzxV04TECG/view?usp=drivesdk",target:"_blank",rel:"noreferrer",children:c.jsx("img",{src:"/images/badge-dgert.png",alt:"DGERT - Entidade Formadora Certificada",className:"h-12 w-auto object-contain"})}),c.jsx("img",{src:"/images/badge-bcorp.png",alt:"B Corp - Empresa Certificada",className:"h-12 w-auto object-contain"}),c.jsx("img",{src:"/images/badge-bootcamps.png",alt:"Best Coding Bootcamps 2022",className:"h-12 w-auto object-contain"})]})]})]})}),c.jsx("div",{className:"border-t border-cfa-light-grey",children:c.jsxs("div",{className:"container-main py-4 flex flex-col md:flex-row items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex items-center gap-4 text-sm text-cfa-base-black",children:[c.jsx("a",{href:"https://codeforall.com/privacy-policy",className:"hover:text-cfa-red transition-colors",children:"Terms"}),c.jsx("a",{href:"https://codeforall.com/privacy-policy",className:"hover:text-cfa-red transition-colors",children:"Privacy"}),c.jsx("a",{href:"https://whistleblowersoftware.com/secure/codeforall",target:"_blank",rel:"noreferrer",className:"hover:text-cfa-red transition-colors",children:"Whistleblower"})]}),c.jsx("p",{className:"text-sm text-cfa-grey",children:"© 2024 Code for All, S.A. // NIPC 510894160"})]})})]}));ZC.displayName="CfaFooter";const pV="/assets/google-translate-icon-DDylGU9D.png",m1="cfa_en_widget_dismissed",gV="https://agentic-codeforall-english.lovable.app/",vV=()=>
326{const[e,t]=x.useState("hidden"),{appendUtmToUrl:n}=ml();x.useEffect(()=>{if(typeof window>"u"||localStorage.getItem(m1)==="closed")return;const u=(navigator.language||"").toLowerCase().startsWith("pt")?1e4:3e3,d=window.setTimeout(()=>t("open"),u);return()=>window.clearTimeout(d)},[]);const r=()=>{t("hidden");try{localStorage.setItem(m1,"closed")}catch{}},s=()=>t("minimized"),o=()=>t("open"),i=()=>{const a=n(gV);window.open(a,"_blank","noopener,noreferrer")};return c.jsx("div",{className:"fixed bottom-4 right-4 z-50 print:hidden",children:c.jsxs(Ar,{mode:"wait",children:[e==="minimized"&&c.jsx(Y.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},transition:{duration:.2},onClick:o,"aria-label":"Open English waitlist message",className:"w-14 h-14 rounded-full bg-background border-2 border-primary shadow-lg hover:scale-110 transition-transform flex items-center justify-center text-2xl",children:"🇬🇧"},"minimized"),e==="open"&&c.jsxs(Y.div,{initial:{opacity:0,y:24,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.95},transition:{duration:.25,ease:"easeOut"},role:"dialog","aria-label":"English edition waitlist",className:"w-[340px] max-w-[calc(100vw-2rem)] bg-background border border-border rounded-2xl shadow-2xl overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-foreground text-background",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-lg",children:"🇬🇧"}),c.jsx("span",{className:"text-sm font-semibold",children:"English edition"})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("button",{onClick:s,"aria-label":"Minimize",className:"p-1 rounded hover:bg-background/10 transition-colors",children:c.jsx(Rj,{className:"w-4 h-4"})}),c.jsx("button",{onClick:r,"aria-label":"Close",className:"p-1 rounded hover:bg-background/10 transition-colors",children:c.jsx(ll,{className:"w-4 h-4"})})]})]}),c.jsxs("div",{className:"p-4 space-y-3",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-foreground text-base",children:"Hey there 👋"}),c.jsxs("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:[c.jsx("span",{className:"font-bold text-foreground",children:"If you don't speak Portuguese but want to learn about Automation and AI agents, read this 👇"}),c.jsx("br",{}),c.jsx("br",{}),c.jsx("span",{children:"Using Google Chrome? Click this icon "}),c.jsx("img",{src:pV,alt:"Google Translate icon",className:"inline-block w-4 h-4 align-text-bottom mx-0.5 grayscale opacity-80"}),c.jsx("span",{children:" on the URL bar, and switch this page to English."})]}),c.jsx("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:c.jsx("span",{children:"If this course looks interesting to you, we're considering opening an English edition soon 🇬🇧"})})]}),c.jsx(bt,{onClick:i,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:"👉 Join the English waiting list"})]})]},"open")]})})},yV=()=>{const e="visitor_id";let t=localStorage.getItem(e);return t||(t=crypto.randomUUID(),localStorage.setItem(e,t)),t},xV=()=>{const e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source"),utm_medium:e.get("utm_medium"),utm_campaign:e.get("utm_campaign"),utm_term:e.get("utm_term"),utm_content:e.get("utm_content")}},wV=()=>{x.useEffect(()=>{(async()=>{try{const t=yV(),n=xV(),{error:r}=await $m.from("page_visits").insert({visitor_id:t,page_url:window.location.pathname,referrer:document.referrer||null,utm_source:n.utm_source,utm_medium:n.utm_medium,utm_campaign:n.utm_campaign,utm_term:n.utm_term,utm_content:n.utm_content,user_agent:navigator.userAgent});r&&console.error("Error tracking page visit:",r)}catch(t){console.error("Error in page tracking:",t)}})()},[])},bV=()=>(wV(),c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(GR,{}),c.jsxs("main",{children:[c.jsx(aO,{}),c.jsx(cO,{}),c.jsx(dO,{}),c.jsx(MI,{}),c.jsx(EO,{}),c.jsx(jO,{}),c.jsx(kO,{}),c.jsx(TO,{}),c.jsx(PO,{}),c.jsx(LO,{}),c.jsx(FO,{}),c.jsx(zO,{}),c.jsx(CO,{}),c.jsx(RI,{}),c.jsx(hO,{}),c.jsx(OI,{}),c.jsx(II,{}),c.jsx(jD,{}),c.jsx(kD,{}),c.jsx(RD,{}),c.jsx(ID,{}),c.jsx(mV,{})]}),c.jsx(ZC,{}),c.jsx(vV,{}),c.jsx(OO,{})]})),SV=()=>{const e=bS();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},_V=new uN,CV=()=>c.jsx(fN,{client:_V,children:c.jsxs(FT,{children:[c.jsx(bk,{}),c.jsx(e6,{}),c.jsx(ZN,{children:c.jsxs(GN,{children:[c.jsx(Jh,{path:"/",element:c.jsx(bV,{})}),c.jsx(Jh,{path:"*",element:c.jsx(SV,{})})]})})]})}),EV="https://codeforall.com/cursos/agentes";typeof window<"u"&&window.location.hostname!=="codeforall.com"?window.location.replace(EV):Db(document.getElementById("root")).render(c.jsx(CV,{}));

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.