PageSourceSearch

https://winningbydesign.com.br/assets/index-CCk87pRC.js

js winningbydesign.com.br collected 2026-10-05 18:47:08 UTC 755,590 bytes, 211 lines download raw bytes

vendor: 5,835 bytes, lines 1-9
1var Db=Object.defineProperty;var Pb=(e,t,n)=>t in e?Db(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Yt=(e,t,n)=>Pb(e,typeof t!="symbol"?t+"":t,n);function Mb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},Eo={},kf={exports:{}},ie={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Da=Symbol.for("react.element"),Bb=Symbol.for("react.portal"),$b=Symbol.for("react.fragment"),Ub=Symbol.for("react.strict_mode"),qb=Symbol.for("react.profiler"),Fb=Symbol.for("react.provider"),zb=Symbol.for("react.context"),Wb=Symbol.for("react.forward_ref"),Vb=Symbol.for("react.suspense"),Hb=Symbol.for("react.memo"),Gb=Symbol.for("react.lazy"),mm=Symbol.iterator;function Kb(e){return e===null||typeof e!="object"?null:(e=mm&&e[mm]||e["@@iterator"],typeof e=="function"?e:null)}var Ef={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Af=Object.assign,Tf={};function li(e,t,n){this.props=e,this.context=t,this.refs=Tf,this.updater=n||Ef}li.prototype.isReactComponent={};li.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")};li.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _f(){}_f.prototype=li.prototype;function Bu(e,t,n){this.props=e,this.context=t,this.refs=Tf,this.updater=n||Ef}var $u=Bu.prototype=new _f;$u.constructor=Bu;Af($u,li.prototype);$u.isPureReactComponent=!0;var hm=Array.isArray,Cf=Object.prototype.hasOwnProperty,Uu={current:null},Nf={key:!0,ref:!0,__self:!0,__source:!0};function Rf(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Cf.call(t,r)&&!Nf.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Da,type:e,key:a,ref:o,props:i,_owner:Uu.current}}function Jb(e,t){return{$$typeof:Da,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Da}function Yb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var pm=/\/+/g;function il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yb(""+e.key):t.toString(36)}function js(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Da:case Bb:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+il(o,0):r,hm(i)?(n="",e!=null&&(n=e.replace(pm,"$&/")+"/"),js(i,t,n,"",function(u){return u})):i!=null&&(qu(i)&&(i=Jb(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(pm,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",hm(e))for(var l=0;l<e.length;l++){a=e[l];var c=r+il(a,l);o+=js(a,t,n,c,i)}else if(c=Kb(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=r+il(a,l++),o+=js(a,t,n,c,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ja(e,t,n){if(e==null)return e;var r=[],i=0;return js(e,r,"","",function(a){return t.call(n,a,i++)}),r}function Qb(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 Ye={current:null},ks={transition:null},Xb={ReactCurrentDispatcher:Ye,ReactCurrentBatchConfig:ks,ReactCurrentOwner:Uu};function Of(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Ja,forEach:function(e,t,n){Ja(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ja(e,function(){t++}),t},toArray:function(e){return Ja(e,function(t){return t})||[]},only:function(e){if(!qu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=li;ie.Fragment=$b;ie.Profiler=qb;ie.PureComponent=Bu;ie.StrictMode=Ub;ie.Suspense=Vb;
vendor: 8,042 bytes, lines 9-33
9ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xb;ie.act=Of;ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Af({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Uu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Cf.call(t,c)&&!Nf.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Da,type:e.type,key:i,ref:a,props:r,_owner:o}};ie.createContext=function(e){return e={$$typeof:zb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Fb,_context:e},e.Consumer=e};ie.createElement=Rf;ie.createFactory=function(e){var t=Rf.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:Wb,render:e}};ie.isValidElement=qu;ie.lazy=function(e){return{$$typeof:Gb,_payload:{_status:-1,_result:e},_init:Qb}};ie.memo=function(e,t){return{$$typeof:Hb,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=ks.transition;ks.transition={};try{e()}finally{ks.transition=t}};ie.unstable_act=Of;ie.useCallback=function(e,t){return Ye.current.useCallback(e,t)};ie.useContext=function(e){return Ye.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return Ye.current.useDeferredValue(e)};ie.useEffect=function(e,t){return Ye.current.useEffect(e,t)};ie.useId=function(){return Ye.current.useId()};ie.useImperativeHandle=function(e,t,n){return Ye.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return Ye.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return Ye.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return Ye.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return Ye.current.useReducer(e,t,n)};ie.useRef=function(e){return Ye.current.useRef(e)};ie.useState=function(e){return Ye.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return Ye.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return Ye.current.useTransition()};ie.version="18.3.1";kf.exports=ie;var w=kf.exports;const Dt=ko(w),Zb=Mb({__proto__:null,default:Dt},[w]);/**
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 ew=w,tw=Symbol.for("react.element"),nw=Symbol.for("react.fragment"),rw=Object.prototype.hasOwnProperty,iw=ew.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aw={key:!0,ref:!0,__self:!0,__source:!0};function If(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)rw.call(t,r)&&!aw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:tw,type:e,key:a,ref:o,props:i,_owner:iw.current}}Eo.Fragment=nw;Eo.jsx=If;Eo.jsxs=If;jf.exports=Eo;var s=jf.exports,qs={},Lf={exports:{}},ht={},Df={exports:{}},Pf={};/**
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,R){var B=T.length;T.push(R);e:for(;0<B;){var J=B-1>>>1,te=T[J];if(0<i(te,R))T[J]=R,T[B]=te,B=J;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var R=T[0],B=T.pop();if(B!==R){T[0]=B;e:for(var J=0,te=T.length,ae=te>>>1;J<ae;){var M=2*(J+1)-1,re=T[M],Q=M+1,pe=T[Q];if(0>i(re,B))Q<te&&0>i(pe,re)?(T[J]=pe,T[Q]=B,J=Q):(T[J]=re,T[M]=B,J=M);else if(Q<te&&0>i(pe,B))T[J]=pe,T[Q]=B,J=Q;else break e}}return R}function i(T,R){var B=T.sortIndex-R.sortIndex;return B!==0?B:T.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,m=3,p=!1,f=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(T){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=T)r(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(u)}}function j(T){if(v=!1,b(T),!f)if(n(c)!==null)f=!0,U(A);else{var R=n(u);R!==null&&N(j,R.startTime-T)}}function A(T,R){f=!1,v&&(v=!1,y(E),E=-1),p=!0;var B=m;try{for(b(R),h=n(c);h!==null&&(!(h.expirationTime>R)||T&&!D());){var J=h.callback;if(typeof J=="function"){h.callback=null,m=h.priorityLevel;var te=J(h.expirationTime<=R);R=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(c)&&r(c),b(R)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var M=n(u);M!==null&&N(j,M.startTime-R),ae=!1}return ae}finally{h=null,m=B,p=!1}}var S=!1,k=null,E=-1,I=5,$=-1;function D(){return!(e.unstable_now()-$<I)}function W(){if(k!==null){var T=e.unstable_now();$=T;var R=!0;try{R=k(!0,T)}finally{R?V():(S=!1,k=null)}}else S=!1}var V;if(typeof g=="function")V=function(){g(W)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,C=L.port2;L.port1.onmessage=W,V=function(){C.postMessage(null)}}else V=function(){x(W,0)};function U(T){k=T,S||(S=!0,V())}function N(T,R){E=x(function(){T(e.unstable_now())},R)}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(){f||p||(f=!0,U(A))},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"):I=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var B=m;m=R;try{return T()}finally{m=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,R){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var B=m;m=T;try{return R()}finally{m=B}},e.unstable_scheduleCallback=function(T,R,B){var J=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?J+B:J):B=J,T){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=B+te,T={id:d++,callback:R,priorityLevel:T,startTime:B,expirationTime:te,sortIndex:-1},B>J?(T.sortIndex=B,t(u,T),n(c)===null&&T===n(u)&&(v?(y(E),E=-1):v=!0,N(j,B-J))):(T.sortIndex=te,t(c,T),f||p||(f=!0,U(A))),T},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(T){var R=m;return function(){var B=m;m=R;try{return T.apply(this,arguments)}finally{m=B}}}})(Pf);Df.exports=Pf;var sw=Df.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 ow=w,mt=sw;function O(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."}
vendor: 5,053 bytes, line 33
33var Mf=new Set,sa={};function dr(e,t){ti(e,t),ti(e+"Capture",t)}function ti(e,t){for(sa[e]=t,e=0;e<t.length;e++)Mf.add(t[e])}var an=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Jl=Object.prototype.hasOwnProperty,lw=/^[: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]*$/,fm={},gm={};function cw(e){return Jl.call(gm,e)?!0:Jl.call(fm,e)?!1:lw.test(e)?gm[e]=!0:(fm[e]=!0,!1)}function uw(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 dw(e,t,n,r){if(t===null||typeof t=="undefined"||uw(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 Qe(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Qe(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){Fe[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fu=/[\-:]([a-z])/g;function zu(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(Fu,zu);Fe[t]=new Qe(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(Fu,zu);Fe[t]=new Qe(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(Fu,zu);Fe[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wu(e,t,n,r){var i=Fe.hasOwnProperty(t)?Fe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(dw(t,n,i,r)&&(n=null),r||i===null?cw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 7,976 bytes, lines 33-37
33var cn=ow.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ya=Symbol.for("react.element"),Or=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),Vu=Symbol.for("react.strict_mode"),Yl=Symbol.for("react.profiler"),Bf=Symbol.for("react.provider"),$f=Symbol.for("react.context"),Hu=Symbol.for("react.forward_ref"),Ql=Symbol.for("react.suspense"),Xl=Symbol.for("react.suspense_list"),Gu=Symbol.for("react.memo"),pn=Symbol.for("react.lazy"),Uf=Symbol.for("react.offscreen"),vm=Symbol.iterator;function ji(e){return e===null||typeof e!="object"?null:(e=vm&&e[vm]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,al;function Pi(e){if(al===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);al=t&&t[1]||""}return`
34`+al+e}var sl=!1;function ol(e,t){if(!e||sl)return"";sl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),a=r.stack.split(`
36`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l]){var c=`
37`+i[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pi(e):""}function mw(e){switch(e.tag){case 5:return Pi(e.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return e=ol(e.type,!1),e;case 11:return e=ol(e.type.render,!1),e;case 1:return e=ol(e.type,!0),e;default:return""}}function Zl(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 Ir:return"Fragment";case Or:return"Portal";case Yl:return"Profiler";case Vu:return"StrictMode";case Ql:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case Hu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case pn:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function hw(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 Zl(t);case 8:return t===Vu?"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 Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pw(e){var t=qf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qa(e){e._valueTracker||(e._valueTracker=pw(e))}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fs(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function ec(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function ym(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(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 zf(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function tc(e,t){zf(e,t);var n=Ln(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")?nc(e,t.type,n):t.hasOwnProperty("defaultValue")&&nc(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bm(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 nc(e,t,n){(t!=="number"||Fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mi=Array.isArray;function Hr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Mi(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function Wf(e,t){var n=Ln(t.value),r=Ln(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 xm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vf(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 ic(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xa,Hf=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Xa=Xa||document.createElement("div"),Xa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oa(e,t){if(t){var n=e.firstChild;
vendor: 10,005 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ki={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},fw=["Webkit","ms","Moz","O"];Object.keys(Ki).forEach(function(e){fw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ki[t]=Ki[e]})});function Gf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ki.hasOwnProperty(e)&&Ki[e]?(""+t).trim():t+"px"}function Kf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Gf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var gw=xe({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 ac(e,t){if(t){if(gw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function sc(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 oc=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lc=null,Gr=null,Kr=null;function Sm(e){if(e=Ba(e)){if(typeof lc!="function")throw Error(O(280));var t=e.stateNode;t&&(t=No(t),lc(e.stateNode,e.type,t))}}function Jf(e){Gr?Kr?Kr.push(e):Kr=[e]:Gr=e}function Yf(){if(Gr){var e=Gr,t=Kr;if(Kr=Gr=null,Sm(e),t)for(e=0;e<t.length;e++)Sm(t[e])}}function Qf(e,t){return e(t)}function Xf(){}var ll=!1;function Zf(e,t,n){if(ll)return e(t,n);ll=!0;try{return Qf(e,t,n)}finally{ll=!1,(Gr!==null||Kr!==null)&&(Xf(),Yf())}}function la(e,t){var n=e.stateNode;if(n===null)return null;var r=No(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(O(231,t,typeof n));return n}var cc=!1;if(an)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){cc=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{cc=!1}function vw(e,t,n,r,i,a,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ji=!1,zs=null,Ws=!1,uc=null,yw={onError:function(e){Ji=!0,zs=e}};function bw(e,t,n,r,i,a,o,l,c){Ji=!1,zs=null,vw.apply(yw,arguments)}function ww(e,t,n,r,i,a,o,l,c){if(bw.apply(this,arguments),Ji){if(Ji){var u=zs;Ji=!1,zs=null}else throw Error(O(198));Ws||(Ws=!0,uc=u)}}function mr(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 eg(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 jm(e){if(mr(e)!==e)throw Error(O(188))}function xw(e){var t=e.alternate;if(!t){if(t=mr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return jm(i),e;if(a===r)return jm(i),t;a=a.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function tg(e){return e=xw(e),e!==null?ng(e):null}function ng(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ng(e);if(t!==null)return t;e=e.sibling}return null}var rg=mt.unstable_scheduleCallback,km=mt.unstable_cancelCallback,Sw=mt.unstable_shouldYield,jw=mt.unstable_requestPaint,Ae=mt.unstable_now,kw=mt.unstable_getCurrentPriorityLevel,Ju=mt.unstable_ImmediatePriority,ig=mt.unstable_UserBlockingPriority,Vs=mt.unstable_NormalPriority,Ew=mt.unstable_LowPriority,ag=mt.unstable_IdlePriority,Ao=null,Ht=null;function Aw(e){if(Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Ao,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:Cw,Tw=Math.log,_w=Math.LN2;function Cw(e){return e>>>=0,e===0?32:31-(Tw(e)/_w|0)|0}var Za=64,es=4194304;function Bi(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 Hs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Bi(l):(a&=o,a!==0&&(r=Bi(a)))}else o=n&~i,o!==0?r=Bi(o):a!==0&&(r=Bi(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&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-Mt(t),i=1<<n,r|=e[n],t&=~i;return r}function Nw(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 Rw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Mt(a),l=1<<o,c=i[o];c===-1?(!(l&n)||l&r)&&(i[o]=Nw(l,t)):c<=t&&(e.expiredLanes|=l),a&=~l}}function dc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sg(){var e=Za;return Za<<=1,!(Za&4194240)&&(Za=64),e}function cl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function Ow(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 i=31-Mt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Yu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ue=0;function og(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lg,Qu,cg,ug,dg,mc=!1,ts=[],En=null,An=null,Tn=null,ca=new Map,ua=new Map,bn=[],Iw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Em(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":ca.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ua.delete(t.pointerId)}}function Ei(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ba(t),t!==null&&Qu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lw(e,t,n,r,i){switch(t){case"focusin":return En=Ei(En,e,t,n,r,i),!0;case"dragenter":return An=Ei(An,e,t,n,r,i),!0;case"mouseover":return Tn=Ei(Tn,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ca.set(a,Ei(ca.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ua.set(a,Ei(ua.get(a)||null,e,t,n,r,i)),!0}return!1}function mg(e){var t=Yn(e.target);if(t!==null){var n=mr(t);if(n!==null){if(t=n.tag,t===13){if(t=eg(n),t!==null){e.blockedOn=t,dg(e.priority,function(){cg(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 Es(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);oc=r,n.target.dispatchEvent(r),oc=null}else return t=Ba(n),t!==null&&Qu(t),e.blockedOn=n,!1;t.shift()}return!0}function Am(e,t,n){Es(e)&&n.delete(t)}function Dw(){mc=!1,En!==null&&Es(En)&&(En=null),An!==null&&Es(An)&&(An=null),Tn!==null&&Es(Tn)&&(Tn=null),ca.forEac
vendor: 9,291 bytes, line 37
37h(Am),ua.forEach(Am)}function Ai(e,t){e.blockedOn===t&&(e.blockedOn=null,mc||(mc=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,Dw)))}function da(e){function t(i){return Ai(i,e)}if(0<ts.length){Ai(ts[0],e);for(var n=1;n<ts.length;n++){var r=ts[n];r.blockedOn===e&&(r.blockedOn=null)}}for(En!==null&&Ai(En,e),An!==null&&Ai(An,e),Tn!==null&&Ai(Tn,e),ca.forEach(t),ua.forEach(t),n=0;n<bn.length;n++)r=bn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bn.length&&(n=bn[0],n.blockedOn===null);)mg(n),n.blockedOn===null&&bn.shift()}var Jr=cn.ReactCurrentBatchConfig,Gs=!0;function Pw(e,t,n,r){var i=ue,a=Jr.transition;Jr.transition=null;try{ue=1,Xu(e,t,n,r)}finally{ue=i,Jr.transition=a}}function Mw(e,t,n,r){var i=ue,a=Jr.transition;Jr.transition=null;try{ue=4,Xu(e,t,n,r)}finally{ue=i,Jr.transition=a}}function Xu(e,t,n,r){if(Gs){var i=hc(e,t,n,r);if(i===null)bl(e,t,r,Ks,n),Em(e,r);else if(Lw(i,e,t,n,r))r.stopPropagation();else if(Em(e,r),t&4&&-1<Iw.indexOf(e)){for(;i!==null;){var a=Ba(i);if(a!==null&&lg(a),a=hc(e,t,n,r),a===null&&bl(e,t,r,Ks,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else bl(e,t,r,null,n)}}var Ks=null;function hc(e,t,n,r){if(Ks=null,e=Ku(r),e=Yn(e),e!==null)if(t=mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=eg(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 Ks=e,null}function hg(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(kw()){case Ju:return 1;case ig:return 4;case Vs:case Ew:return 16;case ag:return 536870912;default:return 16}default:return 16}}var Sn=null,Zu=null,As=null;function pg(){if(As)return As;var e,t=Zu,n=t.length,r,i="value"in Sn?Sn.value:Sn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return As=i.slice(e,1<r?1-r:void 0)}function Ts(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 ns(){return!0}function Tm(){return!1}function pt(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?ns:Tm,this.isPropagationStopped=Tm,this}return xe(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=ns)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),t}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ed=pt(ci),Ma=xe({},ci,{view:0,detail:0}),Bw=pt(Ma),ul,dl,Ti,To=xe({},Ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:td,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!==Ti&&(Ti&&e.type==="mousemove"?(ul=e.screenX-Ti.screenX,dl=e.screenY-Ti.screenY):dl=ul=0,Ti=e),ul)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),_m=pt(To),$w=xe({},To,{dataTransfer:0}),Uw=pt($w),qw=xe({},Ma,{relatedTarget:0}),ml=pt(qw),Fw=xe({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),zw=pt(Fw),Ww=xe({},ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vw=pt(Ww),Hw=xe({},ci,{data:0}),Cm=pt(Hw),Gw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kw={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"},Jw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jw[e])?!!t[e]:!1}function td(){return Yw}var Qw=xe({},Ma,{key:function(e){if(e.key){var t=Gw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:td,charCode:function(e){return e.type==="keypress"?Ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xw=pt(Qw),Zw=xe({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nm=pt(Zw),ex=xe({},Ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:td}),tx=pt(ex),nx=xe({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),rx=pt(nx),ix=xe({},To,{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}),ax=pt(ix),sx=[9,13,27,32],nd=an&&"CompositionEvent"in window,Yi=null;an&&"documentMode"in document&&(Yi=document.documentMode);var ox=an&&"TextEvent"in window&&!Yi,fg=an&&(!nd||Yi&&8<Yi&&11>=Yi),Rm=" ",Om=!1;function gg(e,t){switch(e){case"keyup":return sx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function lx(e,t){switch(e){case"compositionend":return vg(t);case"keypress":return t.which!==32?null:(Om=!0,Rm);case"textInput":return e=t.data,e===Rm&&Om?null:e;default:return null}}function cx(e,t){if(Lr)return e==="compositionend"||!nd&&gg(e,t)?(e=pg(),As=Zu=Sn=null,Lr=!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 fg&&t.locale!=="ko"?null:t.data;default:return null}}var ux={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 Im(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ux[e.type]:t==="textarea"}function yg(e,t,n,r){Jf(r),t=Js(t,"onChange"),0<t.length&&(n=new ed("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qi=null,ma=null;function dx(e){Cg(e,0)}function _o(e){var t=Mr(e);if(Ff(t))return e}function mx(e,t){if(e==="change")return t}var bg=!1;if(an){var hl;if(an){var pl="oninput"in document;if(!pl){var Lm=document.createElement("div");Lm.setAttribute("oninput","return;"),pl=typeof Lm.oninput=="function"}hl=pl}else hl=!1;bg=hl&&(!document.documentMode||9<document.documentMode)}function Dm(){Qi&&(Qi.detachEvent("onpropertychange",wg),ma=Qi=null)}function wg(e){if(e.propertyName==="value"&&_o(ma)){var t=[];yg(t,ma,e,Ku(e)),Zf(dx,t)}}function hx(e,t,n){e==="focusin"?(Dm(),Qi=t,ma=n,Qi.attachEvent("onpropertychange",wg)):e==="focusout"&&Dm()}function px(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _o(ma)}function fx(e,t){if(e==="click")return _o(t)}function gx(e,t){if(e==="input"||e==="change")return _o(t)}function vx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:vx;function ha(e,t){if(Ut(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Jl.call(t,i)||!Ut(e[i],t[i]))return!1}return!0}function Pm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mm(e,t){var n=Pm(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=Pm(n)}}function xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sg(){for(var e=window,t=Fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fs(e.document)}return t}function rd(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 yx(e){var t=Sg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xg(n.ownerDocument.documentElement,n)){if(r!==null&&rd(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 i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Mm(n,a);var o=Mm(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var bx=an&&"documentMode"in document&&11>=document.documentMode,Dr=null,pc=null,Xi=null,fc=!1;function Bm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fc||Dr==null||Dr!==Fs(r)||(r=Dr,"selectionStart"in r&&rd(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}),Xi&&ha(Xi,r)||(Xi=r,r=Js(pc,"onSelect"),0<r.length&&(t=new ed("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function rs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:rs("Animation","AnimationEnd"),animationiteration:rs("Animation","AnimationIteration"),animationstart:rs("Animation","AnimationStart"),transitionend:rs("Transition","TransitionEnd")},fl={},jg={};an&&(jg=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Co(e){if(fl[e])return fl[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jg)return fl[e]=t[n];return e}var kg=Co("animationend"),Eg=Co("animationiteration"),Ag=Co("animationstart"),Tg=Co("transitionend"),_g=new Map,$m="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 Pn(e,t){_g.set(e,t),dr(t,[e])}for(var gl=0;gl<$m.length;gl++){var vl=$m[gl],wx=vl.toLowerCase(),xx=vl[0].toUpperCase()+vl.slice(1);Pn(wx,"on"+xx)}Pn(kg,"onAnimationEnd");Pn(Eg,"onAnimationIteration");Pn(Ag,"onAnimationStart");Pn("dblclick","onDoubleClick");Pn("focusin","onFocus");Pn("focusout","onBlur");Pn(Tg,"onTransitionEnd");ti("onMouseEnter",["mouseout","mouseover"]);ti("onMouseLeave",["mouseout","mouseover"]);ti("onPointerEnter",["pointerout","pointerover"]);ti("onPointerLeave",["pointerout","pointerover"]);dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37dr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dr("onBeforeInput",["compositionend","keypress","textInput","paste"]);dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="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(" "),Sx=new Set("cancel close invalid load scroll toggle".split(" ").concat($i));function Um(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ww(r,t,void 0,e),e.currentTarget=null}function Cg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&i.isPropagationStopped())break e;Um(i,l,u),a=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&i.isPropagationStopped())break e;Um(i,l,u),a=c}}}if(Ws)throw e=uc,Ws=!1,uc=null,e}function fe(e,t){var n=t[wc];n===void 0&&(n=t[wc]=new Set);var r=e+"__bubble";n.has(r)||(Ng(t,e,2,!1),n.add(r))}function yl(e,t,n){var r=0;t&&(r|=4),Ng(n,e,r,t)}var is="_reactListening"+Math.random().toString(36).slice(2);function pa(e){if(!e[is]){e[is]=!0,Mf.forEach(function(n){n!=="selectionchange"&&(Sx.has(n)||yl(n,!1,e),yl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[is]||(t[is]=!0,yl("selectionchange",!1,t))}}function Ng(e,t,n,r){switch(hg(t)){case 1:var i=Pw;break;case 4:i=Mw;break;default:i=Xu}n=i.bind(null,t,n,e),i=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function bl(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Yn(l),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue e}l=l.parentNode}}r=r.return}Zf(function(){var u=a,d=Ku(n),h=[];e:{var m=_g.get(e);if(m!==void 0){var p=ed,f=e;switch(e){case"keypress":if(Ts(n)===0)break e;case"keydown":case"keyup":p=Xw;break;case"focusin":f="focus",p=ml;break;case"focusout":f="blur",p=ml;break;case"beforeblur":case"afterblur":p=ml;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Uw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=tx;break;case kg:case Eg:case Ag:p=zw;break;case Tg:p=rx;break;case"scroll":p=Bw;break;case"wheel":p=ax;break;case"copy":case"cut":case"paste":p=Vw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Nm}var v=(t&4)!==0,x=!v&&e==="scroll",y=v?m!==null?m+"Capture":null:m;v=[];for(var g=u,b;g!==null;){b=g;var j=b.stateNode;if(b.tag===5&&j!==null&&(b=j,y!==null&&(j=la(g,y),j!=null&&v.push(fa(g,j,b)))),x)break;g=g.return}0<v.length&&(m=new p(m,f,null,n,d),h.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==oc&&(f=n.relatedTarget||n.fromElement)&&(Yn(f)||f[sn]))break e;if((p||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,p?(f=n.relatedTarget||n.toElement,p=u,f=f?Yn(f):null,f!==null&&(x=mr(f),f!==x||f.tag!==5&&f.tag!==6)&&(f=null)):(p=null,f=u),p!==f)){if(v=_m,j="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Nm,j="onPointerLeave",y="onPointerEnter",g="pointer"),x=p==null?m:Mr(p),b=f==null?m:Mr(f),m=new v(j,g+"leave",p,n,d),m.target=x,m.relatedTarget=b,j=null,Yn(d)===u&&(v=new v(y,g+"enter",f,n,d),v.target=b,v.relatedTarget=x,j=v),x=j,p&&f)t:{for(v=p,y=f,g=0,b=v;b;b=yr(b))g++;for(b=0,j=y;j;j=yr(j))b++;for(;0<g-b;)v=yr(v),g--;for(;0<b-g;)y=yr(y),b--;for(;g--;){if(v===y||y!==null&&v===y.alternate)break t;v=yr(v),y=yr(y)}v=null}else v=null;p!==null&&qm(h,m,p,v,!1),f!==null&&x!==null&&qm(h,x,f,v,!0)}}
vendor: 6,381 bytes, lines 37-38
37e:{if(m=u?Mr(u):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var A=mx;else if(Im(m))if(bg)A=gx;else{A=px;var S=hx}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(A=fx);if(A&&(A=A(e,u))){yg(h,A,n,d);break e}S&&S(e,m,u),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&nc(m,"number",m.value)}switch(S=u?Mr(u):window,e){case"focusin":(Im(S)||S.contentEditable==="true")&&(Dr=S,pc=u,Xi=null);break;case"focusout":Xi=pc=Dr=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,Bm(h,n,d);break;case"selectionchange":if(bx)break;case"keydown":case"keyup":Bm(h,n,d)}var k;if(nd)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Lr?gg(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(fg&&n.locale!=="ko"&&(Lr||E!=="onCompositionStart"?E==="onCompositionEnd"&&Lr&&(k=pg()):(Sn=d,Zu="value"in Sn?Sn.value:Sn.textContent,Lr=!0)),S=Js(u,E),0<S.length&&(E=new Cm(E,e,null,n,d),h.push({event:E,listeners:S}),k?E.data=k:(k=vg(n),k!==null&&(E.data=k)))),(k=ox?lx(e,n):cx(e,n))&&(u=Js(u,"onBeforeInput"),0<u.length&&(d=new Cm("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=k))}Cg(h,t)})}function fa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Js(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=la(e,n),a!=null&&r.unshift(fa(e,a,i)),a=la(e,t),a!=null&&r.push(fa(e,a,i))),e=e.return}return r}function yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qm(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,i?(c=la(n,a),c!=null&&o.unshift(fa(n,c,l))):i||(c=la(n,a),c!=null&&o.push(fa(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jx=/\r\n?/g,kx=/\u0000|\uFFFD/g;function Fm(e){return(typeof e=="string"?e:""+e).replace(jx,`
38`).replace(kx,"")}function as(e,t,n){if(t=Fm(t),Fm(e)!==t&&n)throw Error(O(425))}function Ys(){}var gc=null,vc=null;function yc(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 bc=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,zm=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof zm!="undefined"?function(e){return zm.resolve(null).then(e).catch(Tx)}:bc;function Tx(e){setTimeout(function(){throw e})}function wl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),da(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);da(t)}function _n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ui=Math.random().toString(36).slice(2),Vt="__reactFiber$"+ui,ga="__reactProps$"+ui,sn="__reactContainer$"+ui,wc="__reactEvents$"+ui,_x="__reactListeners$"+ui,Cx="__reactHandles$"+ui;function Yn(e){var t=e[Vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sn]||n[Vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wm(e);e!==null;){if(n=e[Vt])return n;e=Wm(e)}return t}e=n,n=e.parentNode}return null}function Ba(e){return e=e[Vt]||e[sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function No(e){return e[ga]||null}var xc=[],Br=-1;function Mn(e){return{current:e}}function ge(e){0>Br||(e.current=xc[Br],xc[Br]=null,Br--)}function he(e,t){Br++,xc[Br]=e.current,e.current=t}var Dn={},Ge=Mn(Dn),rt=Mn(!1),ar=Dn;function ni(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function it(e){return e=e.childContextTypes,e!=null}function Qs(){ge(rt),ge(Ge)}function Vm(e,t,n){if(Ge.current!==Dn)throw Error(O(168));he(Ge,t),he(rt,n)}function Rg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,hw(e)||"Unknown",i));return xe({},n,r)}function Xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ar=Ge.current,he(Ge,e),he(rt,rt.current),!0}function Hm(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Rg(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,ge(rt),ge(Ge),he(Ge,e)):ge(rt),he(rt,n)}var Zt=null,Ro=!1,xl=!1;function Og(e){Zt===null?Zt=[e]:Zt.push(e)}function Nx(e){Ro=!0,Og(e)}function Bn(){if(!xl&&Zt!==null){xl=!0;var e=0,t=ue;try{var n=Zt;for(ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zt=null,Ro=!1}catch(i){throw Zt!==null&&(Zt=Zt.slice(e+1)),rg(Ju,Bn),i}finally{ue=t,xl=!1}}return null}var $r=[],Ur=0,Zs=null,eo=0,vt=[],yt=0,sr=null,en=1,tn="";function Wn(e,t){$r[Ur++]=eo,$r[Ur++]=Zs,Zs=e,eo=t}function Ig(e,t,n){vt[yt++]=en,vt[yt++]=tn,vt[yt++]=sr,sr=e;var r=en;e=tn;var i=32-Mt(r)-1;r&=~(1<<i),n+=1;var a=32-Mt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,en=1<<32-Mt(t)+i|n<<i|r,tn=a+e}else en=1<<a|n<<i|r,tn=e}function id(e){e.return!==null&&(Wn(e,1),Ig(e,1,0))}function ad(e){for(;e===Zs;)Zs=$r[--Ur],$r[Ur]=null,eo=$r[--Ur],$r[Ur]=null;for(;e===sr;)sr=vt[--yt],vt[yt]=null,tn=vt[--yt],vt[yt]=null,en=vt[--yt],vt[yt]=null}var dt=null,ut=null,ve=!1,It=null;function Lg(e,t){var n=wt(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 Gm(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 26,851 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dt=e,ut=_n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dt=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sr!==null?{id:en,overflow:tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,dt=e,ut=null,!0):!1;default:return!1}}function Sc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function jc(e){if(ve){var t=ut;if(t){var n=t;if(!Gm(e,t)){if(Sc(e))throw Error(O(418));t=_n(n.nextSibling);var r=dt;t&&Gm(e,t)?Lg(r,n):(e.flags=e.flags&-4097|2,ve=!1,dt=e)}}else{if(Sc(e))throw Error(O(418));e.flags=e.flags&-4097|2,ve=!1,dt=e}}}function Km(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dt=e}function ss(e){if(e!==dt)return!1;if(!ve)return Km(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yc(e.type,e.memoizedProps)),t&&(t=ut)){if(Sc(e))throw Dg(),Error(O(418));for(;t;)Lg(e,t),t=_n(t.nextSibling)}if(Km(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=_n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=dt?_n(e.stateNode.nextSibling):null;return!0}function Dg(){for(var e=ut;e;)e=_n(e.nextSibling)}function ri(){ut=dt=null,ve=!1}function sd(e){It===null?It=[e]:It.push(e)}var Rx=cn.ReactCurrentBatchConfig;function _i(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(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function os(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jm(e){var t=e._init;return t(e._payload)}function Pg(e){function t(y,g){if(e){var b=y.deletions;b===null?(y.deletions=[g],y.flags|=16):b.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=On(y,g),y.index=0,y.sibling=null,y}function a(y,g,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<g?(y.flags|=2,g):b):(y.flags|=2,g)):(y.flags|=1048576,g)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,g,b,j){return g===null||g.tag!==6?(g=_l(b,y.mode,j),g.return=y,g):(g=i(g,b),g.return=y,g)}function c(y,g,b,j){var A=b.type;return A===Ir?d(y,g,b.props.children,j,b.key):g!==null&&(g.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===pn&&Jm(A)===g.type)?(j=i(g,b.props),j.ref=_i(y,g,b),j.return=y,j):(j=Ls(b.type,b.key,b.props,null,y.mode,j),j.ref=_i(y,g,b),j.return=y,j)}function u(y,g,b,j){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Cl(b,y.mode,j),g.return=y,g):(g=i(g,b.children||[]),g.return=y,g)}function d(y,g,b,j,A){return g===null||g.tag!==7?(g=nr(b,y.mode,j,A),g.return=y,g):(g=i(g,b),g.return=y,g)}function h(y,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=_l(""+g,y.mode,b),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ya:return b=Ls(g.type,g.key,g.props,null,y.mode,b),b.ref=_i(y,null,g),b.return=y,b;case Or:return g=Cl(g,y.mode,b),g.return=y,g;case pn:var j=g._init;return h(y,j(g._payload),b)}if(Mi(g)||ji(g))return g=nr(g,y.mode,b,null),g.return=y,g;os(y,g)}return null}function m(y,g,b,j){var A=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return A!==null?null:l(y,g,""+b,j);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ya:return b.key===A?c(y,g,b,j):null;case Or:return b.key===A?u(y,g,b,j):null;case pn:return A=b._init,m(y,g,A(b._payload),j)}if(Mi(b)||ji(b))return A!==null?null:d(y,g,b,j,null);os(y,b)}return null}function p(y,g,b,j,A){if(typeof j=="string"&&j!==""||typeof j=="number")return y=y.get(b)||null,l(g,y,""+j,A);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ya:return y=y.get(j.key===null?b:j.key)||null,c(g,y,j,A);case Or:return y=y.get(j.key===null?b:j.key)||null,u(g,y,j,A);case pn:var S=j._init;return p(y,g,b,S(j._payload),A)}if(Mi(j)||ji(j))return y=y.get(b)||null,d(g,y,j,A,null);os(g,j)}return null}function f(y,g,b,j){for(var A=null,S=null,k=g,E=g=0,I=null;k!==null&&E<b.length;E++){k.index>E?(I=k,k=null):I=k.sibling;var $=m(y,k,b[E],j);if($===null){k===null&&(k=I);break}e&&k&&$.alternate===null&&t(y,k),g=a($,g,E),S===null?A=$:S.sibling=$,S=$,k=I}if(E===b.length)return n(y,k),ve&&Wn(y,E),A;if(k===null){for(;E<b.length;E++)k=h(y,b[E],j),k!==null&&(g=a(k,g,E),S===null?A=k:S.sibling=k,S=k);return ve&&Wn(y,E),A}for(k=r(y,k);E<b.length;E++)I=p(k,y,E,b[E],j),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?E:I.key),g=a(I,g,E),S===null?A=I:S.sibling=I,S=I);return e&&k.forEach(function(D){return t(y,D)}),ve&&Wn(y,E),A}function v(y,g,b,j){var A=ji(b);if(typeof A!="function")throw Error(O(150));if(b=A.call(b),b==null)throw Error(O(151));for(var S=A=null,k=g,E=g=0,I=null,$=b.next();k!==null&&!$.done;E++,$=b.next()){k.index>E?(I=k,k=null):I=k.sibling;var D=m(y,k,$.value,j);if(D===null){k===null&&(k=I);break}e&&k&&D.alternate===null&&t(y,k),g=a(D,g,E),S===null?A=D:S.sibling=D,S=D,k=I}if($.done)return n(y,k),ve&&Wn(y,E),A;if(k===null){for(;!$.done;E++,$=b.next())$=h(y,$.value,j),$!==null&&(g=a($,g,E),S===null?A=$:S.sibling=$,S=$);return ve&&Wn(y,E),A}for(k=r(y,k);!$.done;E++,$=b.next())$=p(k,y,E,$.value,j),$!==null&&(e&&$.alternate!==null&&k.delete($.key===null?E:$.key),g=a($,g,E),S===null?A=$:S.sibling=$,S=$);return e&&k.forEach(function(W){return t(y,W)}),ve&&Wn(y,E),A}function x(y,g,b,j){if(typeof b=="object"&&b!==null&&b.type===Ir&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ya:e:{for(var A=b.key,S=g;S!==null;){if(S.key===A){if(A=b.type,A===Ir){if(S.tag===7){n(y,S.sibling),g=i(S,b.props.children),g.return=y,y=g;break e}}else if(S.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===pn&&Jm(A)===S.type){n(y,S.sibling),g=i(S,b.props),g.ref=_i(y,S,b),g.return=y,y=g;break e}n(y,S);break}else t(y,S);S=S.sibling}b.type===Ir?(g=nr(b.props.children,y.mode,j,b.key),g.return=y,y=g):(j=Ls(b.type,b.key,b.props,null,y.mode,j),j.ref=_i(y,g,b),j.return=y,y=j)}return o(y);case Or:e:{for(S=b.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(y,g.sibling),g=i(g,b.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=Cl(b,y.mode,j),g.return=y,y=g}return o(y);case pn:return S=b._init,x(y,g,S(b._payload),j)}if(Mi(b))return f(y,g,b,j);if(ji(b))return v(y,g,b,j);os(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,b),g.return=y,y=g):(n(y,g),g=_l(b,y.mode,j),g.return=y,y=g),o(y)):n(y,g)}return x}var ii=Pg(!0),Mg=Pg(!1),to=Mn(null),no=null,qr=null,od=null;function ld(){od=qr=no=null}function cd(e){var t=to.current;ge(to),e._currentValue=t}function kc(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 Yr(e,t){no=e,od=qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(od!==e)if(e={context:e,memoizedValue:t,next:null},qr===null){if(no===null)throw Error(O(308));qr=e,no.dependencies={lanes:0,firstContext:e}}else qr=qr.next=e;return t}var Qn=null;function ud(e){Qn===null?Qn=[e]:Qn.push(e)}function Bg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ud(t)):(n.next=i.next,i.next=n),t.interleaved=n,on(e,r)}function on(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 fn=!1;function dd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $g(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,on(e,n)}return i=r.interleaved,i===null?(t.next=t,ud(r)):(t.next=i.next,i.next=t),r.interleaved=t,on(e,n)}function _s(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,Yu(e,n)}}function Ym(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 ro(e,t,n,r){var i=e.updateQueue;fn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?a=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(a!==null){var h=i.baseState;o=0,d=u=c=null,l=a;do{var m=l.lane,p=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var f=e,v=l;switch(m=t,p=n,v.tag){case 1:if(f=v.payload,typeof f=="function"){h=f.call(p,h,m);break e}h=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=v.payload,m=typeof f=="function"?f.call(p,h,m):f,m==null)break e;h=xe({},h,m);break e;case 2:fn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=h):d=d.next=p,o|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);lr|=o,e.lanes=o,e.memoizedState=h}}function Qm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var $a={},Gt=Mn($a),va=Mn($a),ya=Mn($a);function Xn(e){if(e===$a)throw Error(O(174));return e}function md(e,t){switch(he(ya,t),he(va,e),he(Gt,$a),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ic(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ic(t,e)}ge(Gt),he(Gt,t)}function ai(){ge(Gt),ge(va),ge(ya)}function Ug(e){Xn(ya.current);var t=Xn(Gt.current),n=ic(t,e.type);t!==n&&(he(va,e),he(Gt,n))}function hd(e){va.current===e&&(ge(Gt),ge(va))}var be=Mn(0);function io(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 Sl=[];function pd(){for(var e=0;e<Sl.length;e++)Sl[e]._workInProgressVersionPrimary=null;Sl.length=0}var Cs=cn.ReactCurrentDispatcher,jl=cn.ReactCurrentBatchConfig,or=0,we=null,Oe=null,De=null,ao=!1,Zi=!1,ba=0,Ox=0;function ze(){throw Error(O(321))}function fd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ut(e[n],t[n]))return!1;return!0}function gd(e,t,n,r,i,a){if(or=a,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cs.current=e===null||e.memoizedState===null?Px:Mx,e=n(r,i),Zi){a=0;do{if(Zi=!1,ba=0,25<=a)throw Error(O(301));a+=1,De=Oe=null,t.updateQueue=null,Cs.current=Bx,e=n(r,i)}while(Zi)}if(Cs.current=so,t=Oe!==null&&Oe.next!==null,or=0,De=Oe=we=null,ao=!1,t)throw Error(O(300));return e}function vd(){var e=ba!==0;return ba=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?we.memoizedState=De=e:De=De.next=e,De}function jt(){if(Oe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=De===null?we.memoizedState:De.next;if(t!==null)De=t,Oe=e;else{if(e===null)throw Error(O(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},De===null?we.memoizedState=De=e:De=De.next=e}return De}function wa(e,t){return typeof t=="function"?t(e):t}function kl(e){var t=jt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Oe,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var l=o=null,c=null,u=a;do{var d=u.lane;if((or&d)===d)c!==null&&(c=c.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 h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=r):c=c.next=h,we.lanes|=d,lr|=d}u=u.next}while(u!==null&&u!==a);c===null?o=r:c.next=l,Ut(r,t.memoizedState)||(nt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,we.lanes|=a,lr|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function El(e){var t=jt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ut(a,t.memoizedState)||(nt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function qg(){}function Fg(e,t){var n=we,r=jt(),i=t(),a=!Ut(r.memoizedState,i);if(a&&(r.memoizedState=i,nt=!0),r=r.queue,yd(Vg.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,xa(9,Wg.bind(null,n,r,i,t),void 0,null),Pe===null)throw Error(O(349));or&30||zg(n,t,i)}return i}function zg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wg(e,t,n,r){t.value=n,t.getSnapshot=r,Hg(t)&&Gg(e)}function Vg(e,t,n){return n(function(){Hg(t)&&Gg(e)})}function Hg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ut(e,n)}catch{return!0}}function Gg(e){var t=on(e,1);t!==null&&Bt(t,e,1,-1)}function Xm(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Dx.bind(null,we,e),[t.memoizedState,e]}function xa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.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 Kg(){return jt().memoizedState}function Ns(e,t,n,r){var i=Wt();we.flags|=e,i.memoizedState=xa(1|t,n,void 0,r===void 0?null:r)}function Oo(e,t,n,r){var i=jt();r=r===void 0?null:r;var a=void 0;if(Oe!==null){var o=Oe.memoizedState;if(a=o.destroy,r!==null&&fd(r,o.deps)){i.memoizedState=xa(t,n,a,r);return}}we.flags|=e,i.memoizedState=xa(1|t,n,a,r)}function Zm(e,t){return Ns(8390656,8,e,t)}function yd(e,t){return Oo(2048,8,e,t)}function Jg(e,t){return Oo(4,2,e,t)}function Yg(e,t){return Oo(4,4,e,t)}function Qg(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 Xg(e,t,n){return n=n!=null?n.concat([e]):null,Oo(4,4,Qg.bind(null,t,e),n)}function bd(){}function Zg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ev(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tv(e,t,n){return or&21?(Ut(n,t)||(n=sg(),we.lanes|=n,lr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=n)}function Ix(e,t){var n=ue;ue=n!==0&&4>n?n:4,e(!0);var r=jl.transition;jl.transition={};try{e(!1),t()}finally{ue=n,jl.transition=r}}function nv(){return jt().memoizedState}function Lx(e,t,n){var r=Rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rv(e))iv(t,n);else if(n=Bg(e,t,n,r),n!==null){var i=Je();Bt(n,e,r,i),av(n,t,r)}}function Dx(e,t,n){var r=Rn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rv(e))iv(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ut(l,o)){var c=t.interleaved;c===null?(i.next=i,ud(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Bg(e,t,i,r),n!==null&&(i=Je(),Bt(n,e,r,i),av(n,t,r))}}function rv(e){var t=e.alternate;return e===we||t!==null&&t===we}function iv(e,t){Zi=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function av(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yu(e,n)}}var so={readContext:St,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},Px={readContext:St,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Zm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4194308,4,Qg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=Lx.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Xm,useDebugValue:bd,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Xm(!1),t=e[0];return e=Ix.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Wt();if(ve){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Pe===null)throw Error(O(349));or&30||zg(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Zm(Vg.bind(null,r,a,e),[e]),r.flags|=2048,xa(9,Wg.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Pe.identifierPrefix;if(ve){var n=tn,r=en;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ba++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ox++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mx={readContext:St,useCallback:Zg,useContext:St,useEffect:yd,useImperativeHandle:Xg,useInsertionEffect:Jg,useLayoutEffect:Yg,useMemo:ev,useReducer:kl,useRef:Kg,useState:function(){return kl(wa)},useDebugValue:bd,useDeferredValue:function(e){var t=jt();return tv(t,Oe.memoizedState,e)},useTransition:function(){var e=kl(wa)[0],t=jt().memoizedState;return[e,t]},useMutableSource:qg,useSyncExternalStore:Fg,useId:nv,unstable_isNewReconciler:!1},Bx={readContext:St,useCallback:Zg,useContext:St,useEffect:yd,useImperativeHandle:Xg,useInsertionEffect:Jg,useLayoutEffect:Yg,useMemo:ev,useReducer:El,useRef:Kg,useState:function(){return El(wa)},useDebugValue:bd,useDeferredValue:function(e){var t=jt();return Oe===null?t.memoizedState=e:tv(t,Oe.memoizedState,e)},useTransition:function(){var e=El(wa)[0],t=jt().memoizedState;return[e,t]},useMutableSource:qg,useSyncExternalStore:Fg,useId:nv,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ec(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Io={isMounted:function(e){return(e=e._reactInternals)?mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),i=Rn(e),a=rn(r,i);a.payload=t,n!=null&&(a.callback=n),t=Cn(e,a,i),t!==null&&(Bt(t,e,i,r),_s(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),i=Rn(e),a=rn(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Cn(e,a,i),t!==null&&(Bt(t,e,i,r),_s(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=Rn(e),i=rn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Cn(e,i,r),t!==null&&(Bt(t,e,r,n),_s(t,e,r))}};function eh(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!ha(n,r)||!ha(i,a):!0}function sv(e,t,n){var r=!1,i=Dn,a=t.contextType;return typeof a=="object"&&a!==null?a=St(a):(i=it(t)?ar:Ge.current,r=t.contextTypes,a=(r=r!=null)?ni(e,i):Dn),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Io,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function th(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&&Io.enqueueReplaceState(t,t.state,null)}function Ac(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},dd(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=St(a):(a=it(t)?ar:Ge.current,i.context=ni(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Ec(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Io.enqueueReplaceState(i,i.state,null),ro(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function si(e,t){try{var n="",r=t;do n+=mw(r),r=r.return;while(r);var i=n}catch(a){i=`
39Error generating stack: `+a.message+`
40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Al(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Tc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $x=typeof WeakMap=="function"?WeakMap:Map;function ov(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lo||(lo=!0,Mc=r),Tc(e,t)},n}function lv(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Tc(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Tc(e,t),typeof r!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function nh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $x;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Zx.bind(null,e,t,n),t.then(e,e))}function rh(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 ih(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=rn(-1,1),t.tag=2,Cn(n,t,1))),n.lanes|=1),e)}var Ux=cn.ReactCurrentOwner,nt=!1;function Ke(e,t,n,r){t.child=e===null?Mg(t,null,n,r):ii(t,e.child,n,r)}function ah(e,t,n,r,i){n=n.render;var a=t.ref;return Yr(t,i),r=gd(e,t,n,r,a,i),n=vd(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(ve&&n&&id(t),t.flags|=1,Ke(e,t,r,i),t.child)}function sh(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Td(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,cv(e,t,a,r,i)):(e=Ls(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:ha,n(o,r)&&e.ref===t.ref)return ln(e,t,i)}return t.flags|=1,e=On(a,r),e.ref=t.ref,e.return=t,t.child=e}function cv(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(ha(a,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(nt=!0);else return t.lanes=e.lanes,ln(e,t,i)}return _c(e,t,n,r,i)}function uv(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},he(zr,lt),lt|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,he(zr,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,he(zr,lt),lt|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,he(zr,lt),lt|=r;return Ke(e,t,i,n),t.child}function dv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,638 bytes, line 40
40function _c(e,t,n,r,i){var a=it(n)?ar:Ge.current;return a=ni(t,a),Yr(t,i),n=gd(e,t,n,r,a,i),r=vd(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(ve&&r&&id(t),t.flags|=1,Ke(e,t,n,i),t.child)}function oh(e,t,n,r,i){if(it(n)){var a=!0;Xs(t)}else a=!1;if(Yr(t,i),t.stateNode===null)Rs(e,t),sv(t,n,r),Ac(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=St(u):(u=it(n)?ar:Ge.current,u=ni(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&th(t,o,r,u),fn=!1;var m=t.memoizedState;o.state=m,ro(t,r,o,i),c=t.memoizedState,l!==r||m!==c||rt.current||fn?(typeof d=="function"&&(Ec(t,n,d,r),c=t.memoizedState),(l=fn||eh(t,n,l,r,m,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,$g(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ct(t.type,l),o.props=u,h=t.pendingProps,m=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=St(c):(c=it(n)?ar:Ge.current,c=ni(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||m!==c)&&th(t,o,r,c),fn=!1,m=t.memoizedState,o.state=m,ro(t,r,o,i);var f=t.memoizedState;l!==h||m!==f||rt.current||fn?(typeof p=="function"&&(Ec(t,n,p,r),f=t.memoizedState),(u=fn||eh(t,n,u,r,m,f,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Cc(e,t,n,r,a,i)}function Cc(e,t,n,r,i,a){dv(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Hm(t,n,!1),ln(e,t,a);r=t.stateNode,Ux.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ii(t,e.child,null,a),t.child=ii(t,null,l,a)):Ke(e,t,l,a),t.memoizedState=r.state,i&&Hm(t,n,!0),t.child}function mv(e){var t=e.stateNode;t.pendingContext?Vm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vm(e,t.context,!1),md(e,t.containerInfo)}function lh(e,t,n,r,i){return ri(),sd(i),t.flags|=256,Ke(e,t,n,r),t.child}var Nc={dehydrated:null,treeContext:null,retryLane:0};function Rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function hv(e,t,n){var r=t.pendingProps,i=be.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),he(be,i&1),e===null)return jc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Po(o,r,0,null),e=nr(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Rc(n),t.memoizedState=Nc,e):wd(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return qx(e,t,o,r,l,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=On(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=On(l,a):(a=nr(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Nc,r}return a=e.child,e=a.sibling,r=On(a,{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 wd(e,t){return t=Po({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ls(e,t,n,r){return r!==null&&sd(r),ii(t,e.child,null,n),e=wd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qx(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=Al(Error(O(422))),ls(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Po({mode:"visible",children:r.children},i,0,null),a=nr(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&ii(t,e.child,null,o),t.child.memoizedState=Rc(o),t.memoizedState=Nc,a);if(!(t.mode&1))return ls(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(O(419)),r=Al(a,r,void 0),ls(e,t,o,r)}if(l=(o&e.childLanes)!==0,nt||l){if(r=Pe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,on(e,i),Bt(r,e,i,-1))}return Ad(),r=Al(Error(O(421))),ls(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=e0.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ut=_n(i.nextSibling),dt=t,ve=!0,It=null,e!==null&&(vt[yt++]=en,vt[yt++]=tn,vt[yt++]=sr,en=e.id,tn=e.overflow,sr=t),t=wd(t,r.children),t.flags|=4096,t)}
vendor: 1,383 bytes, line 40
40function ch(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),kc(e.return,t,n)}function Tl(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function pv(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ke(e,t,r.children,n),r=be.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&&ch(e,n,t);else if(e.tag===19)ch(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(he(be,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tl(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tl(t,!0,n,null,a);break;case"together":Tl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}
vendor: 5,211 bytes, line 40
40function ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fx(e,t,n){switch(t.tag){case 3:mv(t),ri();break;case 5:Ug(t);break;case 1:it(t.type)&&Xs(t);break;case 4:md(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;he(to,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?hv(e,t,n):(he(be,be.current&1),e=ln(e,t,n),e!==null?e.sibling:null);he(be,be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pv(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),he(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,uv(e,t,n)}return ln(e,t,n)}var fv,Oc,gv,vv;fv=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}};Oc=function(){};gv=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xn(Gt.current);var a=null;switch(n){case"input":i=ec(e,i),r=ec(e,r),a=[];break;case"select":i=xe({},i,{value:void 0}),r=xe({},r,{value:void 0}),a=[];break;case"textarea":i=rc(e,i),r=rc(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ys)}ac(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(sa.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(sa.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&fe("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};vv=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ci(e,t){if(!ve)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 We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zx(e,t,n){var r=t.pendingProps;switch(ad(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return it(t.type)&&Qs(),We(t),null;case 3:return r=t.stateNode,ai(),ge(rt),ge(Ge),pd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ss(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,It!==null&&(Uc(It),It=null))),Oc(e,t),We(t),null;case 5:hd(t);var i=Xn(ya.current);if(n=t.type,e!==null&&t.stateNode!=null)gv(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return We(t),null}if(e=Xn(Gt.current),ss(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Vt]=t,r[ga]=a,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(i=0;i<$i.length;i++)fe($i[i],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":ym(r,a),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},fe("invalid",r);break;case"textarea":wm(r,a),fe("invalid",r)}ac(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&as(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&as(r.textContent,l,e),i=["children",""+l]):sa.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&fe("scroll",r)}
vendor: 32,128 bytes, line 40
40switch(n){case"input":Qa(r),bm(r,a,!0);break;case"textarea":Qa(r),xm(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Ys)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Vf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Vt]=t,e[ga]=r,fv(e,t,!1,!1),t.stateNode=e;e:{switch(o=sc(n,r),n){case"dialog":fe("cancel",e),fe("close",e),i=r;break;case"iframe":case"object":case"embed":fe("load",e),i=r;break;case"video":case"audio":for(i=0;i<$i.length;i++)fe($i[i],e);i=r;break;case"source":fe("error",e),i=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),i=r;break;case"details":fe("toggle",e),i=r;break;case"input":ym(e,r),i=ec(e,r),fe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=xe({},r,{value:void 0}),fe("invalid",e);break;case"textarea":wm(e,r),i=rc(e,r),fe("invalid",e);break;default:i=r}ac(n,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?Kf(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Hf(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&oa(e,c):typeof c=="number"&&oa(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(sa.hasOwnProperty(a)?c!=null&&a==="onScroll"&&fe("scroll",e):c!=null&&Wu(e,a,c,o))}switch(n){case"input":Qa(e),bm(e,r,!1);break;case"textarea":Qa(e),xm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Hr(e,!!r.multiple,a,!1):r.defaultValue!=null&&Hr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ys)}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 We(t),null;case 6:if(e&&t.stateNode!=null)vv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Xn(ya.current),Xn(Gt.current),ss(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vt]=t,(a=r.nodeValue!==n)&&(e=dt,e!==null))switch(e.tag){case 3:as(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&as(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vt]=t,t.stateNode=r}return We(t),null;case 13:if(ge(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&ut!==null&&t.mode&1&&!(t.flags&128))Dg(),ri(),t.flags|=98560,a=!1;else if(a=ss(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(O(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(O(317));a[Vt]=t}else ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),a=!1}else It!==null&&(Uc(It),It=null),a=!0;if(!a)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||be.current&1?Ie===0&&(Ie=3):Ad())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return ai(),Oc(e,t),e===null&&pa(t.stateNode.containerInfo),We(t),null;case 10:return cd(t.type._context),We(t),null;case 17:return it(t.type)&&Qs(),We(t),null;case 19:if(ge(be),a=t.memoizedState,a===null)return We(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Ci(a,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(e),o!==null){for(t.flags|=128,Ci(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return he(be,be.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ae()>oi&&(t.flags|=128,r=!0,Ci(a,!1),t.lanes=4194304)}else{if(!r)if(e=io(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ve)return We(t),null}else 2*Ae()-a.renderingStartTime>oi&&n!==1073741824&&(t.flags|=128,r=!0,Ci(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ae(),t.sibling=null,n=be.current,he(be,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Ed(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Wx(e,t){switch(ad(t),t.tag){case 1:return it(t.type)&&Qs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ai(),ge(rt),ge(Ge),pd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hd(t),null;case 13:if(ge(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(be),null;case 4:return ai(),null;case 10:return cd(t.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var cs=!1,He=!1,Vx=typeof WeakSet=="function"?WeakSet:Set,z=null;function Fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Ic(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var uh=!1;function Hx(e,t){if(gc=Gs,e=Sg(),rd(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 i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var p;h!==n||i!==0&&h.nodeType!==3||(l=o+i),h!==a||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(p=h.firstChild)!==null;)m=h,h=p;for(;;){if(h===e)break t;if(m===n&&++u===i&&(l=o),m===a&&++d===r&&(c=o),(p=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(vc={focusedElem:e,selectionRange:n},Gs=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var v=f.memoizedProps,x=f.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ct(t.type,v),x);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(j){Ee(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return f=uh,uh=!1,f}function ea(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Ic(t,n,a)}i=i.next}while(i!==r)}}function Lo(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 Lc(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 yv(e){var t=e.alternate;t!==null&&(e.alternate=null,yv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[ga],delete t[wc],delete t[_x],delete t[Cx])),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 bv(e){return e.tag===5||e.tag===3||e.tag===4}function dh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bv(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 Dc(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=Ys));else if(r!==4&&(e=e.child,e!==null))for(Dc(e,t,n),e=e.sibling;e!==null;)Dc(e,t,n),e=e.sibling}function Pc(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(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}var Ue=null,Rt=!1;function mn(e,t,n){for(n=n.child;n!==null;)wv(e,t,n),n=n.sibling}function wv(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Ao,n)}catch{}switch(n.tag){case 5:He||Fr(n,t);case 6:var r=Ue,i=Rt;Ue=null,mn(e,t,n),Ue=r,Rt=i,Ue!==null&&(Rt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Rt?(e=Ue,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),da(e)):wl(Ue,n.stateNode));break;case 4:r=Ue,i=Rt,Ue=n.stateNode.containerInfo,Rt=!0,mn(e,t,n),Ue=r,Rt=i;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Ic(n,t,o),i=i.next}while(i!==r)}mn(e,t,n);break;case 1:if(!He&&(Fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ee(n,t,l)}mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,mn(e,t,n),He=r):mn(e,t,n);break;default:mn(e,t,n)}}function mh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vx),t.forEach(function(r){var i=t0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Ue=l.stateNode,Rt=!1;break e;case 3:Ue=l.stateNode.containerInfo,Rt=!0;break e;case 4:Ue=l.stateNode.containerInfo,Rt=!0;break e}l=l.return}if(Ue===null)throw Error(O(160));wv(a,o,i),Ue=null,Rt=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xv(t,e),t=t.sibling}function xv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),zt(e),r&4){try{ea(3,e,e.return),Lo(3,e)}catch(v){Ee(e,e.return,v)}try{ea(5,e,e.return)}catch(v){Ee(e,e.return,v)}}break;case 1:Tt(t,e),zt(e),r&512&&n!==null&&Fr(n,n.return);break;case 5:if(Tt(t,e),zt(e),r&512&&n!==null&&Fr(n,n.return),e.flags&32){var i=e.stateNode;try{oa(i,"")}catch(v){Ee(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&zf(i,a),sc(l,o);var u=sc(l,a);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?Kf(i,h):d==="dangerouslySetInnerHTML"?Hf(i,h):d==="children"?oa(i,h):Wu(i,d,h,u)}switch(l){case"input":tc(i,a);break;case"textarea":Wf(i,a);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Hr(i,!!a.multiple,p,!1):m!==!!a.multiple&&(a.defaultValue!=null?Hr(i,!!a.multiple,a.defaultValue,!0):Hr(i,!!a.multiple,a.multiple?[]:"",!1))}i[ga]=a}catch(v){Ee(e,e.return,v)}}break;case 6:if(Tt(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){Ee(e,e.return,v)}}break;case 3:if(Tt(t,e),zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{da(t.containerInfo)}catch(v){Ee(e,e.return,v)}break;case 4:Tt(t,e),zt(e);break;case 13:Tt(t,e),zt(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(jd=Ae())),r&4&&mh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(He=(u=He)||d,Tt(t,e),He=u):Tt(t,e),zt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(z=e,d=e.child;d!==null;){for(h=z=d;z!==null;){switch(m=z,p=m.child,m.tag){case 0:case 11:case 14:case 15:ea(4,m,m.return);break;case 1:Fr(m,m.return);var f=m.stateNode;if(typeof f.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(v){Ee(r,n,v)}}break;case 5:Fr(m,m.return);break;case 22:if(m.memoizedState!==null){ph(h);continue}}p!==null?(p.return=m,z=p):ph(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Gf("display",o))}catch(v){Ee(e,e.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(v){Ee(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Tt(t,e),zt(e),r&4&&mh(e);break;case 21:break;default:Tt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bv(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(oa(i,""),r.flags&=-33);var a=dh(e);Pc(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=dh(e);Dc(e,l,o);break;default:throw Error(O(161))}}catch(c){Ee(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gx(e,t,n){z=e,Sv(e)}function Sv(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||cs;if(!o){var l=i.alternate,c=l!==null&&l.memoizedState!==null||He;l=cs;var u=He;if(cs=o,(He=c)&&!u)for(z=i;z!==null;)o=z,c=o.child,o.tag===22&&o.memoizedState!==null?fh(i):c!==null?(c.return=o,z=c):fh(i);for(;a!==null;)z=a,Sv(a),a=a.sibling;z=i,cs=l,He=u}hh(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,z=a):hh(e)}}function hh(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:He||Lo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ct(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Qm(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Qm(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.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 h=d.dehydrated;h!==null&&da(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}He||t.flags&512&&Lc(t)}catch(m){Ee(t,t.return,m)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function ph(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function fh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Lo(4,t)}catch(c){Ee(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Ee(t,i,c)}}var a=t.return;try{Lc(t)}catch(c){Ee(t,a,c)}break;case 5:var o=t.return;try{Lc(t)}catch(c){Ee(t,o,c)}}}catch(c){Ee(t,t.return,c)}if(t===e){z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,z=l;break}z=t.return}}var Kx=Math.ceil,oo=cn.ReactCurrentDispatcher,xd=cn.ReactCurrentOwner,xt=cn.ReactCurrentBatchConfig,oe=0,Pe=null,Ce=null,qe=0,lt=0,zr=Mn(0),Ie=0,Sa=null,lr=0,Do=0,Sd=0,ta=null,tt=null,jd=0,oi=1/0,Qt=null,lo=!1,Mc=null,Nn=null,us=!1,jn=null,co=0,na=0,Bc=null,Os=-1,Is=0;function Je(){return oe&6?Ae():Os!==-1?Os:Os=Ae()}function Rn(e){return e.mode&1?oe&2&&qe!==0?qe&-qe:Rx.transition!==null?(Is===0&&(Is=sg()),Is):(e=ue,e!==0||(e=window.event,e=e===void 0?16:hg(e.type)),e):1}function Bt(e,t,n,r){if(50<na)throw na=0,Bc=null,Error(O(185));Pa(e,n,r),(!(oe&2)||e!==Pe)&&(e===Pe&&(!(oe&2)&&(Do|=n),Ie===4&&wn(e,qe)),at(e,r),n===1&&oe===0&&!(t.mode&1)&&(oi=Ae()+500,Ro&&Bn()))}function at(e,t){var n=e.callbackNode;Rw(e,t);var r=Hs(e,e===Pe?qe:0);if(r===0)n!==null&&km(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&km(n),t===1)e.tag===0?Nx(gh.bind(null,e)):Og(gh.bind(null,e)),Ax(function(){!(oe&6)&&Bn()}),n=null;else{switch(og(r)){case 1:n=Ju;break;case 4:n=ig;break;case 16:n=Vs;break;case 536870912:n=ag;break;default:n=Vs}n=Nv(n,jv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jv(e,t){if(Os=-1,Is=0,oe&6)throw Error(O(327));var n=e.callbackNode;if(Qr()&&e.callbackNode!==n)return null;var r=Hs(e,e===Pe?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=uo(e,r);else{t=r;var i=oe;oe|=2;var a=Ev();(Pe!==e||qe!==t)&&(Qt=null,oi=Ae()+500,tr(e,t));do try{Qx();break}catch(l){kv(e,l)}while(!0);ld(),oo.current=a,oe=i,Ce!==null?t=0:(Pe=null,qe=0,t=Ie)}if(t!==0){if(t===2&&(i=dc(e),i!==0&&(r=i,t=$c(e,i))),t===1)throw n=Sa,tr(e,0),wn(e,r),at(e,Ae()),n;if(t===6)wn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Jx(i)&&(t=uo(e,r),t===2&&(a=dc(e),a!==0&&(r=a,t=$c(e,a))),t===1))throw n=Sa,tr(e,0),wn(e,r),at(e,Ae()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Vn(e,tt,Qt);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=jd+500-Ae(),10<t)){if(Hs(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=bc(Vn.bind(null,e,tt,Qt),t);break}Vn(e,tt,Qt);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Mt(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kx(r/1960))-r,10<r){e.timeoutHandle=bc(Vn.bind(null,e,tt,Qt),r);break}Vn(e,tt,Qt);break;case 5:Vn(e,tt,Qt);break;default:throw Error(O(329))}}}return at(e,Ae()),e.callbackNode===n?jv.bind(null,e):null}function $c(e,t){var n=ta;return e.current.memoizedState.isDehydrated&&(tr(e,t).flags|=256),e=uo(e,t),e!==2&&(t=tt,tt=n,t!==null&&Uc(t)),e}function Uc(e){tt===null?tt=e:tt.push.apply(tt,e)}function Jx(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 i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ut(a(),i))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 wn(e,t){for(t&=~Sd,t&=~Do,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function gh(e){if(oe&6)throw Error(O(327));Qr();var t=Hs(e,0);if(!(t&1))return at(e,Ae()),null;var n=uo(e,t);if(e.tag!==0&&n===2){var r=dc(e);r!==0&&(t=r,n=$c(e,r))}if(n===1)throw n=Sa,tr(e,0),wn(e,t),at(e,Ae()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,tt,Qt),at(e,Ae()),null}function kd(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(oi=Ae()+500,Ro&&Bn())}}function cr(e){jn!==null&&jn.tag===0&&!(oe&6)&&Qr();var t=oe;oe|=1;var n=xt.transition,r=ue;try{if(xt.transition=null,ue=1,e)return e()}finally{ue=r,xt.transition=n,oe=t,!(oe&6)&&Bn()}}function Ed(){lt=zr.current,ge(zr)}function tr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ex(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(ad(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qs();break;case 3:ai(),ge(rt),ge(Ge),pd();break;case 5:hd(r);break;case 4:ai();break;case 13:ge(be);break;case 19:ge(be);break;case 10:cd(r.type._context);break;case 22:case 23:Ed()}n=n.return}if(Pe=e,Ce=e=On(e.current,null),qe=lt=t,Ie=0,Sa=null,Sd=Do=lr=0,tt=ta=null,Qn!==null){for(t=0;t<Qn.length;t++)if(n=Qn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Qn=null}return e}function kv(e,t){do{var n=Ce;try{if(ld(),Cs.current=so,ao){for(var r=we.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ao=!1}if(or=0,De=Oe=we=null,Zi=!1,ba=0,xd.current=null,n===null||n.return===null){Ie=1,Sa=t,Ce=null;break}e:{var a=e,o=n.return,l=n,c=t;if(t=qe,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=rh(o);if(p!==null){p.flags&=-257,ih(p,o,l,a,t),p.mode&1&&nh(a,u,t),t=p,c=u;var f=t.updateQueue;if(f===null){var v=new Set;v.add(c),t.updateQueue=v}else f.add(c);break e}else{if(!(t&1)){nh(a,u,t),Ad();break e}c=Error(O(426))}}else if(ve&&l.mode&1){var x=rh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),ih(x,o,l,a,t),sd(si(c,l));break e}}a=c=si(c,l),Ie!==4&&(Ie=2),ta===null?ta=[a]:ta.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=ov(a,c,t);Ym(a,y);break e;case 1:l=c;var g=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Nn===null||!Nn.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var j=lv(a,l,t);Ym(a,j);break e}}a=a.return}while(a!==null)}Tv(n)}catch(A){t=A,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function Ev(){var e=oo.current;return oo.current=so,e===null?so:e}function Ad(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Pe===null||!(lr&268435455)&&!(Do&268435455)||wn(Pe,qe)}function uo(e,t){var n=oe;oe|=2;var r=Ev();(Pe!==e||qe!==t)&&(Qt=null,tr(e,t));do try{Yx();break}catch(i){kv(e,i)}while(!0);if(ld(),oe=n,oo.current=r,Ce!==null)throw Error(O(261));return Pe=null,qe=0,Ie}function Yx(){for(;Ce!==null;)Av(Ce)}function Qx(){for(;Ce!==null&&!Sw();)Av(Ce)}function Av(e){var t=Cv(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?Tv(e):Ce=t,xd.current=null}function Tv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wx(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Ce=null;return}}else if(n=zx(n,t,lt),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Ie===0&&(Ie=5)}function Vn(e,t,n){var r=ue,i=xt.transition;try{xt.transition=null,ue=1,Xx(e,t,n,r)}finally{xt.transition=i,ue=r}return null}function Xx(e,t,n,r){do Qr();while(jn!==null);if(oe&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Ow(e,a),e===Pe&&(Ce=Pe=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||us||(us=!0,Nv(Vs,function(){return Qr(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=xt.transition,xt.transition=null;var o=ue;ue=1;var l=oe;oe|=4,xd.current=null,Hx(e,n),xv(n,e),yx(vc),Gs=!!gc,vc=gc=null,e.current=n,Gx(n),jw(),oe=l,ue=o,xt.transition=a}else e.current=n;if(us&&(us=!1,jn=e,co=i),a=e.pendingLanes,a===0&&(Nn=null),Aw(n.stateNode),at(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(lo)throw lo=!1,e=Mc,Mc=null,e;return co&1&&e.tag!==0&&Qr(),a=e.pendingLanes,a&1?e===Bc?na++:(na=0,Bc=e):na=0,Bn(),null}function Qr(){if(jn!==null){var e=og(co),t=xt.transition,n=ue;try{if(xt.transition=null,ue=16>e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,co=0,oe&6)throw Error(O(331));var i=oe;for(oe|=4,z=e.current;z!==null;){var a=z,o=a.child;if(z.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(z=u;z!==null;){var d=z;switch(d.tag){case 0:case 11:case 15:ea(8,d,a)}var h=d.child;if(h!==null)h.return=d,z=h;else for(;z!==null;){d=z;var m=d.sibling,p=d.return;if(yv(d),d===u){z=null;break}if(m!==null){m.return=p,z=m;break}z=p}}}var f=a.alternate;if(f!==null){var v=f.child;if(v!==null){f.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}z=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,z=o;else e:for(;z!==null;){if(a=z,a.flags&2048)switch(a.tag){case 0:case 11:case 15:ea(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,z=y;break e}z=a.return}}var g=e.current;for(z=g;z!==null;){o=z;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,z=b;else e:for(o=g;z!==null;){if(l=z,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Lo(9,l)}}catch(A){Ee(l,l.return,A)}if(l===o){z=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,z=j;break e}z=l.return}}if(oe=i,Bn(),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Ao,e)}catch{}r=!0}return r}finally{ue=n,xt.transition=t}}return!1}function vh(e,t,n){t=si(n,t),t=ov(e,t,1),e=Cn(e,t,1),t=Je(),e!==null&&(Pa(e,1,t),at(e,t))}function Ee(e,t,n){if(e.tag===3)vh(e,e,n);else for(;t!==null;){if(t.tag===3){vh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nn===null||!Nn.has(r))){e=si(n,e),e=lv(t,e,1),t=Cn(t,e,1),e=Je(),t!==null&&(Pa(t,1,e),at(t,e));break}}t=t.return}}function Zx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Pe===e&&(qe&n)===n&&(Ie===4||Ie===3&&(qe&130023424)===qe&&500>Ae()-jd?tr(e,0):Sd|=n),at(e,t)}function _v(e,t){t===0&&(e.mode&1?(t=es,es<<=1,!(es&130023424)&&(es=4194304)):t=1);var n=Je();e=on(e,t),e!==null&&(Pa(e,t,n),at(e,n))}function e0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_v(e,n)}function t0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),_v(e,n)}var Cv;Cv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,Fx(e,t,n);nt=!!(e.flags&131072)}else nt=!1,ve&&t.flags&1048576&&Ig(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Rs(e,t),e=t.pendingProps;var i=ni(t,Ge.current);Yr(t,n),i=gd(null,t,r,e,i,n);var a=vd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(a=!0,Xs(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dd(t),i.updater=Io,t.stateNode=i,i._reactInternals=t,Ac(t,r,e,n),t=Cc(null,t,r,!0,a,n)):(t.tag=0,ve&&a&&id(t),Ke(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Rs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=r0(r),e=Ct(r,e),i){case 0:t=_c(null,t,r,e,n);break e;case 1:t=oh(null,t,r,e,n);break e;case 11:t=ah(null,t,r,e,n);break e;case 14:t=sh(null,t,r,Ct(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),_c(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),oh(e,t,r,i,n);case 3:e:{if(mv(t),e===null)throw Error(O(387));r=t.pendingProps,a=t.memoizedState,i=a.element,$g(e,t),ro(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=si(Error(O(423)),t),t=lh(e,t,r,n,i);break e}else if(r!==i){i=si(Error(O(424)),t),t=lh(e,t,r,n,i);break e}else for(ut=_n(t.stateNode.containerInfo.firstChild),dt=t,ve=!0,It=null,n=Mg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ri(),r===i){t=ln(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return Ug(t),e===null&&jc(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,yc(r,i)?o=null:a!==null&&yc(r,a)&&(t.flags|=32),dv(e,t),Ke(e,t,o,n),t.child;case 6:return e===null&&jc(t),null;case 13:return hv(e,t,n);case 4:return md(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ii(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),ah(e,t,r,i,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,he(to,r._currentValue),r._currentValue=o,a!==null)if(Ut(a.value,o)){if(a.children===i.children&&!rt.current){t=ln(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=rn(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),kc(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(O(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),kc(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ke(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yr(t,n),i=St(i),r=r(i),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,i=Ct(r,t.pendingProps),i=Ct(r.type,i),sh(e,t,r,i,n);case 15:return cv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),Rs(e,t),t.tag=1,it(r)?(e=!0,Xs(t)):e=!1,Yr(t,n),sv(t,r,i),Ac(t,r,i,n),Cc(null,t,r,!0,e,n);case 19:return pv(e,t,n);case 22:return uv(e,t,n)}throw Error(O(156,t.tag))};function Nv(e,t){return rg(e,t)}function n0(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 wt(e,t,n,r){return new n0(e,t,n,r)}function Td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function r0(e){if(typeof e=="function")return Td(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hu)return 11;if(e===Gu)return 14}return 2}function On(e,t){var n=e.alternate;return n===null?(n=wt(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.deleti
vendor: 4,904 bytes, line 40
40ons=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 Ls(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")Td(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ir:return nr(n.children,i,a,t);case Vu:o=8,i|=8;break;case Yl:return e=wt(12,n,t,i|2),e.elementType=Yl,e.lanes=a,e;case Ql:return e=wt(13,n,t,i),e.elementType=Ql,e.lanes=a,e;case Xl:return e=wt(19,n,t,i),e.elementType=Xl,e.lanes=a,e;case Uf:return Po(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bf:o=10;break e;case $f:o=9;break e;case Hu:o=11;break e;case Gu:o=14;break e;case pn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=wt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function nr(e,t,n,r){return e=wt(7,e,r,t),e.lanes=n,e}function Po(e,t,n,r){return e=wt(22,e,r,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function _l(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Cl(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i0(e,t,n,r,i){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=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _d(e,t,n,r,i,a,o,l,c){return e=new i0(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=wt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dd(a),e}function a0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Or,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Rv(e){if(!e)return Dn;e=e._reactInternals;e:{if(mr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(it(n))return Rg(e,n,t)}return t}function Ov(e,t,n,r,i,a,o,l,c){return e=_d(n,r,!0,e,i,a,o,l,c),e.context=Rv(null),n=e.current,r=Je(),i=Rn(n),a=rn(r,i),a.callback=t!=null?t:null,Cn(n,a,i),e.current.lanes=i,Pa(e,i,r),at(e,r),e}function Mo(e,t,n,r){var i=t.current,a=Je(),o=Rn(i);return n=Rv(n),t.context===null?t.context=n:t.pendingContext=n,t=rn(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Cn(i,t,o),e!==null&&(Bt(e,i,o,a),_s(e,i,o)),o}function mo(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 yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cd(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function s0(){return null}var Iv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nd(e){this._internalRoot=e}Bo.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Mo(e,t,null,null)};Bo.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cr(function(){Mo(null,e,null,null)}),t[sn]=null}};function Bo(e){this._internalRoot=e}Bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ug();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bn.length&&t!==0&&t<bn[n].priority;n++);bn.splice(n,0,e),n===0&&mg(e)}};function Rd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bh(){}function o0(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=mo(o);a.call(u)}}var o=Ov(t,r,e,0,null,!1,!1,"",bh);return e._reactRootContainer=o,e[sn]=o.current,pa(e.nodeType===8?e.parentNode:e),cr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=mo(c);l.call(u)}}var c=_d(e,0,!1,null,null,!1,!1,"",bh);return e._reactRootContainer=c,e[sn]=c.current,pa(e.nodeType===8?e.parentNode:e),cr(function(){Mo(t,c,n,r)}),c}function Uo(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;
40i=function(){var c=mo(o);l.call(c)}}Mo(t,o,e,i)}else o=o0(n,t,e,i,r);return mo(o)}lg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bi(t.pendingLanes);n!==0&&(Yu(t,n|1),at(t,Ae()),!(oe&6)&&(oi=Ae()+500,Bn()))}break;case 13:cr(function(){var r=on(e,1);if(r!==null){var i=Je();Bt(r,e,1,i)}}),Cd(e,1)}};Qu=function(e){if(e.tag===13){var t=on(e,134217728);if(t!==null){var n=Je();Bt(t,e,134217728,n)}Cd(e,134217728)}};cg=function(e){if(e.tag===13){var t=Rn(e),n=on(e,t);if(n!==null){var r=Je();Bt(n,e,t,r)}Cd(e,t)}};ug=function(){return ue};dg=function(e,t){var n=ue;try{return ue=e,t()}finally{ue=n}};lc=function(e,t,n){switch(t){case"input":if(tc(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 i=No(r);if(!i)throw Error(O(90));Ff(r),tc(r,i)}}}break;case"textarea":Wf(e,n);break;case"select":t=n.value,t!=null&&Hr(e,!!n.multiple,t,!1)}};Qf=kd;Xf=cr;var l0={usingClientEntryPoint:!1,Events:[Ba,Mr,No,Jf,Yf,kd]},Ni={findFiberByHostInstance:Yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},c0={bundleType:Ni.bundleType,version:Ni.version,rendererPackageName:Ni.rendererPackageName,rendererConfig:Ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tg(e),e===null?null:e.stateNode},findFiberByHostInstance:Ni.findFiberByHostInstance||s0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ds.isDisabled&&ds.supportsFiber)try{Ao=ds.inject(c0),Ht=ds}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l0;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rd(t))throw Error(O(200));return a0(e,t,null,n)};ht.createRoot=function(e,t){if(!Rd(e))throw Error(O(299));var n=!1,r="",i=Iv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=_d(e,1,!1,null,null,n,!1,r,i),e[sn]=t.current,pa(e.nodeType===8?e.parentNode:e),new Nd(t)};ht.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=tg(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return cr(e)};ht.hydrate=function(e,t,n){if(!$o(t))throw Error(O(200));return Uo(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!Rd(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=Iv;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ov(t,null,e,1,n!=null?n:null,i,!1,a,o),e[sn]=t.current,pa(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Bo(t)};ht.render=function(e,t,n){if(!$o(t))throw Error(O(200));return Uo(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!$o(e))throw Error(O(40));return e._reactRootContainer?(cr(function(){Uo(null,null,e,!1,function(){e._reactRootContainer=null,e[sn]=null})}),!0):!1};ht.unstable_batchedUpdates=kd;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$o(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Uo(e,t,n,!1,r)};ht.version="18.3.1-next-f1338f8080-20240426";function Lv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lv)}catch(e){console.error(e)}}Lv(),Lf.exports=ht;var Dv=Lf.exports,wh=Dv;qs.createRoot=wh.createRoot,qs.hydrateRoot=wh.hydrateRoot;/**
41 * @remix-run/router v1.23.2
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function ja(){return ja=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},ja.apply(this,arguments)}var kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kn||(kn={}));const xh="popstate";function u0(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return qc("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ho(i)}return m0(t,n,null,e)}function Te(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Od(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch{}}}function d0(){return Math.random().toString(36).substr(2,8)}function Sh(e,t){return{usr:e.state,key:e.key,idx:t}}function qc(e,t,n,r){return n===void 0&&(n=null),ja({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?di(t):t,{state:n,key:t&&t.key||r||d0()})}function ho(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 di(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 m0(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l=kn.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(ja({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){l=kn.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:l,location:v.location,delta:y})}function m(x,y){l=kn.Push;let g=qc(v.location,x,y);u=d()+1;let b=Sh(g,u),j=v.createHref(g);try{o.pushState(b,"",j)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(j)}a&&c&&c({action:l,location:v.location,delta:1})}function p(x,y){l=kn.Replace;let g=qc(v.location,x,y);u=d();let b=Sh(g,u),j=v.createHref(g);o.replaceState(b,"",j),a&&c&&c({action:l,location:v.location,delta:0})}function f(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="str
49ing"?x:ho(x);return g=g.replace(/ $/,"%20"),Te(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let v={get action(){return l},get location(){return e(i,o)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(xh,h),c=x,()=>{i.removeEventListener(xh,h),c=null}},createHref(x){return t(i,x)},createURL:f,encodeLocation(x){let y=f(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:p,go(x){return o.go(x)}};return v}var jh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jh||(jh={}));function h0(e,t,n){return n===void 0&&(n="/"),p0(e,t,n)}function p0(e,t,n,r){let i=typeof t=="string"?di(t):t,a=Id(i.pathname||"/",n);if(a==null)return null;let o=Pv(e);f0(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=T0(a);l=k0(o[c],u)}return l}function Pv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(Te(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=In([r,c.relativePath]),d=n.concat(c);a.children&&a.children.length>0&&(Te(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Pv(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:S0(u,a.index),routesMeta:d})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let c of Mv(a.path))i(a,o,c)}),t}function Mv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=Mv(r.join("/")),l=[];return l.push(...o.map(c=>c===""?a:[a,c].join("/"))),i&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function f0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:j0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const g0=/^:[\w-]+$/,v0=3,y0=2,b0=1,w0=10,x0=-2,kh=e=>e==="*";function S0(e,t){let n=e.split("/"),r=n.length;return n.some(kh)&&(r+=x0),t&&(r+=y0),n.filter(i=>!kh(i)).reduce((i,a)=>i+(g0.test(a)?v0:a===""?b0:w0),r)}function j0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function k0(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",h=E0({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!h)return null;
vendor: 6,169 bytes, lines 49-58
49Object.assign(i,h.params),o.push({params:i,pathname:In([a,h.pathname]),pathnameBase:O0(In([a,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(a=In([a,h.pathnameBase]))}return o}function E0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=A0(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:m,isOptional:p}=d;if(m==="*"){let v=l[h]||"";o=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const f=l[h];return p&&!f?u[m]=void 0:u[m]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function A0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Od(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function T0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Od(!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 Id(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 _0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C0=e=>_0.test(e);function N0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?di(e):e,a;if(n)if(C0(n))a=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Od(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?a=Eh(n.substring(1),"/"):a=Eh(n,t)}else a=t;return{pathname:a,search:I0(r),hash:L0(i)}}function Eh(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Nl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function R0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ld(e,t){let n=R0(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Dd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=di(e):(i=ja({},e),Te(!i.pathname||!i.pathname.includes("?"),Nl("?","pathname","search",i)),Te(!i.pathname||!i.pathname.includes("#"),Nl("#","pathname","hash",i)),Te(!i.search||!i.search.includes("#"),Nl("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let c=N0(i,l),u=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const In=e=>e.join("/").replace(/\/\/+/g,"/"),O0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function D0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bv=["post","put","patch","delete"];new Set(Bv);const P0=["get",...Bv];new Set(P0);/**
50 * React Router v6.30.3
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function ka(){return ka=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},ka.apply(this,arguments)}const Pd=w.createContext(null),M0=w.createContext(null),$n=w.createContext(null),qo=w.createContext(null),un=w.createContext({outlet:null,matches:[],isDataRoute:!1}),$v=w.createContext(null);function B0(e,t){let{relative:n}=t===void 0?{}:t;mi()||Te(!1);let{basename:r,navigator:i}=w.useContext($n),{hash:a,pathname:o,search:l}=qv(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:In([r,o])),i.createHref({pathname:c,search:l,hash:a})}function mi(){return w.useContext(qo)!=null}function Et(){return mi()||Te(!1),w.useContext(qo).location}function Uv(e){w.useContext($n).static||w.useLayoutEffect(e)}function hr(){let{isDataRoute:e}=w.useContext(un);return e?X0():$0()}function $0(){mi()||Te(!1);let e=w.useContext(Pd),{basename:t,future:n,navigator:r}=w.useContext($n),{matches:i}=w.useContext(un),{pathname:a}=Et(),o=JSON.stringify(Ld(i,n.v7_relativeSplatPath)),l=w.useRef(!1);return Uv(()=>{l.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=Dd(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:In([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,a,e])}function U0(){let{matches:e}=w.useContext(un),t=e[e.length-1];return t?t.params:{}}function qv(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext($n),{matches:i}=w.useContext(un),{pathname:a}=Et(),o=JSON.stringify(Ld(i,r.v7_relativeSplatPath));return w.useMemo(()=>Dd(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function q0(e,t){return F0(e,t)}function F0(e,t,n,r){mi()||Te(!1);let{navigator:i}=w.useContext($n),{matches:a}=w.useContext(un),o=a[a.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=Et(),d;
vendor: 4,540 bytes, line 58
58if(t){var h;let x=typeof t=="string"?di(t):t;c==="/"||(h=x.pathname)!=null&&h.startsWith(c)||Te(!1),d=x}else d=u;let m=d.pathname||"/",p=m;if(c!=="/"){let x=c.replace(/^\//,"").split("/");p="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let f=h0(e,{pathname:p}),v=G0(f&&f.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:In([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:In([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,n,r);return t&&v?w.createElement(qo.Provider,{value:{location:ka({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:kn.Pop}},v):v}function z0(){let e=Q0(),t=D0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const W0=w.createElement(z0,null);class V0 extends w.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?w.createElement(un.Provider,{value:this.props.routeContext},w.createElement($v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function H0(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(Pd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(un.Provider,{value:t},r)}function G0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||Te(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:m,errors:p}=n,f=h.route.loader&&m[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||f){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,m)=>{let p,f=!1,v=null,x=null;n&&(p=l&&h.route.id?l[h.route.id]:void 0,v=h.route.errorElement||W0,c&&(u<0&&m===0?(Z0("route-fallback"),f=!0,x=null):u===m&&(f=!0,x=h.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,m+1)),g=()=>{let b;return p?b=v:f?b=x:h.route.Component?b=w.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=d,w.createElement(H0,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?w.createElement(V0,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var Fv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fv||{}),zv=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}(zv||{});function K0(e){let t=w.useContext(Pd);return t||Te(!1),t}function J0(e){let t=w.useContext(M0);return t||Te(!1),t}function Y0(e){let t=w.useContext(un);return t||Te(!1),t}function Wv(e){let t=Y0(),n=t.matches[t.matches.length-1];return n.route.id||Te(!1),n.route.id}function Q0(){var e;let t=w.useContext($v),n=J0(),r=Wv();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function X0(){let{router:e}
58=K0(Fv.UseNavigateStable),t=Wv(zv.UseNavigateStable),n=w.useRef(!1);return Uv(()=>{n.current=!0}),w.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ka({fromRouteId:t},a)))},[e,t])}const Ah={};function Z0(e,t,n){Ah[e]||(Ah[e]=!0)}function eS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Th(e){let{to:t,replace:n,state:r,relative:i}=e;mi()||Te(!1);let{future:a,static:o}=w.useContext($n),{matches:l}=w.useContext(un),{pathname:c}=Et(),u=hr(),d=Dd(t,Ld(l,a.v7_relativeSplatPath),c,i==="path"),h=JSON.stringify(d);return w.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:i}),[u,h,i,n,r]),null}function H(e){Te(!1)}function tS(e){let{basename:t="/",children:n=null,location:r,navigationType:i=kn.Pop,navigator:a,static:o=!1,future:l}=e;mi()&&Te(!1);let c=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:c,navigator:a,static:o,future:ka({v7_relativeSplatPath:!1},l)}),[c,l,a,o]);typeof r=="string"&&(r=di(r));let{pathname:d="/",search:h="",hash:m="",state:p=null,key:f="default"}=r,v=w.useMemo(()=>{let x=Id(d,c);return x==null?null:{location:{pathname:x,search:h,hash:m,state:p,key:f},navigationType:i}},[c,d,h,m,p,f,i]);return v==null?null:w.createElement($n.Provider,{value:u},w.createElement(qo.Provider,{children:n,value:v}))}function nS(e){let{children:t,location:n}=e;return q0(Fc(t),n)}new Promise(()=>{});function Fc(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let a=[...t,i];if(r.type===w.Fragment){n.push.apply(n,Fc(r.props.children,a));return}r.type!==H&&Te(!1),!r.props.index||!r.props.children||Te(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Fc(r.props.children,a)),n.push(o)}),n}/**
59 * React Router DOM v6.30.3
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function zc(){return zc=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},zc.apply(this,arguments)}function rS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function iS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aS(e,t){return e.button===0&&(!t||t==="_self")&&!iS(e)}function Wc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function sS(e,t){let n=Wc(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const oS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lS="6";try{window.__reactRouterVersion=lS}catch{}const cS="startTransition",_h=Zb[cS];function Ch(e){let{basename:t,children:n,future:r,window:i}=e,a=w.useRef();a.current==null&&(a.current=u0({window:i,v5Compat:!0}));let o=a.current,[l,c]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=w.useCallback(h=>{u&&_h?_h(()=>c(h)):c(h)},[c,u]);return w.useLayoutEffect(()=>o.listen(d),[o,d]),w.useEffect(()=>eS(r),[r]),w.createElement(tS,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const uS=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",dS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,et=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,m=rS(t,oS),{basename:p}=w.useContext($n),f,v=!1;if(typeof u=="string"&&dS.test(u)&&(f=u,uS))try{let b=new URL(window.location.href),j=u.startsWith("//")?new URL(b.protocol+u):new URL(u),A=Id(j.pathname,p);j.origin===b.origin&&A!=null?u=A+j.search+j.hash:v=!0}catch{}let x=B0(u,{relative:i}),y=mS(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:h});function g(b){r&&r(b),b.defaultPrevented||y(b)}return w.createElement("a",zc({},m,{href:f||x,onClick:v||a?r:g,ref:n,target:c}))});var Nh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Nh||(Nh={}));var Rh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Rh||(Rh={}));function mS(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:l}=t===void 0?{}:t,c=hr(),u=Et(),d=qv(e,{relative:o});return w.useCallback(h=>{if(aS(h,n)){h.preventDefault();let m=r!==void 0?r:ho(u)===ho(d);c(e,{replace:m,state:i,preventScrollReset:a,relative:o,viewTransition:l})}},[u,c,d,r,i,n,e,a,o,l])}function hS(e){let t=w.useRef(Wc(e)),n=w.useRef(!1),r=Et(),i=w.useMemo(()=>sS(r.search,n.current?null:t.current),[r.search]),a=hr(),o=w.useCallback((l,c)=>{const u=Wc(typeof l=="function"?l(i):l);n.current=!0,a("?"+u,c)},[a,i]);return[i,o]}var pS=typeof Element!="undefined",fS=typeof Map=="function",gS=typeof Set=="function",vS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ds(e,t){if(e===t)return!0;
67if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ds(e[r],t[r]))return!1;return!0}var a;if(fS&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Ds(r.value[1],t.get(r.value[0])))return!1;return!0}if(gS&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(vS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(pS&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ds(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var yS=function(t,n){try{return Ds(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const bS=ko(yS);var wS=function(e,t,n,r,i,a,o,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,o,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},xS=wS;const Oh=ko(xS);var SS=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),l=Object.keys(n);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!c(d))return!1;var h=t[d],m=n[d];if(a=r?r.call(i,h,m,d):void 0,a===!1||a===void 0&&h!==m)return!1}return!0};const jS=ko(SS);var Vv=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Vv||{}),Rl={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Ih=Object.values(Vv),Md={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},kS=Object.entries(Md).reduce((e,[t,n])=>(e[n]=t,e),{}),Pt="data-rh",Xr={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Zr=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ES=e=>{let t=Zr(e,"title");const n=Zr(e,Xr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Zr(e,Xr.DEFAULT_TITLE);return t||r||void 0},AS=e=>Zr(e,Xr.ON_CHANGE_CLIENT_STATE)||(()=>{}),Ol=(e,t)=>t.filter(n=>typeof n[e]!="undefined").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),TS=(e,t)=>t.filter(n=>typeof n.base!="undefined").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;a<i.length;a+=1){const l=i[a].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),_S=e=>console&&typeof console.warn=="function"&&console.warn(e),Ri=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]!="undefined"&&_S(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(c=>{let u;const d=Object.keys(c);for(let m=0;m<d.length;m+=1){const p=d[m],f=p.toLowerCase();t.indexOf(f)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(f==="rel"&&c[f].toLowerCase()==="stylesheet")&&(u=f),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][h]?!1:(o[u][h]=!0,!0)}
67).reverse().forEach(c=>i.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const u=l[c],d={...r[u],...o[u]};r[u]=d}return i},[]).reverse()},CS=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},NS=e=>({baseTag:TS(["href"],e),bodyAttributes:Ol("bodyAttributes",e),defer:Zr(e,Xr.DEFER),encode:Zr(e,Xr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ol("htmlAttributes",e),linkTags:Ri("link",["rel","href"],e),metaTags:Ri("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ri("noscript",["innerHTML"],e),onChangeClientState:AS(e),scriptTags:Ri("script",["src","innerHTML"],e),styleTags:Ri("style",["cssText"],e),title:ES(e),titleAttributes:Ol("titleAttributes",e),prioritizeSeoTags:CS(e,Xr.PRIORITIZE_SEO_TAGS)}),Hv=e=>Array.isArray(e)?e.join(""):e,RS=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Il=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(RS(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Lh=(e,t)=>({...e,[t]:void 0}),OS=["noscript","script","style"],Vc=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Gv=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]!="undefined"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),IS=(e,t,n,r)=>{const i=Gv(n),a=Hv(t);return i?`<${e} ${Pt}="true" ${i}>${Vc(a,r)}</${e}>`:`<${e} ${Pt}="true">${Vc(a,r)}</${e}>`},LS=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof a[d]=="undefined"?d:`${d}="${Vc(a[d],n)}"`;return u?`${u} ${h}`:h},""),l=a.innerHTML||a.cssText||"",c=OS.indexOf(e)===-1;return`${r}<${e} ${Pt}="true" ${o}${c?"/>":`>${l}</${e}>`}`},""),Kv=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=Md[r];return n[i||r]=e[r],n},t),DS=(e,t,n)=>{const r={key:t,[Pt]:!0},i=Kv(n,r);return[Dt.createElement("title",i,t)]},Ps=(e,t)=>t.map((n,r)=>{const i={key:r,[Pt]:!0};return Object.keys(n).forEach(a=>{const l=Md[a]||a;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:c}}else i[l]=n[a]}),Dt.createElement(e,i)}),gt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>DS(e,t.title,t.titleAttributes),toString:()=>IS(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Kv(t),toString:()=>Gv(t)};default:return{toComponent:()=>Ps(e,t),toString:()=>LS(e,t,n)}}},PS=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Il(e,Rl.meta),a=Il(t,Rl.link),o=Il(n,Rl.script);return{priorityMethods:{toComponent:()=>[...Ps("meta",i.priority),...Ps("link",a.priority),...Ps("script",o.priority)],toString:()=>`${gt("meta",i.priority,r)} ${gt("link",a.priority,r)} ${gt("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},MS=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:m}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:h,scriptTags:m}=PS(e)),{priority:p,base:gt("base",t,r),bodyAttributes:gt("bodyAttributes",n,r),htmlAttributes:gt("htmlAttributes",i,r),link:gt("link",d,r),meta:gt("meta",h,r),noscript:gt("noscript",a,r),script:gt("script",m,r),style:gt("style",o,r),title:gt("title",{title:l,titleAttributes:c},r)}},Hc=MS,ms=[],Jv=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Gc=class{constructor(e,t){Yt(this,"instances",[]);Yt(this,"canUseDOM",Jv);Yt(this,"context");Yt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ms:this.instances,add:e=>{(this.canUseDOM?ms:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ms:this.instances).indexOf(e);(this.canUseDOM?ms:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Hc({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},BS={},Yv=Dt.createContext(BS),er,Kc=(er=class extends w.Component{constructor(n){super(n);Yt(this,"helmetData");this.helmetData=new Gc(this.props.context||{},er.canUseDOM)}render(){return Dt.createElement(Yv.Provider,{value:this.helmetData.value},this.props.children)}},Yt(er,"canUseDOM",Jv),er),br=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Pt}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,h=typeof l[d]=="undefined"?"":l[d];c.setAttribute(u,h)}c.setAttribute(Pt,"true"),i.some((u,d)=>(o=d,c.isEqualNode(u)))?i.splice(o,1):a.push(c)}
67),i.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),a.forEach(l=>n.appendChild(l)),{oldTags:i,newTags:a}},Jc=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Pt),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const l of o){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),i.indexOf(l)===-1&&i.push(l);const u=a.indexOf(l);u!==-1&&a.splice(u,1)}for(let l=a.length-1;l>=0;l-=1)n.removeAttribute(a[l]);i.length===a.length?n.removeAttribute(Pt):n.getAttribute(Pt)!==o.join(",")&&n.setAttribute(Pt,o.join(","))},$S=(e,t)=>{typeof e!="undefined"&&document.title!==e&&(document.title=Hv(e)),Jc("title",t)},Dh=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:h,titleAttributes:m}=e;Jc("body",r),Jc("html",i),$S(h,m);const p={baseTag:br("base",n),linkTags:br("link",a),metaTags:br("meta",o),noscriptTags:br("noscript",l),scriptTags:br("script",u),styleTags:br("style",d)},f={},v={};Object.keys(p).forEach(x=>{const{newTags:y,oldTags:g}=p[x];y.length&&(f[x]=y),g.length&&(v[x]=p[x].oldTags)}),t&&t(),c(e,f,v)},Oi=null,US=e=>{Oi&&cancelAnimationFrame(Oi),e.defer?Oi=requestAnimationFrame(()=>{Dh(e,()=>{Oi=null})}):(Dh(e),Oi=null)},qS=US,Ph=class extends w.Component{constructor(){super(...arguments);Yt(this,"rendered",!1)}shouldComponentUpdate(t){return!jS(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=NS(t.get().map(a=>{const o={...a.props};return delete o.context,o}));Kc.canUseDOM?qS(i):Hc&&(r=Hc(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Kl,FS=(Kl=class extends w.Component{shouldComponentUpdate(e){return!bS(Lh(this.props,"helmetData"),Lh(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Oh(Ih.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Ih.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Oh(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Dt.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((c,u)=>(c[kS[u]||u]=a[u],c),{});let{type:l}=r;
67switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,i),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Gc)){const i=r;r=new Gc(i.context,!0),delete n.helmetData}return r?Dt.createElement(Ph,{...n,context:r.value}):Dt.createElement(Yv.Consumer,null,i=>Dt.createElement(Ph,{...n,context:i}))}},Yt(Kl,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Kl);function ye({title:e,description:t,image:n,url:r,type:i="website",keywords:a,schema:o,siteName:l="Winning By Design Brasil"}){const c=n!=null&&n.startsWith("http")?n:`https://winningbydesign.com.br${n}`,u=r!=null&&r.startsWith("http")?r:`https://winningbydesign.com.br${r||""}`;return s.jsxs(FS,{children:[s.jsx("title",{children:e}),s.jsx("meta",{name:"description",content:t}),a&&s.jsx("meta",{name:"keywords",content:a}),s.jsx("meta",{name:"author",content:"Winning by Design"}),s.jsx("meta",{name:"robots",content:"index, follow"}),s.jsx("link",{rel:"canonical",href:u}),s.jsx("meta",{property:"og:type",content:i}),s.jsx("meta",{property:"og:title",content:e}),s.jsx("meta",{property:"og:description",content:t}),n&&s.jsx("meta",{property:"og:image",content:c}),n&&s.jsx("meta",{property:"og:image:width",content:"1200"}),n&&s.jsx("meta",{property:"og:image:height",content:"630"}),s.jsx("meta",{property:"og:url",content:u}),s.jsx("meta",{property:"og:site_name",content:l}),s.jsx("meta",{property:"og:locale",content:"pt_BR"}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("meta",{name:"twitter:title",content:e}),s.jsx("meta",{name:"twitter:description",content:t}),n&&s.jsx("meta",{name:"twitter:image",content:c}),s.jsx("meta",{name:"twitter:site",content:"@winningbydesign"}),s.jsx("meta",{name:"twitter:creator",content:"@winningbydesign"}),o&&s.jsx("script",{type:"application/ld+json",children:JSON.stringify(o)})]})}function ee({variant:e="primary",size:t="default",as:n="button",href:r,to:i,target:a,rel:o,children:l,className:c="",style:u={},onClick:d,trackLabel:h,trackSection:m,...p}){const f=["btn",`btn-${e}`,t==="small"&&"btn-small",c].filter(Boolean).join(" "),v=x=>{if(r&&r.startsWith("#")&&(x.preventDefault(),typeof document!="undefined")){const y=r.substring(1),g=document.getElementById(y);g&&g.scrollIntoView({behavior:"smooth",block:"start"})}d&&d(x)};return n==="link"||i?s.jsx(et,{to:i,className:f,style:u,onClick:d,"data-track":"button","data-track-hover":"true","data-track-label":h,"data-track-section":m,...p,children:l}):n==="a"||r?s.jsx("a",{href:r,className:f,style:u,onClick:r&&r.startsWith("#")?v:d,target:a,rel:o,"data-track":"button","data-track-hover":"true","data-track-label":h,"data-track-section":m,...p,children:l}):s.jsx("button",{className:f,style:u,onClick:d,"data-track":"button","data-track-hover":"true","data-track-label":h,"data-track-section":m,...p,children:l})}const Mh=new Date("2026-09-02T08:30:00-03:00");function Bh(e){const t=new Date().getTime(),n=e.getTime()-t;return n<=0?{days:0,hours:0,minutes:0,seconds:0,expired:!0}:{days:Math.floor(n/(1e3*60*60*24)),hours:Math.floor(n/(1e3*60*60)%24),minutes:Math.floor(n/(1e3*60)%60),seconds:Math.floor(n/1e3%60),expired:!1}}function zS(){const[e,t]=w.useState(()=>Bh(Mh));if(w.useEffect(()=>{if(e.expired)return;const r=setInterval(()=>{t(Bh(Mh))},1e3);return()=>clearInterval(r)},[e.expired]),e.expired)return null;const n=[{value:e.days,label:"DIAS"},{value:e.hours,label:"HORAS"},{value:e.minutes,label:"MIN"},{value:e.seconds,label:"SEG"}];return s.jsxs(et,{to:"/impact-summit-brasil",className:"impact-summit-header-btn","data-track":"button","data-track-hover":"true","data-track-label":"Impact Summit Header","data-track-section":"header",children:[s.jsx("span",{className:"impact-summit-header-btn-text",children:"Impact Summit Brasil"}),s.jsx("div",{className:"impact-summit-header-btn-countdown",children:n.map(r=>s.jsxs("div",{className:"impact-summit-header-btn-unit",children:[s.jsx("span",{className:"impact-summit-header-btn-unit-value",children:String(r.value).padStart(2,"0")}),s.jsx("span",{className:"impact-summit-header-btn-unit-label",children:r.label})]},r.label))})]})}const rr="/en";function Bd(e){if(!e)return{pathname:"/",suffix:""};const t=String(e),n=t.indexOf("?"),r=t.indexOf("#");let i=-1;return n>=0&&r>=0?i=Math.min(n,r):n>=0?i=n:r>=0&&(i=r),i===-1?{pathname:t||"/",suffix:""}
67:{pathname:t.slice(0,i)||"/",suffix:t.slice(i)}}function $d(e){const{pathname:t}=Bd(e);return t===rr||t.startsWith(`${rr}/`)?"en":"pt"}function po(e){const{pathname:t,suffix:n}=Bd(e),r=t||"/";return r===rr?`/${n}`:r.startsWith(`${rr}/`)?`${r.slice(rr.length)}${n}`:`${r}${n}`}function $t(e,t){const n=t==="en"?"en":"pt",r=po(e||"/"),{pathname:i,suffix:a}=Bd(r);return n==="en"?i==="/"?`${rr}${a}`:`${rr}${i}${a}`:`${i}${a}`}function WS(e,t){return $t(e,t)}function Ea(e){return typeof e=="string"&&e.startsWith("/")}const $h={pt:{localeSwitcherLabel:"Selecionar idioma",localePortugueseLabel:"Português",localeEnglishLabel:"Inglês",mobileMenuToggleLabel:"Alternar menu"},en:{localeSwitcherLabel:"Select language",localePortugueseLabel:"Portuguese",localeEnglishLabel:"English",mobileMenuToggleLabel:"Toggle menu"}},VS=[{key:"pt",iconSrc:"/images/flags/icons8-brasil-circular-48.png",copyKey:"localePortugueseLabel"},{key:"en",iconSrc:"/images/flags/icons8-usa-48.png",copyKey:"localeEnglishLabel"}];function HS(e){const t=e==="en";return[{label:t?"Impact Summit Brazil":"Impact Summit Brasil",emphasize:!0,items:[{title:t?"Impact Summit Brazil":"Impact Summit Brasil",href:"/impact-summit-brasil",subitems:[{label:t?"Event":"O evento",href:"/impact-summit-brasil"},{label:"Agenda",href:"/impact-summit-brasil/agenda"},{label:t?"Sponsors":"Patrocinadores",href:"/impact-summit-brasil/sponsors"},{label:t?"Registration":"Inscrição",href:"/impact-summit-brasil/inscricao"},{label:"FAQ",href:"/impact-summit-brasil/faq"}]}]},{label:t?"Our courses":"Nossos cursos",items:[{title:"Revenue Architecture",href:"/curso-revenue-architecture",subitems:[{label:"Revenue Architecture",href:"/curso-revenue-architecture"},{label:"Math 4 Revenue Architecture",href:"/curso-math4-revenue-architecture"},{label:"Bowtie Analytics",href:"/curso-bowtie-analytics"}]}]},{label:t?"Calendar":"Calendário",href:"/calendarios"}]}function Se({buttonText:e="FALE CONOSCO",buttonHref:t="https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es.",buttonVariant:n="primary",logoSrc:r="/images/wbdlogo.png",logoAlt:i="Winning by Design Logo",logoHeight:a="40px",showLocaleSwitcher:o=!0,localeOverride:l,showImpactSummitButton:c=!0}){const u=Et(),d=l||$d(u.pathname),m=d==="en"?$h.en:$h.pt,p=HS(d),f=po(u.pathname),v=`${u.pathname}${u.search}${u.hash}`||"/",x=$t("/",d),y=o,g=Ea(t)?$t(t,d):t,b=VS.map(L=>({...L,href:WS(v,L.key),label:m[L.copyKey],isActive:d===L.key})),j=p.findIndex(L=>{var C;return((C=L.items)==null?void 0:C.some(U=>U.href==="/impact-summit-brasil"))||!1}),[A,S]=w.useState(!1),[k,E]=w.useState(()=>f.startsWith("/impact-summit")?j:null),I=g&&(g.startsWith("http://")||g.startsWith("https://")),$=L=>!L||!Ea(L)?L:$t(L,d),D=()=>{const L=!A;S(L),L&&E(f.startsWith("/impact-summit")?j:null)},W=L=>{E(k===L?null:L)},V=()=>{S(!1),E(null)};return s.jsxs("header",{className:"main-header",children:[s.jsxs("div",{style:{width:"100%",padding:"0 40px",height:"100%"},children:[s.jsxs("div",{className:"header-grid",children:[s.jsx("div",{className:"header-left",children:s.jsx(et,{to:x,children:s.jsx("img",{src:r,alt:i,style:{height:a}})})}),s.jsx("nav",{className:"header-nav",children:p.map((L,C)=>{const U=L.items&&L.items.length>0;return s.jsxs("div",{className:"nav-item",children:[L.href&&!U?s.jsx(et,{to:$(L.href),className:`nav-link ${L.emphasize?"nav-link--highlight":""}`,children:L.label}):c&&C===j?s.jsx("span",{className:"impact-summit-nav-wrapper",children:s.jsx(zS,{})}):s.jsx("span",{className:`nav-link ${L.emphasize?"nav-link--highlight":""}`,children:L.label}),U&&s.jsx("div",{className:"nav-dropdown",children:L.items.map((N,T)=>s.jsx("div",{children:N.subitems&&N.subitems.length>0&&s.jsx("div",{className:"dropdown-section-grid",children:N.subitems.map((R,B)=>s.jsx(et,{to:$(R.href),className:"dropdown-link-secondary",onClick:V,children:R.label},B))})},T))})]},C)})}),s.jsx("div",{className:"header-right",children:e&&t&&s.jsx(ee,{as:"a",href:g,variant:n,size:"small",target:I?"_blank":void 0,rel:I?"noopener noreferrer":void 0,children:e})}),s.jsx("button",{className:"mobile-menu-toggle",onClick:D,"aria-label":m.mobileMenuToggleLabel,children:s.jsxs("span",{className:`hamburger ${A?"open":""}`,children:[s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{})]})})]}),y&&s.jsx("div",{className:"header-locale-floating",role:"group","aria-label":m.localeSwitcherLabel,children:b.map(L=>s.jsx(et,{to:L.href,className:`header-locale-flag ${L.isActive?"is-active":""}`,"aria-current":L.isActive?"page":void 0,"aria-label":L.label,title:L.label,children:s.jsx("img",{src:L.iconSrc,alt:"","aria-hidden":"true"})},L.key))})]}),s.jsx("div",{className:`mobile-nav ${A?"open":""}`,children:s.jsxs("nav",{className:"mobile-nav-content",children:[p.map((L,C)=>{const U=L.items&&L.items.length>0;return s.jsx("div",{className:"mobile-nav-item",children:L.href&&!U?s.jsx(et,{to:$(L.href),className:`mobile-nav-link ${L.emphasize?"mobile-nav-link--highlight":""}`,onClick:V,children:L.label}):s.jsxs(s.Fragment,{children:[s.jsxs("button",{className:`mobile-nav-link ${L.emphasize?"mobile-nav-link--highlight":""}`,onClick:()=>W(C),children:[L.label,s.jsx("span",{className:`submenu-arrow ${k===C?"open":""}`,children:"›"})]}),s.jsx("div",{className:`mobile-submenu ${k===C?"open":""}`,children:L.items.map((N,T)=>s.jsx("div",{children:N.subitems&&N.subitems.map((R,B)=>s.jsx(et,{to:$(R.href),className:"mobile-submenu-link",onClick:V,children:R.label},B))},T))})]})},C)}),y&&s.jsx("div",{className:"mobile-locale-switch",role:"group","aria-label":m.localeSwitcherLabel,children:b.map(L=>s.jsx(et,{to:L.href,className:`header-locale-flag ${L.isActive?"is-active":""}`,"aria-current":L.isActive?"page":void 0,"aria-label":L.label,title:L.label,onClick:V,children:s.jsx("img",{src:L.iconSrc,alt:"","aria-hidden":"true"})},L.key))}),e&&t&&s.jsx("div",{className:"mobile-cta",children:s.jsx(ee,{as:"a",href:g,variant:n,size:"medium",target:I?"_blank":void 0,rel:I?"noopener noreferrer":void 0,children:e})})]})})]})}function ne({children:e,className:t="",style:n={},maxWidth:r,...i}
67){const a=["container",t].filter(Boolean).join(" "),o={...n,...r&&{maxWidth:r}};return s.jsx("div",{className:a,style:o,...i,children:e})}function K({level:e=2,children:t,className:n="",style:r={},uppercase:i=!1,color:a,...o}){const l=`h${e}`,c=["heading",`heading-${e}`,i&&"heading-uppercase",n].filter(Boolean).join(" "),u={...r,...a&&{color:a}};return s.jsx(l,{className:c,style:u,...o,children:t})}function pr({children:e,className:t="",style:n={},as:r="h1",...i}){const a=r,o=["text-display",t].filter(Boolean).join(" ");return s.jsx(a,{className:o,style:n,...i,children:e})}function P({children:e,className:t="",style:n={},color:r,maxWidth:i,...a}){const o=["paragraph",t].filter(Boolean).join(" "),l={...n,...r&&{color:r},...i&&{maxWidth:i}};return s.jsx("p",{className:o,style:l,...a,children:e})}function Fo({id:e,tagText:t,title:n,description:r,primaryButtonText:i,primaryButtonHref:a,secondaryButtonText:o,secondaryButtonHref:l,imageSrc:c,imageAlt:u,heroVideoSrc:d,heroVideoType:h="video/mp4",showSocialProof:m=!1,socialProofText:p,backgroundColor:f="var(--color-black)",centered:v=!0,inverted:x=!1,backgroundVideoSrc:y,backgroundImageSrc:g,overlayOpacity:b=.5}){const j=a&&(a.startsWith("http://")||a.startsWith("https://")),A=l&&(l.startsWith("http://")||l.startsWith("https://")),S=a&&!j&&!a.startsWith("#"),k=l&&!A&&!l.startsWith("#");return s.jsx("section",{id:e,className:"hero-section",children:s.jsxs("div",{className:`hero-wrapper ${x?"hero-wrapper--inverted":""}`,style:{backgroundColor:f},children:[y&&s.jsxs("div",{className:"hero-background",children:[s.jsx("video",{className:"hero-background-video",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:s.jsx("source",{src:y,type:"video/mp4"})}),s.jsx("div",{className:"hero-background-overlay",style:{backgroundColor:`rgba(0, 0, 0, ${b})`}})]}),!y&&g&&s.jsxs("div",{className:"hero-background",children:[s.jsx("div",{className:"hero-background-image",style:{backgroundImage:`url(${g})`}}),s.jsx("div",{className:"hero-background-overlay",style:{backgroundColor:`rgba(0, 0, 0, ${b})`}})]}),s.jsx(ne,{style:{position:"relative",zIndex:2},children:s.jsxs("div",{className:`hero-content ${v?"hero-content--centered":""}`,children:[t&&s.jsx("div",{className:"hero-tag",children:s.jsx("h4",{className:"hero-tag-text",children:t})}),n&&s.jsx(pr,{className:"hero-title",children:n}),r&&s.jsx(P,{className:"hero-description",children:r}),(i||o)&&s.jsxs("div",{className:"hero-button-container",children:[i&&s.jsx(ee,{as:S?"link":"a",href:S?void 0:a,to:S?a:void 0,variant:"primary",children:i}),o&&s.jsx(ee,{as:k?"link":"a",href:k?void 0:l,to:k?l:void 0,variant:"secondary",children:o})]}),m&&p&&s.jsx("div",{className:"hero-social-proof",children:s.jsx("div",{className:"hero-social-proof-text",children:p})}),(d||c)&&s.jsx("div",{className:"hero-image-wrapper",children:d?s.jsxs("video",{className:"hero-video",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:[s.jsx("source",{src:d,type:h}),"Seu navegador não suporta vídeos."]}):s.jsx("img",{src:c,alt:u||"Hero image",className:"hero-image"})})]})})]})})}function Qv({logos:e=[],animationDuration:t=40,height:n="80px",inverted:r=!1}){const i=[...e,...e];return s.jsx("div",{className:`logo-carousel ${r?"logo-carousel--inverted":""}`,children:s.jsx("div",{className:"logo-carousel-track",style:{animationDuration:`${t}s`,height:n},children:i.map((a,o)=>s.jsx("div",{className:"logo-carousel-item",style:{height:n},children:s.jsx("img",{src:a.src,alt:a.alt||`Logo ${o+1}`,style:{height:n}})},`${a.id||o}-${o}`))})})}function hi({id:e,title:t,subtitle:n,boxes:r=[],paragraphs:i=[],logoCarousel:a,scheduleTitle:o,scheduleIcon:l,scheduleItems:c=[],footerNote:u,primaryButtonText:d,primaryButtonHref:h,primaryButtonVariant:m="primary",secondaryButtonText:p,secondaryButtonHref:f,secondaryButtonVariant:v="secondary",inverted:x=!1,backgroundColor:y}){const g=h&&(h.startsWith("http://")||h.startsWith("https://")),b=f&&(f.startsWith("http://")||f.startsWith("https://")),j=h&&!g&&!h.startsWith("#"),A=f&&!b&&!f.startsWith("#");return s.jsx("section",{id:e,className:`info-box-section ${x?"info-box-section--inverted":""}`,children:s.jsx("div",{className:"info-box-wrapper",style:y?{backgroundColor:y}:void 0,children:s.jsxs(ne,{children:[(t||n)&&s.jsxs("div",{className:"info-box-header",children:[n&&s.jsx("div",{className:"info-box-subtitle",children:n}),t&&s.jsx(K,{level:2,className:"info-box-title",children:t})]}),r.length>0&&s.jsx("div",{className:"info-box-grid",style:{gridTemplateColumns:`repeat(${r.length}, 1fr)`},children:r.map((S,k)=>s.jsxs("div",{className:"info-box-item",children:[s.jsx("div",{className:"info-box-value",children:S.value}),s.jsx("div",{className:"info-box-label",children:S.label})]},k))}),i.length>0&&s.jsx("div",{className:"info-box-paragraphs",children:i.map((S,k)=>s.jsx(P,{className:"info-box-paragraph",children:S},k))}),a&&a.logos&&a.logos.length>0&&s.jsx(Qv,{logos:a.logos,animationDuration:a.animationDuration,height:a.height,inverted:x}),c.length>0&&s.jsxs("div",{className:"info-box-schedule",children:[o&&s.jsxs("div",{className:"info-box-schedule-header",children:[l&&s.jsx("span",{className:"info-box-schedule-icon",children:l}),s.jsx("span",{className:"info-box-schedule-title",children:o})]}),s.jsx("div",{className:"info-box-schedule-grid",children:c.map((S,k)=>s.jsxs("div",{className:`info-box-schedule-item ${S.highlight?"info-box-schedule-item--highlight":""}`,children:[s.jsx("div",{className:"info-box-schedule-value",children:S.value}),s.jsx("div",{className:"info-box-schedule-label",children:S.label})]},k))}),u&&s.jsx("div",{className:"info-box-footer-note",children:u})]}),(d||p)&&s.jsxs("div",{className:"info-box-buttons",children:[d&&s.jsx(ee,{as:j?"link":"a",href:j?void 0:h,to:j?h:void 0,variant:m,children:d}),p&&s.jsx(ee,{as:A?"link":"a",href:A?void 0:f,to:A?f:void 0,variant:v,children:p})]})]})})})}function GS({title:e,items:t=[],footer:n,inverted:r=!1,className:i=""}){return s.jsxs("div",{className:`additional-content ${r?"additional-content--inverted":""} ${i}`,children:[e&&s.jsx(K,{level:3,className:"additional-content-title",children:e}),t&&t.length>0&&s.jsx("ul",{className:"additional-content-list",children:t.map((a,o)=>s.jsx("li",{children:a},o))}),n&&s.jsx(P,{className:"additional-content-footer",children:n})]})}
67function Lt({id:e,title:t,highlightedTitle:n,subtitle:r,description:i,columns:a=[],bottomButtonText:o,bottomButtonHref:l,bottomButtonVariant:c="primary",bottomDescription:u,additionalContent:d,inverted:h=!1,backgroundColor:m}){const p=l&&(l.startsWith("http://")||l.startsWith("https://")),f=l&&!p&&!l.startsWith("#");return s.jsx("section",{id:e,className:`three-column-section ${h?"three-column-section--inverted":""}`,children:s.jsx("div",{className:"three-column-wrapper",style:{backgroundColor:m},children:s.jsxs(ne,{children:[(t||n)&&s.jsx("div",{className:"three-column-header",children:s.jsxs(pr,{className:"three-column-main-title",children:[t,n&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),s.jsx("strong",{children:n})]})]})}),r&&s.jsx("p",{className:"three-column-subtitle",children:r}),i&&s.jsx(P,{className:"three-column-header-description",children:i}),s.jsx("div",{className:"three-column-grid",children:a.map((v,x)=>s.jsxs("div",{className:"three-column-item",children:[v.icon&&s.jsx("div",{className:"three-column-icon",children:typeof v.icon=="string"?s.jsx("img",{src:v.icon,alt:v.iconAlt||""}):v.icon}),v.title&&s.jsx(K,{level:3,className:"three-column-title",children:v.title}),v.description&&s.jsx(P,{className:"three-column-description",children:v.description}),v.buttonText&&v.buttonHref&&s.jsx("div",{className:"three-column-button",children:s.jsx(ee,{as:"a",href:v.buttonHref,variant:v.buttonVariant||"secondary",size:"small",children:v.buttonText})})]},x))}),u&&s.jsx(P,{className:"three-column-bottom-description",children:u}),d&&s.jsx(GS,{title:d.title,items:d.items,footer:d.footer,inverted:h}),o&&l&&s.jsx("div",{className:"three-column-bottom-button",children:s.jsx(ee,{as:f?"link":"a",href:f?void 0:l,to:f?l:void 0,variant:c,children:o})})]})})})}function KS({id:e,title:t,highlightedTitle:n,description:r,columns:i=[],bottomButtonText:a,bottomButtonHref:o,bottomButtonVariant:l="primary",inverted:c=!1,backgroundColor:u}){const d=o&&(o.startsWith("http://")||o.startsWith("https://")),h=o&&!d&&!o.startsWith("#");return s.jsx("section",{id:e,className:`two-column-section ${c?"two-column-section--inverted":""}`,children:s.jsx("div",{className:"two-column-wrapper",style:{backgroundColor:u},children:s.jsxs(ne,{children:[(t||n)&&s.jsx("div",{className:"two-column-header",children:s.jsxs(pr,{className:"two-column-main-title",children:[t,n&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),s.jsx("strong",{children:n})]})]})}),r&&s.jsx(P,{className:"two-column-header-description",children:r}),s.jsx("div",{className:"two-column-grid",children:i.map((m,p)=>s.jsxs("div",{className:`two-column-item ${m.highlighted?"two-column-item--highlighted":""}`,children:[m.badge&&s.jsx("div",{className:"two-column-badge",children:m.badge}),m.icon&&s.jsx("div",{className:"two-column-icon",children:typeof m.icon=="string"?s.jsx("img",{src:m.icon,alt:m.iconAlt||""}):m.icon}),m.title&&s.jsx(K,{level:3,className:"two-column-title",children:m.title}),m.description&&s.jsx(P,{className:"two-column-description",children:m.description}),m.items&&s.jsx("ul",{className:"two-column-list",children:m.items.map((f,v)=>s.jsx("li",{children:f},v))}),m.buttonText&&m.buttonHref&&s.jsx("div",{className:"two-column-button",children:s.jsx(ee,{as:m.buttonHref.startsWith("http://")||m.buttonHref.startsWith("https://")||m.buttonHref.startsWith("#")?"a":"link",href:m.buttonHref.startsWith("http://")||m.buttonHref.startsWith("https://")||m.buttonHref.startsWith("#")?m.buttonHref:void 0,to:!m.buttonHref.startsWith("http://")&&!m.buttonHref.startsWith("https://")&&!m.buttonHref.startsWith("#")?m.buttonHref:void 0,variant:m.buttonVariant||"secondary",size:"small",children:m.buttonText})})]},p))}),a&&o&&s.jsx("div",{className:"two-column-bottom-button",children:s.jsx(ee,{as:h?"link":"a",href:h?void 0:o,to:h?o:void 0,variant:l,children:a})})]})})})}function JS({size:e=20,color:t="currentColor",className:n="",style:r={},...i}){return s.jsx("svg",{viewBox:"0 0 20 24",width:e,height:e,className:n,style:{fill:t,...r},...i,children:s.jsx("path",{d:"M19 12L1 22.3923L1 1.6077L19 12Z"})})}function ra({href:e,thumbnail:t,alt:n="Video thumbnail",orientation:r="horizontal",className:i="",style:a={},showBorder:o=!1,...l}){const[c,u]=w.useState(!1),d=e&&!e.match(/^(https?:\/\/|www\.)/i),h=p=>{d&&(p.preventDefault(),u(!0),typeof document!="undefined"&&(document.body.style.overflow="hidden"))},m=()=>{u(!1),typeof document!="undefined"&&(document.body.style.overflow="")};return w.useEffect(()=>{if(typeof document=="undefined")return;const p=f=>{c&&f.key==="Escape"&&m()};return c&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[c]),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:`video-card video-card-${r} ${o?"video-card-bordered":""} ${i}`,style:a,"data-track-hover":"true","data-track-label":n,"data-track-section":"video_card",...l,children:s.jsxs("a",{href:e,target:d?void 0:"_blank",rel:d?void 0:"noopener noreferrer",className:"video-card-link",onClick:h,"data-track":"video_play","data-track-label":n,"data-track-section":"video_card",children:[s.jsx("img",{src:t,alt:n,className:"video-card-img"}),s.jsx("div",{className:"video-card-play",children:s.jsx(JS,{size:r==="vertical"?14:28})})]})}),d&&c&&Dv.createPortal(s.jsx("div",{className:"video-card-modal video-card-modal--active",onClick:p=>p.target===p.currentTarget&&m(),children:s.jsxs("div",{className:"video-card-modal-content",children:[s.jsx("button",{className:"video-card-modal-close",onClick:m,"aria-label":"Fechar",children:"×"}),s.jsx("video",{src:e,controls:!0,autoPlay:!0,className:"video-card-modal-video",children:"Seu navegador não suporta a reprodução de vídeo."})]})}),document.body)]})}function ir({id:e,title:t,highlightedTitle:n,description:r,buttonText:i,buttonHref:a,buttonVariant:o="primary",secondaryButtonText:l,secondaryButtonHref:c,secondaryButtonVariant:u="secondary",imageSrc:d,imageAlt:h,imagePosition:m="right",imageMaxWidth:p,inverted:f=!1,backgroundColor:v,videoHref:x,videoThumbnail:y,videoAlt:g,videoOrientation:b="horizontal"}){const j=m==="left",A=a&&(a.startsWith("http://")||a.startsWith("https://")),S=c&&(c.startsWith("http://")||c.startsWith("https://")),k=a&&!A&&!a.startsWith("#"),E=c&&!S&&!c.startsWith("#"),I=Array.isArray(r)?r.filter(Boolean):r?[r]:[];return s.jsx("section",{id:e,className:`image-content-section ${f?"image-content-section--inverted":""}`,children:s.jsx("div",{className:"image-content-wrapper",style:{backgroundColor:v},children:s.jsx(ne,{children:s.jsxs("div",{className:`image-content-grid ${j?"image-content-grid--reversed":""}`,children:[s.jsxs("div",{className:"image-content-text",children:[t&&s.jsxs(K,{level:2,className:"image-content-title",children:[t,n&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),s.jsx("strong",{children:n})]})]}),I.length>0&&I.map(($,D)=>s.jsx(P,{className:"image-content-description",children:$},D)),(i||l)&&s.jsxs("div",{className:"image-content-button",children:[i&&a&&s.jsx(ee,{as:k?"link":"a",href:k?void 0:a,to:k?a:void 0,variant:o,target:A?"_blank":void 0,rel:A?"noopener noreferrer":void 0,children:i}),l&&c&&s.jsx(ee,{as:E?"link":"a",href:E?void 0:c,to:E?c:void 0,variant:u,target:S?"_blank":void 0,rel:S?"noopener noreferrer":void 0,children:l})]})]}),s.jsx("div",{className:"image-content-image",style:{maxWidth:p},children:x&&y?s.jsx(ra,{href:x,thumbnail:y,alt:g||"Video preview",orientation:b}):d&&s.jsx("img",{src:d,alt:h||"Section image"})})]})})})})}function Xv({id:e,title:t,highlightedTitle:n,description:r,items:i=[],columns:a=2,imageAspectRatio:o="horizontal",itemMaxWidth:l,primaryButtonText:c,primaryButtonHref:u,primaryButtonVariant:d="primary",inverted:h=!1,backgroundColor:m}){const p=u&&(u.startsWith("http://")||u.startsWith("https://")),f=u&&!p&&
67!u.startsWith("#"),v={horizontal:"16/9",square:"1/1",portrait:"3/4",vertical:"9/16",auto:"auto"};return s.jsx("section",{id:e,className:`portfolio-section ${h?"portfolio-section--inverted":""}`,children:s.jsx("div",{className:"portfolio-wrapper",style:{backgroundColor:m},children:s.jsxs(ne,{children:[(t||n)&&s.jsx("div",{className:"portfolio-header",children:s.jsxs(pr,{className:"portfolio-main-title",children:[t,n&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),s.jsx("strong",{children:n})]})]})}),r&&s.jsx(P,{className:"portfolio-description",children:r}),i.length>0&&s.jsx("div",{className:"portfolio-grid",style:{gridTemplateColumns:`repeat(${a}, 1fr)`},children:i.map((x,y)=>s.jsxs("div",{className:"portfolio-item",style:{maxWidth:x.maxWidth||l},children:[x.imageSrc&&s.jsx("div",{className:`portfolio-item-image ${o==="auto"?"portfolio-item-image--auto":""}`,style:o!=="auto"?{aspectRatio:v[o]}:{},children:s.jsx("img",{src:x.imageSrc,alt:x.imageAlt||""})}),s.jsxs("div",{className:"portfolio-item-content",children:[x.title&&s.jsx(K,{level:3,className:"portfolio-item-title",children:x.title}),x.description&&s.jsx(P,{className:"portfolio-item-description",children:x.description}),x.caption&&s.jsx("p",{className:"portfolio-item-caption",children:x.caption}),x.buttonText&&x.buttonHref&&s.jsx("div",{className:"portfolio-item-button",children:s.jsx(ee,{as:x.buttonHref.startsWith("http://")||x.buttonHref.startsWith("https://")||x.buttonHref.startsWith("#")?"a":"link",href:x.buttonHref.startsWith("http://")||x.buttonHref.startsWith("https://")||x.buttonHref.startsWith("#")?x.buttonHref:void 0,to:!x.buttonHref.startsWith("http://")&&!x.buttonHref.startsWith("https://")&&!x.buttonHref.startsWith("#")?x.buttonHref:void 0,variant:x.buttonVariant||"secondary",size:"small",children:x.buttonText})})]})]},y))}),c&&u&&s.jsx("div",{className:"portfolio-primary-button",children:s.jsx(ee,{as:f?"link":"a",href:f?void 0:u,to:f?u:void 0,variant:d,children:c})})]})})})}function fo({id:e,title:t,highlightedTitle:n,description:r,videos:i=[],columns:a=4,primaryButtonText:o,primaryButtonHref:l,primaryButtonVariant:c="primary",inverted:u=!1,backgroundColor:d,asCarousel:h=!1,animationDuration:m=60}){const p=l&&(l.startsWith("http://")||l.startsWith("https://")),f=l&&!p&&!l.startsWith("#");return s.jsx("section",{id:e,className:`video-gallery-section ${u?"video-gallery-section--inverted":""}`,children:s.jsx("div",{className:"video-gallery-wrapper",style:{backgroundColor:d},children:s.jsxs(ne,{children:[(t||n)&&s.jsx("div",{className:"video-gallery-header",children:s.jsxs(pr,{className:"video-gallery-main-title",children:[t,n&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),s.jsx("strong",{children:n})]})]})}),r&&s.jsx(P,{className:"video-gallery-description",children:r}),i.length>0&&s.jsx("div",{className:`video-gallery-grid ${h?"video-gallery-carousel":""}`,style:{"--animation-duration":`${m}s`},children:h?s.jsxs("div",{className:"video-gallery-track",children:[i.map((v,x)=>s.jsxs("div",{className:"video-gallery-item",children:[s.jsx(ra,{href:v.href,thumbnail:v.thumbnail,alt:v.alt,orientation:"vertical",showBorder:!0}),(v.title||v.tag)&&s.jsxs("div",{className:"video-gallery-item-info",children:[v.tag&&s.jsx("span",{className:"video-gallery-item-tag",children:v.tag}),v.title&&s.jsx("h4",{className:"video-gallery-item-title",children:v.title})]})]},`video-${x}`)),i.map((v,x)=>s.jsxs("div",{className:"video-gallery-item",children:[s.jsx(ra,{href:v.href,thumbnail:v.thumbnail,alt:v.alt,orientation:"vertical",showBorder:!0}),(v.title||v.tag)&&s.jsxs("div",{className:"video-gallery-item-info",children:[v.tag&&s.jsx("span",{className:"video-gallery-item-tag",children:v.tag}),v.title&&s.jsx("h4",{className:"video-gallery-item-title",children:v.title})]})]},`video-dup-${x}`))]}):i.map((v,x)=>s.jsxs("div",{className:"video-gallery-item",children:[s.jsx(ra,{href:v.href,thumbnail:v.thumbnail,alt:v.alt,orientation:"vertical",showBorder:!0}),(v.title||v.tag)&&s.jsxs("div",{className:"video-gallery-item-info",children:[v.tag&&s.jsx("span",{className:"video-gallery-item-tag",children:v.tag}),v.title&&s.jsx("h4",{className:"video-gallery-item-title",children:v.title})]})]},x))}),o&&l&&s.jsx("div",{className:"video-gallery-primary-button",children:s.jsx(ee,{as:f?"link":"a",href:f?void 0:l,to:f?l:void 0,variant:c,children:o})})]})})})}function Ud({id:e,badge:t,title:n,subtitle:r,intro:i,sections:a=[],primaryButtonText:o,primaryButtonHref:l,primaryButtonVariant:c="primary",secondaryButtonText:u,secondaryButtonHref:d,secondaryButtonVariant:h="secondary",inverted:m=!1,backgroundColor:p,maxWidth:f="800px"}){const v=l&&(l.startsWith("http://")||l.startsWith("https://")),x=d&&(d.startsWith("http://")||d.startsWith("https://"));return s.jsx("section",{id:e,className:`text-content-section ${m?"text-content-section--inverted":""}`,children:s.jsx("div",{className:"text-content-wrapper",style:{backgroundColor:p},children:s.jsx(ne,{children:s.jsxs("div",{className:"text-content-box",style:{maxWidth:f},children:[t&&s.jsx("span",{className:"text-content-badge",children:t}),n&&s.jsx(K,{level:1,className:"text-content-title",children:n}),r&&s.jsx("p",{className:"text-content-subtitle",children:r}),i&&s.jsx("div",{className:"text-content-intro",children:s.jsx(P,{children:i})}),a.length>0&&s.jsx("div",{className:"text-content-sections",children:a.map((y,g)=>s.jsxs("div",{className:"text-content-clause",children:[y.title&&s.jsx(K,{level:2,className:"text-content-clause-title",children:y.title}),y.paragraphs&&y.paragraphs.map((b,j)=>s.jsxs(P,{className:"text-content-paragraph",children:[b.number&&s.jsx("strong",{children:b.number})," ",b.text]},j))]},g))}),(o||u)&&s.jsxs("div",{className:"text-content-button",children:[o&&l&&s.jsx(ee,{as:"a",href:l,variant:c,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,children:o}),u&&d&&s.jsx(ee,{as:"a",href:d,variant:h,target:x?"_blank":void 0,rel:x?"noopener noreferrer":void 0,children:u})]})]})})})})}function YS({image:e,imageAlt:t,title:n,duration:r,description:i,href:a,buttonText:o="SAIBA MAIS",inverted:l=!1}){return s.jsxs("div",{className:`course-list-item ${l?"course-list-item--inverted":""}`,"data-track-hover":"true","data-track-label":n,"data-track-section":"course_item",children:[s.jsx("div",{className:"course-list-image",children:s.jsx("img",{src:e,alt:t})}),s.jsxs("div",{className:"course-list-content",children:[s.jsx(K,{level:3,children:n}),s.jsx("span",{className:"course-duration",children:r}),s.jsx(P,{children:i}),s.jsx(ee,{as:"link",to:a,variant:l?"primary":"white",trackLabel:`${o} - ${n}`,trackSection:"course_item",children:o})]})]})}function QS({title:e,courses:t=[],id:n,backgroundColor:r,inverted:i=!1}
67){return s.jsx("section",{id:n,className:`media-content-list-section ${i?"media-content-list-section--inverted":""}`,style:{backgroundColor:r},children:s.jsxs(ne,{children:[e&&s.jsx(K,{level:2,className:"media-content-list-section-title",children:e}),s.jsx("div",{className:"course-list",children:t.map((a,o)=>s.jsx(YS,{image:a.image,imageAlt:a.imageAlt,title:a.title,duration:a.duration,description:a.description,href:a.href,buttonText:a.buttonText,inverted:i},o))})]})})}function nn({size:e=24,color:t="currentColor",className:n="",style:r={},...i}){return s.jsx("svg",{viewBox:"0 0 448 512",width:e,height:e,className:n,style:{fill:t,...r},...i,children:s.jsx("path",{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"})})}function Yc({size:e=24,color:t="currentColor",className:n="",style:r={},...i}){return s.jsx("svg",{viewBox:"0 0 448 512",width:e,height:e,className:n,style:{fill:t,...r},...i,children:s.jsx("path",{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"})})}function Aa({size:e=24,color:t="currentColor",className:n="",style:r={},...i}){return s.jsx("svg",{viewBox:"0 0 576 512",width:e,height:e,className:n,style:{fill:t,...r},...i,children:s.jsx("path",{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"})})}const XS=[{href:"/curso-revenue-architecture",pt:"Curso Revenue Architecture",en:"Revenue Architecture Course"},{href:"/curso-math4-revenue-architecture",pt:"Math 4 Revenue",en:"Math 4 Revenue"},{href:"/curso-bowtie-analytics",pt:"Bowtie Analytics",en:"Bowtie Analytics"},{href:"/member-get-member",pt:"Member Get Member",en:"Member Get Member"},{href:"/termo-adesao",pt:"Termo de Adesão",en:"Terms of Adhesion"},{href:"/termo-de-confidencialidade",pt:"Termo de Confidencialidade",en:"Confidentiality Terms"},{href:"https://certificados.winningbydesign.com.br/certificados",pt:"Validar Certificado",en:"Validate Certificate"}];function ZS(e){const t=e==="en"?"en":"pt";return XS.map(n=>({href:n.href,text:n[t]}))}function je({logoSrc:e="/images/wbdlogo.png",logoAlt:t="WbD Logo",logoLink:n="/",copyrightText:r="© Copyright 2026 Winning by Design Brasil – Todos os direitos reservados.",socialLinks:i={linkedin:"https://www.linkedin.com/in/renatacenturion/",instagram:"https://www.instagram.com/renata_centurion/",youtube:"https://www.youtube.com/@wbdbrasil"},inverted:a=!1,links:o}){const l=Et(),c=$d(l.pathname),u=po(l.pathname),d=(o||ZS(c)).filter(m=>Ea(m.href)?po($t(m.href,c))!==u:!0),h=m=>!m||!Ea(m)?m:$t(m,c);return s.jsx("footer",{className:`footer-component ${a?"footer-component--inverted":""}`,children:s.jsxs(ne,{maxWidth:"100%",children:[s.jsxs("div",{className:"footer-component-top",children:[s.jsx(et,{to:h(n),children:s.jsx("img",{src:e,alt:t,className:"footer-component-logo"})}),s.jsxs("div",{className:"footer-component-social",children:[i.linkedin&&s.jsx("a",{href:i.linkedin,target:"_blank",rel:"noopener noreferrer",className:"social-icon","aria-label":"LinkedIn",children:s.jsx(nn,{})}),i.instagram&&s.jsx("a",{href:i.instagram,target:"_blank",rel:"noopener noreferrer",className:"social-icon","aria-label":"Instagram",children:s.jsx(Yc,{})}),i.youtube&&s.jsx("a",{href:i.youtube,target:"_blank",rel:"noopener noreferrer",className:"social-icon","aria-label":"YouTube",children:s.jsx(Aa,{})})]})]}),s.jsxs("div",{className:"footer-component-bottom",children:[s.jsx("div",{className:"footer-component-copyright",children:r}),s.jsx("div",{className:"footer-component-links",children:d.map((m,p)=>s.jsx(et,{to:h(m.href),className:"footer-component-link",children:m.text},p))})]})]})})}const ej=Array.from({length:33},(e,t)=>({id:t+1,src:`/images/logo_empresa-${t+1}.jpg`,alt:`Cliente ${t+1}`}
67)),tj=[{id:1,href:"https://www.youtube.com/shorts/K_naReqTz-o",thumb:"/images/yt-thumb-1.jpg",tag:"SHORTS",title:"Turma 4 em Ação! Momentos do RA"},{id:2,href:"https://www.youtube.com/shorts/PkEUzeKIVPc",thumb:"/images/yt-thumb-2.jpg",tag:"BASTIDORES",title:"Confira os Bastidores da Turma 4"},{id:3,href:"https://www.youtube.com/shorts/74C3eJptQLE",thumb:"/images/yt-thumb-3.jpg",tag:"INTRODUÇÃO",title:"Conheça o Revenue Architecture"},{id:4,href:"/videos/video-depoimento-1.mov",thumb:"/images/thumb-video-1.png",tag:"DEPOIMENTO",title:"Experiência Imersiva WbD"},{id:5,href:"/videos/video-networking-2.mov",thumb:"/images/thumb-video-2.png",tag:"NETWORKING",title:"Conexões que Transformam"},{id:6,href:"/videos/video-insights-3.mov",thumb:"/images/thumb-video-3.png",tag:"INSIGHTS",title:"Aprenda na Prática"}],nj=[{id:1,href:"https://www.youtube.com/watch?v=RnMzgFZ2FgY",img:"/images/erika-tornice.png",name:"Erika Tornice",role:"RD Station"},{id:2,href:"https://www.youtube.com/shorts/ShfDR3Jk1Kc",img:"/images/eduardo-grillo.png",name:"Eduardo Grillo",role:"Suhai"},{id:3,href:"https://www.youtube.com/shorts/oxDcsSNGDi8",img:"/images/beatriz-costa.png",name:"Beatriz Costa",role:"RD Station"},{id:4,href:"https://www.youtube.com/shorts/oxDcsSNGDi8",img:"/images/roberta-silva.png",name:"Roberta Silva",role:"Diretora Comercial Altec"},{id:5,href:"https://www.youtube.com/shorts/cHp-1qUsrKM",img:"/images/marcelo-magdaleno.png",name:"Marcelo Magdaleno",role:"Suhai"},{id:6,href:"https://www.youtube.com/watch?v=7_vdTSwNBoo",img:"/images/rodrigo-pinto.png",name:"Rodrigo Pinto",role:"RD Station"},{id:7,href:"https://www.youtube.com/shorts/VDDzNH3-kLM",img:"/images/mauricio-vinhao.png",name:"Mauricio Vinhao",role:"WTW"},{id:8,href:"https://www.youtube.com/shorts/OzvJa7izyzg",img:"/images/fernanda-nascimento.png",name:"Fernanda Nascimento",role:"Social Selling Expert"},{id:9,href:"/videos/video-dani-yoko.mp4",img:"/images/dani-yoko.png",name:"Dani Yoko",role:"Executiva em Receita"},{id:10,href:"/videos/video-ana-paula.mp4",img:"/images/ana-paula.png",name:"Ana Paula",role:"Suhai"},{id:11,href:"/videos/video-patricia.mp4",img:"/images/patricia-souza.png",name:"Patricia Souza",role:"Gerente Líder Aviação"},{id:12,href:"https://www.youtube.com/watch?v=Siv-0KslVlc",img:"/images/gabriela-vargas.png",name:"Gabriela Vargas",role:"Consultora"}],rj=[{num:1,title:"Modelo de Receita & Modelo de Dados",desc:"Engloba os primeiros princípios da receita recorrente no B2B, incluindo o modelo de receita e como ele impacta o ciclo de vendas. Esta sessão também aborda o modelo de dados da Ampulheta WbD."},{num:2,title:"O Modelo Matemático",desc:"Analisaremos os princípios matemáticos por trás dos diferentes tipos de crescimento e como aplicar as métricas do modelo de dados da Ampulheta WBD em todas as funções de receita."},{num:3,title:"O Modelo de Go-To-Market",desc:"Aqui revisamos como pensar sobre os diferentes tipos de GTMs em Marketing, Vendas e CS, e como selecionar o modelo certo para o seu negócio."},{num:4,title:"O Modelo de Crescimento",desc:"Abordaremos os principais estágios de crescimento em um negócio de receita recorrente e como determinar não apenas onde seu negócio está atualmente, mas também para onde está indo."},{num:5,title:"O Modelo Operacional & Plano de Ação",desc:"Finalizaremos nosso curso com o modelo operacional holístico centrado no cliente e a importância de alinhá-lo por toda a equipe GTM."}],Qc={title:"REVENUE ARCHITECTURE",highlightedTitle:"Construa Operações de Receita Sustentáveis",description:"Explore nossos conteúdos exclusivos sobre as metodologias que estão transformando o mercado B2B.",videos:tj.map(e=>({href:e.href,thumbnail:e.thumb,alt:e.title,tag:e.tag,title:e.title})),asCarousel:!0,animationDuration:60},Xc={title:"Resultados Que Geram Impacto",videos:nj.map(e=>({href:e.href,thumbnail:e.img,alt:`Depoimento de ${e.name}`,tag:e.role,title:e.name})),asCarousel:!0,animationDuration:100},Zc={badge:"ESTRUTURA DO CURSO",title:"DO MODELO À PRÁTICA",subtitle:"Explore os módulos essenciais que formam a base do Revenue Architecture",intro:"Em cada etapa, você aprenderá como aplicar frameworks estratég
67icos diretamente nas suas operações. Combinando um dia inteiro de network de alto nível e conteúdo ministrado ao vivo com mais 3 sessões online.",sections:rj.map(e=>({title:`MÓDULO ${e.num}: ${e.title}`,paragraphs:[{text:e.desc}]})),backgroundColor:"var(--color-white)"},Zv={tagText:"WINNING BY DESIGN",title:s.jsxs(s.Fragment,{children:["Construa um crescimento previsível com"," ",s.jsx("strong",{children:"frameworks comprovados"})]}),description:s.jsxs(s.Fragment,{children:["Treinamento intensivo para líderes que querem escalar suas receitas com estratégias comprovadas, baseadas nos seis modelos da"," ",s.jsx("span",{className:"hero-brand-name",children:"Winning by Design."})]}),primaryButtonText:"INSCREVA-SE AGORA",primaryButtonHref:"/curso-revenue-architecture",imageSrc:"/images/ampulheta-1.webp",imageAlt:"Ilustração de Revenue Architecture"},ey={title:s.jsx(s.Fragment,{children:s.jsx("strong",{children:"IMPACTO GLOBAL"})}),subtitle:"Transformando operações de receita em todo o mundo",boxes:[{value:"1.000+",label:"empresas transformaram suas operações com nossa metodologia"},{value:"130+",label:"especialistas globais prontos para auxiliar sua equipe"},{value:"13+",label:"anos de experiência com estratégias de crescimento"}],paragraphs:["A Winning by Design é uma consultoria global especializada em acelerar receitas recorrentes para empresas B2B por meio de frameworks científicos e estratégias de Go-To-Market.",s.jsxs(s.Fragment,{children:["Atuamos em ",s.jsx("strong",{children:"13 países"})," e já treinamos mais de"," ",s.jsx("strong",{children:"16.000 líderes"})," em empresas como"," ",s.jsx("strong",{children:"Uber Eats, DocuSign e IBM"}),"."]})],logoCarousel:{logos:ej,animationDuration:80,height:"80px"}},Ui={columns:[{icon:"/images/gtm.webp",iconAlt:"Ícone Go-To-Market",title:"Otimize Sua Estratégia GTM",description:"Aplique frameworks comprovados em vendas, marketing e sucesso do cliente, garantindo operações consistentes e escaláveis que impulsionam resultados previsíveis."},{icon:"/images/leadership.webp",iconAlt:"Ícone Liderança",title:"Alinhe Sua Liderança",description:"Unifique seus departamentos com uma visão clara e decisões orientadas por dados, permitindo que toda a equipe trabalhe em harmonia para um crescimento sustentável."},{icon:"/images/growth-fast.webp",iconAlt:"Ícone Crescimento Rápido",title:"Acelere Seu Crescimento",description:"Desenvolva as habilidades executivas necessárias para liderar a transformação da sua organização, impactando diretamente os resultados e impulsionando sua carreira."}],bottomButtonText:"INSCREVA-SE AGORA",bottomButtonHref:"/curso-revenue-architecture",bottomButtonVariant:"primary"},Ms={columns:[{title:"EXPERIÊNCIA DE APRENDIZAGEM",items:["Almoço com Network incluso no local","Acesso ao material dentro da plataforma Winning by Design"]},{highlighted:!0,badge:"BÔNUS ESPECIAL",title:"Sessão Exclusiva de Perguntas com JACCO VAN DER KOOIJ",description:"Uma oportunidade única: 30 minutos ao vivo com o fundador da Winning by Design para tirar suas dúvidas diretamente com quem criou a metodologia — exclusivo para os participantes do Revenue Architecture no Brasil."}]},ty={title:"SOLUÇÕES SOB MEDIDA",highlightedTitle:"PARA SUA REALIDADE",description:"Cada organização enfrenta desafios únicos. Nossos treinamentos são personalizados para alinhar equipes, resolver gargalos de receita e escalar com consistência.",buttonText:"INSCREVA-SE AGORA",buttonHref:"/curso-revenue-architecture",imageSrc:"/images/turmas/turma-1.jpg",imageAlt:"Turma Winning by Design",imagePosition:"right"},ny={title:"A BASE PARA O SEU CRESCIMENTO",description:"O curso ensina como aplicar frameworks científicos e estratégicos em suas operações de receita recorrente, permitindo que você e sua equipe operem de maneira unificada e com foco em resultados previsíveis e escaláveis.",buttonText:"INSCREVA-SE AGORA",buttonHref:"/curso-revenue-architecture",imageSrc:"/images/certificado.webp",imageAlt:"Certificado Winning by Design",imagePosition:"left"},Bs={title:"REVENUE ARCHITECTURE",highlightedTitle:"LIVRO E CHATBOT",description:"Acelere sua estratég
67ia de receita com nosso guia completo e assistente de IA. Implemente e ajuste a Arquitetura de Receita no seu tempo.",columns:2,items:[{imageSrc:"/images/livro.webp",imageAlt:"Livro Revenue Architecture",title:"Livro Revenue Architecture",description:"Guia completo com frameworks comprovados",buttonText:"INSCREVA-SE",buttonHref:"/curso-revenue-architecture",buttonVariant:"primary"},{imageSrc:"/images/chatbot.webp",imageAlt:"Chatbot",title:"Assistente de IA",description:"Chatbot inteligente disponível 24/7",buttonText:"EXPERIMENTE NOSSO CHATBOT",buttonHref:"https://winningbydesign.com/revenue-architecture/chat/",buttonVariant:"primary"}]},$s={title:"CONHEÇA NOSSOS CURSOS",courses:[{image:"/images/ampulheta-exemplo.jpeg",imageAlt:"Bowtie Analytics",title:"Bowtie Analytics",duration:"~10 horas",description:"Transforme caos de métricas em crescimento estruturado com o Bowtie Analytics. Domine análise avançada de negócios e benchmarking. Identifique insights para decisões estratégicas e otimização de desempenho.",href:"/curso-bowtie-analytics"},{image:"/images/bowtie-analytics.webp",imageAlt:"Math 4 Revenue Architecture",title:"Math 4 Revenue Architecture",duration:"~4 horas",description:"Dominando os números por trás do Revenue Architecture com o MATH 4 REVENUE ARCHITECTURE. Se você lidera receitas, mas ainda hesita ao interpretar tendências, distribuições ou variações de comportamento comercial, este curso é para você.",href:"/curso-math4-revenue-architecture"}]},ry={title:"AINDA TEM ALGUMA DÚVIDA ESPECÍFICA?",description:"Sabemos que tomar decisões importantes para o crescimento da sua empresa exige clareza. Se você ainda tiver alguma dúvida sobre o Revenue Architecture ou sobre como o curso pode ajudar a transformar suas operações de receita, estamos aqui para ajudar! Clique no link abaixo para enviar uma mensagem e nossa equipe de especialistas entrará em contato para esclarecer suas dúvidas e fornecer as informações que você precisa para tomar a melhor decisão.",buttonText:"ENVIE SUA DÚVIDA",buttonHref:"https://wa.me/551132308228",buttonExternal:!0,imageSrc:"/images/wbdlogo.png",imageAlt:"Winning by Design Logo",imagePosition:"left",backgroundColor:"#111"},ur={links:[{text:"Curso Revenue Architecture",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Bowtie Analytics",href:"/curso-bowtie-analytics"},{text:"Member Get Member",href:"/member-get-member"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}]},ij={...Zv,title:s.jsxs(s.Fragment,{children:["Build predictable growth with ",s.jsx("strong",{children:"proven frameworks"})]}),description:"An intensive training for leaders who want to scale revenue with proven strategies based on the six Winning by Design models.",primaryButtonText:"REGISTER NOW",primaryButtonHref:"/en/curso-revenue-architecture"},aj={...ey,title:s.jsx(s.Fragment,{children:s.jsx("strong",{children:"GLOBAL IMPACT"})}),subtitle:"Transforming revenue operations worldwide",boxes:[{value:"1,000+",label:"companies transformed their operations with our methodology"},{value:"130+",label:"global experts ready to support your team"},{value:"13+",label:"years of experience with growth strategies"}],paragraphs:["Winning by Design is a global consultancy focused on accelerating recurring revenue for B2B companies through scientific frameworks and Go-To-Market strategies.",s.jsxs(s.Fragment,{children:["We operate in ",s.jsx("strong",{children:"13 countries"})," and have already trained more than ",s.jsx("strong",{children:"16,000 leaders"})," at companies like"," ",s.jsx("strong",{children:"Uber Eats, DocuSign, and IBM"}),"."]})]},sj={...Ui,columns:[{...Ui.columns[0],title:"Optimize Your GTM Strategy",description:"Apply proven frameworks in sales, marketing, and customer success to build consistent and scalable operations that drive predictable outcomes."},{...Ui.columns[1],title:"Align Your Leadership",description:"Unify departments with clear direction and data-driven decisions so the entire team operates in sync toward sustainable growth."},{...Ui.columns[2],title:"Accelerate Your Growth",description:"Develop the executive capabilities required to lead your organization through transformation and drive measurable business outcomes."}],bottomButtonText:"REGISTER NOW",bottomButtonHref:"/en/curso-revenue-architecture"},oj={...Ms,columns:[{...Ms.columns[0],title:"LEARNING EXPERIENCE",items:["Lunch and high-level networking included on-site","Access to materials inside the Winning by Design platform"]},{...Ms.columns[1],badge:"SPECIAL BONUS",title:"Exclusive Q&A Session with JACCO VAN DER KOOIJ",description:"A unique opportunity: 30 live minutes with the founder of Winning by Design to ask your questions directly to the creator of the methodology, exclusive for Revenue Architecture participants in Brazil."}]},lj={...ty,title:"TAILOR-MADE SOLUTIONS",highlightedTitle:"FOR YOUR REALITY",description:"Every organization faces unique challenges. Our training is tailored to align teams, remove revenue bottlenecks, and scale with consistency.",buttonText:"REGISTER NOW",buttonHref:"/en/curso-revenue-architecture"}
67,cj={...ny,title:"THE FOUNDATION FOR YOUR GROWTH",description:"The course teaches how to apply scientific and strategic frameworks to recurring revenue operations, enabling your team to operate in a unified, predictable, and scalable way.",buttonText:"REGISTER NOW",buttonHref:"/en/curso-revenue-architecture"},uj={...Bs,highlightedTitle:"BOOK AND CHATBOT",description:"Accelerate your revenue strategy with our complete guide and AI assistant. Implement and refine Revenue Architecture at your own pace.",items:[{...Bs.items[0],description:"Complete guide with proven frameworks",buttonText:"REGISTER",buttonHref:"/en/curso-revenue-architecture"},{...Bs.items[1],description:"Smart assistant available 24/7",buttonText:"TRY OUR CHATBOT"}]},dj={...$s,title:"EXPLORE OUR COURSES",courses:[{...$s.courses[0],description:"Turn metrics chaos into structured growth with Bowtie Analytics. Master advanced business analytics and benchmarking to drive strategic decisions and performance optimization.",href:"/en/curso-bowtie-analytics"},{...$s.courses[1],description:"Master the numbers behind Revenue Architecture with Math 4 Revenue Architecture. If you lead revenue but still hesitate when interpreting trends and behavior variations, this course is for you.",href:"/en/curso-math4-revenue-architecture"}]},mj={...ry,title:"DO YOU STILL HAVE A SPECIFIC QUESTION?",description:"Important growth decisions require clarity. If you still have questions about Revenue Architecture or how this course can transform your revenue operations, we are here to help. Click below and our specialist team will c
67ontact you with the guidance you need.",buttonText:"SEND YOUR QUESTION"},hj={...Qc,highlightedTitle:"Build Sustainable Revenue Operations",description:"Explore our exclusive content on the methodologies transforming the B2B market.",videos:Qc.videos.map(e=>({...e,tag:e.tag==="BASTIDORES"?"BEHIND THE SCENES":e.tag==="INTRODUÇÃO"?"INTRO":e.tag==="DEPOIMENTO"?"TESTIMONIAL":e.tag==="INSIGHTS"?"INSIGHTS":e.tag,title:e.title==="Turma 4 em Ação! Momentos do RA"?"Cohort 4 in Action! RA Highlights":e.title==="Confira os Bastidores da Turma 4"?"See Behind the Scenes of Cohort 4":e.title==="Conheça o Revenue Architecture"?"Discover Revenue Architecture":e.title==="Experiência Imersiva WbD"?"WbD Immersive Experience":e.title==="Conexões que Transformam"?"Connections That Transform":e.title==="Aprenda na Prática"?"Learn in Practice":e.title}))},pj={...Xc,title:"Results That Drive Impact",videos:Xc.videos.map(e=>({...e,alt:String(e.alt||"").replace("Depoimento de","Testimonial from")}))},fj={...Zc,badge:"COURSE STRUCTURE",title:"FROM MODEL TO EXECUTION",subtitle:"Explore the essential modules that form the foundation of Revenue Architecture",intro:"In each stage, you will learn how to apply strategic frameworks directly to your operation. The format combines one full day of high-level networking and live content plus 3 online sessions.",sections:Zc.sections.map(e=>({...e,title:e.title.replace("MÓDULO","MODULE").replace("Modelo de Receita & Modelo de Dados","Revenue Model & Data Model").replace("O Modelo Matemático","The Mathematical Model").replace("O Modelo de Go-To-Market","The Go-To-Market Model").replace("O Modelo de Crescimento","The Growth Model").replace("O Modelo Operacional & Plano de Ação","The Operating Model & Action Plan"),paragraphs:e.paragraphs.map(t=>({...t,text:t.text==="Engloba os primeiros princípios da receita recorrente no B2B, incluindo o modelo de receita e como ele impacta o ciclo de vendas. Esta sessão também aborda o modelo de dados da Ampulheta WbD."?"Covers the core principles of B2B recurring revenue, including the revenue model and how it impacts the sales cycle. We also explain and detail Data Model.":t.text==="Analisaremos os princípios matemáticos por trás dos diferentes tipos de crescimento e como aplicar as métricas do modelo de dados da Ampulheta WBD em todas as funções de receita."?"We analyze the mathematical principles behind different growth models and how to apply Bowtie data-model metrics across all revenue functions.":t.text==="Aqui revisamos como pensar sobre os diferentes tipos de GTMs em Marketing, Vendas e CS, e como selecionar o modelo certo para o seu negócio."?"We review how to think about different GTM models across Marketing, Sales, and CS, and how to select the right model for your business.":t.text==="Abordaremos os principais estágios de crescimento em um negócio de receita recorrente e como determinar não apenas onde seu negócio está atualmente, mas também para onde está indo."?"We cover key growth stages in recurring-revenue businesses and how to identify not only where your business is today, but where it is heading.":t.text==="Finalizaremos nosso curso com o modelo operacional holístico centrado no cliente e a importância de alinhá-lo por toda a equipe GTM."?"We close with the holistic customer-centered operating model and how to align it across your GTM team.":t.text}))}))},gj={...ur,links:ur.links.map(e=>{const t=e.href.startsWith("/")&&!e.href.startsWith("/en")?`/en${e.href}`:e.href;return{...e,href:t,text:e.text==="Termo de Adesão"?"Adhesion Terms":e.text==="Termo de Confidencialidade"?"Confidentiality Terms":e.text==="Validar Certificado"?"Validate Certificate":e.text}})},vj={pt:{seo:{title:"Winning by Design | Revenue Architecture - Cursos e Treinamentos",description:"Transforme sua operação de receita com frameworks científicos de Revenue Architecture. Cursos especializados para líderes de vendas, marketing e customer success.",url:"/",keywords:"revenue architecture, vendas B2B, marketing, customer success, SaaS, treinamento empresarial, winning by design"},headerButtonText:"FALE CONOSCO",organizationDescription:"Transforme sua operação de receita com frameworks científicos de Revenue Architecture. Cursos e treinamentos especializados para líderes de vendas, marketing e CS."},en:{seo:{title:"Winning by Design | Revenue Architecture - Courses and Training",description:"Transform your revenue operation with science-based Revenue Architecture frameworks. Specialized courses for sales, marketing, and customer success leaders.",url:"/en",keywords:"revenue architecture, B2B sales, marketing, customer success, SaaS, business training, winning by design"},headerButtonText:"CONTACT US",organizationDescription:"Transform your revenue operation with science-based Revenue Architecture frameworks. Specialized training for sales, marketing, and customer success leaders."}}
67,yj={pt:{heroData:Zv,statsData:ey,benefitsData:Ui,experienceData:Ms,solutionsData:ty,coursesData:$s,certificateData:ny,resourcesData:Bs,contactData:ry,footerData:ur,videoSectionData:Qc,testimonialSectionData:Xc,courseStructureData:Zc},en:{heroData:ij,statsData:aj,benefitsData:sj,experienceData:oj,solutionsData:lj,coursesData:dj,certificateData:cj,resourcesData:uj,contactData:mj,footerData:gj,videoSectionData:hj,testimonialSectionData:pj,courseStructureData:fj}};function bj(e){const t=e==="en"?"en":"pt";return{locale:t,copy:vj[t],...yj[t]}}function Uh({locale:e="pt"}){const{heroData:t,statsData:n,benefitsData:r,experienceData:i,solutionsData:a,coursesData:o,certificateData:l,resourcesData:c,contactData:u,footerData:d,videoSectionData:h,testimonialSectionData:m,courseStructureData:p,copy:f}=bj(e);w.useEffect(()=>{window.scrollTo(0,0)},[]);const v={"@context":"https://schema.org","@type":"Organization",name:"Winning by Design",url:"https://winningbydesign.com.br",logo:"https://winningbydesign.com.br/images/wbdlogo.png",description:f.orgDescription,address:{"@type":"PostalAddress",addressCountry:"BR"},sameAs:["https://www.linkedin.com/company/winningbydesign","https://www.youtube.com/@winningbydesign"]};return s.jsxs("div",{className:"home-page",children:[s.jsx(ye,{title:f.seo.title,description:f.seo.description,image:"/images/og/home.jpg",url:f.seo.url,keywords:f.seo.keywords,schema:v}),s.jsx(Se,{buttonText:f.headerButtonText,buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es."}),s.jsx(Fo,{tagText:t.tagText,title:t.title,description:t.description,primaryButtonText:t.primaryButtonText,primaryButtonHref:t.primaryButtonHref,imageSrc:t.imageSrc,imageAlt:t.imageAlt}),s.jsx(hi,{title:n.title,subtitle:n.subtitle,boxes:n.boxes,paragraphs:n.paragraphs,logoCarousel:n.logoCarousel}),s.jsx(fo,{title:h.title,highlightedTitle:h.highlightedTitle,description:h.description,videos:h.videos,asCarousel:h.asCarousel,animationDuration:h.animationDuration}),s.jsx(KS,{columns:i.columns,backgroundColor:"var(--color-white)",inverted:!0}),s.jsx(Lt,{columns:r.columns,bottomButtonText:r.bottomButtonText,bottomButtonHref:r.bottomButtonHref,bottomButtonVariant:r.bottomButtonVariant}),s.jsx(ir,{title:a.title,highlightedTitle:a.highlightedTitle,description:a.description,buttonText:a.buttonText,buttonHref:a.buttonHref,imageSrc:a.imageSrc,imageAlt:a.imageAlt,imagePosition:a.imagePosition,backgroundColor:"var(--color-white)",inverted:!0}),s.jsx(fo,{title:m.title,videos:m.videos,asCarousel:m.asCarousel,animationDuration:m.animationDuration}),s.jsx(Ud,{inverted:p.inverted,badge:p.badge,title:p.title,subtitle:p.subtitle,intro:p.intro,sections:p.sections,backgroundColor:p.backgroundColor}),s.jsx(QS,{id:"courses",title:o.title,courses:o.courses,inverted:!0}),s.jsx(ir,{id:"contact",title:u.title,description:u.description,buttonText:u.buttonText,buttonHref:u.buttonHref,buttonExternal:u.buttonExternal,imageSrc:u.imageSrc,imageAlt:u.imageAlt,imagePosition:u.imagePosition,backgroundColor:u.backgroundColor}),s.jsx(Xv,{title:c.title,highlightedTitle:c.highlightedTitle,description:c.description,columns:c.columns,imageAspectRatio:"auto",items:c.items}),s.jsx(ir,{title:l.title,description:l.description,buttonText:l.buttonText,buttonHref:l.buttonHref,imageSrc:l.imageSrc,imageAlt:l.imageAlt,imagePosition:l.imagePosition}),s.jsx(je,{links:d.links})]})}function kt({columns:e=2,gap:t,alignItems:n,children:r,className:i="",style:a={},...o}){const l=["grid",typeof e=="number"&&`grid-${e}`,e==="auto"&&"grid-auto",i].filter(Boolean).join(" "),c={...a,...t&&{gap:t},...n&&{alignItems:n}};return s.jsx("div",{className:l,style:c,...o,children:r})}function de({children:e,inverted:t=!1,id:n,className:r="",style:i={},noBorder:a=!1,noPadding:o=!1,...l}){const c=["section",t&&"section-inverted",a&&"section-no-border",o&&"section-no-padding",r].filter(Boolean).join(" ");return s.jsx("section",{id:n,className:c,style:i,...l,children:e})}function wj({num:e,title:t,desc:n}){return s.jsxs("div",{className:"module-item",children:[s.jsxs("div",{className:"module-number",children:["MÓDULO ",e]}),s.jsxs("div",{children:[s.jsx(K,{level:3,style:{color:"#000",marginBottom:"12px"},children:t}),s.jsx(P,{style:{color:"#444",margin:0},children:n})]})]})}function qd({id:e,title:t,description:n,modules:r=[],disclaimer:i,inverted:a=!0,headerColumns:o=2}){return s.jsx(de,{inverted:a,id:e,children:s.jsxs(ne,{children:[s.jsxs(kt,{columns:o,className:"modules-section-header",style:{marginBottom:"60px",alignItems:"start"},children:[s.jsx("div",{children:s.jsx(K,{level:2,className:"modules-section-header-title",style:{color:a?"#000":"#FFF",marginTop:"8px"},children:t})}),n&&s.jsx("div",{children:s.jsx(P,{className:"modules-section-header-description",style:{color:a?"#444":"#CCC",fontSize:"1rem"},children:n})})]}),s.jsx("div",{className:"module-list",children:r.map(l=>
67s.jsx(wj,{num:l.num,title:l.title,desc:l.desc},l.num))}),i&&s.jsx("div",{className:"modules-disclaimer",children:i})]})})}const Fd="wbd_affiliate_id",iy="wbd_cookie_consent",zd="wbd_affiliate_session",eu="wbd:consent-changed";function ay(){const e=cy();return(e==null?void 0:e.marketingAttribution)===!0}function xj(e){try{return encodeURIComponent(JSON.stringify(e))}catch{return""}}function Sj(e){try{return JSON.parse(decodeURIComponent(e))}catch{return null}}function sy(e){if(!e)return;const t=String(e).toLowerCase();if(t==="winningbydesign.com.br"||t.endsWith(".winningbydesign.com.br"))return".winningbydesign.com.br"}function zo(){const e=Fd+"=",t=document.cookie.split(";");for(let n=0;n<t.length;n++){let r=t[n].trim();if(r.indexOf(e)===0){const i=Sj(r.substring(e.length));return i&&typeof i=="object"&&i.codigo&&!Object.values(i).some(a=>a&&typeof a=="object")?null:i&&typeof i=="object"?i:null}}return null}function oy(e,t=30,n){const r=new Date(Date.now()+t*864e5).toUTCString(),i=sy(n||window.location.hostname),a=xj(e);let o=`${Fd}=${a}; Expires=${r}; Path=/; SameSite=Lax`;i&&(o+=`; Domain=${i}`),location.protocol==="https:"&&(o+="; Secure"),document.cookie=o}function ly(e,t,n=30,r){if(!e||!e.codigo||!(t!=null&&t.length))return;const i=zo()||{};t.forEach(a=>{i[a]={codigo:e.codigo,texto_descritivo:e.texto_descritivo||null}}),oy(i,n,r)}function Wd(e){if(!e)return null;const t=zo();return(t==null?void 0:t[e])||null}function jj(){return zo()}function Ua(e,t){if(!e||!e.length){const r=sy(t||window.location.hostname);let i=`${Fd}=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/;`;r&&(i+=` Domain=${r};`),document.cookie=i;return}const n=zo();n&&(e.forEach(r=>delete n[r]),Object.keys(n).length===0?Ua(null,t):oy(n,30,t))}function qh(e){if(e)try{sessionStorage.setItem(zd,JSON.stringify(e))}catch{}}function qa(){try{const e=sessionStorage.getItem(zd);return e?JSON.parse(e):null}catch{return null}}function Fa(){try{sessionStorage.removeItem(zd)}catch{}}function cy(){try{const e=localStorage.getItem(iy);return e?JSON.parse(e):{marketingAttribution:null}}catch{return{marketingAttribution:null}}}function Fh(e){try{localStorage.setItem(iy,JSON.stringify(e)),window.dispatchEvent(new CustomEvent(eu,{detail:e}))}catch{}}function Wo(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function kj(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?a(d.value):i(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}const Ej=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Vd extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class Aj extends Vd{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class zh extends Vd{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Wh extends Vd{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var tu;(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"})(tu||(tu={}));class Tj{constructor(t,{headers:n={},customFetch:r,region:i=tu.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=Ej(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return kj(this,arguments,void 0,function*(n,r={}){var i;let a,o;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=r;let m={},{region:p}=r;p||(p=this.region);const f=new URL(`${this.url}/${n}`);p&&p!=="any"&&(m["x-region"]=p,f.searchParams.set("forceFunctionRegion",p));let v;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob!="undefined"&&u instanceof Blob||u instanceof ArrayBuffer?(m["Content-Type"]="application/octet-stream",v=u):typeof u=="string"?(m["Content-Type"]="text/plain",v=u):typeof FormData!="undefined"&&u instanceof FormData?v=u:(m["Content-Type"]="application/json",v=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob!="undefined"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData!="undefined"&&u instanceof FormData)?v=JSON.stringify(u):v=u;let x=d;h&&(o=new AbortController,a=setTimeout(()=>
67o.abort(),h),d?(x=o.signal,d.addEventListener("abort",()=>o.abort())):x=o.signal);const y=yield this.fetch(f.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},m),this.headers),l),body:v,signal:x}).catch(A=>{throw new Aj(A)}),g=y.headers.get("x-relay-error");if(g&&g==="true")throw new zh(y);if(!y.ok)throw new Wh(y);let b=((i=y.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),j;return b==="application/json"?j=yield y.json():b==="application/octet-stream"||b==="application/pdf"?j=yield y.blob():b==="text/event-stream"?j=y:b==="multipart/form-data"?j=yield y.formData():j=yield y.text(),{data:j,error:null,response:y}}catch(l){return{data:null,error:l,response:l instanceof Wh||l instanceof zh?l.context:void 0}}finally{a&&clearTimeout(a)}})}}var _j=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},Cj=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 i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{let o=null,l=null,c=null,u=a.status,d=a.statusText;if(a.ok){var h,m;if(n.method!=="HEAD"){var p;const y=await a.text();y===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((p=n.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?l=y:l=JSON.parse(y))}const v=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),x=(m=a.headers.get("content-range"))===null||m===void 0?void 0:m.split("/");v&&x&&x.length>1&&(c=parseInt(x[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(l)&&(l.length>1?(o={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var f;const v=await a.text();try{o=JSON.parse(v),Array.isArray(o)&&a.status===404&&(l=[],o=null,u=200,d="OK")}catch{a.status===404&&v===""?(u=204,d="No Content"):o={message:v}}if(o&&n.isMaybeSingle&&(!(o==null||(f=o.details)===null||f===void 0)&&f.includes("0 rows"))&&(o=null,u=200,d="OK"),o&&n.shouldThrowOnError)throw new _j(o)}return{error:o,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(i=i.catch(a=>{var o;let l="",c="",u="";const d=a==null?void 0:a.cause;if(d){var h,m,p,f;const y=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",g=(m=d==null?void 0:d.code)!==null&&m!==void 0?m:"";l=`${(p=a==null?void 0:a.name)!==null&&p!==void 0?p:"FetchError"}: ${a==null?void 0:a.message}`,l+=`
68
69Caused by: ${(f=d==null?void 0:d.name)!==null&&f!==void 0?f:"Error"}: ${y}`,g&&(l+=` (${g})`),d!=null&&d.stack&&(l+=`
70${d.stack}`)}else{var v;l=(v=a==null?void 0:a.stack)!==null&&v!==void 0?v:""}const x=this.url.toString().length;return(a==null?void 0:a.name)==="AbortError"||(a==null?void 0:a.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",x>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${x} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",x>this.urlLengthLimit&&(c+=`. Your request URL is ${x} 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:`${(o=a==null?void 0:a.name)!==null&&o!==void 0?o:"FetchError"}: ${a==null?void 0:a.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}}
70)),i.then(e,t)}returns(){return this}overrideTypes(){return this}},Nj=class extends Cj{select(e){let t=!1;const n=(e!=null?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:i=r}={}){const a=i?`${i}.order`:"order",o=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n=="undefined"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r=="undefined"?"offset":`${r}.offset`,a=typeof r=="undefined"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${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:i=!1,format:a="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${a}; for="${c}"; options=${l};`),a==="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 Vh=new RegExp("[,()]");var _r=class extends Nj{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"&&Vh.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"&&Vh.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 i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const a=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${a}.${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}},Rj=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i}
70cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t!=null?t:{},i=n?"HEAD":"GET";let a=!1;const o=(e!=null?e:"*").split("").map(u=>/\s/.test(u)&&!a?"":(u==='"'&&(a=!a),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),r&&c.append("Prefer",`count=${r}`),new _r({method:i,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:a,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);a.searchParams.set("columns",c.join(","))}}return new _r({method:i,url:a,headers:o,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:i=!0}={}){var a;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),i||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);l.searchParams.set("columns",d.join(","))}}return new _r({method:o,url:l,headers:c,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new _r({method:r,url:i,headers:a,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:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new _r({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function Ta(e){"@babel/helpers - typeof";return Ta=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},Ta(e)}function Oj(e,t){if(Ta(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ta(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ij(e){var t=Oj(e,"string");return Ta(t)=="symbol"?t:t+""}function Lj(e,t,n){return(t=Ij(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(n),!0).forEach(function(r){Lj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Dj=class uy{constructor(t,{headers:n={},schema:r,fetch:i,timeout:a,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=i!=null?i:globalThis.fetch;a!==void 0&&a>0?this.fetch=(c,u)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),a),m=u==null?void 0:u.signal;if(m){if(m.aborted)return clearTimeout(h),l(c,u);const p=()=>{clearTimeout(h),d.abort()};return m.addEventListener("abort",p,{once:!0}),l(c,hs(hs({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),m.removeEventListener("abort",p)})}return l(c,hs(hs({},u),{},{signal:d.signal})).finally(()=>
70clearTimeout(h))}:this.fetch=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Rj(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new uy(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:i=!1,count:a}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),h=r&&Object.values(n).some(d);h?(l="POST",u=n):r||i?(l=r?"HEAD":"GET",Object.entries(n).filter(([p,f])=>f!==void 0).map(([p,f])=>[p,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([p,f])=>{c.searchParams.append(p,f)})):(l="POST",u=n);const m=new Headers(this.headers);return h?m.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&m.set("Prefer",`count=${a}`),new _r({method:l,url:c,headers:m,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class Pj{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket!="undefined")return{type:"native",constructor:WebSocket};if(typeof globalThis!="undefined"&&typeof globalThis.WebSocket!="undefined")return{type:"native",constructor:globalThis.WebSocket};if(typeof global!="undefined"&&typeof global.WebSocket!="undefined")return{type:"native",constructor:global.WebSocket};if(typeof globalThis!="undefined"&&typeof globalThis.WebSocketPair!="undefined"&&typeof globalThis.WebSocket=="undefined")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!="undefined"&&globalThis.EdgeRuntime||typeof navigator!="undefined"&&(!((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 i=r.node,a=parseInt(i.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket!="undefined"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
71import ws from "ws"
72new 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+=`
73
74Suggested 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 Mj="2.95.3",Bj=`realtime-js/${Mj}`,$j="1.0.0",dy="2.0.0",Gh=dy,nu=1e4,Uj=1e3,qj=100;var gn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(gn||(gn={}));var Re;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Re||(Re={}));var Ot;(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"})(Ot||(Ot={}));var ru;(function(e){e.websocket="websocket"})(ru||(ru={}));var Kn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Kn||(Kn={}));class Fj{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!=null?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 i=(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,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,a;const o=t.topic,l=(i=t.ref)!==null&&i!==void 0?i:"",c=(a=t.join_ref)!==null&&a!==void 0?a:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const m=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+u.length+h.length,p=new ArrayBuffer(this.HEADER_LENGTH+m);let f=new DataView(p),v=0;f.setUint8(v++,this.KINDS.userBroadcastPush),f.setUint8(v++,c.length),f.setUint8(v++,l.length),f.setUint8(v++,o.length),f.setUint8(v++,u.length),f.setUint8(v++,h.length),f.setUint8(v++,n),Array.from(c,y=>
74f.setUint8(v++,y.charCodeAt(0))),Array.from(l,y=>f.setUint8(v++,y.charCodeAt(0))),Array.from(o,y=>f.setUint8(v++,y.charCodeAt(0))),Array.from(u,y=>f.setUint8(v++,y.charCodeAt(0))),Array.from(h,y=>f.setUint8(v++,y.charCodeAt(0)));var x=new Uint8Array(p.byteLength+r.byteLength);return x.set(new Uint8Array(p),0),x.set(new Uint8Array(r),p.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,a,o,l,c]=r;return n({join_ref:i,ref:a,topic:o,event:l,payload:c})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),a=n.getUint8(2),o=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const u=r.decode(t.slice(c,c+i));c=c+i;const d=r.decode(t.slice(c,c+a));c=c+a;const h=r.decode(t.slice(c,c+o));c=c+o;const m=t.slice(c,t.byteLength),p=l===this.JSON_ENCODING?JSON.parse(r.decode(m)):m,f={type:this.BROADCAST_EVENT,event:d,payload:p};return o>0&&(f.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:f}}_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 my{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 me;(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"})(me||(me={}));const Kh=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((a,o)=>(a[o]=zj(o,e,t,i),a),{}):{}},zj=(e,t,n,r)=>{const i=t.find(l=>
74l.name===e),a=i==null?void 0:i.type,o=n[e];return a&&!r.includes(a)?hy(a,o):iu(o)},hy=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return Gj(t,n)}switch(e){case me.bool:return Wj(t);case me.float4:case me.float8:case me.int2:case me.int4:case me.int8:case me.numeric:case me.oid:return Vj(t);case me.json:case me.jsonb:return Hj(t);case me.timestamp:return Kj(t);case me.abstime:case me.date:case me.daterange:case me.int4range:case me.int8range:case me.money:case me.reltime:case me.text:case me.time:case me.timestamptz:case me.timetz:case me.tsrange:case me.tstzrange:return iu(t);default:return iu(t)}},iu=e=>e,Wj=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Vj=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Hj=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},Gj=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let a;const o=e.slice(1,n);try{a=JSON.parse("["+o+"]")}catch{a=o?o.split(","):[]}return a.map(l=>hy(t,l))}return e},Kj=e=>typeof e=="string"?e.replace(" ","T"):e,py=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 Ll{constructor(t,n,r={},i=nu){this.channel=t,this.event=n,this.payload=r,this.timeout=i,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.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Jh;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Jh||(Jh={}));class ia{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,{},i=>{const{onJoin:a,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ia.syncState(this.state,i,a,o),this.pendingDiffs.forEach(c=>{this.state=ia.syncDiff(this.state,c,a,o)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},i=>{const{onJoin:a,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=ia.syncDiff(this.state,i,a,o),l())}),this.onJoin((i,a,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:a,newPresences:o})}),this.onLeave((i,a,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:a,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const a=this.cloneDeep(t),o=this.transformState(n),l={},c={};return this.map(a,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=a[u];if(h){const m=d.map(x=>x.presence_ref),p=h.map(x=>x.presence_ref),f=d.filter(x=>p.indexOf(x.presence_ref)<0),v=h.filter(x=>m.indexOf(x.presence_ref)<0);f.length>0&&(l[u]=f),v.length>0&&(c[u]=v)}else l[u]=d}),this.syncDiff(a,{joins:l,leaves:c},r,i)}static syncDiff(t,n,r,i){const{joins:a,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(a,(l,c)=>{var u;
74const d=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),d.length>0){const h=t[l].map(p=>p.presence_ref),m=d.filter(p=>h.indexOf(p.presence_ref)<0);t[l].unshift(...m)}r(l,d,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[l]=u,i(l,u,c),u.length===0&&delete t[l]}),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 i=t[r];return"metas"in i?n[r]=i.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):n[r]=i,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 Yh;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Yh||(Yh={}));var aa;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(aa||(aa={}));var Xt;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Xt||(Xt={}));class Wr{constructor(t,n={config:{}},r){var i,a;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Re.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 Ll(this,Ot.join,this.params,this.timeout),this.rejoinTimer=new my(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Re.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Re.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Re.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Re.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Re.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Ot.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new ia(this),this.broadcastEndpointURL=py(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((a=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||a===void 0)&&a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,a;if(this.socket.isConnected()||this.socket.connect(),this.state==Re.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[aa.PRESENCE]&&this.bindings[aa.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,h={},m={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(Xt.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(Xt.CLOSED)),this.updateJoinPayload(Object.assign({config:m},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var f;if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(Xt.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,x=(f=v==null?void 0:v.length)!==null&&f!==void 0?f:0,y=[];for(let g=0;g<x;g++){const b=v[g],{filter:{event:j,schema:A,table:S,filter:k}}=b,E=p&&p[g];if(E&&E.event===j&&Wr.isFilterValueEqual(E.schema,A)&&Wr.isFilterValueEqual(E.table,S)&&Wr.isFilterValueEqual(E.filter,k))y.push(Object.assign(Object.assign({},b),{id:E.id}));else{this.unsubscribe(),this.state=Re.errored,t==null||t(Xt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,t&&t(Xt.SUBSCRIBED);return}}).receive("error",p=>{this.state=Re.errored,t==null||t(Xt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Xt.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===Re.joined&&t===aa.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 i;if(n==null)return Promise.reject("Payload is required for httpSend()");const a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
74try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:a,payload:o}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var o,l,c;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&a("ok"),u.receive("ok",()=>a("ok")),u.receive("error",()=>a("error")),u.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Re.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Ot.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new Ll(this,Ot.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("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=Re.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,a=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(a),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Ll(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>qj){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 i,a;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=Ot;if(r&&[l,c,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let m=this._onMessage(o,n,r);if(n&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(p=>{var f,v,x;return((f=p.filter)===null||f===void 0?void 0:f.event)==="*"||((x=(v=p.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(p=>p.callback(m,r)):(a=this.bindings[o])===null||a===void 0||a.filter(p=>{var f,v,x,y,g,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const j=p.id,A=(f=p.filter)===null||f===void 0?void 0:f.event;return j&&((v=n.ids)===null||v===void 0?void 0:v.includes(j))&&(A==="*"||(A==null?void 0:A.toLocaleLowerCase())===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const j=(g=(y=p==null?void 0:p.filter)===null||y===void 0?void 0:y.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return j==="*"||j===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof m=="object"&&"ids"in m){const f=m.data,{schema:v,table:x,commit_timestamp:y,type:g,errors:b}=f;m=Object.assign(Object.assign({},{schema:v,table:x,commit_timestamp:y,eventType:g,new:{},old:{},errors:b}),this._getPayloadRecords(f))}p.callback(m,r)})}_isClosed(){return this.state===Re.closed}_isJoined(){return this.state===Re.joined}_isJoining(){return this.state===Re.joining}_isLeaving(){return this.state===Re.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),a={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var a;return!(((a=i.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===r&&Wr.isEqual(i.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){const r=t!=null?t:void 0,i=n!=null?n:void 0;return r===i}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Ot.close,{},t)}_onError(t){this._on(Ot.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Re.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Kh(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Kh(t.columns,t.old_record)),n}}const Dl=()=>{},ps={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Jj=[1e3,2e3,5e3,1e4],Yj=1e4,Qj=`
75  addEventListener("message", (e) => {
76    if (e.data.event === "start") {
77      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
78    }
79  });`;class Xj{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=nu,this.transport=null,this.heartbeatIntervalMs=ps.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Dl,this.ref=0,this.reconnectTimer=null,this.vsn=Gh,this.logger=Dl,this.conn=null,this.sendBuffer=[],this.serializer
79=new Fj,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=i=>i?(...a)=>i(...a):(...a)=>fetch(...a),!(!((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}/${ru.websocket}`,this.httpEndpoint=py(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=Pj.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
80
81To use Realtime in Node.js, you need to provide a WebSocket implementation:
82
83Option 1: Use Node.js 22+ which has native WebSocket support
84Option 2: Install and provide the "ws" package:
85
86  npm install ws
87
88  import ws from "ws"
89  const client = new RealtimeClient(url, {
90    ...options,
91    transport: ws
92  })`):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!=null?n:""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&this._remove(t),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 gn.connecting:return Kn.Connecting;case gn.open:return Kn.Open;case gn.closing:return Kn.Closing;default:return Kn.Closed}}isConnected(){return this.connectionState()===Kn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(a=>a.topic===r);if(i)return i;{const a=new Wr(`realtime:${t}`,n,this);return this.channels.push(a),a}}push(t){const{topic:n,event:r,payload:i,ref:a}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${r} (${a})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(Uj,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ps.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=>
92{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:i,payload:a,ref:o}=n,l=o?`(${o})`:"",c=a.status||"";this.log("receive",`${c} ${r} ${i} ${l}`.trim(),a),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,a,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===gn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===gn.open||this.conn.readyState===gn.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(Ot.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([Qj],{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(i){this.log("error","Error fetching access token from callback",i),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
92h(i=>{const a={access_token:n,version:Bj};n&&i.updateJoinPayload(a),i.joinedOnce&&i._isJoined()&&i._push(Ot.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(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new my(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ps.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,a,o,l,c,u,d,h,m,p;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:nu,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:ps.HEARTBEAT_INTERVAL,this.worker=(a=t==null?void 0:t.worker)!==null&&a!==void 0?a:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:Dl,this.vsn=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:Gh,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:f=>Jj[f-1]||Yj,this.vsn){case $j:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(f,v)=>v(JSON.stringify(f)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(f,v)=>v(JSON.parse(f));break;case dy:this.encode=(m=t==null?void 0:t.encode)!==null&&m!==void 0?m:this.serializer.encode.bind(this.serializer),this.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window!="undefined"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var _a=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 Zj(e,t,n){const r=new URL(t,e);if(n)for(const[i,a]of Object.entries(n))a!==void 0&&r.searchParams.set(i,a);return r.toString()}async function ek(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 tk(e){var n;const t=(n=e.fetchImpl)!=null?n:globalThis.fetch;return{async request({method:r,path:i,query:a,body:o,headers:l}){var f;const c=Zj(e.baseUrl,i,a),u=await ek(e.auth),d=await t(c,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...u,...l},body:o?JSON.stringify(o):void 0}),h=await d.text(),m=(d.headers.get("content-type")||"").includes("application/json"),p=m&&h?JSON.parse(h):h;if(!d.ok){const v=m?p:void 0,x=v==null?void 0:v.error;throw new _a((f=x==null?void 0:x.message)!=null?f:`Request failed with status ${d.status}`,{status:d.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:v})}return{status:d.status,headers:d.headers,data:p}}}}function fs(e){return e.join("�")}var nk=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:fs(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/${fs(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${fs(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${fs(e.namespace)}`}),!0}catch(t){if(t instanceof _a&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof _a&&n.status===409)return;throw n}}};function wr(e){return e.join("�")}var rk=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/${wr(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/${wr(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/${wr(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){var n;await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${wr(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((n=t==null?void 0:t.purge)!=null?n:!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/${wr(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/${wr(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof _a&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof _a&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},ik=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=tk({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new nk(this.client,t),this.tableOps=new rk(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)}
92async 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)}},Vo=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 Ho(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var gs=class extends Vo{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}}},fy=class extends Vo{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const ak=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),sk=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)},au=e=>{if(Array.isArray(e))return e.map(n=>au(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));t[i]=au(r)}),t},ok=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}function lk(e,t){if(Ca(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ck(e){var t=lk(e,"string");return Ca(t)=="symbol"?t:t+""}function uk(e,t,n){return(t=ck(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qh(Object(n),!0).forEach(function(r){uk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Xh=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)},dk=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 i=e,a=i.status||500;if(typeof i.json=="function")i.json().then(o=>{const l=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||a+"";t(new gs(Xh(o),a,l,r))}).catch(()=>{if(r==="vectors"){const o=a+"";t(new gs(i.statusText||`HTTP ${a} error`,a,o,r))}else{const o=a+"";t(new gs(i.statusText||`HTTP ${a} error`,a,o,r))}});else{const o=a+"";t(new gs(i.statusText||`HTTP ${a} error`,a,o,r))}}else t(new fy(Xh(e),e,r))},mk=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?Z(Z({},i),n):(sk(r)?(i.headers=Z({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),Z(Z({},i),n))};async function Ii(e,t,n,r,i,a,o){return new Promise((l,c)=>{e(n,mk(t,r,i,a)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="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=>l(u)).catch(u=>dk(u,c,r,o))})}function gy(e="storage"){return{get:async(t,n,r,i)=>Ii(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,a)=>Ii(t,"POST",n,i,a,r,e),put:async(t,n,r,i,a)=>Ii(t,"PUT",n,i,a,r,e),head:async(t,n,r,i)=>Ii(t,"HEAD",n,Z(Z({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,a)=>Ii(t,"DELETE",n,i,a,r,e)}}const hk=gy("storage"),{get:Na,post:Nt,put:su,head:pk,remove:Hd}=hk,ct=gy("vectors");var pi=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=ak(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(Ho(n))return{data:null,error:n};throw n}}},fk=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(Ho(t))return{data:null,error:t};throw t}}};let vy;vy=Symbol.toStringTag;var gk=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[vy]="BlobDownloadBuilder",this.promise=null}asStream(){return new fk(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(Ho(t))return{data:null,error:t};throw t}}};const vk={limit:100,offset:0,sortBy:{column:"name",order:"asc"}}
92,Zh={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var yk=class extends pi{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let a;const o=Z(Z({},Zh),r);let l=Z(Z({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob!="undefined"&&n instanceof Blob?(a=new FormData,a.append("cacheControl",o.cacheControl),c&&a.append("metadata",i.encodeMetadata(c)),a.append("",n)):typeof FormData!="undefined"&&n instanceof FormData?(a=n,a.has("cacheControl")||a.append("cacheControl",o.cacheControl),c&&!a.has("metadata")&&a.append("metadata",i.encodeMetadata(c))):(a=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream!="undefined"&&a instanceof ReadableStream||a&&typeof a=="object"&&"pipe"in a&&typeof a.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(l=Z(Z({},l),r.headers));const u=i._removeEmptyFolders(t),d=i._getFinalPath(u),h=await(e=="PUT"?su:Nt)(i.fetch,`${i.url}/object/${d}`,a,Z({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const a=i._removeEmptyFolders(e),o=i._getFinalPath(a),l=new URL(i.url+`/object/upload/sign/${o}`);return l.searchParams.set("token",t),i.handleOperation(async()=>{let c;const u=Z({upsert:Zh.upsert},r),d=Z(Z({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob!="undefined"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData!="undefined"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{path:a,fullPath:(await su(i.fetch,l.toString(),c,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=Z({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const a=await Nt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+a.url),l=o.searchParams.get("token");if(!l)throw new Vo("No token returned by API");return{signedUrl:o.toString(),path:e,token:l}})}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 Nt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
92stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Nt(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 i=r._getFinalPath(e),a=await Nt(r.fetch,`${r.url}/object/sign/${i}`,Z({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${a.signedURL}${o}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await Nt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(o=>Z(Z({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${a}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)!="undefined"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),a=i?`?${i}`:"",o=this._getFinalPath(e),l=()=>Na(this.fetch,`${this.url}/${r}/${o}${a}`,{headers:this.headers,noResolveJson:!0},n);return new gk(l,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>au(await Na(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await pk(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Ho(r)&&r instanceof fy){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const a=typeof(t==null?void 0:t.transform)!="undefined"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let l=r.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${l}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Hd(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 i=Z(Z(Z({},vk),t),{},{prefix:e||""});return await Nt(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=Z({},e);return await Nt(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!="undefined"?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 bk="2.95.3",za={"X-Client-Info":`storage-js/${bk}`};var wk=class extends pi{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const a=i.href.replace(/\/$/,""),o=Z(Z({},za),t);super(a,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Na(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Na(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Nt(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 su(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 Nt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Hd(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():""}},xk=class extends pi{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Z(Z({},za),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Nt(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(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Na(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Hd(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!ok(e))throw new Vo("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 ik({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
92),r=this.shouldThrowOnError;return new Proxy(n,{get(i,a){const o=i[a];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(i,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},Sk=class extends pi{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Z(Z({},za),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await ct.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await ct.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await ct.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await ct.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},jk=class extends pi{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Z(Z({},za),{},{"Content-Type":"application/json"},t);super(r,i,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 ct.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await ct.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 ct.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await ct.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 ct.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},kk=class extends pi{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Z(Z({},za),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await ct.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ct.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await ct.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ct.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Ek=class extends kk{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Ak(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)}},Ak=class extends Sk{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Tk(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Tk=class extends jk{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Z(Z({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},_k=class extends wk{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new yk(this.url,this.headers,e,this.fetch)}get vectors(){return new Ek(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new xk(this.url+"/iceberg",this.headers,this.fetch)}};const yy="2.95.3",Cr=30*1e3,ou=3,Pl=ou*Cr,Ck="http://localhost:9999",Nk="supabase.auth.token",Rk={"X-Client-Info":`gotrue-js/${yy}`},lu="X-Supabase-Api-Version",by={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Ok=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Ik=10*60*1e3;
92class Ra 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 Lk extends Ra{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Dk(e){return G(e)&&e.name==="AuthApiError"}class Jn extends Ra{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class dn extends Ra{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class ot extends dn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ml(e){return G(e)&&e.name==="AuthSessionMissingError"}class xr extends dn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class vs extends dn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ys extends dn{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 Pk(e){return G(e)&&e.name==="AuthImplicitGrantRedirectError"}class ep extends dn{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 Mk extends dn{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 cu extends dn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Bl(e){return G(e)&&e.name==="AuthRetryableFetchError"}class tp extends dn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class uu extends dn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),np=` 	
93\r=`.split(""),Bk=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<np.length;t+=1)e[np[t].charCodeAt(0)]=-2;for(let t=0;t<go.length;t+=1)e[go[t].charCodeAt(0)]=t;return e})();function rp(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(go[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(go[r]),t.queuedBits-=6}}function wy(e,t,n){const r=Bk[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 ip(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=o=>{qk(o,r,n)};for(let o=0;o<e.length;o+=1)wy(e.charCodeAt(o),i,a);return t.join("")}function $k(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 Uk(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}$k(r,t)}}function qk(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 ei(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)wy(e.charCodeAt(i),n,r);return new Uint8Array(t)}function Fk(e){const t=[];return Uk(e,n=>t.push(n)),new Uint8Array(t)}function Zn(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
93rp(i,n,r)),rp(null,n,r),t.join("")}function zk(e){return Math.round(Date.now()/1e3)+e}function Wk(){return Symbol("auth-callback")}const $e=()=>typeof window!="undefined"&&typeof document!="undefined",qn={tested:!1,writable:!1},xy=()=>{if(!$e())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(qn.tested)return qn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),qn.tested=!0,qn.writable=!0}catch{qn.tested=!0,qn.writable=!1}return qn.writable};function Vk(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,a)=>{t[a]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const Sy=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Hk=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Nr=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Fn=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Be=async(e,t)=>{await e.removeItem(t)};class Go{constructor(){this.promise=new Go.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Go.promiseConstructor=Promise;function bs(e){const t=e.split(".");if(t.length!==3)throw new uu("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Ok.test(t[r]))throw new uu("JWT not in base64url format");return{header:JSON.parse(ip(t[0])),payload:JSON.parse(ip(t[1])),signature:ei(t[2]),raw:{header:t[0],payload:t[1]}}}async function Gk(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Kk(e,t){return new Promise((r,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const o=await e(a);if(!t(a,null,o)){r(o);return}}catch(o){if(!t(a,o)){i(o);return}}})()})}function Jk(e){return("0"+e.toString(16)).substr(-2)}function Yk(){const t=new Uint32Array(56);if(typeof crypto=="undefined"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let a=0;a<56;a++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,Jk).join("")}async function Qk(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}async function Xk(e){if(!(typeof crypto!="undefined"&&typeof crypto.subtle!="undefined"&&typeof TextEncoder!="undefined"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await Qk(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Sr(e,t,n=!1){const r=Yk();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await Nr(e,`${t}-code-verifier`,i);const a=await Xk(r);return[a,r===a?"plain":"s256"]}const Zk=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function eE(e){const t=e.headers.get(lu);if(!t||!t.match(Zk))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function tE(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 nE(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 rE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function jr(e){if(!rE.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function $l(){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 iE(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
93if(typeof r=="symbol"){const a=r.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)"||a==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}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,i)}})}function ap(e){return JSON.parse(JSON.stringify(e))}const Hn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),aE=[502,503,504];async function sp(e){var t;if(!Hk(e))throw new cu(Hn(e),0);if(aE.includes(e.status))throw new cu(Hn(e),e.status);let n;try{n=await e.json()}catch(a){throw new Jn(Hn(a),a)}let r;const i=eE(e);if(i&&i.getTime()>=by["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 tp(Hn(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((a,o)=>a&&typeof o=="string",!0))throw new tp(Hn(n),e.status,n.weak_password.reasons);throw new Lk(Hn(n),e.status||500,r)}const sE=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function X(e,t,n,r){var i;const a=Object.assign({},r==null?void 0:r.headers);a[lu]||(a[lu]=by["2024-01-01"].name),r!=null&&r.jwt&&(a.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await oE(e,t,n+l,{headers:a,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function oE(e,t,n,r,i,a){const o=sE(t,r,i,a);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new cu(Hn(c),0)}if(l.ok||await sp(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await sp(c)}}function _t(e){var t;let n=null;uE(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=zk(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function op(e){const t=_t(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 xn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function lE(e){return{data:e,error:null}}function cE(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,o=Wo(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function lp(e){return e}function uE(e){return e.access_token&&e.refresh_token&&e.expires_in}const Ul=["global","local","others"];class dE{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Sy(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=Ul[0]){if(Ul.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ul.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:xn})}catch(r){if(G(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Wo(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await X(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:cE,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:xn})}catch(n){if(G(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,a,o,l,c;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:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:lp});if(d.error)throw d.error;const h=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>
930&&(p.forEach(f=>{const v=parseInt(f.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(f.split(";")[1].split("=")[1]);u[`${x}Page`]=v}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(G(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){jr(t);try{return await X(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:xn})}catch(n){if(G(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){jr(t);try{return await X(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:xn})}catch(r){if(G(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){jr(t);try{return await X(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:xn})}catch(r){if(G(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){jr(t.userId);try{const{data:n,error:r}=await X(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(G(n))return{data:null,error:n};throw n}}async _deleteFactor(t){jr(t.userId),jr(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,i,a,o,l,c;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:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:lp});if(d.error)throw d.error;const h=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(f=>{const v=parseInt(f.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(f.split(";")[1].split("=")[1]);u[`${x}Page`]=v}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),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 cp(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const kr={debug:!!(globalThis&&xy()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class jy extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class mE extends jy{}async function hE(e,t,n){kr.debug;const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),kr.debug},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){kr.debug&&i.name;try{return await n()}finally{kr.debug&&i.name}}else{if(t===0)throw kr.debug,new mE(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(kr.debug)try{const a=await globalThis.navigator.locks.query();JSON.stringify(a,null,"  ")}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}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 pE(){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!="undefined"&&(self.globalThis=self)}}function ky(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
93" is invalid.`);return e.toLowerCase()}function fE(e){return parseInt(e,16)}function gE(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function vE(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:a=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:m}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
94`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=ky(e.address),f=d?`${d}://${r}`:r,v=e.statement?`${e.statement}
95`:"",x=`${f} wants you to sign in with your Ethereum account:
96${p}
97
98${v}`;let y=`URI: ${h}
99Version: ${m}
100Chain ID: ${n}${o?`
101Nonce: ${o}`:""}
102Issued At: ${a.toISOString()}`;if(i&&(y+=`
103Expiration Time: ${i.toISOString()}`),l&&(y+=`
104Not Before: ${l.toISOString()}`),c&&(y+=`
105Request ID: ${c}`),u){let g=`
106Resources:`;for(const b of u){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);g+=`
107- ${b}`}y+=g}return`${x}
108${y}`}class _e extends Error{constructor({message:t,code:n,cause:r,name:i}){var a;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(a=i!=null?i:r instanceof Error?r.name:void 0)!==null&&a!==void 0?a:"Unknown Error",this.code=n}}class vo extends _e{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function yE({error:e,options:t}){var n,r,i;const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=a.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new _e({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=a.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new _e({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=a.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new _e({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 _e({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new _e({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new _e({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(Ey(o)){if(a.rp.id!==o)return new _e({message:`The RP ID "${a.rp.id}
108" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new _e({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 _e({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 _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function bE({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 _e({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(Ey(r)){if(n.rpId!==r)return new _e({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new _e({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 _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class wE{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 xE=new wE;function SE(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential!="undefined"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=Wo(e,["challenge","user","excludeCredentials"]),a=ei(t).buffer,o=Object.assign(Object.assign({},n),{id:ei(n.id).buffer}),l=Object.assign(Object.assign({},i),{challenge:a,user:o});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const u=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:ei(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function jE(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential!="undefined"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Wo(e,["challenge","allowCredentials"]),i=ei(t).buffer,a=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){a.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const l=n[o];a.allowCredentials[o]=Object.assign(Object.assign({},l),{id:ei(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return a}function kE(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:Zn(new Uint8Array(e.response.attestationObject)),clientDataJSON:Zn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function EE(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Zn(new Uint8Array(i.authenticatorData)),clientDataJSON:Zn(new Uint8Array(i.clientDataJSON)),signature:Zn(new Uint8Array(i.signature)),userHandle:i.userHandle?Zn(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Ey(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function up(){var e,t;return!!($e()&&"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 AE(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new vo("Browser returned unexpected credential type",t)}:{data:null,error:new vo("Empty credential response",t)}}
108catch(t){return{data:null,error:yE({error:t,options:e})}}}async function TE(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new vo("Browser returned unexpected credential type",t)}:{data:null,error:new vo("Empty credential response",t)}}catch(t){return{data:null,error:bE({error:t,options:e})}}}const _E={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},CE={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function yo(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const a in i){const o=i[a];if(o!==void 0)if(Array.isArray(o))r[a]=o;else if(n(o))r[a]=o;else if(t(o)){const l=r[a];t(l)?r[a]=yo(l,o):r[a]=yo(o)}else r[a]=o}return r}function NE(e,t){return yo(_E,e,t||{})}function RE(e,t){return yo(CE,e,t||{})}class OE{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:i},a){var o;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:c};const u=i!=null?i:xE.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:d}=l.webauthn.credential_options.publicKey;if(!d.name){const h=r;if(h)d.name=`${d.id}:${h}`;else{const p=(await this.client.getUser()).data.user,f=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";d.name=`${d.id}:${f}`}}d.displayName||(d.displayName=d.name)}switch(l.webauthn.type){case"create":{const d=NE(l.webauthn.credential_options.publicKey,a==null?void 0:a.create),{data:h,error:m}=await AE({publicKey:d,signal:u});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}case"request":{const d=RE(l.webauthn.credential_options.publicKey,a==null?void 0:a.request),{data:h,error:m}=await TE(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}}}catch(l){return G(l)?{data:null,error:l}:{data:null,error:new Jn("Unexpected error in challenge",l)}}}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!="undefined"?window.location.hostname:void 0,rpOrigins:r=typeof window!="undefined"?[window.location.origin]:void 0,signal:i}={}},a){if(!n)return{data:null,error:new Ra("rpId is required for WebAuthn authentication")};try{if(!up())return{data:null,error:new Jn("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:a});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(o){return G(o)?{data:null,error:o}:{data:null,error:new Jn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window!="undefined"?window.location.hostname:void 0,rpOrigins:r=typeof window!="undefined"?[window.location.origin]:void 0,signal:i}={}},a){if(!n)return{data:null,error:new Ra("rpId is required for WebAuthn registration")};try{if(!up())return{data:null,error:new Jn("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;
108return(h=d.data)===null||h===void 0?void 0:h.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===t&&m.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:a});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return G(o)?{data:null,error:o}:{data:null,error:new Jn("Unexpected error in register",o)}}}}pE();const IE={url:Ck,storageKey:Nk,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Rk,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function dp(e,t,n){return await n()}const Er={};class Oa{get jwks(){var t,n;return(n=(t=Er[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Er[this.storageKey]=Object.assign(Object.assign({},Er[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Er[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Er[this.storageKey]=Object.assign(Object.assign({},Er[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},IE),t);if(this.storageKey=a.storageKey,this.instanceID=(n=Oa.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Oa.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.instanceID>0&&$e()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.admin=new dE({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=Sy(a.fetch),this.lock=a.lock||dp,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock?this.lock=a.lock:this.persistSession&&$e()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=hE:this.lock=dp,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 OE(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?(a.storage?this.storage=a.storage:xy()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=cp(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=cp(this.memoryStorage)),$e()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${yy}) ${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($e()&&(n=Vk(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),$e()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:a}=await this._getSessionFromURL(n,r);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),Pk(a)
108){const c=(t=a.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:a}}return{error:a}}const{session:o,redirectType:l}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return G(n)?this._returnResult({error:n}):this._returnResult({error:new Jn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const a=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:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:_t}),{data:o,error:l}=a;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(G(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signUp(t){var n,r,i;try{let a;if("email"in t){const{email:d,password:h,options:m}=t;let p=null,f=null;this.flowType==="pkce"&&([p,f]=await Sr(this.storage,this.storageKey)),a=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:h,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:p,code_challenge_method:f},xform:_t})}else if("phone"in t){const{phone:d,password:h,options:m}=t;a=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},channel:(i=m==null?void 0:m.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:_t})}else throw new vs("You must provide either an email or phone number and a password");const{data:o,error:l}=a;if(l||!o)return await Be(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(await Be(this.storage,`${this.storageKey}-code-verifier`),G(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(t){try{let n;if("email"in t){const{email:a,password:o,options:l}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:op})}else if("phone"in t){const{phone:a,password:o,options:l}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:op})}else throw new vs("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const a=new xr;return this._returnResult({data:{user:null,session:null},error:a})}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:i})}catch(n){if(G(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,a;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:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.o
108ptions)===null||a===void 0?void 0:a.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,i,a,o,l,c,u,d,h,m;let p,f;if("message"in t)p=t.message,f=t.signature;else{const{chain:v,wallet:x,statement:y,options:g}=t;let b;if($e())if(typeof x=="object")b=x;else{const I=window;if("ethereum"in I&&typeof I.ethereum=="object"&&"request"in I.ethereum&&typeof I.ethereum.request=="function")b=I.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=x}const j=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),A=await b.request({method:"eth_requestAccounts"}).then(I=>I).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!A||A.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=ky(A[0]);let k=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!k){const I=await b.request({method:"eth_chainId"});k=fE(I)}const E={domain:j.host,address:S,statement:y,uri:j.href,version:"1",chainId:k,nonce:(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.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};p=vE(E),f=await b.request({method:"personal_sign",params:[gE(p),S]})}try{const{data:v,error:x}=await X(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:f},!((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:_t});if(x)throw x;if(!v||!v.session||!v.user){const y=new xr;return this._returnResult({data:{user:null,session:null},error:y})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:x})}catch(v){if(G(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var n,r,i,a,o,l,c,u,d,h,m,p;let f,v;if("message"in t)f=t.message,v=t.signature;else{const{chain:x,wallet:y,statement:g,options:b}=t;let j;if($e())if(typeof y=="object")j=y;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))j=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=y}const A=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in j&&j.signIn){const S=await j.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:A.host,uri:A.href}),g?{statement:g}:null));let k;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")k=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)k=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)f=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),v=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in j)||typeof j.signMessage!="function"||!("publicKey"in j)||typeof j!="object"||!j.publicKey||!("toBase58"in j.publicKey)||typeof j.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");f=[`${A.host} wants you to sign in with your Solana account:`,j.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${A.href}`,`Issued At: ${(i=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
109`);const S=await j.signMessage(new TextEncoder().encode(f),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=S}}try{const{data:x,error:y}=await X(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:f,signature:Zn(v)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:_t});if(y)throw y;if(!x||!x.session||!x.user){const g=new xr;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:y})}
109catch(x){if(G(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Fn(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n!=null?n:"").split("/");try{if(!r&&this.flowType==="pkce")throw new Mk;const{data:a,error:o}=await X(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:_t});if(await Be(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!a||!a.session||!a.user){const l=new xr;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign(Object.assign({},a),{redirectType:i!=null?i:null}),error:o})}catch(a){if(await Be(this.storage,`${this.storageKey}-code-verifier`),G(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:a,nonce:o}=t,l=await X(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:a,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:_t}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new xr;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,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,i,a,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Sr(this.storage,this.storageKey));const{error:h}=await X(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await X(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},create_user:(a=c==null?void 0:c.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new vs("You must provide either an email or phone number.")}catch(l){if(await Be(this.storage,`${this.storageKey}-code-verifier`),G(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var n,r;try{let i,a;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,a=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await X(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:_t});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(G(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,a,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await Sr(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}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:lE});return!((a=u.data)===null||a===void 0)&&a.url&&$e()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await Be(this.storage,`${this.storageKey}-code-verifier`),G(l))return this._returnResult({data:null,error:l});throw l}}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:i}=await X(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}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:i,options:a}=t,{error:o}=await X(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:a}=t,{data:o,error:l}=await X(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new vs("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(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}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 i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.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 Fn(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
109id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Pl:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Fn(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=$l()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=iE(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{session:null},error:a}):this._returnResult({data:{session:i},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:xn}):await this._useSession(async n=>{var r,i,a;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.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:(a=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:xn})})}catch(n){if(G(n))return Ml(n)&&(await this._removeSession(),await Be(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:i,error:a}=r;if(a)throw a;if(!i.session)throw new ot;const o=i.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await Sr(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:l,code_challenge_method:c}),jwt:o.access_token,xform:xn});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Be(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,i=!0,a=null;const{payload:o}=bs(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};a=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});a={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},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:o,error:l}=n;if(l)throw l;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new ot;const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):i?this._returnResult({data:{user:i.user,session:i},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(!$e())throw new ys("No browser detected.");
109if(t.error||t.error_description||t.error_code)throw new ys(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 ep("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ys("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 ep("No code detected.");const{data:g,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const j=new URL(window.location.href);return j.searchParams.delete("code"),window.history.replaceState(window.history.state,"",j.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:a,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=t;if(!a||!l||!o||!u)throw new ys("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let m=d+h;c&&(m=parseInt(c));const p=m-d;p*1e3<=Cr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${h}s`);const f=m-h;d-f>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",f,m,d):d-f<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",f,m,d);const{data:v,error:x}=await this._getUser(a);if(x)throw x;const y={provider_token:r,provider_refresh_token:i,access_token:a,expires_in:h,expires_at:m,refresh_token:o,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:y,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 Fn(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:i,error:a}=n;if(a&&!Ml(a))return this._returnResult({error:a});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(Dk(l)&&(l.status===404||l.status===401||l.status===403)||Ml(l)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Be(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=Wk(),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,i;try{const{data:{session:a},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await Sr(this.storage,this.storageKey,!0));try{return await X(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(a){if(await Be(this.storage,`${this.storageKey}-code-verifier`),G(a))return this._returnResult({data:null,error:a});throw a}}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:i}=await this._useSession(async a=>{var o,l,c,u,d;const{data:h,error:m}=a;if(m)throw m;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await X(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return $e()&&!(!((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:i,data:{session:a}}=n;if(i)throw i;const{options:o,provider:l,token:c,access_token:u,nonce:d}=t,h=await X(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=a==null?void 0:a.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:_t}),{data:m,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new xr}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:p}))}catch(i){if(await Be(this.storage,`${this.storageKey}-code-verifier`),G(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:o}=n;
109if(o)throw o;return await X(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=a.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i: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 Kk(async i=>(i>0&&await Gk(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await X(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:_t})),(i,a)=>{const o=200*Math.pow(2,i);return a&&Bl(a)&&Date.now()+o-r<Cr})}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),$e()&&!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 i=await Fn(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Fn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Nr(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:$l()}else if(i&&!i.user&&!i.user){const o=await Fn(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await Be(this.storage,this.storageKey+"-user"),await Nr(this.storage,this.storageKey,i)):i.user=$l()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const a=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Pl;if(this._debug(r,`session has${a?"":" not"} expired with margin of ${Pl}s`),a){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),Bl(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(i.access_token);!l&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);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 i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Go;const{data:a,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!a.session)throw new ot;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const l={data:a.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(a){if(this._debug(i,"error",a),G(a)){const o={data:null,error:a};return Bl(a)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const a=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){a.push(c)}});if(await Promise.all(o),a.length>0){for(let l=0;l<a.length;l+=1)console.error(a[l]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Be(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 Nr(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const a=ap(i);await Nr(this.storage,this.storageKey,a)}else{const i=ap(n);await Nr(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Be(this.storage,this.storageKey),await Be(this.storage,this.storageKey+"-code-verifier"),await Be(this.storage,this.storageKey+"-user"),this.userStorage&&await Be(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&$e()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
109catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Cr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno!="undefined"&&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!="undefined"&&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 i=Math.floor((r.expires_at*1e3-t)/Cr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Cr}ms, refresh threshold is ${ou} ticks`),i<=ou&&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 jy)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!$e()||!(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 i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[a,o]=await Sr(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(l.toString())}if(r!=null&&r.queryParams){const a=new URLSearchParams(r.queryParams);i.push(a.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?this._returnResult({data:null,error:a}):await X(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.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,i;const{data:a,error:o}=n;
109if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await X(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((i=c==null?void 0:c.totp)===null||i===void 0)&&i.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,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:i,error:a}=n;if(a)return this._returnResult({data:null,error:a});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?kE(t.webauthn.credential_response):EE(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}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:i,error:a}=n;if(a)return this._returnResult({data:null,error:a});const o=await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:SE(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:jE(l.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 i={all:[],phone:[],totp:[],webauthn:[]};for(const a of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(a),a.status==="verified"&&i[a.factor_type].push(a);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,a;if(t)try{const{payload:p}=bs(t);let f=null;p.aal&&(f=p.aal);let v=f;const{data:{user:x},error:y}=await this.getUser(t);if(y)return this._returnResult({data:null,error:y});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(j=>j.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(v="aal2");const b=p.amr||[];return{data:{currentLevel:f,nextLevel:v,currentAuthenticationMethods:b},error:null}}catch(p){if(G(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:l}
109=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=bs(o.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((a=(i=o.user.factors)===null||i===void 0?void 0:i.filter(p=>p.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(d="aal2");const m=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:m},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await X(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:a=>({data:a,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:i},error:a}=r;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new ot});const o=await X(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&$e()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}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:i},error:a}=r;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new ot});const o=await X(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&$e()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}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:i=>({data:i,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:i}=n;return i?this._returnResult({data:null,error:i}):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(l=>l.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+Ik>i)return r;const{data:a,error:o}=await X(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=i,r=a.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:f}
109=await this.getSession();if(f||!p.session)return this._returnResult({data:null,error:f});r=p.session.access_token}const{header:i,payload:a,signature:o,raw:{header:l,payload:c}}=bs(r);n!=null&&n.allowExpired||tE(a.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:a,header:i,signature:o},error:null}}const d=nE(i.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,Fk(`${l}.${c}`)))throw new uu("Invalid JWT signature");return{data:{claims:a,header:i,signature:o},error:null}}catch(r){if(G(r))return this._returnResult({data:null,error:r});throw r}}}Oa.nextInstanceID={};const LE=Oa,DE="2.95.3";let qi="";typeof Deno!="undefined"?qi="deno":typeof document!="undefined"?qi="web":typeof navigator!="undefined"&&navigator.product==="ReactNative"?qi="react-native":qi="node";const PE={"X-Client-Info":`supabase-js-${qi}/${DE}`},ME={headers:PE},BE={schema:"public"},$E={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},UE={};function Ia(e){"@babel/helpers - typeof";return Ia=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},Ia(e)}function qE(e,t){if(Ia(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FE(e){var t=qE(e,"string");return Ia(t)=="symbol"?t:t+""}function zE(e,t,n){return(t=FE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mp(Object(n),!0).forEach(function(r){zE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const WE=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),VE=()=>Headers,HE=(e,t,n)=>{const r=WE(n),i=VE();return async(a,o)=>{var l;const c=(l=await t())!==null&&l!==void 0?l:e;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(a,ke(ke({},o),{},{headers:u}))}};function GE(e){return e.endsWith("/")?e:e+"/"}function KE(e,t){var n,r;const{db:i,auth:a,realtime:o,global:l}=e,{db:c,auth:u,realtime:d,global:h}=t,m={db:ke(ke({},c),i),auth:ke(ke({},u),a),realtime:ke(ke({},d),o),storage:{},global:ke(ke(ke({},h),l),{},{headers:ke(ke({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function JE(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(GE(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var YE=class extends LE{constructor(e){super(e)}},QE=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const a=JE(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const o=`sb-${a.hostname.split(".")[0]}-auth-token`,l={db:BE,realtime:UE,auth:ke(ke({},$E),{},{storageKey:o}),global:ME},c=KE(n!=null?n:{},l);if(this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=HE(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(ke({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.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 Dj(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new _k(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new Tj(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)}
109channel(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:i,storageKey:a,flowType:o,lock:l,debug:c,throwOnError:u},d,h){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new YE({url:this.authUrl.href,headers:ke(ke({},m),d),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Xj(this.realtimeUrl.href,ke(ke({},e),{},{params:ke(ke({},{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 qt=(e,t,n)=>new QE(e,t,n);function XE(){if(typeof window!="undefined")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}XE()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const ZE="https://ykezpkrujtbtczhnmtuq.supabase.co",eA="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let du=null;du=qt(ZE,eA);const tA=async e=>{var t;if(!du)return console.error("Supabase client not initialized. Check VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY"),{success:!1,error:"Configuração do Supabase não encontrada"};if(!e||typeof e!="string")return{success:!1,error:"Código inválido"};try{const{data:n,error:r}=await du.functions.invoke("refer-afiliate",{body:{code:e}});return r?(console.error("Error calling Afiliate Edge Function:",r),{success:!1,error:r.message||"Erro ao chamar Edge Function"}):{success:(t=n==null?void 0:n.success)!=null?t:!0,data:n}}catch(n){return console.error("Error posting affiliate code:",n),{success:!1,error:n.message||"Erro desconhecido"}}},Gd=async e=>{const t=await tA(e);if(!t.success)return{success:!1,error:t.error||"Erro ao buscar afiliado"};const n=t.data||{};return n.exists?{success:!0,affiliate:{codigo:n.codigo||e,texto_descritivo:n.texto_descritivo||null,paginas:n.paginas||n.cursos||"",cursos:n.cursos||n.paginas||""}}:{success:!1,error:"Código de afiliado não encontrado"}},nA="G-P248JVDZXM",hp="wbd-ga4-script";let pp=!1,Ay=null;function rA(){return nA.trim()}function iA(){typeof window!="undefined"&&(window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)}))}function aA(e){if(typeof document=="undefined"||document.getElementById(hp))return;const t=document.createElement("script");t.id=hp,t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`,document.head.appendChild(t)}function sA(){return typeof navigator=="undefined"?!1:/reactsnap/i.test(navigator.userAgent||"")}function oA(){if(typeof window=="undefined"||pp||sA())return;const e=rA();e&&(aA(e),iA(),window.gtag("js",new Date),window.gtag("config",e,{send_page_view:!1,anonymize_ip:!0}),Ay=e,pp=!0)}function Ty(){return typeof window!="undefined"&&!!window.gtag&&!!Ay}function lA(e,t){Ty()&&window.gtag("event","page_view",{page_path:e,page_title:t,page_location:window.location.href})}function bt(e,t={}){Ty()&&window.gtag("event",e,t)}const fp=typeof window!="undefined"?new URLSearchParams(window.location.search):new URLSearchParams,cA="https://ykezpkrujtbtczhnmtuq.supabase.co",uA="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let mu=null;mu=qt(cA,uA);const _y="wbd_vk",Cy="wbd_vk",gp="wbd_sid",dA=1e4;let vp="",yp=0;function hu(){return typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function pu(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function mA(e,t,n=365){try{const r=new Date(Date.now()+n*864e5).toUTCString();let i=`${e}=${encodeURIComponent(t)}; Expires=${r}; Path=/; SameSite=Lax`;location.protocol==="https:"&&(i+="; Secure"),document.cookie=i}catch{}}function hA(e){try{const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}catch{return null}}function pA(){const e=hA(_y);if(e&&pu(e))return e;try{const t=localStorage.getItem(Cy);if(t&&pu(t))return t}catch{}return null}function fA(e){mA(_y,e,365);try{localStorage.setItem(Cy,e)}catch{}}function Kd(){const e=pA();if(e)return{key:e,isNew:!1};const t=hu();return fA(t),{key:t,isNew:!0}}function Ny(){try{let e=sessionStorage.getItem(gp);return(!e||!pu(e))&&(e=hu(),sessionStorage.setItem(gp,e)),e}catch{return hu()}}async function La(e,t){if(mu)try{await mu.functions.invoke(e,{body:t})}catch(n){console.error(`[tracking] Error invoking ${e}:`,n)}}async function gA(){if(typeof window=="undefined")return;const{key:e,isNew:t}=Kd(),n=fp.get("ref_code"),r=fp.get("source");t?await La("send-tracking",{mode:"init",key:e,ref_code:n||null,source_by:r||null}):await La("send-tracking",{mode:"ping",key:e,ref_code:n||null,source_by:r||null})}async function vA(e,t){if(typeof window=="undefined")return;const n=Date.now();if(e===vp&&n-yp<dA)return;vp=e,yp=n;const{key:r}=Kd(),i=Ny();await La("send-tracking-event",{key:r,session_id:i,event_type:"page_view",page_path:e,page_title:t?t.slice(0,200):null})}function Ar(...e){for(const t of e)if(typeof t=="string"&&t.trim())return t.trim();return null}function yA(e){return typeof e=="string"?{nome:null,email:Ar(e),whatsapp:null,cargo:null,linkedin:null}:!e||typeof e!="object"?{nome:null,email:null,whatsapp:null,cargo:null,linkedin:null}
109:{nome:Ar(e.nome,e.name),email:Ar(e.email,e.Email,e.e_mail,e.mail),whatsapp:Ar(e.whatsapp,e.telefone,e.phone,e.celular),cargo:Ar(e.cargo,e.job_title,e.role),linkedin:Ar(e.linkedin,e.linkedIn,e.linkedin_url,e.linkedinUrl)}}async function Jd(e,t){if(typeof window=="undefined")return;const{key:n}=Kd(),r=Ny(),i=yA(t),a=document.title||null;await Promise.all([La("send-tracking",{mode:"identify",key:n,nome:i.nome,email:i.email,whatsapp:i.whatsapp,cargo:i.cargo,linkedin:i.linkedin}),La("send-tracking-event",{key:n,session_id:r,event_type:"form_submit",page_path:e,page_title:a})])}const bA="https://ykezpkrujtbtczhnmtuq.supabase.co",wA="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let fu=null;fu=qt(bA,wA);async function xA({formData:e,courseSlug:t,pagePath:n,sheetTab:r="Formulários"}){var i;if(!fu)return{success:!1,error:"Supabase não configurado. Verifique VITE_SUPABASE_URL e VITE_SUPABASE_PUBLISHABLE_KEY"};try{const{data:a,error:o}=await fu.functions.invoke("form-submit",{body:{sheet_tab:r,course_slug:t||null,page_path:n||window.location.pathname,submitted_at:new Date().toISOString(),referral_code:(e==null?void 0:e.referral_code)||(e==null?void 0:e.ref_code)||(e==null?void 0:e.affiliate_code)||null,form_data:e||{}}});return o?{success:!1,error:o.message||"Error calling form-submit function"}:{success:(i=a==null?void 0:a.success)!=null?i:!0,data:a}}catch(a){return{success:!1,error:a.message||"Unknown error while saving form submission"}}}const SA=e=>e?/^(https?:\/\/)?(www\.)?linkedin\.com\/(in|company|school)\/[\w-]+\/?$/i.test(e.trim()):!0,bp=(e,t)=>{const n={},r=i=>{var a;i.type==="radio"&&((a=i.options)!=null&&a.length)?n[i.name]=i.options[0].value:i.type==="checkbox"?n[i.name]=!1:n[i.name]=""};return e.forEach(i=>{i.gridColumns&&i.fields?i.fields.forEach(r):r(i)}),t&&(n.referral_code=t),n};function Wa({id:e,title:t="REALIZAR MINHA INSCRIÇÃO",description:n="Preencha o formulário abaixo para participar do processo seletivo da próxima turma.",fields:r=[],submitButtonText:i="ENVIAR PRÉ-INSCRIÇÃO",leaderGateLabel:a,onSubmit:o,inverted:l=!1,backgroundColor:c,courseSlug:u,loading:d=!1,isFormEnabled:h=!0,disabledMessage:m,showLeaderGate:p=!0}){const[f,v]=w.useState(()=>bp(r)),x=Et(),g=$d(x.pathname)==="en",b=a||(g?"I confirm that I currently hold a senior leadership role":"Confirmo que ocupo atualmente um cargo de liderança sênior"),j=g?"Select an option":"Selecione uma opção",A=g?"Enter a valid LinkedIn URL (e.g. linkedin.com/in/your-profile)":"Insira uma URL válida do LinkedIn (ex: linkedin.com/in/seu-perfil)",S=g?"SUBMITTING...":"ENVIANDO...",[k,E]=w.useState(!1),[I,$]=w.useState({}),[D,W]=w.useState(null),[V,L]=w.useState(!1),C=d||!h,U=p?V:!0,T=m||(g?"This form is temporarily unavailable because there are no open seats at the moment.":"Este formulário está temporariamente indisponível porque não há vagas abertas no momento.");w.useEffect(()=>{const M=()=>{var re;try{if(!u){W(null);return}const Q=Wd(u)||((re=qa())==null?void 0:re[u])||null;Q&&Q.codigo?(W(Q),v(pe=>({...pe,referral_code:Q.codigo}))):(W(null),v(pe=>{const ce={...pe};return delete ce.referral_code,ce}))}catch{}};return M(),window.addEventListener("wbd:affiliate-updated",M),()=>window.removeEventListener("wbd:affiliate-updated",M)},[u]);const R=M=>{const{id:re,value:Q,type:pe,checked:ce,name:ft}=M.target,le=re||ft;v(pe==="radio"?Xe=>({...Xe,[ft]:Q}):pe==="checkbox"?Xe=>({...Xe,[le]:ce}):Xe=>({...Xe,[le]:Q})),I[le]&&$(Xe=>({...Xe,[le]:null}))},B=(M,re)=>SA(re)?($(Q=>({...Q,[M]:null})),!0):($(Q=>({...Q,[M]:A})),!1),J=(M,re)=>{let Q=M.target.value.replace(/\D/g,"");Q.length>11&&(Q=Q.slice(0,11)),Q.length>2&&(Q=`(${Q.slice(0,2)}) ${Q.slice(2)}`),Q.length>10&&(Q=`${Q.slice(0,10)}-${Q.slice(10)}`),v(pe=>({...pe,[re]:Q}))},te=async M=>{var ft;if(M.preventDefault(),C)return;bt("form_submit_attempt",{form_id:e||"form_section",course_slug:u||"unknown",is_leader:!!V});const Q=r.flatMap(le=>le.gridColumns?le.fields:[le]).filter(le=>le.type==="linkedin");let pe=!1;
109if(Q.forEach(le=>{B(le.name,f[le.name])||(pe=!0)}),pe)return;E(!0);let ce={...f};if(ce.referral_code&&u)try{(await Gd(ce.referral_code)).success||(console.warn(`Affiliate code "${ce.referral_code}" is no longer valid. Removing from submission.`),Ua(u?[u]:null),Fa(),W(null),delete ce.referral_code,v(Xe=>{const gi={...Xe};return delete gi.referral_code,gi}),window.dispatchEvent(new CustomEvent("wbd:affiliate-updated")))}catch(le){console.error("Error revalidating affiliate code:",le)}try{let le={success:!0};o&&(le=(ft=await o(ce))!=null?ft:{success:!0}),bt("form_submit_success",{form_id:e||"form_section",course_slug:u||"unknown",has_referral:!!ce.referral_code});const Xe=await xA({formData:ce,courseSlug:u,pagePath:window.location.pathname,sheetTab:"Formulários"});Xe.success||console.error("Error saving form submission to Google Sheets:",Xe.error),Jd(window.location.pathname,ce),le.success!==!1&&(v(bp(r,D==null?void 0:D.codigo)),$({}),L(!1))}catch(le){throw bt("form_submit_error",{form_id:e||"form_section",course_slug:u||"unknown"}),le}finally{E(!1)}},ae=M=>{var Q,pe;const re={id:M.name,name:M.name,className:"form-section-control",required:M.required,placeholder:M.placeholder,value:f[M.name]||""};switch(M.type){case"text":case"email":return s.jsx("input",{...re,type:M.type,onChange:R});case"linkedin":return s.jsxs(s.Fragment,{children:[s.jsx("input",{...re,type:"url",onChange:R,onBlur:()=>B(M.name,f[M.name]),className:`form-section-control ${I[M.name]?"form-section-control--error":""}`}),I[M.name]&&s.jsx("span",{className:"form-section-error",children:I[M.name]})]});case"tel":return s.jsx("input",{...re,type:"tel",maxLength:15,onChange:ce=>J(ce,M.name)});case"select":return s.jsxs("select",{...re,onChange:R,children:[s.jsx("option",{value:"",children:M.placeholder||j}),(Q=M.options)==null?void 0:Q.map(ce=>s.jsx("option",{value:ce.value,children:ce.label},ce.value))]});case"textarea":return s.jsx("textarea",{...re,rows:M.rows||4,onChange:R});case"radio":return s.jsx("div",{className:"form-section-radio-group",children:(pe=M.options)==null?void 0:pe.map(ce=>s.jsxs("label",{className:"form-section-radio-item",children:[s.jsx("input",{type:"radio",name:M.name,value:ce.value,checked:f[M.name]===ce.value,onChange:R,required:M.required}),ce.label]},ce.value))});case"checkbox":return s.jsxs("label",{className:"form-section-checkbox-item",children:[s.jsx("input",{type:"checkbox",id:M.name,name:M.name,checked:f[M.name]||!1,onChange:R,required:M.required}),M.label]});default:return null}};return s.jsx("section",{id:e,className:`form-section ${l?"form-section--inverted":""}`,children:s.jsx("div",{className:"form-section-wrapper",style:c?{backgroundColor:c}:void 0,children:s.jsxs(ne,{children:[s.jsxs("div",{className:"form-section-header",children:[s.jsx(K,{level:2,className:"form-section-title",children:t}),n&&s.jsx(P,{className:"form-section-description",children:n})]}),s.jsx("div",{className:"form-section-container",children:s.jsxs("form",{onSubmit:te,children:[s.jsx("input",{type:"hidden",name:"referral_code",value:f.referral_code||""}),C&&s.jsx("div",{className:"form-section-lock-banner",role:"status",children:s.jsx(P,{children:T})}),p&&s.jsx("div",{className:"form-section-leader-gate",children:s.jsxs("label",{className:"form-section-checkbox-item form-section-leader-checkbox",children:[s.jsx("input",{type:"checkbox",checked:V,onChange:M=>L(M.target.checked),disabled:C}),b]})}),s.jsxs("fieldset",{disabled:C||!U,className:`form-section-fieldset ${!U||C?"form-section-fieldset--disabled":""}`,children:[D&&s.jsx("div",{className:"form-section-affiliate",children:s.jsx(P,{children:D.texto_descritivo})}),r.map((M,re)=>M.gridColumns?s.jsx(kt,{columns:M.gridColumns,gap:"20px",children:M.fields.map((Q,pe)=>s.jsxs("div",{className:"form-section-group",children:[Q.label&&s.jsx("label",{htmlFor:Q.name,children:Q.label}),ae(Q)]},pe))},re):s.jsxs("div",{className:"form-section-group",children:[M.label&&M.type!=="checkbox"&&s.jsx("label",{htmlFor:M.name,children:M.label}),ae(M)]},re)),s.jsx(ee,{type:"submit",variant:"primary",trackLabel:i,trackSection:"form_section",style:{width:"100%",marginTop:"16px"},disabled:k||!U||C,children:k?S:i})]})]})})]})})})}const Va=({type:e="loading",message:t,onClose:n,closeText:r="Fechar"})=>{w.useEffect(()=>{},[e]);const i=()=>{n&&n()},a=()=>e==="loading"?s.jsx("div",{className:"notification__spinner",children:s.jsx("div",{className:"spinner"})}):e==="success"?s.jsx("div",{className:"notification__icon notification__icon--success",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M20 6L9 17L4 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):null;return s.jsx("div",{className:"notification-overlay",children:s.jsxs("div",{className:`notification notification--${e}`,children:[s.jsxs("div",{className:"notification__content",children:[a(),s.jsx("p",{className:"notification__message",children:t})]}),e!=="loading"&&s.jsx("button",{className:"notification__close-btn",onClick:i,"aria-label":"Fechar",children:r})]})})},jA="https://ykezpkrujtbtczhnmtuq.supabase.co",kA="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let gu=null;gu=qt(jA,kA);const fr=async({flow:e,formData:t,locale:n="pt-BR",attachments:r})=>{if(!gu)return console.error("Supabase client not initialized. Check VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY"),{success:!1,error:"Configuracao do Supabase na
109o encontrada"};if(!e||!t)return console.error("sendEmail: flow and formData are required"),{success:!1,error:"Parametros obrigatorios ausentes"};try{const{data:i,error:a}=await gu.functions.invoke("send-email",{body:{version:2,flow:e,locale:n,formData:t,...Array.isArray(r)&&r.length>0?{attachments:r}:{}}});return a?(console.error("Error calling Edge Function:",a),{success:!1,error:a.message||"Erro ao enviar e-mail"}):{success:(i==null?void 0:i.success)||!1}}catch(i){return console.error("Error sending email:",i),{success:!1,error:i.message||"Erro desconhecido ao enviar e-mail"}}},wp="https://api.backoffice.winningbydesign.com.br/".replace(/\/+$/,""),xp="wbd_live_guOyh5fevCZnnnbiTQtTYurlrs0uRgYtN3WzLgf7Iak",EA={"revenue architecture":"429d4e32-44b5-46ea-a20a-56e3515912d8","math 4 revenue architecture":"92b1a020-f744-4d98-84d1-f21b16cde772","bowtie analytics":"7239b687-79bb-47c8-8ec6-b84ba4c9229e","mentoria ra":"03bf5696-9911-443a-a519-f89bb55d3b26"},AA={Agendada:"ABERTA","Em andamento":"ABERTA",Encerrada:"ENCERRADO"};function TA(e=""){const t=String(e||"").match(/^(\d{4})-(\d{2})-(\d{2})/);if(!t)return"";const[,n,r,i]=t;return`${i}/${r}/${n}`}function _A(e=""){const t=String(e||"").match(/T(\d{2}):(\d{2})/);return t?`${t[1]}:${t[2]}`:""}function CA(e=""){const t=String(e||"").split(" - ").map(n=>n.trim()).filter(Boolean);return t.length>1?t[t.length-1]:""}function NA(e={},t=""){return{id:e.id,turma:e.nome||"",curso:t,data:TA(e.dataInicio),horario:_A(e.dataInicio),local:e.local||CA(e.nome)||"Local a confirmar",descricao:e.descricao||"",tipo:AA[e.status]||e.status||"ABERTA",imagem:e.fotoTurma||null}}const RA=async({curso:e="",cursoId:t="",limit:n=100}={})=>{if(!wp||!xp)return{success:!1,error:"Configuração da Backoffice API não encontrada (VITE_WBD_API / VITE_WBD_API_KEY)"};try{const r=new URLSearchParams;t&&r.set("cursoId",t),n&&r.set("limit",String(n));const i=await fetch(`${wp}/api/public/turmas?${r.toString()}`,{method:"GET",headers:{Accept:"application/json","X-API-Key":xp},signal:AbortSignal.timeout(15e3)});if(!i.ok)return console.error(`Backoffice API error: HTTP ${i.status}`),{success:!1,error:`Erro ao buscar turmas (HTTP ${i.status})`};const a=await i.json(),o=Array.isArray(a)?a:a==null?void 0:a.turmas;if(!Array.isArray(o))return{success:!1,error:"Formato de resposta inesperado da API de turmas"};const c=(t?o.filter(u=>u.cursoId===t):o).map(u=>NA(u,e));return{success:!0,total:c.length,turmas:c}}catch(r){return console.error("Error fetching turmas from backoffice:",r),{success:!1,error:r.message||"Erro desconhecido ao buscar turmas"}}},OA="https://ykezpkrujtbtczhnmtuq.supabase.co",IA="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let vu=null;vu=qt(OA,IA);function Yd(e=""){return String(e).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim()}function yu(e=""){const t=Yd(e);return t?/^mentoria\s+ra$/.test(t)?"mentoria ra":/^(certificacao\s+)?bowtie\s+analytics$/.test(t)?"bowtie analytics":/^(curso\s+)?revenue\s+architecture$/.test(t)||/^revenue\s+architecture$/.test(t)?"revenue architecture":/^math\s*4\s+revenue\s+architecture$/.test(t)?"math 4 revenue architecture":"":""}const Sp={jan:"JAN",janeiro:"JAN",fev:"FEV",fevereiro:"FEV",mar:"MAR",marco:"MAR",abr:"ABR",abril:"ABR",mai:"MAI",maio:"MAI",jun:"JUN",junho:"JUN",jul:"JUL",julho:"JUL",ago:"AGO",agosto:"AGO",set:"SET",setembro:"SET",out:"OUT",outubro:"OUT",nov:"NOV",novembro:"NOV",dez:"DEZ",dezembro:"DEZ"};function Qd(e=""){const t=String(e||"").trim();if(!t)return"";const n=Yd(t),r=n.match(/(\d{1,2})\/(\d{1,2})\/(\d{4})/);if(r){const[,,l,c]=r,u=Number(l)-1,d=["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"];return d[u]?`${d[u]}/${c}`:""}const i=n.match(/(\d{4})-(\d{2})-(\d{2})/);if(i){const[,l,c]=i,u=Number(c)-1,d=["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"];return d[u]?`${d[u]}/${l}`:""}const a=n.match(/(jan(?:eiro)?|fev(?:ereiro)?|mar(?:co)?|abr(?:il)?|mai(?:o)?|jun(?:ho)?|jul(?:ho)?|ago(?:sto)?|set(?:embro)?|out(?:ubro)?|nov(?:embro)?|dez(?:embro)?)\/(\d{4})/);if(a){const[,l,c]=a;return Sp[l]?`${Sp[l]}/${c}`:""}const o=n.match(/(\d{1,2})\/(\d{4})/);if(o){const[,l,c]=o,u=Number(l)-1,d=["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"];return d[u]?`${d[u]}/${c}`:""}return""}function Ry(e={}
109,t=0){const n=String(e.turma||"").trim(),r=n.match(/\d+/);return r?`Turma ${r[0]}`:n?/^turma\b/i.test(n)?n.replace(/\s+/," "):`Turma ${n}`:`Turma ${t+1}`}function LA(e=""){const t=Qd(e);if(!t)return"";const[n,r]=t.split("/"),i={JAN:"Janeiro",FEV:"Fevereiro",MAR:"Março",ABR:"Abril",MAI:"Maio",JUN:"Junho",JUL:"Julho",AGO:"Agosto",SET:"Setembro",OUT:"Outubro",NOV:"Novembro",DEZ:"Dezembro"};return i[n]?`${i[n]}/${r}`:t}function DA(e={},t=0){const n=Ry(e,t),r=Qd(e.data||e.turma||"");return r?`${n} - ${r}`:n}function PA(e={},t=0){const n=Ry(e,t),r=String(e.data||"").trim();if(r)return`${n} - ${r}`;const i=LA(e.turma||"");return i?`${n} (${i})`:n}function jp(e={}){const t=String(e.data||e.turma||"").trim();if(!t)return 0;const n=Yd(t),r=n.match(/(\d{1,2})\/(\d{1,2})\/(\d{4})/);if(r){const[,o,l,c]=r;return new Date(Number(c),Number(l)-1,Number(o),23,59,59).getTime()}const i=n.match(/(\d{4})-(\d{2})-(\d{2})/);if(i){const[,o,l,c]=i;return new Date(Number(o),Number(l)-1,Number(c),23,59,59).getTime()}const a=Qd(t);if(a){const[o,l]=a.split("/"),c={JAN:0,FEV:1,MAR:2,ABR:3,MAI:4,JUN:5,JUL:6,AGO:7,SET:8,OUT:9,NOV:10,DEZ:11};if(o in c)return new Date(Number(l),c[o],1,0,0,0).getTime()}return 0}function MA(e="",t=""){const n=yu(t);return n?yu(e)===n:!1}function BA(e=[]){return Array.isArray(e)?e.map((t,n)=>{var r;return{id:(r=t.id)!=null?r:`turma-${n}`,name:PA(t,n),status:(t.tipo||"ABERTA").toUpperCase(),startDate:[t.data,t.horario].filter(Boolean).join(" • "),location:t.local||"Local a confirmar",otherDates:t.descricao||"Mais informações em breve.",src:t.imagem||null,caption:DA(t,n),turma:t.turma||null,curso:t.curso||null,data:t.data||null,horario:t.horario||null,local:t.local||null,descricao:t.descricao||null,tipo:t.tipo||null,imagem:t.imagem||null}}):[]}function kp(e=[],t=""){let n=BA(e);t&&(n=n.filter(i=>MA(i.curso,t)));const r=n.filter(i=>i.src).sort((i,a)=>jp(a)-jp(i)).map(i=>({id:i.id,src:i.src,caption:i.caption}));return{success:!0,total:n.length,turmas:n,gallery:r}}const Ko=async({curso:e="",limit:t=100}={})=>{const n=String(e||"").trim(),r=yu(n),i=r?EA[r]:"";if(i){const a=await RA({curso:n,cursoId:i,limit:t});if(a.success)return kp(a.turmas,n);console.error("Backoffice turmas unavailable, falling back to Supabase:",a.error)}if(!vu)return console.error("Supabase client not initialized. Check VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY"),{success:!1,error:"Configuração do Supabase não encontrada"};try{const a={};t&&(a.limit=t),n&&(a.curso=n);const{data:o,error:l}=await vu.functions.invoke("get-turmas",{body:a});return l?(console.error("Error calling get-turmas Edge Function:",l),{success:!1,error:l.message||"Erro ao buscar turmas"}):kp(o==null?void 0:o.turmas,n)}catch(a){return console.error("Error fetching turmas:",a),{success:!1,error:a.message||"Erro desconhecido ao buscar turmas"}}},Jo=e=>{const t=String(e||"").trim();if(!t)return"";const n=/turma\s*n?[°º]?\s*(\d+)\s*\(([^)]+)\)/i,r=t.match(n);if(!r)return t;const[,i,a]=r,o=a.trim();return!i||!o?t:`Turma n° ${i}, em ${o}`},$A=[{num:1,title:"O Modelo de Receita & O Modelo de Dados",desc:"Engloba os primeiros princípios da receita recorrente no B2B, incluindo o modelo de receita e como ele impacta o ciclo de vendas. Esta sessão também aborda o modelo de dados da Ampulheta WBD, com os estágios e métricas desde o reconhecimento até a aquisição e expansão."},{num:2,title:"Modelo Matemático",desc:"Analisaremos os princípios matemáticos por trás dos diferentes tipos de crescimento e como aplicar as métricas do modelo de dados da Ampulheta WBD em todas funções de receita para medir o sucesso."},{num:3,title:"O Modelo de Go-To-Market",desc:"Aqui revisamos como pensar sobre os diferentes tipos de GTMs em Marketing, Vendas e CS, e como selecionar o modelo certo para o seu negócio com base em alguns fatores-chave."},{num:4,title:"O Modelo de Crescimento",desc:"Abordaremos os principais estágios de crescimento em um negócio de receita recorrente e como determinar não apenas onde seu negócio está atualmente, mas também para onde está indo. Este modelo ajudará você a alinhar seus recursos e otimizar para escala futura."},{num:5,title:"O Modelo Operacional & Plano de Ação",desc:"Finalizaremos nosso curs
109o com o modelo operacional holístico centrado no cliente que impulsiona os negócios de receitas recorrentes e a importância de alinhá-lo por toda a equipe GTM. Aqui você aprenderá os elementos-chave do modelo e como reunir tudo para alinhar Ampulheta, Impacto e SPICED em sua estratégia GTM."}],bu={title:"REALIZAR MINHA INSCRIÇÃO",description:"Preencha o formulário abaixo para garantir seu lugar na próxima turma.",submitButtonText:"ENVIAR INSCRIÇÃO",fields:[{type:"text",name:"nome",label:"Nome completo",placeholder:"Seu nome",required:!0},{type:"linkedin",name:"linkedin",label:"LinkedIn",placeholder:"https://linkedin.com/in/seu-perfil",required:!0},{type:"select",name:"cargo",label:"Cargo",placeholder:"Selecione uma opção",options:[{value:"VP",label:"VP"},{value:"C-Level",label:"C-Level"},{value:"Diretor(a)",label:"Diretor(a)"},{value:"Founder",label:"Founder"},{value:"Co-Founder",label:"Co-Founder"},{value:"Venture Capital",label:"Venture Capital"},{value:"Lider de Receita",label:"Lider de Receita"},{value:"Head de Marketing",label:"Head de Marketing"},{value:"Head de Vendas",label:"Head de Vendas"},{value:"Head de CS",label:"Head de CS"},{value:"Outros",label:"Outros"}],required:!0},{gridColumns:2,fields:[{type:"email",name:"email",label:"E-mail",placeholder:"[email protected]",required:!0},{type:"tel",name:"whatsapp",label:"WhatsApp",placeholder:"(11) 99999-9999",required:!0}]},{type:"select",name:"origem",label:"Como nos conheceu?",placeholder:"Selecione uma opção",required:!0,options:[{value:"Indicação",label:"Indicação"},{value:"Google",label:"Google"},{value:"Instagram",label:"Instagram"},{value:"LinkedIn",label:"LinkedIn"},{value:"YouTube",label:"YouTube"},{value:"Cursos",label:"Cursos"},{value:"Outros",label:"Outros"}]},{type:"textarea",name:"motivo",label:"Por que quer fazer o curso?",placeholder:"Conte brevemente seus objetivos...",rows:4,required:!0},{type:"radio",name:"turma",label:"Turma de interesse",required:!0,options:[]},{type:"checkbox",name:"consentimento",label:"Eu concordo em receber comunicações por e-mail e WhatsApp",required:!0}]},UA={pt:{seoTitle:"Curso Revenue Architecture | Winning by Design",seoDescription:"Curso imersivo de Revenue Architecture. Aprenda frameworks cientificos para estruturar operacoes de receita escalaveis e previsiveis com metodologia validada.",seoUrl:"/curso-revenue-architecture",seoKeywords:"revenue architecture, curso vendas, treinamento B2B, go-to-market, SaaS, escala de receita, winning by design",headerButtonText:"INSCREVER-SE",loadingMessage:"Realizando inscricao...",successMessage:"Inscricao realizada com sucesso! Redirecionando...",emailSubjectPrefix:"Nova Inscricao - Curso Revenue Architecture -",emailAdditionalNotePrefix:"Nova candidatura recebida para o Curso Revenue Architecture",emailAdditionalNoteTemplate:"Nova candidatura recebida para o Curso Revenue Architecture ({turma}).",whatsappTemplate:`Ola! Sou {nome}, {cargo}. Gostaria de confirmar minha inscricao na {turma} de Revenue Architecture.
110Meu e-mail e {email}, meu LinkedIn e {linkedin}, meu WhatsApp e {whatsapp} e conheci voces atraves de {origem}. Quero fazer o curso porque {motivo}.`,heroBadge:"WINNING BY DESIGN BRASIL",heroTag:"WINNING BY DESIGN BRASIL",heroTitleBefore:"QUER APRENDER MAIS SOBRE",heroTitlePrefix:"QUER APRENDER MAIS SOBRE",heroTitleStrong:"REVENUE ARCHITECTURE?",heroDescription:"Aprenda com a Winning by Design a arquitetar a receita da sua empresa para alcançar um crescimento sustentável e escalável, compreendendo os princípios fundamentais de Receita Recorrente e as estruturas específicas a serem aplicadas em toda a sua equipe de GTM.",heroPrimaryButtonText:"REALIZAR MINHA INSCRIÇÃO",heroButtonText:"REALIZAR MINHA INSCRIÇÃO",detailsAudienceTitle:"PARA QUEM E DESTINADO ESSE CURSO?",detailsAudienceDescription:"Este curso sera realizado em portugues e destinado a Lideres de Operacoes de Receita, CEOs, CROs, VPs, Diretores de Vendas, Marketing ou Customer Success.",detailsWhyTitle:"POR QUE VOCE DEVE PARTICIPAR?",detailsWhyDescription:"Este e um curso exclusivo e reconhecido no mercado, aplicado por profissionais gabaritados da Equipe Mundial da Winning by Design. Nao ha nada semelhante no Brasil.",formatTitle:"QUAL SERA O FORMATO DO CURSO?",detailsFormatTitle:"QUAL SERA O FORMATO DO CURSO?",formatDescription:"Serao 5 modulos em portugues, um por semana, sendo o primeiro e segundo modulos no formato presencial em Sao Paulo. Os demais 
110serao online com duracao de 3 horas.",detailsFormatDescription:"Serao 5 modulos em portugues, um por semana, sendo o primeiro e segundo modulos no formato presencial em Sao Paulo. Os demais serao online com duracao de 3 horas.",courseProgramTitle:"CONTEUDO DO CURSO",courseProgramDescription:"Explore os modulos que combinam teoria profunda e aplicacao pratica dos frameworks da Winning by Design.",courseProgramNote:"Observacao Importante: nos reservamos o direito de alterar a ordem dos modulos, assim como horario e local (na cidade de Sao Paulo).",upcomingClasses:"PROXIMAS TURMAS",classStartLabel:"Inicio:",classLocationLabel:"Local:",classCta:"QUERO ESTA TURMA",classSoon:"EM BREVE",classLoading:"CARREGANDO",classSoonText:"Novas turmas serao publicadas aqui",classSoonDesc:"Assim que as proximas turmas de Revenue Architecture estiverem disponiveis no sistema, elas aparecerao automaticamente nesta secao.",classLoadingDesc:"Buscando as proximas turmas diretamente da base de dados.",galleryTitle:"VEJA UM POUCO DE COMO FOI",galleryDescription:"Nossa comunidade de lideres cresce a cada turma. Confira os registros das ultimas edicoes.",gallerySoon:"GALERIA EM BREVE",galleryLoading:"CARREGANDO",gallerySoonText:"Os registros visuais aparecerao aqui",gallerySoonDesc:"Quando houver imagens cadastradas para as turmas de Revenue Architecture, a galeria sera preenchida automaticamente.",galleryLoadingDesc:"Buscando imagens conectadas as turmas do curso.",modalCloseLabel:"Fechar",modalPrevLabel:"Anterior",modalNextLabel:"Proximo",modalCloseAria:"Fechar",modalPrevAria:"Anterior",modalNextAria:"Proximo"},en:{seoTitle:"Revenue Architecture Course | Winning by Design",seoDescription:"Immersive Revenue Architecture course. Learn science-based frameworks to build scalable and predictable revenue operations.",seoUrl:"/en/curso-revenue-architecture",seoKeywords:"revenue architecture, sales course, B2B training, go-to-market, SaaS, revenue scale, winning by design",headerButtonText:"REGISTER",loadingMessage:"Submitting registration...",successMessage:"Registration submitted successfully! Redirecting...",emailSubjectPrefix:"New Registration - Revenue Architecture Course -",emailAdditionalNotePrefix:"New application received for Revenue Architecture Course",emailAdditionalNoteTemplate:"New application received for Revenue Architecture Course ({turma}).",whatsappTemplate:`Hi! I am {nome}, {cargo}. I would like to confirm my registration for {turma} of Revenue Architecture.
111My email is {email}, my LinkedIn is {linkedin}, my WhatsApp is {whatsapp}, and I heard about you through {origem}. I want to take the course because {motivo}.`,heroBadge:"WINNING BY DESIGN BRAZIL",heroTag:"WINNING BY DESIGN BRAZIL",heroTitleBefore:"DO YOU WANT TO LEARN MORE ABOUT",heroTitlePrefix:"DO YOU WANT TO LEARN MORE ABOUT",heroTitleStrong:"REVENUE ARCHITECTURE?",heroDescription:"Learn with Winning by Design how to architect your company revenue for sustainable and scalable growth, mastering recurring-revenue principles and practical structures for your entire GTM team.",heroPrimaryButtonText:"SUBMIT MY APPLICATION",heroButtonText:"SUBMIT MY APPLICATION",detailsAudienceTitle:"WHO IS THIS COURSE FOR?",detailsAudienceDescription:"This course is delivered in Portuguese and designed for Revenue Operations Leaders, CEOs, CROs, VPs, Sales Directors, Marketing Directors, and Customer Success leaders.",detailsWhyTitle:"WHY SHOULD YOU JOIN?",detailsWhyDescription:"This is an exclusive and highly recognized program delivered by top professionals from the global Winning by Design team. There is nothing similar in Brazil.",formatTitle:"WHAT IS THE COURSE FORMAT?",detailsFormatTitle:"WHAT IS THE COURSE FORMAT?",formatDescription:"Five modules, one per week. The first and second modules are delivered in person in Sao Paulo. The remaining modules are online with 3-hour sessions.",detailsFormatDescription:"Five modules, one per week. The first and second modules are delivered in person in Sao Paulo. The remaining modules are online with 3-hour sessions.",courseProgramTitle:"COURSE PROGRAM",courseProgramDescription:"Explore modules that combine deep theory and practical application of Winning by Design frameworks.",courseProgramNote:"Important note: we reserve the right to change module order, schedule, and venue (within Sao Paulo city).",upcomingClasses:"UPCOMING COHORTS",classStartLabel:"Start:",classLocationLabel:"Location:",classCta:"I WANT THIS COHORT",classSoon:"COMING SOON",classLoading:"LOADING",classSoonText:"New cohorts will be published here",classSoonDesc:"As soon as new Revenue Architecture cohorts are available in the system, they will appear automatically in this section.",classLoadingDesc:"Loading upcoming cohorts directly from the database.",galleryTitle:"A GLIMPSE OF PAST COHORTS",galleryDescription:"Our leadership community grows with each cohort. Check highlights from previous editions.",gallerySoon:"GALLERY COMING SOON",galleryLoading:"LOADING",gallerySoonText:"Visual records will appear here",gallerySoonDesc:"When images are available for Revenue Architecture cohorts, this gallery will be populated automatically.",galleryLoadingDesc:"Loading images linked to course cohorts.",modalCloseLabel:"Close",modalPrevLabel:"Previous",modal
111NextLabel:"Next",modalCloseAria:"Close",modalPrevAria:"Previous",modalNextAria:"Next"}},qA=[{num:1,title:"Revenue Model & Data Model",desc:"Covers recurring-revenue first principles in B2B, including revenue mechanics and impact on the sales cycle, plus the WBD Bowtie data model from recognition to expansion."},{num:2,title:"Mathematical Model",desc:"Analyze principles behind different growth patterns and apply Bowtie metrics across all revenue functions to track performance."},{num:3,title:"Go-To-Market Model",desc:"Review GTM models across Marketing, Sales, and CS, and learn how to select the right model for your business context."},{num:4,title:"Growth Model",desc:"Understand key growth stages in recurring-revenue businesses and diagnose both current stage and trajectory."},{num:5,title:"Operating Model & Action Plan",desc:"Conclude with a customer-centered operating model and practical alignment across GTM teams."}],FA={...bu,title:"SUBMIT MY APPLICATION",description:"Fill in the form below to secure your seat in the next cohort.",submitButtonText:"SUBMIT APPLICATION",fields:bu.fields.map(e=>e.name==="nome"?{...e,label:"Full name",placeholder:"Your name"}:e.name==="linkedin"?{...e,label:"LinkedIn",placeholder:"https://linkedin.com/in/your-profile"}:e.name==="cargo"?{...e,label:"Role",placeholder:"Select an option"}:e.name==="email"?{...e,label:"Email"}:e.name==="whatsapp"?{...e,label:"WhatsApp"}:e.name==="origem"?{...e,label:"How did you hear about us?",placeholder:"Select an option"}:e.name==="motivo"?{...e,label:"Why do you want to take this course?",placeholder:"Briefly share your goals..."}:e.name==="turma"?{...e,label:"Preferred cohort"}:e.name==="consentimento"?{...e,label:"I agree to receive communications via email and WhatsApp"}:e.fields?{...e,fields:e.fields.map(t=>t.name==="email"?{...t,label:"Email",placeholder:"[email protected]"}:t.name==="whatsapp"?{...t,label:"WhatsApp",placeholder:"(11) 99999-9999"}:t)}:e)},zA={pt:{modulesData:$A,applicationFormData:bu},en:{modulesData:qA,applicationFormData:FA}};function WA(e){const t=e==="en"?"en":"pt";return{locale:t,copy:UA[t],...zA[t]}}const VA=new Set(["FECHADO","ENCERRADO"]);function Ep({locale:e="pt"}){var W,V,L;const{modulesData:t,applicationFormData:n,copy:r}=WA(e),[i,a]=w.useState(!1),[o,l]=w.useState(0),[c,u]=w.useState(null),[d,h]=w.useState([]),[m,p]=w.useState([]),[f,v]=w.useState(!1),x=w.useMemo(()=>n.fields.some(C=>C.type==="radio"&&C.name==="turma"&&Array.isArray(C.options)&&C.options.length>0),[n.fields]);w.useEffect(()=>{window.scrollTo(0,0);let C=!0;return(async()=>{const N=await Ko({curso:"Revenue Architecture",limit:500});C&&(N.success&&Array.isArray(N.turmas)&&N.turmas.length&&(h(N.turmas),Array.isArray(N.gallery)&&N.gallery.length&&p(N.gallery)),v(!0))})(),()=>{C=!1}},[x]);const y={"@context":"https://schema.org","@type":"Course",name:"Curso Revenue Architecture",description:r.seoDescription,provider:{"@type":"Organization",name:"Winning by Design",url:"https://winningbydesign.com.br"},courseMode:"blended",educationalLevel:"Professional",inLanguage:e==="en"?"en-US":"pt-BR"},g=(C,U)=>String(C||"").replace(/\{(\w+)\}/g,(N,T)=>U[T]!==void 0?String(U[T]):""),b=C=>{m.length&&(l(C),a(!0),document.body.style.overflow="hidden")},j=w.useCallback(()=>{a(!1),document.body.style.overflow=""},[]),A=w.useCallback(C=>{C&&C.stopPropagation(),m.length&&l(U=>(U+1)%m.length)},[m.length]),S=w.useCallback(C=>{C&&C.stopPropagation(),m.length&&l(U=>(U-1+m.length)%m.length)},[m.length]);w.useEffect(()=>{const C=U=>{i&&(U.key==="Escape"&&j(),U.key==="ArrowRight"&&A(),U.key==="ArrowLeft"&&S())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[i,j,A,S]);const k=w.useCallback((C="")=>{const U=String(C||"").trim();if(!U)return null;const N=U.match(/(\d{2})\/(\d{2})\/(\d{4})/);if(N){const[,ae,M,re]=N;return new Date(`${re}-${M}-${ae}T23:59:59`)}const R=U.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/(jan(?:eiro)?|fev(?:ereiro)?|mar(?:co)?|abr(?:il)?|mai(?:o)?|jun(?:ho)?|jul(?:ho)?|ago(?:sto)?|set(?:embro)?|out(?:ubro)?|nov(?:embro)?|dez(?:embro)?)\/(\d{4})/);if(R){const[,ae,M]=R,re={jan:0,janeiro:0,fev:1,fevereiro:1,mar:2,marco:2,abr:3,abril:3,mai:4,maio:4,jun:5,junho:5,jul:6,julho:6,ago:7,agosto:7,set:8,setembro:8,out:9,outubro:9,nov:10,novembro:10,dez:11,dezembro:11};return new Date(Number(M),re[ae]+1,0,23,59,59)}const B=U.match(/(\d{2})\/(\d{4})/);if(B){const[,ae,M]=B;return new Date(Number(M),Number(ae),0,23,59,59)}const J=U.match(/(\d{4})-(\d{2})-(\d{2})/);if(J){const[,ae,M,re]=J;return new Date(`${ae}-${M}-${re}T23:59:59`)}const te=new Date(U);return Number.isNaN(te.getTime())?null:te},[]),E=w.useMemo(()=>{const C=new Date;return C.setHours(0,0,0,0),d.filter(U=>{const N=k(U.data||U.startDate||U.name);return N?N.getTime()>=C.getTime():!0})},[k,d]),I=w.useMemo(()=>n.fields.map(C=>{if(C.type==="radio"&&C.name==="turma"){if(x)return C;const U=E.filter(N=>!VA.has(String(N.status||N.tipo||"").trim().toUpperCase())).map(N=>({value:N.name,label:N.name}));return{...C,options:U.length?U:C.options}}return C}
111),[n.fields,x,E]),$=async C=>{const U=r.loadingMessage,N=r.successMessage;u({type:"loading",message:U});const T=await fr({flow:"revenue-architecture",formData:C,locale:e}),R=Jo(C.turma),B=g(r.whatsappTemplate,{...C,turma:R}),J=`https://wa.me/551132308228?text=${encodeURIComponent(B)}`;return T.success?(u({type:"success",message:N,onRedirect:()=>{window.open(J,"_blank")}}),{success:!0}):(u(null),setTimeout(()=>{window.open(J,"_blank")},500),{success:!1})},D=()=>{c!=null&&c.onRedirect&&c.onRedirect(),u(null)};return s.jsxs("div",{className:"curso-page",children:[s.jsx(ye,{title:r.seoTitle,description:r.seoDescription,image:"/images/og/curso-revenue.jpg",url:r.seoUrl,keywords:r.seoKeywords,schema:y}),s.jsx(Se,{buttonText:r.headerButtonText,buttonHref:"#inscricao"}),s.jsx("section",{id:"hero",children:s.jsx("div",{style:{backgroundColor:"var(--color-black)",padding:"40px 0",position:"relative",width:"100%",textAlign:"center"},children:s.jsxs(ne,{style:{position:"relative",zIndex:2},children:[s.jsx("div",{style:{display:"inline-block",padding:"8px 16px",border:"1px solid var(--color-white)",marginBottom:"24px"},children:s.jsx("h4",{style:{margin:0,letterSpacing:"2px",fontSize:"14px",color:"var(--color-white)",fontWeight:300},children:r.heroTag})}),s.jsxs(pr,{children:[r.heroTitlePrefix,s.jsx("br",{}),s.jsx("strong",{children:r.heroTitleStrong})]}),s.jsx(P,{style:{fontSize:"15px",marginBottom:"48px",maxWidth:"960px",marginLeft:"auto",marginRight:"auto"},children:r.heroDescription}),s.jsx("div",{className:"btn-container",children:s.jsx(ee,{as:"a",href:"#inscricao",variant:"primary",children:r.heroButtonText})}),s.jsx("div",{style:{marginTop:"60px",width:"100%"},children:s.jsx("img",{src:"/images/ampulheta-1.webp",alt:"Timeline",style:{width:"100%",height:"auto",display:"block"}})})]})})}),s.jsx(de,{id:"details",children:s.jsxs(ne,{children:[s.jsxs(kt,{columns:2,children:[s.jsxs("div",{children:[s.jsx(K,{level:2,style:{color:"#FFF",marginBottom:"24px"},children:r.detailsAudienceTitle}),s.jsx(P,{children:r.detailsAudienceDescription})]}),s.jsxs("div",{children:[s.jsx(K,{level:2,style:{color:"#FFF",marginBottom:"24px"},children:r.detailsWhyTitle}),s.jsx(P,{children:r.detailsWhyDescription})]})]}),s.jsxs("div",{style:{marginTop:"60px",padding:"40px",border:"1px solid #333",background:"#0A0A0A",textAlign:"center"},children:[s.jsx(K,{level:3,style:{color:"var(--color-accent-blue)",textTransform:"uppercase",letterSpacing:"1px",marginBottom:"16px"},children:r.detailsFormatTitle}),s.jsx(P,{style:{maxWidth:"800px",margin:"0 auto",color:"#FFF",fontSize:"1.125rem"},children:r.detailsFormatDescription})]})]})}),s.jsx(qd,{id:"course-content",title:r.courseProgramTitle,description:r.courseProgramDescription,modules:t,inverted:!0,disclaimer:s.jsx(P,{style:{marginTop:"40px",fontSize:"0.875rem",color:"#666",fontStyle:"italic"},children:r.courseProgramNote})}),s.jsx(de,{id:"schedule",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,style:{textAlign:"center",marginBottom:"40px"},children:r.upcomingClasses}),s.jsx(kt,{columns:2,children:E.length>0?E.map((C,U)=>{var N;return s.jsxs("div",{className:"class-card",children:[s.jsx("span",{className:"class-status",children:C.status}),s.jsx("span",{className:"class-date",children:C.name}),s.jsxs("div",{style:{marginTop:"16px"},children:[s.jsxs(P,{style:{marginBottom:"8px"},children:[s.jsx("strong",{style:{color:"#FFF"},children:r.classStartLabel})," ",C.startDate]}),s.jsxs(P,{style:{marginBottom:"8px"},children:[s.jsx("strong",{style:{color:"#FFF"},children:r.classLocationLabel})," ",C.location]}),s.jsx(P,{style:{color:"#999",fontSize:"0.875rem"},children:C.otherDates})]}),s.jsx(ee,{as:"a",href:"#inscricao",variant:"outline-dark",style:{marginTop:"24px",width:"100%",borderColor:"#FFF",color:"#FFF"},children:r.classCta})]},`turma-${(N=C.id)!=null?N:"sem-id"}-${U}`)}):s.jsxs("div",{className:"class-card",children:[s.jsx("span",{className:"class-status",children:f?r.classSoon:r.classLoading}),s.jsx("span",{className:"class-date",children:r.classSoonText}),s.jsx("div",{style:{marginTop:"16px"},children:s.jsx(P,{style:{color:"#999",fontSize:"0.875rem"},children:f?r.classSoonDesc:r.classLoadingDesc})})]})})]})}),s.jsx(de,{id:"gallery",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,style:{textAlign:"center"},children:r.galleryTitle}),s.jsx(P,{style:{textAlign:"center",color:"#999",maxWidth:"600px",margin:"0 auto"},children:r.galleryDescription}),s.jsx("div",{className:"gallery-grid",children:m.length>0?m.map((C,U)=>{var N;return s.jsxs("div",{className:"gallery-item",onClick:()=>b(U),role:"button",tabIndex:0,onKeyDown:T=>T.key==="Enter"&&b(U),children:[s.jsx("img",{src:C.src,alt:C.caption}),s.jsx("div",{className:"gallery-caption",children:C.caption})]},`gallery-${(N=C.id)!=null?N:"sem-id"}-${U}`)}):s.jsxs("div",{className:"class-card",children:[s.jsx("span",{className:"class-status",children:f?r.gallerySoon:r.galleryLoading}),s.jsx("span",{className:"class-date",children:r.gallerySoonText}),s.jsx(P,{style:{color:"#999",fontSize:"0.875rem",marginTop:"12px"},children:f?r.gallerySoonDesc:r.galleryLoadingDesc})]})})]})}),s.jsx(Wa,{id:"inscricao",courseSlug:"revenue-architecture",title:n.title,de
111scription:n.description,submitButtonText:n.submitButtonText,fields:I,onSubmit:$},E.map(C=>C.id).join("-")||"revenue-classes"),c&&s.jsx(Va,{type:c.type,message:c.message,onClose:D}),s.jsx(je,{logoSrc:"/images/wbdlogo.png",logoAlt:"WbD Logo",logoLink:"/",copyrightText:"© Copyright 2026 Winning by Design Brasil – Todos os direitos reservados.",links:[{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Bowtie Analytics",href:"/curso-bowtie-analytics"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}],socialLinks:{linkedin:"https://www.linkedin.com/in/renatacenturion/",instagram:"https://www.instagram.com/renata_centurion/",youtube:"https://www.youtube.com/@wbdbrasil"}}),s.jsx("div",{className:`modal-overlay ${i?"active":""}`,onClick:C=>C.target===C.currentTarget&&j(),children:s.jsxs("div",{className:"modal-content",children:[s.jsx("button",{className:"modal-close",onClick:j,"aria-label":r.modalCloseAria,children:"×"}),s.jsx("button",{className:"modal-nav modal-prev",onClick:S,"aria-label":r.modalPrevAria,children:"‹"}),s.jsx("img",{src:(W=m[o])==null?void 0:W.src,alt:(V=m[o])==null?void 0:V.caption,className:"modal-img"}),s.jsx("div",{className:"modal-caption-text",children:(L=m[o])==null?void 0:L.caption}),s.jsx("button",{className:"modal-nav modal-next",onClick:A,"aria-label":r.modalNextAria,children:"›"})]})})]})}const Li={badge:"WINNING BY DESIGN BRASIL",title:"TERMO DE ADESÃO",subtitle:"ao curso Revenue Architecture",intro:"Pelo presente instrumento particular, de um lado, WBD SERVIÇOS, inscrita no CNPJ sob o nº 52.558.297/0001-09, doravante denominada PRESTADORA, e, de outro lado, o ALUNO identificado no momento da inscrição, têm entre si justo e contratado o seguinte:",sections:[{title:"CLÁUSULA 1 – DO OBJETO",paragraphs:[{number:"1.1",text:'O presente Termo tem por objeto a prestação, pela PRESTADORA, do curso denominado "REVENUE ARCHITECTURE", nas condições informadas previamente no momento da inscrição, e a adesão, pelo ALUNO, a todas as regras aqui estipuladas.'}]},{title:"CLÁUSULA 2 – DO CANCELAMENTO E REMARCAÇÃO",paragraphs:[{number:"2.1",text:"O ALUNO poderá cancelar sua participação no curso com restituição integral dos valores pagos, desde que o pedido de cancelamento seja formalizado com no mínimo 48 (quarenta e oito) horas de antecedência ao início do curso."},{number:"2.2",text:"Após esse prazo, não haverá restituição dos valores pagos, sendo facultado ao ALUNO participar do mesmo curso em outra data futura, a ser definida pela PRESTADORA, conforme disponibilidade de agenda."},{number:"2.3",text:"A remarcação prevista no item 2.2 deverá ser solicitada por escrito e está limitada a uma única vez."}]},{title:"CLÁUSULA 3 – DO USO DE DADOS PESSOAIS",paragraphs:[{number:"3.1",text:"Ao firmar este Termo, o ALUNO declara ciência e concordância de que seus dados pessoais serão coletados, armazenados e utilizados pela PRESTADORA exclusivamente para fins administrativos, fiscais e de comunicação relativa ao curso."},{number:"3.2",text:"Os dados pessoais não serão compartilhados com terceiros, salvo quando necessários para a emissão de nota fiscal, cumprimento de obrigação legal ou regulatória, ou mediante consentimento expresso do ALUNO."},{number:"3.3",text:"O ALUNO poderá, a qualquer tempo, solicitar a atualização, correção ou exclusão de seus dados, exceto quando a manutenção for necessária por obrigações legais ou fiscais."},{number:"3.4",text:"O ALUNO autoriza o uso de sua imagem produzida durante os cursos e eventos contratados para fins de divulgação da PRESTADORA, em materiais institucionais e promocionais, físicos ou digitais."}]},{title:"CLÁUSULA 4 – DA EMISSÃO DE NOTA FISCAL",paragraphs:[{number:"4.1",text:"A PRESTADORA se compromete a emitir nota fiscal eletrônica correspondente ao valor do curso contratado, em nome do ALUNO, com base nos dados fornecidos no momento da inscrição."},{number:"4.2",text:"É responsabilidade do ALUNO fornecer dados corretos e atualizados para a emissão da nota fiscal. Eventuais erros decorrentes de informações incorretas fornecidas pelo ALUNO não serão de responsabilidade da PRESTADORA."}]},{title:"CLÁUSULA 5 – DISPOSIÇÕES GERAIS",paragraphs:[{number:"5.1",text:"Ao aceitar os termos deste instrumento no ato da inscrição, o ALUNO declara estar de acordo com todas as condições aqui descritas."},{number:"5.2",text:"Este Termo tem validade jurídica e aplica-se a qualquer forma de contratação do curs
111o, seja online ou presencial."},{number:"5.3",text:"Fica eleito o foro da comarca de Barueri-SP com renúncia a qualquer outro, por mais privilegiado que seja, para dirimir quaisquer controvérsias oriundas deste Termo."}]}]},HA={links:[{text:"Curso Revenue Architecture",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Bowtie Analytics",href:"/curso-bowtie-analytics"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}]};function Ap(){return w.useEffect(()=>{window.scrollTo(0,0)},[]),s.jsxs("div",{className:"termo-adesao-page",children:[s.jsx(ye,{title:"Termo de Adesão - Revenue Architecture | Winning by Design",description:"Termo de adesão e condições para participação nos cursos de Revenue Architecture da Winning by Design. Conheça as políticas e diretrizes.",image:"/images/og/termo-adesao.jpg",url:"/termo-adesao",type:"article"}),s.jsx(Se,{buttonText:"CONTATO",buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Tenho%20interesse%20nos%20cursos."}),s.jsx(Ud,{badge:Li.badge,title:Li.title,subtitle:Li.subtitle,intro:Li.intro,sections:Li.sections}),s.jsx(je,{links:HA.links})]})}const Di={badge:"WINNING BY DESIGN BRASIL",title:"TERMO DE CONFIDENCIALIDADE",subtitle:"e Uso de Materiais",intro:`Curso Revenue Architecture
112
113Ao se inscrever e participar do curso Revenue Architecture, o(a) aluno(a) declara estar ciente e de acordo com as condições abaixo:`,sections:[{title:"USO INDIVIDUAL",paragraphs:[{text:"Todo o conteúdo disponibilizado — incluindo, mas não se limitando a, apostilas, apresentações, vídeos, gravações, exercícios, modelos e demais materiais — é de uso estritamente pessoal e intransferível."}]},{title:"PROIBIÇÃO DE COMPARTILHAMENTO",paragraphs:[{text:"Não é permitido reproduzir, distribuir, compartilhar, revender, ceder, disponibilizar publicamente ou transmitir qualquer parte do conteúdo do curso, seja de forma gratuita ou onerosa, em qualquer meio físico, digital ou plataforma online, sem autorização prévia e expressa da Winning by Design."}]},{title:"DIREITOS AUTORAIS",paragraphs:[{text:"Todo o material é protegido por direitos autorais e propriedade intelectual da Winning by Design. Qualquer uso indevido poderá resultar em medidas legais cabíveis."}]},{title:"CONFIDENCIALIDADE",paragraphs:[{text:"O(a) aluno(a) compromete-se a manter confidenciais todas as informações e conteúdos compartilhados durante as aulas, discussões e mentorias, não podendo reproduzi-los ou utilizá-los fora do contexto educacional do curso."}]},{title:"PENALIDADES",paragraphs:[{text:"O descumprimento deste termo poderá resultar na suspensão imediata do acesso ao curso, sem reembolso, além de responsabilidade 
113civil e penal conforme a legislação vigente."}]},{title:"",paragraphs:[{text:"Ao acessar a plataforma ou participar das aulas, o(a) aluno(a) declara ter lido e concordado com os termos acima."}]}]},GA={links:[{text:"Curso Revenue Architecture",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Bowtie Analytics",href:"/curso-bowtie-analytics"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}]};function Tp(){return w.useEffect(()=>{window.scrollTo(0,0)},[]),s.jsxs("div",{className:"termo-confidencialidade-page",children:[s.jsx(ye,{title:"Termo de Confidencialidade - Revenue Architecture | Winning by Design",description:"Termo de confidencialidade e proteção de dados nos cursos da Winning by Design. Saiba como protegemos suas informações e conteúdos.",image:"/images/og/termo-confidencialidade.jpg",url:"/termo-de-confidencialidade",type:"article"}),s.jsx(Se,{buttonText:"CONTATO",buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Tenho%20interesse%20nos%20cursos."}),s.jsx(Ud,{badge:Di.badge,title:Di.title,subtitle:Di.subtitle,intro:Di.intro,sections:Di.sections}),s.jsx(je,{links:GA.links})]})}function KA({id:e,badge:t,title:n,subtitle:r,paragraphs:i=[],logoCarousel:a,primaryButtonText:o,primaryButtonHref:l,primaryButtonVariant:c="primary",secondaryButtonText:u,secondaryButtonHref:d,secondaryButtonVariant:h="secondary",inverted:m=!1,backgroundColor:p,textAlign:f="left"}){return s.jsx("section",{id:e,className:`content-section ${m?"content-section--inverted":""}`,children:s.jsx("div",{className:"content-section-wrapper",style:p?{backgroundColor:p}:void 0,children:s.jsx(ne,{children:s.jsxs("div",{className:`content-section-content content-section-content--${f}`,children:[t&&s.jsx("div",{className:"content-section-badge",children:t}),n&&s.jsx(pr,{className:"content-section-title",children:n}),r&&s.jsx("div",{className:"content-section-subtitle",children:r}),i.length>0&&s.jsx("div",{className:"content-section-paragraphs",children:i.map((v,x)=>s.jsx(P,{className:"content-section-paragraph",children:v},x))}),a&&a.logos&&a.logos.length>0&&s.jsx(Qv,{logos:a.logos,animationDuration:a.animationDuration,height:a.height,inverted:m}),(o||u)&&s.jsxs("div",{className:"content-section-buttons",children:[o&&s.jsx(ee,{as:"a",href:l,variant:c,children:o}),u&&s.jsx(ee,{as:"a",href:d,variant:h,children:u})]})]})})})})}function Xd({id:e,title:t="FAQ",subtitle:n,items:r=[],inverted:i=!1,backgroundColor:a}){const[o,l]=w.useState(null),c=u=>{l(o===u?null:u)};return s.jsx("section",{id:e,className:`faq-section ${i?"faq-section--inverted":""}`,children:s.jsx("div",{className:"faq-wrapper",style:a?{backgroundColor:a}:void 0,children:s.jsxs(ne,{children:[s.jsxs("div",{className:"faq-header",children:[n&&s.jsx("div",{className:"faq-subtitle",children:n}),s.jsx(K,{level:2,className:"faq-title",children:t})]}),s.jsx("div",{className:"faq-list",children:r.map((u,d)=>s.jsxs("div",{className:`faq-item ${o===d?"faq-item--open":""}`,children:[s.jsxs("button",{className:"faq-question",onClick:()=>c(d),"aria-expanded":o===d,children:[s.jsx("span",{className:"faq-question-text",children:u.question}),s.jsx("span",{className:"faq-question-icon",children:o===d?"×":"+"})]}),o===d&&s.jsx("div",{className:"faq-answer",children:u.answer})]},d))})]})})})}const JA=Array.from({length:33},(e,t)=>({id:t+1,src:`/images/logo_empresa-${t+1}.jpg`,alt:`Cliente ${t+1}`})),Oy={tagText:"",title:s.jsxs(s.Fragment,{children:["Transforme caos de métricas em ",s.jsx("strong",{children:"crescimento estruturado"})," ","com o Bowtie Analytics"]}),description:"Domine análise avançada de negócios e benchmarking. Identifique insights para decisões estratégicas e otimização de desempenho.",primaryButtonText:"REALIZAR MINHA INSCRIÇÃO",primaryButtonHref:"#inscricao",imageSrc:"/images/ampulheta-1.webp",imageAlt:"Bowtie Analytics"},Iy={title:"INFORMAÇÕES DO CURSO",subtitle:"turma 2",boxes:[{value:"10h",label:"CARGA HORÁRIA"},{value:"3",label:"SESSÕES"}
113,{value:"Zoom",label:"AO VIVO"},{value:"Labs",label:"PRÁTICOS"}],paragraphs:["Formato: Zoom Ao Vivo com Labs Práticos","Este curso foi desenvolvido para líderes que desejam dominar análise avançada de negócios e benchmarking com o framework Bowtie."],logoCarousel:{logos:JA,animationDuration:60,height:"80px"},scheduleTitle:"DATAS DAS AULAS",scheduleIcon:"📅",footerNote:"Material incluso: planilhas + exercícios + exemplos reais",primaryButtonText:"INSCREVA-SE AGORA",primaryButtonHref:"#inscricao",secondaryButtonText:"BAIXAR PROGRAMA",secondaryButtonHref:"#programa"},Ly={title:"O Problema",description:"Você não está só. A ilusão de pipeline é real e cara. Sem métrica comum e normalização de dados ninguém se entende!",columns:[{title:"Pipeline Ilusório",description:"Seu CRM mostra oportunidades saudáveis, mas no final do quarter a realidade bate: previsão errada, forecast descolado dos resultados reais."},{title:"Dados Desalinhados",description:"Marketing, Vendas e CS usam métricas diferentes. Cada área conta uma história, mas ninguém vê o quadro completo da jornada do cliente."},{title:"Decisões no Escuro",description:"Sem visibilidade clara sobre taxas de conversão reais, CAC verdadeiro ou health score confiável, suas decisões viram apostas, não estratégia."}]},Fi={title:"Para Quem É",description:"Líderes de receita que buscam excelência na entrega real de dados e métricas em toda jornada do cliente",columns:[{icon:"/images/gtm.webp",iconAlt:"CROs & VP Revenue",title:"CROs & VP de Revenue",description:"Lideram crescimento e precisam de métricas unificadas para decisões estratégicas. Heads de RevOps que orquestram dados entre times e buscam normalização de métricas."},{icon:"/images/leadership.webp",iconAlt:"Líderes de Receita",title:"Líderes de Receita",description:"Gerenciam pipeline complexo e necessitam previsibilidade em vendas. Buscam estruturar operações de receita escaláveis com métricas que toda a empresa entenda."},{icon:"/images/growth-fast.webp",iconAlt:"Founders de SaaS",title:"Founders de SaaS",description:"Constroem operações escaláveis e precisam de framework robusto. Lideram times de vendas, marketing ou CS e querem aplicar frameworks validados por 1000+ empresas."}],bottomButtonText:"REALIZAR MINHA INSCRIÇÃO",bottomButtonHref:"#inscricao",bottomButtonVariant:"primary"},Dy={title:"A Solução",description:s.jsxs(s.Fragment,{children:["O framework de ampulheta que normaliza suas métricas de ponta a ponta.",s.jsx("br",{}),"- Da geração de leads ao customer success, em um único sistema coeso.",s.jsx("br",{}),"- Métricas normalizadas que Marketing, Vendas e CS falam a mesma língua.",s.jsx("br",{}),"- Visibilidade real do pipeline.",s.jsx("br",{}),"- Previsões confiáveis baseadas em dados históricos e health scores reais.",s.jsx("br",{}),"- Decisões rápidas e fundamentadas em vez de apostas no escuro.",s.jsx("br",{}),"- Framework Bowtie aplicado ao contexto brasileiro e adaptado ao seu CRM."]}),buttonText:"Realizar Minha Inscrição",buttonHref:"#inscricao",secondaryButtonText:"Veja o programa completo",secondaryButtonHref:"#programa",buttonVariant:"primary",imageSrc:"/images/bowtie-detailed.png",imageAlt:"Bowtie Analytics Framework",imagePosition:"left"},wu={title:"Depoimentos",highlightedTitle:"",description:"Profissionais que já transformaram suas operações com os cursos Winning by Design. Seja o próximo a transformar sua operação de receita.",videos:[{href:"/videos/depoimento-juliana-rosso.mp4",thumbnail:"/images/depoimento-juliana-rosso.png",alt:"Depoimento Juliana Rosso",tag:"DEPOIMENTO",title:"Juliana Rosso - Diretora Mulheres de Growth"},{href:"/videos/depoimento-carina-lima.mp4",thumbnail:"/images/depoimento-carina-lima.png",alt:"Depoimento Carina Lima",tag:"DEPOIMENTO",title:"Carina Lima - CMO na NeoAssist"},{href:"/videos/depoimento-leandro-coletti.mp4",thumbnail:"/images/depoimento-leandro-coletti.png",alt:"Depoimento Leandro Coletti",tag:"DEPOIMENTO",title:"Leandro Coletti - Sales Leader at Digibee"}],columns:3,asCarousel:!1,animationDuration:60,primaryButtonText:"Realizar Minha Inscrição",primaryButtonHref:"#inscricao",primaryButtonVariant:"primary"},Py={title:"FAQ",subtitle:"perguntas frequentes",items:[{question:"Preciso ter experiência prévia com analytics?",answer:"Não necessariamente. O curso é desenhado para líderes de receita que já trabalham com métricas, mas queremos formalizar o método. Se você já olha dashboards, discute pipeline e toma decisões baseadas em dados, você está pronto, mas você pode participar da formação em Matemática Aplicada a Revenue para se preparar melhor."},{question:"Qual é o time commitment?",answer:"2 semanas com 3 encontros de 3h. Inclui aulas ao vivo, labs práticos e aplicação no seu próprio contexto. É intensivo, mas compatível com rotina de C-level."},{question:"O conteúdo é adaptado ao Brasil?",answer:"Sim! A instrutora traz cases brasileiros, adapta exemplos ao n
113osso mercado e ajusta o método às realidades de go-to-market locais. Não é tradução, é contextualização real."},{question:"Vou receber certificado?",answer:"Sim. Ao completar o curso e apresentar seu projeto final, você recebe certificação oficial da Winning by Design, reconhecida globalmente em Revenue Operations."},{question:"Posso aplicar no meu CRM atual?",answer:"Com certeza. Os labs incluem exercícios práticos que você aplica diretamente no seu Salesforce, HubSpot, Pipedrive ou qualquer CRM que sua empresa use. O framework é agnóstico de ferramenta."},{question:"Qual é o investimento?",answer:"O valor será divulgado após a aprovação da sua aplicação. Oferecemos condições especiais para early adopters desta primeira turma brasileira."}]},xu={title:"Instrutoras",description:"Especialistas que vivem receita todos os dias.",columns:2,imageAspectRatio:"square",items:[{imageSrc:"/images/renata-centurion.png",imageAlt:"Renata Centurión",title:"Renata Centurión",description:"Managing Partner Director Winning by Design",buttonText:"LinkedIn",buttonHref:"https://www.linkedin.com/in/renatacenturion/",buttonVariant:"secondary"},{imageSrc:"/images/angelica-regazzini.png",imageAlt:"Angélica Regazzini",title:"Angélica Regazzini",description:"Especialista em Matemática Aplicada & Consultora de Transformação de Negócios",buttonText:"LinkedIn",buttonHref:"https://www.linkedin.com/in/angelicaregazzini/",buttonVariant:"secondary"}]},Su={title:"FORMULÁRIO DE INSCRIÇÃO",description:"Preencha o formulário abaixo para se candidatar à próxima turma do Bowtie Analytics no Brasil.",submitButtonText:"ENVIAR INSCRIÇÃO",fields:[{type:"text",name:"nome",label:"Nome Completo",placeholder:"Seu nome",required:!0},{type:"email",name:"email",label:"Email",placeholder:"[email protected]",required:!0},{type:"tel",name:"whatsapp",label:"WhatsApp",placeholder:"(11) 99999-9999",required:!0},{type:"linkedin",name:"linkedin",label:"LinkedIn",placeholder:"https://linkedin.com/in/seu-perfil",required:!0},{type:"select",name:"cargo",label:"Cargo",placeholder:"Selecione uma opção",options:[{value:"VP",label:"VP"},{value:"C-Level",label:"C-Level"},{value:"Diretor(a)",label:"Diretor(a)"},{value:"Founder",label:"Founder"},{value:"Co-Founder",label:"Co-Founder"},{value:"Venture Capital",label:"Venture Capital"},{value:"Lider de Receita",label:"Lider de Receita"},{value:"Head de Marketing",label:"Head de Marketing"},{value:"Head de Vendas",label:"Head de Vendas"},{value:"Head de CS",label:"Head de CS"},{value:"Outros",label:"Outros"}],required:!0},{type:"select",name:"origem",label:"Como nos conheceu?",placeholder:"Selecione uma opção",required:!0,options:[{value:"Indicação",label:"Indicação"},{value:"Google",label:"Google"},{value:"Instagram",label:"Instagram"},{value:"LinkedIn",label:"LinkedIn"},{value:"YouTube",label:"YouTube"},{value:"Cursos",label:"Cursos"},{value:"Outros",label:"Outros"}]},{type:"radio",name:"turma",label:"Turma de interesse",required:!0,options:[]},{type:"textarea",name:"motivo",label:"Por que você quer fazer este curso?",placeholder:"Conte-nos sobre seus principais desafios com analytics...",rows:5,required:!0},{type:"checkbox",name:"termos",label:"Li e aceito os Termos de Adesão e Confidencialidade e o uso dos meus dados conforme a LGPD.",required:!0}]},YA=[{num:1,title:"Domínio do Bowtie & Metodologias Analíticas",desc:"Construa a fluência matemática que sustenta todo o Bowtie. Aprenda as abordagens corretas para cálculo de conversão, definição precisa dos termos essenciais, visão geral dos processos de cálculo e análise, fundamentos para ler métricas criticamente e técnicas práticas para normalizar dados em planilhas."},{num:2,title:"Leitura Estratégica do Lado Esquerdo do Bowtie",desc:"Interpretação profunda do lado pré-venda da ampulheta. Explore o lado esquerdo do Bowtie, aumente sua capacidade de decisão ao analisar dados reais da etapa de pré-venda, interprete cada métrica crítica (volumes, conversões e tempos) com precisão, identifique gargalos e traduza análises em conclusões práticas."},{num:3,title:"Leitura Estratégica do Lado Direito do Bowtie",desc:"A visão completa do pós-venda, retenção e expansão. Explore o lado direito do Bowtie e suas métricas essenciais, aprofunde sua capacidade de decisão a partir de análises abrangentes, avalie métricas de retenção, expansão e churn, analise a entrega de valor ao cliente de forma estruturada."}],My={logoSrc:"/images/wbdlogo.png",logoAlt:"WbD Logo",logoLink:"/",copyrightText:"© Copyright 2026 Winning by Design Brasil – Todos os direitos reservados.",links:[{text:"Curso Revenue Architecture",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}],socialLinks:{linkedin:"https://www.linkedin.com/in/renatacenturion/",instagram:"https://www.instagram.com/renata_centurion/",youtube:"https://www.youtube.com/@wbdbrasil"}},QA=["pt","en"],XA={pt:{seoTitle:"Certificacao Bowtie Analytics | Winning by Design",seoDescription:"Transforme caos de metricas em crescimento estruturado. Domine analise avancada de negocios e benchmarking para decisoes estrategicas e otimizacao de desempenho.",seoUrl:"/curso-bowtie-analytics",seoKeywords:"bowtie analytics, metricas SaaS, analytics, benchmarking, BI, analise de dados, KPIs",headerButtonText:"FALE CONOSCO",loadingMessage:"Realizando inscricao...",successMessage:"Inscricao realizada com sucesso! Redirecionando...",emailSubjectPrefix:"Nova Inscricao - Certificacao Bowtie Analytics -",emailAdditionalNote:"Nova candidatura recebida para a Certificacao Bowtie Analytics.",whatsappTemplate:`Ola! Sou {nome}, {cargo}. Gostaria de confirmar minha pre-inscricao na Certificacao Bowtie Analytics.
114Meu e-mail e {email}, meu LinkedIn e {linkedin} e meu WhatsApp e {whatsapp}. Conheci voces atraves de {origem}. Tenho interesse na {turma}. Quero fazer o curso porque {motivo}.`,moduleTitle:"O PROGRAMA DO CURSO",moduleDescription:"3 sessoes de 3h ao vivo, via Zoom, com exercicios praticos para dominar a analise avancada do Bowtie.",moduleDisclaimer:"Material incluso: planilhas + exercicios + exemplos reais. Certificado de conclusao ao final do curso."},en:{seoTitle:"Bowtie Analytics Certification | Winning by Design",seoDescription:"Turn metrics chaos into structured growth. Master advanced business analytics and benchmarking for strategic decisions and performance optimization.",seoUrl:"/en/curso-bowtie-analytics",seoKeywords:"bowtie analytics, SaaS metrics, analytics, benchmarking, business intelligence, data analysis, KPIs",headerButtonText:"CONTACT US",loadingMessage:"Submitting registration...",successMessage:"Registration submitted successfully! Redirecting...",emailSubjectPrefix:"New Registration - Bowtie Analytics Certification -",emailAdditionalNote:"New application received for Bowtie Analytics Certification.",whatsappTemplate:`Hi! I am {nome}, {cargo}. I would like to confirm my pre-registration for the Bowtie Analytics Certification.
115My email is {email}, my LinkedIn is {linkedin}, and my WhatsApp is {whatsapp}. I heard about you through {origem}. I am interested in {turma}. I want to take the course because {motivo}.`,moduleTitle:"COURSE PROGRAM",moduleDescription:"Three live 3-hour Zoom sessions with practical exercises to master advanced Bowtie Analytics.",moduleDisclaimer:"Included material: w
115orksheets + exercises + real examples. Certificate awarded upon completion."}},ZA={...Oy,title:"Turn metrics chaos into structured growth with Bowtie Analytics",description:"Master advanced business analytics and benchmarking. Identify insights for strategic decisions and performance optimization.",primaryButtonText:"SUBMIT MY APPLICATION"},eT={...Ly,title:"The Problem",description:"You are not alone. Pipeline illusion is real and expensive. Without common metrics and normalized data, no one speaks the same language.",columns:[{title:"Illusory Pipeline",description:"Your CRM shows healthy opportunities, but at the end of the quarter reality hits: inaccurate forecasts and outcomes disconnected from expectations."},{title:"Misaligned Data",description:"Marketing, Sales, and CS use different metrics. Each area tells a story, but no one sees the full customer journey."},{title:"Decisions in the Dark",description:"Without clear visibility into conversion rates, true CAC, and reliable health scores, decisions become bets, not strategy."}]},tT={...Fi,title:"Who Is This For",description:"Revenue leaders seeking excellence in real metric delivery across the entire customer journey.",columns:[{...Fi.columns[0],title:"CROs & Revenue VPs",description:"Growth leaders who need unified metrics for strategic decisions. Also for RevOps Heads orchestrating data and metric normalization across teams."},{...Fi.columns[1],title:"Revenue Leaders",description:"Leaders managing complex pipelines who need predictable sales and scalable revenue operations with clear metrics."},{...Fi.columns[2],title:"SaaS Founders",description:"Founders building scalable operations who need robust frameworks validated by over 1,000 companies."}],bottomButtonText:"SUBMIT MY APPLICATION"},nT={...Dy,title:"The Solution",description:["The funnel framework that normalizes your metrics end to end.","- From lead generation to customer success, in one cohesive system.","- Normalized metrics so Marketing, Sales, and CS speak the same language.","- Real pipeline visibility.","- Reliable forecasting based on historical data and real health scores.","- Faster, evidence-based decisions instead of blind bets.","- Bowtie framework applied to the Brazilian context and adapted to your CRM."],buttonText:"Submit My Application",secondaryButtonText:"See full program"},rT={...wu,title:"Testimonials",description:"Professionals who transformed operations with Winning by Design programs. Be the next to transform your revenue operation.",videos:wu.videos.map(e=>({...e,tag:"TESTIMONIAL",title:e.title.replace("Diretora Mulheres de Growth","Women in Growth Director").replace("CMO na NeoAssist","CMO at NeoAssist").replace("Sales Leader at Digibee","Sales Leader at Digibee")})),primaryButtonText:"Submit My Application"},iT=[{num:1,title:"Bowtie Mastery & Analytical Methodologies",desc:"Build the mathematical fluency that supports Bowtie. Learn conversion calculations, key term definitions, core analysis processes, and practical techniques for data normalization."},{num:2,title:"Strategic Reading of Bowtie Left Side",desc:"Deep interpretation of pre-sales metrics. Analyze volumes, conversions, and cycle times to identify bottlenecks and improve pipeline generation."},{num:3,title:"Strategic Reading of Bowtie Right Side",desc:"A complete post-sales view focused on retention and expansion. Evaluate retention, expansion, and churn with structured value-delivery analysis."}],aT={...Iy,title:"COURSE INFORMATION",subtitle:"cohort 2",boxes:[{value:"10h",label:"WORKLOAD"},{value:"3",label:"SESSIONS"},{value:"Zoom",label:"LIVE"},{value:"Labs",label:"HANDS-ON"}],paragraphs:["Format: Live Zoom with practical labs","This course was designed for leaders who want to master advanced business analytics and benchmarking with the Bowtie framework."],scheduleTitle:"CLASS DATES",footerNote:"Included: worksheets + exercises + real examples",primaryButtonText:"REGISTER NOW",secondaryButtonText:"DOWNLOAD PROGRAM"},sT={...xu,title:"Instructors",description:"Experts who work on revenue every day.",items:xu.items.map(e=>({...e,description:e.title==="Renata Centurión"?"Managing Partner Director, Winning by Design":"Applied Mathematics Specialist & Business Transformation Consultant"}))},oT={...Py,title:"FAQ",subtitle:"frequently asked questions",items:[{question:"Do I need prior analytics experience?",answer:"Not necessarily. The course is designed for revenue leaders already exposed to metrics who want to formalize the method."},{question:"What is the time commitment?",answer:"Two weeks with three live 3-hour sessions. Includes practical labs and direct application to your own context."},{question:"Is the content adapted to Brazil?",answer:"Yes. The instructor brings Brazilian cases and local go-to-market context. It is contextualization, not just translation."},{question:"Will I receive a certificate?",answer:"Yes. After completing the course and final project, you receive an official Winning by Design certificate."},{question:"Can I apply this in my current CRM?",answer:"Yes. Labs include hands-on exercises for Salesforce, HubSpot, Pipedrive, and other CRM tools."},{question:"What is the investment?",answer:"Pricing is shared after your application is approved. We offer special conditions for early adopters."}]},lT={...Su,title:"APPLICATION FORM",description:"Fill in the form below to apply for the next Bowtie Analytics cohort in Brazil.",submitButtonText:"SUBMIT APPLICATION",fields:Su.fields.map(e=>e.name==="nome"?{...e,label:"Full name",placeholder:"Your name"}:e.name==="email"?{...e,label:"Email"}:e.name==="whatsapp"?{...e,label:"WhatsApp"}:e.name==="linkedin"?{...e,label:"LinkedIn",placeholder:"https://linkedin.com/in/your-profile"}:e.name==="cargo"?{...e,label:"Role",placeholder:"Select an option"}:e.name==="origem"?{...e,label:"How did you hear about us?",placeholder:"Select an option",options:e.options.map(t=>({...t,label:t.value==="Indicacao"||t.value==="Indicação"?"Referral":t.value==="Outros"?"Other":t.label}))}:e.name==="turma"?{...e,label:"Preferred cohort"}:e.name==="motivo"?{...e,label:"Why do you want to take this course?",placeholder:"Tell us about your main analytics challenges..."}:e.name==="termos"?{...e,label:"I have read and accept the Terms of Adhesion and Confidentiality and authorize data usage according to LGPD."}:e)},cT={...My,links:[{text:"Revenue Architecture Course",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Terms of Adhesion",href:"/termo-adesao"},{text:"Confidentiality Terms",href:"/termo-de-confidencialidade"},{text:"Validate Certificate",href:"https://certificados.winningbydesign.com.br/certificados"}]},uT={pt:{heroData:Oy,problemSectionData:Ly,targetAudienceThreeColumnData:Fi,solutionSectionData:Dy,videoSectionData:wu,modulesData:YA,infoBoxData:Iy,instructorsData:xu,faqData:Py,applicationFormData:Su,footerData:My},en:{heroData:ZA,problemSectionData:eT,targetAudienceThreeColumnData:tT,solutionSectionData:nT,videoSectionData:rT,modulesData:iT,infoBoxData:aT,instructorsData:sT,faqData:oT,applicationFormData:lT,footerData:cT}};function dT(e){if(!e)return"pt";const t=String(e).toLowerCase().trim();return QA.includes(t)?t:"pt"}function mT(e){const t=dT(e);return{locale:t,copy:XA[t],...uT[t]}}const _p={pt:["DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"],en:["
115SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"]},Cp=new Set(["FECHADO","ENCERRADO"]);function hT(e=""){const t=String(e||"").trim();if(!t)return null;const n=t.match(/(\d{2})\/(\d{2})\/(\d{4})/);if(n){const[,a,o,l]=n;return new Date(Number(l),Number(o)-1,Number(a),12,0,0)}const r=t.match(/(\d{4})-(\d{2})-(\d{2})/);if(r){const[,a,o,l]=r;return new Date(Number(a),Number(o)-1,Number(l),12,0,0)}const i=new Date(t);return Number.isNaN(i.getTime())?null:i}function pT(e,t){const n=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return t==="en"?`${r}/${n}`:`${n}/${r}`}function fT(e,t){return(_p[t]||_p.pt)[e.getDay()]||""}function Np({locale:e="pt"}){const{heroData:t,problemSectionData:n,targetAudienceThreeColumnData:r,solutionSectionData:i,videoSectionData:a,modulesData:o,infoBoxData:l,instructorsData:c,faqData:u,applicationFormData:d,footerData:h,copy:m}=mT(e),[p,f]=w.useState(null),[v,x]=w.useState([]),[y,g]=w.useState(!1),b=w.useMemo(()=>v.map((C,U)=>{const N=hT(C.data||C.startDate||C.name);if(!N)return null;const T=pT(N,e),R=fT(N,e),B=String(C.horario||"").trim();return{value:T,label:B?s.jsxs(s.Fragment,{children:[R,s.jsx("br",{}),B]}):R,highlight:U===0}}).filter(Boolean),[e,v]),j=w.useMemo(()=>d.fields.some(C=>C.type==="radio"&&C.name==="turma"&&Array.isArray(C.options)&&C.options.length>0),[d.fields]);w.useEffect(()=>{window.scrollTo(0,0);let C=!0;return(async()=>{const N=await Ko({curso:"Bowtie Analytics",limit:500});C&&(N.success&&Array.isArray(N.turmas)&&N.turmas.length&&x(N.turmas),g(!0))})(),()=>{C=!1}},[j]);const S=w.useMemo(()=>v.filter(C=>!Cp.has(String(C.status||C.tipo||"").trim().toUpperCase())),[v]).length>0,k=y&&S,E=y&&!S&&v.length>0,I=e==="en"?E?"This intake is currently closed. New applications will be opened as soon as a new cohort is available.":"Applications are temporarily unavailable because there are no open seats at the moment.":E?"Esta turma está fechada no momento. Novas inscrições serão abertas assim que uma nova turma estiver disponível.":"As inscrições estão temporariamente indisponíveis porque não há vagas abertas no momento.",$=w.useMemo(()=>d.fields.map(C=>{if(C.type==="radio"&&C.name==="turma"){if(j)return C;const U=v.filter(N=>!Cp.has(String(N.status||N.tipo||"").trim().toUpperCase())).map(N=>({value:N.name,label:N.name}));return{...C,options:U.length?U:C.options}}return C}),[d.fields,j,v]),D={"@context":"https://schema.org","@type":"Course",name:"Certificação Bowtie Analytics",description:m.seoDescription,provider:{"@type":"Organization",name:"Winning by Design",url:"https://winningbydesign.com.br"},courseMode:"online",educationalLevel:"Professional",inLanguage:e==="en"?"en-US":"pt-BR",timeRequired:"PT10H"},W=(C,U)=>String(C||"").replace(/\{(\w+)\}/g,(N,T)=>U[T]!==void 0?String(U[T]):""),V=async C=>{const U=m.loadingMessage,N=m.successMessage;f({type:"loading",message:U});const T=await fr({flow:"bowtie-analytics",formData:C,locale:e}),R=Jo(C.turma),B=W(m.whatsappTemplate,{...C,turma:R}),J=`https://wa.me/551132308228?text=${encodeURIComponent(B)}`;return T.success?(f({type:"success",message:N,onRedirect:()=>window.open(J,"_blank")}),{success:!0}):(f(null),setTimeout(()=>{window.open(J,"_blank")},500),{success:!1})},L=()=>{p!=null&&p.onRedirect&&p.onRedirect(),f(null)};return s.jsxs("div",{className:"bowtie-analytics-page",children:[" ",s.jsx(ye,{title:m.seoTitle,description:m.seoDescription,image:"/images/og/bowtie.jpg",url:m.seoUrl,keywords:m.seoKeywords,schema:D})," ",s.jsx(Se,{buttonText:m.headerButtonText,buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Tenho%20interesse%20no%20curso%20Bowtie%20Analytics"}),s.jsx(Fo,{id:"hero",tagText:t.tagText,title:t.title,description:t.description,primaryButtonText:t.primaryButtonText,primaryButtonHref:t.primaryButtonHref,imageSrc:t.imageSrc,imageAlt:t.imageAlt}),s.jsx(Lt,{id:"problema",title:n.title,description:n.description,columns:n.columns,inverted:!0}),s.jsx(ir,{id:"solucao",title:i.title,description:i.description,buttonText:i.buttonText,buttonHref:i.buttonHref,secondaryButtonText:i.secondaryButtonText,secondaryButtonHref:i.secondaryButtonHref,buttonVariant:i.buttonVariant,imageSrc:i.imageSrc,imageAlt:i.imageAlt,imagePosition:i.imagePosition,inverted:!0}
115),s.jsx(Lt,{id:"para-quem-e",title:r.title,description:r.description,columns:r.columns,bottomButtonText:r.bottomButtonText,bottomButtonHref:r.bottomButtonHref,bottomButtonVariant:r.bottomButtonVariant}),s.jsx(fo,{id:"depoimentos",inverted:!0,title:a.title,description:a.description,videos:a.videos,columns:a.columns,asCarousel:a.asCarousel,primaryButtonText:a.primaryButtonText,primaryButtonHref:a.primaryButtonHref,primaryButtonVariant:a.primaryButtonVariant}),s.jsx(qd,{id:"programa",title:m.moduleTitle,description:m.moduleDescription,modules:o,inverted:!0,disclaimer:s.jsx(P,{style:{marginTop:"40px",fontSize:"0.875rem",color:"#666",fontStyle:"italic"},children:m.moduleDisclaimer})}),s.jsx(hi,{id:"informacoes",title:l.title,subtitle:l.subtitle,boxes:l.boxes,scheduleTitle:l.scheduleTitle,scheduleIcon:l.scheduleIcon,scheduleItems:b,footerNote:l.footerNote,primaryButtonText:l.primaryButtonText,primaryButtonHref:l.primaryButtonHref,backgroundColor:"var(--color-white)"}),s.jsx(Xv,{id:"instrutoras",inverted:!0,title:c.title,description:c.description,columns:c.columns,imageAspectRatio:c.imageAspectRatio,items:c.items,itemMaxWidth:"400px"}),s.jsx(Xd,{id:"faq",title:u.title,subtitle:u.subtitle,items:u.items}),s.jsx(Wa,{id:"inscricao",courseSlug:"bowtie-analytics",title:d.title,description:d.description,submitButtonText:d.submitButtonText,fields:$,loading:!y,isFormEnabled:k,disabledMessage:I,onSubmit:V}),p&&s.jsx(Va,{type:p.type,message:p.message,onClose:L}),s.jsx(je,{logoSrc:h.logoSrc,logoAlt:h.logoAlt,logoLink:h.logoLink,copyrightText:h.copyrightText,links:h.links,socialLinks:h.socialLinks})]})}const gT=Array.from({length:33},(e,t)=>({id:t+1,src:`/images/logo_empresa-${t+1}.jpg`,alt:`Cliente ${t+1}`})),By={tagText:"",title:s.jsxs(s.Fragment,{children:["Dominando os números por trás do Revenue Architecture com o",s.jsx("br",{}),s.jsx("strong",{children:"MATH 4 REVENUE ARCHITECTURE"})]}),description:"Se você lidera receitas, mas ainda hesita ao interpretar tendências, distribuições ou variações de comportamento comercial, este curso é para você.",primaryButtonText:"REALIZAR MINHA INSCRIÇÃO",primaryButtonHref:"#inscricao",backgroundVideoSrc:"/videos/hero-video-math.mp4"},$y={title:"INFORMAÇÕES DO CURSO",subtitle:"próximas turmas",boxes:[{value:"3h",label:"CARGA HORÁRIA"},{value:"6",label:"MÓDULOS"},{value:"100%",label:"ONLINE"},{value:"Zoom",label:"AO VIVO"}],paragraphs:["Formato: 100% Online (Zoom Ao Vivo)","Este curso foi desenvolvido para executivos que precisam se tornar fluentes na matemática da receita."],logoCarousel:{logos:gT,animationDuration:60,height:"80px"},scheduleTitle:"DATAS DAS AULAS",scheduleIcon:"📅",footerNote:"Material incluso: slides + exemplos + exercícios visuais",primaryButtonText:"INSCREVA-SE AGORA",primaryButtonHref:"#inscricao",secondaryButtonText:"BAIXAR PROGRAMA",secondaryButtonHref:"#programa"},Uy={title:"O Problema",subtitle:"Você já esteve em uma dessas situações?",columns:[{title:"Números Conflitantes",description:"As áreas de Marketing, Vendas e Customer Success apresentam três números diferentes para a mesma pergunta sobre receita."},{title:"Ruído vs Sinal",description:'Um gráfico parece indicar "crise", mas é somente ruído estatístico.'},{title:"Média Enganosa",description:"A média te diz uma coisa, mas a realidade do pipeline diz outra."},{title:"Reação a Oscilações",description:"O time reage a cada oscilação, sem distinguir tendência real de variação natural."},{title:"Decisões por Feeling",description:'Estratégias criadas com base no "feeling", não em distribuições reais do comportamento comercial.'},{title:"Forecast Impreciso",description:"Forecast vira adivinhação porque ninguém sabe identificar instabilidade no sistema."}],bottomDescription:"O GTM moderno exige fluência matemática. Sem isso, decisões são tomadas no escuro, sobrecarregando times e gerando interpretações equivocadas."},qy={title:"Para Quem É",subtitle:"Executivos que precisam se tornar fluentes na matemática da receita",columns:[{title:"C-levels",description:"Executivos que precisam entender profundamente os números da operação."},{title:"Diretores de GTM",description:"Líderes responsáveis pela estratég
115ia de go-to-market."},{title:"Heads de Vendas, Marketing e CS",description:"Gestores de áreas que impactam diretamente a receita."},{title:"Líderes de Operações e RevOps",description:"Profissionais que orquestram dados entre times."},{title:"Gerentes de Crescimento",description:"Responsáveis por performance e escalabilidade."},{title:"Profissionais de Diagnóstico",description:"Quem precisa diagnosticar sistemas comerciais, não apenas olhar resultados."}],bottomButtonText:"REALIZAR MINHA INSCRIÇÃO",bottomButtonHref:"#inscricao",bottomButtonVariant:"primary",additionalContent:{title:"Este curso é ideal se você:",items:["Toma decisões estratégicas baseadas em dados","Precisa interpretar tendências e distribuições","Quer distinguir padrões de ruído estatístico","Busca fundamentos para análise de sistemas de receita"],footer:"Curso para quem toma decisão. Não é técnico demais, é estratégico, visual e orientado a interpretação."}},Fy={title:"A Solução",description:s.jsxs(s.Fragment,{children:["O Math 4 Revenue Architecture é um programa de nivelamento essencial para executivos de receita.",s.jsx("br",{}),s.jsx("br",{}),"O programa atende quem precisa:",s.jsx("br",{}),"· Interpretar dados com precisão",s.jsx("br",{}),"· Distinguir padrões de ruído",s.jsx("br",{}),"· Reconhecer instabilidades no sistema",s.jsx("br",{}),"· Identificar gargalos com base em distribuições reais",s.jsx("br",{}),"· Usar tendências, proporções e variações para decisões de alto impacto",s.jsx("br",{}),s.jsx("br",{}),"É um curso de fundamentos matemáticos que sustentam todos os modelos de receita modernos. O foco está no PORQUÊ por trás dos gráficos e fenômenos, não somente no COMO ler."]}),buttonText:"Realizar Minha Inscrição",buttonHref:"#inscricao",secondaryButtonText:"Veja o programa completo",secondaryButtonHref:"#programa",buttonVariant:"primary",imageSrc:"/images/bowtie-analytics.webp",imageAlt:"Math 4 Revenue Architecture Framework",imagePosition:"left"},ju={title:"Depoimentos",highlightedTitle:"",description:"Profissionais que já transformaram suas operações com os cursos Winning by Design. Seja o próximo a dominar a matemática da receita.",videos:[{href:"/videos/depoimento-juliana-rosso.mp4",thumbnail:"/images/depoimento-juliana-rosso.png",alt:"Depoimento Juliana Rosso",tag:"DEPOIMENTO",title:"Juliana Rosso - Diretora Mulheres de Growth"},{href:"/videos/depoimento-carina-lima.mp4",thumbnail:"/images/depoimento-carina-lima.png",alt:"Depoimento Carina Lima",tag:"DEPOIMENTO",title:"Carina Lima - CMO na NeoAssist"},{href:"/videos/depoimento-leandro-coletti.mp4",thumbnail:"/images/depoimento-leandro-coletti.png",alt:"Depoimento Leandro Coletti",tag:"DEPOIMENTO",title:"Leandro Coletti - Sales Leader at Digibee"}],columns:3,asCarousel:!1,animationDuration:60,primaryButtonText:"Realizar Minha Inscrição",primaryButtonHref:"#inscricao",primaryButtonVariant:"primary"},zy={title:"FAQ",subtitle:"perguntas frequentes",items:[{question:"Preciso saber matemática avançada para participar?",answer:"Não. O curso foi projetado para executivos. Você aprenderá apenas os fundamentos essenciais para interpretar sistemas de receita, tendências e modelos matemáticos fundamentais para interpretar uma máquina de receitas."},{question:"As aulas têm prática?",answer:"Sim. Todos os conceitos são ensinados com exemplos visuais e dados fictícios para facilitar a interpretação na prática."},{question:"Terei acesso à gravação?",answer:"Sim, você terá acesso às gravações por 12 meses após o curso."},{question:"Este curso substitui o treinamento completo de Revenue Architecture?",answer:"Não. Ele é o nivelamento matemático necessário para que líderes entendam profundamente Bowtie, Waterfall e análises de GTM."},{question:"Esse curso é adequado para analistas?",answer:"Ele é útil, mas foi criado para quem toma decisão estratégica: C-levels, diretores, heads e líderes de equipes."},{question:"Haverá emissão de certificado?",answer:"Sim, você receberá um certificado de conclusão ao final do curso."}]},Wy={title:"Instrutora",description:s.jsxs(s.Fragment,{children:["Especialista em Matemática Aplicada | Consultora de Transformação de Negócios",s.jsx("br",{}),s.jsx("br",{}),"Atua em transformações de negócios e gestão de projetos acumulando mais de 25 anos de experiência em gestão de áreas de excelência operacional, sistemas, riscos, produtos de investimento e marketing em empresas nacionais e internacionais de grande porte, especialmente do segmento financeiro.",s.jsx("br",{}),s.jsx("br",{}),"Nos últimos quinze anos desenvolveu trabalhos de consultoria voltados à revisão de modelos organizacionais, vendas, experiência do cliente e melhoria de processos utilizando os conceitos Lean e Gestão por Processos (BPM).",s.jsx("br",{}),s.jsx("br",{}),"Certificada como BPM Professional pela Boston University e como CBPP pela ABPMP, tem formação em Matemática Aplicada e Computacional pela Unicamp e MBA em Mercado de Derivativos pela USP/BM&F."]}),buttonText:"Conecte-se no LinkedIn",buttonHref:"https://www.linkedin.com/in/angelicaregazzini/",buttonVariant:"secondary",imageSrc:"/images/angelica-regazzini.png",imageAlt:"Angélica Regazzini",imagePosition:"left",imageMaxWidth:"300px"},ku={title:"FORMULÁRIO DE INSCRIÇÃO",description:"Preencha o formulário abaixo para se candidatar à próxima turma do Math 4 Revenue Architecture no Brasil.",submitButtonText:"ENVIAR INSCRIÇÃO",fields:[{type:"text",name:"nome",label:"Nome Completo",placeholder:"Seu nome",required:!0},{type:"email",name:"email",label:"Email",placeholder:"[email protected]",required:!0},{type:"tel",name:"whatsapp",label:"WhatsApp",placeholder:"(11) 99999-9999",required:!0},{type:"linkedin",name:"linkedin",label:"LinkedIn",placeholder:"https://linkedin.com/in/seu-perfil",required:!0},{type:"select",name:"cargo",label:"Cargo",placeholder:"Selecione uma opção",options:[{value:"VP",label:"VP"},{value:"C-Level",label:"C-Level"},{value:"Diretor(a)",label:"Diretor(a)"},{value:"Founder",label:"Founder"},{value:"Co-Founder",label:"Co-Founder"},{value:"Venture Capital",label:"Venture Capital"},{value:"Lider de Receita",label:"Lider de Receita"},{value:"Head de Marketing",label:"Head de Marketing"},{value:"Head de Vendas",label:"Head de Vendas"},{value:"Head de CS",label:"Head de CS"},{value:"Outros",label:"Outros"}],required:!0},{type:"select",name:"origem",label:"Como nos conheceu?",placeholder:"Selecione uma opção",required:!0,options:[{value:"Indicação",label:"Indicação"},{value:"Google",label:"Google"},{value:"Instagram",label:"Instagram"},{value:"LinkedIn",label:"LinkedIn"},{value:"YouTube",label:"YouTube"},{value:"Cursos",label:"Cursos"},{value:"Outros",label:"Outros"}]},{type:"radio",name:"turma",label:"Turma de interesse",required:!0,options:[]}
115,{type:"textarea",name:"motivo",label:"Por que você quer fazer este curso?",placeholder:"Conte-nos sobre seus principais desafios com análise de receita...",rows:5,required:!0},{type:"checkbox",name:"termos",label:"Li e aceito os Termos de Adesão e Confidencialidade e o uso dos meus dados conforme a LGPD.",required:!0}]},vT=[{num:1,title:"Fundamentos de Dados, Variáveis e Dispersão",desc:"Estabelecer as bases matemáticas para analisar comportamento comercial: tipos de dados (contínuos × categóricos), média × mediana × moda, variância e desvio padrão, outliers e seu impacto, séries temporais × distribuições."},{num:2,title:"Visualização Essencial",desc:"Interpretação de gráficos usados em modelos de receita: gráfico de linha (tendência), gráfico de barra (comparação), coluna empilhada (composição), tendência × ruído, estabilidade × instabilidade, detecção de mudanças no comportamento do sistema."},{num:3,title:"Histogramas e Modelagem de GTM",desc:"Uso de histogramas na modelagem: o que é um histograma, diferença entre histograma e gráfico de barras, faixas (bins) - como escolher e interpretar, frequência × densidade, formatos de distribuição (normal, assimétrica, longa cauda, bimodal)."},{num:4,title:"Tendências, Correlações e Causalidade",desc:"Identificar padrões que influenciam o GTM: linha de tendência linear, regressão simples (intuitiva), correlação positiva, negativa, nula, causalidade × correlação, leading × lagging indicators."},{num:5,title:"Proporções, Razões e Taxas",desc:"Base matemática para entender taxas avançadas: proporções, taxas × volumes, variação absoluta vs. relativa."},{num:6,title:"Séries Temporais e Projeções Simples",desc:"Como criar previsões e identificar sazonalidades: tendência, sazonalidade, ruído, média móvel, suavização."}],Vy={logoSrc:"/images/wbdlogo.png",logoAlt:"WbD Logo",logoLink:"/",copyrightText:"© Copyright 2026 Winning by Design Brasil – Todos os direitos reservados.",links:[{text:"Curso Revenue Architecture",href:"/curso-revenue-architecture"},{text:"Bowtie Analytics",href:"/curso-bowtie-analytics"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}],socialLinks:{linkedin:"https://www.linkedin.com/in/renatacenturion/",instagram:"https://www.instagram.com/renata_centurion/",youtube:"https://www.youtube.com/@wbdbrasil"}},yT={pt:{seoTitle:"Math 4 Revenue Architecture | Winning by Design",seoDescription:"Domine os numeros por tras do Revenue Architecture. Aprenda a interpretar tendencias, distribuicoes e variacoes de comportamento comercial com estatistica aplicada.",seoUrl:"/curso-math4-revenue-architecture",seoKeywords:"math revenue architecture, estatistica aplicada, analise quantitativa, metricas, forecasting, previsao de receita",headerButtonText:"FALE CONOSCO",loadingMessage:"Realizando inscricao...",successMessage:"Inscricao realizada com sucesso! Redirecionando...",emailSubjectPrefix:"Nova Inscricao - Certificacao Math 4 Revenue Architecture -",emailAdditionalNote:"Nova candidatura recebida para a Certificacao Math 4 Revenue Architecture.",whatsappTemplate:`Ola! Sou {nome}, {cargo}. Gostaria de confirmar minha pre-inscricao na Certificacao Math 4 Revenue Architecture.
116Meu e-mail e {email}, meu LinkedIn e {linkedin} e meu WhatsApp e {whatsapp}. Conheci voces atraves de {origem}. Tenho interesse na {turma}. Quero fazer o curso porque {motivo}.`,moduleTitle:"O PROGRAMA DO CURSO",moduleDescription:"6 modulos de fundamentos matematicos desenvolvidos especificamente para lideres de receita.",moduleDisclaimer:"Material incluso: slides + exemplos + exercicios visuais. Certificado de conclusao ao final do curso."},en:{seoTitle:"Math 4 Revenue Architecture | Winning by Design",seoDescription:"Master the numbers behind Revenue Architecture. Learn to interpret trends, distributions, and commercial behavior variations through applied statistics.",seoUrl:"/en/curso-math4-revenue-architecture",seoKeywords:"math revenue architecture, applied statistics, quantitative analysis, metrics, forecasting, revenue prediction",headerButtonText:"CONTACT US",loadingMessage:"Submitting registration...",successMessage:"Registration submitted successfully! Redirecting...",emailSubjectPrefix:"New Registration - Math 4 Revenue Architecture Certification -",emailAdditionalNote:"New application received for Math 4 Revenue Architecture Certification.",whatsappTemplate:`Hi! I am {nome}, {cargo}. I would like to confirm my pre-registration for the Math 4 Revenue Architecture Certification.
117My email is {email}, my LinkedIn is {linkedin}, and my WhatsApp is {whatsapp}. I heard about you through {origem}. I am interested in {turma}. I want to take the course because {motivo}.`,moduleTitle:"COURSE PROGRAM",moduleDescription:"Six foundational modules in applied mathematics designed for revenue leaders.",moduleDisclaimer:"Included material: slides + examples + visual exercises. Certificate awarded upon completion."}},bT={...By,title:"Master the numbers behind Revenue Architecture with MATH 4 REVENUE ARCHITECTURE",description:"If you lead revenue but still hesitate when interpreting trends, distributions, or changes in commercial behavior, this course is for you.",primaryButtonText:"SUBMIT MY APPLICATION"}
117,wT={...Uy,title:"The Problem",subtitle:"Have you ever been in one of these situations?",columns:[{title:"Conflicting Numbers",description:"Marketing, Sales, and Customer Success present different numbers for the same revenue question."},{title:"Noise vs Signal",description:"A chart seems to show a crisis, but it is only statistical noise."},{title:"Misleading Average",description:"The average says one thing, but pipeline reality says another."},{title:"Overreacting to Fluctuations",description:"Teams react to every oscillation without separating trend from natural variation."},{title:"Decisions by Feeling",description:"Strategies built on feeling, not on real distributions of commercial behavior."},{title:"Inaccurate Forecast",description:"Forecasting turns into guesswork when no one can detect system instability."}],bottomDescription:"Modern GTM requires mathematical fluency. Without it, decisions are made in the dark."},xT={...qy,title:"Who Is This For",subtitle:"Executives who need fluency in revenue mathematics",columns:[{title:"C-level Leaders",description:"Executives who need deep understanding of operational numbers."},{title:"GTM Directors",description:"Leaders responsible for go-to-market strategy and execution."},{title:"Sales, Marketing & CS Heads",description:"Leaders managing teams that directly impact revenue."},{title:"Ops & RevOps Leaders",description:"Professionals orchestrating data and operational rhythms across teams."},{title:"Growth Managers",description:"Leaders focused on performance and scalable growth."},{title:"Diagnostic Professionals",description:"People who need to diagnose commercial systems, not just read outcomes."}],bottomButtonText:"SUBMIT MY APPLICATION",additionalContent:{title:"This course is ideal if you:",items:["Make strategic decisions based on data","Need to interpret trends and distributions","Want to distinguish patterns from statistical noise","Seek stronger foundations for revenue-system analysis"],footer:"A course for decision-makers. Not overly technical, but strategic, visual, and interpretation-driven."}},ST={...Fy,title:"The Solution",description:["Math 4 Revenue Architecture is an essential leveling program for revenue executives.","The program is built for leaders who need to:","· Interpret data accurately","· Distinguish real patterns from noise","· Recognize system instability","· Identify bottlenecks based on real distributions","· Use trends, proportions, and variation for high-impact decisions","It is a foundational mathematics course that supports modern revenue models. The focus is on understanding WHY charts and phenomena behave the way they do, not only HOW to read them."],buttonText:"Submit My Application",secondaryButtonText:"See full program"},jT={...ju,title:"Testimonials",description:["Math 4 Revenue Architecture is an essential leveling program for revenue executives.","The program is built for leaders who need to:","· Interpret data accurately","· Distinguish real patterns from noise","· Recognize system instability","· Identify bottlenecks based on real distributions","· Use trends, proportions, and variation for high-impact decisions","It is a foundational mathematics course that supports modern revenue models. The focus is on understanding WHY charts and phenomena behave the way they do, not only HOW to read them."],videos:ju.videos.map(e=>({...e,tag:"TESTIMONIAL"})),columns:3,asCarousel:!1,animationDuration:60,primaryButtonText:"Submit My Application",primaryButtonHref:"#inscricao",primaryButtonVariant:"primary"},kT=[{num:1,title:"Data Foundations, Variables and Dispersion",desc:"Build the mathematical base to analyze commercial behavior: data types (continuous vs. categorical), mean vs. median vs. mode, variance and standard deviation, outliers and their impact, time series vs. distributions."},{num:2,title:"Essential Visualization",desc:"Interpret charts used in revenue models: line charts (trend), bar charts (comparison), stacked columns (composition), trend vs. noise, stability vs. instability, and detection of system behavior changes."},{num:3,title:"Histograms and GTM Modeling",desc:"Use histograms in modeling: what a histogram is, histogram vs. bar chart, bins and how to choose and interpret them, frequency vs. density, distribution shapes (normal, skewed, long tail, bimodal)."},{num:4,title:"Trends, Correlations and Causality",desc:"Identify patterns that influence GTM: linear trend line, simple regression (intuitive), positive, negative, and neutral correlation, causality vs. correlation, leading vs. lagging indicators."},{num:5,title:"Ratios, Proportions and Rates",desc:"Mathematical base for understanding advanced rates: proportions, rates vs. volumes, absolute vs. relative variation."},{num:6,title:"Time Series and Simple Projections",desc:"How to build forecasts and identify seasonality: trend, seasonality, noise, moving average, smoothing."}],ET={...$y,title:"COURSE INFORMATION",subtitle:"upcoming cohorts",boxes:[{value:"3h",label:"WORKLOAD"},{value:"6",label:"MODULES"},{value:"100%",label:"ONLINE"},{value:"Zoom",label:"LIVE"}],paragraphs:["Format: 100% online (live Zoom)","Designed for executives who need to become fluent in revenue mathematics."],scheduleTitle:"CLASS DATES",footerNote:"Included material: slides + examples + visual exercises",primaryButtonText:"REGISTER NOW",secondaryButtonText:"DOWNLOAD PROGRAM"},AT={...Wy,title:"Instructor",description:"Applied Mathematics Specialist | Business Transformation Consultant with extensive experience in operations, systems, risk, and GTM process optimization.",buttonText:"Connect on LinkedIn"},TT={...zy,title:"FAQ",subtitle:"frequently asked questions",items:[{question:"Do I need advanced math knowledge to join?",answer:"No. The course is designed for executives and focuses on practical foundations needed for strategic interpretation."},{question:"Are classes practical?",answer:"Yes. Every concept is taught with visual examples and practical datasets."},{question:"Will I have access to recordings?",answer:"Yes, recordings are available for 12 months after the course."},{question:"Does this replace the full Revenue Architecture training?",answer:"No. It provides the mathematical foundation required to deeply understand Bowtie and GTM analysis."},{question:"Is this suitable for analysts?",answer:"Yes, but it was designed primarily for strategic decision-makers and team leaders."},{question:"Will a certificate be issued?",answer:"Yes, you receive a completion certificate at the end of the course."}]},_T={...ku,title:"APPLICATION FORM",description:"Fill in the form below to apply for the next Math 4 Revenue Architecture cohort in Brazil.",submitButtonText:"SUBMIT APPLICATION",fields:ku.fields.map(e=>e.name==="nome"?{...e,label:"Full name",placeholder:"Your name"}:e.name==="email"?{...e,label:"Email"}:e.name==="whatsapp"?{...e,label:"WhatsApp"}:e.name==="linkedin"?{...e,label:"LinkedIn",placeholder:"https://linkedin.com/in/your-profile"}:e.name==="cargo"?{...e,label:"Role",placeholder:"Select an option"}:e.name==="origem"?{...e,label:"How did you hear about us?",placeholder:"Select an option"}:e.name==="turma"?{...e,label:"Preferred cohort"}:e.name==="motivo"?{...e,label:"Why do you want to take this course?",placeholder:"Tell us about your main revenue analysis challenges..."}:e.name==="termos"?{...e,label:"I have read and accept the Terms of Adhesion and Confidentiality and authorize data usage according to LGPD."}:e)},CT={...Vy,links:[{text:"Revenue Architecture Course",href:"/curso-revenue-architecture"},{text:"Bowtie Analytics",href:"/curso-bowtie-analytics"},{text:"Terms of Adhesion",href:"/termo-adesao"},{text:"Confidentiality Terms",href:"/termo-de-confidencialidade"},{text:"Validate Certificate",href:"https://certificados.winningbydesign.com.br/certificados"}]},NT={pt:{heroData:By,problemSectionData:Uy,targetAudienceThreeColumnData:qy,solutionSectionData:Fy,videoSectionData:ju,modulesData:vT,infoBoxData:$y,instructorsData:Wy,faqData:zy,applicationFormData:ku,footerData:Vy},en:{heroData:bT,problemSectionData:wT,targetAudienceThreeColumnData:xT,solutionSectionData:ST,videoSectionData:jT,modulesData:kT,infoBoxData:ET,instructorsData:AT,faqData:TT,applicationFormData:_T,footerData:CT}};function RT(e){const t=e==="en"?"en":"pt";
117return{locale:t,copy:yT[t],...NT[t]}}const Rp={pt:["DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"],en:["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"]},Op=new Set(["FECHADO","ENCERRADO"]);function OT(e=""){const t=String(e||"").trim();if(!t)return null;const n=t.match(/(\d{2})\/(\d{2})\/(\d{4})/);if(n){const[,a,o,l]=n;return new Date(Number(l),Number(o)-1,Number(a),12,0,0)}const r=t.match(/(\d{4})-(\d{2})-(\d{2})/);if(r){const[,a,o,l]=r;return new Date(Number(a),Number(o)-1,Number(l),12,0,0)}const i=new Date(t);return Number.isNaN(i.getTime())?null:i}function IT(e,t){const n=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return t==="en"?`${r}/${n}`:`${n}/${r}`}function LT(e,t){return(Rp[t]||Rp.pt)[e.getDay()]||""}function Ip({locale:e="pt"}){const{heroData:t,problemSectionData:n,targetAudienceThreeColumnData:r,solutionSectionData:i,videoSectionData:a,modulesData:o,infoBoxData:l,instructorsData:c,faqData:u,applicationFormData:d,footerData:h,copy:m}=RT(e),[p,f]=w.useState(null),[v,x]=w.useState([]),[y,g]=w.useState(!1),b=w.useMemo(()=>{const N=new Map;return v.map((T,R)=>{const B=OT(T.data||T.startDate||T.name);if(!B)return null;const J=IT(B,e),te=LT(B,e),ae=String(T.horario||"").trim();return{dedupeKey:`${J}-${te}-${ae}`,value:J,label:s.jsxs(s.Fragment,{children:[te&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),te]}),ae&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),ae]})]}),highlight:R===0}}).filter(Boolean).forEach(T=>{N.has(T.dedupeKey)||N.set(T.dedupeKey,T)}),Array.from(N.values()).map(({dedupeKey:T,...R})=>R)},[e,v]),j=w.useMemo(()=>d.fields.some(N=>N.type==="radio"&&N.name==="turma"&&Array.isArray(N.options)&&N.options.length>0),[d.fields]);w.useEffect(()=>{window.scrollTo(0,0);let N=!0;return(async()=>{const R=await Ko({curso:"Math 4 Revenue Architecture",limit:500});N&&(R.success&&Array.isArray(R.turmas)&&R.turmas.length&&x(R.turmas),g(!0))})(),()=>{N=!1}},[j]);const A=w.useCallback((N="")=>{const T=String(N||"").trim();if(!T)return null;const R=T.match(/(\d{2})\/(\d{2})\/(\d{4})/);if(R){const[,te,ae,M]=R;return new Date(`${M}-${ae}-${te}T23:59:59`)}const B=T.match(/(\d{4})-(\d{2})-(\d{2})/);if(B){const[,te,ae,M]=B;return new Date(`${te}-${ae}-${M}T23:59:59`)}const J=new Date(T);return Number.isNaN(J.getTime())?null:J},[]),S=w.useMemo(()=>{const N=new Date;return N.setHours(0,0,0,0),v.filter(T=>{const R=A(T.data||T.startDate||T.name);return R?R.getTime()>=N.getTime():!0})},[A,v]),E=w.useMemo(()=>S.filter(N=>!Op.has(String(N.status||N.tipo||"").trim().toUpperCase())),[S]).length>0,I=y&&E,$=y&&!E&&v.length>0,D=e==="en"?$?"This intake is currently closed. New applications will be opened as soon as a new cohort is available.":"Applications are temporarily unavailable because there are no open seats at the moment.":$?"Esta turma está fechada no momento. Novas inscrições serão abertas assim que uma nova turma estiver disponível.":"As inscrições estão temporariamente indisponíveis porque não há vagas abertas no momento.",W=w.useMemo(()=>d.fields.map(N=>{if(N.type==="radio"&&N.name==="turma"){if(j)return N;const T=S.filter(R=>!Op.has(String(R.status||R.tipo||"").trim().toUpperCase())).map(R=>({value:R.name,label:R.name}));return{...N,options:T.length?T:N.options}}return N}),[d.fields,j,S]),V={"@context":"https://schema.org","@type":"Course",name:"Math 4 Revenue Architecture",description:m.seoDescription,provider:{"@type":"Organization",name:"Winning by Design",url:"https://winningbydesign.com.br"},courseMode:"online",educationalLevel:"Professional",inLanguage:e==="en"?"en-US":"pt-BR"},L=(N,T)=>String(N||"").replace(/\{(\w+)\}/g,(R,B)=>T[B]!==void 0?String(T[B]):""),C=async N=>{const T=m.loadingMessage,R=m.successMessage;f({type:"loading",message:T});const B=await fr({flow:"math4-revenue-architecture",formData:N,locale:e}),J=Jo(N.turma),te=L(m.whatsappTemplate,{...N,turma:J}),ae=`https://wa.me/551132308228?text=${encodeURIComponent(te)}`;return B.success?(f({type:"success",message:R,onRedirect:()=>window.open(ae,"_blank")}),{success:!0}):(f(null),setTimeout(()=>{window.open(ae,"_blank")},500),{success:!1})},U=()=>{p!=null&&p.onRedirect&&p.onRedirect(),f(null)};return s.jsxs("div",{className:"math4-revenue-architecture-page",children:[s.jsx(ye,{title:m.seoTitle,de
117scription:m.seoDescription,image:"/images/og/math4.jpg",url:m.seoUrl,keywords:m.seoKeywords,schema:V}),s.jsx(Se,{buttonText:m.headerButtonText,buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Tenho%20interesse%20no%20curso%20Math%204%20Revenue%20Architecture"}),s.jsx(Fo,{id:"hero",tagText:t.tagText,title:t.title,description:t.description,primaryButtonText:t.primaryButtonText,primaryButtonHref:t.primaryButtonHref,backgroundVideoSrc:t.backgroundVideoSrc,overlayOpacity:.7}),s.jsx(Lt,{id:"problema",title:n.title,subtitle:n.subtitle,columns:n.columns,bottomDescription:n.bottomDescription,inverted:!0}),s.jsx(ir,{id:"solucao",title:i.title,description:i.description,buttonText:i.buttonText,buttonHref:i.buttonHref,secondaryButtonText:i.secondaryButtonText,secondaryButtonHref:i.secondaryButtonHref,buttonVariant:i.buttonVariant,imageSrc:i.imageSrc,imageAlt:i.imageAlt,imagePosition:i.imagePosition}),s.jsx(Lt,{id:"para-quem-e",inverted:!0,title:r.title,subtitle:r.subtitle,columns:r.columns,additionalContent:r.additionalContent,bottomButtonText:r.bottomButtonText,bottomButtonHref:r.bottomButtonHref,bottomButtonVariant:r.bottomButtonVariant}),s.jsx(fo,{id:"depoimentos",title:a.title,description:a.description,videos:a.videos,columns:a.columns,asCarousel:a.asCarousel,primaryButtonText:a.primaryButtonText,primaryButtonHref:a.primaryButtonHref,primaryButtonVariant:a.primaryButtonVariant}),s.jsx(hi,{id:"informacoes",title:l.title,subtitle:l.subtitle,boxes:l.boxes,scheduleTitle:l.scheduleTitle,scheduleIcon:l.scheduleIcon,scheduleItems:b,footerNote:l.footerNote,primaryButtonText:l.primaryButtonText,primaryButtonHref:l.primaryButtonHref,backgroundColor:"var(--color-white)"}),s.jsx(qd,{id:"programa",title:m.moduleTitle,description:m.moduleDescription,modules:o,inverted:!0,disclaimer:s.jsx(P,{style:{marginTop:"40px",fontSize:"0.875rem",color:"#666",fontStyle:"italic"},children:m.moduleDisclaimer})}),s.jsx(ir,{id:"instrutora",inverted:!0,title:c.title,description:c.description,buttonText:c.buttonText,buttonHref:c.buttonHref,buttonVariant:c.buttonVariant,imageSrc:c.imageSrc,imageAlt:c.imageAlt,imagePosition:c.imagePosition,imageMaxWidth:c.imageMaxWidth}),s.jsx(Xd,{id:"faq",title:u.title,subtitle:u.subtitle,items:u.items,inverted:!0}),s.jsx(Wa,{id:"inscricao",inverted:!0,courseSlug:"math4-revenue-architecture",title:d.title,description:d.description,submitButtonText:d.submitButtonText,fields:W,backgroundColor:"var(--color-white)",loading:!y,isFormEnabled:I,disabledMessage:D,onSubmit:C},S.map(N=>N.id).join("-")||"math4-classes"),p&&s.jsx(Va,{type:p.type,message:p.message,onClose:U}),s.jsx(je,{logoSrc:h.logoSrc,logoAlt:h.logoAlt,logoLink:h.logoLink,copyrightText:h.copyrightText,links:h.links,socialLinks:h.socialLinks})]})}const DT=Array.from({length:33},(e,t)=>({id:t+1,src:`/images/logo_empresa-${t+1}.jpg`,alt:`Cliente ${t+1}`})),Hy={tagText:"MENTORIA EM GRUPO",title:s.jsxs(s.Fragment,{children:["Aplique Revenue Architecture na prática com a ",s.jsx("strong",{children:"MENTORIA RA"})]}),description:"Uma mentoria em grupo, ao vivo e online, para líderes que precisam transformar estratégia de receita em execução consistente.",primaryButtonText:"QUERO PARTICIPAR",primaryButtonHref:"#inscricao",imageSrc:"/images/ampulheta-1.webp",imageAlt:"Mentoria Revenue Architecture"},Gy={title:"O Desafio",description:"Muitas empresas já conhecem os conceitos de Revenue Architecture, mas travam na execução por falta de método, priorização e alinhamento entre as áreas.",columns:[{title:"Falta de Priorização",description:"O time tenta resolver tudo ao mesmo tempo e perde foco nas alavancas que realmente movem receita."},{title:"Operação Desconectada",description:"Marketing, Vendas e CS atuam com objetivos diferentes e sem rituais de governança comuns."},{title:"Execução sem Ritmo",description:"Mesmo com boas ideias, faltam cadência, acompanhamento e critérios claros para medir evolução."}]},Ky={title:"Pré-requisitos",description:"Para aproveitar ao máximo a Mentoria RA, você deve atender este critério essencial:",columns:[{title:"Certificação no Curso RA",description:"Você deve ter concluído o Curso Revenue Architecture com média mínima de 7.0 na prova."}],note:"Essa exigência garante que todos os participantes têm base conceitual sólida para aplicar os aprendizados na prática."},Jy={title:"Como Funciona a Mentoria RA",description:s.jsxs(s.Fragment,{children:["A Mentoria RA combina framework, facilitação executiva e plano tático para transformar estratég
117ia em execução.",s.jsx("br",{}),s.jsx("br",{}),"- 4 mentorias de 2h cada em formato online.",s.jsx("br",{}),"- Diagnóstico estruturado da sua operação de receita.",s.jsx("br",{}),"- Priorização de iniciativas por impacto e viabilidade.",s.jsx("br",{}),"- Plano de ação com responsáveis, marcos e indicadores.",s.jsx("br",{}),"- Acompanhamento para manter consistência na implementação."]}),buttonText:"FALE COM NOSSO TIME",buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Tenho%20interesse%20na%20Mentoria%20RA",buttonVariant:"primary",imageSrc:"/images/bowtie-detailed.png",imageAlt:"Framework Revenue Architecture",imagePosition:"left"},Yy={title:"Protocolo de Comunicação",description:"Cada sessão segue um protocolo estruturado que garante continuidade, clareza e resultado prático para sua operação.",columns:[{title:"Antes da Sessão",description:"Definição clara do objetivo da mentoria e entrega de pre-work com leituras, exercícios e diagnóstico da sua operação para otimizar as 2 horas de facilitação."},{title:"Durante a Sessão",description:"Discussão prática de casos reais, facilitação executiva e alinhamento de decisões. Você estrutura prioridades, responsáveis, marcos e indicadores aplicáveis ao seu contexto."},{title:"Depois da Sessão",description:"Resumo estruturado em 1 página alinhando principais decisões, insights e ações acordadas com prazos. O Blueprint evolui a cada sessão até formar o plano operacional completo."}]},Qy={title:"O Que Você Vai Receber",description:"Templates e ferramentas prontas para implementar e sustentar sua arquitetura de receitas:",columns:[{title:"Bowtie",description:"Framework de diagnóstico para visualizar a saúde de cada pilar da sua operação de receita (aquisição, retenção, expansão)."},{title:"Blueprint",description:"Plano operacional estruturado que evolui sessão a sessão, consolidando modelo de receita, dados, operação e GTM."},{title:"Matriz de Processos",description:"Documento que mapeia responsabilidades, rituais de governança e indicadores para manter consistência na implementação."}]},Xy={title:"Para Quem É",description:"Líderes que precisam acelerar a execução da estratégia de receita com clareza de papéis, métricas e arquitetura integrada. Objetivo central: alinhar modelo, dados, operação e GTM em uma arquitetura de receitas integrada.",columns:[{title:"CROs e Heads de Revenue",description:"Buscam alinhar times e criar uma máquina previsível de aquisição, retenção e expansão."},{title:"Founders e C-Levels",description:"Precisam transformar metas de crescimento em um plano operacional executável."},{title:"Lideranças de RevOps",description:"Querem implantar governança, indicadores e rotinas que sustentem performance contínua."}],bottomButtonText:"GARANTIR MINHA VAGA",bottomButtonHref:"#inscricao",bottomButtonVariant:"primary"},Zy={title:"INFORMAÇÕES DA MENTORIA",subtitle:"próxima edição",boxes:[{value:"4",label:"SESSÕES AO VIVO"},{value:"2h",label:"POR SESSÃO"},{value:"10",label:"VAGAS DISPONÍVEIS"},{value:"Online",label:"FORMATO"}],paragraphs:["Formato: mentoria em grupo, online e ao vivo com máximo de 10 participantes.","Pré-requisito: Certificação no Curso Revenue Architecture com média mínima de 7.0.","Foco total em implementação prática de Revenue Architecture no seu contexto de negócio."],logoCarousel:{logos:DT,animationDuration:60,height:"80px"},scheduleItems:[],footerNote:"Acompanhamento estruturado para transformar plano em resultado.",primaryButtonText:"INSCREVA-SE",primaryButtonHref:"#inscricao"},eb={title:"FAQ",subtitle:"perguntas frequentes",items:[{question:"A mentoria é individual ou em grupo?",answer:"A Mentoria RA acontece em grupo, com discussão de casos reais e direcionamentos aplicáveis ao contexto de cada participante."},{question:"Preciso ter feito algum curso da WBD antes?",answer:"Sim. É obrigatório ter concluído Revenue Architecture antes da mentoria, para garantir que todos os participantes tenham a base conceitual necessária para aproveitar os encontros."},{question:"Qual o formato dos encontros?",answer:"Os encontros são online e ao vivo, com foco em aplicação prática, definição de prioridades e acompanhamento de execução."},{question:"Vou sair com um plano de ação?",answer:"Sim. Ao longo da mentoria você estrutura um plano de 90 dias com iniciativas priorizadas, responsáveis e indicadores."},{question:"A mentoria gera certificado?",answer:"Ao concluir a mentoria e participar das sessões, você recebe um comprovante de participação da Winning by Design Brasil."}]},Eu={title:"FORMULÁRIO DE INSCRIÇÃO",description:"Preencha o formulário abaixo para participar da próxima edição da Mentoria RA.",submitButtonText:"ENVIAR INSCRIÇÃO",fields:[{type:"text",name:"nome",label:"Nome Completo",placeholder:"Seu nome",required:!0},{type:"email",name:"email",label:"Email",placeholder:"[email protected]",required:!0},{type:"tel",name:"whatsapp",label:"WhatsApp",placeholder:"(11) 99999-9999",required:!0},{type:"linkedin",name:"linkedin",label:"LinkedIn",placeholder:"https://linkedin.com/in/seu-perfil",required:!0},{type:"select",name:"cargo",label:"Cargo",placeholder:"Selecione uma opção",options:[{value:"VP",label:"VP"},{value:"C-Level",label:"C-Level"},{value:"Diretor(a)",label:"Diretor(a)"},{value:"Founder",label:"Founder"},{value:"Co-Founder",label:"Co-Founder"},{value:"Venture Capital",label:"Venture Capital"},{value:"Líder de Receita",label:"Líder de Receita"},{value:"Head de Marketing",label:"Head de Marketing"},{value:"Head de Vendas",label:"Head de Vendas"},{value:"Head de CS",label:"Head de CS"},{value:"Outros",label:"Outros"}],required:!0},{type:"select",name:"origem",label:"Como nos conheceu?",placeholder:"Selecione uma opção",required:!0,options:[{value:"Indicação",label:"Indicação"},{value:"Google",label:"Google"},{value:"Instagram",label:"Instagram"},{value:"LinkedIn",label:"LinkedIn"},{value:"YouTube",label:"YouTube"},{value:"Cursos",label:"Cursos"},{value:"Outros",label:"Outros"}]},{type:"radio",name:"turma",label:"Edição de interesse",required:!0,options:[]}
117,{type:"textarea",name:"motivo",label:"Qual desafio você quer resolver na sua operação de receita?",placeholder:"Descreva brevemente o contexto da sua empresa...",rows:5,required:!0},{type:"checkbox",name:"termos",label:"Li e aceito os Termos de Adesão e Confidencialidade e o uso dos meus dados conforme a LGPD.",required:!0}]},tb={logoSrc:"/images/wbdlogo.png",logoAlt:"WbD Logo",logoLink:"/",copyrightText:"© Copyright 2026 Winning by Design Brasil - Todos os direitos reservados.",links:[{text:"Curso Revenue Architecture",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Termo de Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Validar Certificado",href:"https://certificados.winningbydesign.com.br/certificados"}],socialLinks:{linkedin:"https://www.linkedin.com/in/renatacenturion/",instagram:"https://www.instagram.com/renata_centurion/",youtube:"https://www.youtube.com/@wbdbrasil"}},PT={pt:{seoTitle:"Mentoria RA | Winning by Design",seoDescription:"Mentoria em grupo para implementar Revenue Architecture com plano operacional, governanca e acompanhamento pratico.",seoUrl:"/mentoria-ra",seoKeywords:"mentoria revenue architecture, mentoria gtm, revenue operations, plano operacional de receita",headerButtonText:"FALE CONOSCO",loadingMessage:"Realizando inscricao...",successMessage:"Inscricao realizada com sucesso! Redirecionando...",emailSubjectPrefix:"Nova Inscricao - Mentoria RA -",emailAdditionalNote:"Nova candidatura recebida para a Mentoria RA em grupo.",whatsappTemplate:`Ola! Sou {nome}, {cargo}. Gostaria de confirmar minha pre-inscricao na Mentoria RA.
118Meu e-mail e {email}, meu LinkedIn e {linkedin} e meu WhatsApp e {whatsapp}. Conheci voces atraves de {origem}. Tenho interesse na edicao {turma}. Quero participar porque {motivo}.`,upcomingClasses:"PROXIMAS TURMAS",classStartLabel:"Inicio:",classLocationLabel:"Local:",classCta:"QUERO ESTA TURMA",classSoon:"EM BREVE",classLoading:"CARREGANDO",classSoonText:"Novas turmas serao publicadas aqui",classSoonDesc:"Assim que as proximas turmas da Mentoria RA estiverem disponiveis no sistema, elas aparecerao automaticamente nesta secao.",classLoadingDesc:"Buscando as proximas turmas diretamente da base de dados.",leaderGateLabel:"Fiz a certificacao em Revenue Architecture"},en:{seoTitle:"RA Mentoring | Winning by Design",seoDescription:"Group mentoring to implement Revenue Architecture with an operational plan, governance, and practical follow-up.",seoUrl:"/en/mentoria-ra",seoKeywords:"revenue architecture mentoring, gtm mentoring, revenue operations, operational revenue plan",headerButtonText:"CONTACT US",loadingMessage:"Submitting registration...",successMessage:"Registration submitted successfully! Redirecting...",emailSubjectPrefix:"New Registration - RA Mentoring -",emailAdditionalNote:"New application received for group RA Mentoring.",whatsappTemplate:`Hi! I am {nome}, {cargo}. I would like to confirm my pre-registration for RA Mentoring.
119My email is {email}, my LinkedIn is {linkedin}, and my WhatsApp is {whatsapp}. I heard about you through {origem}. I am interested in cohort {turma}. I want to join because {motivo}.`,upcomingClasses:"UPCOMING COHORTS",classStartLabel:"Start:",classLocationLabel:"Location:",classCta:"I WANT THIS COHORT",classSoon:"COMING SOON",classLoading:"LOADING",classSoonText:"New cohorts will be published here",classSoonDesc:"As soon as new RA Mentoring cohorts are available in the system, they will appear automatically in this section.",classLoadingDesc:"Loading upcoming cohorts directly from the database.",leaderGateLabel:"I have completed the Revenue Architecture certification"}}
119,MT={...Hy,tagText:"GROUP MENTORING",title:"Apply Revenue Architecture in practice with RA MENTORING",description:"A live online group mentoring for leaders who need to turn revenue strategy into consistent execution.",primaryButtonText:"I WANT TO JOIN"},BT={...Gy,title:"The Challenge",description:"Many companies know Revenue Architecture concepts but struggle in execution due to lack of method, prioritization, and cross-functional alignment.",columns:[{title:"Lack of Prioritization",description:"Teams try to fix everything at once and lose focus on initiatives that truly move revenue."},{title:"Disconnected Operations",description:"Marketing, Sales, and CS operate with different goals and without shared governance rituals."},{title:"Execution Without Cadence",description:"Even with good ideas, execution fails without clear rhythm, follow-up, and criteria to measure progress."}]},$T={...Ky,title:"Prerequisites",description:"To make the most of RA Mentoring, you must meet this essential requirement:",columns:[{title:"RA Course Certification",description:"You must have completed the Revenue Architecture Course with a minimum score of 7.0."}],note:"This requirement ensures all participants have a strong conceptual foundation for practical application."},UT={...Jy,title:"How RA Mentoring Works",description:"RA Mentoring combines framework, executive facilitation, and tactical planning to transform strategy into execution. Four live 2-hour online sessions with structured diagnosis, prioritization, ownership, and measurable milestones.",buttonText:"TALK TO OUR TEAM"},qT={...Yy,title:"Communication Protocol",description:"Each session follows a structured protocol that guarantees continuity, clarity, and practical outcomes.",columns:[{title:"Before the Session",description:"Clear objective definition and pre-work delivery with readings, exercises, and diagnosis to optimize facilitation time."},{title:"During the Session",description:"Hands-on case discussion, executive facilitation, and decision alignment with priorities, owners, milestones, and metrics."},{title:"After the Session",description:"One-page executive summary with key decisions, insights, and actions. The Blueprint evolves each session into a full operational plan."}]},FT={...Qy,title:"What You Will Receive",description:"Templates and tools ready to implement and sustain your revenue architecture:",columns:[{title:"Bowtie",description:"Diagnostic framework to visualize the health of each revenue pillar: acquisition, retention, and expansion."},{title:"Blueprint",description:"Operational plan that evolves session by session, consolidating revenue model, data model, operating model, and GTM."},{title:"Process Matrix",description:"Document mapping ownership, governance rituals, and indicators to keep implementation consistent."}]},zT={...Xy,title:"Who Is This For",description:"Leaders who need to accelerate strategy execution with role clarity, metrics, and integrated architecture.",columns:[{title:"CROs & Revenue Heads",description:"Leaders seeking team alignment and a predictable acquisition, retention, and expansion engine."},{title:"Founders & C-Levels",description:"Executives who need to translate growth goals into an executable operational plan."},{title:"RevOps Leaders",description:"Professionals implementing governance, indicators, and routines for continuous performance."}],bottomButtonText:"SECURE MY SEAT"},WT={...Zy,title:"MENTORING INFORMATION",subtitle:"next edition",boxes:[{value:"4",label:"LIVE SESSIONS"},{value:"2h",label:"PER SESSION"},{value:"10",label:"AVAILABLE SEATS"},{value:"Online",label:"FORMAT"}],paragraphs:["Format: live online group mentoring with up to 10 participants.","Prerequisite: Revenue Architecture certification with minimum score of 7.0.","Practical implementation focus for your specific business context."],footerNote:"Structured follow-up to turn plans into outcomes.",primaryButtonText:"REGISTER"},VT={...eb,title:"FAQ",subtitle:"frequently asked questions",items:[{question:"Is mentoring individual or group-based?",answer:"RA Mentoring is group-based, with real-case discussions and practical direction tailored to each participant context."},{question:"Do I need to complete any WBD course first?",answer:"Yes. Completing the Revenue Architecture course is mandatory to ensure all participants have the required foundation."},{question:"What is the session format?",answer:"Sessions are live and online, focused on practical execution, prioritization, and progress follow-up."},{question:"Will I leave with an action plan?",answer:"Yes. Throughout mentoring, you build a 90-day plan with prioritized 
119initiatives, owners, and indicators."},{question:"Does mentoring provide a certificate?",answer:"After completing sessions, you receive a participation record from Winning by Design Brazil."}]},HT={...Eu,title:"APPLICATION FORM",description:"Fill in the form below to join the next RA Mentoring edition.",submitButtonText:"SUBMIT APPLICATION",fields:Eu.fields.map(e=>e.name==="nome"?{...e,label:"Full name",placeholder:"Your name"}:e.name==="email"?{...e,label:"Email"}:e.name==="whatsapp"?{...e,label:"WhatsApp"}:e.name==="linkedin"?{...e,label:"LinkedIn",placeholder:"https://linkedin.com/in/your-profile"}:e.name==="cargo"?{...e,label:"Role",placeholder:"Select an option"}:e.name==="origem"?{...e,label:"How did you hear about us?",placeholder:"Select an option"}:e.name==="turma"?{...e,label:"Preferred edition"}:e.name==="motivo"?{...e,label:"What challenge do you want to solve in your revenue operation?",placeholder:"Briefly describe your company context..."}:e.name==="termos"?{...e,label:"I have read and accept the Terms of Adhesion and Confidentiality and authorize data usage according to LGPD."}:e)},GT={...tb,links:[{text:"Revenue Architecture Course",href:"/curso-revenue-architecture"},{text:"Math 4 Revenue",href:"/curso-math4-revenue-architecture"},{text:"Terms of Adhesion",href:"/termo-adesao"},{text:"Confidentiality Terms",href:"/termo-de-confidencialidade"},{text:"Validate Certificate",href:"https://certificados.winningbydesign.com.br/certificados"}]},KT={pt:{heroData:Hy,challengeSectionData:Gy,prerequisitesData:Ky,mentorshipSectionData:Jy,communicationProtocolData:Yy,toolsIncludedData:Qy,audienceSectionData:Xy,infoBoxData:Zy,faqData:eb,applicationFormData:Eu,footerData:tb},en:{heroData:MT,challengeSectionData:BT,prerequisitesData:$T,mentorshipSectionData:UT,communicationProtocolData:qT,toolsIncludedData:FT,audienceSectionData:zT,infoBoxData:WT,faqData:VT,applicationFormData:HT,footerData:GT}};function JT(e){const t=e==="en"?"en":"pt";return{locale:t,copy:PT[t],...KT[t]}}const YT=new Set(["FECHADO","ENCERRADO"]);function Lp({locale:e="pt"}){const{heroData:t,challengeSectionData:n,prerequisitesData:r,mentorshipSectionData:i,communicationProtocolData:a,toolsIncludedData:o,audienceSectionData:l,infoBoxData:c,faqData:u,applicationFormData:d,footerData:h,copy:m}=JT(e),[p,f]=w.useState(null),[v,x]=w.useState([]),[y,g]=w.useState(!1),b=w.useMemo(()=>d.fields.some(D=>D.type==="radio"&&D.name==="turma"&&Array.isArray(D.options)&&D.options.length>0),[d.fields]);w.useEffect(()=>{window.scrollTo(0,0);let D=!0;return(async()=>{const V=await Ko({curso:"Mentoria RA",limit:500});D&&(V.success&&Array.isArray(V.turmas)&&V.turmas.length&&x(V.turmas),g(!0))})(),()=>{D=!1}},[b]);const j=w.useCallback((D="")=>{const W=String(D||"").trim();if(!W)return null;const V=W.match(/(\d{2})\/(\d{2})\/(\d{4})/);if(V){const[,R,B,J]=V;return new Date(`${J}-${B}-${R}T23:59:59`)}const C=W.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/(jan(?:eiro)?|fev(?:ereiro)?|mar(?:co)?|abr(?:il)?|mai(?:o)?|jun(?:ho)?|jul(?:ho)?|ago(?:sto)?|set(?:embro)?|out(?:ubro)?|nov(?:embro)?|dez(?:embro)?)\/(\d{4})/);if(C){const[,R,B]=C,J={jan:0,janeiro:0,fev:1,fevereiro:1,mar:2,marco:2,abr:3,abril:3,mai:4,maio:4,jun:5,junho:5,jul:6,julho:6,ago:7,agosto:7,set:8,setembro:8,out:9,outubro:9,nov:10,novembro:10,dez:11,dezembro:11};return new Date(Number(B),J[R]+1,0,23,59,59)}const U=W.match(/(\d{2})\/(\d{4})/);if(U){const[,R,B]=U;return new Date(Number(B),Number(R),0,23,59,59)}const N=W.match(/(\d{4})-(\d{2})-(\d{2})/);if(N){const[,R,B,J]=N;return new Date(`${R}-${B}-${J}T23:59:59`)}const T=new Date(W);return Number.isNaN(T.getTime())?null:T},[]),A=w.useMemo(()=>{const D=new Date;return D.setHours(0,0,0,0),v.filter(W=>{const V=j(W.data||W.startDate||W.name);return V?V.getTime()>=D.getTime():!0})},[j,v]),S=w.useMemo(()=>d.fields.map(D=>{if(D.type==="radio"&&D.name==="turma"){if(b)return D;const W=A.filter(V=>!YT.has(String(V.status||V.tipo||"").trim().toUpperCase())).map(V=>({value:V.name,label:V.name}));return{...D,options:W.length?W:D.options}}return D}),[d.fields,b,A]),k={"@context":"https://schema.org","@type":"Course",name:"Mentoria RA",description:m.seoDescription,provider:{"@type":"Organization",name:"Winning by Design",url:"https://winningbydesign.com.br"},courseMode:"online",educationalLevel:"Professional",inLanguage:e==="en"?"en-US":"pt-BR"},E=(D,W)=>String(D||"").replace(/\{(\w+)\}/g,(V,L)=>W[L]!==void 0?String(W[L]):""),I=async D=>{const W=m.loadingMessage,V=m.successMessage;f({type:"loading",message:W});const L=await fr({flow:"mentoria-ra",formData:D,locale:e}),C=Jo(D.turma),U=E(m.whatsappTemplate,{...D,turma:C}),N=`https://wa.me/551132308228?text=${encodeURIComponent(U)}`;return L.success?(f({type:"success",message:V,onRedirect:()=>window.open(N,"_blank")}),{success:!0}):(f(null),setTimeout(()=>{window.open(N,"_blank")},500),{success:!1})},$=()=>{p!=null&&p.onRedirect&&p.onRedirect(),f(null)};return s.jsxs("div",{className:"mentoria-ra-page",children:[s.jsx(ye,{title:m.seoTitle,de
119scription:m.seoDescription,image:"/images/og/curso-revenue.jpg",url:m.seoUrl,keywords:m.seoKeywords,schema:k}),s.jsx(Se,{buttonText:m.headerButtonText,buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Tenho%20interesse%20na%20Mentoria%20RA"}),s.jsx(Fo,{id:"hero",tagText:t.tagText,title:t.title,description:t.description,primaryButtonText:t.primaryButtonText,primaryButtonHref:t.primaryButtonHref,imageSrc:t.imageSrc,imageAlt:t.imageAlt}),s.jsx(Lt,{id:"desafio",title:n.title,description:n.description,columns:n.columns,inverted:!0}),s.jsx(Lt,{id:"pre-requisitos",title:r.title,description:r.description,columns:r.columns}),s.jsx(ir,{id:"mentoria",title:i.title,description:i.description,buttonText:i.buttonText,buttonHref:i.buttonHref,secondaryButtonText:i.secondaryButtonText,secondaryButtonHref:i.secondaryButtonHref,buttonVariant:i.buttonVariant,imageSrc:i.imageSrc,imageAlt:i.imageAlt,imagePosition:i.imagePosition}),s.jsx(Lt,{id:"protocolo",title:a.title,description:a.description,columns:a.columns,inverted:!0}),s.jsx(Lt,{id:"para-quem-e",title:l.title,description:l.description,columns:l.columns,bottomButtonText:l.bottomButtonText,bottomButtonHref:l.bottomButtonHref,bottomButtonVariant:l.bottomButtonVariant}),s.jsx(Lt,{id:"ferramentas",title:o.title,description:o.description,columns:o.columns}),s.jsx(hi,{id:"informacoes",title:c.title,subtitle:c.subtitle,boxes:c.boxes,paragraphs:c.paragraphs,logoCarousel:c.logoCarousel,scheduleTitle:c.scheduleTitle,scheduleIcon:c.scheduleIcon,scheduleItems:c.scheduleItems,footerNote:c.footerNote,primaryButtonText:c.primaryButtonText,primaryButtonHref:c.primaryButtonHref,backgroundColor:"var(--color-white)"}),s.jsx(Xd,{id:"faq",title:u.title,subtitle:u.subtitle,items:u.items}),s.jsx(de,{id:"schedule",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,style:{textAlign:"center",marginBottom:"40px"},children:m.upcomingClasses}),s.jsx(kt,{columns:2,children:A.length>0?A.map((D,W)=>{var V;return s.jsxs("div",{className:"class-card",children:[s.jsx("span",{className:"class-status",children:D.status}),s.jsx("span",{className:"class-date",children:D.name}),s.jsxs("div",{style:{marginTop:"16px"},children:[s.jsxs(P,{style:{marginBottom:"8px"},children:[s.jsx("strong",{style:{color:"#FFF"},children:m.classStartLabel})," ",D.startDate]}),s.jsxs(P,{style:{marginBottom:"8px"},children:[s.jsx("strong",{style:{color:"#FFF"},children:m.classLocationLabel})," ",D.location]}),s.jsx(P,{style:{color:"#999",fontSize:"0.875rem"},children:D.otherDates})]}),s.jsx(ee,{as:"a",href:"#inscricao",variant:"outline-dark",style:{marginTop:"24px",width:"100%",borderColor:"#FFF",color:"#FFF"},children:m.classCta})]},`turma-${(V=D.id)!=null?V:"sem-id"}-${W}`)}):s.jsxs("div",{className:"class-card",children:[s.jsx("span",{className:"class-status",children:y?m.classSoon:m.classLoading}),s.jsx("span",{className:"class-date",children:m.classSoonText}),s.jsx("div",{style:{marginTop:"16px"},children:s.jsx(P,{style:{color:"#999",fontSize:"0.875rem"},children:y?m.classSoonDesc:m.classLoadingDesc})})]})})]})}),s.jsx(Wa,{id:"inscricao",courseSlug:"mentoria-ra",title:d.title,description:d.description,submitButtonText:d.submitButtonText,leaderGateLabel:m.leaderGateLabel,fields:S,onSubmit:I},A.map(D=>D.id).join("-")||"mentoria-classes"),p&&s.jsx(Va,{type:p.type,message:p.message,onClose:$}),s.jsx(je,{logoSrc:h.logoSrc,logoAlt:h.logoAlt,logoLink:h.logoLink,copyrightText:h.copyrightText,links:h.links,socialLinks:h.socialLinks})]})}const vn={eventTitle:`IMPACT SUMMIT
120BRASIL 2026`,headline:"CRESCIMENTO É UMA CIÊNCIA, NÃO UMA ARTE",dateLocation:"2 DE SETEMBRO NO CUBO ITAÚ, SP",description:"Evento executivo de um dia inteiro de conteúdos e networking para líderes de GTM, com foco em arquitetura de crescimento escalável em cenários de pressão e alta complexidade. Jacco van der Kooij, de volta ao Brasil, ao lado de renomados painelistas e palestrantes do mercado, para mostrar de forma prática como integrar IA à lógica operacional, fortalecer a governança da execução e transformar experimentação em crescimento previsível e sustentável.",primaryButtonText:"Inscreva-se",primaryButtonHref:"/impact-summit-brasil/inscricao",imageSrc:"/impact-summit-medias/hero.svg",imageAlt:"Impact Summit Brasil"},Dp={title:"além da inspiração",subtitle:"Pensado para líderes que querem ir"},Ne={title:"Agenda do Dia",items:[{time:"9:00 - 10:00",title:"Recepção, Networking e Café de Boas-Vindas",description:"Boas-vindas e credenciamento",type:"event"},{time:"10:00 - 10:15",title:"Abertura Oficial",description:"Introdução ao Impact Summit Brasil",type:"speaker",speaker:"Renata Centurion"},{time:"10:15 - 10:45",title:"Palestra: Princípios de Growth Architecture",description:"Crescimento exponencial consistente",type:"speaker",speaker:"Jacco van der Kooij"},{time:"10:45 - 11:00",title:"Q&A: O Futuro do Crescimento",description:"Renata Centurion e Jacco van der Kooij",type:"speaker",speaker:"Renata Centurion e Jacco van der Kooij"},{time:"11:00 - 11:45",title:"Palestra 1: TBD",description:"Tema a definir",type:"speaker"},{time:"11:45 - 12:00",title:"Discussão Q&A: Palestra 1",description:"Renata Centurion e palestrante",type:"event"},{time:"12:00 - 13:30",title:"Almoço e Networking",description:"Relacionamento e troca de ideias",type:"event"}
120,{time:"13:30 - 14:15",title:"Palestra 2: Aquisição, Retenção e Expansão",description:"Crescimento de ARR - Palestrante a definir",type:"speaker"},{time:"14:15 - 14:30",title:"Discussão Q&A: Palestra 2",description:"Palestrante e moderador",type:"event"},{time:"14:30 - 15:30",title:"Roundtable: 4 Temas de Discussão",description:"Modelo de GTM | Modelo de Dados | Modelo Operacional (Bowtie) | Growth com IA",type:"speaker",speaker:"Renata Centurion, Angelica Regazzini e Leandro Coletti"},{time:"15:30 - 16:15",title:"Palestra 3: TBD",description:"Tema a definir",type:"speaker"},{time:"16:15 - 16:30",title:"Discussão Q&A: Palestra 3",description:"Palestrante e moderador",type:"event"},{time:"16:30 - 17:00",title:"Coffee Break e Peer Networking",description:"Relacionamento e troca de ideias",type:"event"},{time:"17:00 - 17:45",title:"Keynote: O Papel da IA na Aceleração do Crescimento",description:"IA, inovação e o futuro do crescimento",type:"speaker",speaker:"Jacco van der Kooij"},{time:"17:45 - 18:00",title:"Q&A: Keynote Final",description:"Jacco van der Kooij",type:"speaker",speaker:"Jacco van der Kooij"},{time:"18:00 - 18:15",title:"Encerramento",description:"Celebração",type:"speaker",speaker:"Renata Centurion"},{time:"18:15 - 20:00",title:"Networking e Happy Hour",description:"Relacionamento e troca de ideias",type:"event"}]},nb={title:"Aprenda com quem construiu a ciência do crescimento",items:[{name:"Jacco van der Kooij",role:"CEO & Founder, Winning by Design",description:"Líder global em Revenue Architecture e Growth Strategy, trazendo insights do Vale do Silício para o mercado brasileiro.",photoSrc:"/impact-summit-medias/speakers/jacco.jfif",photoAlt:"Jacco van der Kooij",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/jaccovanderkooij/"},{name:"Renata Centurion",role:"Partner Latin America, Winning by Design",description:"Especialista em Jornada do Cliente, maior referência em Revenue Architecture no Brasil, liderando a Winning by Design Brasil e LATAM há quase 10 anos.",photoSrc:"/impact-summit-medias/speakers/renata.jfif",photoAlt:"Renata Centurion",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/renatacenturion/"},{name:"Edson Rigonatti",role:"Partner Astella",description:"Sócio-fundador da Astella e um dos investidores em tecnologia mais influentes do Brasil. Há mais de duas décadas ajuda a escalar empresas do ecossistema brasileiro.",photoSrc:"/impact-summit-medias/speakers/edson.png",photoAlt:"Edson",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/edsonrigonatti/"},{name:"Martha Gabriel",role:"Keynote Speaker",description:"PHD, futurista e especialista em Inteligência Artificial e inovação, 10x TEDx, autora best-seller e keynote internacional que conecta tecnologia, educação e negócios para o futuro.",photoSrc:"/impact-summit-medias/speakers/martha.png",photoAlt:"Martha Gabriel",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/marthagabriel/"}]},Au={items:[{name:"Angelica Regazzini",role:"Palestrante",description:"Professora e mentora dos cursos da Revenue Academy Winning by Design Brasil: Revenue Architecture, Bowtie Analytics, Math 4 RA | Lean, Sales, BPM and Customer Experience",photoSrc:"/impact-summit-medias/speakers/angelica.png",photoAlt:"Angelica Regazzini",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/angelicaregazzini/"},{name:"Leandro Coletti",role:"Palestrante",description:"Revenue & GTM Leader | Scaling B2B SaaS & AI from Seed → Series C | Compounding Growth LATAM & Global Expansion | Certified Revenue e Growth Architecture Winning by Design | Pavilion Member",photoSrc:"/impact-summit-medias/speakers/coletti.jfif",photoAlt:"Leandro Coletti",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/leandrocoletti2406/"},{name:"Fernanda Nascimento",role:"Palestrante",description:"CEO da Stratlab | Mãe do Bê e do Vico",photoSrc:"/impact-summit-medias/speakers/fernanda.jfif",photoAlt:"Fernanda Nascimento",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/fernandanascimentow/"},{name:"Cristovao Wanderley",role:"Palestrante",description:"Business Strategy Consultant, Professor e Head de Inovações n
120a Stratlab",photoSrc:"/impact-summit-medias/speakers/cristovao.jfif",photoAlt:"Cristovao Wanderley",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/cristovaowanderley/"},{name:"Eduardo Grillo",role:"Palestrante",description:"Diretor Executivo Comercial na Suhai Seguradora",photoSrc:"/impact-summit-medias/speakers/grillo.jfif",photoAlt:"Eduardo Grillo",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/eduardo-grillo-8135a1120/"},{name:"Marcelo Magdaleno",role:"Palestrante",description:"Gestão Comercial | RevOps | Estratégia Comercial | Sales Enablement na Suhai Seguradora",photoSrc:"/impact-summit-medias/speakers/marcelo.jfif",photoAlt:"Marcelo Magdaleno",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/marcelo-magdaleno/"},{name:"Marcelo Park",role:"Diretor de Go-To-Market na MeetRox | +15 anos de experiência em Marketing e Vendas B2B | GTM de produtos técnicos",description:"Diretor de Go-To-Market na MeetRox | +15 anos de experiência em Marketing e Vendas B2B | GTM de produtos técnicos",photoSrc:"/impact-summit-medias/speakers/marcelopark.png",photoAlt:"Marcelo Park",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/marcelopark/"},{name:"Daniel Pires Luiz da Costa",role:"Palestrante",description:"Founder & Co-CEO da Cortex, liderando uma das principais plataformas de inteligência de dados e IA do Brasil.",photoSrc:"/impact-summit-medias/speakers/daniel-pires.png",photoAlt:"Daniel Pires Luiz da Costa",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/daniel-pires-luiz-da-costa-013342/"},{name:"Christopher Granville Thompson",role:"Palestrante",description:"Diretor na Lean Institute Brasil.",photoSrc:"/impact-summit-medias/speakers/thompson.png",photoAlt:"Christopher Granville Thompson",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/christophergthompson/"},{name:"Rodrigo Pinto",role:"Sales & AI | Founder @ SocialPrompts.ai",description:"Sales & AI | Founder @ SocialPrompts.ai",photoSrc:"/impact-summit-medias/speakers/rodrigo-pinto.png",photoAlt:"Rodrigo Pinto",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/rodrigopinto100/"},{name:"Luciano Condé",role:"Senior Director for Architecture at Oracle",description:"Senior Director for Architecture at Oracle",photoSrc:"/impact-summit-medias/speakers/condé.png",photoAlt:"Luciano Condé",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/luconde/"},{name:"Carolina Nucci",role:"LinkedIn Top Voice | Speaker, Board Member & Advisor for B2B companies",description:"Speaker, Board Member & Advisor for B2B companies",photoSrc:"/impact-summit-medias/speakers/nucci.png",photoAlt:"Carolina Nucci",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/carolinanucci/"},{name:"Felipe Rodrigues Affonso",role:"Partner at Cloud9",description:"Partner at Cloud9",photoSrc:"/impact-summit-medias/speakers/felipe-rodrigues.jpg",photoAlt:"Felipe Rodrigues Affonso",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/felipe-rodrigues-affonso-648a9a3b/"}]},zi={title:"Temas Principais do Evento",themes:[{title:"Cases de Sucesso de Clientes Winning by Design",description:"Conheça histórias reais de empresas que transformaram seus negócios implementando Growth Architecture, Revenue Operations e estratégias de IA."},{title:"Importância das Comunidades",description:"Descubra o poder de estar conectado com 150+ líderes de receita de 50+ empresas. Networking qualificado que gera parcerias estratégicas, integrações e oportunidades de negócio duradouras."},{title:"O Papel da Educação no Ecossistema",description:"A educação contínua é fundamental para o sucesso em Go-To-Market. Executivos que participam de eventos educacionais relatam 3x mais implementações bem-sucedidas de novas estratég
120ias."}]},Vr={title:"Cases de Sucesso de Clientes Winning by Design",description:"Empresas que implementaram os frameworks e estratégias da Winning by Design alcançaram resultados extraordinários:",metrics:[{title:"Crescimento de Pipeline",value:"+40%",description:"Empresas implementando Growth Architecture aumentaram seu pipeline em média 40% em 3 meses."},{title:"Eficiência de Vendas",value:"+35%",description:"Uma área de receita otimizada resulta em 35% de melhoria na eficiência de vendas e redução de custos."},{title:"Adoção de IA",value:"+60%",description:"Líderes que implementam IA como lógica operacional veem 60% de aumento em automação e insights."}]},rb={title:Dp.title,subtitle:Dp.subtitle,boxes:Vr.metrics.map(e=>({value:e.value,label:`${e.description}`})),paragraphs:["Mais do que um encontro pontual, o Impact Summit Brasil te conecta a uma comunidade exclusiva de líderes de Go-To-Market que enfrentam desafios similares, compartilham aprendizados reais e aceleram decisões estratégicas com base nas melhores prática do mercado."]},Wi={columns:[{icon:"/images/gtm.webp",iconAlt:"Ícone Go-To-Market",title:"150+ Executivos de Alto Nível",description:"Durante o evento, você estará ao lado de executivos de alto nível, incluindo CEOs, CFOs e VPs de Receita e Operações, em um ambiente desenhado para trocas objetivas entre quem lidera crescimento em contextos de alta pressão."},{icon:"/images/leadership.webp",iconAlt:"Ícone Liderança",title:"50+ Empresas Participantes",description:"A curadoria reúne mais de 50 empresas, de startups em escala acelerada a organizações Fortune 500 com presença no Brasil e no mundo, ampliando repertório e visão para decisões de crescimento em diferentes estágios de maturidade."},{icon:"/images/growth-fast.webp",iconAlt:"Ícone Crescimento Rápido",title:"Conexões que Viram Parcerias",description:"Esse networking qualificado entre pares abre espaço para conexões que evoluem para parcerias estratégicas, integrações e novas oportunidades de negócio, mantendo o foco em execução e impacto concreto após o evento."}]},yn={title:"INSCREVA-SE",description:"Preencha o formulário abaixo para o Impact Summit Brasil 2026.",submitButtonText:"INSCREVA-SE",fields:[{type:"text",name:"nome",label:"Nome completo",placeholder:"Seu nome",required:!0},{type:"linkedin",name:"linkedin",label:"Link para meu LinkedIn",placeholder:"https://linkedin.com/in/seu-perfil",required:!0},{gridColumns:2,fields:[{type:"email",name:"email",label:"E-mail",placeholder:"[email protected]",required:!0},{type:"tel",name:"whatsapp",label:"WhatsApp",placeholder:"(11) 99999-9999",required:!0}]}]},Us={title:"Pacotes de Patrocínio",packages:[{name:"Diamante",price:"R$ 100.000",benefits:["Destaque máximo em todos os materiais","Jantar exclusivo com Jacco van der Kooij","Até 8 executivos convidados"],buttonText:"Patrocinar",buttonHref:"#inscricao",highlighted:!0},{name:"Ouro",price:"R$ 50.000",benefits:["Visibilidade de destaque","Presença em materiais principais","Até 2 executivos convidados"],buttonText:"Patrocinar",buttonHref:"#inscricao"}]},ib={question:"Quer conhecer todas as oportunidades de patrocínio em detalhes?",linkText:"Acessar Prospecto Executivo Completo",linkHref:"https://impactsummitbrasil-prospectus.manus.space/"},Tu={title:"Evento apoiado pelos melhores Líderes de receita do Brasil",tiers:[{label:"Patrocinador",rank:1,items:[{name:"Suhai Seguradora",logoSrc:"/impact-summit-medias/suhai-seguradora.png",logoAlt:"Suhai Seguradora",link:"https://suhaiseguradora.com/"}]},{label:"Produção, apoio e patrocínio",rank:2,items:[{name:"Stratlab",logoSrc:"/impact-summit-medias/stratlab.png",logoAlt:"Stratlab",link:"https://stratlab.com.br/"}]},{label:"Apoio",rank:3,items:[{name:"MeetRox",logoSrc:"/impact-summit-medias/meet-rox.png",logoAlt:"MeetRox",link:"https://meetrox.ai/"}]}],ctaButtonText:"Quero apoiar o evento",ctaButtonHref:"#inscricao"},Vi={title:"O que dizem os grandes líderes de receita?",description:"Veja os depoimentos de executivos que participaram dos eventos de Revenue Architecture no Brasil e transformaram suas estratég
120ias de crescimento.",items:[{quote:"Acesso a conteúdo científico e profundo, além de trocar com outras pessoas da área que têm dores semelhantes e com bastante tempo de mercado.",name:"Carina Lima",role:"Head de Marketing",company:"NeoAssist",videoHref:"/impact-summit-medias/carina-lima-neo-assist.mov",videoThumbnail:"/impact-summit-medias/carina-lima-neo-assist.png"},{quote:"É de um nível extremamente alto, as discussões são incríveis e esse é só o começo. São muitos assuntos discutidos e vale muito a pena a gente estabelecer esse conhecimento para poder executar na prática.",name:"Cristovao Wanderley",role:"COO e CTO",company:"Stratlab",videoHref:"/impact-summit-medias/cristovao-wanderley-stratlab.mov",videoThumbnail:"/impact-summit-medias/cristovao-wanderley-stratlab.png"},{quote:"Entender as variáveis para buscar um resultado sustentável, a renovação contínua e um cliente satisfeito no final de tudo.",name:"Eduardo Grillo",role:"Diretor Executivo Comercial",company:"Suhai Seguradora",videoHref:"/impact-summit-medias/eduardo-grillo-suhai-seguradora.mov",videoThumbnail:"/impact-summit-medias/eduardo-grillo-suhai-seguradora.png"}]},_u={title:"Local do Impact Summit Brasil 2026",subtitle:"Cubo São Paulo - Um dos maiores centros de inovação e tecnologia na América Latina",gallery:[{src:"/impact-summit-medias/cubo-1.jpeg",alt:"Cubo São Paulo - Fachada",caption:"Cubo São Paulo - Fachada"},{src:"/impact-summit-medias/cubo-2.webp",alt:"Cubo - Evento",caption:"Cubo - Evento"},{src:"/impact-summit-medias/cubo-3.jpg",alt:"Painéis Cubo",caption:"Painéis Cubo"},{src:"/impact-summit-medias/cubo-4.webp",alt:"Palestras Cubo",caption:"Palestras Cubo"}],addressTitle:"Endereço",addressLines:["Alameda Vicente Pinzón, 54, Vila Olímpia, São Paulo - SP","04547-130"],infrastructureText:"Cubo Itaú, um dos maiores centros de inovação e tecnologia na América Latina, palco ideal para uma revolução do conhecimento.",mapButtonText:"Abrir no mapa",mapButtonHref:"https://www.google.com/maps/place/Cubo+Ita%C3%BA/@-23.5960156,-46.6894046,16.6z/data=!3m1!5s0x75b4eedbc64b605:0xe0ac399252fdaecd!4m6!3m5!1s0x94ce574e7a73d30d:0x862a31742765a371!8m2!3d-23.5966452!4d-46.6869082!16s%2Fg%2F11cmh_5_cr?entry=ttu&g_ep=EgoyMDI2MDMxOC4xIKXMDSoASAFQAw%3D%3D"},Cu={title:"Momentos do Impact Summit USA",description:"Alguns registros da edição anterior que mostram o nível das conversas, da troca entre pares e da energia do evento.",photos:[{src:"/impact-summit-medias/moments-1.jpg",caption:"Networking e conexões estratégicas"},{src:"/impact-summit-medias/moments-2.jpg",caption:"Discussão técnica com líderes de GTM"},{src:"/impact-summit-medias/moments-3.jpg",caption:"Insights práticos para crescimento escalável"},{src:"/impact-summit-medias/moments-4.jpg",caption:"Troca de experiências entre executivos"},{src:"/impact-summit-medias/moments-5.jpg",caption:"Painel com aplicação real de Revenue Architecture"},{src:"/impact-summit-medias/moments-6.png",caption:"Comunidade de alta performance em ação"}]},Hi={title:"Perguntas Frequentes",description:"Encontre respostas para as principais dúvidas sobre inscrição, agenda e logística do evento.",groups:[{title:"Inscreva-se",items:[{question:"Como se inscrever?",answer:"A inscrição é a forma de manifestar seu interesse, como líder, em participar do Impact Summit Brasil 2026. Ao preencher o formulário, você garante prioridade na confirmação de vaga quando as inscrições forem abertas."},{question:"A inscrição é gratuita?",answer:"Sim! A inscrição não tem nenhum custo. Ela serve para registrar seu interesse e garantir que você será notificado com prioridade sobre as condições comerciais para sua participação."},{question:"O que acontece após a inscrição?",answer:"Nossa equipe entrará em contato para apresentar as condições comerciais de participação e, após o pagamento, confirmar sua vaga. Pré-inscritos terão prioridade e acesso às condições especiais vigentes."},{question:"Quando abrirão as inscrições?",answer:"As inscrições estão previstas para abertura no início de junho. Recomendamos se inscrever o quanto antes para garantir prioridade na confirmação de vaga e acesso às condições especiais."},{question:"Como funciona o processo de seleção?",answer:"O Impact Summit Brasil é um evento de capacidade limitada, pensado para reunir os maiores líderes de receita do país. Por isso, realizamos uma curadoria das inscrições para garantir que cada participante possa contribuir com a troca de experiências em alto nível. O perfil prioritário inclui: VP, C-Level, Diretor(a), Founder, Co-Founder, Venture Capital, Heads de Marketing, Heads de CS e Heads de Vendas. Após sua inscrição, nossa equipe analisará o seu perfil do LinkedIn e entrará em contato para instruções do pagamento."},{question:"Posso indicar colegas para o evento?",answer:`Sim! Você pode compartilhar o link de inscrição com colegas. O evento é voltado para executivos de GTM, líderes de Revenue e Growth, CEOs e fundadores.
121Importante: entre em contato com nosso time se você tiver um grupo de 3 pessoas ou mais para participar do evento.`},{question:"O que está incluso no meu ingresso para o Impact Summit Brasil 2026?",answer:"Você será recebido com um welcome coffee e um kit de boas-vindas, irá participar de palestras, painéis interativos, Q&A e terá acesso a conteúdo de alto nível com a presença do Jacco van der Kooij. Faremos uma pausa de 1h30 para um almoço especial no local para que você conheça seus pares de mercado e possa expandir sua rede de relacionamentos. Ao final do evento faremos um happy hour com uma apresentação surpresa! Durante a sua presença no evento, você terá acesso a sorteios e prêmios incríveis e, claro, muito Networking."}]},{title:"Agenda",items:[{question:"Qual é o horário do evento?",answer:"O Impact Summit Brasil 2026 acontecerá em 2 de setembro de 2026, das 8h30 às 18h15 (horário de Brasília). Recomendamos chegar 30 minutos antes do início para check-in."},{question:"Quantas palestras e painéis haverá?",answer:"A programação conta com palestras e keynotes de líderes de receita recorrente, sessões de Q&A, painéis com os temas mais relevantes do mercado e momentos de networking ao longo de todo o dia."},{question:"O evento é exclusivamente presencial?",answer:"Sim! O Impact Summit Brasil é um evento 100% presencial. Não haverá transmissão remota. Toda a experiência acontece no Cubo Itaú, em São Paulo."}]},{title:"Logística",items:[{question:"Onde o evento será realizado?",answer:"O evento acontecerá no Cubo Itaú, um dos maiores centros de inovação e tecnologia da América Latina. Endereço: Alameda Vicente Pinzón, 54 — Vila Olímpia, São Paulo - SP, CEP 04547-130. Para abrir a localização no mapa, acesse o link disponível na seção de local desta página. O local possui opções de estacionamento próximos. Recomendamos que venha de carro por aplicativo."},{question:"Posso levar acompanhante?",answer:"Cada ingresso é pessoal e intransferível. Acompanhantes precisam adiquirir seu ingresso individual. Fale conosco pelo e-mail [email protected] para 
121informações sobre ingressos para acompanhantes."},{question:"O evento é acessível para pessoas com deficiência?",answer:"Sim! O local das palestras dispõe de recursos acessbilidade. Se você precisar de acessibilidades específicas, informe no seu formulário de inscrição."}]}],contactPrompt:"Não encontrou sua resposta?",contactButtonText:"Entre em Contato Conosco",contactButtonHref:"#inscricao"},Gi={title:"O Papel da Educação no Ecossistema de Receitas Recorrentes",description:"A Winning by Design acredita que a educação contínua é fundamental para o sucesso em Go-To-Market. O Impact Summit Brasil é um centro de aprendizado onde executivos descobrem:",pillars:[{title:"Growth Architecture",description:"Frameworks comprovados para estruturar crescimento exponencial de forma sustentável e escalável."},{title:"Revenue Architecture",description:"Como construir uma fábrica de receitas com otimização de processos, tecnologia e pessoas para maximizar eficiência."},{title:"IA como Lógica Operacional",description:"Integração de inteligência artificial em sistemas de crescimento para decisões mais rápidas e precisas."},{title:"Data-Driven Decision Making",description:"Uso de dados e ciência para fundamentar estratégias de crescimento e eliminar adivinhações."},{title:"Go-To-Market Strategy",description:"Estratégias de lançamento e expansão que conectam produto, vendas e marketing de forma integrada."},{title:"Escalabilidade Sustentável",description:"Crescimento que não compromete cultura, qualidade ou rentabilidade a longo prazo."}],impactNote:"Impacto da Educação Contínua: Executivos que participam regularmente de eventos educacionais como o Impact Summit relatam 3x mais implementações bem-sucedidas de novas estratég
121ias em suas organizações."},QT=["pt","en"],Nu={pt:{seo:{title:"Impact Summit Brasil | Winning by Design",description:"Evento para executivos de GTM sobre Growth Architecture, Revenue Architecture e IA aplicada ao crescimento previsivel.",url:"/impact-summit-brasil",keywords:"impact summit brasil, growth architecture, revenue architecture, go-to-market, ia"},headerButtonText:"INSCREVA-SE",confirmedSpeakersTitle:"Palestrantes confirmados",salesAlert:"Vendas abertas!",testimonialAltSuffix:"testimonial"},en:{seo:{title:"Impact Summit Brazil | Winning by Design",description:"A one-day executive event for GTM leaders focused on Growth Architecture, Revenue Architecture, and AI applied to predictable growth.",url:"/en/impact-summit-brasil",keywords:"impact summit brazil, growth architecture, revenue architecture, go-to-market, ai"},headerButtonText:"REGISTER",confirmedSpeakersTitle:"Confirmed speakers",salesAlert:"Ticket sales are open!",testimonialAltSuffix:"testimonial"}},XT={...vn,dateLocation:"SEPTEMBER 2ND AT CUBO ITAU, SÃO PAULO",description:"A full-day executive event focused on content and networking for GTM leaders, centered on scalable growth architecture in high-pressure, high-complexity environments. Jacco van der Kooij returns to Brazil alongside top market panelists and speakers to show, in practical terms, how to integrate AI into operating logic, strengthen execution governance, and turn experimentation into predictable and sustainable growth.",primaryButtonText:"Register now"},ZT={...rb,title:"beyond inspiration",subtitle:"Designed for leaders ready to go further",boxes:[{value:"+40%",label:"Companies applying Growth Architecture increased pipeline by an average of 40% in three months."},{value:"+35%",label:"An optimized revenue organization can deliver a 35% improvement in sales efficie
121ncy."},{value:"+60%",label:"Leaders who operationalize AI report up to 60% gains in automation and actionable insights."}],paragraphs:["More than a one-off event, Impact Summit Brazil connects you with an exclusive community of Go-To-Market leaders facing similar challenges, sharing real learnings, and accelerating strategic decisions grounded in market best practices."]},e_={...Wi,columns:[{...Wi.columns[0],title:"150+ Senior Executives",description:"During the event, you will be side by side with senior executives, including CEOs, CFOs, and VPs of Revenue and Operations, in an environment designed for objective conversations among leaders driving growth under pressure."},{...Wi.columns[1],title:"50+ Participating Companies",description:"The curation brings together over 50 companies, from fast-scaling startups to Fortune 500 organizations operating in Brazil and globally, expanding your perspective for growth decisions across maturity stages."},{...Wi.columns[2],title:"Connections That Become Partnerships",description:"This qualified peer networking creates room for connections that evolve into strategic partnerships, integrations, and new business opportunities, with a strong focus on execution and measurable impact after the event."}]},t_={...Tu,title:"An event supported by top revenue leaders in Brazil",tiers:Tu.tiers.map(e=>e.rank===1?{...e,label:"Sponsor"}:e.rank===2?{...e,label:"Production, support and sponsorship"}:e.rank===3?{...e,label:"Support"}:e),ctaButtonText:"I want to support this event"},n_={...nb,title:"Learn from those who built the science of growth",items:[{name:"Jacco van der Kooij",role:"CEO & Founder, Winning by Design",description:"Global leader in Revenue Architecture and Growth Strategy, bringing Silicon Valley insights to the Brazilian market.",photoSrc:"/impact-summit-medias/speakers/jacco.jfif",photoAlt:"Jacco van der Kooij",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/jaccovanderkooij/"},{name:"Renata Centurion",role:"Partner Latin America, Winning by Design",description:"Customer Journey specialist and a leading Revenue Architecture expert in Brazil, leading Winning by Design Brazil and LATAM for almost 10 years.",photoSrc:"/impact-summit-medias/speakers/renata.jfif",photoAlt:"Renata Centurion",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/renatacenturion/"},{name:"Edson Rigonatti",role:"Partner Astella",description:"Co-founder of Astella and one of Brazil's most influential technology investors. For more than two decades, he has helped scale companies across the Brazilian ecosystem.",photoSrc:"/impact-summit-medias/speakers/edson.png",photoAlt:"Edson Rigonatti",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/edsonrigonatti/"},{name:"Martha Gabriel",role:"Keynote Speaker",description:"PHD, futurist and expert in Artificial Intelligence and innovation, 10x TEDx, best-selling author and international keynote speaker connecting technology, education and business for the future.",photoSrc:"/impact-summit-medias/speakers/martha.png",photoAlt:"Martha Gabriel",linkedinLabel:"LinkedIn",linkedinHref:"https://www.linkedin.com/in/marthagabriel/"}]},r_={...Au,items:Au.items.map(e=>e.name==="Angelica Regazzini"?{...e,description:"Instructor and mentor in Winning by Design Brazil's Revenue Academy: Revenue Architecture, Bowtie Analytics, and Math 4 RA | Lean, Sales, BPM and Customer Experience."}:e.name==="Leandro Coletti"?{...e,description:"Revenue and GTM Leader | Scaling B2B SaaS and AI from Seed to Series C | Compounding Growth in LATAM and global expansion | Certified in Revenue and Growth Architecture at Winning by Design | Pavilion Member."}:e.name==="Fernanda Nascimento"?{...e,description:"CEO at Stratlab | Mother of Be and Vico."}:e.name==="Cristovao Wanderley"?{...e,description:"Business Strategy Consultant, Professor, and Head of Innovation at Stratlab."}:e.name==="Eduardo Grillo"?{...e,description:"Executive Commercial Director at Suhai Seguradora."}:e.name==="Marcelo Magdaleno"?{...e,description:"Commercial Management | RevOps | Commercial Strategy | Sales Enablement at Suhai Seguradora."}:e.name==="Daniel Pires Luiz da Costa"?{...e,description:"Founder & Co-CEO at Cortex, leading one of Brazil's top data intelligence and AI platforms."}:e.name==="Christopher Granville Thompson"?{...e,description:"Director at Lean Institute Brasil."}:e.name==="Chris Cornehl"?{...e,description:"CEO at MeetRox"}:e.name==="Rodrigo Pinto"?{...e,description:"Sales & AI | Founder @ SocialPrompts.ai"}:e.name==="Luciano Condé"?{...e,role:"Senior Director for Architecture at Oracle",description:"Senior Director for Architecture at Oracle"}:e)},i_={...Cu,title:"Moments from Impact Summit USA",description:"A few highlights from the previous edition showing the quality of the conversations, peer exchange, and event energy.",photos:Cu.photos.map((e,t)=>({...e,caption:["Networking and strategic connections","Technical discussion 
121with GTM leaders","Practical insights for scalable growth","Peer exchange among executives","Panel on real Revenue Architecture application","High-performance community in action"][t]||e.caption}))},a_={...Vi,title:"What do top revenue leaders say?",description:"Watch testimonials from executives who attended Revenue Architecture events in Brazil and transformed their growth strategy.",items:[{...Vi.items[0],quote:"Access to deep, science-based content, plus the opportunity to exchange with peers facing similar challenges and with extensive market experience."},{...Vi.items[1],quote:"The level is extremely high, the discussions are incredible, and this is only the beginning. There are many topics covered and it is worth turning this knowledge into practical execution."},{...Vi.items[2],quote:"Understanding the variables behind sustainable results, continuous renewal, and a satisfied customer at the end of the journey."}]},s_={..._u,title:"Impact Summit Brazil 2026 Venue",subtitle:"Cubo São Paulo - One of the largest innovation and technology hubs in Latin America",addressTitle:"Address",addressLines:["Alameda Vicente Pinzon, 54, Vila Olimpia, São Paulo - SP","04547-130"],infrastructureText:"Cubo Itaú, one of the largest innovation and technology hubs in Latin America, is the ideal stage for a knowledge revolution.",mapButtonText:"Open in maps",gallery:_u.gallery.map((e,t)=>{const n=["Cubo São Paulo - Front view","Cubo - Event","Cubo - Panels","Cubo - Talks"];return{...e,alt:n[t]||e.alt,caption:n[t]||e.caption}})},o_={...Ne,title:"Event Agenda",items:[{...Ne.items[0],title:"Reception, Networking and Welcome Coffee",description:"Welcome and check-in"},{...Ne.items[1],title:"Official Opening",description:"Introduction to Impact Summit Brazil"},{...Ne.items[2],title:"Talk: Growth Architecture Principles",description:"Consistent exponential growth"},{...Ne.items[3],title:"Q&A: The Future of Growth",description:"Renata Centurion and Jacco van der Kooij"},{...Ne.items[4],title:"Talk 1: TBD",description:"Topic to be defined"},{...Ne.items[5],title:"Q&A Discussion: Talk 1",description:"Renata Centurion and speaker"},{...Ne.items[6],title:"Lunch and Networking",description:"Relationship building and idea exchange"},{...Ne.items[7],title:"Talk 2: Acquisition, Retention and Expansion",description:"ARR growth - speaker to be defined"},{...Ne.items[8],title:"Q&A Discussion: Talk 2",description:"Speaker and moderator"},{...Ne.items[9],title:"Roundtable: 4 Discussion Topics",description:"GTM Model | Data Model | Operating Model (Bowtie) | Growth with AI"},{...Ne.items[10],title:"Talk 3: TBD",description:"Topic to be defined"},{...Ne.items[11],title:"Q&A Discussion: Talk 3",description:"Speaker and moderator"},{...Ne.items[12],title:"Coffee Break and Peer Networking",description:"Relationship building and idea exchange"},{...Ne.items[13],title:"Keynote: The Role of AI in Growth Acceleration",description:"AI, innovation and the future of growth"},{...Ne.items[14],title:"Q&A: Final Keynote",description:"Jacco van der Kooij"},{...Ne.items[15],title:"Closing",description:"Celebration"},{...Ne.items[16],title:"Networking and Happy Hour",description:"Relationship building and idea exchange"}]},l_={...zi,title:"Main Event Themes",themes:[{...zi.themes[0],title:"Winning by Design Client Success Cases",description:"Discover real stories of companies that transformed their business by implementing Growth Architecture, Revenue Operations and AI strategies."},{...zi.themes[1],title:"The Importance of Communities",description:"Discover the power of being connected with 150+ revenue leaders from 50+ companies. Qualified networking that drives strategic partnerships, integrations and long-term business opportunities."},{...zi.themes[2],title:"The Role of Education in the Ecosystem",description:"Continuous education is essential for Go-To-Market success. Executives who attend educational events report 3x more successful implementations of new strategies."}]},c_={...Gi,title:"The Role of Education in the Ecosystem",description:"Continuous learning is a strategic lever for Go-To-Market leaders. Teams that invest in practical education execute with more consistency, reduce errors and accelerate predictable growth.",pillars:[{...Gi.pillars[0],title:"Hands-on Frameworks",description:"Apply proven Growth Architecture and Revenue Architecture frameworks to real business scenarios."},{...Gi.pillars[1],title:"Peer Learning",description:"Exchange experiences with leaders facing similar GTM execution challenges in high-pressure contexts."},{...Gi.pillars[2],title:"Execution Governance",description:"Connect strategy, operations and metrics to transform experimentation into disciplined and scalable growth."}]},u_={...Vr,title:"Winning by Design Client Success Cases",description:"Companies implementing Winning by Design frameworks and strategies achieved outstanding results:",metrics:[{...Vr.metrics[0],title:"Pipeline Growth",description:"Companies implementing Growth Architecture increased pipeline by an average of 40% in three months."},{...Vr.metrics[1],title:"Sales Efficiency",description:"An optimized revenue organization can deliver a 35% improvement in sales efficie
121ncy with lower costs."},{...Vr.metrics[2],title:"AI Adoption",description:"Leaders implementing AI as operating logic report up to 60% gains in automation and actionable insights."}]},d_={...Us,title:"Sponsorship Packages",packages:[{...Us.packages[0],benefits:["Maximum visibility across all materials","Exclusive dinner with Jacco van der Kooij","Up to 8 invited executives"],buttonText:"Sponsor"},{...Us.packages[1],benefits:["Featured visibility","Presence in core materials","Up to 2 invited executives"],buttonText:"Sponsor"}]},m_={...ib,question:"Want to explore all sponsorship opportunities in detail?",linkText:"Access Full Executive Prospectus"},h_={...yn,title:"REGISTER NOW",description:"Fill out the form below for Impact Summit Brazil 2026.",submitButtonText:"SUBMIT REGISTRATION",fields:[{...yn.fields[0],label:"Full name",placeholder:"Your name"},{...yn.fields[1],label:"LinkedIn",placeholder:"https://linkedin.com/in/your-profile"},{...yn.fields[2],fields:[{...yn.fields[2].fields[0],label:"Email",placeholder:"[email protected]"},{...yn.fields[2].fields[1],label:"WhatsApp",placeholder:"(11) 99999-9999"}]}]},p_={...Hi,title:"Frequently Asked Questions",description:"Find answers to the most common questions about registration, agenda and event logistics.",groups:[{...Hi.groups[0],title:"Registration",items:[{question:"What is registration?",answer:"Registration is how you express your interest, as a leader, in attending Impact Summit Brazil 2026. By completing the form, you secure priority when seat confirmation opens."},{question:"Is registration free?",answer:"Yes. Registration has no cost. It records your interest and ensures you receive priority communication about participation terms."},{question:"What happens after I register?",answer:"Our team will c
121ontact you to present participation terms and confirm your seat after payment. Registered participants receive priority and access to current special conditions."},{question:"When will registrations open?",answer:"Registrations are expected to open in early June. We recommend registering as soon as possible to secure priority and special conditions."},{question:"How does the selection process work?",answer:"Impact Summit Brazil has limited capacity and is curated to gather the country's top revenue leaders. Priority profiles include VP, C-Level, Directors, Founders, Co-Founders, Venture Capital, Marketing Heads, CS Heads and Sales Heads. After registration, our team reviews your LinkedIn profile and contacts you with payment instructions."},{question:"Can I invite colleagues to the event?",answer:"Yes. You can share the registration link with colleagues. The event is designed for GTM executives, Revenue and Growth leaders, CEOs and founders. For groups of 3 or more, contact our team directly."},{question:"What is included in my Impact Summit Brazil 2026 ticket?",answer:"You will be welcomed with coffee and a welcome kit, attend talks, interactive panels, Q&A sessions and high-level content featuring Jacco van der Kooij. There will be a 1h30 lunch break onsite for peer networking, plus a closing happy hour with a surprise moment, giveaways and prizes."}]},{...Hi.groups[1],title:"Agenda",items:[{question:"What are the event hours?",answer:"Impact Summit Brazil 2026 takes place on September 2, 2026, from 8:30 AM to 6:15 PM (Brasilia time). We recommend arriving 30 minutes early for check-in."},{question:"How many talks and panels will there be?",answer:"The program includes talks and keynotes from recurring-revenue leaders, Q&A sessions, panels on the most relevant market topics, and networking moments throughout the day."},{question:"Is the event in-person only?",answer:"Yes. Impact Summit Brazil is a 100% in-person event. There will be no remote streaming. The full experience takes place at Cubo Itau in Sao Paulo."}]},{...Hi.groups[2],title:"Logistics",items:[{question:"Where will the event take place?",answer:"The event will take place at Cubo Itau, one of the largest innovation and technology hubs in Latin America. Address: Alameda Vicente Pinzon, 54 - Vila Olimpia, Sao Paulo - SP, ZIP 04547-130. You can open the map link in the location section of this page. Parking options are available nearby, and app-based transportation is recommended."},{question:"Can I bring a guest?",answer:"Each ticket is personal and non-transferable. Guests need to purchase an individual ticket. Contact us at [email protected] for guest ticket information."},{question:"Is the event accessible for people with disabilities?",answer:"Yes. The venue provides accessibility resources. If you need specific accommodations, please inform us in your registration form."}]}],contactPrompt:"Didn't find your answer?",contactButtonText:"Contact Us"},f_={pt:{event:{seo:Nu.pt.seo,headerButtonText:"INSCREVA-SE",headerButtonHref:"/impact-summit-brasil/inscricao",confirmedSpeakersTitle:"Palestrantes confirmados",salesAlert:"Vendas abertas!",testimonialAltSuffix:"depoimento"},agenda:{seo:{title:"Agenda | Impact Summit Brasil",description:"Veja a agenda do Impact Summit Brasil com timeline do dia, temas principais, palestrantes e informações de local.",url:"/impact-summit-brasil/agenda",keywords:"agenda impact summit brasil, programação impact summit, palestrantes impact summit"},headerButtonText:"INSCREVA-SE",eyebrow:"Impact Summit Brasil 2026",dateLabel:"2 de setembro de 2026",timeLabel:"Das 9h às 20h",placeLabel:"Cubo Itaú · São Paulo",loadingLabel:"Carregando agenda",loadingMessage:"Buscando a programação mais recente.",emptyLabel:"Agenda indisponível",emptyMessage:"A programação não foi encontrada agora.",errorLabel:"Falha ao carregar agenda",errorMessage:"Não foi possível carregar a agenda neste momento.",scheduleNoticeLabel:"Aviso importante",scheduleNotice:"Cronograma sujeito a alteração até o dia do evento.",retryLabel:"Tentar novamente",fallbackMessage:"Exibindo a programação de referência.",fallbackNote:"Programação de referência exibida enquanto a agenda oficial não é 
121carregada."},sponsors:{seo:{title:"Sponsors | Impact Summit Brasil",description:"Conheça as oportunidades de patrocínio, os apoiadores confirmados e o prospecto executivo do Impact Summit Brasil.",url:"/impact-summit-brasil/sponsors",keywords:"sponsors impact summit brasil, patrocinio evento revenue, apoiadores impact summit"},headerButtonText:"ENTRE EM CONTATO",headerButtonHref:"mailto:[email protected]",contactTitle:"Quer patrocinar o Impact Summit Brasil?",contactInstructions:'Envie um e-mail com o assunto "Patrocínio Impact Summit Brasil" informando seu nome, empresa e o pacote de interesse. Nossa equipe retornará em até 2 dias úteis.',sponsorshipMailSubject:"Patrocínio Impact Summit Brasil"},registration:{seo:{title:"Inscreva-se | Impact Summit Brasil",description:"Inscreva-se no Impact Summit Brasil 2026 e garanta prioridade de participação no evento.",url:"/impact-summit-brasil/inscricao",keywords:"inscreva-se impact summit brasil, inscrever evento revenue growth architecture"},headerButtonText:"VER O EVENTO",headerButtonHref:"/impact-summit-brasil",loadingMessage:"Realizando inscrição...",successMessage:"Inscrição realizada com sucesso!",errorMessage:"Ocorreu um erro ao enviar sua inscrição. Tente novamente.",successEmailNote:"Nova inscrição recebida para o Impact Summit Brasil 2026.",emailSubjectPrefix:"Nova inscrição - Impact Summit Brasil -",checkout:{lotsTitle:"Lotes disponíveis",loadingLots:"Carregando lotes...",noLots:"Nenhum lote encontrado.",available:"Disponível",closed:"Lote encerrado",closedDatePrefix:"Encerrado em",comingSoon:"Em breve",openingDatePrefix:"Abertura em",countdownPrefix:"Termina em",countdownDays:"Dias",countdownHours:"Horas",countdownMinutes:"Min",countdownSeconds:"Seg",quantityLabel:"Quantidade",quantityAriaLabel:"Quantidade do pedido",subtotalLabel:"Subtotal",discountLabel:"Desconto",totalLabel:"Total",selectPlaceholder:"Selecione",confirmLabel:"Confirmo que sou líder na minha organização. Estou ciente de que os dados serão checados para verificação do perfil adequado ao evento e que o valor pago será devolvido automaticamente, caso não seja aderente.",submitButtonText:"Realizar inscrição",secureNote:"Checkout seguro - SSL criptografado",successBadge:"Inscrição enviada",successTitle:"Sua inscrição foi processada",successMessage:"Em breve você receberá um link para continuar para o pagamento.",successSupportPrefix:"Obrigado,",successSupportSuffix:"Sua inscrição foi registrada com sucesso e ficará aguardando o próximo passo.",newRegistrationButtonText:"Agenda do Evento",successActionHref:"/impact-summit-brasil/agenda",successSecondaryActionText:"Fazer nova compra",successSecondaryActionHref:"/impact-summit-brasil/inscricao",loadingError:"Não foi possível carregar os lotes.",noLotsFound:"Nenhum lote encontrado.",requiredFieldError:"Campo obrigatório.",linkedinError:"Insira uma URL válida do LinkedIn.",leaderConfirmError:"Você precisa confirmar que é líder e está ciente das condições."},faqTitle:"Dúvidas sobre a inscrição",faqDescription:"Consulte as perguntas mais frequentes sobre o processo de inscrição e participação no evento.",leaderGateLabel:"Confirmo que ocupo atualmente um cargo de liderança sênior"},faq:{seo:{title:"FAQ | Impact Summit Brasil",description:"Consulte todas as perguntas frequentes do Impact Summit Brasil e veja as informações práticas sobre local, logística e contato.",url:"/impact-summit-brasil/faq",keywords:"faq impact summit brasil, dúvidas evento, local e logística impact summit"},headerButtonText:"INSCREVA-SE",headerButtonHref:"/impact-summit-brasil/inscricao"},cases:{seo:{title:"Cases | Impact Summit Brasil",description:"Explore os cases apresentados no Impact Summit Brasil e os pilares de educação que sustentam crescimento previsível.",url:"/impact-summit-brasil/cases",keywords:"cases impact summit brasil, revenue architecture cases, growth architecture education"},headerButtonText:"INSCREVA-SE",headerButtonHref:"/impact-summit-brasil/inscricao"}},en:{event:{seo:Nu.en.seo,headerButtonText:"REGISTER",headerButtonHref:"/impact-summit-brasil/inscricao",confirmedS
121peakersTitle:"Confirmed speakers",salesAlert:"Ticket sales are open!",testimonialAltSuffix:"testimonial"},agenda:{seo:{title:"Agenda | Impact Summit Brazil",description:"Explore the Impact Summit Brazil agenda with full-day timeline, key themes, speakers and venue details.",url:"/en/impact-summit-brasil/agenda",keywords:"impact summit brazil agenda, impact summit program, impact summit speakers"},headerButtonText:"REGISTER",eyebrow:"Impact Summit Brazil 2026",loadingLabel:"Loading agenda",loadingMessage:"Fetching the latest schedule.",emptyLabel:"Agenda unavailable",emptyMessage:"The schedule could not be found right now.",errorLabel:"Failed to load agenda",errorMessage:"We could not load the agenda right now.",scheduleNoticeLabel:"Important notice",scheduleNotice:"Schedule subject to change until the event day.",retryLabel:"Try again",fallbackMessage:"Showing the reference schedule.",fallbackNote:"Reference schedule shown while the official agenda is loading.",dateLabel:"September 2, 2026",timeLabel:"9AM to 6PM",placeLabel:"Cubo Itau · Sao Paulo"},sponsors:{seo:{title:"Sponsors | Impact Summit Brazil",description:"Discover sponsorship opportunities, confirmed supporters and the executive prospectus for Impact Summit Brazil.",url:"/en/impact-summit-brasil/sponsors",keywords:"impact summit brazil sponsors, event sponsorship revenue, impact summit supporters"},headerButtonText:"CONTACT US",headerButtonHref:"mailto:[email protected]",contactTitle:"Want to sponsor Impact Summit Brazil?",contactInstructions:'Send an email with the subject "Impact Summit Brazil Sponsorship" including your name, company and package of interest. Our team will reply within 2 business days.',sponsorshipMailSubject:"Impact Summit Brazil Sponsorship"},registration:{seo:{title:"Register | Impact Summit Brazil",description:"Register for Impact Summit Brazil 2026 and secure priority participation in the event.",url:"/en/impact-summit-brasil/inscricao",keywords:"register impact summit brazil, growth architecture event registration"},headerButtonText:"VIEW EVENT",headerButtonHref:"/impact-summit-brasil",loadingMessage:"Submitting registration...",successMessage:"Registration submitted successfully!",errorMessage:"An error occurred while sending your registration. Please try again.",successEmailNote:"New registration received for Impact Summit Brazil 2026.",emailSubjectPrefix:"New registration - Impact Summit Brazil -",checkout:{lotsTitle:"Available lots",loadingLots:"Loading lots...",noLots:"No lots found.",available:"Available",closed:"Lot closed",closedDatePrefix:"Closed on",comingSoon:"Coming soon",openingDatePrefix:"Opens on",countdownPrefix:"Ends in",countdownDays:"Days",countdownHours:"Hours",countdownMinutes:"Min",countdownSeconds:"Sec",quantityLabel:"Quantity",quantityAriaLabel:"Order quantity",subtotalLabel:"Subtotal",discountLabel:"Discount",totalLabel:"Total",selectPlaceholder:"Select",confirmLabel:"I confirm that I currently hold a senior leadership role. I understand that the data will be checked to verify the profile suited for the event and that the paid amount will be automatically refunded if it is not a fit.",submitButtonText:"Submit registration",secureNote:"Secure checkout - SSL encrypted",successBadge:"Registration sent",successTitle:"Your registration has been processed",successMessage:"You will soon receive a link to continue to payment.",successSupportPrefix:"Thank you,",successSupportSuffix:"Your registration was successfully recorded and will remain pending the next step.",newRegistrationButtonText:"Event Agenda",successActionHref:"/en/impact-summit-brasil/agenda",successSecondaryActionText:"Make a new purchase",successSecondaryActionHref:"/en/impact-summit-brasil/inscricao",loadingError:"We could not load the lots.",noLotsFound:"No lots found.",requiredFieldError:"Required field.",linkedinError:"Please enter a valid LinkedIn URL.",leaderConfirmError:"You need to confirm that you are a leader and understand the conditions."},faqTitle:"Questions about registration",faqDescription:"Check the most frequent questions about registration and event participation.",leaderGateLabel:"I confirm that I currently hold a senior leadership role"},faq:{seo:{title:"FAQ | Impact Summit Brazil",description:"Review all Impact Summit Brazil FAQs and practical information about venue, logistics and contact.",url:"/en/impact-summit-brasil/faq",keywords:"impact summit brazil faq, event questions, venue and logistics"},headerButtonText:"REGISTER",headerButtonHref:"/impact-summit-brasil/inscricao"},cases:{seo:{title:"Cases | Impact Summit Brazil",description:"Explore the cases presented at Impact Summit Brazil and the education pillars that support predictable growth.",url:"/en/impact-summit-brasil/cases",keywords:"impact summit brazil cases, revenue architecture case studies, growth architecture education"},headerButtonText:"REGISTER",headerButtonHref:"/impact-summit-brasil/inscricao"}}},g_={pt:{heroData:vn,agendaData:Ne,aboutOverviewData:rb,aboutColumnsData:Wi,mainThemesData:zi,sponsorshipData:Us,prospectusData:ib,preRegistrationFormData:yn,faqData:
121Hi,supportersData:Tu,speakersData:nb,secondarySpeakersData:Au,momentsData:Cu,testimonialsData:Vi,locationData:_u,educationData:Gi,successCasesData:Vr},en:{heroData:XT,agendaData:o_,aboutOverviewData:ZT,aboutColumnsData:e_,mainThemesData:l_,sponsorshipData:d_,prospectusData:m_,preRegistrationFormData:h_,faqData:p_,supportersData:t_,speakersData:n_,secondarySpeakersData:r_,momentsData:i_,testimonialsData:a_,locationData:s_,educationData:c_,successCasesData:u_}};function v_(e){if(!e)return"pt";const t=String(e).toLowerCase().trim();return QT.includes(t)?t:"pt"}function gr(e){const t=v_(e);return{locale:t,...g_[t],copy:Nu[t],pageCopy:f_[t]}}function Pp({locale:e="pt"}){w.useEffect(()=>{window.scrollTo(0,0)},[]);const{heroData:t,aboutOverviewData:n,speakersData:r,secondarySpeakersData:i,aboutColumnsData:a,testimonialsData:o,locationData:l,momentsData:c,supportersData:u,pageCopy:d}=gr(e),h=d.event,m="/impact-summit-brasil/inscricao",p=f=>!f||!Ea(f)?f:$t(f,e);return s.jsxs("div",{className:"impact-summit-brasil-page",children:[s.jsx(ye,{title:h.seo.title,description:h.seo.description,image:"/images/og/home.jpg",url:h.seo.url,keywords:h.seo.keywords}),s.jsx(Se,{buttonText:h.headerButtonText,buttonHref:m,showImpactSummitButton:!0}),s.jsx(de,{id:"hero",noBorder:!0,children:s.jsx(ne,{children:s.jsxs("div",{className:"impact-summit-brasil-hero",children:[s.jsxs("div",{className:"impact-summit-brasil-hero-content",children:[s.jsx("img",{className:"impact-summit-brasil-event-logo",src:"/impact-summit-medias/impact-summit-logo.png",alt:"Impact Summit Brasil 2026"}),s.jsx(P,{className:"impact-summit-brasil-date",children:t.dateLocation}),s.jsx(P,{className:"impact-summit-brasil-description",maxWidth:"980px",children:t.description}),s.jsx(ee,{as:"a",href:p(t.primaryButtonHref),variant:"primary",children:t.primaryButtonText}),s.jsx(P,{className:"impact-summit-brasil-alert",children:h.salesAlert})]}),s.jsx("div",{className:"impact-summit-brasil-hero-media",children:s.jsx("img",{src:t.imageSrc,alt:t.imageAlt})})]})})}),s.jsx(hi,{id:"sobre",title:n.title,subtitle:n.subtitle,boxes:n.boxes,paragraphs:n.paragraphs}),s.jsx(Lt,{columns:a.columns}),s.jsx(de,{id:"apoio",noBorder:!0,inverted:!0,children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:u.title}),s.jsx("div",{className:"impact-summit-brasil-supporter-tiers",children:u.tiers.map(f=>s.jsxs("div",{className:`impact-summit-brasil-supporter-tier impact-summit-brasil-supporter-tier--${f.rank}`,children:[s.jsx("p",{className:"impact-summit-brasil-supporter-tier-label",children:f.label}),s.jsx("div",{className:"impact-summit-brasil-supporter-tier-items",children:f.items.map(v=>s.jsx("article",{className:`impact-summit-brasil-supporter-card impact-summit-brasil-supporter-card--tier-${f.rank}`,children:s.jsx("a",{href:v.link,target:"_blank",rel:"noopener noreferrer",className:"impact-summit-brasil-supporter-link",children:s.jsx("img",{src:v.logoSrc,alt:v.logoAlt,className:"impact-summit-brasil-supporter-logo"})})},v.name))})]},f.label))}),s.jsx("div",{className:"impact-summit-brasil-supporter-cta",children:s.jsx(ee,{as:"a",href:p("/impact-summit-brasil/sponsors"),variant:"primary",children:u.ctaButtonText})})]})}),s.jsx(de,{id:"palestrantes",noBorder:!0,children:s.jsxs(ne,{children:[s.jsx(K,{level:2,className:"impact-summit-brasil-speakers-title",children:r.title}),s.jsx(K,{level:2,className:"impact-summit-brasil-speakers-subtitle",children:h.confirmedSpeakersTitle}),s.jsx(kt,{columns:2,gap:"24px",children:r.items.map(f=>s.jsxs("article",{className:"impact-summit-brasil-speaker-card",children:[s.jsx("img",{src:f.photoSrc,alt:f.photoAlt,className:"impact-summit-brasil-speaker-photo"}),s.jsxs("a",{href:f.linkedinHref,target:"_blank",rel:"noopener noreferrer",className:"impact-summit-brasil-speaker-name-with-icon",children:[s.jsx(K,{level:3,children:f.name}),s.jsx(nn,{})]}),s.jsx(P,{className:"impact-summit-brasil-speaker-role",children:f.role}),s.jsx(P,{children:f.description})]},f.name))})]})}),s.jsx(de,{id:"palestrantes-secundarios",noBorder:!0,children:s.jsx(ne,{children:s.jsx("div",{className:"impact-summit-brasil-secondary-speakers-wrapper",children:i.items.map(f=>s.jsxs("article",{className:"impact-summit-brasil-secondary-speaker-card",children:[s.jsx("img",{src:f.photoSrc,alt:f.photoAlt,className:"impact-summit-brasil-secondary-speaker-photo"}),s.jsxs("a",{href:f.linkedinHref,target:"_blank",rel:"noopener noreferrer",className:"impact-summit-brasil-secondary-speaker-name-with-icon",children:[s.jsx(K,{level:4,children:f.name}),s.jsx(nn,{})]}),s.jsx(P,{className:"impact-summit-brasil-secondary-speaker-description",children:f.description})]},f.name))})})}),s.jsx(de,{id:"momentos",noBorder:!0,children:s.jsx(ne,{children:s.jsxs("div",{className:"impact-summit-brasil-about-moments",children:[s.jsx(K,{level:2,children:c.title}),s.jsx(P,{maxWidth:"900px",children:c.description}),s.jsx("div",{className:"impact-summit-brasil-about-moments-grid",children:c.photos.map(f=>s.jsx("figure",{className:"impact-summit-brasil-about-moment-card",children:s.jsx("img",{src:f.src,alt:f.caption})},f.src))})]})})}),s.jsx(de,{id:"depoimentos",inverted:!0,children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:o.title}),s.jsx(K,{level:4,children:o.description}),s.jsx(kt,{columns:3,gap:"20px",children:o.items.map(f=>s.jsxs("article",{className:"impact-summit-brasil-testimonial-card",children:[s.jsx(ra,{href:f.videoHref,thumbnail:f.videoThumbnail,alt:`${f.name} - ${h.testimonialAltSuffix}`,orientation:"vertical",showBorder:!0,className:"testimonial-video"}),s.jsxs(P,{className:"impact-summit-brasil-testimonial-quote",children:['"',f.quote,'"']}),s.jsx(K,{level:3,className:"impact-summit-brasil-testimonial-name",children:f.name}),s.jsx(P,{className:"impact-summit-brasil-testimonial-role",children:f.role}),s.jsx(P,{className:"impact-summit-brasil-testimonial-company",children:f.company})]}
121,`${f.name}-${f.company}`))})]})}),s.jsx(de,{id:"local",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:l.title}),s.jsxs("div",{className:"impact-summit-brasil-location-layout",children:[s.jsxs("div",{className:"impact-summit-brasil-location-main",children:[s.jsx("img",{src:"/impact-summit-medias/cubo-3.jpg",alt:"Cubo Itaú",className:"impact-summit-brasil-location-image"}),s.jsxs("div",{className:"impact-summit-brasil-location-info-card",children:[s.jsx(P,{children:l.infrastructureText}),s.jsx(K,{level:3,children:l.addressTitle}),l.addressLines.map(f=>s.jsx(P,{className:"impact-summit-brasil-location-line",children:f},f)),s.jsx(ee,{as:"a",href:l.mapButtonHref,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:l.mapButtonText})]})]}),s.jsx("div",{className:"impact-summit-brasil-location-side",children:l.gallery.filter(f=>f.src!=="/impact-summit-medias/cubo-3.jpg").map(f=>s.jsx("img",{src:f.src,alt:f.alt,className:"impact-summit-brasil-location-side-image"},f.src))})]})]})}),s.jsx(je,{})]})}const y_="https://ykezpkrujtbtczhnmtuq.supabase.co",b_="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let Ru=null;Ru=qt(y_,b_);const w_=async({headerRow:e=1,spreadsheetId:t="",sheetName:n=""}={})=>{var r,i;if(!Ru)return console.error("Supabase client not initialized. Check VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY"),{success:!1,error:"Configuração do Supabase não encontrada"};try{const a={headerRow:e};t&&(a.spreadsheetId=t),n&&(a.sheetName=n);const{data:o,error:l}=await Ru.functions.invoke("get-agenda",{body:a});return l?(console.error("Error calling get-agenda Edge Function:",l),{success:!1,error:l.message||"Erro ao buscar agenda"}):{success:(r=o==null?void 0:o.success)!=null?r:!0,total:(i=o==null?void 0:o.total)!=null?i:0,agenda:Array.isArray(o==null?void 0:o.agenda)?o.agenda:[]}}catch(a){return console.error("Error fetching agenda:",a),{success:!1,error:a.message||"Erro desconhecido ao buscar agenda"}}},x_="/impact-summit-brasil/inscricao";function S_(e){const t=e.time||"",n=e.inicio||"",r=e.fim||"",i=e.duracao||"";return n&&r?`${n} - ${r}`:n&&i?`${n} · ${i}`:n||i||t}function j_(e,t="pt"){return e.map((n,r)=>{const i=t==="en"?n.titulo_en||n.titulo_enc||n.titulo||n.title||n.speaker:n.titulo||n.title||n.speaker,a=t==="en"?n.descricao_en||n.descricao||n.description||"":n.descricao||n.description||"",o=i||`Atividade ${r+1}`,l=n.speaker||n.activity||"",c=n.moderacao||n.speaker||"";return{time:S_(n),title:o,activity:l,description:a||c||"",speaker:c,type:n.type||(c?"speaker":"event")}})}async function Mp(e,t){const n=await w_({});return n.success&&Array.isArray(n.agenda)&&n.agenda.length>0?{status:"ready",items:j_(n.agenda,t),source:"service",error:""}:{status:n.success?"empty":"error",items:[],source:"service",error:n.error||e.errorMessage}}function Bp({locale:e="pt"}){const[t,n]=w.useState({status:"loading",items:[],source:"service",error:""});w.useEffect(()=>{window.scrollTo(0,0)},[]);const{agendaData:r,mainThemesData:i,pageCopy:a}=gr(e),o=a.agenda,l=o.scheduleNoticeLabel||(e==="en"?"Important notice":"Aviso importante");w.useEffect(()=>{let p=!0;return(async()=>{n(x=>({...x,status:"loading",error:""}));const v=await Mp(o,e);p&&n(v)})(),()=>{p=!1}},[o,e]);const c=async()=>{n(f=>({...f,status:"loading",error:""}));const p=await Mp(o,e);n(p)},u=t.status==="loading",d=t.status!=="ready"&&t.status!=="loading",h=t.status==="empty"?o.emptyLabel:o.errorLabel,m=t.status==="empty"?o.emptyMessage:o.errorMessage;return s.jsxs("div",{className:"impact-summit-brasil-page",children:[s.jsx(ye,{title:o.seo.title,description:o.seo.description,image:"/images/og/home.jpg",url:o.seo.url,keywords:o.seo.keywords}),s.jsx(Se,{buttonText:o.headerButtonText,buttonHref:x_,showImpactSummitButton:!0}),s.jsx(de,{id:"agenda",noBorder:!0,children:s.jsxs(ne,{children:[s.jsxs("div",{className:"ist-agenda-hl-header",children:[s.jsx(P,{className:"impact-summit-brasil-agenda-compact-eyebrow",children:o.eyebrow}),s.jsx(K,{level:2,children:r.title}),s.jsxs("div",{className:"ist-agenda-hl-meta",children:[s.jsx("span",{className:"ist-agenda-hl-meta-item",children:o.dateLabel}),s.jsx("span",{className:"ist-agenda-hl-meta-sep","aria-hidden":"true",children:"·"}),s.jsx("span",{className:"ist-agenda-hl-meta-item",children:o.timeLabel}),s.jsx("span",{className:"ist-agenda-hl-meta-sep","aria-hidden":"true",children:"·"}),s.jsx("span",{className:"ist-agenda-hl-meta-item",children:o.placeLabel})]})]}),d?s.jsxs("div",{className:"ist-agenda-hl-supporting","aria-live":"polite",children:[s.jsx("span",{className:"ist-agenda-hl-supporting-prefix",children:h}),s.jsx("span",{className:"ist-agenda-hl-supporting-chip",children:m}),t.status!=="loading"?s.jsx(ee,{type:"button",variant:"outline-dark",size:"small",onClick:c,children:o.retryLabel}):null]}
121):null,s.jsx("div",{className:"ist-agenda-hl-list",children:u?s.jsxs("div",{className:"ist-agenda-hl-loading",role:"status","aria-live":"polite",children:[s.jsx("div",{className:"ist-agenda-hl-loading-spinner","aria-hidden":"true"}),s.jsxs("div",{className:"ist-agenda-hl-loading-copy",children:[s.jsx("span",{className:"ist-agenda-hl-loading-label",children:o.loadingLabel}),s.jsx("span",{className:"ist-agenda-hl-loading-message",children:o.loadingMessage})]})]}):t.items.length>0?t.items.map((p,f)=>s.jsxs("div",{className:`ist-agenda-hl-row ist-agenda-hl-row--${p.type}`,children:[s.jsx("span",{className:"ist-agenda-hl-time",children:p.time}),s.jsx("div",{className:"ist-agenda-hl-body",children:p.speaker?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"ist-agenda-hl-speaker-name",children:p.title}),s.jsx("span",{className:"ist-agenda-hl-speaker",children:p.speaker}),s.jsx("span",{className:"ist-agenda-hl-description",children:p.description})]}):p.activity?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"ist-agenda-hl-speaker",children:p.title}),s.jsx("span",{className:"ist-agenda-hl-subtitle",children:p.activity}),s.jsx("span",{className:"ist-agenda-hl-description",children:p.description})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"ist-agenda-hl-speaker-name",children:p.title}),s.jsx("span",{className:"ist-agenda-hl-description",children:p.description})]})})]},f)):s.jsxs("div",{className:"ist-agenda-hl-row ist-agenda-hl-row--event",children:[s.jsx("span",{className:"ist-agenda-hl-time",children:"--:--"}),s.jsx("div",{className:"ist-agenda-hl-body",children:s.jsx("span",{className:"ist-agenda-hl-tag",children:o.emptyMessage})})]})}),s.jsxs("div",{className:"ist-agenda-hl-alert",role:"note","aria-live":"polite",children:[s.jsx("span",{className:"ist-agenda-hl-alert-label",children:l}),s.jsx("p",{className:"ist-agenda-hl-alert-text",children:o.scheduleNotice})]})]})}),s.jsx(de,{id:"programacao",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:i.title}),s.jsx(kt,{columns:3,gap:"24px",children:i.themes.map(p=>s.jsxs("article",{className:"impact-summit-brasil-card",children:[s.jsx(K,{level:3,children:p.title}),s.jsx(P,{children:p.description})]},p.title))})]})}),s.jsx(je,{})]})}function $p({locale:e="pt"}){w.useEffect(()=>{window.scrollTo(0,0)},[]);const{sponsorshipData:t,prospectusData:n,supportersData:r,pageCopy:i}=gr(e),a=i.sponsors;return s.jsxs("div",{className:"impact-summit-brasil-page",children:[s.jsx(ye,{title:a.seo.title,description:a.seo.description,image:"/images/og/home.jpg",url:a.seo.url,keywords:a.seo.keywords}),s.jsx(Se,{buttonText:a.headerButtonText,buttonHref:a.headerButtonHref,showImpactSummitButton:!0}),s.jsx(de,{id:"apoio",noBorder:!0,inverted:!0,children:s.jsxs(ne,{children:[s.jsx("div",{className:"impact-summit-brasil-supporter-tiers",children:r.tiers.map(o=>s.jsxs("div",{className:`impact-summit-brasil-supporter-tier impact-summit-brasil-supporter-tier--${o.rank}`,children:[s.jsx("p",{className:"impact-summit-brasil-supporter-tier-label",children:o.label}),s.jsx("div",{className:"impact-summit-brasil-supporter-tier-items",children:o.items.map(l=>s.jsx("article",{className:`impact-summit-brasil-supporter-card impact-summit-brasil-supporter-card--tier-${o.rank}`,children:s.jsx("a",{href:l.link,target:"_blank",rel:"noopener noreferrer",className:"impact-summit-brasil-supporter-link",children:s.jsx("img",{src:l.logoSrc,alt:l.logoAlt,className:"impact-summit-brasil-supporter-logo"})})},l.name))})]},o.label))}),s.jsxs("div",{className:"impact-summit-brasil-sponsor-contact-box",children:[s.jsx(P,{className:"impact-summit-brasil-sponsor-contact-label",children:a.contactTitle}),s.jsx(K,{level:3,className:"impact-summit-brasil-sponsor-contact-email",children:s.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})}),s.jsx(P,{className:"impact-summit-brasil-sponsor-contact-instructions",children:a.contactInstructions})]})]})}),s.jsx(de,{id:"patrocinio",inverted:!0,children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:t.title}),s.jsx(kt,{columns:2,gap:"20px",children:t.packages.map(o=>s.jsxs("article",{className:`impact-summit-brasil-sponsor-card ${o.highlighted?"impact-summit-brasil-sponsor-card--highlighted":""}`,children:[s.jsx(P,{className:"impact-summit-brasil-sponsor-name",children:o.name}),s.jsx(K,{level:2,className:"impact-summit-brasil-sponsor-price",children:o.price}),s.jsx("div",{className:"impact-summit-brasil-sponsor-benefits",children:o.benef
121its.map(l=>s.jsx(P,{className:"impact-summit-brasil-sponsor-benefit",children:l},l))}),s.jsx(ee,{as:"a",href:`mailto:[email protected]?subject=${encodeURIComponent(a.sponsorshipMailSubject)}`,variant:"primary",children:o.buttonText})]},o.name))}),s.jsxs("div",{className:"impact-summit-brasil-prospectus-box",children:[s.jsx(P,{children:n.question}),s.jsx("a",{href:n.linkHref,target:"_blank",rel:"noopener noreferrer",className:"impact-summit-brasil-prospectus-link",children:n.linkText})]})]})}),s.jsx(je,{})]})}const k_="/impact-summit-brasil/inscricao";function Up({locale:e="pt"}){w.useEffect(()=>{window.scrollTo(0,0)},[]);const{successCasesData:t,educationData:n,pageCopy:r}=gr(e),i=r.cases;return s.jsxs("div",{className:"impact-summit-brasil-page",children:[s.jsx(ye,{title:i.seo.title,description:i.seo.description,image:"/images/og/home.jpg",url:i.seo.url,keywords:i.seo.keywords}),s.jsx(Se,{buttonText:i.headerButtonText,buttonHref:i.headerButtonHref||k_,showImpactSummitButton:!0}),s.jsx(de,{id:"educacao",inverted:!0,children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:n.title}),s.jsx(P,{maxWidth:"980px",children:n.description}),s.jsx(kt,{columns:3,gap:"24px",children:n.pillars.map(a=>s.jsxs("article",{className:"impact-summit-brasil-card",children:[s.jsx(K,{level:3,children:a.title}),s.jsx(P,{children:a.description})]},a.title))})]})}),s.jsx(de,{id:"cases",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:t.title}),s.jsx(P,{maxWidth:"900px",children:t.description}),s.jsx(kt,{columns:3,gap:"24px",children:t.metrics.map(a=>s.jsxs("article",{className:"impact-summit-brasil-stat-card",children:[s.jsx(P,{className:"impact-summit-brasil-stat-label",children:a.title}),s.jsx(K,{level:2,className:"impact-summit-brasil-stat-value",children:a.value}),s.jsx(P,{children:a.description})]},a.title))})]})}),s.jsx(je,{})]})}const E_="/impact-summit-brasil/inscricao";function qp({locale:e="pt"}){w.useEffect(()=>{window.scrollTo(0,0)},[]);const{faqData:t,locationData:n,pageCopy:r}=gr(e),i=r.faq;return s.jsxs("div",{className:"impact-summit-brasil-page",children:[s.jsx(ye,{title:i.seo.title,description:i.seo.description,image:"/images/og/home.jpg",url:i.seo.url,keywords:i.seo.keywords}),s.jsx(Se,{buttonText:i.headerButtonText,buttonHref:i.headerButtonHref||E_,showImpactSummitButton:!0}),s.jsx(de,{id:"faq",inverted:!0,children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:t.title}),s.jsx(P,{maxWidth:"980px",children:t.description}),s.jsx("div",{className:"impact-summit-brasil-faq-groups",children:t.groups.map(a=>s.jsxs("article",{className:"impact-summit-brasil-faq-group",children:[s.jsx(K,{level:3,className:"impact-summit-brasil-faq-group-title",children:a.title}),s.jsx("div",{className:"impact-summit-brasil-faq-items",children:a.items.map((o,l)=>s.jsxs("details",{className:"impact-summit-brasil-faq-item",open:l===0,children:[s.jsx("summary",{className:"impact-summit-brasil-faq-question",children:o.question}),s.jsx(P,{className:"impact-summit-brasil-faq-answer",children:o.answer})]},o.question))})]},a.title))})]})}),s.jsx(de,{id:"local",children:s.jsxs(ne,{children:[s.jsx(K,{level:2,children:n.title}),s.jsxs("div",{className:"impact-summit-brasil-location-layout",children:[s.jsxs("div",{className:"impact-summit-brasil-location-main",children:[s.jsx("img",{src:"/impact-summit-medias/cubo-3.jpg",alt:"Cubo Itaú",className:"impact-summit-brasil-location-image"}),s.jsxs("div",{className:"impact-summit-brasil-location-info-card",children:[s.jsx(P,{children:n.infrastructureText}),s.jsx(K,{level:3,children:n.addressTitle}),n.addressLines.map(a=>s.jsx(P,{className:"impact-summit-brasil-location-line",children:a},a)),s.jsx(ee,{as:"a",href:n.mapButtonHref,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:n.mapButtonText})]})]}),s.jsx("div",{className:"impact-summit-brasil-location-side",children:n.gallery.filter(a=>a.src!=="/impact-summit-medias/cubo-3.jpg").map(a=>s.jsx("img",{src:a.src,alt:a.alt,className:"impact-summit-brasil-location-side-image"},a.src))})]})]})}),s.jsx(je,{})]})}const A_="https://ykezpkrujtbtczhnmtuq.supabase.co",T_="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let Ou=null;const ql=new Map,Fp=5e3;Ou=qt(A_,T_);const __=async({headerRow:e=1,produto:t="",affiliateCode:n="",offerOnly:r=!1}={})=>
121{if(!Ou)return console.error("Supabase client not initialized. Check VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY"),{success:!1,error:"Configuração do Supabase não encontrada"};const i=JSON.stringify({headerRow:e,produto:t,affiliateCode:n,offerOnly:r}),a=ql.get(i),o=Date.now();if(a&&a.expiresAt>o)return a.promise?a.promise:a.result;const l=(async()=>{var u,d;try{const{data:h,error:m}=await Ou.functions.invoke("list-lote-sheet",{body:{headerRow:e,produto:t,affiliateCode:n,offerOnly:r}});return m?(console.error("Error calling list-lote-sheet Edge Function:",m),{success:!1,error:m.message||"Erro ao buscar lotes"}):{success:(u=h==null?void 0:h.success)!=null?u:!0,total:(d=h==null?void 0:h.total)!=null?d:0,lotes:Array.isArray(h==null?void 0:h.lotes)?h.lotes:[],affiliateDiscount:typeof(h==null?void 0:h.affiliateDiscount)=="number"?h.affiliateDiscount:null,affiliateDiscountSource:typeof(h==null?void 0:h.affiliateDiscountSource)=="string"?h.affiliateDiscountSource:null,affiliateDiscountIsUnique:typeof(h==null?void 0:h.affiliateDiscountIsUnique)=="boolean"?h.affiliateDiscountIsUnique:!1,data:h}}catch(h){return console.error("Error fetching lotes:",h),{success:!1,error:h.message||"Erro desconhecido ao buscar lotes"}}})();ql.set(i,{promise:l,expiresAt:o+Fp});const c=await l;return ql.set(i,{result:c,expiresAt:Date.now()+Fp}),c};function zp({image:e,title:t,subtitle:n,isReady:r,onPay:i}){return s.jsxs("div",{className:"ticket-card",children:[s.jsx("img",{src:e,alt:t,className:"ticket-card-img"}),s.jsx("div",{className:"ticket-card-body",children:s.jsxs("div",{className:"ticket-card-info",children:[s.jsx("div",{className:"ticket-card-title",children:t}),n&&s.jsx("div",{className:"ticket-card-sub",children:n})]})})]})}const Wp="impact-submmit-brasil-2026",Vp="(max-width: 900px)";function Fl(e){return e?/^(https?:\/\/)?(www\.)?linkedin\.com\/(in|company|school)\/[\w-]+\/?$/i.test(e.trim()):!0}function Hp(e){const t={},n=r=>{var i;r.type==="radio"&&((i=r.options)!=null&&i.length)?t[r.name]=r.options[0].value:r.type==="checkbox"?t[r.name]=!1:t[r.name]=""};return e.forEach(r=>{r.gridColumns&&r.fields?r.fields.forEach(n):n(r)}),t}function Gn(e){return typeof e!="number"||Number.isNaN(e)?"R$ 0,00":new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e)}function Ve(e){const t=Number(e);return Number.isFinite(t)?t:0}function Rr(e,t){const n=Ve(e),r=Ve(t);return r<=0?0:r<=100?n*r/100:r}function C_(e){const t=Ve(e);return t<=0?"":t<=100?`${t}% off`:`${Gn(t)} off`}function Gp(e){var i;if(e&&e.valorFinal!=null)return Ve(e.valorFinal);if(e&&e.valor!=null)return Ve(e.valor);const t=Ve((i=e==null?void 0:e.precoBase)!=null?i:e==null?void 0:e.valor),n=Ve(e==null?void 0:e.desconto),r=Rr(t,n);return Math.max(t-r,0)}function ab(e){if(!e)return"";const t=String(e),n=t.match(/^(\d{4})-(\d{2})-(\d{2})/);if(n){const[,i,a,o]=n;return`${o}/${a}/${i}`}const r=new Date(t);return r instanceof Date&&!Number.isNaN(r.getTime())?r.toLocaleDateString("pt-BR"):""}function sb(e,t=Date.now()){if(!(e!=null&&e.fim))return!1;const n=new Date(e.fim);return Number.isNaN(n.getTime())?!1:(n.setUTCHours(23,59,59,999),t>n.getTime())}function ob(e,t=Date.now()){if(!(e!=null&&e.inicio))return!1;const n=new Date(e.inicio);return Number.isNaN(n.getTime())?!1:(n.setUTCHours(0,0,0,0),t<n.getTime())}function Tr(e,t=Date.now()){return!sb(e,t)&&!ob(e,t)}function Kp(e,t=Date.now()){if(!(e!=null&&e.fim))return null;const n=new Date(e.fim);if(Number.isNaN(n.getTime()))return null;n.setUTCHours(23,59,59,999);const r=n.getTime()-t;if(r<=0)return null;const i=Math.floor(r/1e3),a=Math.floor(i/86400),o=Math.floor(i%86400/3600),l=Math.floor(i%3600/60),c=i%60;return{days:a,hours:o,minutes:l,seconds:c}}function ws(e){const t=Number.isFinite(e)?e:0;return String(Math.max(t,0)).padStart(2,"0")}function N_(e){return e!=null&&e.inicio?ab(e.inicio):""}function R_(e){return e!=null&&e.fim?ab(e.fim):""}function Jp(){var e;return typeof window=="undefined"?null:Wd(Wp)||((e=qa())==null?void 0:e[Wp])||null}const O_={loadingLots:"Carregando lotes...",noLots:"Nenhum lote encontrado.",available:"Disponível",closed:"Lote encerrado",closedDatePrefix:"Encerrado em",comingSoon:"EM BREVE",openingDatePrefix:"Abertura em",countdownPrefix:"Termina em",quantityLabel:"Quantidade",subtotalLabel:"Subtotal",discountLabel:"Desconto",totalLabel:"Total",confirmLabel:"Confirmo que sou líder na minha organização. Estou ciente de que os dados serão checados para verificação do perfil adequado ao evento e que o valor pago será devolvido automaticamente, caso não seja aderente.",submitButtonText:"Realizar Inscrição",secureNote:"Secure Checkout - SSL Encrypted",successBadge:"Inscrição enviada",successTitle:"Sua inscrição foi processada",successMessage:"Em breve você receberá um link para continuar para o pagamento.",successSupportPrefix:"Obrigado,",successSupportSuffix:"Sua inscrição foi registrada com sucesso e ficará aguardando o próximo passo.",newRegistrationButtonText:"Realizar nova inscrição",successActionHref:null,successSecondaryActionText:null,successSecondaryActionHref:null,loadingError:"Não foi possível carregar os lotes.",noLotsFound:"Nenhum lote encontrado.",requiredFieldError:"Campo obrigatório.",linkedinError:"Insira uma URL válida do LinkedIn.",leaderConfirmError:"Você precisa confirmar que é líder e está ciente das condições.",mobileStepLotsTitle:"Escolha do lote",mobileStepSummaryTitle:"Quantidade e total",mobileStepInfoTitle:"Informações e pagamento",mobileStepIndicator:"Etap
121a {current} de {total}",mobileNextButtonText:"Próximo",mobileBuyButtonText:"Comprar",mobileBackButtonText:"Voltar"};function I_({eventName:e,produto:t,onComplete:n,copy:r={},fields:i,fixedProduct:a=null,offerOnly:o=!1}){var am;const l={...O_,...r},c=i||yn.fields,u=!!a,[d,h]=w.useState(()=>{var _,q;return((q=(_=a==null?void 0:a.options)==null?void 0:_[0])==null?void 0:q.id)||""}),m=(am=a==null?void 0:a.options)==null?void 0:am.find(_=>_.id===d),p=w.useMemo(()=>{if(!a)return null;const _=Ve(a.precoBase),q=Ve(a.desconto),F=Math.max(_-Rr(_,q),0);return{rowNumber:"fixed-offer",nome:a.name,nomeLote:a.name,subtitulo:a.subtitle,dataOferta:(m==null?void 0:m.date)||"",precoBase:_,desconto:q,valorFinal:F,valor:F,total:F,status:"ATIVO",fim:"2026-09-01",produto:t}},[a,t,m]),[f,v]=w.useState(()=>Hp(c)),[x,y]=w.useState(()=>Jp()),[g,b]=w.useState(0),[j,A]=w.useState(!1),[S,k]=w.useState(()=>typeof window=="undefined"||!window.matchMedia?!1:window.matchMedia(Vp).matches),[E,I]=w.useState(1),$=w.useRef(null),[D,W]=w.useState(1),[V]=w.useState("standard"),[L,C]=w.useState({}),[U,N]=w.useState(!1),[T,R]=w.useState(!1),[B,J]=w.useState(null),[te,ae]=w.useState(()=>p?[p]:[]),[M,re]=w.useState(()=>p?p.rowNumber:null),[Q,pe]=w.useState(!u),[ce,ft]=w.useState(""),[le,Xe]=w.useState(()=>Date.now()),gi=w.useMemo(()=>typeof(x==null?void 0:x.codigo)=="string"?x.codigo.trim():"",[x]),Yo=w.useMemo(()=>c.flatMap(_=>_.gridColumns?_.fields:[_]),[c]);w.useEffect(()=>{let _=!0;async function q(){if(u){ae(p?[p]:[]),re((p==null?void 0:p.rowNumber)||""),ft(""),pe(!1);return}pe(!0),ft("");const F=await __({produto:o?"Impact Summit Brasil 2026 + Revenue Architecture":t,affiliateCode:gi,offerOnly:o});if(_){if(!F.success)ae([]),b(0),A(!1),ft(F.error||l.loadingError);else{const se=o?(F.lotes||[]).filter(Le=>[Le.nomeLote,Le.nome,Le.produto,Le.status].filter(Boolean).some(Me=>String(Me).toLocaleUpperCase("pt-BR").includes("OFERTA"))):F.lotes||[],Jt=se.filter(Le=>Tr(Le));ae(se),b(Ve(F.affiliateDiscount)),A(typeof F.affiliateDiscountIsUnique=="boolean"?F.affiliateDiscountIsUnique:!1),re(Le=>{var Me;if(Le){const At=se.find(Zo=>String(Zo.rowNumber)===String(Le));if(At&&Tr(At))return Le}return String(((Me=Jt[0])==null?void 0:Me.rowNumber)||"")})}pe(!1)}}return q(),()=>{_=!1}},[gi,p,u,o,t]),w.useEffect(()=>{const _=setInterval(()=>{Xe(Date.now())},1e3);return()=>{clearInterval(_)}},[]),w.useEffect(()=>{if(typeof window=="undefined"||!window.matchMedia)return;const _=window.matchMedia(Vp),q=F=>{k(F.matches),F.matches||I(1)};return k(_.matches),_.addEventListener?(_.addEventListener("change",q),()=>_.removeEventListener("change",q)):(_.addListener(q),()=>_.removeListener(q))},[]),w.useEffect(()=>{if(!S||U)return;const _=()=>{typeof window!="undefined"&&(window.scrollTo({top:0,left:0,behavior:"smooth"}),document.documentElement&&(document.documentElement.scrollTop=0),document.body&&(document.body.scrollTop=0))};_();const q=window.requestAnimationFrame(_);return()=>{window.cancelAnimationFrame(q)}},[S,E,U]),w.useEffect(()=>{const _=()=>{const q=Jp();y(F=>{const se=(F==null?void 0:F.codigo)||"",Jt=(q==null?void 0:q.codigo)||"",Le=(F==null?void 0:F.texto_descritivo)||"",Me=(q==null?void 0:q.texto_descritivo)||"";return se===Jt&&Le===Me?F:q})};return _(),window.addEventListener("wbd:affiliate-updated",_),()=>{window.removeEventListener("wbd:affiliate-updated",_)}},[]),w.useEffect(()=>{if(!te.length)return;const _=te.find(se=>String(se.rowNumber)===String(M));if(_&&Tr(_,le))return;const q=te.find(se=>Tr(se,le)),F=String((q==null?void 0:q.rowNumber)||"");F!==String(M||"")&&re(F)},[te,le,M]);const Y=w.useMemo(()=>(u?p:te.find(_=>String(_.rowNumber)===String(M)))||null,[p,u,te,M]),Qo=!!(Y&&(u||Tr(Y,le))),st=w.useMemo(()=>{var _;return Ve((_=Y==null?void 0:Y.precoBase)!=null?_:Y==null?void 0:Y.valor)},[Y]),vi=w.useMemo(()=>Ve(Y==null?void 0:Y.desconto),[Y]),wb=w.useMemo(()=>{const _=(Y==null?void 0:Y.nome)||(Y==null?void 0:Y.nomeLote)||`Lote ${M}`;return vi>0?`${vi}% Off - ${_}`:l.discountLabel},[l.discountLabel,vi,Y,M]),Ha=w.useMemo(()=>{var F;const _=Y&&Y.valorFinal!=null,q=Ve((F=Y==null?void 0:Y.valorFinal)!=null?F:Y==null?void 0:Y.valor);return _&&st>0?Math.max(st-q,0):Rr(st,vi)},[vi,Y,st]),Kt=w.useMemo(()=>j&&g>0,[j,g]),Ga=w.useMemo(()=>Kt?st:Gp(Y),[Y,st,Kt]),yi=w.useMemo(()=>Ve(g),[g]),Un=w.useMemo(()=>yi>0?Rr(Kt?st:Ga,yi):0,[yi,Ga,st,Kt]),bi=w.useMemo(()=>Math.max(Kt?st-Un:Ga-Un,0),[Un,Ga,st,Kt]),Ze=w.useMemo(()=>!Number.isInteger(D)||D<1?1:D,[D]),xb=w.useMemo(()=>st*Ze,[Ze,st]),Sb=w.useMemo(()=>Ha*Ze,[Ha,Ze]),jb=w.useMemo(()=>bi*Ze,[Ze,bi]),Zd=_=>{const q=Number.isInteger(_)&&_>=1?_:1;W(q),L.quantidade&&C(F=>({...F,quantidade:null}))},kb=()=>{Zd(Ze-1)},Eb=()=>{Zd(Ze+1)},wi=_=>{const{name:q,value:F,type:se,checked:Jt,id:Le}=_.target,Me=Le||q;v(se==="checkbox"?At=>({...At,[Me]:Jt}):At=>({...At,[Me]:F})),L[Me]&&C(At=>({...At,[Me]:null}))},Ab=(_,q)=>{let F=_.target.value.replace(/\D/g,"");F.length>11&&(F=F.slice(0,11)),F.length>2&&(F=`(${F.slice(0,2)}) ${F.slice(2)}`),F.length>10&&(F=`${F.slice(0,10)}-${F.slice(10)}`),v(se=>({...se,[q]:F}))},Tb=()=>{const _={};return Yo.forEach(q=>{if(q.required){const F=f[q.name];q.type==="checkbox"?F||(_[q.name]=l.requiredFieldError):(!F||String(F).trim()==="")&&(_[q.name]=l.requiredFieldError)}q.type==="linkedin"&&!Fl(f[q.name])&&(_[q.name]=l.linkedinError)}),C(_),Object.keys(_).length===0},em=async _=>{if(_&&_.preventDefault&&_.preventDefault(),!Tb())return;if(!T){J(l.leaderConfirmError);return}if(!Qo){ft(l.noLotsFound||"Nenhum lote encontrado.");return}const q=Kt?0:Ha,F={...f,quantidade:Ze,produto:t,eventName:e,ticketType:V,lote:Y?{rowNumber:Y.rowNumber,nome:Y.nome,nomeLote:Y.nomeLote,precoBase:st,descontoLote:q,descontoLoteTotal:q*Ze,descontoAfiliado:Un,descontoAfiliadoTotal:Un*Ze,valorFinal:bi,valor:bi,total:bi,status:Y.status||"",inicio:Y.inicio||"",fim:Y.f
121im||"",dataOferta:Y.dataOferta||(o?Y.inicio:""),produto:Y.produto||t}:null};N(!0),typeof n=="function"?await Promise.resolve(n(F))!==!0&&N(!1):N(!1)},tm=()=>{if(!Qo){ft(l.noLotsFound||"Nenhum lote encontrado.");return}ft(""),I(2)},_b=()=>{I(3)},Cb=()=>{I(1)},Nb=()=>{I(2)},nm=()=>{var _,q,F;v(Hp(c)),W(1),C({}),N(!1),R(!1),J(null),re(String(((_=te.find(se=>Tr(se,le)))==null?void 0:_.rowNumber)||"")),I(1),h(((F=(q=a==null?void 0:a.options)==null?void 0:q[0])==null?void 0:F.id)||""),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"})},rm=w.useMemo(()=>{for(const _ of Yo){if(_.required){const q=f[_.name];if(_.type==="checkbox"){if(!q)return!1}else if(!q||String(q).trim()==="")return!1}if(_.type==="linkedin"&&!Fl(f[_.name]))return!1}return!0},[f,V,Yo]),Xo=_=>{var F;const q={id:_.name,name:_.name,className:"form-section-control",required:_.required,placeholder:_.placeholder||"",value:f[_.name]||""};switch(_.type){case"text":case"email":return s.jsx("input",{...q,type:_.type,onChange:wi});case"linkedin":return s.jsxs(s.Fragment,{children:[s.jsx("input",{...q,type:"url",onChange:wi,onBlur:()=>{Fl(f[_.name])||C(se=>({...se,[_.name]:l.linkedinError}))}}),L[_.name]&&s.jsx("span",{className:"form-section-error",children:L[_.name]})]});case"tel":return s.jsx("input",{...q,type:"tel",maxLength:15,onChange:se=>Ab(se,_.name)});case"select":return s.jsxs("select",{...q,onChange:wi,children:[s.jsx("option",{value:"",children:_.placeholder||l.selectPlaceholder}),(F=_.options)==null?void 0:F.map(se=>s.jsx("option",{value:se.value,children:se.label},se.value))]});case"textarea":return s.jsx("textarea",{...q,rows:_.rows||4,onChange:wi});case"checkbox":return s.jsxs("label",{className:"form-section-checkbox-item",children:[s.jsx("input",{type:"checkbox",id:_.name,name:_.name,checked:f[_.name]||!1,onChange:wi}),_.label]});default:return null}},im=x?x.texto_descritivo||`Você possui um benefício aplicado por ${x.codigo}`:"",Rb=typeof window!="undefined"&&l.successSecondaryActionHref&&window.location.pathname===l.successSecondaryActionHref;u&&Kp(p,le);const Ob=!u&&(!S||E===1),Ib=!1,xi=!S||E===2,vr=!S||E===3;return l.mobileStepIndicator.replace("{current}",String(E)).replace("{total}","3"),Q?s.jsx(ne,{className:"checkout-root","aria-labelledby":"checkout-title",maxWidth:"100%",children:s.jsx("div",{className:"checkout-inner",children:s.jsxs("div",{className:"checkout-loading",role:"status","aria-live":"polite",children:[s.jsx("div",{className:"checkout-loading-spinner","aria-hidden":"true"}),s.jsxs("div",{className:"checkout-loading-copy",children:[s.jsx("h1",{id:"checkout-title",className:"checkout-title",children:e}),s.jsx("p",{className:"checkout-loading-message",children:l.loadingLots})]})]})})}):s.jsx(ne,{className:"checkout-root","aria-labelledby":"checkout-title",maxWidth:"100%",children:s.jsx("div",{className:"checkout-inner",ref:$,children:U?s.jsxs("div",{className:"checkout-success",children:[s.jsxs("div",{className:"checkout-processing-card",role:"status","aria-live":"polite",children:[s.jsx("div",{className:"checkout-processing-spinner"}),s.jsxs("div",{className:"checkout-processing-copy",children:[s.jsx("div",{className:"checkout-processing-badge",children:l.loadingMessage||"Realizando inscrição..."}),s.jsx("h2",{children:l.loadingMessage||"Realizando inscrição..."}),s.jsx("p",{className:"checkout-processing-text",children:"Estamos finalizando seu cadastro. Aguarde alguns segundos."})]})]}),s.jsxs("div",{className:"checkout-success-card",style:{display:"none"},children:[s.jsx("div",{className:"checkout-success-badge",children:l.successBadge}),s.jsx("h2",{children:l.successTitle}),s.jsx("p",{className:"checkout-success-message",children:l.successMessage}),s.jsxs("p",{className:"checkout-success-supporting-text",children:[l.successSupportPrefix," ",L_(f.nome||""),"."," ",l.successSupportSuffix]}),s.jsxs("div",{className:"checkout-success-actions",children:[l.successActionHref?s.jsx(ee,{variant:"primary",as:"link",to:l.successActionHref,className:"checkout-success-button",children:l.newRegistrationButtonText}):s.jsx(ee,{variant:"primary",as:"button",type:"button",onClick:nm,className:"checkout-success-button",children:l.newRegistrationButtonText}),l.successSecondaryActionHref&&l.successSecondaryActionText?Rb?s.jsx(ee,{variant:"secondary",as:"button",type:"button",onClick:nm,className:"checkout-success-link",children:l.successSecondaryActionText}):s.jsx(ee,{variant:"secondary",as:"link",to:l.successSecondaryActionHref,className:"checkout-success-link",children:l.successSecondaryActionText}):null]})]})]}):s.jsxs("div",{className:"checkout-grid",children:[s.jsxs("div",{className:"checkout-left",children:[S&&!u?s.jsx("div",{className:"checkout-mobile-top-card",children:s.jsx(zp,{image:(vn==null?void 0:vn.imageSrc)||"/impact-summit-medias/hero.svg",title:e,subt
121itle:(Y==null?void 0:Y.nomeLote)||(Y==null?void 0:Y.nome)||V||"Ingresso Standard",isReady:rm})}):s.jsx("h1",{id:"checkout-title",className:"checkout-title",children:e}),s.jsx("form",{className:"checkout-form",onSubmit:em,noValidate:!0,children:vr&&c.map((_,q)=>_.gridColumns&&_.fields?s.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${_.gridColumns}, 1fr)`,gap:"16px"},children:_.fields.map((F,se)=>s.jsxs("div",{className:"form-row",children:[F.label&&s.jsx("label",{htmlFor:F.name,children:F.label}),Xo(F),L[F.name]&&s.jsx("small",{className:"error",children:L[F.name]})]},se))},q):_.type==="checkbox"?s.jsxs("div",{className:"form-row",children:[Xo(_),L[_.name]&&s.jsx("small",{className:"error",children:L[_.name]})]},q):s.jsxs("div",{className:"form-row",children:[_.label&&s.jsx("label",{htmlFor:_.name,children:_.label}),Xo(_),L[_.name]&&s.jsx("small",{className:"error",children:L[_.name]})]},q))}),Ib,u&&S&&E===1&&s.jsx("div",{className:"checkout-mobile-step-actions",children:s.jsx(ee,{type:"button",variant:"primary",onClick:tm,children:l.mobileNextButtonText})}),Ob&&s.jsxs("section",{className:"checkout-lotes checkout-lotes-inline",children:[s.jsx("h3",{className:"checkout-lotes-title",children:o?"Oferta disponível":l.lotsTitle}),Q&&s.jsx("p",{className:"checkout-lotes-feedback",children:l.loadingLots}),!Q&&ce&&s.jsx("p",{className:"checkout-lotes-feedback checkout-lotes-feedback-error",children:ce}),!Q&&!ce&&te.length===0&&s.jsx("p",{className:"checkout-lotes-feedback",children:l.noLotsFound}),!Q&&!ce&&te.length>0&&s.jsx("div",{className:"checkout-lotes-list",role:"radiogroup","aria-label":"Seleção de lote",children:te.map(_=>{var um;const q=String(_.rowNumber),F=`checkout-lote-${q}`,se=Ve((um=_.precoBase)!=null?um:_.valor),Jt=Gp(_),Le=Ve(_.desconto),Me=Kt&&Le>0,At=Me?Rr(se,g):0,Zo=Me?At:se>0&&Jt>0?Math.max(se-Jt,0):Rr(se,Le),Lb=Me?Math.max(se-At,0):Jt,el=q===String(M),tl=sb(_,le),Ka=ob(_,le),nl=tl||Ka,Si=Kp(_,le),sm=Ka?N_(_):"",om=tl?R_(_):"",lm=Ka?sm?`${l.openingDatePrefix} ${sm}`:l.comingSoon:tl?om?`${l.closedDatePrefix} ${om}`:l.closed:"",rl=!nl,cm=Me?"":C_(Le);return s.jsxs("label",{htmlFor:F,className:`checkout-lote-card${el?" is-selected":""}${nl?" is-disabled":""}`,children:[s.jsx("input",{id:F,type:"radio",name:"checkout-lote",value:q,checked:el,disabled:nl,onChange:()=>re(q)}),s.jsxs("div",{className:"checkout-lote-card-content",children:[s.jsxs("div",{className:"checkout-lote-card-header",children:[s.jsxs("div",{className:"checkout-lote-main",children:[s.jsx("strong",{children:_.nomeLote||_.nome||`Lote ${q}`}),_.produto&&s.jsx("span",{className:"checkout-lote-product",children:_.produto})]}),s.jsxs("div",{className:"checkout-lote-badges",children:[cm&&s.jsx("span",{className:"checkout-lote-badge",children:cm}),Me&&g>0&&s.jsxs("span",{className:"checkout-lote-badge checkout-lote-badge-affiliate",children:[g,"% indicação"]}),rl&&s.jsx("span",{className:"checkout-lote-badge checkout-lote-badge-available",children:l.available})]})]}),rl&&Si?s.jsxs("div",{className:"checkout-lote-countdown","aria-live":"polite",children:[s.jsx("span",{className:"checkout-lote-countdown-prefix",children:l.countdownPrefix}),s.jsxs("div",{className:"checkout-lote-countdown-grid",children:[s.jsx("span",{className:"checkout-lote-countdown-item",children:s.jsxs("span",{className:"checkout-lote-countdown-box",children:[s.jsx("strong",{children:ws(Si.days)}),s.jsx("span",{className:"checkout-lote-countdown-label",children:l.countdownDays})]})}),s.jsx("span",{className:"checkout-lote-countdown-item",children:s.jsxs("span",{className:"checkout-lote-countdown-box",children:[s.jsx("strong",{children:ws(Si.hours)}),s.jsx("span",{className:"checkout-lote-countdown-label",children:l.countdownHours})]})}),s.jsx("span",{className:"checkout-lote-countdown-item",children:s.jsxs("span",{className:"checkout-lote-countdown-box",children:[s.jsx("strong",{children:ws(Si.minutes)}),s.jsx("span",{className:"checkout-lote-countdown-label",children:l.countdownMinutes})]})}),s.jsx("span",{className:"checkout-lote-countdown-item",children:s.jsxs("span",{className:"checkout-lote-countdown-box",children:[s.jsx("strong",{children:ws(Si.seconds)}),s.jsx("span",{className:"checkout-lote-countdown-label",children:l.countdownSeconds})]})})]})]}):null,lm&&s.jsx("p",{className:`checkout-lote-expired${Ka?" checkout-lote-coming-soon":""}`,children:lm}),s.jsxs("div",{className:"checkout-lote-prices",children:[Zo>0&&s.jsx("small",{children:Gn(se)}),s.jsx("strong",{children:Gn(Lb)})]}),S&&el&&rl&&s.jsx(ee,{type:"button",variant:"primary",className:"checkout-lote-buy-button",onClick:dm=>{dm.preventDefault(),dm.stopPropagation(),tm()},children:l.mobileBuyButtonText})]})]},q)})})]})]}),(xi||vr)&&s.jsx("aside",{className:"checkout-right",children:s.jsx("div",{className:"summary-card",children:s.jsxs("div",{className:"summary-body",children:[!S&&s.jsx(zp,{image:(vn==null?void 0:vn.imageSrc)||"/impact-summit-medias/hero.svg",title:e,subt
121itle:(Y==null?void 0:Y.nomeLote)||(Y==null?void 0:Y.nome)||V||"Ingresso Standard",isReady:rm}),x&&im&&g>0&&(!S||xi)&&s.jsx("div",{className:`checkout-affiliate${S&&xi?" checkout-affiliate-mobile-step2":""}`,role:"status","aria-live":"polite",children:s.jsx("p",{children:im})}),xi&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"summary-quantity",children:[s.jsx("label",{htmlFor:"checkout-quantity",children:l.quantityLabel}),s.jsxs("div",{className:"summary-quantity-stepper","aria-label":l.quantityAriaLabel,children:[s.jsx(ee,{type:"button",variant:"secondary",size:"small",className:"summary-quantity-stepper-button",onClick:kb,disabled:Ze<=1,"aria-label":"Diminuir quantidade",children:"-"}),s.jsx("output",{id:"checkout-quantity",className:"summary-quantity-value","aria-live":"polite","aria-atomic":"true",children:Ze}),s.jsx(ee,{type:"button",variant:"secondary",size:"small",className:"summary-quantity-stepper-button",onClick:Eb,"aria-label":"Aumentar quantidade",children:"+"})]}),L.quantidade&&s.jsx("small",{className:"error",children:L.quantidade})]}),s.jsxs("div",{className:"summary-totals",children:[s.jsxs("div",{className:"row",children:[s.jsx("span",{children:l.subtotalLabel}),s.jsx("span",{children:Gn(xb)})]}),Ha>0&&!Kt&&s.jsxs("div",{className:"row",children:[s.jsx("span",{children:wb}),s.jsxs("span",{children:["- ",Gn(Sb)]})]}),Un>0&&s.jsxs("div",{className:"row",children:[s.jsxs("span",{className:"summary-affiliate-discount",children:["Cupom de indicação",yi>0&&s.jsxs("span",{className:"summary-affiliate-discount-percent",children:[" ","(",yi,"%)"]})]}),s.jsxs("span",{className:"summary-affiliate-discount",children:["-"," ",Gn(Un*Ze)]})]}),s.jsxs("div",{className:"row total",children:[s.jsx("strong",{children:l.totalLabel}),s.jsx("strong",{children:Gn(jb)})]})]})]}),S&&xi&&s.jsxs("div",{className:"checkout-mobile-step-actions checkout-mobile-step-actions-split",children:[s.jsx(ee,{type:"button",variant:"secondary",onClick:Cb,children:l.mobileBackButtonText}),s.jsx(ee,{type:"button",variant:"primary",onClick:_b,children:l.mobileNextButtonText})]}),(vr||!S)&&s.jsxs("div",{className:"summary-confirmation",children:[s.jsxs("label",{className:"form-section-checkbox-item form-section-leader-checkbox",children:[s.jsx("input",{type:"checkbox",checked:T,onChange:_=>{R(_.target.checked),_.target.checked&&J(null)}}),s.jsx("span",{children:l.confirmLabel})]}),B&&s.jsx("small",{className:"error",children:B})]}),(vr||!S)&&s.jsxs("div",{className:"summary-pay",children:[S&&vr&&s.jsx(ee,{type:"button",variant:"secondary",onClick:Nb,className:"checkout-mobile-back-button",children:l.mobileBackButtonText}),s.jsx(ee,{variant:"primary",as:"button",onClick:()=>em(),disabled:!T||!Qo,children:l.submitButtonText})]}),(vr||!S)&&s.jsx("div",{className:"secure-note",children:s.jsx("small",{children:l.secureNote})})]})})})]})})})}function L_(e){return e?e.replace(/[&<>\"'`]/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"})[t]):""}const D_="https://ykezpkrujtbtczhnmtuq.supabase.co",P_="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let Iu=null;const Yp="impact-submmit-brasil-2026";Iu=qt(D_,P_);function zn(e,t=500){return typeof e!="string"?"":e.replace(/[\u0000-\u001F\u007F]/g,"").trim().slice(0,t)}function M_(e){const t=Number(e);return!Number.isInteger(t)||t<1?1:t}function B_(){var t;const e=Wd(Yp)||((t=qa())==null?void 0:t[Yp])||null;return(e==null?void 0:e.codigo)||""}function $_({checkoutData:e,pageUrl:t}){const n=(e==null?void 0:e.lote)||{},r=zn(n.produto||(e==null?void 0:e.produto)||(e==null?void 0:e.eventName)||"Impact Summit Brasil 2026",150),a=zn(n.nomeLote||n.nome||(e==null?void 0:e.ticketType)||"Ingresso Standard",100),o=M_((e==null?void 0:e.quantidade)||(e==null?void 0:e.quantity)||1),l=zn(e==null?void 0:e.nome,200),c=zn(e==null?void 0:e.email,254),u=zn(e==null?void 0:e.whatsapp,50),d=zn(e==null?void 0:e.linkedin,500),h=zn(B_(),500);return!r||!a||!l||!c||!u||!d?null:{produto:r,lote:a,quantidade:o,validade:"",link:"",status:"AGUARDANDO_LINK",nomeRecebedor:l,emailRecebedor:c,whatsappRecebedor:u,linkedin:d,referencia:h||""}}async function U_({checkoutData:e,pageUrl:t}={}){var r;if(!Iu)return{success:!1,error:"Supabase não configurado. Verifique VITE_SUPABASE_URL e VITE_SUPABASE_PUBLISHABLE_KEY"};const n=$_({checkoutData:e,pageUrl:t});if(!n)return{success:!1,error:"Payload inválido para create-request-link"};try{const{data:i,error:a}=await Iu.functions.invoke("create-request-link",{body:n});return a?{success:!1,error:a.message||"Erro ao chamar create-request-link"}:{success:(r=i==null?void 0:i.success)!=null?r:!0,affiliateDiscount:typeof(i==null?void 0:i.affiliateDiscount)=="number"?i.affiliateDiscount:null,data:i}}catch(i){return{success:!1,error:i instanceof Error?i.message:"Erro desconhecido ao criar request link"}}}function zl({locale:e="pt",isOffer:t=!1}){const n=hr(),{pageCopy:r,preRegistrationFormData:i}=gr(e),a=r.registration,o=$t(t?"/impact-summit-brasil/oferta/submitted":"/impact-summit-brasil/inscricao/submitted",e);w.useEffect(()=>{window.scrollTo(0,0)},[]);const l=u=>{const d=Number(u),h=Number.isFinite(d)?d:0;return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(h)},c=async u=>{var W,V,L,C,U,N,T,R,B,J,te,ae,M,re,Q;const d=Number(u==null?void 0:u.quantidade),h=Number.isInteger(d)&&d>0?d:1,m=Number((C=(L=(W=u==null?void 0:u.lote)==null?void 0:W.precoBase)!=null?L:(V=u==null?void 0:u.lote)==null?void 0:V.valor)!=null?C:0),p=Number.isFinite(m)?m:0,f=Number((R=(T=(U=u==null?void 0:u.lote)==null?void 0:U.valorFinal)!=null?T:(N=u==null?void 0:u.lote)==null?void 0:N.valor)!=null?R:p),v=Number.isFinite(f)?f:p,x=Number((B=u==null?void 0:u.lote)==null?void 0:B.descontoLote),y=Number.isFinite(x)?x:0,g=Number((J=u==null?void 0:u.lote)==null?void 0:J.descontoAfiliado),b=Number.isFinite(g)?g:0,j=Math.max(p-v,0),A=y*h,S=b*h,k=p*h,E=j*h,I=v*h;bt("form_submit_attempt",{form_id:"impact_summit_checkout",course_slug:"impact-summit-brasil-2026",
121is_leader:!!(u!=null&&u.is_leader)});const $=await U_({checkoutData:u,pageUrl:typeof window!="undefined"?window.location.href:void 0}),D=await fr({flow:"impact-summit",formData:{Nome:(u==null?void 0:u.nome)||"",Email:(u==null?void 0:u.email)||"",WhatsApp:(u==null?void 0:u.whatsapp)||"",LinkedIn:(u==null?void 0:u.linkedin)||"",Produto:(u==null?void 0:u.produto)||"",Evento:(u==null?void 0:u.eventName)||"",Quantidade:h,Lote:[((te=u==null?void 0:u.lote)==null?void 0:te.nomeLote)||((ae=u==null?void 0:u.lote)==null?void 0:ae.nome)||(u==null?void 0:u.ticketType)||"",(M=u==null?void 0:u.lote)==null?void 0:M.dataOferta].filter(Boolean).join(" - "),"Data da oferta":((re=u==null?void 0:u.lote)==null?void 0:re.dataOferta)||"","Valor Base":l(k),"Desconto de Lote":l(A),"Desconto Afiliado":l(S),"Descontos (Total)":l(E),"Valor Final":l(I)},locale:e});return D.success||console.error("Erro ao enviar e-mail após inscrição:",D.error),$.success?D.success?(bt("form_submit_success",{form_id:"impact_summit_checkout",course_slug:"impact-summit-brasil-2026",has_referral:!!((Q=u==null?void 0:u.lote)!=null&&Q.descontoAfiliado)}),Jd(window.location.pathname,u),n(o,{replace:!0}),!0):(console.error("Erro ao enviar e-mail após inscrição:",D.error),bt("form_submit_error",{form_id:"impact_summit_checkout",course_slug:"impact-summit-brasil-2026"}),!1):(console.error("Erro ao criar request link após inscrição:",$.error),bt("form_submit_error",{form_id:"impact_summit_checkout",course_slug:"impact-summit-brasil-2026"}),!1)};return s.jsxs("div",{className:"impact-summit-brasil-page",children:[s.jsx(ye,{title:a.seo.title,description:a.seo.description,image:"/images/og/home.jpg",url:a.seo.url,keywords:a.seo.keywords}),s.jsx(Se,{buttonText:a.headerButtonText,buttonHref:a.headerButtonHref,showImpactSummitButton:!0}),s.jsx(I_,{eventName:"Impact Summit Brasil",produto:"Impact Summit Brasil 2026",onComplete:c,copy:a.checkout,fields:i.fields,fixedProduct:null,offerOnly:t}),s.jsx(je,{})]})}function xs({locale:e="pt",isOffer:t=!1}){w.useEffect(()=>{window.scrollTo(0,0)},[]);const{pageCopy:n}=gr(e),r=n.registration,i=$t("/impact-summit-brasil",e),a=$t("/impact-summit-brasil/agenda",e);return s.jsxs("div",{className:"impact-summit-brasil-page impact-summit-brasil-submitted-page",children:[s.jsx(ye,{title:t?e==="en"?"Offer request confirmed | Impact Summit Brazil":"Oferta enviada | Impact Summit Brasil":e==="en"?"Registration confirmed | Impact Summit Brazil":"Inscrição confirmada | Impact Summit Brasil",description:t?e==="en"?"Your offer request was submitted successfully.":"Sua solicitação de oferta foi enviada com sucesso.":e==="en"?"Your Impact Summit Brazil registration was submitted successfully.":"Sua inscrição para o Impact Summit Brasil foi enviada com sucesso.",image:"/images/og/home.jpg",url:$t(t?"/impact-summit-brasil/oferta/submitted":"/impact-summit-brasil/inscricao/submitted",e)}),s.jsx(Se,{buttonText:r.headerButtonText,buttonHref:r.headerButtonHref,showImpactSummitButton:!0}),s.jsx(de,{noBorder:!0,children:s.jsx(ne,{children:s.jsxs("div",{className:"impact-summit-brasil-submitted-card",children:[s.jsx("p",{className:"impact-summit-brasil-submitted-eyebrow",children:t?e==="en"?"Offer request sent":"Oferta enviada":e==="en"?"Registration sent":"Inscrição enviada"}),s.jsx(K,{level:1,className:"impact-summit-brasil-submitted-title",children:t?e==="en"?"Your offer request was submitted successfully":"Sua solicitação de oferta foi enviada com sucesso":e==="en"?"Your registration was submitted successfully":"Sua inscrição foi enviada com sucesso"}),s.jsx(P,{className:"impact-summit-brasil-submitted-copy",maxWidth:"760px",children:e==="en"?"We received your details and sent the next step by email.":"Recebemos seus dados e enviamos o próximo passo por e-mail."}),s.jsx(P,{className:"impact-summit-brasil-submitted-copy",maxWidth:"760px",children:r.successEmailNote}),s.jsxs("div",{className:"impact-summit-brasil-submitted-actions",children:[s.jsx(ee,{as:"link",to:a,variant:"primary",children:e==="en"?"View agenda":"Ver agenda"}),s.jsx(ee,{as:"link",to:i,variant:"secondary",children:e==="en"?"Back to event":"Voltar ao evento"})]})]})})}),s.jsx(je,{})]})}const Qp={replays:{label:"Gravações",eyebrow:"REPLAYS SOB DEMANDA",title:"Sessões para assistir no seu ritmo",description:"Selecione uma aba para navegar por gravações, pesquisas e materiais práticos sem perder o contexto.",items:[{image:"/images/yt-thumb-1.jpg",imageAlt:"SPICED AI",title:"SPICED AI: transforme seu framework em motor de receita",duration:"57 min • 25 mar 2026",description:"Sessão prática sobre IA, rigor operacional e cadência comercial para aumentar previsibilidade sem inflar complexidade.",href:"https://www.youtube.com/shorts/K_na
121ReqTz-o",buttonText:"ASSISTIR GRAVAÇÃO",category:"Replay executivo",pill:"Sob demanda",meta:"IA + Revenue Ops",access:"YouTube",accentColor:"#0FC0EC",visualIcon:"▶"},{image:"/images/yt-thumb-3.jpg",imageAlt:"The Math Behind Your Growth Target",title:"The Math Behind Your Growth Target",duration:"58 min • 25 fev 2026",description:"Entenda como metas de crescimento, cobertura e produtividade se conectam para transformar planejamento em capacidade real de execução.",href:"https://www.youtube.com/shorts/74C3eJptQLE",buttonText:"VER CONTEÚDO",category:"Aula aberta",pill:"Framework",meta:"Planejamento + meta",access:"Replay disponível",accentColor:"#31d761",visualIcon:"▶"},{image:"/images/thumb-video-2.png",imageAlt:"Getting your Bowtie on straight for 2026",title:"Getting your Bowtie on straight for 2026",duration:"56 min • 21 jan 2026",description:"Revisão objetiva dos gargalos mais comuns de pipeline e das métricas que precisam entrar no radar antes do próximo ciclo anual.",href:"/curso-bowtie-analytics",buttonText:"ABRIR DETALHES",category:"Sessão temática",pill:"Bowtie Analytics",meta:"Pipeline + forecast",access:"Página do programa",accentColor:"#f9dc4a",visualIcon:"▶"}]},pesquisas:{label:"Pesquisas",eyebrow:"PESQUISAS E INSIGHTS",title:"Benchmarks para decisões mais consistentes",description:"Materiais voltados para liderança, diagnóstico e clareza sobre onde agir primeiro em operações de receita.",items:[{image:"/images/thumb-video-3.png",imageAlt:"Benchmarks 2026",title:"Benchmarks para operações B2B mais previsíveis em 2026",description:"Um resumo curado com sinais, gargalos e benchmarks para ajudar sua liderança a priorizar decisões com mais clareza.",href:"/#contact",buttonText:"SOLICITAR ACESSO",category:"Pesquisa aplicada",pill:"Benchmarks",meta:"Diagnóstico + priorização",access:"Material guiado",accentColor:"#8d7dff",visualIcon:"↗"}]},templates:{label:"Templates",eyebrow:"CHECKLISTS E MODELOS",title:"Ferramentas para aplicar no dia a dia",description:"Recursos pensados para transformar revisão operacional em uma rotina objetiva e repetível.",items:[{image:"/images/thumb-video-1.png",imageAlt:"Checklist de pipeline",title:"Checklist de revisão de pipeline e forecast",description:"Use este material para estruturar uma revisão semanal mais objetiva, conectando execução, risco e confiança do forecast.",href:"/#contact",buttonText:"BAIXAR MATERIAL",category:"Template operacional",pill:"Checklist",meta:"Pipeline + forecast",access:"Download sob solicitação",accentColor:"#ff8a4c",visualIcon:"↗"}]}};function Xp(){const[e,t]=w.useState("replays");w.useEffect(()=>{window.scrollTo(0,0)},[]);const n=Qp[e];return s.jsxs("div",{className:"conteudos-page",children:[s.jsx(ye,{title:"Conteúdos gratuitos | Winning by Design",description:"Acesse gravações, pesquisas e materiais gratuitos da Winning by Design para acelerar sua operação de revenue.",image:"/images/og/home.jpg",url:"/conteudos-gratuitos",keywords:"conteúdos gratuitos, gravações, webinars, pesquisas, revenue, winning by design"}),s.jsx(Se,{buttonText:"FALE CONOSCO",buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es."}),s.jsx(KA,{badge:"ACERVO DISPONÍVEL",title:s.jsxs(s.Fragment,{children:["Biblioteca aberta com ",s.jsx("br",{}),s.jsx("strong",{children:"conteúdos aplicáveis"})]}),subtitle:"gravações, pesquisas e templates para times modernos de receita",paragraphs:["Aqui você encontra materiais pensados para decisão, operação e execução: de sessões sob demanda a pesquisas e checklists práticos para o dia a dia.","Seguimos o mesmo padrão da home page: conteúdo claro, organização em blocos e navegação objetiva usando apenas componentes já existentes no design system."]}),s.jsx(de,{id:"conteudos-por-abas",children:s.jsxs(ne,{children:[s.jsxs("div",{className:"conteudos-section-heading",children:[s.jsx("span",{className:"conteudos-eyebrow",children:"CONTEÚDOS POR ABAS"}),s.jsx(K,{level:2,className:"conteudos-title",children:"Escolha o formato de material que deseja explorar"})]}),s.jsx("div",{className:"conteudos-tabs",role:"tablist","aria-label":"Tipos de conteúdo",children:Object.entries(Qp).map(([r,i])=>s.jsx("button",{type:"button",className:`conteudos-tab-button ${e===r?"is-active":""}`,onClick:()=>t(r),role:"tab","aria-selected":e===r,children:i.label},r))}),s.jsxs("div",{className:"conteudos-tab-panel",children:[s.jsxs("div",{className:"conteudos-tab-copy",children:[s.jsx("span",{className:"conteudos-eyebrow",children:n.eyebrow}),s.jsx(K,{level:3,children:n.title}),s.jsx(P,{className:"conteudos-description",children:n.description})]}),s.jsx("div",{className:"conteudos-grid",children:n.items.map((r,i)=>{const a=r.href.startsWith("http://")||r.href.startsWith("https://"),o=r.href.includes("#");return s.jsxs("article",{className:"conteudos-card",style:{"--content-accent":r.accentColor},children:[s.jsxs("div",{className:"conteudos-card-visual",children:[s.jsx("span",{className:"conteudos-card-visual-label",children:r.category}),s.jsx("img",{src:r.image,alt:r.imageAlt,className:"conteudos-card-thumb",loading:"lazy",width:"640",height:"360"}),s.jsx("span",{className:`conteudos-card-play ${r.visualIcon!=="▶"?"conteudos-card-play--alt":""}`,children:r.visualIcon}),r.duration&&s.jsx("span",{className:"conteudos-card-duration",children:r.duration})]}),s.jsxs("div",{className:"conteudos-card-body",children:[s.jsx("span",{className:"conteudos-pill",children:r.pill}),s.jsx(K,{level:3,children:r.title}),s.jsx(P,{children:r.description}),s.jsxs("div",{className:"conteudos-card-meta",children:[s.jsx("span",{children:r.meta}
121),s.jsx("span",{children:r.access})]}),s.jsx(ee,{as:a||o?"a":"link",href:a||o?r.href:void 0,to:!a&&!o?r.href:void 0,variant:"white",target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,children:r.buttonText})]})]},`${e}-${i}`)})})]})]})}),s.jsx(je,{})]})}const q_=[{program:"Revenue Architecture",cohort:"Turma 4",status:"Turma concluída",completion:"Março de 2026",image:"/images/turma-4.jpg",imageAlt:"Foto da turma 4 de Revenue Architecture",students:["Erika Tornice","Rodrigo Pinto"]},{program:"Revenue Architecture",cohort:"Turma 5",status:"Turma concluída",completion:"Abril de 2026",image:"/images/turma-5.jpg",imageAlt:"Foto da turma 5 de Revenue Architecture",students:["Gabriela Vargas","Marcelo Magdaleno"]},{program:"Math 4 Revenue Architecture",cohort:"Cohort Janeiro",status:"Cohort concluído",completion:"Fevereiro de 2026",image:"/images/turmas/turma-1.jpg",imageAlt:"Foto do cohort de janeiro de Math 4 Revenue Architecture",students:["Mauricio Vinhao"]},{program:"Math 4 Revenue Architecture",cohort:"Cohort Março",status:"Cohort concluído",completion:"Março de 2026",image:"/images/turma-6.jpg",imageAlt:"Foto do cohort de março de Math 4 Revenue Architecture",students:["Fernanda Nascimento"]},{program:"Bowtie Analytics",cohort:"Turma 2",status:"Turma concluída",completion:"Janeiro de 2026",image:"/images/turma-2.webp",imageAlt:"Foto da turma 2 de Bowtie Analytics",students:["Ana Paula"]},{program:"Bowtie Analytics",cohort:"Turma 3",status:"Turma concluída",completion:"Março de 2026",image:"/images/turma-3.jpg",imageAlt:"Foto da turma 3 de Bowtie Analytics",students:["Patricia Souza"]}],F_=[{name:"Carina Lima",role:"Head de Marketing",company:"NeoAssist",image:"/images/depoimento-carina-lima.png",quote:"Acesso a conteúdo científico e profundo, além de trocar com outras pessoas da área que têm dores semelhantes e com bastante tempo de mercado."},{name:"Cristovao Wanderley",role:"COO e CTO",company:"Stratlab",image:"/images/leadership.webp",quote:"É de um nível extremamente alto, as discussões são incríveis e esse é só o começo. Vale muito a pena estabelecer esse conhecimento para poder executar na prática."},{name:"Eduardo Grillo",role:"Diretor Executivo Comercial",company:"Suhai Seguradora",image:"/images/eduardo-grillo.png",quote:"Entender as variáveis para buscar um resultado sustentável, a renovação contínua e um cliente satisfeito no final de tudo."}];function Zp(){return w.useEffect(()=>{window.scrollTo(0,0)},[]),s.jsxs("div",{className:"alunos-page",children:[s.jsx(ye,{title:"Nossos Alunos | Winning by Design",description:"Veja a lista de alunos que concluíram os cursos da Winning by Design, com curso, turma e data de conclusão.",image:"/images/og/home.jpg",url:"/alunos",keywords:"alunos, certificados, revenue architecture, bowtie analytics, winning by design"}),s.jsx(Se,{buttonText:"FALE CONOSCO",buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es."}),s.jsx(de,{id:"lista-alunos",children:s.jsxs(ne,{children:[s.jsxs("div",{className:"alunos-section-heading",children:[s.jsx("span",{className:"alunos-eyebrow",children:"TURMAS E ALUNOS"}),s.jsx(K,{level:2,className:"alunos-title",children:"Um espaço dedicado para visualizar cada turma certificada"}),s.jsx(P,{children:"Organizamos os alunos por programa e turma em um formato visual semelhante à seção de turmas do curso Revenue Architecture."})]}),s.jsx(kt,{columns:2,gap:"24px",className:"alunos-cohorts-grid",children:q_.map(e=>s.jsxs("article",{className:"alunos-class-card",children:[e.image&&s.jsx("div",{className:"alunos-class-image-wrap",children:s.jsx("img",{src:e.image,alt:e.imageAlt||`${e.cohort} - ${e.program}`,className:"alunos-class-image",loading:"lazy",width:"640",height:"360"})}),s.jsx("span",{className:"alunos-class-status",children:e.status}),s.jsx("span",{className:"alunos-class-date",children:e.cohort}),s.jsxs("div",{className:"alunos-class-meta",children:[s.jsxs(P,{children:[s.jsx("strong",{children:"Programa:"})," ",e.program]}),s.jsxs(P,{children:[s.jsx("strong",{children:"Conclusão:"})," ",e.completion]})]}),s.jsx("div",{className:"alunos-class-footer",children:s.jsxs("span",{className:"alunos-class-badge",children:[e.students.length," participante",e.students.length>
1211?"s":""]})})]},`${e.program}-${e.cohort}`))})]})}),s.jsx(hi,{title:"Formações concluídas com foco em execução",subtitle:"ALUMNI WINNING BY DESIGN",boxes:[{value:"8+",label:"alunos destacados"},{value:"3",label:"programas listados"},{value:"2026",label:"turmas recentes"}],paragraphs:["Esta página apresenta, de forma simples e pública, quais profissionais já concluíram nossos programas e em qual turma participaram.","O objetivo é dar mais transparência para a comunidade, apoiar a validação social e facilitar consultas rápidas por parte de empresas e interessados."],backgroundColor:"var(--color-white)"}),s.jsx(de,{id:"depoimentos-liderancas",children:s.jsxs(ne,{children:[s.jsxs("div",{className:"alunos-section-heading",children:[s.jsx("span",{className:"alunos-eyebrow",children:"DEPOIMENTOS"}),s.jsx(K,{level:2,className:"alunos-title",children:"O que líderes e executivos dizem sobre a experiência"}),s.jsx(P,{children:"Incluímos percepções de Heads e lideranças que aplicam os aprendizados em contexto real de negócio."})]}),s.jsx("div",{className:"alunos-testimonials-grid",children:F_.map(e=>s.jsxs("article",{className:"alunos-testimonial-card",children:[s.jsxs("div",{className:"alunos-testimonial-header",children:[s.jsx("img",{src:e.image,alt:e.name,className:"alunos-testimonial-image",loading:"lazy",width:"96",height:"96"}),s.jsxs("div",{children:[s.jsx("span",{className:"alunos-testimonial-name",children:e.name}),s.jsxs("span",{className:"alunos-testimonial-role",children:[e.role," • ",e.company]})]})]}),s.jsxs(P,{className:"alunos-testimonial-quote",children:["“",e.quote,"”"]})]},`${e.name}-${e.company}`))})]})}),s.jsx(je,{})]})}const z_="https://ykezpkrujtbtczhnmtuq.supabase.co",W_="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ";let Lu=null;Lu=qt(z_,W_);const V_=async({limit:e=100}={})=>{var t,n;if(!Lu)return console.error("Supabase client not initialized. Check VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY"),{success:!1,error:"Configuração do Supabase não encontrada"};try{const r={};e&&(r.limit=e);const{data:i,error:a}=await Lu.functions.invoke("get-calendario",{body:r});if(a)return console.error("Error calling get-calendario Edge Function:",a),{success:!1,error:a.message||"Erro ao buscar calendário"};const o=Array.isArray(i==null?void 0:i.calendarios)?i.calendarios.map(l=>{var c;return{id:(c=l.id)!=null?c:null,created_at:l.created_at||null,titulo:l.titulo||null,categoria:l.categoria||null,data_inicio:l.data_inicio||null,data_fim:l.data_fim||null,link:l.link||null,imagem:l.imagem||null,local:l.local||null,descricao:l.descricao||null}}):[];return{success:(t=i==null?void 0:i.success)!=null?t:!0,total:(n=i==null?void 0:i.total)!=null?n:o.length,calendarios:o}}catch(r){return console.error("Error fetching calendar:",r),{success:!1,error:r.message||"Erro desconhecido ao buscar calendário"}}},ef={pt:{seo:{title:"Calendários | Winning by Design",description:"Veja em um só lugar os calendários e agendas dos cursos e eventos da Winning by Design.",keywords:"calendários, agenda, cursos, eventos, winning by design"},headerButtonText:"FALE CONOSCO",hero:{eyebrow:"AGENDA WINNING BY DESIGN",title:"Eventos e treinamentos para líderes modernos de receita",description:"Reunimos aqui os principais encontros, cohorts e experiências da Winning by Design para você acompanhar as próximas datas em um formato mais visual, rápido e orientado à ação.",buttonText:"Ver próximos eventos",highlights:[{title:"Presencial + online",description:"Escolha o formato ideal para o seu momento."},{title:"Datas sempre atualizadas",description:"Veja a próxima oportunidade sem procurar em várias páginas."}]},featuredEmpty:{pill:"Agenda em breve",title:"Nenhum evento publicado ainda",description:"Assim que novas datas forem abertas, elas aparecerão aqui em tempo real.",meta:["Acompanhe os próximos anúncios da Winning by Design.","Se preferir, fale com o nosso time para saber das novidades."],cta:"Falar com a equipe"},section:{eyebrow:"PRÓXIMAS DATAS",title:"Eventos presenciais e online",description:"Filtre por formato e encontre o próximo encontro mais relevante para a sua equipe — de roundtables executivas a cohorts ao vivo.",ariaLabel:"Filtrar eventos",emptyStateTitle:"Nenhuma data para este filtro",emptyStateDescription:"Ajuste o filtro selecionado ou volte em breve para acompanhar os próximos encontros."},newsletter:{kicker:"INSIGHTS & EVENTOS",title:"Receba insights e convites para os próximos eventos",description:"Entre na lista para acompanhar novas datas, pesquisas e conteúdos práticos da Winning by Design para líderes de revenue.",label:"E-mail corporativo",placeholder:"[email protected]",ariaLabel:"Seu melhor e-mail corporativo",submitIdle:"Inscrever-se",submitLoading:"Enviando...",success:"Cadastro recebido! Vamos compartilhar os próximos insights e eventos por e-mail.",error:"Não foi possível concluir agora. Tente novamente em instantes ou fale com a equipe.",invalidEmail:"Digite um e-mail válido para receber os próximos insights.",loadingMessage:"Env
121iando seu cadastro...",emailSubjectPrefix:"Novo cadastro - Insights e eventos",formOrigin:"Página Calendários",formMessage:"Solicitou receber insights, pesquisas e próximos eventos da Winning by Design.",additionalNote:"Cadastro realizado na seção final da página Calendários."},loadingMessage:"Carregando agenda ao vivo...",syncError:"Não foi possível sincronizar agora. Tente novamente em instantes.",emptyLive:"Nenhuma data publicada no momento.",calendarLoadingLabel:"CARREGANDO",eventButtonText:"Ver detalhes",audienceText:"Clique para abrir mais detalhes ou confirmar presença.",dateFallback:"Data a confirmar",locationFallback:"Local a confirmar",featuredLabel:"Evento Destaque",featuredChip:"FEATURED EVENT",dateRangeSeparator:"até",timeRangeSeparator:"às",timeUnits:["Dias","Horas","Min","Seg"],filterLabels:{all:"Todos",cursos:"Cursos",evento:"Evento",provas:"Provas",webinar:"Webinar","podcast-live":"Podcast/Live"}},en:{seo:{title:"Calendars | Winning by Design",description:"Find the courses and event calendars from Winning by Design in one place.",keywords:"calendar, agenda, courses, events, winning by design"},headerButtonText:"CONTACT US",hero:{eyebrow:"WINNING BY DESIGN AGENDA",title:"Events and trainings for modern revenue leaders",description:"We bring together the main meetings, cohorts, and experiences from Winning by Design so you can follow upcoming dates in a more visual, faster, action-oriented format.",buttonText:"See upcoming events",highlights:[{title:"In-person + online",description:"Choose the format that fits your moment."},{title:"Always up to date",description:"See the next opportunity without searching across multiple pages."}]},featuredEmpty:{pill:"Coming soon",title:"No events published yet",description:"As soon as new dates are released, they will appear here in real time.",meta:["Keep an eye on the next Winning by Design announcements.","If you prefer, reach out to our team to hear what's next."],cta:"Contact the team"},section:{eyebrow:"UPCOMING DATES",title:"In-person and online events",description:"Filter by format and find the most relevant next session for your team, from executive roundtables to live cohorts.",ariaLabel:"Filter events",emptyStateTitle:"No dates for this filter",emptyStateDescription:"Adjust the selected filter or check back soon to follow the next sessions."},newsletter:{kicker:"INSIGHTS & EVENTS",title:"Get insights and invites for upcoming events",description:"Join the list to stay on top of new dates, research, and practical content from Winning by Design for revenue leaders.",label:"Work email",placeholder:"[email protected]",ariaLabel:"Your best work email",submitIdle:"Subscribe",submitLoading:"Sending...",success:"Registration received! We'll share upcoming insights and events by email.",error:"We couldn't complete this right now. Please try again in a moment or contact the team.",invalidEmail:"Enter a valid email to receive upcoming insights.",loadingMessage:"Sending your registration...",emailSubjectPrefix:"New signup - Insights and events",formOrigin:"Calendars page",formMessage:"Requested to receive insights, research, and upcoming Winning by Design events.",additionalNote:"Signup completed in the final section of the Calendars page."},loadingMessage:"Loading live agenda...",syncError:"We couldn't sync right now. Please try again shortly.",emptyLive:"No dates published at the moment.",calendarLoadingLabel:"LOADING",eventButtonText:"View details",audienceText:"Click to open more details or confirm attendance.",dateFallback:"Date to be confirmed",locationFallback:"Location to be confirmed",featuredLabel:"Featured Event",featuredChip:"FEATURED EVENT",dateRangeSeparator:"to",timeRangeSeparator:"at",timeUnits:["Days","Hours","Min","Sec"],filterLabels:{all:"All",cursos:"Courses",evento:"Event",provas:"Exams",webinar:"Webinar","podcast-live":"Podcast/Live"}}};function fi(e="pt"){return e==="en"?ef.en:ef.pt}function H_(e="pt"){const t=fi(e);return[{id:"all",label:t.filterLabels.all},{id:"cursos",label:t.filterLabels.cursos},{id:"evento",label:t.filterLabels.evento},{id:"provas",label:t.filterLabels.provas},{id:"webinar",label:t.filterLabels.webinar},{id:"podcast-live",label:t.filterLabels["podcast-live"]}]}const bo=["#0FC0EC","#31D761","#78A6FF","#FF8B5E","#D06CFF"],G_=3;function lb(e){return String(e||"evento").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function K_(e="",t=""){const n=`${e} ${t}`.toLowerCase();return/(online|zoom|remoto|remote|ao vivo|digital)/.test(n)?"online":"presencial"}function cb(e=""){return lb(e||"evento")}function ub(e=""){const t=String(e||"").split(",").map(n=>
121n.trim()).filter(Boolean);return t.length>0?t:["Evento"]}function J_(e=""){return[...new Set(ub(e).map(t=>cb(t)))]}function tf(e,t="pt"){const n=typeof e=="string"?e.trim():"",r=fi(t);if(!n)return r.dateFallback;const i=n.match(/^(\d{2})\/(\d{2})\/(\d{4})/);if(i){const[,l,c,u]=i;return`${l}/${c}/${u}`}const a=n.match(/^(\d{4})-(\d{2})-(\d{2})/);if(a){const[,l,c,u]=a;return`${u}/${c}/${l}`}const o=new Date(n);return Number.isNaN(o.getTime())?n:o.toLocaleDateString(t==="en"?"en-US":"pt-BR",{day:"2-digit",month:"2-digit",year:"numeric",timeZone:"UTC"})}function nf(e,t="pt"){const n=typeof e=="string"?e.trim():"";if(!n)return null;const r=n.match(/(?:T|\s)(\d{1,2}):(\d{2})(?::\d{2})?/);if(r){const[,o,l]=r;return`${String(o).padStart(2,"0")}:${l}`}const i=n.match(/^(\d{1,2}):(\d{2})/);if(i){const[,o,l]=i;return`${String(o).padStart(2,"0")}:${l}`}const a=new Date(n);return Number.isNaN(a.getTime())?null:a.toLocaleTimeString(t==="en"?"en-US":"pt-BR",{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"UTC"})}function rf(e){return!e||e==="00:00"?null:e}function db(e){const t=typeof e=="string"?e.trim():"";if(!t)return null;const n=t.match(/^(\d{2})\/(\d{2})\/(\d{4})(?:\s+(\d{2}):(\d{2})(?::\d{2})?)?/);if(n){const[,a,o,l,c="00",u="00"]=n;return`${l}-${o}-${a}T${c}:${u}:00`}const r=t.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::\d{2})?)?/);if(r){const[,a,o,l,c="00",u="00"]=r;return`${a}-${o}-${l}T${c}:${u}:00`}const i=Date.parse(t);return Number.isNaN(i)?null:new Date(i).toISOString()}function Y_(e,t=Date.now()){const n=db(e.data_inicio);return n?new Date(n).getTime()>t:!0}function Q_(e,t,n="pt"){const r=fi(n),i=tf(e,n),a=tf(t,n),o=rf(nf(e,n)),l=rf(nf(t,n));if(t&&i!==r.dateFallback&&a!==r.dateFallback&&i!==a){const u=[i,o].filter(Boolean).join(" • "),d=[a,l].filter(Boolean).join(" • ");return`${u} ${r.dateRangeSeparator} ${d}`}const c=o&&l?`${o} ${r.timeRangeSeparator} ${l}`:o||l||null;return[i,c].filter(Boolean).join(" • ")}function X_(e,t=0,n="pt"){var h,m,p;const r=fi(n),i=ub(e.categoria),a=J_(e.categoria),o=a.find(f=>f!=="evento-destaque")||a[0]||"evento",l=i.find(f=>cb(f)===o)||i[0]||r.filterLabels.evento,c=a.includes("evento-destaque"),u=K_(e.local,e.titulo),d=((h=e.local)==null?void 0:h.trim())||r.locationFallback;return{id:(m=e.id)!=null?m:`${lb(e.titulo)}-${t}`,category:o,categories:a,categoryLabel:i.join(" • "),visualLabel:(c?r.featuredLabel:l).toUpperCase(),isFeatured:c,listOrder:t,title:e.titulo||(n==="en"?"Winning by Design event":"Evento Winning by Design"),description:e.descricao||(n==="en"?"Follow Winning by Design's upcoming meetings and trainings.":"Acompanhe os próximos encontros e treinamentos da Winning by Design."),location:d,dateLabel:Q_(e.data_inicio,e.data_fim,n),audience:e.link?r.audienceText:null,startDate:db(e.data_inicio)||e.created_at||new Date().toISOString(),href:((p=e.link)==null?void 0:p.trim())||null,ctaText:e.link?r.eventButtonText:null,accent:bo[t%bo.length],cityLabel:u==="online"?"ONLINE":d.split(/[•,-]/)[0].trim().slice(0,24).toUpperCase(),image:e.imagem||""}}function af(e,t,n="pt"){const r=fi(n),i=new Date(e).getTime()-t;if(i<=0)return[{label:r.timeUnits[0],value:"00"},{label:r.timeUnits[1],value:"00"},{label:r.timeUnits[2],value:"00"},{label:r.timeUnits[3],value:"00"}];const a=Math.floor(i/1e3),o=Math.floor(a/86400),l=Math.floor(a%86400/3600),c=Math.floor(a%3600/60),u=a%60;return[{label:r.timeUnits[0],value:String(o).padStart(2,"0")},{label:r.timeUnits[1],value:String(l).padStart(2,"0")},{label:r.timeUnits[2],value:String(c).padStart(2,"0")},{label:r.timeUnits[3],value:String(u).padStart(2,"0")}]}function Z_({loadingLabel:e="CARREGANDO"}){return s.jsxs("article",{className:"calendarios-featured-card calendarios-skeleton-card","aria-hidden":"true",children:[s.jsxs("div",{className:"calendarios-featured-visual calendarios-skeleton-panel",children:[s.jsx("span",{className:"calendarios-visual-label",children:e}),s.jsx("div",{className:"calendarios-featured-art"})]}),s.jsx("div",{className:"calendarios-countdown",children:Array.from({length:4}).map((t,n)=>s.jsx("div",{className:"calendarios-countdown-box calendarios-skeleton-box"},n))}),s.jsxs("div",{className:"calendarios-featured-content",children:[s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-pill"}),s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-title"}),s.jsx("span",{className:"calendarios-skeleton-line"}),s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-line-short"}),s.jsxs("div",{className:"calendarios-meta-list",children:[s.jsx("span",{className:"calendarios-skeleton-line"}),s.jsx("span",{className:"calendarios-skeleton-line"}),s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-line-short"})]})]})]})}function eC({index:e,loadingLabel:t="CARREGANDO"}){return s.jsxs("article",{className:"calendarios-event-card calendarios-skeleton-card",style:{"--event-accent":bo[e%bo.length]},"aria-hidden":"true",children:[s.jsxs("div",{className:"calendarios-event-visual calendarios-skeleton-panel",children:[s.jsx("span",{className:"calendarios-visual-label",children:t}),s.jsx("div",{className:"calendarios-event-art"})]}),s.jsxs("div",{className:"calendarios-event-body",children:[s.jsxs("div",{className:"calendarios-event-copy",children:[s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-pill"}),s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-title"}),s.jsx("span",{className:"calendarios-skeleton-line"}),s.jsx("span",{className:"calendarios-skeleton-line calendarios-skeleton-line-short"}),s.jsxs("div",{className:"calendarios-meta-list",children:[s.jsx("span",{className:"calendarios-skeleton-line"}),s.jsx("span",{className:"calendarios-skeleton-line"})]})]}),s.jsx("div",{className:"calendarios-event-footer",children:s.jsx("div",{className:"calendarios-countdown calendarios-countdown-compact",children:Array.from({length:4}).map((n,r)=>s.jsx("div",{className:"calendarios-countdown-box calendarios-skeleton-box"},r))})})]})]})}function sf({locale:e="pt"}){var A;const t=fi(e),n=w.useMemo(()=>H_(e),[e]),[r,i]=w.useState("all"),[a,o]=w.useState(Date.now()),[l,c]=w.useState([]),[u,d]=w.useState({loading:!0,error:"",isLive:!1}),[h,m]=w.useState(""),[p,f]=w.useState({type:"idle",message:""});w.useEffect(()=>{let S=!0;window.scrollTo(0,0),c([]),d({loading:!0,error:"",isLive:!1});const k=window.setInterval(()=>{o(Date.now())},1e3);return(async()=>{const I=await V_({limit:100});if(S){if(I.success&&Array.isArray(I.calendarios)){const $=Date.now(),D=I.calendarios.filter(W=>Y_(W,$)).map((W,V)=>X_(W,V,e)).sort((W,V)=>
121new Date(W.startDate).getTime()-new Date(V.startDate).getTime());if(D.length>0){c(D),d({loading:!1,error:"",isLive:!0});return}}d({loading:!1,error:I.error||"",isLive:!1})}})(),()=>{S=!1,window.clearInterval(k)}},[e]);const v=l.reduce((S,k)=>k.isFeatured&&(!S||k.listOrder>S.listOrder)?k:S,null)||l[0]||null,x=v?af(v.startDate,a,e):[],y=w.useMemo(()=>[...r==="all"?l:l.filter(k=>Array.isArray(k.categories)?k.categories.includes(r):k.category===r)].sort((k,E)=>new Date(k.startDate).getTime()-new Date(E.startDate).getTime()),[r,l]),g=async S=>{S.preventDefault();const k=h.trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k)){f({type:"error",message:t.newsletter.invalidEmail});return}if(f({type:"loading",message:t.newsletter.loadingMessage}),(await fr({flow:"calendarios-newsletter",formData:{nome:e==="en"?"Insights and events subscription":"Assinatura de insights e eventos",email:k,origem:t.newsletter.formOrigin,mensagem:t.newsletter.formMessage},locale:e})).success){m(""),f({type:"success",message:t.newsletter.success}),Jd(window.location.pathname,k);return}f({type:"error",message:t.newsletter.error})},b=u.loading?t.loadingMessage:u.error?t.syncError:u.isLive?"":t.emptyLive,j=(S,k="small")=>{if(!S.href||!S.ctaText)return null;const E=typeof S.href=="string"&&S.href.startsWith("/");return s.jsx(ee,{as:E?"link":"a",to:E?S.href:void 0,href:E?void 0:S.href,target:E?void 0:"_blank",rel:E?void 0:"noreferrer",size:k,children:S.ctaText})};return s.jsxs("div",{className:"calendarios-page",children:[s.jsx(ye,{title:t.seo.title,description:t.seo.description,image:"/images/og/home.jpg",url:e==="en"?"/en/calendarios":"/calendarios",keywords:t.seo.keywords}),s.jsx(Se,{buttonText:t.headerButtonText,buttonHref:"https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es."}),s.jsx(de,{id:"calendarios-overview",noBorder:!0,children:s.jsx(ne,{children:s.jsxs("div",{className:"calendarios-hero",children:[s.jsxs("div",{className:"calendarios-hero-copy",children:[s.jsx("span",{className:"calendarios-eyebrow",children:t.hero.eyebrow}),s.jsx(K,{level:1,className:"calendarios-title",children:t.hero.title}),s.jsx(P,{className:"calendarios-description",maxWidth:"620px",children:t.hero.description}),s.jsx("div",{className:"calendarios-hero-actions",children:s.jsx(ee,{as:"a",href:"#calendarios-eventos",variant:"primary",children:t.hero.buttonText})}),s.jsx("div",{className:"calendarios-hero-highlights",children:t.hero.highlights.map(S=>s.jsxs("div",{className:"calendarios-highlight-card",children:[s.jsx("strong",{children:S.title}),s.jsx("span",{children:S.description})]},S.title))})]}),u.loading?s.jsx(Z_,{loadingLabel:t.calendarLoadingLabel}):v?s.jsxs("article",{className:"calendarios-featured-card",style:{"--event-accent":v.accent},children:[s.jsxs("div",{className:"calendarios-featured-visual",children:[s.jsx("span",{className:"calendarios-visual-label",children:v.visualLabel}),s.jsxs("div",{className:"calendarios-featured-art",style:v.image?{backgroundImage:`linear-gradient(135deg, rgba(6, 26, 39, 0.2), rgba(11, 53, 76, 0.2)), url(${v.image})`,backgroundPosition:"center",backgroundSize:"cover"}:void 0,children:[s.jsx("span",{className:"calendarios-featured-chip",children:t.featuredChip}),s.jsx("div",{className:"calendarios-featured-city",children:v.cityLabel}),s.jsx("div",{className:"calendarios-featured-wordmark",children:((A=v.title.split(" ")[0])==null?void 0:A.toUpperCase())||"EVENT"})]})]}),s.jsx("div",{className:"calendarios-countdown",children:x.map(S=>s.jsxs("div",{className:"calendarios-countdown-box",children:[s.jsx("strong",{children:S.value}),s.jsx("span",{children:S.label})]},S.label))}),s.jsxs("div",{className:"calendarios-featured-content",children:[s.jsx("span",{className:"calendarios-pill",children:v.categoryLabel}),s.jsx(K,{level:3,children:v.title}),s.jsx(P,{children:v.description}),s.jsxs("ul",{className:"calendarios-meta-list",children:[s.jsx("li",{children:v.location}),s.jsx("li",{children:v.dateLabel}),v.audience?s.jsx("li",{children:v.audience}):null]}),j(v,"small")]})]}):s.jsx("article",{className:"calendarios-featured-card calendarios-empty-card",children:s.jsxs("div",{className:"calendarios-featured-content",children:[s.jsx("span",{className:"calendarios-pill",children:t.featuredEmpty.pill}),s.jsx(K,{level:3,children:t.featuredEmpty.title}),s.jsx(P,{children:t.featuredEmpty.description}),s.jsx("ul",{className:"calendarios-meta-list",children:t.featuredEmpty.meta.map(S=>s.jsx("li",{children:S},S))}),s.jsx(ee,{as:"a",href:"/#contact",variant:"secondary",size:"small",children:t.featuredEmpty.cta})]})})]})})}),s.jsx(de,{id:"calendarios-eventos",children:s.jsxs(ne,{children:[s.jsxs("div",{className:"calendarios-section-heading",children:[s.jsx("span",{className:"calendarios-eyebrow",children:t.section.eyebrow}),s.jsx(K,{level:2,children:t.section.title}),s.jsx(P,{maxWidth:"760px",children:t.section.description})]}),s.jsx("div",{className:"calendarios-filter-group",role:"tablist","aria-label":t.section.ariaLabel,children:n.map(S=>s.jsx("button",{type:"button",className:`calendarios-filter-button ${r===S.id?"is-active":""}`,onClick:()=>i(S.id),"aria-pressed":r===S.id,children:S.label},S.id))}),b?s.jsx("p",{className:`calendarios-status-note ${u.error?"is-error":u.loading?"is-loading":""}`,children:b}):null,s.jsx("div",{className:"calendarios-events-list",children:u.loading?Array.from({length:G_}).map((S,k)=>s.jsx(eC,{index:k,loadingLabel:t.calendarLoadingLabel},`skeleton-${k}`)):y.length>0?y.map(S=>{const k=af(S.startDate,a,e);return s.jsxs("article",{className:"calendarios-event-card",style:{"--event-accent":S.accent},children:[s.jsxs("div",{className:"calendarios-event-visual",children:[s.jsx("span",{className:"calendarios-visual-label",children:S.visualLabel}),s.jsx("div",{className:"calendarios-event-art",style:S.image?{backgroundImage:`linear-gradient(135deg, rgba(6, 26, 39, 0.2), rgba(11, 53, 76, 0.2)), url(${S.image})`,backgroundPosition:"center",backgroundSize:"cover"}:void 0}),s.jsx("span",{className:"calendarios-event-city",children:S.cityLabel})]}),s.jsxs("div",{className:"calendarios-event-body",children:[s.jsxs("div",{className:"calendarios-event-copy",children:[s.jsx("span",{className:"calendarios-pill",children:S.categoryLabel}),s.jsx(K,{level:3,children:S.title}),s.jsx(P,{children:S.description}),s.jsxs("ul",{className:"calendarios-meta-list",children:[s.jsx("li",{children:S.location}),s.jsx("li",{children:S.dateLabel}),S.audience?s.jsx("li",{children:S.audience}):null]})]}),s.jsxs("div",{className:"calendarios-event-footer",children:[s.jsx("div",{className:"calendarios-countdown calendarios-countdown-compact",children:k.map(E=>s.jsxs("div",{className:"calendarios-countdown-box",children:[s.jsx("strong",{children:E.value}),s.jsx("span",{children:E.label})]},E.label))}),j(S,"small")]})]})]},S.id)}):s.jsxs("div",{className:"calendarios-empty-state",children:[s.jsx(K,{level:3,children:t.section.emptyStateTitle}),s.jsx(P,{children:t.section.emptyStateDescription})]})})]})}),s.jsx(de,{noBorder:!0,children:s.jsx(ne,{children:s.jsxs("div",{className:"calendarios-newsletter-card",children:[s.jsxs("div",{className:"calendarios-newsletter-copy",children:[s.jsx("span",{className:"calendarios-eyebrow calendarios-newsletter-kicker",children:t.newsletter.kicker}),s.jsx(K,{level:2,className:"calendarios-newsletter-title",children:t.newsletter.title}),s.jsx(P,{className:"calendarios-newsletter-description",children:t.newsletter.description})]}),s.jsxs("form",{className:"calendarios-newsletter-form",onSubmit:g,children:[s.jsxs("div",{className:"calendarios-newsletter-field",children:[s.jsx("label",{htmlFor:"newsletter-email",className:"calendarios-newsletter-label",children:t.newsletter.label}),s.jsx("input",{id:"newsletter-email",type:"email",name:"newsletterEmail",className:"calendarios-newsletter-input",placeholder:t.newsletter.placeholder,value:h,onChange:S=>m(S.target.value),autoComplete:"email","aria-label":t.newsletter.ariaLabel})]}),s.jsx(ee,{type:"submit",variant:"primary",className:"calendarios-newsletter-submit",disabled:p.type==="loading",children:p.type==="loading"?t.newsletter.submitLoading:t.newsletter.submitIdle}),p.message?s.jsx("p",{className:`calendarios-newsletter-feedback is-${p.type}`,children:p.message}):null]})]})})}),s.jsx(je,{links:ur.links})]})}function tC(){const[e,t]=w.useState(!1);w.useEffect(()=>{const i=cy();(i==null?void 0:i.marketingAttribution)===null&&t(!0)},[]);const n=()=>{Fh({marketingAttribution:!0}),t(!1)},r=()=>{Fh({marketingAttribution:!1}),t(!1)};return e?s.jsx("div",{className:"wbd-consent-prompt",children:s.jsxs("div",{className:"wbd-consent-prompt__inner",children:[s.jsxs("p",{children:["Utilizamos cookies de ",s.jsx("strong",{children:"Parceiros e Atribuição"})," para rastrear referências e benefícios. Deseja ativar estes cookies?"]}),s.jsxs("div",{className:"wbd-consent-prompt__actions",children:[s.jsx("button",{className:"btn btn--secondary",onClick:r,children:"Rejeitar"}),s.jsx("button",{className:"btn btn--primary",onClick:n,children:"Aceitar"})]})]})}):null}const of="impact-submmit-brasil-2026";function nC(e){return!e||typeof e!="string"?[]:e.split(",").map(t=>
121t.trim()).filter(Boolean)}async function mb(e){var r,i,a,o;if(!e||typeof e!="string")return;const t=await Gd(e);if(!t.success){Ua([of],window.location.hostname);const l=qa();l&&typeof l=="object"&&(delete l[of],Object.keys(l).length>0?qh(l):Fa()),window.dispatchEvent(new CustomEvent("wbd:affiliate-updated"));return}const n=nC(((r=t.affiliate)==null?void 0:r.paginas)||((i=t.affiliate)==null?void 0:i.cursos));if(n.length>0){const l={codigo:((a=t.affiliate)==null?void 0:a.codigo)||e,texto_descritivo:((o=t.affiliate)==null?void 0:o.texto_descritivo)||`Você possui um benefício aplicado por ${e}`};if(ay())ly(l,n,30,window.location.hostname);else{const c={};n.forEach(u=>{c[u]={codigo:l.codigo,texto_descritivo:l.texto_descritivo}}),qh(c)}}window.dispatchEvent(new CustomEvent("wbd:affiliate-updated"))}async function rC(){if(!ay())return;const e=jj();if(!e||typeof e!="object")return;const t={};for(const[r,i]of Object.entries(e))i!=null&&i.codigo&&(t[i.codigo]||(t[i.codigo]=[]),t[i.codigo].push(r));let n=!1;for(const[r,i]of Object.entries(t))(await Gd(r)).success||(Ua(i),n=!0);n&&(Fa(),window.dispatchEvent(new CustomEvent("wbd:affiliate-updated")))}function iC(){const[e]=hS(),t=w.useRef(!1);w.useEffect(()=>{const n=e.get("ref_code")||e.get("ref");if(n){if(t.current)return;t.current=!0,mb(n).catch(r=>console.error("useReferral error",r)).finally(()=>{t.current=!1})}else rC().catch(r=>console.error("useReferral revalidation error",r))},[e]),w.useEffect(()=>{function n(r){var a;if(((a=r.detail)==null?void 0:a.marketingAttribution)!==!0)return;const i=qa();if(!(!i||typeof i!="object")){for(const[o,l]of Object.entries(i))l!=null&&l.codigo&&ly({codigo:l.codigo,texto_descritivo:l.texto_descritivo},[o],30,window.location.hostname);Fa(),window.dispatchEvent(new CustomEvent("wbd:affiliate-updated"))}}return window.addEventListener(eu,n),()=>window.removeEventListener(eu,n)},[])}async function lf(){try{if(typeof window=="undefined")return;const e=new URLSearchParams(window.location.search),t=e.get("ref_code")||e.get("ref");t?await mb(t):(Ua(null,window.location.hostname),Fa(),window.dispatchEvent(new CustomEvent("wbd:affiliate-updated")))}catch(e){console.error("initReferral error",e)}}const cf="https://certificados.winningbydesign.com.br";function aC(e,t=""){const n=String(e||"").trim();return`${n?`${cf}/${encodeURIComponent(n)}`:cf}${t}`}function hn(){const{codigo:e}=U0(),t=Et(),n=w.useMemo(()=>aC(e,`${t.search}${t.hash}`),[e,t.hash,t.search]);return w.useEffect(()=>{window.location.replace(n)},[n]),s.jsxs("div",{className:"certificado-page",children:[s.jsx(ye,{title:"Redirecionando certificado | Winning by Design",description:"Você está sendo redirecionado para a nova área de certificados.",url:t.pathname,keywords:"certificado, redirecionamento, winning by design"}),s.jsx(de,{id:"certificado-redirecionamento",children:s.jsx(ne,{children:s.jsxs("div",{className:"certificado-state certificado-state--loading",children:[s.jsx(K,{level:3,children:"Redirecionando..."}),s.jsx(P,{children:"Você está sendo encaminhado para a nova área de certificados."}),s.jsxs(P,{children:["Se o redirecionamento não acontecer automaticamente,"," ",s.jsx("a",{href:n,children:"clique aqui para continuar"}),"."]})]})})})]})}/**
122 * @license lucide-react v1.12.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const hb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
127 * @license lucide-react v1.12.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const sC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
132 * @license lucide-react v1.12.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const oC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
137 * @license lucide-react v1.12.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const uf=e=>{const t=oC(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
142 * @license lucide-react v1.12.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */var Wl={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"};/**
147 * @license lucide-react v1.12.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const lC=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},cC=w.createContext({}),uC=()=>w.useContext(cC),dC=w.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...l},c)=>{var v,x,y;const{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:h=!1,color:m="currentColor",className:p=""}=(v=uC())!=null?v:{},f=(r!=null?r:h)?Number(n!=null?n:d)*24/Number(t!=null?t:u):n!=null?n:d;return w.createElement("svg",{ref:c,...Wl,width:(x=t!=null?t:u)!=null?x:Wl.width,height:(y=t!=null?t:u)!=null?y:Wl.height,stroke:e!=null?e:m,strokeWidth:f,className:hb("lucide",p,i),...!a&&!lC(l)&&{"aria-hidden":"true"},...l},[...o.map(([g,b])=>w.createElement(g,b)),...Array.isArray(a)?a:[a]])});/**
152 * @license lucide-react v1.12.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const Ft=(e,t)=>
156{const n=w.forwardRef(({className:r,...i},a)=>w.createElement(dC,{ref:a,iconNode:t,className:hb(`lucide-${sC(uf(e))}`,`lucide-${e}`,r),...i}));return n.displayName=uf(e),n};/**
157 * @license lucide-react v1.12.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const mC=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],hC=Ft("calendar-days",mC);/**
162 * @license lucide-react v1.12.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const pC=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],fC=Ft("chart-no-axes-column",pC);/**
167 * @license lucide-react v1.12.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const gC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pb=Ft("chevron-right",gC);/**
172 * @license lucide-react v1.12.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const vC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],yC=Ft("circle-check",vC);/**
177 * @license lucide-react v1.12.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const bC=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],wC=Ft("link-2",bC);/**
182 * @license lucide-react v1.12.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const xC=[["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"}]],SC=Ft("lock",xC);/**
187 * @license lucide-react v1.12.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const jC=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],wo=Ft("mail",jC);/**
192 * @license lucide-react v1.12.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const kC=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],xo=Ft("phone",kC);/**
197 * @license lucide-react v1.12.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const EC=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],AC=Ft("refresh-cw",EC);/**
202 * @license lucide-react v1.12.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const TC=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],_C=Ft("rocket",TC);/**
207 * @license lucide-react v1.12.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const CC=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],NC=Ft("users",CC),Vl=[{id:"visao-geral",label:"Visão geral"},{id:"pontuacao",label:"Pontuação"},{id:"pilares",label:"Ações"},{id:"niveis",label:"Níveis"},{id:"premio-maximo",label:"Elite"},{id:"regras",label:"Regras"},{id:"faq",label:"FAQ"}],RC=[{title:"Bronze começa cedo",stat:"200 pts",description:"Uma pesquisa trimestral respondida já abre o primeiro nível e deixa a jornada tangível.",href:"#niveis"},{title:"Prata vem na 1ª conversão",stat:"1.000 pts",description:"Uma única indicação convert
211ida já acelera sua subida e libera o próximo pacote de benefícios.",href:"#pontuacao"},{title:"Elite exige tração real",stat:"6.000 pts",description:"Três conversões fortes mais bônus já colocam a sessão coletiva com Jacco no radar.",href:"#premio-maximo"}],OC=[{question:"Preciso ser aluno ativo para participar?",answer:"Não. O programa vale para alunos ativos e ex-alunos da Winning by Design Brasil, desde que as indicações passem pela curadoria do time."},{question:"Quando recebo meus pontos?",answer:"Pontos por indicação entram após a confirmação da compra e o fim do período de garantia de 7 dias. Pesquisas de status são creditadas dentro do ciclo vigente."},{question:"Posso indicar mais de uma pessoa?",answer:"Sim. O programa foi desenhado para múltiplas indicações, com escala progressiva até a 3ª conversão e bônus quando o indicado compra mais de um produto."},{question:"Quem eu posso indicar?",answer:"O foco é liderança de receita: CRO, VP de Vendas, Head de CS, Diretor Comercial, Founder, Co-Founder, VC ou equivalente. Toda indicação passa por curadoria obrigatória."}],IC=[{action:"1ª indicação convertida",icon:"🟡",points:"+1.000 pts",highlight:!0,note:"Qualquer curso ou mentoria comprado pelo indicado"},{action:"2ª indicação convertida",icon:"🟡",points:"+2.000 pts",highlight:!0,note:"Progressivo - cada nova conversão vale mais"},{action:"3ª indicação convertida",icon:"🟡",points:"+3.000 pts",highlight:!0,note:"Pico da escala progressiva — máximo de pontos por conversão"},{action:"4ª+ indicação convertida",icon:"🟡",points:"+1.000 pts cada",highlight:!0,note:"Valor fixo a partir da 4ª conversão"},{action:"Indicado compra 2+ produtos",icon:"🟡",points:"+500 pts bônus",highlight:!0,note:"Por cada produto adicional que o indicado adquirir"},{action:"Pesquisa de status respondida",icon:"🟢",points:"+200 pts",highlight:!1,note:"Válido 1x por ciclo trimestral"}],LC=[{id:"indicacoes",icon:"🟡",title:"Indicações que Convertem",description:"O pilar de maior peso. Pontos crescem conforme mais pessoas compram via seu link.",warning:"O indicado deve ser um líder de receita e passa por curadoria obrigatória do time Winning by Design Brasil. Pontos só são creditados a
211pós aprovação e compra confirmada.",actions:[{title:"1ª conversão",details:"Primeiro indicado que completa a compra de qualquer curso ou mentoria Winning by Design Brasil via seu link exclusivo.",points:"+1.000 pts",bonus:!0},{title:"2ª conversão",details:"Segundo indicado que converte. A pontuação aumenta para reconhecer o esforço crescente.",points:"+2.000 pts",bonus:!0},{title:"3ª conversão",details:"Terceiro indicado convertido. Você está no caminho para o nível Elite.",points:"+3.000 pts",bonus:!0},{title:"4ª conversão em diante",details:"A partir da 4ª indicação convertida, cada nova vale um valor fixo por conversão.",points:"+1.000 pts cada",bonus:!0},{title:"Bônus: indicado multi-produto",details:"Se o mesmo indicado comprar 2 ou mais produtos Winning by Design Brasil (em qualquer momento), você ganha bônus por produto adicional.",extra:"Ex: indicado compra curso + mentoria = +500 pts extras.",points:"+500 pts/produto",bonus:!0}]},{id:"pesquisa",icon:"🟢",title:"Pesquisa de Status",description:"Mantenha a comunidade viva e atualizada. Seu feedback é estratégico para a Winning by Design Brasil.",actions:[{title:"Resposta à pesquisa trimestral",details:"Responder à pesquisa de atualização de status da comunidade dentro do prazo definido (geralmente 2 semanas após abertura).",extra:"Válido 1x por ciclo. Publicada trimestralmente.",points:"+200 pts",bonus:!1}]}],Hl=[{id:"bronze",medal:"/images/badges/Bronze.png",label:"Nível 1",name:"Bronze",threshold:"200 pts",unlockNote:"Desbloqueia com 1 pesquisa trimestral respondida",isUnlocked:!0,rewards:["10% off em cursos e workshops","Acesso ao RA Starter Kit",'Selo "Embaixador Bronze" na comunidade']},{id:"prata",medal:"/images/badges/Prata.png",label:"Nível 2",name:"Prata",threshold:"1.000 pts",unlockNote:"Desbloqueia com a 1ª indicação convertida",isUnlocked:!1,rewards:["15% off em cursos e programas","Ingresso gratuito para os workshops online Winning by Design Brasil","Acesso antecipado a novos lançamentos","Destaque na newsletter da comunidade",'Selo "Embaixador Prata" na comunidade',"Acesso ao Mini Curso SPICED gravado"]},{id:"ouro",medal:"/images/badges/Ouro.png",label:"Nível 3",name:"Ouro",threshold:"3.000 pts",unlockNote:"Normalmente chega com 3 conversões confirmadas",isUnlocked:!1,rewards:["30% off em qualquer produto Winning by Design Brasil","Vaga na Mentoria RA em grupo (4 sessões ao vivo de 1,5h online e intransferível)","Par de ingressos VIP — Impact Summit Brasil",'Menção como "Embaixador Ouro" nas redes Winning by Design Brasil']},{id:"elite",medal:"/images/badges/Elite.png",label:"Nível 4",name:"Elite",threshold:"6.000 pts",unlockNote:"Exige volume consistente de conversões e bônus acumulados",isUnlocked:!1,rewards:["50% off em toda a linha Winning by Design Brasil","Acesso vitalício ao Fórum de Ex-Alunos Winning by Design Brasil","Case de sucesso publicado com a Renata Centurión no LinkedIn","Par de ingressos VIP pro Impact Summit BRASIL · 2 de setembro · Cubo Itaú, São Paulo","Sessão presencial com Jacco van der Kooij: 2h com todos os membros Elite do ciclo · Pontos devem ser acumulados impreterivelmente até 21/08/26"]}],DC=[{icon:s.jsx(wC,{size:22}),title:"Link Nominal Único",text:"Cada embaixador recebe um link de indicação exclusivo e intransferível. Somente conversões realizadas por este link são contabilizadas."},{icon:s.jsx(yC,{size:22}),title:"Confirmação de Conversão",text:"Os pontos de indicação são creditados a
211pós o vencimento do período de garantia (7 dias). Cancelamentos, independente do prazo, não serão contabilizados."},{icon:s.jsx(hC,{size:22}),title:"Vigência e Ciclos",text:"O programa opera em ciclos anuais com resetagem de nível (não de pontos acumulados). A sessão coletiva presencial do nível Elite acontece dentro do ciclo anual, com agenda confirmada por e-mail."},{icon:s.jsx(SC,{size:22}),title:"Intransferibilidade",text:"Todos os prêmios são pessoais e intransferíveis, especialmente a sessão coletiva presencial e os ingressos vinculados ao programa."},{icon:s.jsx(NC,{size:22}),title:"Curadoria Obrigatória de Indicados",text:"Todo indicado deve ser obrigatoriamente um líder de receita: CRO, VP de Vendas, Head de CS, Diretor Comercial, Founder, Co-Founder, VC's ou equivalente. Todas as indicações passam pela curadoria do time da Winning by Design Brasil antes de qualquer acesso ser confirmado. A aprovação não é automática, e indicações fora do link e/ou fora do perfil não geram pontos para o embaixador."},{icon:s.jsx(fC,{size:22}),title:"Dashboard em Tempo Real",text:"Você acompanha seus pontos, conversões e nível atual em tempo real através do painel de membro Winning by Design Brasil. Nenhuma ação fica sem visibilidade."},{icon:s.jsx(AC,{size:22}),title:"Retroatividade",text:"O programa é válido para alunos ativos e ex-alunos. Quem já realizou algum curso também pode participar e acumular pontos."},{icon:s.jsx(_C,{size:22}),title:"Quem já indicou já está na frente!",text:"Se você já indicou líderes de receita que adquiriram algum curso ou mentoria da Winning by Design Brasil, esses pontos já estão valendo para o programa. Entre em contato com nossa equipe e envie o nome das pessoas que você indicou. Verificaremos e contabilizaremos os pontos (confirmação em até 15 dias úteis).",cta:!0,ctaEmail:"[email protected]",ctaSubject:"Indicações anteriores — Programa Embaixadores"}];function df(){const[e,t]=w.useState(Vl[0].id),n=w.useMemo(()=>{const r=Hl.reduce((i,a,o)=>a.isUnlocked?o:i,0);return r<=0?0:r/(Hl.length-1)*100},[]);return w.useEffect(()=>{window.scrollTo(0,0)},[]),w.useEffect(()=>{const r=Vl.map(({id:a})=>document.getElementById(a)).filter(Boolean);if(!r.length)return;const i=new IntersectionObserver(a=>{var l;const o=a.filter(c=>c.isIntersecting).sort((c,u)=>u.intersectionRatio-c.intersectionRatio)[0];(l=o==null?void 0:o.target)!=null&&l.id&&t(o.target.id)},{rootMargin:"-20% 0px -55% 0px",threshold:[.2,.45,.7]});return r.forEach(a=>i.observe(a)),()=>{r.forEach(a=>i.unobserve(a)),i.disconnect()}},[]),s.jsxs("div",{className:"member-get-member-page",children:[s.jsx(ye,{title:"Member Get Member | Programa Embaixadores - Winning by Design Brasil",description:"Programa Embaixadores da Winning by Design Brasil: indique, acumule pontos e troque por recompensas exclusivas em cursos, eventos e mentorias.",image:"/images/og/home.jpg",url:"/indique-e-ganhe",keywords:"programa embaixadores, indique e ganhe, Winning by Design Brasil, revenue architecture"}),s.jsx(Se,{buttonText:"REGULAMENTO",buttonHref:"#regras"}),s.jsx("section",{className:"ieg-hero","data-track-section":"hero",children:s.jsxs("div",{className:"ieg-hero-inner",children:[s.jsx("p",{className:"ieg-eyebrow",children:"Programa de Embaixadores | Winning by Design Brasil"}),s.jsxs("h1",{children:["Indique.",s.jsx("br",{}),s.jsx("em",{children:"Ganhe."}),s.jsx("br",{}),"Cresça junto."]}),s.jsx("p",{className:"ieg-hero-subtitle",children:"O programa de embaixadores da Winning by Design Brasil recompensa membros da comunidade que disseminam a cultura dos seis modelos de Revenue Architecture no Brasil"}),s.jsx("div",{className:"ieg-hero-actions",children:s.jsx(et,{to:"/member-get-member/login",className:"ieg-connect-btn",children:"Conectar"})})]})}),s.jsx("nav",{className:"ieg-sticky-nav","aria-label":"Navegação da página",children:s.jsx("div",{className:"ieg-sticky-nav-inner",children:Vl.map(r=>s.jsx("a",{href:`#${r.id}`,className:`ieg-sticky-link ${e===r.id?"is-active":""}`,children:r.label},r.id))})}),s.jsxs("section",{className:"ieg-section",id:"visao-geral","data-track-section":"visao-geral",children:[s.jsxs("div",{className:"ieg-section-header",children:[s.jsx("p",{className:"ieg-section-label",children:"Visão Geral"}),s.jsx("h2",{children:"Como o programa funciona"}),s.jsx("p",{children:"Cada conversão tem um peso diferente em pontos. Você acumula pontos ao longo da vigência do programa e troca por recompensas conforme vai subindo de nível."})]}),s.jsxs("div",{className:"ieg-how-grid",children:[s.jsxs("article",{className:"ieg-how-card",children:[s.jsx("span",{className:"ieg-how-number",children:"01"}),s.jsx("h3",{children:"Aja"}),s.jsx("p",{children:"Indique pessoas para cursos e mentorias e responda as pesquisas de status da comunidade."}),s.jsx("span",{className:"ieg-chip",children:"+PTS por conversão"})]}),s.jsxs("article",{className:"ieg-how-card",children:[s.jsx("span",{className:"ieg-how-number",children:"02"}),s.jsx("h3",{children:"Acumule"}),s.jsx("p",{children:"Seus pontos são registrados automaticamente. Quanto mais você engaja, mais rápido sobe de nível."}),s.jsx("span",{className:"ieg-chip",children:"Seu painel em tempo real"})]}),s.jsxs("article",{className:"ieg-how-card",children:[s.jsx("span",{className:"ieg-how-number",children:"03"}),s.jsx("h3",{children:"Resgate"}),s.jsx("p",{children:"Troque seus pontos por descontos reais de 10% a 50% em cursos e eventos, acesso a workshops exclusivos ou conquiste a sessão coletiva com Jacco van der Kooij junto dos seus pares."}),s.jsx("span",{className:"ieg-chip",children:"4 níveis de recompensa"})]})]}),s.jsx("div",{className:"ieg-summary-grid","aria-label":"Resumo visual da jornada",children:RC.map(r=>s.jsxs("a",{href:r.href,className:"ieg-summary-card",children:[s.jsx("p",{className:"ieg-summary-title",children:r.title}),s.jsx("strong",{className:"ieg-summary-stat",children:r.stat}),s.jsx("p",{className:"ieg-summary-description",children:r.description})]},r.title))})]}),s.jsxs("section",{className:"ieg-points",id:"pontuacao","data-track-section":"pontuacao",children:[s.jsxs("div",{className:"ieg-section-header",children:[s.jsx("p",{className:"ieg-section-label",children:"Sistema de Pontos"}),s.jsx("h2",{children:"Tabela de Pontuação"}),s.jsx("p",{children:"Cada pilar tem um peso distinto. Indicações que convertem em vendas têm o maior retorno e aumentam inicialmente de forma progressiva."})]}),s.jsx("div",{className:"ieg-points-table-wrap",children:s.jsxs("table",{className:"ieg-points-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Ação"}),s.jsx("th",{children:"Pontos Base"}),s.jsx("th",{children:"Observação"})]})}),s.jsx("tbody",{children:IC.map(r=>s.jsxs("tr",{children:[s.jsxs("td",{className:"ieg-action-name",children:[s.jsx("span",{children:r.icon}),s.jsx("span",{children:r.action})]}),s.jsx("td",{children:s.jsx("span",{className:`ieg-points-chip ${r.highlight?"is-highlight":""}`,children:r.points})}),s.jsx("td",{children:r.note})]},r.action))})]})}),s.jsxs("aside",{className:"ieg-note-card",children:[s.jsx("span",{className:"ieg-note-icon",children:"🎁"}),s.jsxs("div",{children:[s.jsx("h3",{children:"Quem é indicado também ganha"}),s.jsxs("p",{children:["Ao se inscrever via link de um embaixador, o indicado recebe"," ",s.jsx("strong",{children:"15% off no primeiro produto adquirido da Winning by Design Brasil"})," ","+ acesso ao ",s.jsx("strong",{children:"RA Starter Kit"}),". Para o 2º produto ou mais, adquiridos em combo:"," ",s.jsx("strong",{children:"25% off aplicado à compra do combo"}),"."]})]})]}),s.jsxs("aside",{className:"ieg-note-card is-warning",children:[s.jsx("span",{className:"ieg-note-icon",children:"⚠️"}),s.jsxs("div",{children:[s.jsx("h3",{children:"Atenção: curadoria obrigatória"}),s.jsx("p",{children:"Todo indicado deve ser obrigatoriamente um líder de receita: CRO, VP de Vendas, Head de CS, Diretor Comercial ou equivalente. Indicações fora deste perfil não serão aprovadas. Todas as pessoas indicadas passam pela curadoria do time da Winning by Design Brasil."})]})]})]}),s.jsxs("section",{className:"ieg-section",id:"pilares","data-track-section":"pilares",children:[s.jsxs("div",{className:"ieg-section-header",children:[s.jsx("p",{className:"ieg-section-label",children:"Os Três Pilares"}),s.jsx("h2",{children:"Ações em detalhe"}),s.jsx("p",{children:"Entenda exatamente o que vale pontos em cada pilar do programa."})]}),s.jsx("div",{className:"ieg-pillars",children:LC.map(r=>s.jsxs("article",{className:"ieg-pillar",children:[s.jsxs("div",{className:"ieg-pillar-left",children:[s.jsx("span",{className:"ieg-pillar-icon",children:r.icon}),s.jsx("h3",{children:r.title}),s.jsx("p",{children:r.description}),r.warning&&s.jsxs("p",{className:"ieg-pillar-warning",children:["⚠️ ",r.warning]})]}),s.jsx("div",{className:"ieg-pillar-right",children:r.actions.map(i=>s.jsxs("div",{className:"ieg-action-row",children:[s.jsxs("div",{className:"ieg-action-copy",children:[s.jsx("h4",{children:i.title}),s.jsx("p",{children:i.details}),i.extra&&s.jsx("small",{children:i.extra})]}),s.jsx("span",{className:`ieg-chip ${i.bonus?"is-bonus":""}`,children:i.points})]},i.title))})]},r.id))})]}),s.jsxs("section",{className:"ieg-section",id:"niveis","data-track-section":"niveis",children:[s.jsxs("div",{className:"ieg-section-header",children:[s.jsx("p",{className:"ieg-section-label",children:"Recompensas por Nível"}),s.jsx("h2",{children:"Suba de nível, ganhe mais"}
211),s.jsx("p",{children:"Cada ponto te aproxima do topo. Veja o que você desbloqueia em cada estágio — e o que te espera ao chegar ao nível Elite."})]}),s.jsxs("div",{className:"ieg-track",children:[s.jsx("div",{className:"ieg-track-line",children:s.jsx("div",{className:"ieg-track-fill",style:{width:`${n}%`}})}),Hl.map(r=>s.jsxs("div",{className:`ieg-track-node ${r.isUnlocked?"is-unlocked":""} ${r.id==="elite"?"is-elite":""}`,children:[s.jsx("div",{className:"ieg-node-dot",children:s.jsx("img",{src:r.medal,alt:`Badge ${r.name}`,className:"ieg-node-icon"})}),s.jsx("div",{className:"ieg-node-pts",children:r.threshold}),s.jsxs("div",{className:`ieg-node-card ${r.id==="elite"?"is-elite":""}`,children:[r.id==="elite"&&s.jsx("div",{className:"ieg-elite-glow"}),s.jsx("p",{className:"ieg-node-level-label",children:r.label}),s.jsx("h3",{className:"ieg-node-level-name",children:r.name}),s.jsx("p",{className:"ieg-node-unlock-note",children:r.unlockNote}),s.jsx("ul",{className:"ieg-node-rewards",children:r.rewards.map(i=>s.jsx("li",{children:i},i))})]})]},r.id))]})]}),s.jsx("section",{className:"ieg-grand-prize",id:"premio-maximo","data-track-section":"premio-maximo",children:s.jsxs("div",{className:"ieg-grand-grid",children:[s.jsxs("div",{children:[s.jsx("p",{className:"ieg-section-label",children:"Prêmio Máximo · Nível Elite · 6.000 pts"}),s.jsxs("h2",{children:["Sessão presencial com ",s.jsx("em",{children:"Jacco van der Kooij"})]}),s.jsx("p",{children:"Duas horas de sessão presencial com Jacco e todos os Embaixadores Elite do ciclo. Uma conversa de alto nível com o fundador da Winning by Design e criador dos Modelos de Revenue Architecture e os profissionais que, assim como você, chegaram lá indicando, disseminando e contribuindo com a comunidade brasileira. Isso é networking de elite."}),s.jsxs("ul",{className:"ieg-grand-rewards",children:[s.jsxs("li",{children:["🎯 ",s.jsx("strong",{children:"50% off"})," em toda a linha Winning by Design Brasil"]}),s.jsxs("li",{children:["🏛️ ",s.jsx("strong",{children:"Acesso vitalício"})," ao Fórum de Ex-Alunos Winning by Design Brasil"]}),s.jsxs("li",{children:["📱 ",s.jsx("strong",{children:"Case de sucesso publicado"})," com a Renata Centurión no LinkedIn"]}),s.jsxs("li",{children:["🏆 ",s.jsx("strong",{children:"Par de ingressos VIP"})," pro Impact Summit BRASIL · 2 de setembro · Cubo Itaú, São Paulo"]}),s.jsxs("li",{className:"is-highlight",children:["⚡"," ",s.jsx("strong",{children:"Sessão coletiva presencial: 2h com Jacco van der Kooij"})," ","e todos os Elites do ciclo · Pontos devem ser acumulados impreterivelmente até 21/08/26"]})]}),s.jsxs("p",{className:"ieg-grand-chip",children:[s.jsx("strong",{children:"6.000"})," pontos para desbloquear - Nível Elite"]})]}),s.jsxs("article",{className:"ieg-jacco-card",children:[s.jsx("div",{className:"ieg-jacco-avatar",children:s.jsx("img",{src:"/impact-summit-medias/speakers/jacco.jfif",alt:"Foto de Jacco van der Kooij",className:"ieg-jacco-photo",style:{width:"100%",height:"100%",objectFit:"cover"}})}),s.jsx("h3",{children:"Jacco van der Kooij"}),s.jsx("p",{className:"ieg-jacco-role",children:"Founder · Winning by Design"}),s.jsx("p",{children:"Pioneiro do Revenue Architecture. Autor, advisor e keynote speaker global em growth para B2B SaaS."}),s.jsx("a",{href:"https://www.linkedin.com/in/jaccovanderkooij/",target:"_blank",rel:"noopener noreferrer",className:"ieg-jacco-linkedin",children:"Ver perfil no LinkedIn →"})]})]})}),s.jsxs("section",{className:"ieg-section",id:"regras","data-track-section":"regras",children:[s.jsxs("div",{className:"ieg-section-header",children:[s.jsx("p",{className:"ieg-section-label",children:"Regulamento"}),s.jsx("h2",{children:"Regras do programa"}),s.jsx("p",{children:"Transparência e simplicidade. O programa foi desenhado para ser justo e fácil de acompanhar."})]}),s.jsx("div",{className:"ieg-rules-grid",children:DC.map(r=>s.jsxs("article",{className:`ieg-rule-card${r.cta?" is-cta":""}`,children:[s.jsx("span",{className:"ieg-rule-icon",children:r.icon}),s.jsx("h3",{children:r.title}),s.jsx("p",{children:r.text}),r.cta&&s.jsxs("a",{href:`mailto:${r.ctaEmail}?subject=${encodeURIComponent(r.ctaSubject)}`,className:"ieg-rule-cta",children:["✉ ",r.ctaEmail]})]},r.title))})]}),s.jsxs("section",{className:"ieg-section ieg-faq-section",id:"faq","data-track-section":"faq",children:[s.jsxs("div",{className:"ieg-section-header",children:[s.jsx("p",{className:"ieg-section-label",children:"FAQ Rápido"}),s.jsx("h2",{children:"Tire as dúvidas antes de indicar"}),s.jsx("p",{children:"As perguntas abaixo removem a fricção mais comum antes da primeira indicação e ajudam a deixar o programa mais claro jÃ
211¡ na leitura."})]}),s.jsx("div",{className:"ieg-faq-list",children:OC.map(r=>s.jsxs("details",{className:"ieg-faq-item",children:[s.jsx("summary",{children:r.question}),s.jsx("p",{children:r.answer})]},r.question))})]}),s.jsx(je,{links:ur.links})]})}const PC="https://ykezpkrujtbtczhnmtuq.supabase.co",MC="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ",mf="login-mgm",So="wbd_mgm_otp_challenge",jo="wbd_mgm_auth_session";async function fb(e,t){const n=await e.functions.invoke(mf,{body:t});if(!n.error||mf==="login-mgm")return n}let Du=null;Du=qt(PC,MC);function gb(){return Du?{client:Du}:{error:"Configuração do Supabase não encontrada"}}async function vb(e,t){if(!e)return t;const n=typeof t=="string"&&t.trim()?t.trim():"Nao foi possivel concluir a solicitacao. Tente novamente.";try{if(e.context&&typeof e.context.json=="function"){const a=await e.context.json(),o=typeof(a==null?void 0:a.error)=="string"?a.error.trim():typeof(a==null?void 0:a.message)=="string"?a.message.trim():"";if(o)return o}}catch{}const r=typeof e.message=="string"?e.message.trim():"",i=r.toLowerCase();return!i||i.includes("non-2xx")||i.includes("edge function returned")?n:i.includes("failed to fetch")||i.includes("network")?"Nao foi possivel conectar ao servidor. Tente novamente em instantes.":r}async function BC(e){const{client:t,error:n}=gb();if(!t)return{success:!1,error:n};const r=(e||"").trim();if(!r)return{success:!1,error:"Informe email ou codigo"};try{const{data:i,error:a}=await fb(t,{login:r});return a?(console.error("Error calling login-mgm Edge Function:",a),{success:!1,error:await vb(a,"Nao foi possivel enviar o codigo. Confira seus dados e tente novamente.")}):i!=null&&i.success?{success:!0,email:i.email,emailMasked:i.emailMasked,message:i.message,challengeToken:i.challengeToken}:{success:!1,error:(i==null?void 0:i.error)||"Se os dados estiverem corretos, voce recebera o codigo no email"}}catch(i){return console.error("Error requesting MGM OTP:",i),{success:!1,error:i.message||"Erro inesperado"}}}async function $C(e,t){const{client:n,error:r}=gb();if(!n)return{success:!1,error:r};const i=(e||"").trim().toLowerCase(),a=(t||"").trim();if(!i||!a)return{success:!1,error:"Informe email e codigo OTP"};try{const o=sessionStorage.getItem(So),l=o?JSON.parse(o):null;if(!l||l.email!==i||!l.challengeToken)return{success:!1,error:"Solicite um novo codigo para continuar"};const{data:c,error:u}=await fb(n,{action:"verify",email:i,token:a,challengeToken:l.challengeToken});if(u)return console.error("Error verifying MGM OTP:",u),{success:!1,error:await vb(u,"Codigo invalido ou expirado. Solicite um novo codigo.")};if(!(c!=null&&c.success)||!(c!=null&&c.authenticated))return{success:!1,error:(c==null?void 0:c.error)||"Codigo invalido ou expirado"};const d=Number((c==null?void 0:c.sessionExpiresAt)||Date.now()+12*60*60*1e3);return localStorage.setItem(jo,JSON.stringify({email:i,nome:typeof(c==null?void 0:c.nome)=="string"?c.nome.trim():"",codigo:typeof(c==null?void 0:c.codigo)=="string"?c.codigo.trim():"",sessionExpiresAt:d,loggedAt:new Date().toISOString()})),sessionStorage.removeItem(So),{success:!0,session:{user:{email:i,nome:typeof(c==null?void 0:c.nome)=="string"?c.nome.trim():"",codigo:typeof(c==null?void 0:c.codigo)=="string"?c.codigo.trim():""},expires_at:d},user:{email:i,nome:typeof(c==null?void 0:c.nome)=="string"?c.nome.trim():"",codigo:typeof(c==null?void 0:c.codigo)=="string"?c.codigo.trim():""}}}catch(o){return console.error("Error verifying MGM OTP:",o),{success:!1,error:o.message||"Erro inesperado"}}}async function yb(){try{const e=localStorage.getItem(jo);if(!e)return{success:!0,session:null};const t=JSON.parse(e),n=Number((t==null?void 0:t.sessionExpiresAt)||0);return!(t!=null&&t.email)||!n||n<=Date.now()?(localStorage.removeItem(jo),{success:!0,session:null}):{success:!0,session:{user:{email:t.email,nome:typeof(t==null?void 0:t.nome)=="string"?t.nome.trim():"",codigo:typeof(t==null?void 0:t.codigo)=="string"?t.codigo.trim():""},expires_at:n}}}catch(e){return console.error("Error reading MGM session:",e),{success:!0,session:null}}}async function UC(){try{return localStorage.removeItem(jo),sessionStorage.removeItem(So),{success:!0}}catch(e){return console.error("Error signing out MGM session:",e),{success:!1,error:e.message||"Erro inesperado"}}}function qC(e,t){if(!(!e||!t))try{sessionStorage.setItem(So,JSON.stringify({email:String(e).trim().toLowerCase(),challengeToken:t,createdAt:Date.now()}))}catch(n){console.error("Error saving MGM OTP challenge:",n)}}function FC({login:e}){const t={};return(e||"").trim()||(t.login="Informe seu e-mail ou código de afiliado."),t}function zC({otp:e}){const t={},n=(e||"").trim();return n?/^\d{6}$/.test(n)||(t.otp="O código deve ter exatamente 6 números."):t.otp="Informe o código de verificação recebido por e-mail.",t}function hf(){const e=hr(),[t,n]=w.useState("request"),[r,i]=w.useState(""),[a,o]=w.useState(""),[l,c]=w.useState(""),[u,d]=w.useState(""),[h,m]=w.useState({}),[p,f]=w.useState(""),[v,x]=w.useState(!1);w.useEffect(()=>{window.scrollTo(0,0),yb().then(S=>{S.success&&S.session&&e("/member-get-member/pontos",{replace:!0})})},[e]);const y=w.useMemo(()=>v?!1:t==="request"?(r||"").trim().length>0:(a||"").trim().length>0,[r,a,v,t]),g=async()=>{const S=FC({login:r});if(m(S),f(""),Object.keys(S).length>0)return;const k=await BC(r);if(!k.success){m({login:k.error||"Não foi possível enviar o código. Tente novamente."});return}c(k.email||""),d(k.emailMasked||k.email||""),qC(k.email||"",k.challengeToken||""),f(k.message||"Código enviado! Verifique sua caixa de entrada para continuar."),n("verify"),m({})},b=async()=>{const S=zC({otp:a});if(m(S),Object.keys(S).length>0)return;const k=await $C(l,a);if(!k.success){m({otp:k.error||"Código inválido ou expirado. Solicite um novo."});return}e("/member-get-member/pontos",{replace:!0})},j=async S=>{S.preventDefault(),x(!0),t==="request"?await g():await b(),x(!1)},A=async()=>{v||(x(!0),await g(),x(!1))};return s.jsxs("div",{className:"mgm-login-page",children:[s.jsx(ye,{title:"Conectar | Member Get Member - Winning by Design Brasil",description:"Acesse seu painel de pontos do programa Member Get Member.",image:"/images/og/home.jpg",url:"/member-get-member/login"}),s.jsx(Se,{buttonText:"REGULAMENTO",buttonHref:"/member-get-member"}),s.jsx("main",{className:"mgm-login-main","data-track-section":"mgm-login",children:s.jsxs("section",{className:"mgm-login-card",children:[s.jsx("p",{className:"mgm-login-eyebrow",children:"Member Get Member"}),s.jsx("h1",{children:"Acesse seu painel de pontos"}),s.jsx("p",{className:"mgm-login-subtitle",children:"Digite seu e-mail ou código de afiliado. Vamos enviar um código de verificação para você entrar com segurança."}),s.jsx("div",{className:"mgm-step-pill","aria-live":"polite",children:t==="request"?"Etapa 1 de 2: identificação":"Etapa 2 de 2: confirmação"}),p&&s.jsx("p",{className:"mgm-feedback-success",children:p}),s.jsxs("form",{onSubmit:j,className:"mgm-login-form",noValidate:!0,children:[t==="request"&&s.jsxs("div",{className:"mgm-field",children:[s.jsx("label",{htmlFor:"mgm-login",children:"E-mail ou código de afiliado"}),s.jsx("input",{id:"mgm-login",type:"text",placeholder:"[email protected] ou seu código",value:r,onChange:S=>i(S.target.value),autoComplete:"username"}),h.login&&s.jsx("p",{className:"mgm-field-error",children:h.login})]}),t==="verify"&&s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"mgm-otp-helper",children:["Enviamos um código de verificação para"," ",s.jsx("strong",{children:u||l}),". Verifique sua caixa de entrada (e o spam)."]}),s.jsxs("div",{className:"mgm-field",children:[s.jsx("label",{htmlFor:"mgm-otp",children:"Código de verificação"}),s.jsx("input",{id:"mgm-otp",type:"text",inputMode:"numeric",placeholder:"Digite os 6 números recebidos",maxLength:6,value:a,onChange:S=>o(S.target.value.replace(/\D/g,"")),autoComplete:"one-time-code"}),h.otp&&s.jsx("p",{className:"mgm-field-error",children:h.otp})]})]}),s.jsx("button",{type:"submit",className:"mgm-login-submit",disabled:!y,children:v?"Processando...":t==="request"?"Enviar código":"Confirmar e entrar"}),t==="verify"&&s.jsx("button",{type:"button",className:"mgm-login-resend",onClick:A,disabled:v,children:"Não recebi — reenviar código"})]}),s.jsxs("div",{className:"mgm-login-actions",children:[s.jsx("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLSfTM42fzg2KGkWIQMlfp4-w3U07YZLBAO3CPX1ENE7JPReogQ/viewform",target:"_blank",rel:"noopener noreferrer",className:"mgm-login-signup-link",children:"Cadastre-se"}),s.jsx(et,{to:"/member-get-member",className:"mgm-login-back-link",children:"Voltar para regulamento"})]})]})}),s.jsx(je,{links:ur.links})]})}const WC="https://ykezpkrujtbtczhnmtuq.supabase.co",VC="sb_publishable_OcLhfGVLKT6giehtL5P-7w_KJdnrojJ",HC="list-points-mgm";let Pu=null;Pu=qt(WC,VC);function GC(){return Pu?{client:Pu}
211:{error:"Configuracao do Supabase nao encontrada"}}async function KC(e){var i,a,o,l,c,u;const{client:t,error:n}=GC();if(!t)return{success:!1,error:n};const r=String(e||"").trim();if(!r)return{success:!1,error:"Codigo do afiliado nao encontrado"};try{const{data:d,error:h}=await t.functions.invoke(HC,{body:{codigo:r}});return h?(console.error("Error calling list-points-mgm Edge Function:",h),{success:!1,error:h.message||"Erro ao buscar pontos"}):d!=null&&d.success?{success:!0,data:{codigo:((i=d==null?void 0:d.data)==null?void 0:i.codigo)||r,totalPoints:Number(((a=d==null?void 0:d.data)==null?void 0:a.totalPoints)||0),updatedAt:((o=d==null?void 0:d.data)==null?void 0:o.updatedAt)||null,history:Array.isArray((l=d==null?void 0:d.data)==null?void 0:l.history)?d.data.history:[],enabledCourses:Array.isArray((c=d==null?void 0:d.data)==null?void 0:c.enabledPages)?d.data.enabledPages:Array.isArray((u=d==null?void 0:d.data)==null?void 0:u.enabledCourses)?d.data.enabledCourses:[]}}:{success:!1,error:(d==null?void 0:d.error)||"Nao foi possivel carregar os pontos"}}catch(d){return console.error("Error fetching MGM points:",d),{success:!1,error:d.message||"Erro inesperado ao buscar pontos"}}}const Mu={Bronze:{min:0,max:99,image:"/images/badges/Bronze.png"},Prata:{min:100,max:499,image:"/images/badges/Prata.png"},Ouro:{min:500,max:999,image:"/images/badges/Ouro.png"},Elite:{min:1e3,max:1/0,image:"/images/badges/Elite.png"}},pf={home:"https://winningbydesign.com.br/","impact-submmit-brasil-2026":"https://winningbydesign.com.br/impact-summit-brasil/inscricao"};function JC(e){const t=String(e||"").trim().toLowerCase().replace(/submmit/g,"
211summit").replace(/revenua/g,"revenue").replace(/[-_]+/g," ");return t?t.replace(/\b\p{L}/gu,n=>n.toUpperCase()):"Link"}function YC(e){const t=String(e||"").trim().toLowerCase();return t?pf[t]?pf[t]:t.startsWith("curso-")?`https://winningbydesign.com.br/${t}`:`https://winningbydesign.com.br/curso-${t}`:"https://winningbydesign.com.br/"}function ff(e){if(!e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleDateString("pt-BR")}function gf(e){const t=Number(e||0);for(const[n,{min:r,max:i}]of Object.entries(Mu))if(t>=r&&t<=i)return n;return"Membro"}function vf(){var k;const e=hr(),[t,n]=w.useState(null),[r,i]=w.useState(!0),[a,o]=w.useState(!0),[l,c]=w.useState(""),[u,d]=w.useState({totalPoints:0,level:"Membro",conversionsCount:0,updatedAt:null}),[h,m]=w.useState([]),[p,f]=w.useState([]),[v,x]=w.useState(""),[y,g]=w.useState("");w.useEffect(()=>{window.scrollTo(0,0),yb().then(E=>{var I,$,D;if(!E.success||!E.session){n(null),e("/member-get-member/login",{replace:!0});return}n({email:((I=E.session.user)==null?void 0:I.email)||"",nome:(($=E.session.user)==null?void 0:$.nome)||"",codigo:((D=E.session.user)==null?void 0:D.codigo)||"",loggedAt:E.session.expires_at||null})}).finally(()=>{i(!1)})},[e]),w.useEffect(()=>{if(!t){o(!1);return}const E=String(t.codigo||"").trim();if(!E){c("Código do afiliado não encontrado na sessão."),o(!1);return}o(!0),c(""),KC(E).then(I=>{var D,W,V,L,C;if(!I.success){c(I.error||"Não foi possível carregar os pontos."),d({totalPoints:0,level:gf(0),conversionsCount:0,updatedAt:null}),m([]),f([]);return}const $=Array.isArray((D=I.data)==null?void 0:D.history)?I.data.history:[];m($),d({totalPoints:Number(((W=I.data)==null?void 0:W.totalPoints)||0),level:gf((V=I.data)==null?void 0:V.totalPoints),conversionsCount:$.length,updatedAt:((L=I.data)==null?void 0:L.updatedAt)||null}),f(Array.isArray((C=I.data)==null?void 0:C.enabledCourses)?I.data.enabledCourses.map(U=>String(U).trim().toLowerCase()):[])}).catch(I=>{c((I==null?void 0:I.message)||"Erro inesperado ao carregar os pontos."),f([])}).finally(()=>{o(!1)})},[t]);const b=w.useMemo(()=>{const E=((t==null?void 0:t.nome)||"").trim();if(E){const[W]=E.split(/\s+/);return W||"Membro"}const I=(t==null?void 0:t.email)||"";if(!I.includes("@"))return"Membro";const[$]=I.split("@"),D=$.replace(/[._-]/g," ").trim();return D?D.charAt(0).toUpperCase()+D.slice(1):"Membro"},[t]),j=w.useMemo(()=>{const E=String((t==null?void 0:t.codigo)||"").trim();return["home",...p].map($=>{const D=$==="home"?"Site Winning by Design":JC($),W=`${YC($)}?ref_code=${encodeURIComponent(E)}`;return{id:$,label:D,url:W}})},[t,p]),A=async()=>{await UC(),n(null),e("/member-get-member/login",{replace:!0})},S=async E=>{if(!E){x("Não foi possível gerar o link de afiliado.");return}try{await navigator.clipboard.writeText(E),g(E),x("Link copiado com sucesso.")}catch{x("Não foi possível copiar automaticamente. Copie o link manualmente.")}};return r||!t?null:s.jsxs("div",{className:"mgm-points-page",children:[s.jsx(ye,{title:"Painel de Pontos | Member Get Member - Winning by Design Brasil",description:"Consulte sua pontuação e nível no programa Member Get Member.",image:"/images/og/home.jpg",url:"/member-get-member/pontos"}),s.jsx(Se,{buttonText:"REGULAMENTO",buttonHref:"/member-get-member"}),s.jsxs("main",{className:`mgm-points-main ${a?"is-loading":""}`,"data-track-section":"mgm-points",children:[s.jsxs("section",{className:"mgm-points-topbar",children:[s.jsxs("div",{children:[s.jsx("p",{className:"mgm-points-eyebrow",children:"Painel de pontos"}),s.jsxs("h1",{children:["Olá, ",b]}),s.jsx("p",{className:"mgm-points-note",children:"Seus dados de pontos são carregados em tempo real."})]}),s.jsxs("div",{className:"mgm-points-actions",children:[s.jsx(et,{className:"mgm-points-link",to:"/member-get-member",children:"Ver regulamento"}),s.jsx("button",{type:"button",className:"mgm-points-logout",onClick:A,children:"Sair"})]})]}),s.jsxs("section",{className:"mgm-points-grid","aria-label":"Resumo de pontos",children:[s.jsxs("article",{className:"mgm-points-card",children:[s.jsx("p",{className:"mgm-card-label",children:"Pontos acumulados"}
211),s.jsx("h2",{children:u.totalPoints.toLocaleString("pt-BR")})]}),s.jsxs("article",{className:"mgm-points-card mgm-level-card",children:[s.jsx("p",{className:"mgm-card-label",children:"Nível atual"}),s.jsx("div",{className:"mgm-level-display",children:s.jsx("img",{src:((k=Mu[u.level])==null?void 0:k.image)||Mu.Bronze.image,alt:`Badge ${u.level}`,className:"mgm-level-badge"})})]}),s.jsxs("article",{className:"mgm-points-card",children:[s.jsx("p",{className:"mgm-card-label",children:"Total de Ações"}),s.jsx("h2",{children:u.conversionsCount})]}),s.jsxs("article",{className:"mgm-points-card",children:[s.jsx("p",{className:"mgm-card-label",children:"Última atualização"}),s.jsx("h2",{children:ff(u.updatedAt)})]})]}),s.jsxs("section",{className:"mgm-referral-box","aria-label":"Link de afiliado",children:[s.jsxs("div",{className:"mgm-referral-header",children:[s.jsx("h3",{children:"Seus links para compartilhar"}),s.jsx("p",{children:"Compartilhe com alguém ou nas suas redes sociais."})]}),s.jsxs("div",{className:"mgm-referral-content",children:[j.length===0&&s.jsx("p",{className:"mgm-points-note",children:"Nenhum curso habilitado para seu perfil no momento."}),j.map(E=>s.jsxs("div",{className:"mgm-referral-row",children:[s.jsx("a",{className:"mgm-referral-link",href:E.url,target:"_blank",rel:"noreferrer",title:E.url,children:E.label}),s.jsx("button",{type:"button",className:`mgm-referral-copy ${y===E.url?"is-copied":""}`,onClick:()=>S(E.url),children:y===E.url?"Copiado":"Copiar link"})]},E.id))]}),v&&s.jsx("p",{className:"mgm-referral-feedback",children:v})]}),s.jsxs("section",{className:"mgm-history","aria-label":"Histórico de pontos",children:[s.jsxs("div",{className:"mgm-history-header",children:[s.jsx("h3",{children:"Histórico recente"}),s.jsx("p",{children:"Lançamentos de pontos vinculados ao seu código de afiliado."})]}),l&&s.jsx("p",{className:"mgm-points-note",children:l}),a&&!l&&s.jsx("p",{className:"mgm-points-note",children:"Carregando extrato de pontos..."}),s.jsx("div",{className:"mgm-history-table-wrap",children:s.jsxs("table",{className:"mgm-history-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Ação"}),s.jsx("th",{children:"Pontos"}),s.jsx("th",{children:"Data"}),s.jsx("th",{children:"Status"})]})}),s.jsx("tbody",{children:!a&&h.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:"4",children:"Nenhum lançamento encontrado para este código."})}):h.map((E,I)=>s.jsxs("tr",{children:[s.jsx("td",{children:E.descricao||"-"}),s.jsx("td",{className:"is-points",children:E.pontos||"0"}),s.jsx("td",{children:ff(E.data)}),s.jsx("td",{children:"Creditado"})]},E.id||`row-${I+1}`))})]})})]})]}),s.jsx(je,{links:ur.links})]})}const QC={pt:{seoTitle:"Renata Centurion | Winning by Design Brasil",seoDescription:"Fale com Renata Centurion, Partner LATAM e especialista em Revenue Architecture na Winning by Design Brasil.",seoUrl:"/linktree/renata",headerButtonHref:"mailto:[email protected]",photoAlt:"Renata Centurion",name:"Renata Centurion",role:"Partner Latin America, Winning by Design",bio:"Especialista em Jornada do Cliente, maior referência em Revenue Architecture no Brasil, liderando a Winning by Design Brasil e LATAM há quase 10 anos.",contactLabel:"Contatos de Renata",contactLinks:[{label:"Fale comigo por e-mail",href:"mailto:[email protected]",icon:wo},{label:"LinkedIn",href:"https://www.linkedin.com/in/renatacenturion/",icon:nn},{label:"WhatsApp",href:"https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es.",icon:xo}],socialLabel:"Redes sociais de Renata",socialLinks:[{label:"LinkedIn",href:"https://www.linkedin.com/in/renatacenturion/",icon:nn},{label:"Instagram",href:"https://www.instagram.com/renata_centurion/",icon:Yc},{label:"YouTube",href:"https://www.youtube.com/@wbdbrasil",icon:Aa}],footerCopyright:"© Copyright 2026 Winning by Design Brasil",footerLinks:[{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Certificados",href:"/certificados"}]},en:{seoTitle:"Renata Centurion | Winning by Design Brasil",seoDescription:"Contact Renata Centurion, LATAM Partner and Revenue Architecture specialist at Winning by Design Brasil.",seoUrl:"/en/linktree/renata",headerButtonHref:"mailto:[email protected]",photoAlt:"Renata Centurion",name:"Renata Centurion",role:"Partner Latin America, Winning by Design",bio:"Customer Journey specialist and the leading Revenue Architecture reference in Brazil, running Winning by Design Brasil and LATAM for nearly 10 years.",contactLabel:"Contact Renata",contactLinks:[{label:"Email me",href:"mailto:[email protected]",icon:wo},{label:"LinkedIn",href:"https://www.linkedin.com/in/renatacenturion/",icon:nn},{label:"WhatsApp",href:"https://wa.me/551132308228?text=Hi!%20I%20would%20like%20more%20information.",icon:xo}],socialLabel:"Renata's social media",socialLinks:[{label:"LinkedIn",href:"https://www.linkedin.com/in/renatacenturion/",icon:nn},{label:"Instagram",href:"https://www.instagram.com/renata_centurion/",icon:Yc},{label:"YouTube",href:"https://www.youtube.com/@wbdbrasil",icon:Aa}],footerCopyright:"© Copyright 2026 Winning by Design Brasil",footerLinks:[{text:"Terms of Adhesion",href:"/termo-adesao"},{text:"Confidentiality",href:"/termo-de-confidencialidade"},{text:"Certificates",href:"/certificados"}]}},XC={pt:{seoTitle:"Winning by Design Brasil | Linktree",seoDescription:"Todos os links oficiais da Winning by Design Brasil: cursos, eventos, contato e redes sociais.",seoUrl:"/linktree/wbd",headerButtonHref:"mailto:[email protected]",logoAlt:"Winning by Design Brasil",n
211ame:"Winning by Design Brasil",bio:"A maior escola de Revenue Architecture do Brasil, referência em estratégia comercial e go-to-market liderada por Renata Centurion.",linksLabel:"Contato",contactLinks:[{label:"Fale conosco pelo WhatsApp",href:"https://wa.me/551132308228?text=Ol%C3%A1!%20Gostaria%20de%20mais%20informa%C3%A7%C3%B5es.",icon:xo},{label:"Fale conosco por e-mail",href:"mailto:[email protected]",icon:wo},{label:"Conecte-se a Renata Centurion",href:"https://www.linkedin.com/in/renatacenturion/",icon:nn},{label:"Acompanhe no YouTube",href:"https://www.youtube.com/@wbdbrasil",icon:Aa}],footerCopyright:"© Copyright 2026 Winning by Design Brasil",footerLinks:[{text:"Termo de Adesão",href:"/termo-adesao"},{text:"Confidencialidade",href:"/termo-de-confidencialidade"},{text:"Certificados",href:"/certificados"}]},en:{seoTitle:"Winning by Design Brasil | Linktree",seoDescription:"All official Winning by Design Brasil links: courses, events, contact and social media.",seoUrl:"/en/linktree/wbd",headerButtonHref:"mailto:[email protected]",logoAlt:"Winning by Design Brasil",name:"Winning by Design Brasil",bio:"The largest Revenue Architecture school in Brazil, reference in commercial strategy and go-to-market, led by Renata Centurion.",linksLabel:"Contact",contactLinks:[{label:"Contact us on WhatsApp",href:"https://wa.me/551132308228?text=Hi!%20I%20would%20like%20more%20information.",icon:xo},{label:"Contact us by email",href:"mailto:[email protected]",icon:wo},{label:"Visit our LinkedIn",href:"https://www.linkedin.com/in/renatacenturion/",icon:nn},{label:"Follow us on YouTube",href:"https://www.youtube.com/@wbdbrasil",icon:Aa}],footerCopyright:"© Copyright 2026 Winning by Design Brasil",footerLinks:[{text:"Terms of Adhesion",href:"/termo-adesao"},{text:"Confidentiality",href:"/termo-de-confidencialidade"},{text:"Certificates",href:"/certificados"}]}};function bb(e,t){const n=t==="en"?"en":"pt";return e==="wbd"?XC[n]:QC[n]}function yf({locale:e="pt"}){const t=bb("renata",e);return s.jsxs("div",{className:"linktree-renata-page",children:[s.jsx(ye,{title:t.seoTitle,description:t.seoDescription,image:"/impact-summit-medias/speakers/renata.jfif",url:t.seoUrl}),s.jsx(Se,{buttonHref:t.headerButtonHref,showImpactSummitButton:!1}),s.jsxs("main",{className:"linktree-renata-main","data-track-section":"renata-links",children:[s.jsxs("section",{className:"linktree-renata-profile","aria-labelledby":"renata-name",children:[s.jsx("div",{className:"linktree-renata-photo-frame",children:s.jsx("img",{src:"/impact-summit-medias/speakers/renata.jfif",alt:t.photoAlt,className:"linktree-renata-photo"})}),s.jsx("h1",{id:"renata-name",children:t.name}),s.jsx("p",{className:"linktree-renata-role",children:t.role}),s.jsx("p",{className:"linktree-renata-bio",children:t.bio})]}),s.jsx("nav",{className:"linktree-renata-links","aria-label":t.contactLabel,children:t.contactLinks.map(({label:n,href:r,icon:i})=>s.jsxs("a",{href:r,className:"linktree-renata-link",target:"_blank",rel:"noopener noreferrer","data-track-label":n,children:[s.jsxs("span",{className:"linktree-renata-link-label",children:[s.jsx(i,{"aria-hidden":"true"}),n]}),s.jsx(pb,{className:"linktree-renata-chevron","aria-hidden":"true"})]},n))}),s.jsxs("div",{className:"linktree-renata-social",children:[s.jsx("span",{className:"linktree-renata-divider","aria-hidden":"true"}),s.jsx("nav",{"aria-label":t.socialLabel,children:t.socialLinks.map(({label:n,href:r,icon:i})=>s.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":n,children:s.jsx(i,{"aria-hidden":"true"})},n))})]})]}),s.jsx(je,{copyrightText:t.footerCopyright,links:t.footerLinks})]})}function bf({locale:e="pt"}){const t=bb("wbd",e);return s.jsxs("div",{className:"linktree-wbd-page",children:[s.jsx(ye,{title:t.seoTitle,description:t.seoDescription,image:"/images/wbdlogo.png",url:t.seoUrl}),s.jsx(Se,{buttonHref:t.headerButtonHref,showImpactSummitButton:!1}),s.jsxs("main",{className:"linktree-wbd-main","data-track-section":"wbd-links",children:[s.jsxs("section",{className:"linktree-wbd-profile","aria-labelledby":"wbd-name",children:[s.jsx("div",{className:"linktree-wbd-logo-frame",children:s.jsx("img",{src:"/images/wbdlogo.png",alt:t.logoAlt,className:"linktree-wbd-logo"})}),s.jsx("h1",{id:"wbd-name",children:t.name}),s.jsx("p",{className:"linktree-wbd-bio",children:t.bio})]}),s.jsx("nav",{className:"linktree-wbd-links","aria-label":t.linksLabel,children:t.contactLinks.map(({label:n,href:r,icon:i})=>s.jsxs("a",{href:r,className:"linktree-wbd-link",target:"_blank",rel:"noopener noreferrer","data-track-label":n,children:[s.jsxs("span",{className:"linktree-wbd-link-label",children:[s.jsx(i,{"aria-hidden":"true"}),n]}),s.jsx(pb,{className:"linktree-wbd-chevron","aria-hidden":"true"})]},n))})]}),s.jsx(je,{copyrightText:t.footerCopyright,links:t.footerLinks})]})}const Ss={title:"FORMULÁRIO",description:"Preencha o formulário abaixo para que possamos te atender da melhor forma.",submitButtonText:"ENVIAR",fields:[{name:"nome",label:"Nome completo",type:"text",required:!0,placeholder:"Seu nome"},{name:"cargo",label:"Cargo",type:"text",required:!0,placeholder:"Seu cargo"},{name:"empresa",label:"Empresa",type:"text",required:!0,placeholder:"Sua empresa"},{name:"email",label:"E-mail",type:"email",required:!0,placeholder:"[email protected]"},{name:"whatsapp",label:"WhatsApp",type:"tel",required:!0,placeholder:"(00) 00000-0000"}]};function ZC(){const e=hr(),[t,n]=w.useState(null);w.useEffect(()=>{window.scrollTo(0,0)},[]);const r=async a=>{const o=await fr({flow:"formularios",formData:a,locale:"pt-BR"});
211return o.success?n({type:"success",message:"Formulário enviado com sucesso!"}):n({type:"error",message:"Não foi possível enviar o formulário agora. Tente novamente em instantes."}),o},i=()=>{const a=(t==null?void 0:t.type)==="success";n(null),a&&e("/")};return s.jsxs("div",{className:"formularios-page",children:[s.jsx(ye,{title:"Formulários | Winning by Design",description:"Preencha o formulário e fale com a Winning by Design.",url:"/formularios"}),s.jsx(Se,{}),s.jsx(Wa,{id:"formularios",title:Ss.title,description:Ss.description,submitButtonText:Ss.submitButtonText,fields:Ss.fields,showLeaderGate:!1,onSubmit:r}),t&&s.jsx(Va,{type:t.type,message:t.message,closeText:"OK",onClose:i}),s.jsx(je,{})]})}const eN=[25,50,75,100];function tN(){const e=Et(),t=w.useRef(!1);w.useEffect(()=>{t.current||(t.current=!0,gA())},[]),w.useEffect(()=>{vA(e.pathname,document.title)},[e.pathname])}function nN(e){return`${e.pathname}${e.search}`}function wf(e){return e&&e.replace(/\s+/g," ").trim().slice(0,100)||"unknown"}function xf(e){const t=e.closest("[data-track-section], section[id], [id]");return t&&(t.getAttribute("data-track-section")||t.getAttribute("id")||t.className)||"unknown"}function rN(){const e=Et(),t=w.useRef({path:"",enteredAt:Date.now()}),n=w.useRef(new Set),r=w.useRef(null),i=w.useRef(new Map),a=w.useRef(new WeakSet);w.useEffect(()=>{const o=nN(e),l=Date.now();if(t.current.path){const c=l-t.current.enteredAt;c>0&&bt("page_time",{page_path:t.current.path,duration_ms:c})}t.current={path:o,enteredAt:l},n.current=new Set,lA(o,document.title)},[e]),w.useEffect(()=>{const o=()=>{const u=t.current;if(!u.path)return;const d=Date.now()-u.enteredAt;d<=0||(bt("page_time",{page_path:u.path,duration_ms:d,source:"visibility_change"}),t.current={...u,enteredAt:Date.now()})},l=()=>{document.visibilityState==="hidden"&&o()},c=()=>{o()};return document.addEventListener("visibilitychange",l),window.addEventListener("beforeunload",c),()=>{document.removeEventListener("visibilitychange",l),window.removeEventListener("beforeunload",c),o()}},[]),w.useEffect(()=>{const o=()=>{r.current||(r.current=window.requestAnimationFrame(()=>{r.current=null;const l=window.scrollY||document.documentElement.scrollTop,c=document.documentElement.scrollHeight-window.innerHeight;if(c<=0)return;const u=Math.min(100,Math.round(l/c*100));eN.forEach(d=>{u<d||n.current.has(d)||(n.current.add(d),bt("scroll_depth",{page_path:t.current.path,percent:d}))})}))};return window.addEventListener("scroll",o,{passive:!0}),()=>{window.removeEventListener("scroll",o),r.current&&(window.cancelAnimationFrame(r.current),r.current=null)}},[]),w.useEffect(()=>{const o=l=>{if(!(l.target instanceof Element))return;const c=l.target.closest("[data-track], button, a, [role='button'], input[type='submit']");if(!c)return;const u=c.getAttribute("data-track-label")||c.getAttribute("aria-label")||wf(c.textContent);bt("interaction_click",{page_path:t.current.path,label:u,element_type:c.tagName.toLowerCase(),section:xf(c),href:c.getAttribute("href")||void 0})};return document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0)}},[]),w.useEffect(()=>{const o=c=>{if(!(c.target instanceof Element))return;const u=c.target.closest("[data-track-hover], .course-list-item, .video-card, .btn, .main-header a");if(!u||a.current.has(u))return;const d=i.current,h=window.setTimeout(()=>{a.current.add(u);const m=u.getAttribute("data-track-label")||u.getAttribute("aria-label")||wf(u.textContent);bt("interaction_hover",{page_path:t.current.path,label:m,element_type:u.tagName.toLowerCase(),section:xf(u)}),d.delete(u)},450);d.set(u,h)},l=c=>{if(!(c.target instanceof Element))return;const u=c.target.closest("[data-track-hover], .course-list-item, .video-card, .btn, .main-header a");if(!u)return;const d=i.current.get(u);d&&(window.clearTimeout(d),i.current.delete(u))};return document.addEventListener("mouseover",o,!0),document.addEventListener("mouseout",l,!0),()=>{document.removeEventListener("mouseover",o,!0),document.removeEventListener("mouseout",l,!0),i.current.forEach(c=>
211window.clearTimeout(c)),i.current=new Map,a.current=new WeakSet}},[])}function Sf(){return iC(),rN(),tN(),s.jsxs(s.Fragment,{children:[s.jsx(tC,{}),s.jsxs(nS,{children:[s.jsx(H,{path:"/",element:s.jsx(Uh,{})}),s.jsx(H,{path:"/en",element:s.jsx(Uh,{locale:"en"})}),s.jsx(H,{path:"/curso-revenue-architecture",element:s.jsx(Ep,{})}),s.jsx(H,{path:"/en/curso-revenue-architecture",element:s.jsx(Ep,{locale:"en"})}),s.jsx(H,{path:"/curso-bowtie-analytics",element:s.jsx(Np,{})}),s.jsx(H,{path:"/en/curso-bowtie-analytics",element:s.jsx(Np,{locale:"en"})}),s.jsx(H,{path:"/curso-math4-revenue-architecture",element:s.jsx(Ip,{})}),s.jsx(H,{path:"/en/curso-math4-revenue-architecture",element:s.jsx(Ip,{locale:"en"})}),s.jsx(H,{path:"/mentoria-ra",element:s.jsx(Lp,{})}),s.jsx(H,{path:"/en/mentoria-ra",element:s.jsx(Lp,{locale:"en"})}),s.jsx(H,{path:"/formularios",element:s.jsx(ZC,{})}),s.jsx(H,{path:"/impact-summit-brasil",element:s.jsx(Pp,{})}),s.jsx(H,{path:"/en/impact-summit-brasil",element:s.jsx(Pp,{locale:"en"})}),s.jsx(H,{path:"/impact-summit-brasil/agenda",element:s.jsx(Bp,{})}),s.jsx(H,{path:"/en/impact-summit-brasil/agenda",element:s.jsx(Bp,{locale:"en"})}),s.jsx(H,{path:"/impact-summit-brasil/sponsors",element:s.jsx($p,{})}),s.jsx(H,{path:"/en/impact-summit-brasil/sponsors",element:s.jsx($p,{locale:"en"})}),s.jsx(H,{path:"/impact-summit-brasil/cases",element:s.jsx(Up,{})}),s.jsx(H,{path:"/en/impact-summit-brasil/cases",element:s.jsx(Up,{locale:"en"})}),s.jsx(H,{path:"/impact-summit-brasil/inscricao",element:s.jsx(zl,{})}),s.jsx(H,{path:"/impact-summit-brasil/oferta",element:s.jsx(zl,{isOffer:!0})}),s.jsx(H,{path:"/en/impact-summit-brasil/inscricao",element:s.jsx(zl,{locale:"en"})}),s.jsx(H,{path:"/impact-summit-brasil/inscricao/submitted",element:s.jsx(xs,{})}),s.jsx(H,{path:"/impact-summit-brasil/oferta/submitted",element:s.jsx(xs,{isOffer:!0})}),s.jsx(H,{path:"/en/impact-summit-brasil/inscricao/submitted",element:s.jsx(xs,{locale:"en"})}),s.jsx(H,{path:"/en/impact-summit-brasil/oferta/submitted",element:s.jsx(xs,{locale:"en",isOffer:!0})}),s.jsx(H,{path:"/impact-summit-brasil/faq",element:s.jsx(qp,{})}),s.jsx(H,{path:"/en/impact-summit-brasil/faq",element:s.jsx(qp,{locale:"en"})}),s.jsx(H,{path:"/calendarios",element:s.jsx(sf,{})}),s.jsx(H,{path:"/en/calendarios",element:s.jsx(sf,{locale:"en"})}),s.jsx(H,{path:"/linktree/renata",element:s.jsx(yf,{})}),s.jsx(H,{path:"/en/linktree/renata",element:s.jsx(yf,{locale:"en"})}),s.jsx(H,{path:"/linktree/wbd",element:s.jsx(bf,{})}),s.jsx(H,{path:"/en/linktree/wbd",element:s.jsx(bf,{locale:"en"})}),s.jsx(H,{path:"/member-get-member",element:s.jsx(df,{})}),s.jsx(H,{path:"/en/member-get-member",element:s.jsx(df,{})}),s.jsx(H,{path:"/member-get-member/login",element:s.jsx(hf,{})}),s.jsx(H,{path:"/en/member-get-member/login",element:s.jsx(hf,{})}),s.jsx(H,{path:"/member-get-member/pontos",element:s.jsx(vf,{})}),s.jsx(H,{path:"/en/member-get-member/pontos",element:s.jsx(vf,{})}),s.jsx(H,{path:"/conteudos-gratuitos",element:s.jsx(Xp,{})}),s.jsx(H,{path:"/en/conteudos-gratuitos",element:s.jsx(Xp,{})}),s.jsx(H,{path:"/alunos",element:s.jsx(Zp,{})}),s.jsx(H,{path:"/en/alunos",element:s.jsx(Zp,{})}),s.jsx(H,{path:"/termo-adesao",element:s.jsx(Ap,{})}),s.jsx(H,{path:"/en/termo-adesao",element:s.jsx(Ap,{})}),s.jsx(H,{path:"/termo-de-confidencialidade",element:s.jsx(Tp,{})}),s.jsx(H,{path:"/en/termo-de-confidencialidade",element:s.jsx(Tp,{})}),s.jsx(H,{path:"/certificado",element:s.jsx(hn,{})}),s.jsx(H,{path:"/en/certificado",element:s.jsx(hn,{})}),s.jsx(H,{path:"/certificado/:codigo",element:s.jsx(hn,{})}),s.jsx(H,{path:"/en/certificado/:codigo",element:s.jsx(hn,{})}),s.jsx(H,{path:"/certificados",element:s.jsx(hn,{})}),s.jsx(H,{path:"/en/certificados",element:s.jsx(hn,{})}),s.jsx(H,{path:"/certificados/:codigo",element:s.jsx(hn,{})}),s.jsx(H,{path:"/en/certificados/:codigo",element:s.jsx(hn,{})}),!1,!1,s.jsx(H,{path:"/en/*",element:s.jsx(Th,{to:"/en",replace:!0})}),s.jsx(H,{path:"*",element:s.jsx(Th,{to:"/",replace:!0})})]})]})}const Gl=document.getElementById("root");oA();Gl.hasChildNodes()?(lf(),qs.hydrateRoot(Gl,s.jsx(Dt.StrictMode,{children:s.jsx(Kc,{children:s.jsx(Ch,{children:s.jsx(Sf,{})})})}))):(lf(),qs.createRoot(Gl).render(s.jsx(Dt.StrictMode,{children:s.jsx(Kc,{children:s.jsx(Ch,{children:s.jsx(Sf,{})})})})));

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.