vendor: 1,949 bytes, line 1
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ls(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vP(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Wv={exports:{}},md={};var C2;function xP(){if(C2)return md;C2=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:s}}return md.Fragment=e,md.jsx=n,md.jsxs=n,md}var D2;function bP(){return D2||(D2=1,Wv.exports=xP()),Wv.exports}var d=bP(),Xv={exports:{}},st={};var L2;
vendor: 17,746 bytes, line 1
1function _P(){if(L2)return st;L2=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=x&&z[x]||z["@@iterator"],typeof z=="function"?z:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function E(z,Q,P){this.props=z,this.context=Q,this.refs=S,this.updater=P||w}E.prototype.isReactComponent={},E.prototype.setState=function(z,Q){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Q,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function N(){}N.prototype=E.prototype;function k(z,Q,P){this.props=z,this.context=Q,this.refs=S,this.updater=P||w}var R=k.prototype=new N;R.constructor=k,_(R,E.prototype),R.isPureReactComponent=!0;var D=Array.isArray;function O(){}var T={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function M(z,Q,P){var ce=P.ref;return{$$typeof:t,type:z,key:Q,ref:ce!==void 0?ce:null,props:P}}function q(z,Q){return M(z.type,Q,z.props)}function B(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function I(z){var Q={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(P){return Q[P]})}var Z=/\/+/g;function X(z,Q){return typeof z=="object"&&z!==null&&z.key!=null?I(""+z.key):Q.toString(36)}function K(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(O,O):(z.status="pending",z.then(function(Q){z.status==="pending"&&(z.status="fulfilled",z.value=Q)},function(Q){z.status==="pending"&&(z.status="rejected",z.reason=Q)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function U(z,Q,P,ce,ve){var ye=typeof z;(ye==="undefined"||ye==="boolean")&&(z=null);var Se=!1;if(z===null)Se=!0;else switch(ye){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(z.$$typeof){case t:case e:Se=!0;break;case p:return Se=z._init,U(Se(z._payload),Q,P,ce,ve)}}if(Se)return ve=ve(z),Se=ce===""?"."+X(z,0):ce,D(ve)?(P="",Se!=null&&(P=Se.replace(Z,"$&/")+"/"),U(ve,Q,P,"",function(Ae){return Ae})):ve!=null&&(B(ve)&&(ve=q(ve,P+(ve.key==null||z&&z.key===ve.key?"":(""+ve.key).replace(Z,"$&/")+"/")+Se)),Q.push(ve)),1;Se=0;var He=ce===""?".":ce+":";if(D(z))for(var Te=0;Te<z.length;Te++)ce=z[Te],ye=He+X(ce,Te),Se+=U(ce,Q,P,ye,ve);else if(Te=v(z),typeof Te=="function")for(z=Te.call(z),Te=0;!(ce=z.next()).done;)ce=ce.value,ye=He+X(ce,Te++),Se+=U(ce,Q,P,ye,ve);else if(ye==="object"){if(typeof z.then=="function")return U(K(z),Q,P,ce,ve);throw Q=String(z),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function W(z,Q,P){if(z==null)return z;var ce=[],ve=0;return U(z,ce,"","",function(ye){return Q.call(P,ye,ve++)}),ce}function G(z){if(z._status===-1){var Q=z._result;Q=Q(),Q.then(function(P){(z._status===0||z._status===-1)&&(z._status=1,z._result=P)},function(P){(z._status===0||z._status===-1)&&(z._status=2,z._result=P)}),z._status===-1&&(z._status=0,z._result=Q)}if(z._status===1)return z._result.default;throw z._result}var he=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},A={map:W,forEach:function(z,Q,P){W(z,function(){Q.apply(this,arguments)},P)},count:function(z){var Q=0;return W(z,function(){Q++}),Q},toArray:function(z){return W(z,function(Q){return Q})||[]},only:function(z){if(!B(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return st.Activity=g,st.Children=A,st.Component=E,st.Fragment=n,st.Profiler=i,st.PureComponent=k,st.StrictMode=r,st.Suspense=f,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,st.__COMPILER_RUNTIME={__proto__:null,c:function(z){return T.H.useMemoCache(z)}},st.cache=function(z){return function(){return z.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(z,Q,P){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ce=_({},z.props),ve=z.key;if(Q!=null)for(ye in Q.key!==void 0&&(ve=""+Q.key),Q)!L.call(Q,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&Q.ref===void 0||(ce[ye]=Q[ye]);var ye=arguments.length-2;if(ye===1)ce.children=P;else if(1<ye){for(var Se=Array(ye),He=0;He<ye;He++)Se[He]=arguments[He+2];ce.children=Se}return M(z.type,ve,ce)},st.createContext=function(z){return z={$$typeof:o,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},st.createElement=function(z,Q,P){var ce,ve={},ye=null;if(Q!=null)for(ce in Q.key!==void 0&&(ye=""+Q.key),Q)L.call(Q,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ve[ce]=Q[ce]);var Se=arguments.length-2;if(Se===1)ve.children=P;else if(1<Se){for(var He=Array(Se),Te=0;Te<Se;Te++)He[Te]=arguments[Te+2];ve.children=He}if(z&&z.defaultProps)for(ce in Se=z.defaultProps,Se)ve[ce]===void 0&&(ve[ce]=Se[ce]);return M(z,ye,ve)},st.createRef=function(){return{current:null}},st.forwardRef=function(z){return{$$typeof:c,render:z}},st.isValidElement=B,st.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:G}},st.memo=function(z,Q){return{$$typeof:h,type:z,compare:Q===void 0?null:Q}},st.startTransition=function(z){var Q=T.T,P={};T.T=P;try{var ce=z(),ve=T.S;ve!==null&&ve(P,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(O,he)}catch(ye){he(ye)}finally{Q!==null&&P.types!==null&&(Q.types=P.types),T.T=Q}},st.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},st.use=function(z){return T.H.use(z)},st.useActionState=function(z,Q,P){return T.H.useActionState(z,Q,P)},st.useCallback=function(z,Q){return T.H.useCallback(z,Q)},st.useContext=function(z){return T.H.useContext(z)},st.useDebugValue=function(){},st.useDeferredValue=function(z,Q){return T.H.useDeferredValue(z,Q)},st.useEffect=function(z,Q){return T.H.useEffect(z,Q)},st.useEffectEvent=function(z){return T.H.useEffectEvent(z)},st.useId=function(){return T.H.useId()},st.useImperativeHandle=function(z,Q,P){return T.H.useImperativeHandle(z,Q,P)},st.useInsertionEffect=function(z,Q){return T.H.useInsertionEffect(z,Q)},st.useLayoutEffect=function(z,Q){return T.H.useLayoutEffect(z,Q)},st.useMemo=function(z,Q){return T.H.useMemo(z,Q)},st.useOptimistic=function(z,Q){return T.H.useOptimistic(z,Q)},st.useReducer=function(z,Q,P){return T.H.useReducer(z,Q,P)},st.useRef=function(z){return T.H.useRef(z)},st.useState=function(z){return T.H.useState(z)},st.useSyncExternalStore=function(z,Q,P){return T.H.useSyncExternalStore(z,Q,P)},st.useTransition=function(){return T.H.useTransition()},st.version="19.2.4",st}var P2;function hg(){return P2||(P2=1,Xv.exports=_P()),Xv.exports}var $=hg();const Cc=Ls($);var Jv={exports:{}},gd={},Qv={exports:{}},Zv={};var M2;function wP(){return M2||(M2=1,(function(t){function e(U,W){var G=U.length;U.push(W);e:for(;0<G;){var he=G-1>>>1,A=U[he];if(0<i(A,W))U[he]=W,U[G]=A,G=he;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var W=U[0],G=U.pop();if(G!==W){U[0]=G;e:for(var he=0,A=U.length,z=A>>>1;he<z;){var Q=2*(he+1)-1,P=U[Q],ce=Q+1,ve=U[ce];if(0>i(P,G))ce<A&&0>i(ve,P)?(U[he]=ve,U[ce]=G,he=ce):(U[he]=P,U[Q]=G,he=Q);else if(ce<A&&0>i(ve,G))U[he]=ve,U[ce]=G,he=ce;else break e}}return W}function i(U,W){var G=U.sortIndex-W.sortIndex;return G!==0?G:U.id-W.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,c=o.now();t.unstable_now=function(){return o.now()-c}}var f=[],h=[],p=1,g=null,x=3,v=!1,w=!1,_=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(U){for(var W=n(h);W!==null;){if(W.callback===null)r(h);else if(W.startTime<=U)r(h),W.sortIndex=W.expirationTime,e(f,W);else break;W=n(h)}}function D(U){if(_=!1,R(U),!w)if(n(f)!==null)w=!0,O||(O=!0,I());else{var W=n(h);W!==null&&K(D,W.startTime-U)}}var O=!1,T=-1,L=5,M=-1;function q(){return S?!0:!(t.unstable_now()-M<L)}function B(){if(S=!1,O){var U=t.unstable_now();M=U;var W=!0;try{e:{w=!1,_&&(_=!1,N(T),T=-1),v=!0;var G=x;try{t:{for(R(U),g=n(f);g!==null&&!(g.expirationTime>U&&q());){var he=g.callback;if(typeof he=="function"){g.callback=null,x=g.priorityLevel;var A=he(g.expirationTime<=U);if(U=t.unstable_now(),typeof A=="function"){g.callback=A,R(U),W=!0;break t}g===n(f)&&r(f),R(U)}else r(f);g=n(f)}if(g!==null)W=!0;else{var z=n(h);z!==null&&K(D,z.startTime-U),W=!1}}break e}finally{g=null,x=G,v=!1}W=void 0}}finally{W?I():O=!1}}}var I;if(typeof k=="function")I=function(){k(B)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,X=Z.port2;Z.port1.onmessage=B,I=function(){X.postMessage(null)}}else I=function(){E(B,0)};function K(U,W){T=E(function(){U(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(U){switch(x){case 1:case 2:case 3:var W=3;break;default:W=x}var G=x;x=W;try{return U()}finally{x=G}},t.unstable_requestPaint=function(){S=!0},t.unstable_runWithPriority=function(U,W){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var G=x;x=U;try{return W()}finally{x=G}},t.unstable_scheduleCallback=function(U,W,G){var he=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?he+G:he):G=he,U){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=G+A,U={id:p++,callback:W,priorityLevel:U,startTime:G,expirationTime:A,sortIndex:-1},G>he?(U.sortIndex=G,e(h,U),n(f)===null&&U===n(h)&&(_?(N(T),T=-1):_=!0,K(D,G-he))):(U.sortIndex=A,e(f,U),w||v||(w=!0,O||(O=!0,I()))),U},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(U){var W=x;return function(){var G=x;x=W;try{return U.apply(this,arguments)}finally{x=G}}}})(Zv)),Zv}var I2;function SP(){return I2||(I2=1,Qv.exports=wP()),Qv.exports}var e0={exports:{}},wr={};var z2;function EP(){if(z2)return wr;z2=1;var t=hg();function e(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wr.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(f,h,null,p)},wr.flushSync=function(f){var h=o.T,p=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=h,r.p=p,r.d.f()}},wr.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},wr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},wr.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=c(p,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:v}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:x,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},wr.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=c(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},wr.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=c(p,h.crossOrigin);r.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},wr.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=c(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},wr.requestFormReset=function(f){r.d.r(f)},wr.unstable_batchedUpdates=function(f,h){return f(h)},wr.useFormState=function(f,h,p){return o.H.useFormState(f,h,p)},wr.useFormStatus=function(){return o.H.useHostTransitionStatus()},wr.version="19.2.4",wr}var U2;function jP(){if(U2)return e0.exports;U2=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),e0.exports=EP(),e0.exports}var B2;function NP(){if(B2)return gd;B2=1;var t=SP(),e=hg(),n=jP();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var l=a,u=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(u=l.return),a=l.return;while(a)}return l.tag===3?u:null}function o(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function c(a){if(a.tag===31){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function f(a){if(s(a)!==a)throw Error(r(188))}function h(a){var l=a.alternate;if(!l){if(l=s(a),l===null)throw Error(r(188));return l!==a?null:a}for(var u=a,m=l;;){var y=u.return;if(y===null)break;var b=y.alternate;if(b===null){if(m=y.return,m!==null){u=m;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===u)return f(y),a;if(b===m)return f(y),l;b=b.sibling}throw Error(r(188))}if(u.return!==m.return)u=y,m=b;else{for(var j=!1,C=y.child;C;){if(C===u){j=!0,u=y,m=b;break}if(C===m){j=!0,m=y,u=b;break}C=C.sibling}if(!j){for(C=b.child;C;){if(C===u){j=!0,u=b,m=y;break}if(C===m){j=!0,m=b,u=y;break}C=C.sibling}if(!j)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:l}function p(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=p(a),l!==null)return l;a=a.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function I(a){return a===null||typeof a!="object"?null:(a=B&&a[B]||a["@@iterator"],typeof a=="function"?a:null)}var Z=Symbol.for("react.client.reference");function X(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Z?null:a.displayName||a.name||null;
vendor: 11,629 bytes, lines 1-8
1if(typeof a=="string")return a;switch(a){case _:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case O:return"SuspenseList";case M:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case w:return"Portal";case k:return a.displayName||"Context";case N:return(a._context.displayName||"Context")+".Consumer";case R:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case T:return l=a.displayName||null,l!==null?l:X(a.type)||"Memo";case L:l=a._payload,a=a._init;try{return X(a(l))}catch{}}return null}var K=Array.isArray,U=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},he=[],A=-1;function z(a){return{current:a}}function Q(a){0>A||(a.current=he[A],he[A]=null,A--)}function P(a,l){A++,he[A]=a.current,a.current=l}var ce=z(null),ve=z(null),ye=z(null),Se=z(null);function He(a,l){switch(P(ye,l),P(ve,a),P(ce,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?t2(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=t2(l),a=n2(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Q(ce),P(ce,a)}function Te(){Q(ce),Q(ve),Q(ye)}function Ae(a){a.memoizedState!==null&&P(Se,a);var l=ce.current,u=n2(l,a.type);l!==u&&(P(ve,a),P(ce,u))}function We(a){ve.current===a&&(Q(ce),Q(ve)),Se.current===a&&(Q(Se),dd._currentValue=G)}var Ge,Ce;function Ve(a){if(Ge===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);Ge=l&&l[1]||"",Ce=-1<u.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Ge+a+Ce}var re=!1;function ue(a,l){if(!a||re)return"";re=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(le){var ie=le}Reflect.construct(a,[],me)}else{try{me.call()}catch(le){ie=le}a.call(me.prototype)}}else{try{throw Error()}catch(le){ie=le}(me=a())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(le){if(le&&ie&&typeof le.stack=="string")return[le.stack,ie.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=m.DetermineComponentFrameRoot(),j=b[0],C=b[1];if(j&&C){var F=j.split(` 4`),ne=C.split(` 5`);for(y=m=0;m<F.length&&!F[m].includes("DetermineComponentFrameRoot");)m++;for(;y<ne.length&&!ne[y].includes("DetermineComponentFrameRoot");)y++;if(m===F.length||y===ne.length)for(m=F.length-1,y=ne.length-1;1<=m&&0<=y&&F[m]!==ne[y];)y--;for(;1<=m&&0<=y;m--,y--)if(F[m]!==ne[y]){if(m!==1||y!==1)do if(m--,y--,0>y||F[m]!==ne[y]){var de=` 6`+F[m].replace(" at new "," at ");return a.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",a.displayName)),de}while(1<=m&&0<=y);break}}}finally{re=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Ve(u):""}function H(a,l){switch(a.tag){case 26:case 27:case 5:return Ve(a.type);case 16:return Ve("Lazy");case 13:return a.child!==l&&l!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return ue(a.type,!1);case 11:return ue(a.type.render,!1);case 1:return ue(a.type,!0);case 31:return Ve("Activity");default:return""}}function Ne(a){try{var l="",u=null;do l+=H(a,u),u=a,a=a.return;while(a);return l}catch(m){return` 7Error generating stack: `+m.message+` 8`+m.stack}}var xt=Object.prototype.hasOwnProperty,Ut=t.unstable_scheduleCallback,ut=t.unstable_cancelCallback,xn=t.unstable_shouldYield,Qn=t.unstable_requestPaint,It=t.unstable_now,gn=t.unstable_getCurrentPriorityLevel,oe=t.unstable_ImmediatePriority,ge=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,Be=t.unstable_LowPriority,it=t.unstable_IdlePriority,kn=t.log,Rt=t.unstable_setDisableYieldValue,An=null,Ot=null;function tn(a){if(typeof kn=="function"&&Rt(a),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(An,a)}catch{}}var Y=Math.clz32?Math.clz32:ke,ee=Math.log,Xe=Math.LN2;function ke(a){return a>>>=0,a===0?32:31-(ee(a)/Xe|0)|0}var pt=256,$e=262144,fn=4194304;function Yt(a){var l=a&42;if(l!==0)return l;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function nn(a,l,u){var m=a.pendingLanes;if(m===0)return 0;var y=0,b=a.suspendedLanes,j=a.pingedLanes;a=a.warmLanes;var C=m&134217727;return C!==0?(m=C&~b,m!==0?y=Yt(m):(j&=C,j!==0?y=Yt(j):u||(u=C&~a,u!==0&&(y=Yt(u))))):(C=m&~b,C!==0?y=Yt(C):j!==0?y=Yt(j):u||(u=m&~a,u!==0&&(y=Yt(u)))),y===0?0:l!==0&&l!==y&&(l&b)===0&&(b=y&-y,u=l&-l,b>=u||b===32&&(u&4194048)!==0)?l:y}function Ln(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function Dr(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lr(){var a=fn;return fn<<=1,(fn&62914560)===0&&(fn=4194304),a}function Ie(a){for(var l=[],u=0;31>u;u++)l.push(a);return l}function ze(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function St(a,l,u,m,y,b){var j=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var C=a.entanglements,F=a.expirationTimes,ne=a.hiddenUpdates;for(u=j&~u;0<u;){var de=31-Y(u),me=1<<de;C[de]=0,F[de]=-1;var ie=ne[de];if(ie!==null)for(ne[de]=null,de=0;de<ie.length;de++){var le=ie[de];le!==null&&(le.lane&=-536870913)}u&=~me}m!==0&&be(a,m,0),b!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=b&~(j&~l))}function be(a,l,u){a.pendingLanes|=l,a.suspendedLanes&=~l;var m=31-Y(l);a.entangledLanes|=l,a.entanglements[m]=a.entanglements[m]|1073741824|u&261930}function Ke(a,l){var u=a.entangledLanes|=l;for(a=a.entanglements;u;){var m=31-Y(u),y=1<<m;y&l|a[m]&l&&(a[m]|=l),u&=~y}}function Pe(a,l){var u=l&-l;return u=(u&42)!==0?1:Ye(u),(u&(a.suspendedLanes|l))!==0?0:u}function Ye(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function rn(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function lt(){var a=W.p;return a!==0?a:(a=window.event,a===void 0?32:j2(a.type))}function Wt(a,l){var u=W.p;try{return W.p=a,l()}finally{W.p=u}}var Ft=Math.random().toString(36).slice(2),at="__reactFiber$"+Ft,ot="__reactProps$"+Ft,mt="__reactContainer$"+Ft,sr="__reactEvents$"+Ft,Xt="__reactListeners$"+Ft,Zn="__reactHandles$"+Ft,$n="__reactResources$"+Ft,qt="__reactMarker$"+Ft;function bn(a){delete a[at],delete a[ot],delete a[sr],delete a[Xt],delete a[Zn]}function an(a){var l=a[at];if(l)return l;for(var u=a.parentNode;u;){if(l=u[mt]||u[at]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(a=c2(a);a!==null;){if(u=a[at])return u;a=c2(a)}return l}a=u,u=a.parentNode}return null}function Vr(a){if(a=a[at]||a[mt]){var l=a.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return a}return null}function Ea(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(r(33))}function _n(a){var l=a[$n];return l||(l=a[$n]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function gt(a){a[qt]=!0}var hi=new Set,Uo={};function ja(a,l){qi(a,l),qi(a+"Capture",l)}function qi(a,l){for(Uo[a]=l,a=0;a<l.length;a++)hi.add(l[a])}var Hi=RegExp("^[: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]*$"),Is={},Il={};function Na(a){return xt.call(Il,a)?!0:xt.call(Is,a)?!1:Hi.test(a)?Il[a]=!0:(Is[a]=!0,!1)}function mh(a,l,u){if(Na(l))if(u===null)a.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+u)}}function gh(a,l,u){if(u===null)a.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+u)}}function Qa(a,l,u,m){if(m===null)a.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(l,u,""+m)}}function Gi(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function K1(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function d4(a,l,u){var m=Object.getOwnPropertyDescriptor(a.constructor.prototype,l);if(!a.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var y=m.get,b=m.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return y.call(this)},set:function(j){u=""+j,b.call(this,j)}}),Object.defineProperty(a,l,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(j){u=""+j},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function Fg(a){if(!a._valueTracker){var l=K1(a)?"checked":"value";a._valueTracker=d4(a,l,""+a[l])}}function Y1(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var u=l.getValue(),m="";return a&&(m=K1(a)?a.checked?"true":"false":a.value),a=m,a!==u?(l.setValue(a),!0):!1}function yh(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var f4=/[\n"\\]/g;function Vi(a){return a.replace(f4,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function qg(a,l,u,m,y,b,j,C){a.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?a.type=j:a.removeAttribute("type"),l!=null?j==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+Gi(l)):a.value!==""+Gi(l)&&(a.value=""+Gi(l)):j!=="submit"&&j!=="reset"||a.removeAttribute("value"),l!=null?Hg(a,j,Gi(l)):u!=null?Hg(a,j,Gi(u)):m!=null&&a.removeAttribute("value"),y==null&&b!=null&&(a.defaultChecked=!!b),y!=null&&(a.checked=y&&t
vendor: 5,690 bytes, line 8
8ypeof y!="function"&&typeof y!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.name=""+Gi(C):a.removeAttribute("name")}function W1(a,l,u,m,y,b,j,C){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),l!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||l!=null)){Fg(a);return}u=u!=null?""+Gi(u):"",l=l!=null?""+Gi(l):u,C||l===a.value||(a.value=l),a.defaultValue=l}m=m??y,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=C?a.checked:!!m,a.defaultChecked=!!m,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(a.name=j),Fg(a)}function Hg(a,l,u){l==="number"&&yh(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Bo(a,l,u,m){if(a=a.options,l){l={};for(var y=0;y<u.length;y++)l["$"+u[y]]=!0;for(u=0;u<a.length;u++)y=l.hasOwnProperty("$"+a[u].value),a[u].selected!==y&&(a[u].selected=y),y&&m&&(a[u].defaultSelected=!0)}else{for(u=""+Gi(u),l=null,y=0;y<a.length;y++){if(a[y].value===u){a[y].selected=!0,m&&(a[y].defaultSelected=!0);return}l!==null||a[y].disabled||(l=a[y])}l!==null&&(l.selected=!0)}}function X1(a,l,u){if(l!=null&&(l=""+Gi(l),l!==a.value&&(a.value=l),u==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=u!=null?""+Gi(u):""}function J1(a,l,u,m){if(l==null){if(m!=null){if(u!=null)throw Error(r(92));if(K(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),l=u}u=Gi(l),a.defaultValue=u,m=a.textContent,m===u&&m!==""&&m!==null&&(a.value=m),Fg(a)}function $o(a,l){if(l){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=l;return}}a.textContent=l}var h4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Q1(a,l,u){var m=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":m?a.setProperty(l,u):typeof u!="number"||u===0||h4.has(l)?l==="float"?a.cssFloat=u:a[l]=(""+u).trim():a[l]=u+"px"}function Z1(a,l,u){if(l!=null&&typeof l!="object")throw Error(r(62));if(a=a.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?a.setProperty(m,""):m==="float"?a.cssFloat="":a[m]="");for(var y in l)m=l[y],l.hasOwnProperty(y)&&u[y]!==m&&Q1(a,y,m)}else for(var b in l)l.hasOwnProperty(b)&&Q1(a,b,l[b])}function Gg(a){if(a.indexOf("-")===-1)return!1;switch(a){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 p4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
8-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),m4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vh(a){return m4.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Za(){}var Vg=null;function Kg(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Fo=null,qo=null;function eS(a){var l=Vr(a);if(l&&(a=l.stateNode)){var u=a[ot]||null;e:switch(a=l.stateNode,l.type){case"input":if(qg(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Vi(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var m=u[l];if(m!==a&&m.form===a.form){var y=m[ot]||null;if(!y)throw Error(r(90));qg(m,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(l=0;l<u.length;l++)m=u[l],m.form===a.form&&Y1(m)}break e;case"textarea":X1(a,u.value,u.defaultValue);break e;case"select":l=u.value,l!=null&&Bo(a,!!u.multiple,l,!1)}}}var Yg=!1;function tS(a,l,u){if(Yg)return a(l,u);Yg=!0;try{var m=a(l);return m}finally{if(Yg=!1,(Fo!==null||qo!==null)&&(ap(),Fo&&(l=Fo,a=qo,qo=Fo=null,eS(l),a)))for(l=0;l<a.length;l++)eS(a[l])}}function ku(a,l){var u=a.stateNode;if(u===null)return null;var m=u[ot]||null;if(m===null)return null;u=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,l,typeof u));return u}var es=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wg=!1;if(es)try{var Au={};Object.defineProperty(Au,"passive",{get:function(){Wg=!0}}),window.addEventListener("test",Au,Au),window.removeEventListener("test",Au,Au)}catch{Wg=!1}var zs=null,Xg=null,xh=null;function nS(){if(xh)return xh;var a,l=Xg,u=l.length,m,y="value"in zs?zs.value:zs.textContent,b=y.length;for(a=0;a<u&&l[a]===y[a];a++);var j=u-a;for(m=1;m<=j&&l[u-m]===y[b-m];m++);return xh=y.slice(a,1<m?1-m:void 0)}function bh(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function _h(){return!0}function rS(){return!1}function Kr(a){function l(u,m,y,b,j){this._reactName=u,this._targetInst=y,this.type=m,this.nativeEvent=b,this.target=j,this.currentTarget=null;for(var C in a)a.hasOwnProperty(C)&&(u=a[C],this[C]=u?u(b):b[C]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?_h:rS,this.isPropagationStopped=rS,this}return g(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=_h)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=_h)},persist:function(){},isPersistent:_h}),l}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wh=Kr(zl),Ou=g({},zl,{view:0,detail:0}),g4=Kr(Ou),Jg,Qg,Ru,Sh=g({},Ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ey,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ru&&(Ru&&a.type==="mousemove"?(Jg=a.screenX-Ru.screenX,Qg=a.screenY-Ru.screenY):Qg=Jg=0,Ru=a),Jg)},movementY:function(a){return"movementY"in a?a.movementY:Qg}}),iS=Kr(Sh),y4=g({},Sh,{dataTransfer:0}),v4=Kr(y4),x4=g({},Ou,{relatedTarget:0}),Zg=Kr(x4),b4=g({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),_4=Kr(b4),w4=g({},zl,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),S4=Kr(w4),E4=g({},zl,{data:0}),aS=Kr(E4),j4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N4={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"},T4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k4(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=T4[a])?!!l[a]:!1}function ey(){return k4}var A4=g({}
vendor: 5,271 bytes, line 8
8,Ou,{key:function(a){if(a.key){var l=j4[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=bh(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?N4[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ey,charCode:function(a){return a.type==="keypress"?bh(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?bh(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),O4=Kr(A4),R4=g({},Sh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sS=Kr(R4),C4=g({},Ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ey}),D4=Kr(C4),L4=g({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),P4=Kr(L4),M4=g({},Sh,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),I4=Kr(M4),z4=g({},zl,{newState:0,oldState:0}),U4=Kr(z4),B4=[9,13,27,32],ty=es&&"CompositionEvent"in window,Cu=null;es&&"documentMode"in document&&(Cu=document.documentMode);var $4=es&&"TextEvent"in window&&!Cu,lS=es&&(!ty||Cu&&8<Cu&&11>=Cu),oS=" ",cS=!1;function uS(a,l){switch(a){case"keyup":return B4.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ho=!1;function F4(a,l){switch(a){case"compositionend":return dS(l);case"keypress":return l.which!==32?null:(cS=!0,oS);case"textInput":return a=l.data,a===oS&&cS?null:a;default:return null}}function q4(a,l){if(Ho)return a==="compositionend"||!ty&&uS(a,l)?(a=nS(),xh=Xg=zs=null,Ho=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return lS&&l.locale!=="ko"?null:l.data;default:return null}}var H4={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 fS(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!H4[a.type]:l==="textarea"}function hS(a,l,u,m){Fo?qo?qo.push(m):qo=[m]:Fo=m,l=fp(l,"onChange"),0<l.length&&(u=new wh("onChange","change",null,u,m),a.push({event:u,listeners:l}))}var Du=null,Lu=null;function G4(a){Wj(a,0)}function Eh(a){var l=Ea(a);if(Y1(l))return a}function pS(a,l){if(a==="change")return l}var mS=!1;if(es){var ny;if(es){var ry="oninput"in document;if(!ry){var gS=document.createElement("div");gS.setAttribute("oninput","return;"),ry=typeof gS.oninput=="function"}ny=ry}else ny=!1;mS=ny&&(!document.documentMode||9<document.documentMode)}function yS(){Du&&(Du.detachEvent("onpropertychange",vS),Lu=Du=null)}function vS(a){if(a.propertyName==="value"&&Eh(Lu)){var l=[];hS(l,Lu,a,Kg(a)),tS(G4,l)}}function V4(a,l,u){a==="focusin"?(yS(),Du=l,Lu=u,Du.attachEvent("onpropertychange",vS)):a==="focusout"&&yS()}function K4(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Eh(Lu)}function Y4(a,l){if(a==="click")return Eh(l)}function W4(a,l){if(a==="input"||a==="change")return Eh(l)}function X4(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var pi=typeof Object.is=="function"?Object.is:X4;function Pu(a,l){if(pi(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var u=Object.keys(a),m=Object.keys(l);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var y=u[m];if(!xt.call(l,y)||!pi(a[y],l[y]))return!1}return!0}function xS(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function bS(a,l){var u=xS(a);a=0;for(var m;u;){if(u.nodeType===3){if(m=a+u.textContent.length,a<=l&&m>=l)return{node:u,offset:l-a};a=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=xS(u)}}function _S(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?_S(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function wS(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=yh(a.document);l instanceof a.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)a=l.contentWindow;else break;l=yh(a.document)}return l}function iy(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var J4=es&&"documentMode"in document&&11>=document.documentMode,Go=null,ay=null,Mu=null,sy=!1;function SS(a,l,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;sy||Go==null||Go!==yh(m)||(m=Go,"selectionStart"in m&&iy(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focu
vendor: 16,633 bytes, line 8
8sNode:m.focusNode,focusOffset:m.focusOffset}),Mu&&Pu(Mu,m)||(Mu=m,m=fp(ay,"onSelect"),0<m.length&&(l=new wh("onSelect","select",null,l,u),a.push({event:l,listeners:m}),l.target=Go)))}function Ul(a,l){var u={};return u[a.toLowerCase()]=l.toLowerCase(),u["Webkit"+a]="webkit"+l,u["Moz"+a]="moz"+l,u}var Vo={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionrun:Ul("Transition","TransitionRun"),transitionstart:Ul("Transition","TransitionStart"),transitioncancel:Ul("Transition","TransitionCancel"),transitionend:Ul("Transition","TransitionEnd")},ly={},ES={};es&&(ES=document.createElement("div").style,"AnimationEvent"in window||(delete Vo.animationend.animation,delete Vo.animationiteration.animation,delete Vo.animationstart.animation),"TransitionEvent"in window||delete Vo.transitionend.transition);function Bl(a){if(ly[a])return ly[a];if(!Vo[a])return a;var l=Vo[a],u;for(u in l)if(l.hasOwnProperty(u)&&u in ES)return ly[a]=l[u];return a}var jS=Bl("animationend"),NS=Bl("animationiteration"),TS=Bl("animationstart"),Q4=Bl("transitionrun"),Z4=Bl("transitionstart"),eL=Bl("transitioncancel"),kS=Bl("transitionend"),AS=new Map,oy="abort auxClick beforeToggle 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(" ");oy.push("scrollEnd");function pa(a,l){AS.set(a,l),ja(l,[a])}var jh=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Ki=[],Ko=0,cy=0;function Nh(){for(var a=Ko,l=cy=Ko=0;l<a;){var u=Ki[l];Ki[l++]=null;var m=Ki[l];Ki[l++]=null;var y=Ki[l];Ki[l++]=null;var b=Ki[l];if(Ki[l++]=null,m!==null&&y!==null){var j=m.pending;j===null?y.next=y:(y.next=j.next,j.next=y),m.pending=y}b!==0&&OS(u,y,b)}}function Th(a,l,u,m){Ki[Ko++]=a,Ki[Ko++]=l,Ki[Ko++]=u,Ki[Ko++]=m,cy|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function uy(a,l,u,m){return Th(a,l,u,m),kh(a)}function $l(a,l){return Th(a,null,null,l),kh(a)}function OS(a,l,u){a.lanes|=u;var m=a.alternate;m!==null&&(m.lanes|=u);for(var y=!1,b=a.return;b!==null;)b.childLanes|=u,m=b.alternate,m!==null&&(m.childLanes|=u),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(y=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,y&&l!==null&&(y=31-Y(u),a=b.hiddenUpdates,m=a[y],m===null?a[y]=[l]:m.push(l),l.lane=u|536870912),b):null}function kh(a){if(50<id)throw id=0,xv=null,Error(r(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var Yo={};function tL(a,l,u,m){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mi(a,l,u,m){return new tL(a,l,u,m)}function dy(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ts(a,l){var u=a.alternate;return u===null?(u=mi(a.tag,l,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=l,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,l=a.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function RS(a,l){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,l=u.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function Ah(a,l,u,m,y,b){var j=0;if(m=a,typeof a=="function")dy(a)&&(j=1);else if(typeof a=="string")j=sP(a,u,ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case M:return a=mi(31,u,l,y),a.elementType=M,a.lanes=b,a;case _:return Fl(u.children,y,b,l);case S:j=8,y|=24;break;case E:return a=mi(12,u,l,y|2),a.elementType=E,a.lanes=b,a;case D:return a=mi(13,u,l,y),a.elementType=D,a.lanes=b,a;case O:return a=mi(19,u,l,y),a.elementType=O,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case k:j=10;break e;case N:j=9;break e;case R:j=11;break e;case T:j=14;break e;case L:j=16,m=null;break e}j=29,u=Error(r(130,a===null?"null":typeof a,"")),m=null}return l=mi(j,u,l,y),l.elementType=a,l.type=m,l.lanes=b,l}function Fl(a,l,u,m){return a=mi(7,a,m,l),a.lanes=u,a}function fy(a,l,u){return a=mi(6,a,null,l),a.lanes=u,a}function CS(a){var l=mi(18,null,null,0);return l.stateNode=a,l}function hy(a,l,u){return l=mi(4,a.children!==null?a.children:[],a.key,l),l.lanes=u,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}var DS=new WeakMap;function Yi(a,l){if(typeof a=="object"&&a!==null){var u=DS.get(a);return u!==void 0?u:(l={value:a,source:l,stack:Ne(l)},DS.set(a,l),l)}return{value:a,source:l,stack:Ne(l)}}var Wo=[],Xo=0,Oh=null,Iu=0,Wi=[],Xi=0,Us=null,Ta=1,ka="";function ns(a,l){Wo[Xo++]=Iu,Wo[Xo++]=Oh,Oh=a,Iu=l}function LS(a,l,u){Wi[Xi++]=Ta,Wi[Xi++]=ka,Wi[Xi++]=Us,Us=a;var m=Ta;a=ka;var y=32-Y(m)-1;m&=~(1<<y),u+=1;var b=32-Y(l)+y;if(30<b){var j=y-y%5;b=(m&(1<<j)-1).toString(32),m>>=j,y-=j,Ta=1<<32-Y(l)+y|u<<y|m,ka=b+a}else Ta=1<<b|u<<y|m,ka=a}function py(a){a.return!==null&&(ns(a,1),LS(a,1,0))}function my(a){for(;a===Oh;)Oh=Wo[--Xo],Wo[Xo]=null,Iu=Wo[--Xo],Wo[Xo]=null;for(;a===Us;)Us=Wi[--Xi],Wi[Xi]=null,ka=Wi[--Xi],Wi[Xi]=null,Ta=Wi[--Xi],Wi[Xi]=null}function PS(a,l){Wi[Xi++]=Ta,Wi[Xi++]=ka,Wi[Xi++]=Us,Ta=l.id,ka=l.overflow,Us=a}var dr=null,hn=null,kt=!1,Bs=null,Ji=!1,gy=Error(r(519));function $s(a){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zu(Yi(l,a)),gy}function MS(a){var l=a.stateNode,u=a.type,m=a.memoizedProps;switch(l[at]=a,l[ot]=m,u){case"dialog":_t("cancel",l),_t("close",l);break;case"iframe":case"object":case"embed":_t("load",l);break;case"video":case"audio":for(u=0;u<sd.length;u++)_t(sd[u],l);break;case"source":_t("error",l);break;case"img":case"image":case"link":_t("error",l),_t("load",l);break;case"details":_t("toggle",l);break;case"input":_t("invalid",l),W1(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":_t("invalid",l);break;case"textarea":_t("invalid",l),J1(l,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||m.suppressHydrationWarning===!0||Zj(l.textContent,u)?(m.popover!=null&&(_t("beforetoggle",l),_t("toggle",l)),m.onScroll!=null&&_t("scroll",l),m.onScrollEnd!=null&&_t("scrollend",l),m.onClick!=null&&(l.onclick=Za),l=!0):l=!1,l||$s(a,!0)}function IS(a){for(dr=a.return;dr;)switch(dr.tag){case 5:case 31:case 13:Ji=!1;return;case 27:case 3:Ji=!0;return;default:dr=dr.return}}function Jo(a){if(a!==dr)return!1;if(!kt)return IS(a),kt=!0,!1;var l=a.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Lv(a.type,a.memoizedProps)),u=!u),u&&hn&&$s(a),IS(a),l===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));hn=o2(a)}else if(l===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));hn=o2(a)}else l===27?(l=hn,tl(a.type)?(a=Uv,Uv=null,hn=a):hn=l):hn=dr?Zi(a.stateNode.nextSibling):null;return!0}function ql(){hn=dr=null,kt=!1}function yy(){var a=Bs;return a!==null&&(Jr===null?Jr=a:Jr.push.apply(Jr,a),Bs=null),a}function zu(a){Bs===null?Bs=[a]:Bs.push(a)}var vy=z(null),Hl=null,rs=null;function Fs(a,l,u){P(vy,l._currentValue),l._currentValue=u}function is(a){a._currentValue=vy.current,Q(vy)}function xy(a,l,u){for(;a!==null;){var m=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),a===u)break;a=a.return}}function by(a,l,u,m){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var b=y.dependencies;if(b!==null){var j=y.child;b=b.firstContext;e:for(;b!==null;){var C=b;b=y;for(var F=0;F<l.length;F++)if(C.context===l[F]){b.lanes|=u,C=b.alternate,C!==null&&(C.lanes|=u),xy(b.return,u,a),m||(j=null);break e}b=C.next}}else if(y.tag===18){if(j=y.return,j===null)throw Error(r(341));j.lanes|=u,b=j.alternate,b!==null&&(b.lanes|=u),xy(j,u,a),j=null}else j=y.child;if(j!==null)j.return=y;else for(j=y;j!==null;){if(j===a){j=null;break}if(y=j.sibling,y!==null){y.return=j.return,j=y;break}j=j.return}y=j}}function Qo(a,l,u,m){a=null;for(var y=l,b=!1;y!==null;){if(!b){if((y.flags&524288)!==0)b=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var j=y.alternate;if(j===null)throw Error(r(387));if(j=j.memoizedProps,j!==null){var C=y.type;pi(y.pendingProps.value,j.value)||(a!==null?a.push(C):a=[C])}}else if(y===Se.current){if(j=y.alternate,j===null)throw Error(r(387));j.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(dd):a=[dd])}y=y.return}a!==null&&by(l,a,u,m),l.flags|=262144}function Rh(a){for(a=a.firstContext;a!==null;){if(!pi(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Gl(a){Hl=a,rs=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function fr(a){return zS(Hl,a)}function Ch(a,l){return Hl===null&&Gl(a),zS(a,l)}function zS(a,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},rs===null){if(a===null)throw Error(r(308));rs=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else rs=rs.next=l;return u}var nL=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(u,m){a.push(m)}};this.abort=function(){l.aborted=!0,a.forEach(function(u){return u()})}},rL=t.unstable_scheduleCallback,iL=t.unstable_NormalPriority,Fn={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _y(){return{controller:new nL,data:new Map,refCount:0}}function Uu(a){a.refCount--,a.refCount===0&&rL(iL,function(){a.controller.abort()})}var Bu=null,wy=0,Zo=0,ec=null;function aL(a,l){if(Bu===null){var u=Bu=[];wy=0,Zo=jv(),ec={status:"pending",value:void 0,then:function(m){u.push(m)}}}return wy++,l.then(US,US),l}function US(){if(--wy===0&&Bu!==null){ec!==null&&(ec.status="fulfilled");var a=Bu;Bu=null,Zo=0,ec=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function sL(a,l){var u=[],m={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return a.then(function(){m.status="fulfilled",m.value=l;for(var y=0;y<u.length;y++)(0,u[y])(l)},function(y){for(m.status="rejected",m.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),m}var BS=U.S;U.S=function(a,l){Sj=It(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&aL(a,l),BS!==null&&BS(a,l)};var Vl=z(null);function Sy(){var a=Vl.current;return a!==null?a:Jt.pooledCache}function Dh(a,l){l===null?P(Vl,Vl.current):P(Vl,l.pool)}function $S(){var a=Sy();return a===null?null:{parent:Fn._currentValue,pool:a}}var tc=Error(r(460)),Ey=Error(r(474)),Lh=Error(r(542)),Ph={then:function(){}};function FS(a){return a=a.status,a==="fulfilled"||a==="rejected"}function qS(a,l,u){switch(u=a[u],u===void 0?a.push(l):u!==l&&(l.then(Za,Za),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,GS(a),a;default:if(typeof l.status=="string")l.then(Za,Za);else{if(a=Jt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=l,a.status="pending",a.then(function(m){if(l.status==="pending"){var y=l;y.status="fulfilled",y.value=m}},function(m){if(l.status==="pending"){var y=l;y.status="rejected",y.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,GS(a),a}throw Yl=l,tc}}function Kl(a){try{var l=a._init;return l(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Yl=u,tc):u}}var Yl=null;function HS(){if(Yl===null)throw Error(r(459));var a=Yl;return Yl=null,a}function GS(a){if(a===tc||a===Lh)throw Error(r(483))}var nc=null,$u=0;function Mh(a){var l=$u;return $u+=1,nc===null&&(nc=[]),qS(nc,a,l)}function Fu(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function Ih(a,l){throw l.$$typeof===x?Error(r(525)):(a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function VS(a){function l(J,V){if(a){var te=J.deletions;te===null?(J.deletions=[V],J.flags|=16):te.push(V)}}function u(J,V){if(!a)return null;for(;V!==null;)l(J,V),V=V.sibling;return null}function m(J){for(var V=new Map;J!==null;)J.key!==null?V.set(J.key,J):V.set(J.index,J),J=J.sibling;return V}function y(J,V){return J=ts(J,V),J.index=0,J.sibling=null,J}function b(J,V,te){return J.index=te,a?(te=J.alternate,te!==null?(te=te.index,te<V?(J.flags|=67108866,V):te):(J.flags|=67108866,V)):(J.flags|=1048576,V)}function j(J){return a&&J.alternate===null&&(J.flags|=67108866),J}function C(J,V,te,fe){return V===null||V.tag!==6?(V=fy(te,J.mode,fe),V.return=J,V):(V=y(V,te),V.return=J,V)}function F(J,V,te,fe){var Fe=te.type;return Fe===_?de(J,V,te.props.children,fe,te.key):V!==null&&(V.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===L&&Kl(Fe)===V.type)?(V=y(V,te.props),Fu(V,te),V.return=J,V):(V=Ah(te.type,te.key,te.props,null,J.mode,fe),Fu(V,te),V.return=J,V)}function ne(J,V,te,fe){return V===null||V.tag!==4||V.stateNode.containerInfo!==te.containerInfo||V.stateNode.implementation!==te.implementation?(V=hy(te,J.mode,fe),V.return=J,V):(V=y(V,te.children||[]),V.return=J,V)}function de(J,V,te,fe,Fe){return V===null||V.tag!==7?(V=Fl(te,J.mode,fe,Fe),V.return=J,V):(V=y(V,te),V.return=J,V)}function me(J,V,te){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=fy(""+V,J.mode,te),V.return=J,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case v:return te=Ah(V.type,V.key,V.props,null,J.mode,te),Fu(te,V),te.return=J,te;case w:return V=hy(V,J.mode,te),V.return=J,V;case L:return V=Kl(V),me(J,V,te)}if(K(V)||I(V))return V=Fl(V,J.mode,te,null),V.return=J,V;if(typeof V.then=="function")return me(J,Mh(V),te);if(V.$$typeof===k)return me(J,Ch(J,V),te);Ih(J,V)}return null}function ie(J,V,te,fe){var Fe=V!==null?V.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Fe!==null?null:C(J,V,""+te,fe);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case v:return te.key===Fe?F(J,V,te,fe):null;case w:return te.key===Fe?ne(J,V,te,fe):null;case L:return te=Kl(te),ie(J,V,te,fe)}if(K(te)||I(te))return Fe!==null?null:de(J,V,te,fe,null);if(typeof te.then=="function")return ie(J,V,Mh(te),fe);if(te.$$typeof===k)return ie(J,V,Ch(J,te),fe);Ih(J,te)}return null}function le(J,V,te,fe,Fe){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return J=J.get(te)||null,C(V,J,""+fe,Fe);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case v:return J=J.get(fe.key===null?te:fe.key)||null,F(V,J,fe,Fe);case w:return J=J.get(fe.key===null?te:fe.key)||null,ne(V,J,fe,Fe);case L:return fe=Kl(fe),le(J,V,te,fe,Fe)}if(K(fe)||I(fe))return J=J.get(te)||null,de(V,J,fe,Fe,null);if(typeof fe.then=="function")return le(J,V,te,Mh(fe),Fe);if(fe.$$typeof===k)return le(J,V,te,Ch(V,fe),Fe);Ih(V,fe)}return null}function Oe(J,V,te,fe){for(var Fe=null,Ct=null,Le=V,dt=V=0,jt=null;Le!==null&&dt<te.length;dt++){Le.index>dt?(jt=Le,Le=null):jt=Le.sibling;var Dt=ie(J,Le,te[dt],fe);if(Dt===null){Le===null&&(Le=jt);break}
vendor: 4,793 bytes, line 8
8a&&Le&&Dt.alternate===null&&l(J,Le),V=b(Dt,V,dt),Ct===null?Fe=Dt:Ct.sibling=Dt,Ct=Dt,Le=jt}if(dt===te.length)return u(J,Le),kt&&ns(J,dt),Fe;if(Le===null){for(;dt<te.length;dt++)Le=me(J,te[dt],fe),Le!==null&&(V=b(Le,V,dt),Ct===null?Fe=Le:Ct.sibling=Le,Ct=Le);return kt&&ns(J,dt),Fe}for(Le=m(Le);dt<te.length;dt++)jt=le(Le,J,dt,te[dt],fe),jt!==null&&(a&&jt.alternate!==null&&Le.delete(jt.key===null?dt:jt.key),V=b(jt,V,dt),Ct===null?Fe=jt:Ct.sibling=jt,Ct=jt);return a&&Le.forEach(function(sl){return l(J,sl)}),kt&&ns(J,dt),Fe}function Je(J,V,te,fe){if(te==null)throw Error(r(151));for(var Fe=null,Ct=null,Le=V,dt=V=0,jt=null,Dt=te.next();Le!==null&&!Dt.done;dt++,Dt=te.next()){Le.index>dt?(jt=Le,Le=null):jt=Le.sibling;var sl=ie(J,Le,Dt.value,fe);if(sl===null){Le===null&&(Le=jt);break}a&&Le&&sl.alternate===null&&l(J,Le),V=b(sl,V,dt),Ct===null?Fe=sl:Ct.sibling=sl,Ct=sl,Le=jt}if(Dt.done)return u(J,Le),kt&&ns(J,dt),Fe;if(Le===null){for(;!Dt.done;dt++,Dt=te.next())Dt=me(J,Dt.value,fe),Dt!==null&&(V=b(Dt,V,dt),Ct===null?Fe=Dt:Ct.sibling=Dt,Ct=Dt);return kt&&ns(J,dt),Fe}for(Le=m(Le);!Dt.done;dt++,Dt=te.next())Dt=le(Le,J,dt,Dt.value,fe),Dt!==null&&(a&&Dt.alternate!==null&&Le.delete(Dt.key===null?dt:Dt.key),V=b(Dt,V,dt),Ct===null?Fe=Dt:Ct.sibling=Dt,Ct=Dt);return a&&Le.forEach(function(yP){return l(J,yP)}),kt&&ns(J,dt),Fe}function Vt(J,V,te,fe){if(typeof te=="object"&&te!==null&&te.type===_&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case v:e:{for(var Fe=te.key;V!==null;){if(V.key===Fe){if(Fe=te.type,Fe===_){if(V.tag===7){u(J,V.sibling),fe=y(V,te.props.children),fe.return=J,J=fe;break e}}else if(V.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===L&&Kl(Fe)===V.type){u(J,V.sibling),fe=y(V,te.props),Fu(fe,te),fe.return=J,J=fe;break e}u(J,V);break}else l(J,V);V=V.sibling}te.type===_?(fe=Fl(te.props.children,J.mode,fe,te.key),fe.return=J,J=fe):(fe=Ah(te.type,te.key,te.props,null,J.mode,fe),Fu(fe,te),fe.return=J,J=fe)}return j(J);case w:e:{for(Fe=te.key;V!==null;){if(V.key===Fe)if(V.tag===4&&V.stateNode.containerInfo===te.containerInfo&&V.stateNode.implementation===te.implementation){u(J,V.sibling),fe=y(V,te.children||[]),fe.return=J,J=fe;break e}else{u(J,V);break}else l(J,V);V=V.sibling}fe=hy(te,J.mode,fe),fe.return=J,J=fe}return j(J);case L:return te=Kl(te),Vt(J,V,te,fe)}if(K(te))return Oe(J,V,te,fe);if(I(te)){if(Fe=I(te),typeof Fe!="function")throw Error(r(150));return te=Fe.call(te),Je(J,V,te,fe)}if(typeof te.then=="function")return Vt(J,V,Mh(te),fe);if(te.$$typeof===k)return Vt(J,V,Ch(J,te),fe);Ih(J,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,V!==null&&V.tag===6?(u(J,V.sibling),fe=y(V,te),fe.return=J,J=fe):(u(J,V),fe=fy(te,J.mode,fe),fe.return=J,J=fe),j(J)):u(J,V)}return function(J,V,te,fe){try{$u=0;var Fe=Vt(J,V,te,fe);return nc=null,Fe}catch(Le){if(Le===tc||Le===Lh)throw Le;var Ct=mi(29,Le,null,J.mode);return Ct.lanes=fe,Ct.return=J,Ct}}}var Wl=VS(!0),KS=VS(!1),qs=!1;function jy(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ny(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Hs(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Gs(a,l,u){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,(Pt&2)!==0){var y=m.pending;return y===null?l.next=l:(l.next=y.next,y.next=l),m.pending=l,l=kh(a),OS(a,null,u),l}return Th(a,m,l,u),kh(a)}function qu(a,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var m=l.lanes;m&=a.pendingLanes,u|=m,l.lanes=u,Ke(a,u)}}function Ty(a,l){var u=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var y=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var j={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?y=b=j:b=b.next=j,u=u.next}while(u!==null);b===null?y=b=l:b=b.next=l}else y=b=l;u={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:b,shared:m.shared,callbacks:m.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=l}var ky=!1;function Hu(){if(ky){var a=ec;if(a!==null)throw a}}function Gu(a,l,u,m){ky=!1;var y=a.updateQueue;qs=!1;var b=y.firstBaseUpdate,j=y.lastBaseUpdate,C=y.shared.pending;if(C!==null){y.shared.pending=null;var F=C,ne=F.next;F.next=null,j===null?b=ne:j.next=ne,j=F;var de=a.alternate;de!==null&&(de=de.updateQueue,C=de.lastBaseUpdate,C!==j&&(C===null?de.firstBaseUpdate=ne:C.next=ne,de.lastBaseUpdate=F))}if(b!==null){var me=y.baseState;j=0,de=ne=F=null,C=b;do{var ie=C.lane&-536870913,le=ie!==C.lane;
vendor: 5,167 bytes, line 8
8if(le?(Et&ie)===ie:(m&ie)===ie){ie!==0&&ie===Zo&&(ky=!0),de!==null&&(de=de.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var Oe=a,Je=C;ie=l;var Vt=u;switch(Je.tag){case 1:if(Oe=Je.payload,typeof Oe=="function"){me=Oe.call(Vt,me,ie);break e}me=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=Je.payload,ie=typeof Oe=="function"?Oe.call(Vt,me,ie):Oe,ie==null)break e;me=g({},me,ie);break e;case 2:qs=!0}}ie=C.callback,ie!==null&&(a.flags|=64,le&&(a.flags|=8192),le=y.callbacks,le===null?y.callbacks=[ie]:le.push(ie))}else le={lane:ie,tag:C.tag,payload:C.payload,callback:C.callback,next:null},de===null?(ne=de=le,F=me):de=de.next=le,j|=ie;if(C=C.next,C===null){if(C=y.shared.pending,C===null)break;le=C,C=le.next,le.next=null,y.lastBaseUpdate=le,y.shared.pending=null}}while(!0);de===null&&(F=me),y.baseState=F,y.firstBaseUpdate=ne,y.lastBaseUpdate=de,b===null&&(y.shared.lanes=0),Xs|=j,a.lanes=j,a.memoizedState=me}}function YS(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function WS(a,l){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)YS(u[a],l)}var rc=z(null),zh=z(0);function XS(a,l){a=hs,P(zh,a),P(rc,l),hs=a|l.baseLanes}function Ay(){P(zh,hs),P(rc,rc.current)}function Oy(){hs=zh.current,Q(rc),Q(zh)}var gi=z(null),Qi=null;function Vs(a){var l=a.alternate;P(Pn,Pn.current&1),P(gi,a),Qi===null&&(l===null||rc.current!==null||l.memoizedState!==null)&&(Qi=a)}function Ry(a){P(Pn,Pn.current),P(gi,a),Qi===null&&(Qi=a)}function JS(a){a.tag===22?(P(Pn,Pn.current),P(gi,a),Qi===null&&(Qi=a)):Ks()}function Ks(){P(Pn,Pn.current),P(gi,gi.current)}function yi(a){Q(gi),Qi===a&&(Qi=null),Q(Pn)}var Pn=z(0);function Uh(a){for(var l=a;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Iv(u)||zv(u)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var as=0,ct=null,Ht=null,qn=null,Bh=!1,ic=!1,Xl=!1,$h=0,Vu=0,ac=null,lL=0;function On(){throw Error(r(321))}function Cy(a,l){if(l===null)return!1;for(var u=0;u<l.length&&u<a.length;u++)if(!pi(a[u],l[u]))return!1;return!0}function Dy(a,l,u,m,y,b){return as=b,ct=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,U.H=a===null||a.memoizedState===null?LE:Yy,Xl=!1,b=u(m,y),Xl=!1,ic&&(b=ZS(l,u,m,y)),QS(a),b}function QS(a){U.H=Wu;var l=Ht!==null&&Ht.next!==null;if(as=0,qn=Ht=ct=null,Bh=!1,Vu=0,ac=null,l)throw Error(r(300));a===null||Hn||(a=a.dependencies,a!==null&&Rh(a)&&(Hn=!0))}function ZS(a,l,u,m){ct=a;var y=0;do{if(ic&&(ac=null),Vu=0,ic=!1,25<=y)throw Error(r(301));if(y+=1,qn=Ht=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}U.H=PE,b=l(u,m)}while(ic);return b}function oL(){var a=U.H,l=a.useState()[0];return l=typeof l.then=="function"?Ku(l):l,a=a.useState()[0],(Ht!==null?Ht.memoizedState:null)!==a&&(ct.flags|=1024),l}function Ly(){var a=$h!==0;return $h=0,a}function Py(a,l,u){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~u}function My(a){if(Bh){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}Bh=!1}as=0,qn=Ht=ct=null,ic=!1,Vu=$h=0,ac=null}function Pr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?ct.memoizedState=qn=a:qn=qn.next=a,qn}function Mn(){if(Ht===null){var a=ct.alternate;a=a!==null?a.memoizedState:null}else a=Ht.next;var l=qn===null?ct.memoizedState:qn.next;if(l!==null)qn=l,Ht=a;else{if(a===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Ht=a,a={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},qn===null?ct.memoizedState=qn=a:qn=qn.next=a}return qn}function Fh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ku(a){var l=Vu;return Vu+=1,ac===null&&(ac=[]),a=qS(ac,a,l),l=ct,(qn===null?l.memoizedState:qn.next)===null&&(l=l.alternate,U.H=l===null||l.memoizedState===null?LE:Yy),a}function qh(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ku(a);if(a.$$typeof===k)return fr(a)}throw Error(r(438,String(a)))}function Iy(a){var l=null,u=ct.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var m=ct.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(y){return y.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=Fh(),ct.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(a),m=0;m<a;m++)u[m]=q;return l.index++,u}function ss(a,l){return typeof l=="function"?l(a):l}function Hh(a){var l=Mn();return zy(l,Ht,a)}function zy(a,l,u){var m=a.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var y=a.baseQueue,b=m.pending;if(b!==null){if(y!==null){var j=y.next;y.next=b.next,b.next=j}
vendor: 9,424 bytes, line 8
8l.baseQueue=y=b,m.pending=null}if(b=a.baseState,y===null)a.memoizedState=b;else{l=y.next;var C=j=null,F=null,ne=l,de=!1;do{var me=ne.lane&-536870913;if(me!==ne.lane?(Et&me)===me:(as&me)===me){var ie=ne.revertLane;if(ie===0)F!==null&&(F=F.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),me===Zo&&(de=!0);else if((as&ie)===ie){ne=ne.next,ie===Zo&&(de=!0);continue}else me={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},F===null?(C=F=me,j=b):F=F.next=me,ct.lanes|=ie,Xs|=ie;me=ne.action,Xl&&u(b,me),b=ne.hasEagerState?ne.eagerState:u(b,me)}else ie={lane:me,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},F===null?(C=F=ie,j=b):F=F.next=ie,ct.lanes|=me,Xs|=me;ne=ne.next}while(ne!==null&&ne!==l);if(F===null?j=b:F.next=C,!pi(b,a.memoizedState)&&(Hn=!0,de&&(u=ec,u!==null)))throw u;a.memoizedState=b,a.baseState=j,a.baseQueue=F,m.lastRenderedState=b}return y===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function Uy(a){var l=Mn(),u=l.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var m=u.dispatch,y=u.pending,b=l.memoizedState;if(y!==null){u.pending=null;var j=y=y.next;do b=a(b,j.action),j=j.next;while(j!==y);pi(b,l.memoizedState)||(Hn=!0),l.memoizedState=b,l.baseQueue===null&&(l.baseState=b),u.lastRenderedState=b}return[b,m]}function eE(a,l,u){var m=ct,y=Mn(),b=kt;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=l();var j=!pi((Ht||y).memoizedState,u);if(j&&(y.memoizedState=u,Hn=!0),y=y.queue,Fy(rE.bind(null,m,y,a),[a]),y.getSnapshot!==l||j||qn!==null&&qn.memoizedState.tag&1){if(m.flags|=2048,sc(9,{destroy:void 0},nE.bind(null,m,y,u,l),null),Jt===null)throw Error(r(349));b||(as&127)!==0||tE(m,l,u)}return u}function tE(a,l,u){a.flags|=16384,a={getSnapshot:l,value:u},l=ct.updateQueue,l===null?(l=Fh(),ct.updateQueue=l,l.stores=[a]):(u=l.stores,u===null?l.stores=[a]:u.push(a))}function nE(a,l,u,m){l.value=u,l.getSnapshot=m,iE(l)&&aE(a)}function rE(a,l,u){return u(function(){iE(l)&&aE(a)})}function iE(a){var l=a.getSnapshot;a=a.value;try{var u=l();return!pi(a,u)}catch{return!0}}function aE(a){var l=$l(a,2);l!==null&&Qr(l,a,2)}function By(a){var l=Pr();if(typeof a=="function"){var u=a;if(a=u(),Xl){tn(!0);try{u()}finally{tn(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:a},l}function sE(a,l,u,m){return a.baseState=u,zy(a,Ht,typeof m=="function"?m:ss)}function cL(a,l,u,m,y){if(Kh(a))throw Error(r(485));if(a=l.action,a!==null){var b={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){b.listeners.push(j)}};U.T!==null?u(!0):b.isTransition=!1,m(b),u=l.pending,u===null?(b.next=l.pending=b,lE(l,b)):(b.next=u.next,l.pending=u.next=b)}}function lE(a,l){var u=l.action,m=l.payload,y=a.state;if(l.isTransition){var b=U.T,j={};U.T=j;try{var C=u(y,m),F=U.S;F!==null&&F(j,C),oE(a,l,C)}catch(ne){$y(a,l,ne)}finally{b!==null&&j.types!==null&&(b.types=j.types),U.T=b}}else try{b=u(y,m),oE(a,l,b)}catch(ne){$y(a,l,ne)}}function oE(a,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){cE(a,l,m)},function(m){return $y(a,l,m)}):cE(a,l,u)}function cE(a,l,u){l.status="fulfilled",l.value=u,uE(l),a.state=u,l=a.pending,l!==null&&(u=l.next,u===l?a.pending=null:(u=u.next,l.next=u,lE(a,u)))}function $y(a,l,u){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=u,uE(l),l=l.next;while(l!==m)}a.action=null}function uE(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function dE(a,l){return l}function fE(a,l){if(kt){var u=Jt.formState;if(u!==null){e:{var m=ct;if(kt){if(hn){t:{for(var y=hn,b=Ji;y.nodeType!==8;){if(!b){y=null;break t}if(y=Zi(y.nextSibling),y===null){y=null;break t}}b=y.data,y=b==="F!"||b==="F"?y:null}if(y){hn=Zi(y.nextSibling),m=y.data==="F!";break e}}$s(m)}m=!1}m&&(l=u[0])}}return u=Pr(),u.memoizedState=u.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dE,lastRenderedState:l},u.queue=m,u=RE.bind(null,ct,m),m.dispatch=u,m=By(!1),b=Ky.bind(null,ct,!1,m.queue),m=Pr(),y={state:l,dispatch:null,action:a,pending:null},m.queue=y,u=cL.bind(null,ct,y,b,u),y.dispatch=u,m.memoizedState=a,[l,u,!1]}function hE(a){var l=Mn();return pE(l,Ht,a)}function pE(a,l,u){if(l=zy(a,l,dE)[0],a=Hh(ss)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=Ku(l)}catch(j){throw j===tc?Lh:j}else m=l;l=Mn();var y=l.queue,b=y.dispatch;return u!==l.memoizedState&&(ct.flags|=2048,sc(9,{destroy:void 0},uL.bind(null,y,u),null)),[m,b,a]}function uL(a,l){a.action=l}function mE(a){var l=Mn(),u=Ht;if(u!==null)return pE(l,u,a);Mn(),l=l.memoizedState,u=Mn();var m=u.queue.dispatch;return u.memoizedState=a,[l,m,!1]}function sc(a,l,u,m){return a={tag:a,create:u,deps:m,inst:l,next:null},l=ct.updateQueue,l===null&&(l=Fh(),ct.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=a.next=a:(m=u.next,u.next=a,a.next=m,l.lastEffect=a),a}function gE(){return Mn().memoizedState}function Gh(a,l,u,m){var y=Pr();ct.flags|=a,y.memoizedState=sc(1|l,{destroy:void 0},u,m===void 0?null:m)}function Vh(a,l,u,m){var y=Mn();m=m===void 0?null:m;var b=y.memoizedState.inst;Ht!==null&&m!==null&&Cy(m,Ht.memoizedState.deps)?y.memoizedState=sc(l,b,u,m):(ct.flags|=a,y.memoizedState=sc(1|l,b,u,m))}function yE(a,l){Gh(8390656,8,a,l)}function Fy(a,l){Vh(2048,8,a,l)}function dL(a){ct.flags|=4;var l=ct.updateQueue;if(l===null)l=Fh(),ct.updateQueue=l,l.events=[a];else{var u=l.events;u===null?l.events=[a]:u.push(a)}}function vE(a){var l=Mn().memoizedState;return dL({ref:l,nextImpl:a}),function(){if((Pt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function xE(a,l){return Vh(4,2,a,l)}function bE(a,l){return Vh(4,4,a,l)}function _E(a,l){if(typeof l=="function"){a=a();var u=l(a);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function wE(a,l,u){u=u!=null?u.concat([a]):null,Vh(4,4,_E.bind(null,l,a),u)}function qy(){}function SE(a,l){var u=Mn();l=l===void 0?null:l;var m=u.memoizedState;return l!==null&&Cy(l,m[1])?m[0]:(u.memoizedState=[a,l],a)}function EE(a,l){var u=Mn();l=l===void 0?null:l;var m=u.memoizedState;if(l!==null&&Cy(l,m[1]))return m[0];if(m=a(),Xl){tn(!0);try{a()}finally{tn(!1)}}return u.memoizedState=[m,l],m}function Hy(a,l,u){return u===void 0||(as&1073741824)!==0&&(Et&261930)===0?a.memoizedState=l:(a.memoizedState=u,a=jj(),ct.lanes|=a,Xs|=a,u)}function jE(a,l,u,m){return pi(u,l)?u:rc.current!==null?(a=Hy(a,u,m),pi(a,l)||(Hn=!0),a):(as&42)===0||(as&1073741824)!==0&&(Et&261930)===0?(Hn=!0,a.memoizedState=u):(a=jj(),ct.lanes|=a,Xs|=a,l)}function NE(a,l,u,m,y){var b=W.p;W.p=b!==0&&8>b?b:8;var j=U.T,C={};U.T=C,Ky(a,!1,l,u);try{var F=y(),ne=U.S;if(ne!==null&&ne(C,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var de=sL(F,m);Yu(a,l,de,bi(a))}else Yu(a,l,m,bi(a))}catch(me){Yu(a,l,{then:function(){},status:"rejected",reason:me},bi())}finally{W.p=b,j!==null&&C.types!==null&&(j.types=C.types),U.T=j}}function fL(){}function Gy(a,l,u,m){if(a.tag!==5)throw Error(r(476));var y=TE(a).queue;NE(a,y,l,G,u===null?fL:function(){return kE(a),u(m)})}function TE(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:G},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:u},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function kE(a){var l=TE(a);l.next===null&&(l=a.alternate.memoizedState),Yu(a,l.next.queue,{},bi())}function Vy(){return fr(dd)}function AE(){return Mn().memoizedState}function OE(){return Mn().memoizedState}function hL(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var u=bi();a=Hs(u);var m=Gs(l,a,u);m!==null&&(Qr(m,l,u),qu(m,l,u)),l={cache:_y()},a.payload=l;return}l=l.return}}function pL(a,l,u){var m=bi();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Kh(a)?CE(l,u):(u=uy(a,l,u,m),u!==null&&(Qr(u,a,m),DE(u,l,m)))}function RE(a,l,u){var m=bi();Yu(a,l,u,m)}function Yu(a,l,u,m){var y={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Kh(a))CE(l,y);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=l.lastRenderedReducer,b!==null))try{var j=l.lastRenderedState,C=b(j,u);if(y.hasEagerState=!0,y.eagerState=C,pi(C,j))return Th(a,l,y,0),Jt===null&&Nh(),!1}catch{}if(u=uy(a,l,y,m),u!==null)return Qr(u,a,m),DE(u,l,m),!0}return!1}function Ky(a,l,u,m){if(m={lane:2,revertLane:jv(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Kh(a)){if(l)throw Error(r(479))}else l=uy(a,u,m,2),l!==null&&Qr(l,a,2)}function Kh(a){var l=a.alternate;return a===ct||l!==null&&l===ct}function CE(a,l){ic=Bh=!0;var u=a.pending;u===null?l.next=l:(l.next=u.next,u.next=l),a.pending=l}function DE(a,l,u){if((u&4194048)!==0){var m=l.lanes;m&=a.pendingLanes,u|=m,l.lanes=u,Ke(a,u)}}var Wu={readContext:fr,use:qh,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useInsertionEffect:On,useMemo:On,useReducer:On,useRef
vendor: 4,263 bytes, line 8
8:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useSyncExternalStore:On,useId:On,useHostTransitionStatus:On,useFormState:On,useActionState:On,useOptimistic:On,useMemoCache:On,useCacheRefresh:On};Wu.useEffectEvent=On;var LE={readContext:fr,use:qh,useCallback:function(a,l){return Pr().memoizedState=[a,l===void 0?null:l],a},useContext:fr,useEffect:yE,useImperativeHandle:function(a,l,u){u=u!=null?u.concat([a]):null,Gh(4194308,4,_E.bind(null,l,a),u)},useLayoutEffect:function(a,l){return Gh(4194308,4,a,l)},useInsertionEffect:function(a,l){Gh(4,2,a,l)},useMemo:function(a,l){var u=Pr();l=l===void 0?null:l;var m=a();if(Xl){tn(!0);try{a()}finally{tn(!1)}}return u.memoizedState=[m,l],m},useReducer:function(a,l,u){var m=Pr();if(u!==void 0){var y=u(l);if(Xl){tn(!0);try{u(l)}finally{tn(!1)}}}else y=l;return m.memoizedState=m.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},m.queue=a,a=a.dispatch=pL.bind(null,ct,a),[m.memoizedState,a]},useRef:function(a){var l=Pr();return a={current:a},l.memoizedState=a},useState:function(a){a=By(a);var l=a.queue,u=RE.bind(null,ct,l);return l.dispatch=u,[a.memoizedState,u]},useDebugValue:qy,useDeferredValue:function(a,l){var u=Pr();return Hy(u,a,l)},useTransition:function(){var a=By(!1);return a=NE.bind(null,ct,a.queue,!0,!1),Pr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,u){var m=ct,y=Pr();if(kt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=l(),Jt===null)throw Error(r(349));(Et&127)!==0||tE(m,l,u)}y.memoizedState=u;var b={value:u,getSnapshot:l};return y.queue=b,yE(rE.bind(null,m,b,a),[a]),m.flags|=2048,sc(9,{destroy:void 0},nE.bind(null,m,b,u,l),null),u},useId:function(){var a=Pr(),l=Jt.identifierPrefix;if(kt){var u=ka,m=Ta;u=(m&~(1<<32-Y(m)-1)).toString(32)+u,l="_"+l+"R_"+u,u=$h++,0<u&&(l+="H"+u.toString(32)),l+="_"}else u=lL++,l="_"+l+"r_"+u.toString(32)+"_";return a.memoizedState=l},useHostTransitionStatus:Vy,useFormState:fE,useActionState:fE,useOptimistic:function(a){var l=Pr();l.memoizedState=l.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=Ky.bind(null,ct,!0,u),u.dispatch=l,[a,l]},useMemoCache:Iy,useCacheRefresh:function(){return Pr().memoizedState=hL.bind(null,ct)},useEffectEvent:function(a){var l=Pr(),u={impl:a};return l.memoizedState=u,function(){if((Pt&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Yy={readContext:fr,use:qh,useCallback:SE,useContext:fr,useEffect:Fy,useImperativeHandle:wE,useInsertionEffect:xE,useLayoutEffect:bE,useMemo:EE,useReducer:Hh,useRef:gE,useState:function(){return Hh(ss)},useDebugValue:qy,useDeferredValue:function(a,l){var u=Mn();return jE(u,Ht.memoizedState,a,l)},useTransition:function(){var a=Hh(ss)[0],l=Mn().memoizedState;return[typeof a=="boolean"?a:Ku(a),l]},useSyncExternalStore:eE,useId:AE,useHostTransitionStatus:Vy,useFormState:hE,useActionState:hE,useOptimistic:function(a,l){var u=Mn();return sE(u,Ht,a,l)},useMemoCache:Iy,useCacheRefresh:OE};Yy.useEffectEvent=vE;var PE={readContext:fr,use:qh,useCallback:SE,useContext:fr,useEffect:Fy,useImperativeHandle:wE,useInsertionEffect:xE,useLayoutEffect:bE,useMemo:EE,useReducer:Uy,useRef:gE,useState:function(){return Uy(ss)},useDebugValue:qy,useDeferredValue:function(a,l){var u=Mn();return Ht===null?Hy(u,a,l):jE(u,Ht.memoizedState,a,l)},useTransition:function(){var a=Uy(ss)[0],l=Mn().memoizedState;return[typeof a=="boolean"?a:Ku(a),l]},useSyncExternalStore:eE,useId:AE,useHostTransitionStatus:Vy,useFormState:mE,useActionState:mE,useOptimistic:function(a,l){var u=Mn();return Ht!==null?sE(u,Ht,a,l):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Iy,useCacheRefresh:OE};PE.useEffectEvent=vE;function Wy(a,l,u,m){l=a.memoizedState,u=u(m,l),u=u==null?l:g({},l,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Xy={enqueueSetState:function(a,l,u){a=a._reactInternals;var m=bi(),y=Hs(m);y.payload=l,u!=null&&(y.callback=u),l=Gs(a,y,m),l!==null&&(Qr(l,a,m),qu(l,a,m))},enqueueReplaceState:function(a,l,u){a=a._reactInternals;var m=bi(),y=Hs(m);y.tag=1,y.payload=l,u!=null&&(y.callback=u),l=Gs(a,y,m),l!==null&&(Qr(l,a,m),qu(l,a,m))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var u=bi(),m=Hs(u);
vendor: 16,998 bytes, line 8
8m.tag=2,l!=null&&(m.callback=l),l=Gs(a,m,u),l!==null&&(Qr(l,a,u),qu(l,a,u))}};function ME(a,l,u,m,y,b,j){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,b,j):l.prototype&&l.prototype.isPureReactComponent?!Pu(u,m)||!Pu(y,b):!0}function IE(a,l,u,m){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,m),l.state!==a&&Xy.enqueueReplaceState(l,l.state,null)}function Jl(a,l){var u=l;if("ref"in l){u={};for(var m in l)m!=="ref"&&(u[m]=l[m])}if(a=a.defaultProps){u===l&&(u=g({},u));for(var y in a)u[y]===void 0&&(u[y]=a[y])}return u}function zE(a){jh(a)}function UE(a){console.error(a)}function BE(a){jh(a)}function Yh(a,l){try{var u=a.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function $E(a,l,u){try{var m=a.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function Jy(a,l,u){return u=Hs(u),u.tag=3,u.payload={element:null},u.callback=function(){Yh(a,l)},u}function FE(a){return a=Hs(a),a.tag=3,a}function qE(a,l,u,m){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var b=m.value;a.payload=function(){return y(b)},a.callback=function(){$E(l,u,m)}}var j=u.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(a.callback=function(){$E(l,u,m),typeof y!="function"&&(Js===null?Js=new Set([this]):Js.add(this));var C=m.stack;this.componentDidCatch(m.value,{componentStack:C!==null?C:""})})}function mL(a,l,u,m,y){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=u.alternate,l!==null&&Qo(l,u,y,!0),u=gi.current,u!==null){switch(u.tag){case 31:case 13:return Qi===null?sp():u.alternate===null&&Rn===0&&(Rn=3),u.flags&=-257,u.flags|=65536,u.lanes=y,m===Ph?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([m]):l.add(m),wv(a,m,y)),!1;case 22:return u.flags|=65536,m===Ph?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([m]):u.add(m)),wv(a,m,y)),!1}throw Error(r(435,u.tag))}return wv(a,m,y),sp(),!1}if(kt)return l=gi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=y,m!==gy&&(a=Error(r(422),{cause:m}),zu(Yi(a,u)))):(m!==gy&&(l=Error(r(423),{cause:m}),zu(Yi(l,u))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,m=Yi(m,u),y=Jy(a.stateNode,m,y),Ty(a,y),Rn!==4&&(Rn=2)),!1;var b=Error(r(520),{cause:m});if(b=Yi(b,u),rd===null?rd=[b]:rd.push(b),Rn!==4&&(Rn=2),l===null)return!0;m=Yi(m,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,a=y&-y,u.lanes|=a,a=Jy(u.stateNode,m,a),Ty(u,a),!1;case 1:if(l=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Js===null||!Js.has(b))))return u.flags|=65536,y&=-y,u.lanes|=y,y=FE(y),qE(y,a,u,m),Ty(u,y),!1}u=u.return}while(u!==null);return!1}var Qy=Error(r(461)),Hn=!1;function hr(a,l,u,m){l.child=a===null?KS(l,null,u,m):Wl(l,a.child,u,m)}function HE(a,l,u,m,y){u=u.render;var b=l.ref;if("ref"in m){var j={};for(var C in m)C!=="ref"&&(j[C]=m[C])}else j=m;return Gl(l),m=Dy(a,l,u,j,b,y),C=Ly(),a!==null&&!Hn?(Py(a,l,y),ls(a,l,y)):(kt&&C&&py(l),l.flags|=1,hr(a,l,m,y),l.child)}function GE(a,l,u,m,y){if(a===null){var b=u.type;return typeof b=="function"&&!dy(b)&&b.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=b,VE(a,l,b,m,y)):(a=Ah(u.type,null,m,l,l.mode,y),a.ref=l.ref,a.return=l,l.child=a)}if(b=a.child,!sv(a,y)){var j=b.memoizedProps;if(u=u.compare,u=u!==null?u:Pu,u(j,m)&&a.ref===l.ref)return ls(a,l,y)}return l.flags|=1,a=ts(b,m),a.ref=l.ref,a.return=l,l.child=a}function VE(a,l,u,m,y){if(a!==null){var b=a.memoizedProps;if(Pu(b,m)&&a.ref===l.ref)if(Hn=!1,l.pendingProps=m=b,sv(a,y))(a.flags&131072)!==0&&(Hn=!0);else return l.lanes=a.lanes,ls(a,l,y)}return Zy(a,l,u,m,y)}function KE(a,l,u,m){var y=m.children,b=a!==null?a.memoizedState:null;if(a===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((l.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,a!==null){for(m=l.child=a.child,y=0;m!==null;)y=y|m.lanes|m.childLanes,m=m.sibling;m=y&~b}else m=0,l.child=null;return YE(a,l,b,u,m)}if((u&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&Dh(l,b!==null?b.cachePool:null),b!==null?XS(l,b):Ay(),JS(l);else return m=l.lanes=536870912,YE(a,l,b!==null?b.baseLanes|u:u,u,m)}else b!==null?(Dh(l,b.cachePool),XS(l,b),Ks(),l.memoizedState=null):(a!==null&&Dh(l,null),Ay(),Ks());return hr(a,l,y,u),l.child}function Xu(a,l){return a!==null&&a.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function YE(a,l,u,m,y){var b=Sy();return b=b===null?null:{parent:Fn._currentValue,pool:b},l.memoizedState={baseLanes:u,cachePool:b},a!==null&&Dh(l,null),Ay(),JS(l),a!==null&&Qo(a,l,m,!0),l.childLanes=y,null}function Wh(a,l){return l=Jh({mode:l.mode,children:l.children},a.mode),l.ref=a.ref,a.child=l,l.return=a,l}function WE(a,l,u){return Wl(l,a.child,null,u),a=Wh(l,l.pendingProps),a.flags|=2,yi(l),l.memoizedState=null,a}function gL(a,l,u){var m=l.pendingProps,y=(l.flags&128)!==0;if(l.flags&=-129,a===null){if(kt){if(m.mode==="hidden")return a=Wh(l,m),l.lanes=536870912,Xu(null,a);if(Ry(l),(a=hn)?(a=l2(a,Ji),a=a!==null&&a.data==="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Us!==null?{id:Ta,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},u=CS(a),u.return=l,l.child=u,dr=l,hn=null)):a=null,a===null)throw $s(l);return l.lanes=536870912,null}return Wh(l,m)}var b=a.memoizedState;if(b!==null){var j=b.dehydrated;if(Ry(l),y)if(l.flags&256)l.flags&=-257,l=WE(a,l,u);else if(l.memoizedState!==null)l.child=a.child,l.flags|=128,l=null;else throw Error(r(558));else if(Hn||Qo(a,l,u,!1),y=(u&a.childLanes)!==0,Hn||y){if(m=Jt,m!==null&&(j=Pe(m,u),j!==0&&j!==b.retryLane))throw b.retryLane=j,$l(a,j),Qr(m,a,j),Qy;sp(),l=WE(a,l,u)}else a=b.treeContext,hn=Zi(j.nextSibling),dr=l,kt=!0,Bs=null,Ji=!1,a!==null&&PS(l,a),l=Wh(l,m),l.flags|=4096;return l}return a=ts(a.child,{mode:m.mode,children:m.children}),a.ref=l.ref,l.child=a,a.return=l,a}function Xh(a,l){var u=l.ref;if(u===null)a!==null&&a.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(l.flags|=4194816)}}function Zy(a,l,u,m,y){return Gl(l),u=Dy(a,l,u,m,void 0,y),m=Ly(),a!==null&&!Hn?(Py(a,l,y),ls(a,l,y)):(kt&&m&&py(l),l.flags|=1,hr(a,l,u,y),l.child)}function XE(a,l,u,m,y,b){return Gl(l),l.updateQueue=null,u=ZS(l,m,u,y),QS(a),m=Ly(),a!==null&&!Hn?(Py(a,l,b),ls(a,l,b)):(kt&&m&&py(l),l.flags|=1,hr(a,l,u,b),l.child)}function JE(a,l,u,m,y){if(Gl(l),l.stateNode===null){var b=Yo,j=u.contextType;typeof j=="object"&&j!==null&&(b=fr(j)),b=new u(m,b),l.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Xy,l.stateNode=b,b._reactInternals=l,b=l.stateNode,b.props=m,b.state=l.memoizedState,b.refs={},jy(l),j=u.contextType,b.context=typeof j=="object"&&j!==null?fr(j):Yo,b.state=l.memoizedState,j=u.getDerivedStateFromProps,typeof j=="function"&&(Wy(l,u,j,m),b.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(j=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),j!==b.state&&Xy.enqueueReplaceState(b,b.state,null),Gu(l,m,b,y),Hu(),b.state=l.memoizedState),typeof b.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(a===null){b=l.stateNode;var C=l.memoizedProps,F=Jl(u,C);b.props=F;var ne=b.context,de=u.contextType;j=Yo,typeof de=="object"&&de!==null&&(j=fr(de));var me=u.getDerivedStateFromProps;de=typeof me=="function"||typeof b.getSnapshotBeforeUpdate=="function",C=l.pendingProps!==C,de||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C||ne!==j)&&IE(l,b,m,j),qs=!1;var ie=l.memoizedState;b.state=ie,Gu(l,m,b,y),Hu(),ne=l.memoizedState,C||ie!==ne||qs?(typeof me=="function"&&(Wy(l,u,me,m),ne=l.memoizedState),(F=qs||ME(l,u,F,m,ie,ne,j))?(de||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(l.flags|=4194308)):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=ne),b.props=m,b.state=ne,b.context=j,m=F):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{b=l.stateNode,Ny(a,l),j=l.memoizedProps,de=Jl(u,j),b.props=de,me=l.pendingProps,ie=b.context,ne=u.contextType,F=Yo,typeof ne=="object"&&ne!==null&&(F=fr(ne)),C=u.getDerivedStateFromProps,(ne=typeof C=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(j!==me||ie!==F)&&IE(l,b,m,F),qs=!1,ie=l.memoizedState,b.state=ie,Gu(l,m,b,y),Hu();var le=l.memoizedState;j!==me||ie!==le||qs||a!==null&&a.dependencies!==null&&Rh(a.dependencies)?(typeof C=="function"&&(Wy(l,u,C,m),le=l.memoizedState),(de=qs||ME(l,u,de,m,ie,le,F)||a!==null&&a.dependencies!==null&&Rh(a.dependencies))?(ne||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(m,le,F),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(m,le,F)),typeof b.componentDidUpdate=="function"&&(l.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof b.componentDidUpdate!="function"||j===a.memoizedProps&&ie===a.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||j===a.memoizedProps&&ie===a.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=le),b.props=m,b.state=le,b.context=F,m=de):(typeof b.componentDidUpdate!="function"||j===a.memoizedProps&&ie===a.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||j===a.memoizedProps&&ie===a.memoizedState||(l.flags|=1024),m=!1)}return b=m,Xh(a,l),m=(l.flags&128)!==0,b||m?(b=l.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:b.render(),l.flags|=1,a!==null&&m?(l.child=Wl(l,a.child,null,y),l.child=Wl(l,null,u,y)):hr(a,l,u,y),l.memoizedState=b.state,a=l.child):a=ls(a,l,y),a}function QE(a,l,u,m){return ql(),l.flags|=256,hr(a,l,u,m),l.child}var ev={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tv(a){return{baseLanes:a,cachePool:$S()}}function nv(a,l,u){return a=a!==null?a.childLanes&~u:0,l&&(a|=xi),a}function ZE(a,l,u){var m=l.pendingProps,y=!1,b=(l.flags&128)!==0,j;if((j=b)||(j=a!==null&&a.memoizedState===null?!1:(Pn.current&2)!==0),j&&(y=!0,l.flags&=-129),j=(l.flags&32)!==0,l.flags&=-33,a===null){if(kt){if(y?Vs(l):Ks(),(a=hn)?(a=l2(a,Ji),a=a!==null&&a.data!=="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Us!==null?{id:Ta,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},u=CS(a),u.return=l,l.child=u,dr=l,hn=null)):a=null,a===null)throw $s(l);return zv(a)?l.lanes=32:l.lanes=536870912,null}var C=m.children;return m=m.fallback,y?(Ks(),y=l.mode,C=Jh({mode:"hidden",children:C},y),m=Fl(m,y,u,null),C.return=l,m.return=l,C.sibling=m,l.child=C,m=l.child,m.memoizedState=tv(u),m.childLanes=nv(a,j,u),l.memoizedState=ev,Xu(null,m)):(Vs(l),rv(l,C))}var F=a.memoizedState;if(F!==null&&(C=F.dehydrated,C!==null)){if(b)l.flags&256?(Vs(l),l.flags&=-257,l=iv(a,l,u)):l.memoizedState!==null?(Ks(),l.child=a.child,l.flags|=128,l=null):(Ks(),C=m.fallback,y=l.mode,m=Jh({mode:"visible",children:m.children},y),C=Fl(C,y,u,null),C.flags|=2,m.return=l,C.return=l,m.sibling=C,l.child=m,Wl(l,a.child,null,u),m=l.child,m.memoizedState=tv(u),m.childLanes=nv(a,j,u),l.memoizedState=ev,l=Xu(null,m));else if(Vs(l),zv(C)){if(j=C.nextSibling&&C.nextSibling.dataset,j)var ne=j.dgst;j=ne,m=Error(r(419)),m.stack="",m.digest=j,zu({value:m,source:null,stack:null}),l=iv(a,l,u)}else if(Hn||Qo(a,l,u,!1),j=(u&a.childLanes)!==0,Hn||j){if(j=Jt,j!==null&&(m=Pe(j,u),m!==0&&m!==F.retryLane))throw F.retryLane=m,$l(a,m),Qr(j,a,m),Qy;Iv(C)||sp(),l=iv(a,l,u)}else Iv(C)?(l.flags|=192,l.child=a.child,l=null):(a=F.treeContext,hn=Zi(C.nextSibling),dr=l,kt=!0,Bs=null,Ji=!1,a!==null&&PS(l,a),l=rv(l,m.children),l.flags|=4096);return l}return y?(Ks(),C=m.fallback,y=l.mode,F=a.child,ne=F.sibling,m=ts(F,{mode:"hidden",children:m.children}),m.subtreeFlags=F.subtreeFlags&65011712,ne!==null?C=ts(ne,C):(C=Fl(C,y,u,null),C.flags|=2),C.return=l,m.return=l,m.sibling=C,l.child=m,Xu(null,m),m=l.child,C=a.child.memoizedState,C===null?C=tv(u):(y=C.cachePool,y!==null?(F=Fn._currentValue,y=y.parent!==F?{parent:F,pool:F}:y):y=$S(),C={baseLanes:C.baseLanes|u,cachePool:y}),m.memoizedState=C,m.childLanes=nv(a,j,u),l.memoizedState=ev,Xu(a.child,m)):(Vs(l),u=a.child,a=u.sibling,u=ts(u,{mode:"visible",children:m.children}),u.return=l,u.sibling=null,a!==null&&(j=l.deletions,j===null?(l.deletions=[a],l.flags|=16):j.push(a)),l.child=u,l.memoizedState=null,u)}function rv(a,l){return l=Jh({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function Jh(a,l){return a=mi(22,a,null,l),a.lanes=0,a}function iv(a,l,u){return Wl(l,a.child,null,u),a=rv(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function ej(a,l,u){a.lanes|=l;var m=a.alternate;m!==null&&(m.lanes|=l),xy(a.return,l,u)}function av(a,l,u,m,y,b){var j=a.memoizedState;j===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:y,treeForkCount:b}:(j.isBackwards=l,j.rendering=null,j.renderingStartTime=0,j.last=m,j.tail=u,j.tailMode=y,j.treeForkCount=b)}function tj(a,l,u){var m=l.pendingProps,y=m.revealOrder,b=m.tail;m=m.children;var j=Pn.current,C=(j&2)!==0;if(C?(j=j&1|2,l.flags|=128):j&=1,P(Pn,j),hr(a,l,m,u),m=kt?Iu:0,!C&&a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&ej(a,u,l);else if(a.tag===19)ej(a,u,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(u=l.child,y=null;u!==null;)a=u.alternate,a!==null&&Uh(a)===null&&(y=u),u=u.sibling;u=y,u===null?(y=l.child,l.child=null):(y=u.sibling,u.sibling=null),av(l,!1,y,u,b,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=l.child,l.child=null;y!==null;){if(a=y.alternate,a!==null&&Uh(a)===null){l.child=y;break}a=y.sibling,y.sibling=u,u=y,y=a}av(l,!0,u,null,b,m);break;case"together":av(l,!1,null,null,void 0,m);break;default:l.memoizedState=null}return l.child}function ls(a,l,u){if(a!==null&&(l.dependencies=a.dependencies),Xs|=l.lanes,(u&l.childLanes)===0)if(a!==null){if(Qo(a,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,u=ts(a,a.pendingProps),l.child=u,u.return=l;a.sibling!==null;)a=a.sibling,u=u.sibling=ts(a,a.pendingProps),u.return=l;u.sibling=null}return l.child}function sv(a,l){return(a.lanes&l)!==0?!0:(a=a.dependencies,!!(a!==null&&Rh(a)))}function yL(a,l,u){switch(l.tag){case 3:He(l,l.stateNode.containerInfo),Fs(l,Fn,a.memoizedState.cache),ql();break;case 27:case 5:Ae(l);break;case 4:He(l,l.stateNode.containerInfo);break;case 10:Fs(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Ry(l),null;break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(Vs(l),l.flags|=128,null):(u&l.child.childLanes)!==0?ZE(a,l,u):(Vs(l),a=ls(a,l,u),a!==null?a.sibling:null);Vs(l);break;case 19:var y=(a.flags&128)!==0;if(m=(u&l.childLanes)!==0,m||(Qo(a,l,u,!1),m=(u&l.childLanes)!==0),y){if(m)return tj(a,l,u);l.flags|=128}if(y=l.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),P(Pn,Pn.current),m)break;return null;case 22:return l.lanes=0,KE(a,l,u,l.pendingProps);case 24:Fs(l,Fn,a.memoizedState.cache)}return ls(a,l,u)}function nj(a,l,u){if(a!==null)if(a.memoizedProps!==l.pendingProps)Hn=!0;else{if(!sv(a,u)&&(l.flags&128)===0)return Hn=!1,yL(a,l,u);Hn=(a.flags&131072)!==0}else Hn=!1,kt&&(l.flags&1048576)!==0&&LS(l,Iu,l.index);switch(l.lanes=0,l.tag){case 16:e:{var m=l.pendingProps;if(a=Kl(l.elementType),l.type=a,typeof a=="function")dy(a)?(m=Jl(a,m),l.tag=1,l=JE(null,l,a,m,u)):(l.tag=0,l=Zy(null,l,a,m,u));else{if(a!=null){var y=a.$$typeof;if(y===R){l.tag=11,l=HE(null,l,a,m,u);break e}else if(y===T){l.tag=14,l=GE(null,l,a,m,u);break e}}throw l=X(a)||a,Error(r(306,l,""))}}return l;
vendor: 1,347 bytes, line 8
8case 0:return Zy(a,l,l.type,l.pendingProps,u);case 1:return m=l.type,y=Jl(m,l.pendingProps),JE(a,l,m,y,u);case 3:e:{if(He(l,l.stateNode.containerInfo),a===null)throw Error(r(387));m=l.pendingProps;var b=l.memoizedState;y=b.element,Ny(a,l),Gu(l,m,null,u);var j=l.memoizedState;if(m=j.cache,Fs(l,Fn,m),m!==b.cache&&by(l,[Fn],u,!0),Hu(),m=j.element,b.isDehydrated)if(b={element:m,isDehydrated:!1,cache:j.cache},l.updateQueue.baseState=b,l.memoizedState=b,l.flags&256){l=QE(a,l,m,u);break e}else if(m!==y){y=Yi(Error(r(424)),l),zu(y),l=QE(a,l,m,u);break e}else for(a=l.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,hn=Zi(a.firstChild),dr=l,kt=!0,Bs=null,Ji=!0,u=KS(l,null,m,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(ql(),m===y){l=ls(a,l,u);break e}hr(a,l,m,u)}l=l.child}return l;case 26:return Xh(a,l),a===null?(u=h2(l.type,null,l.pendingProps,null))?l.memoizedState=u:kt||(u=l.type,a=l.pendingProps,m=hp(ye.current).createElement(u),m[at]=l,m[ot]=a,pr(m,u,a),gt(m),l.stateNode=m):l.memoizedState=h2(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return Ae(l),a===null&&kt&&(m=l.stateNode=u2(l.type,l.pendingProps,ye.current),dr=l,Ji=!0,y=hn,tl(l.type)?(Uv=y,hn=Zi(m.firstChild)):hn=y),hr(a,l,l.pendingProps.children,u),Xh(a,l),a===null&&(l.flags|=4194304),l.child;
vendor: 1,042 bytes, line 8
8case 5:return a===null&&kt&&((y=m=hn)&&(m=KL(m,l.type,l.pendingProps,Ji),m!==null?(l.stateNode=m,dr=l,hn=Zi(m.firstChild),Ji=!1,y=!0):y=!1),y||$s(l)),Ae(l),y=l.type,b=l.pendingProps,j=a!==null?a.memoizedProps:null,m=b.children,Lv(y,b)?m=null:j!==null&&Lv(y,j)&&(l.flags|=32),l.memoizedState!==null&&(y=Dy(a,l,oL,null,null,u),dd._currentValue=y),Xh(a,l),hr(a,l,m,u),l.child;case 6:return a===null&&kt&&((a=u=hn)&&(u=YL(u,l.pendingProps,Ji),u!==null?(l.stateNode=u,dr=l,hn=null,a=!0):a=!1),a||$s(l)),null;case 13:return ZE(a,l,u);case 4:return He(l,l.stateNode.containerInfo),m=l.pendingProps,a===null?l.child=Wl(l,null,m,u):hr(a,l,m,u),l.child;case 11:return HE(a,l,l.type,l.pendingProps,u);case 7:return hr(a,l,l.pendingProps,u),l.child;case 8:return hr(a,l,l.pendingProps.children,u),l.child;case 12:return hr(a,l,l.pendingProps.children,u),l.child;case 10:return m=l.pendingProps,Fs(l,l.type,m.value),hr(a,l,m.children,u),l.child;case 9:return y=l.type._context,m=l.pendingProps.children,Gl(l),y=fr(y),m=m(y),l.flags|=1,hr(a,l,m,u),l.child;
vendor: 4,424 bytes, line 8
8case 14:return GE(a,l,l.type,l.pendingProps,u);case 15:return VE(a,l,l.type,l.pendingProps,u);case 19:return tj(a,l,u);case 31:return gL(a,l,u);case 22:return KE(a,l,u,l.pendingProps);case 24:return Gl(l),m=fr(Fn),a===null?(y=Sy(),y===null&&(y=Jt,b=_y(),y.pooledCache=b,b.refCount++,b!==null&&(y.pooledCacheLanes|=u),y=b),l.memoizedState={parent:m,cache:y},jy(l),Fs(l,Fn,y)):((a.lanes&u)!==0&&(Ny(a,l),Gu(l,null,null,u),Hu()),y=a.memoizedState,b=l.memoizedState,y.parent!==m?(y={parent:m,cache:m},l.memoizedState=y,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=y),Fs(l,Fn,m)):(m=b.cache,Fs(l,Fn,m),m!==y.cache&&by(l,[Fn],u,!0))),hr(a,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function os(a){a.flags|=4}function lv(a,l,u,m,y){if((l=(a.mode&32)!==0)&&(l=!1),l){if(a.flags|=16777216,(y&335544128)===y)if(a.stateNode.complete)a.flags|=8192;else if(Aj())a.flags|=8192;else throw Yl=Ph,Ey}else a.flags&=-16777217}function rj(a,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!v2(l))if(Aj())a.flags|=8192;else throw Yl=Ph,Ey}function Qh(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?Lr():536870912,a.lanes|=l,uc|=l)}function Ju(a,l){if(!kt)switch(a.tailMode){case"hidden":l=a.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function pn(a){var l=a.alternate!==null&&a.alternate.child===a.child,u=0,m=0;if(l)for(var y=a.child;y!==null;)u|=y.lanes|y.childLanes,m|=y.subtreeFlags&65011712,m|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)u|=y.lanes|y.childLanes,m|=y.subtreeFlags,m|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=m,a.childLanes=u,l}function vL(a,l,u){var m=l.pendingProps;switch(my(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pn(l),null;case 1:return pn(l),null;case 3:return u=l.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),is(Fn),Te(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(Jo(l)?os(l):a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,yy())),pn(l),null;case 26:var y=l.type,b=l.memoizedState;return a===null?(os(l),b!==null?(pn(l),rj(l,b)):(pn(l),lv(l,y,null,m,u))):b?b!==a.memoizedState?(os(l),pn(l),rj(l,b)):(pn(l),l.flags&=-16777217):(a=a.memoizedProps,a!==m&&os(l),pn(l),lv(l,y,a,m,u)),null;case 27:if(We(l),u=ye.current,y=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==m&&os(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return pn(l),null}a=ce.current,Jo(l)?MS(l):(a=u2(y,m,u),l.stateNode=a,os(l))}return pn(l),null;case 5:if(We(l),y=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==m&&os(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return pn(l),null}if(b=ce.current,Jo(l))MS(l);else{var j=hp(ye.current);switch(b){case 1:b=j.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:b=j.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":b=j.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":b=j.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":b=j.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof m.is=="string"?j.createElement("select",{is:m.is}):j.createElement("select"),m.multiple?b.multiple=!0:m.size&&(b.size=m.size);break;default:b=typeof m.is=="string"?j.createElement(y,{is:m.is}):j.createElement(y)}}b[at]=l,b[ot]=m;e:for(j=l.child;j!==null;){if(j.tag===5||j.tag===6)b.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===l)break e;for(;j.sibling===null;){if(j.return===null||j.return===l)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}l.stateNode=b;e:switch(pr(b,y,m),y){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&os(l)}}return pn(l),lv(l,l.type,a===null?null:a.memoizedProps,l.pendingProps,u),null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==m&&os(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));
vendor: 22,130 bytes, line 8
8if(a=ye.current,Jo(l)){if(a=l.stateNode,u=l.memoizedProps,m=null,y=dr,y!==null)switch(y.tag){case 27:case 5:m=y.memoizedProps}a[at]=l,a=!!(a.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||Zj(a.nodeValue,u)),a||$s(l,!0)}else a=hp(a).createTextNode(m),a[at]=l,l.stateNode=a}return pn(l),null;case 31:if(u=l.memoizedState,a===null||a.memoizedState!==null){if(m=Jo(l),u!==null){if(a===null){if(!m)throw Error(r(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[at]=l}else ql(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;pn(l),a=!1}else u=yy(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return l.flags&256?(yi(l),l):(yi(l),null);if((l.flags&128)!==0)throw Error(r(558))}return pn(l),null;case 13:if(m=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=Jo(l),m!==null&&m.dehydrated!==null){if(a===null){if(!y)throw Error(r(318));if(y=l.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[at]=l}else ql(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;pn(l),y=!1}else y=yy(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return l.flags&256?(yi(l),l):(yi(l),null)}return yi(l),(l.flags&128)!==0?(l.lanes=u,l):(u=m!==null,a=a!==null&&a.memoizedState!==null,u&&(m=l.child,y=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(y=m.alternate.memoizedState.cachePool.pool),b=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(b=m.memoizedState.cachePool.pool),b!==y&&(m.flags|=2048)),u!==a&&u&&(l.child.flags|=8192),Qh(l,l.updateQueue),pn(l),null);case 4:return Te(),a===null&&Av(l.stateNode.containerInfo),pn(l),null;case 10:return is(l.type),pn(l),null;case 19:if(Q(Pn),m=l.memoizedState,m===null)return pn(l),null;if(y=(l.flags&128)!==0,b=m.rendering,b===null)if(y)Ju(m,!1);else{if(Rn!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(b=Uh(a),b!==null){for(l.flags|=128,Ju(m,!1),a=b.updateQueue,l.updateQueue=a,Qh(l,a),l.subtreeFlags=0,a=u,u=l.child;u!==null;)RS(u,a),u=u.sibling;return P(Pn,Pn.current&1|2),kt&&ns(l,m.treeForkCount),l.child}a=a.sibling}m.tail!==null&&It()>rp&&(l.flags|=128,y=!0,Ju(m,!1),l.lanes=4194304)}else{if(!y)if(a=Uh(b),a!==null){if(l.flags|=128,y=!0,a=a.updateQueue,l.updateQueue=a,Qh(l,a),Ju(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!kt)return pn(l),null}else 2*It()-m.renderingStartTime>rp&&u!==536870912&&(l.flags|=128,y=!0,Ju(m,!1),l.lanes=4194304);m.isBackwards?(b.sibling=l.child,l.child=b):(a=m.last,a!==null?a.sibling=b:l.child=b,m.last=b)}return m.tail!==null?(a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=It(),a.sibling=null,u=Pn.current,P(Pn,y?u&1|2:u&1),kt&&ns(l,m.treeForkCount),a):(pn(l),null);case 22:case 23:return yi(l),Oy(),m=l.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(u&536870912)!==0&&(l.flags&128)===0&&(pn(l),l.subtreeFlags&6&&(l.flags|=8192)):pn(l),u=l.updateQueue,u!==null&&Qh(l,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==u&&(l.flags|=2048),a!==null&&Q(Vl),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),is(Fn),pn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function xL(a,l){switch(my(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return is(Fn),Te(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return We(l),null;case 31:if(l.memoizedState!==null){if(yi(l),l.alternate===null)throw Error(r(340));ql()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 13:if(yi(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));ql()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return Q(Pn),null;case 4:return Te(),null;case 10:return is(l.type),null;case 22:case 23:return yi(l),Oy(),a!==null&&Q(Vl),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return is(Fn),null;case 25:return null;default:return null}}function ij(a,l){switch(my(l),l.tag){case 3:is(Fn),Te();break;case 26:case 27:case 5:We(l);break;case 4:Te();break;case 31:l.memoizedState!==null&&yi(l);break;case 13:yi(l);break;case 19:Q(Pn);break;case 10:is(l.type);break;case 22:case 23:yi(l),Oy(),a!==null&&Q(Vl);break;case 24:is(Fn)}}function Qu(a,l){try{var u=l.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var y=m.next;u=y;do{if((u.tag&a)===a){m=void 0;var b=u.create,j=u.inst;m=b(),j.destroy=m}u=u.next}while(u!==y)}}catch(C){$t(l,l.return,C)}}function Ys(a,l,u){try{var m=l.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var b=y.next;m=b;do{if((m.tag&a)===a){var j=m.inst,C=j.destroy;if(C!==void 0){j.destroy=void 0,y=l;var F=u,ne=C;try{ne()}catch(de){$t(y,F,de)}}}m=m.next}while(m!==b)}}catch(de){$t(l,l.return,de)}}function aj(a){var l=a.updateQueue;if(l!==null){var u=a.stateNode;try{WS(l,u)}catch(m){$t(a,a.return,m)}}}function sj(a,l,u){u.props=Jl(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(m){$t(a,l,m)}}function Zu(a,l){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var m=a.stateNode;break;case 30:m=a.stateNode;break;default:m=a.stateNode}typeof u=="function"?a.refCleanup=u(m):u.current=m}}catch(y){$t(a,l,y)}}function Aa(a,l){var u=a.ref,m=a.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(y){$t(a,l,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){$t(a,l,y)}else u.current=null}function lj(a){var l=a.type,u=a.memoizedProps,m=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(y){$t(a,a.return,y)}}function ov(a,l,u){try{var m=a.stateNode;$L(m,a.type,u,l),m[ot]=l}catch(y){$t(a,a.return,y)}}function oj(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&tl(a.type)||a.tag===4}function cv(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||oj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&tl(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function uv(a,l,u){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(a),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=Za));else if(m!==4&&(m===27&&tl(a.type)&&(u=a.stateNode,l=null),a=a.child,a!==null))for(uv(a,l,u),a=a.sibling;a!==null;)uv(a,l,u),a=a.sibling}function Zh(a,l,u){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?u.insertBefore(a,l):u.appendChild(a);else if(m!==4&&(m===27&&tl(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(Zh(a,l,u),a=a.sibling;a!==null;)Zh(a,l,u),a=a.sibling}function cj(a){var l=a.stateNode,u=a.memoizedProps;try{for(var m=a.type,y=l.attributes;y.length;)l.removeAttributeNode(y[0]);pr(l,m,u),l[at]=a,l[ot]=u}catch(b){$t(a,a.return,b)}}var cs=!1,Gn=!1,dv=!1,uj=typeof WeakSet=="function"?WeakSet:Set,lr=null;function bL(a,l){if(a=a.containerInfo,Cv=bp,a=wS(a),iy(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var y=m.anchorOffset,b=m.focusNode;m=m.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var j=0,C=-1,F=-1,ne=0,de=0,me=a,ie=null;t:for(;;){for(var le;me!==u||y!==0&&me.nodeType!==3||(C=j+y),me!==b||m!==0&&me.nodeType!==3||(F=j+m),me.nodeType===3&&(j+=me.nodeValue.length),(le=me.firstChild)!==null;)ie=me,me=le;for(;;){if(me===a)break t;if(ie===u&&++ne===y&&(C=j),ie===b&&++de===m&&(F=j),(le=me.nextSibling)!==null)break;me=ie,ie=me.parentNode}me=le}u=C===-1||F===-1?null:{start:C,end:F}}else u=null}u=u||{start:0,end:0}}else u=null;for(Dv={focusedElem:a,selectionRange:u},bp=!1,lr=l;lr!==null;)if(l=lr,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,lr=a;else for(;lr!==null;){switch(l=lr,b=l.alternate,a=l.flags,l.tag){case 0:if((a&4)!==0&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)y=a[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=l,y=b.memoizedProps,b=b.memoizedState,m=u.stateNode;try{var Oe=Jl(u.type,y);a=m.getSnapshotBeforeUpdate(Oe,b),m.__reactInternalSnapshotBeforeUpdate=a}catch(Je){$t(u,u.return,Je)}}break;case 3:if((a&1024)!==0){if(a=l.stateNode.containerInfo,u=a.nodeType,u===9)Mv(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Mv(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=l.sibling,a!==null){a.return=l.return,lr=a;break}lr=l.return}}function dj(a,l,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:ds(a,u),m&4&&Qu(5,u);break;case 1:if(ds(a,u),m&4)if(a=u.stateNode,l===null)try{a.componentDidMount()}catch(j){$t(u,u.return,j)}else{var y=Jl(u.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(y,l,a.__reactInternalSnapshotBeforeUpdate)}catch(j){$t(u,u.return,j)}}m&64&&aj(u),m&512&&Zu(u,u.return);break;case 3:if(ds(a,u),m&64&&(a=u.updateQueue,a!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{WS(a,l)}catch(j){$t(u,u.return,j)}}break;case 27:l===null&&m&4&&cj(u);case 26:case 5:ds(a,u),l===null&&m&4&&lj(u),m&512&&Zu(u,u.return);break;case 12:ds(a,u);break;case 31:ds(a,u),m&4&&pj(a,u);break;case 13:ds(a,u),m&4&&mj(a,u),m&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=AL.bind(null,u),WL(a,u))));break;case 22:if(m=u.memoizedState!==null||cs,!m){l=l!==null&&l.memoizedState!==null||Gn,y=cs;var b=Gn;cs=m,(Gn=l)&&!b?fs(a,u,(u.subtreeFlags&8772)!==0):ds(a,u),cs=y,Gn=b}break;case 30:break;default:ds(a,u)}}function fj(a){var l=a.alternate;l!==null&&(a.alternate=null,fj(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&bn(l)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var yn=null,Yr=!1;function us(a,l,u){for(u=u.child;u!==null;)hj(a,l,u),u=u.sibling}function hj(a,l,u){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(An,u)}catch{}switch(u.tag){case 26:Gn||Aa(u,l),us(a,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Gn||Aa(u,l);var m=yn,y=Yr;tl(u.type)&&(yn=u.stateNode,Yr=!1),us(a,l,u),od(u.stateNode),yn=m,Yr=y;break;case 5:Gn||Aa(u,l);case 6:if(m=yn,y=Yr,yn=null,us(a,l,u),yn=m,Yr=y,yn!==null)if(Yr)try{(yn.nodeType===9?yn.body:yn.nodeName==="HTML"?yn.ownerDocument.body:yn).removeChild(u.stateNode)}catch(b){$t(u,l,b)}else try{yn.removeChild(u.stateNode)}catch(b){$t(u,l,b)}break;case 18:yn!==null&&(Yr?(a=yn,a2(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),vc(a)):a2(yn,u.stateNode));break;case 4:m=yn,y=Yr,yn=u.stateNode.containerInfo,Yr=!0,us(a,l,u),yn=m,Yr=y;break;case 0:case 11:case 14:case 15:Ys(2,u,l),Gn||Ys(4,u,l),us(a,l,u);break;case 1:Gn||(Aa(u,l),m=u.stateNode,typeof m.componentWillUnmount=="function"&&sj(u,l,m)),us(a,l,u);break;case 21:us(a,l,u);break;case 22:Gn=(m=Gn)||u.memoizedState!==null,us(a,l,u),Gn=m;break;default:us(a,l,u)}}function pj(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{vc(a)}catch(u){$t(l,l.return,u)}}}function mj(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{vc(a)}catch(u){$t(l,l.return,u)}}function _L(a){switch(a.tag){case 31:case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new uj),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new uj),l;default:throw Error(r(435,a.tag))}}function ep(a,l){var u=_L(a);l.forEach(function(m){if(!u.has(m)){u.add(m);var y=OL.bind(null,a,m);m.then(y,y)}})}function Wr(a,l){var u=l.deletions;if(u!==null)for(var m=0;m<u.length;m++){var y=u[m],b=a,j=l,C=j;e:for(;C!==null;){switch(C.tag){case 27:if(tl(C.type)){yn=C.stateNode,Yr=!1;break e}break;case 5:yn=C.stateNode,Yr=!1;break e;case 3:case 4:yn=C.stateNode.containerInfo,Yr=!0;break e}C=C.return}if(yn===null)throw Error(r(160));hj(b,j,y),yn=null,Yr=!1,b=y.alternate,b!==null&&(b.return=null),y.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)gj(l,a),l=l.sibling}var ma=null;function gj(a,l){var u=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Wr(l,a),Xr(a),m&4&&(Ys(3,a,a.return),Qu(3,a),Ys(5,a,a.return));break;case 1:Wr(l,a),Xr(a),m&512&&(Gn||u===null||Aa(u,u.return)),m&64&&cs&&(a=a.updateQueue,a!==null&&(m=a.callbacks,m!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var y=ma;if(Wr(l,a),Xr(a),m&512&&(Gn||u===null||Aa(u,u.return)),m&4){var b=u!==null?u.memoizedState:null;if(m=a.memoizedState,u===null)if(m===null)if(a.stateNode===null){e:{m=a.type,u=a.memoizedProps,y=y.ownerDocument||y;t:switch(m){case"title":b=y.getElementsByTagName("title")[0],(!b||b[qt]||b[at]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=y.createElement(m),y.head.insertBefore(b,y.querySelector("head > title"))),pr(b,m,u),b[at]=a,gt(b),m=b;break e;case"link":var j=g2("link","href",y).get(m+(u.href||""));if(j){for(var C=0;C<j.length;C++)if(b=j[C],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){j.splice(C,1);break t}}b=y.createElement(m),pr(b,m,u),y.head.appendChild(b);break;case"meta":if(j=g2("meta","content",y).get(m+(u.content||""))){for(C=0;C<j.length;C++)if(b=j[C],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){j.splice(C,1);break t}}b=y.createElement(m),pr(b,m,u),y.head.appendChild(b);break;default:throw Error(r(468,m))}b[at]=a,gt(b),m=b}a.stateNode=m}else y2(y,a.type,a.stateNode);else a.stateNode=m2(y,m,a.memoizedProps);else b!==m?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,m===null?y2(y,a.type,a.stateNode):m2(y,m,a.memoizedProps)):m===null&&a.stateNode!==null&&ov(a,a.memoizedProps,u.memoizedProps)}break;case 27:Wr(l,a),Xr(a),m&512&&(Gn||u===null||Aa(u,u.return)),u!==null&&m&4&&ov(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Wr(l,a),Xr(a),m&512&&(Gn||u===null||Aa(u,u.return)),a.flags&32){y=a.stateNode;try{$o(y,"")}catch(Oe){$t(a,a.return,Oe)}}m&4&&a.stateNode!=null&&(y=a.memoizedProps,ov(a,y,u!==null?u.memoizedProps:y)),m&1024&&(dv=!0);break;case 6:if(Wr(l,a),Xr(a),m&4){if(a.stateNode===null)throw Error(r(162));m=a.memoizedProps,u=a.stateNode;try{u.nodeValue=m}catch(Oe){$t(a,a.return,Oe)}}break;case 3:if(gp=null,y=ma,ma=pp(l.containerInfo),Wr(l,a),ma=y,Xr(a),m&4&&u!==null&&u.memoizedState.isDehydrated)try{vc(l.containerInfo)}catch(Oe){$t(a,a.return,Oe)}dv&&(dv=!1,yj(a));break;case 4:m=ma,ma=pp(a.stateNode.containerInfo),Wr(l,a),Xr(a),ma=m;break;case 12:Wr(l,a),Xr(a);break;case 31:Wr(l,a),Xr(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,ep(a,m)));break;case 13:Wr(l,a),Xr(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(np=It()),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,ep(a,m)));break;case 22:y=a.memoizedState!==null;var F=u!==null&&u.memoizedState!==null,ne=cs,de=Gn;if(cs=ne||y,Gn=de||F,Wr(l,a),Gn=de,cs=ne,Xr(a),m&8192)e:for(l=a.stateNode,l._visibility=y?l._visibility&-2:l._visibility|1,y&&(u===null||F||cs||Gn||Ql(a)),u=null,l=a;;){if(l.tag===5||l.tag===26){if(u===null){F=u=l;try{if(b=F.stateNode,y)j=b.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{C=F.stateNode;var me=F.memoizedProps.style,ie=me!=null&&me.hasOwnProperty("display")?me.display:null;C.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Oe){$t(F,F.return,Oe)}}}else if(l.tag===6){if(u===null){F=l;try{F.stateNode.nodeValue=y?"":F.memoizedProps}catch(Oe){$t(F,F.return,Oe)}}}else if(l.tag===18){if(u===null){F=l;try{var le=F.stateNode;y?s2(le,!0):s2(F.stateNode,!1)}catch(Oe){$t(F,F.return,Oe)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=a.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,ep(a,u))));break;case 19:Wr(l,a),Xr(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,ep(a,m)));break;case 30:break;case 21:break;default:Wr(l,a),Xr(a)}}function Xr(a){var l=a.flags;if(l&2){try{for(var u,m=a.return;m!==null;){if(oj(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,b=cv(a);Zh(a,b,y);break;case 5:var j=u.stateNode;u.flags&32&&($o(j,""),u.flags&=-33);var C=cv(a);Zh(a,C,j);break;case 3:case 4:var F=u.stateNode.containerInfo,ne=cv(a);uv(a,ne,F);break;default:throw Error(r(161))}}catch(de){$t(a,a.return,de)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function yj(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;yj(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function ds(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)dj(a,l.alternate,l),l=l.sibling}function Ql(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:Ys(4,l,l.return),Ql(l);break;case 1:Aa(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&sj(l,l.return,u),Ql(l);break;case 27:od(l.stateNode);case 26:case 5:Aa(l,l.return),Ql(l);break;case 22:l.memoizedState===null&&Ql(l);break;case 30:Ql(l);break;default:Ql(l)}a=a.sibling}}function fs(a,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,y=a,b=l,j=b.flags;switch(b.tag){case 0:case 11:case 15:fs(y,b,u),Qu(4,b);break;case 1:if(fs(y,b,u),m=b,y=m.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(ne){$t(m,m.return,ne)}if(m=b,y=m.updateQueue,y!==null){var C=m.stateNode;try{var F=y.shared.hiddenCallbacks;if(F!==null)for(y.shared.hiddenCallbacks=null,y=0;y<F.length;y++)YS(F[y],C)}catch(ne){$t(m,m.return,ne)}}u&&j&64&&aj(b),Zu(b,b.return);break;case 27:cj(b);case 26:case 5:fs(y,b,u),u&&m===null&&j&4&&lj(b),Zu(b,b.return);break;case 12:fs(y,b,u);break;case 31:fs(y,b,u),u&&j&4&&pj(y,b);break;case 13:fs(y,b,u),u&&j&4&&mj(y,b);break;case 22:b.memoizedState===null&&fs(y,b,u),Zu(b,b.return);break;case 30:break;default:fs(y,b,u)}l=l.sibling}}function fv(a,l){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Uu(u))}function hv(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&Uu(a))}function ga(a,l,u,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)vj(a,l,u,m),l=l.sibling}function vj(a,l,u,m){var y=l.flags;switch(l.tag){case 0:case 11:case 15:ga(a,l,u,m),y&2048&&Qu(9,l);break;case 1:ga(a,l,u,m);break;case 3:ga(a,l,u,m),y&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&Uu(a)));break;case 12:if(y&2048){ga(a,l,u,m),a=l.stateNode;try{var b=l.memoizedProps,j=b.id,C=b.onPostCommit;typeof C=="function"&&C(j,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(F){$t(l,l.return,F)}}else ga(a,l,u,m);break;case 31:ga(a,l,u,m);break;case 13:ga(a,l,u,m);break;case 23:break;case 22:b=l.stateNode,j=l.alternate,l.memoizedState!==null?b._visibility&2?ga(a,l,u,m):ed(a,l):b._visibility&2?ga(a,l,u,m):(b._visibility|=2,lc(a,l,u,m,(l.subtreeFlags&10256)!==0||!1)),y&2048&&fv(j,l);break;case 24:ga(a,l,u,m),y&2048&&hv(l.alternate,l);break;default:ga(a,l,u,m)}}function lc(a,l,u,m,y){for(y=y&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var b=a,j=l,C=u,F=m,ne=j.flags;switch(j.tag){case 0:case 11:case 15:lc(b,j,C,F,y),Qu(8,j);break;case 23:break;case 22:var de=j.stateNode;j.memoizedState!==null?de._visibility&2?lc(b,j,C,F,y):ed(b,j):(de._visibility|=2,lc(b,j,C,F,y)),y&&ne&2048&&fv(j.alternate,j);break;case 24:lc(b,j,C,F,y),y&&ne&2048&&hv(j.alternate,j);break;default:lc(b,j,C,F,y)}l=l.sibling}}function ed(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=a,m=l,y=m.flags;switch(m.tag){case 22:ed(u,m),y&2048&&fv(m.alternate,m);break;case 24:ed(u,m),y&2048&&hv(m.alternate,m);break;default:ed(u,m)}l=l.sibling}}var td=8192;function oc(a,l,u){if(a.subtreeFlags&td)for(a=a.child;a!==null;)xj(a,l,u),a=a.sibling}function xj(a,l,u){switch(a.tag){case 26:oc(a,l,u),a.flags&td&&a.memoizedState!==null&&lP(u,ma,a.memoizedState,a.memoizedProps);break;case 5:oc(a,l,u);break;case 3:case 4:var m=ma;ma=pp(a.stateNode.containerInfo),oc(a,l,u),ma=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=td,td=16777216,oc(a,l,u),td=m):oc(a,l,u));break;default:oc(a,l,u)}}function bj(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}
vendor: 16,317 bytes, line 8
8function nd(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var m=l[u];lr=m,wj(m,a)}bj(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)_j(a),a=a.sibling}function _j(a){switch(a.tag){case 0:case 11:case 15:nd(a),a.flags&2048&&Ys(9,a,a.return);break;case 3:nd(a);break;case 12:nd(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&2&&(a.return===null||a.return.tag!==13)?(l._visibility&=-3,tp(a)):nd(a);break;default:nd(a)}}function tp(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var m=l[u];lr=m,wj(m,a)}bj(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:Ys(8,l,l.return),tp(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,tp(l));break;default:tp(l)}a=a.sibling}}function wj(a,l){for(;lr!==null;){var u=lr;switch(u.tag){case 0:case 11:case 15:Ys(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Uu(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,lr=m;else e:for(u=a;lr!==null;){m=lr;var y=m.sibling,b=m.return;if(fj(m),m===u){lr=null;break e}if(y!==null){y.return=b,lr=y;break e}lr=b}}}var wL={getCacheForType:function(a){var l=fr(Fn),u=l.data.get(a);return u===void 0&&(u=a(),l.data.set(a,u)),u},cacheSignal:function(){return fr(Fn).controller.signal}},SL=typeof WeakMap=="function"?WeakMap:Map,Pt=0,Jt=null,bt=null,Et=0,Bt=0,vi=null,Ws=!1,cc=!1,pv=!1,hs=0,Rn=0,Xs=0,Zl=0,mv=0,xi=0,uc=0,rd=null,Jr=null,gv=!1,np=0,Sj=0,rp=1/0,ip=null,Js=null,er=0,Qs=null,dc=null,ps=0,yv=0,vv=null,Ej=null,id=0,xv=null;function bi(){return(Pt&2)!==0&&Et!==0?Et&-Et:U.T!==null?jv():lt()}function jj(){if(xi===0)if((Et&536870912)===0||kt){var a=$e;$e<<=1,($e&3932160)===0&&($e=262144),xi=a}else xi=536870912;return a=gi.current,a!==null&&(a.flags|=32),xi}function Qr(a,l,u){(a===Jt&&(Bt===2||Bt===9)||a.cancelPendingCommit!==null)&&(fc(a,0),Zs(a,Et,xi,!1)),ze(a,u),((Pt&2)===0||a!==Jt)&&(a===Jt&&((Pt&2)===0&&(Zl|=u),Rn===4&&Zs(a,Et,xi,!1)),Oa(a))}function Nj(a,l,u){if((Pt&6)!==0)throw Error(r(327));var m=!u&&(l&127)===0&&(l&a.expiredLanes)===0||Ln(a,l),y=m?NL(a,l):_v(a,l,!0),b=m;do{if(y===0){cc&&!m&&Zs(a,l,0,!1);break}else{if(u=a.current.alternate,b&&!EL(u)){y=_v(a,l,!1),b=!1;continue}if(y===2){if(b=l,a.errorRecoveryDisabledLanes&b)var j=0;else j=a.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){l=j;e:{var C=a;y=rd;var F=C.current.memoizedState.isDehydrated;if(F&&(fc(C,j).flags|=256),j=_v(C,j,!1),j!==2){if(pv&&!F){C.errorRecoveryDisabledLanes|=b,Zl|=b,y=4;break e}b=Jr,Jr=y,b!==null&&(Jr===null?Jr=b:Jr.push.apply(Jr,b))}y=j}if(b=!1,y!==2)continue}}if(y===1){fc(a,0),Zs(a,l,0,!0);break}e:{switch(m=a,b=y,b){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Zs(m,l,xi,!Ws);break e;case 2:Jr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(y=np+300-It(),10<y)){if(Zs(m,l,xi,!Ws),nn(m,0,!0)!==0)break e;ps=l,m.timeoutHandle=r2(Tj.bind(null,m,u,Jr,ip,gv,l,xi,Zl,uc,Ws,b,"Throttled",-0,0),y);break e}Tj(m,u,Jr,ip,gv,l,xi,Zl,uc,Ws,b,null,-0,0)}}break}while(!0);Oa(a)}function Tj(a,l,u,m,y,b,j,C,F,ne,de,me,ie,le){if(a.timeoutHandle=-1,me=l.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Za},xj(l,b,me);var Oe=(b&62914560)===b?np-It():(b&4194048)===b?Sj-It():0;if(Oe=oP(me,Oe),Oe!==null){ps=b,a.cancelPendingCommit=Oe(Pj.bind(null,a,l,b,u,m,y,j,C,F,de,me,null,ie,le)),Zs(a,b,j,!ne);return}}Pj(a,l,b,u,m,y,j,C,F)}function EL(a){for(var l=a;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var y=u[m],b=y.getSnapshot;y=y.value;try{if(!pi(b(),y))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Zs(a,l,u,m){l&=~mv,l&=~Zl,a.suspendedLanes|=l,a.pingedLanes&=~l,m&&(a.warmLanes|=l),m=a.expirationTimes;for(var y=l;0<y;){var b=31-Y(y),j=1<<b;m[b]=-1,y&=~j}u!==0&&be(a,u,l)}function ap(){return(Pt&6)===0?(ad(0),!1):!0}function bv(){if(bt!==null){if(Bt===0)var a=bt.return;else a=bt,rs=Hl=null,My(a),nc=null,$u=0,a=bt;for(;a!==null;)ij(a.alternate,a),a=a.return;bt=null}}function fc(a,l){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,HL(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),ps=0,bv(),Jt=a,bt=u=ts(a.current,null),Et=l,Bt=0,vi=null,Ws=!1,cc=Ln(a,l),pv=!1,uc=xi=mv=Zl=Xs=Rn=0,Jr=rd=null,gv=!1,(l&8)!==0&&(l|=l&32);var m=a.entangledLanes;if(m!==0)for(a=a.entanglements,m&=l;0<m;){var y=31-Y(m),b=1<<y;l|=a[y],m&=~b}return hs=l,Nh(),u}function kj(a,l){ct=null,U.H=Wu,l===tc||l===Lh?(l=HS(),Bt=3):l===Ey?(l=HS(),Bt=4):Bt=l===Qy?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,vi=l,bt===null&&(Rn=1,Yh(a,Yi(l,a.current)))}function Aj(){var a=gi.current;return a===null?!0:(Et&4194048)===Et?Qi===null:(Et&62914560)===Et||(Et&536870912)!==0?a===Qi:!1}function Oj(){var a=U.H;return U.H=Wu,a===null?Wu:a}function Rj(){var a=U.A;return U.A=wL,a}function sp(){Rn=4,Ws||(Et&4194048)!==Et&&gi.current!==null||(cc=!0),(Xs&134217727)===0&&(Zl&134217727)===0||Jt===null||Zs(Jt,Et,xi,!1)}function _v(a,l,u){var m=Pt;Pt|=2;var y=Oj(),b=Rj();(Jt!==a||Et!==l)&&(ip=null,fc(a,l)),l=!1;var j=Rn;e:do try{if(Bt!==0&&bt!==null){var C=bt,F=vi;switch(Bt){case 8:bv(),j=6;break e;case 3:case 2:case 9:case 6:gi.current===null&&(l=!0);var ne=Bt;if(Bt=0,vi=null,hc(a,C,F,ne),u&&cc){j=0;break e}break;default:ne=Bt,Bt=0,vi=null,hc(a,C,F,ne)}}jL(),j=Rn;break}catch(de){kj(a,de)}while(!0);return l&&a.shellSuspendCounter++,rs=Hl=null,Pt=m,U.H=y,U.A=b,bt===null&&(Jt=null,Et=0,Nh()),j}function jL(){for(;bt!==null;)Cj(bt)}function NL(a,l){var u=Pt;Pt|=2;var m=Oj(),y=Rj();Jt!==a||Et!==l?(ip=null,rp=It()+500,fc(a,l)):cc=Ln(a,l);e:do try{if(Bt!==0&&bt!==null){l=bt;var b=vi;t:switch(Bt){case 1:Bt=0,vi=null,hc(a,l,b,1);break;case 2:case 9:if(FS(b)){Bt=0,vi=null,Dj(l);break}l=function(){Bt!==2&&Bt!==9||Jt!==a||(Bt=7),Oa(a)},b.then(l,l);break e;case 3:Bt=7;break e;case 4:Bt=5;break e;case 7:FS(b)?(Bt=0,vi=null,Dj(l)):(Bt=0,vi=null,hc(a,l,b,7));break;case 5:var j=null;switch(bt.tag){case 26:j=bt.memoizedState;case 5:case 27:var C=bt;if(j?v2(j):C.stateNode.complete){Bt=0,vi=null;var F=C.sibling;if(F!==null)bt=F;else{var ne=C.return;ne!==null?(bt=ne,lp(ne)):bt=null}break t}}Bt=0,vi=null,hc(a,l,b,5);break;case 6:Bt=0,vi=null,hc(a,l,b,6);break;case 8:bv(),Rn=6;break e;default:throw Error(r(462))}}TL();break}catch(de){kj(a,de)}while(!0);return rs=Hl=null,U.H=m,U.A=y,Pt=u,bt!==null?0:(Jt=null,Et=0,Nh(),Rn)}function TL(){for(;bt!==null&&!xn();)Cj(bt)}function Cj(a){var l=nj(a.alternate,a,hs);a.memoizedProps=a.pendingProps,l===null?lp(a):bt=l}function Dj(a){var l=a,u=l.alternate;switch(l.tag){case 15:case 0:l=XE(u,l,l.pendingProps,l.type,void 0,Et);break;case 11:l=XE(u,l,l.pendingProps,l.type.render,l.ref,Et);break;case 5:My(l);default:ij(u,l),l=bt=RS(l,hs),l=nj(u,l,hs)}a.memoizedProps=a.pendingProps,l===null?lp(a):bt=l}function hc(a,l,u,m){rs=Hl=null,My(l),nc=null,$u=0;var y=l.return;try{if(mL(a,y,l,u,Et)){Rn=1,Yh(a,Yi(u,a.current)),bt=null;return}}catch(b){if(y!==null)throw bt=y,b;Rn=1,Yh(a,Yi(u,a.current)),bt=null;return}l.flags&32768?(kt||m===1?a=!0:cc||(Et&536870912)!==0?a=!1:(Ws=a=!0,(m===2||m===9||m===3||m===6)&&(m=gi.current,m!==null&&m.tag===13&&(m.flags|=16384))),Lj(l,a)):lp(l)}function lp(a){var l=a;do{if((l.flags&32768)!==0){Lj(l,Ws);return}a=l.return;var u=vL(l.alternate,l,hs);if(u!==null){bt=u;return}if(l=l.sibling,l!==null){bt=l;return}bt=l=a}while(l!==null);Rn===0&&(Rn=5)}function Lj(a,l){do{var u=xL(a.alternate,a);if(u!==null){u.flags&=32767,bt=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(a=a.sibling,a!==null)){bt=a;return}bt=a=u}while(a!==null);Rn=6,bt=null}function Pj(a,l,u,m,y,b,j,C,F){a.cancelPendingCommit=null;do op();while(er!==0);if((Pt&6)!==0)throw Error(r(327));if(l!==null){if(l===a.current)throw Error(r(177));if(b=l.lanes|l.childLanes,b|=cy,St(a,u,b,j,C,F),a===Jt&&(bt=Jt=null,Et=0),dc=l,Qs=a,ps=u,yv=b,vv=y,Ej=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,RL(De,function(){return Bj(),null})):(a.callbackNode=null,a.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=U.T,U.T=null,y=W.p,W.p=2,j=Pt,Pt|=4;try{bL(a,l,u)}finally{Pt=j,W.p=y,U.T=m}}er=1,Mj(),Ij(),zj()}}function Mj(){if(er===1){er=0;var a=Qs,l=dc,u=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||u){u=U.T,U.T=null;var m=W.p;W.p=2;var y=Pt;Pt|=4;try{gj(l,a);var b=Dv,j=wS(a.containerInfo),C=b.focusedElem,F=b.selectionRange;if(j!==C&&C&&C.ownerDocument&&_S(C.ownerDocument.documentElement,C)){if(F!==null&&iy(C)){var ne=F.start,de=F.end;if(de===void 0&&(de=ne),"selectionStart"in C)C.selectionStart=ne,C.selectionEnd=Math.min(de,C.value.length);else{var me=C.ownerDocument||document,ie=me&&me.defaultView||window;if(ie.getSelection){var le=ie.getSelection(),Oe=C.textContent.length,Je=Math.min(F.start,Oe),Vt=F.end===void 0?Je:Math.min(F.end,Oe);!le.extend&&Je>Vt&&(j=Vt,Vt=Je,Je=j);var J=bS(C,Je),V=bS(C,Vt);if(J&&V&&(le.rangeCount!==1||le.anchorNode!==J.node||le.anchorOffset!==J.offset||le.focusNode!==V.node||le.focusOffset!==V.offset)){var te=me.createRange();te.setStart(J.node,J.offset),le.removeAllRanges(),Je>Vt?(le.addRange(te),le.extend(V.node,V.offset)):(te.setEnd(V.node,V.offset),le.addRange(te))}}}}for(me=[],le=C;le=le.parentNode;)le.nodeType===1&&me.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<me.length;C++){var fe=me[C];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}bp=!!Cv,Dv=Cv=null}finally{Pt=y,W.p=m,U.T=u}}a.current=l,er=2}}function Ij(){if(er===2){er=0;var a=Qs,l=dc,u=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||u){u=U.T,U.T=null;var m=W.p;W.p=2;var y=Pt;Pt|=4;try{dj(a,l.alternate,l)}finally{Pt=y,W.p=m,U.T=u}}er=3}}function zj(){if(er===4||er===3){er=0,Qn();var a=Qs,l=dc,u=ps,m=Ej;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?er=5:(er=0,dc=Qs=null,Uj(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(Js=null),rn(u),l=l.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(An,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=U.T,y=W.p,W.p=2,U.T=null;try{for(var b=a.onRecoverableError,j=0;j<m.length;j++){var C=m[j];b(C.value,{componentStack:C.stack})}}finally{U.T=l,W.p=y}}(ps&3)!==0&&op(),Oa(a),y=a.pendingLanes,(u&261930)!==0&&(y&42)!==0?a===xv?id++:(id=0,xv=a):id=0,ad(0)}}function Uj(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,Uu(l)))}function op(){return Mj(),Ij(),zj(),Bj()}function Bj(){if(er!==5)return!1;var a=Qs,l=yv;yv=0;var u=rn(ps),m=U.T,y=W.p;try{W.p=32>u?32:u,U.T=null,u=vv,vv=null;var b=Qs,j=ps;if(er=0,dc=Qs=null,ps=0,(Pt&6)!==0)throw Error(r(331));var C=Pt;if(Pt|=4,_j(b.current),vj(b,b.current,j,u),Pt=C,ad(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(An,b)}catch{}return!0}finally{W.p=y,U.T=m,Uj(a,l)}}function $j(a,l,u){l=Yi(u,l),l=Jy(a.stateNode,l,2),a=Gs(a,l,2),a!==null&&(ze(a,2),Oa(a))}function $t(a,l,u){if(a.tag===3)$j(a,a,u);else for(;l!==null;){if(l.tag===3){$j(l,a,u);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Js===null||!Js.has(m))){a=Yi(u,a),u=FE(2),m=Gs(l,u,2),m!==null&&(qE(u,m,l,a),ze(m,2),Oa(m));break}}l=l.return}}function wv(a,l,u){var m=a.pingCache;if(m===null){m=a.pingCache=new SL;var y=new Set;m.set(l,y)}else y=m.get(l),y===void 0&&(y=new Set,m.set(l,y));y.has(u)||(pv=!0,y.add(u),a=kL.bind(null,a,l,u),l.then(a,a))}function kL(a,l,u){var m=a.pingCache;m!==null&&m.delete(l),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,Jt===a&&(Et&u)===u&&(Rn===4||Rn===3&&(Et&62914560)===Et&&300>It()-np?(Pt&2)===0&&fc(a,0):mv|=u,uc===Et&&(uc=0)),Oa(a)}function Fj(a,l){l===0&&(l=Lr()),a=$l(a,l),a!==null&&(ze(a,l),Oa(a))}function AL(a){var l=a.memoizedState,u=0;l!==null&&(u=l.retryLane),Fj(a,u)}function OL(a,l){var u=0;switch(a.tag){case 31:case 13:var m=a.stateNode,y=a.memoizedState;y!==null&&(u=y.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),Fj(a,u)}function RL(a,l){return Ut(a,l)}var cp=null,pc=null,Sv=!1,up=!1,Ev=!1,el=0;function Oa(a){a!==pc&&a.next===null&&(pc===null?cp=pc=a:pc=pc.next=a),up=!0,Sv||(Sv=!0,DL())}function ad(a,l){if(!Ev&&up){Ev=!0;do for(var u=!1,m=cp;m!==null;){if(a!==0){var y=m.pendingLanes;if(y===0)var b=0;else{var j=m.suspendedLanes,C=m.pingedLanes;b=(1<<31-Y(42|a)+1)-1,b&=y&~(j&~C),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,Vj(m,b))}else b=Et,b=nn(m,m===Jt?b:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(b&3)===0||Ln(m,b)||(u=!0,Vj(m,b));m=m.next}while(u);Ev=!1}}function CL(){qj()}function qj(){up=Sv=!1;var a=0;el!==0&&qL()&&(a=el);for(var l=It(),u=null,m=cp;m!==null;){var y=m.next,b=Hj(m,l);b===0?(m.next=null,u===null?cp=y:u.next=y,y===null&&(pc=u)):(u=m,(a!==0||(b&3)!==0)&&(up=!0)),m=y}er!==0&&er!==5||ad(a),el!==0&&(el=0)}function Hj(a,l){for(var u=a.suspendedLanes,m=a.pingedLanes,y=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var j=31-Y(b),C=1<<j,F=y[j];F===-1?((C&u)===0||(C&m)!==0)&&(y[j]=Dr(C,l)):F<=l&&(a.expiredLanes|=C),b&=~C}if(l=Jt,u=Et,u=nn(a,a===l?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),m=a.callbackNode,u===0||a===l&&(Bt===2||Bt===9)||a.cancelPendingCommit!==null)return m!==null&&m!==null&&ut(m),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||Ln(a,u)){if(l=u&-u,l===a.callbackPriority)return l;switch(m!==null&&ut(m),rn(u)){case 2:case 8:u=ge;break;case 32:u=De;break;case 268435456:u=it;break;default:u=De}return m=Gj.bind(null,a),u=Ut(u,m),a.callbackPriority=l,a.callbackNode=u,l}return m!==null&&m!==null&&ut(m),a.callbackPriority=2,a.callbackNode=null,2}function Gj(a,l){if(er!==0&&er!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(op()&&a.callbackNode!==u)return null;var m=Et;return m=nn(a,a===Jt?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),m===0?null:(Nj(a,m,l),Hj(a,It()),a.callbackNode!=null&&a.callbackNode===u?Gj.bind(null,a):null)}function Vj(a,l){if(op())return null;Nj(a,l,!0)}function DL(){GL(function(){(Pt&6)!==0?Ut(oe,CL):qj()})}function jv(){if(el===0){var a=Zo;a===0&&(a=pt,pt<<=1,(pt&261888)===0&&(pt=256)),el=a}return el}function Kj(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:vh(""+a)}function Yj(a,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,a.id&&u.setAttribute("form",a.id),l.parentNode.insertBefore(u,l),a=new FormData(a),u.parentNode.removeChild(u),a}function LL(a,l,u,m,y){if(l==="submit"&&u&&u.stateNode===y){var b=Kj((y[ot]||null).action),j=m.submitter;j&&(l=(l=j[ot]||null)?Kj(l.formAction):j.getAttribute("formAction"),l!==null&&(b=l,j=null));var C=new wh("action","action",null,m,y);a.push({event:C,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(el!==0){var F=j?Yj(y,j):new FormData(y);Gy(u,{pending:!0,data:F,method:y.method,action:b},null,F)}}else typeof b=="function"&&(C.preventDefault(),F=j?Yj(y,j):new FormData(y),Gy(u,{pending:!0,data:F,method:y.method,action:b},b,F))},currentTarget:y}]})}}for(var Nv=0;Nv<oy.length;Nv++){var Tv=oy[Nv],PL=Tv.toLowerCase(),ML=Tv[0].toUpperCase()+Tv.slice(1);pa(PL,"on"+ML)}pa(jS,"onAnimationEnd"),pa(NS,"onAnimationIteration"),pa(TS,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(Q4,"onTransitionRun"),pa(Z4,"onTransitionStart"),pa(eL,"onTransitionCancel"),pa(kS,"onTransitionEnd"),qi("onMouseEnter",["mouseout","mouseover"]),qi("onMouseLeave",["mouseout","mouseover"]),qi("onPointerEnter",["pointerout","pointerover"]),qi("onPointerLeave",["pointerout","pointerover"]),ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ja("onSelect","focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange".split(" ")),ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sd="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(" "),IL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sd));function Wj(a,l){l=(l&4)!==0;for(var u=0;u<a.length;u++){var m=a[u],y=m.event;m=m.listeners;e:{var b=void 0;if(l)for(var j=m.length-1;0<=j;j--){var C=m[j],F=C.instance,ne=C.currentTarget;if(C=C.listener,F!==b&&y.isPropagationStopped())break e;b=C,y.currentTarget=ne;try{b(y)}catch(de){jh(de)}y.currentTarget=null,b=F}else for(j=0;j<m.length;j++){if(C=m[j],F=C.instance,ne=C.currentTarget,C=C.listener,F!==b&&y.isPropagationStopped())break e;b=C,y.currentTarget=ne;try{b(y)}catch(de){jh(de)}y.currentTarget=null,b=F}}}}function _t(a,l){var u=l[sr];u===void 0&&(u=l[sr]=new Set);var m=a+"__bubble";u.has(m)||(Xj(l,a,2,!1),u.add(m))}function kv(a,l,u){var m=0;l&&(m|=4),Xj(u,a,m,l)}var dp="_reactListening"+Math.random().toString(36).slice(2);function Av(a){if(!a[dp]){a[dp]=!0,hi.forEach(function(u){u!=="selectionchange"&&(IL.has(u)||kv(u,!1,a),kv(u,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[dp]||(l[dp]=!0,kv("selectionchange",!1,l))}}function Xj(a,l,u,m){switch(j2(l)){case 2:var y=dP;break;case 8:y=fP;break;default:y=Hv}u=y.bind(null,l,u,a),y=void 0,!Wg||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(y=!0),m?y!==void 0?a.addEventListener(l,u,{capture:!0,passive:y}):a.addEventListener(l,u,!0):y!==void 0?a.addEventListener(l,u,{passive:y}):a.addEventListener(l,u,!1)}function Ov(a,l,u,m,y){var b=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var j=m.tag;if(j===3||j===4){var C=m.stateNode.containerInfo;if(C===y)break;if(j===4)for(j=m.return;j!==null;){var F=j.tag;if((F===3||F===4)&&j.stateNode.containerInfo===y)return;j=j.return}for(;C!==null;){if(j=an(C),j===null)return;if(F=j.tag,F===5||F===6||F===26||F===27){m=b=j;continue e}C=C.parentNode}}m=m.return}tS(function(){var ne=b,de=Kg(u),me=[];e:{var ie=AS.get(a);if(ie!==void 0){var le=wh,Oe=a;switch(a){case"keypress":if(bh(u)===0)break e;case"keydown":case"keyup":le=O4;break;case"focusin":Oe="focus",le=Zg;break;case"focusout":Oe="blur",le=Zg;break;case"beforeblur":case"afterblur":le=Zg;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=iS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=v4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=D4;break;case jS:case NS:case TS:le=_4;break;case kS:le=P4;break;case"scroll":case"scrollend":le=g4;break;case"wheel":le=I4;break;case"copy":case"cut":case"paste":le=S4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=sS;break;case"toggle":case"beforetoggle":le=U4}var Je=(l&4)!==0,Vt=!Je&&(a==="scroll"||a==="scrollend"),J=Je?ie!==null?ie+"Capture":null:ie;Je=[];for(var V=ne,te;V!==null;){var fe=V;if(te=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||te===null||J===null||(fe=ku(V,J),fe!=null&&Je.push(ld(V,fe,te))),Vt)break;V=V.return}0<Je.length&&(ie=new le(ie,Oe,null,u,de),me.push({event:ie,listeners:Je}))}}if((l&7)===0){e:{if(ie=a==="mouseover"||a==="pointerover",le=a==="mouseout"||a==="pointerout",ie&&u!==Vg&&(Oe=u.relatedTarget||u.fromElement)&&(an(Oe)||Oe[mt]))break e;if((le||ie)&&(ie=de.window===de?de:(ie=de.ownerDocument)?ie.defaultView||ie.parentWindow:window,le?(Oe=u.relatedTarget||u.toElement,le=ne,Oe=Oe?an(Oe):null,Oe!==null&&(Vt=s(Oe),Je=Oe.tag,Oe!==Vt||Je!==5&&Je!==27&&Je!==6)&&(Oe=null)):(le=null,Oe=ne),le!==Oe)){if(Je=iS,fe="onMouseLeave",J="onMouseEnter",V="mouse",(a==="pointerout"||a==="pointerover")&&(Je=sS,fe="onPointerLeave",J="onPointerEnter",V="pointer"),Vt=le==null?ie:Ea(le),te=Oe==null?ie:Ea(Oe),ie=new Je(fe,V+"leave",le,u,de),ie.target=Vt,ie.relatedTarget=te,fe=null,an(de)===ne&&(Je=new Je(J,V+"enter",Oe,u,de),Je.target=te,Je.relatedTarget=Vt,fe=Je),Vt=fe,le&&Oe)t:{for(Je=zL,J=le,V=Oe,te=0,fe=J;fe;fe=Je(fe))te++;fe=0;for(var Fe=V;Fe;Fe=Je(Fe))fe++;for(;0<te-fe;)J=Je(J),te--;for(;0<fe-te;)V=Je(V),fe--;for(;te--;){if(J===V||V!==null&&J===V.alternate){Je=J;break t}J=Je(J),V=Je(V)}Je=null}else Je=null;le!==null&&Jj(me,ie,le,Je,!1),Oe!==null&&Vt!==null&&Jj(me,Vt,Oe,Je,!0)}}
vendor: 5,244 bytes, lines 8-9
8e:{if(ie=ne?Ea(ne):window,le=ie.nodeName&&ie.nodeName.toLowerCase(),le==="select"||le==="input"&&ie.type==="file")var Ct=pS;else if(fS(ie))if(mS)Ct=W4;else{Ct=K4;var Le=V4}else le=ie.nodeName,!le||le.toLowerCase()!=="input"||ie.type!=="checkbox"&&ie.type!=="radio"?ne&&Gg(ne.elementType)&&(Ct=pS):Ct=Y4;if(Ct&&(Ct=Ct(a,ne))){hS(me,Ct,u,de);break e}Le&&Le(a,ie,ne),a==="focusout"&&ne&&ie.type==="number"&&ne.memoizedProps.value!=null&&Hg(ie,"number",ie.value)}switch(Le=ne?Ea(ne):window,a){case"focusin":(fS(Le)||Le.contentEditable==="true")&&(Go=Le,ay=ne,Mu=null);break;case"focusout":Mu=ay=Go=null;break;case"mousedown":sy=!0;break;case"contextmenu":case"mouseup":case"dragend":sy=!1,SS(me,u,de);break;case"selectionchange":if(J4)break;case"keydown":case"keyup":SS(me,u,de)}var dt;if(ty)e:{switch(a){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else Ho?uS(a,u)&&(jt="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(jt="onCompositionStart");jt&&(lS&&u.locale!=="ko"&&(Ho||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&Ho&&(dt=nS()):(zs=de,Xg="value"in zs?zs.value:zs.textContent,Ho=!0)),Le=fp(ne,jt),0<Le.length&&(jt=new aS(jt,a,null,u,de),me.push({event:jt,listeners:Le}),dt?jt.data=dt:(dt=dS(u),dt!==null&&(jt.data=dt)))),(dt=$4?F4(a,u):q4(a,u))&&(jt=fp(ne,"onBeforeInput"),0<jt.length&&(Le=new aS("onBeforeInput","beforeinput",null,u,de),me.push({event:Le,listeners:jt}),Le.data=dt)),LL(me,a,ne,u,de)}Wj(me,l)})}function ld(a,l,u){return{instance:a,listener:l,currentTarget:u}}function fp(a,l){for(var u=l+"Capture",m=[];a!==null;){var y=a,b=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||b===null||(y=ku(a,u),y!=null&&m.unshift(ld(a,y,b)),y=ku(a,l),y!=null&&m.push(ld(a,y,b))),a.tag===3)return m;a=a.return}return[]}function zL(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Jj(a,l,u,m,y){for(var b=l._reactName,j=[];u!==null&&u!==m;){var C=u,F=C.alternate,ne=C.stateNode;if(C=C.tag,F!==null&&F===m)break;C!==5&&C!==26&&C!==27||ne===null||(F=ne,y?(ne=ku(u,b),ne!=null&&j.unshift(ld(u,ne,F))):y||(ne=ku(u,b),ne!=null&&j.push(ld(u,ne,F)))),u=u.return}j.length!==0&&a.push({event:l,listeners:j})}var UL=/\r\n?/g,BL=/\u0000|\uFFFD/g;function Qj(a){return(typeof a=="string"?a:""+a).replace(UL,` 9`).replace(BL,"")}function Zj(a,l){return l=Qj(l),Qj(a)===l}function Gt(a,l,u,m,y,b){switch(u){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||$o(a,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&$o(a,""+m);break;case"className":gh(a,"class",m);break;case"tabIndex":gh(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":gh(a,u,m);break;case"style":Z1(a,m,b);break;case"data":if(l!=="object"){gh(a,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||u!=="href")){a.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(u);break}m=vh(""+m),a.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(u==="formAction"?(l!=="input"&&Gt(a,l,"name",y.name,y,null),Gt(a,l,"formEncType",y.formEncType,y,null),Gt(a,l,"formMethod",y.formMethod,y,null),Gt(a,l,"formTarget",y.formTarget,y,null)):(Gt(a,l,"encType",y.encType,y,null),Gt(a,l,"method",y.method,y,null),Gt(a,l,"target",y.target,y,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(u);break}m=vh(""+m),a.setAttribute(u,m);break;case"onClick":m!=null&&(a.onclick=Za);break;case"onScroll":m!=null&&_t("scroll",a);break;case"onScrollEnd":m!=null&&_t("scrollend",a);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(y.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":a.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){a.removeAttribute("xlink:href");break}u=vh(""+m),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(u,""+m):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":m===!0?a.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(u,m):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?a.setAttribute(u,m):a.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?a.removeAttribute(u):a.setAttribute(u,m);break;case"popover":_t("beforetoggle",a),_t("toggle",a),mh(a,"popover",m);break;case"xlinkActuate":Qa(a,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Qa(a,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Qa(a,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Qa(a,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Qa(a,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Qa(a,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Qa(a,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Qa(a,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Qa(a,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":mh(a,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=p4.get(u)||u,mh(a,u,m))}}function Rv(a,l,u,m,y,b){switch(u){case"style":Z1(a,m,b);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(y.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof m=="string"?$o(a,m):(typeof m=="number"||typeof m=="bigint")&&$o(a,""+m);break;case"onScroll":m!=null&&_t("scroll",a);break;case"onScrollEnd":m!=null&&_t("scrollend",a);break;case"onClick":m!=null&&(a.onclick=Za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Uo.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),l=u.slice(2,y?u.length-7:void 0),b=a[ot]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(l,b,y),typeof m=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(l,m,y);break e}u in a?a[u]=m:m===!0?a.setAttribute(u,""):mh(a,u,m)}}}function pr(a,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",a),_t("load",a);var m=!1,y=!1,b;for(b in u)if(u.hasOwnProperty(b)){var j=u[b];if(j!=null)switch(b){case"src":m=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Gt(a,l,b,j,u,null)}}y&&Gt(a,l,"srcSet",u.srcSet,u,null),m&&Gt(a,l,"src",u.src,u,null);return;case"input":_t("invalid",a);
vendor: 6,601 bytes, line 9
9var C=b=j=y=null,F=null,ne=null;for(m in u)if(u.hasOwnProperty(m)){var de=u[m];if(de!=null)switch(m){case"name":y=de;break;case"type":j=de;break;case"checked":F=de;break;case"defaultChecked":ne=de;break;case"value":b=de;break;case"defaultValue":C=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(r(137,l));break;default:Gt(a,l,m,de,u,null)}}W1(a,b,C,F,ne,j,y,!1);return;case"select":_t("invalid",a),m=j=b=null;for(y in u)if(u.hasOwnProperty(y)&&(C=u[y],C!=null))switch(y){case"value":b=C;break;case"defaultValue":j=C;break;case"multiple":m=C;default:Gt(a,l,y,C,u,null)}l=b,u=j,a.multiple=!!m,l!=null?Bo(a,!!m,l,!1):u!=null&&Bo(a,!!m,u,!0);return;case"textarea":_t("invalid",a),b=y=m=null;for(j in u)if(u.hasOwnProperty(j)&&(C=u[j],C!=null))switch(j){case"value":m=C;break;case"defaultValue":y=C;break;case"children":b=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:Gt(a,l,j,C,u,null)}J1(a,m,y,b);return;case"option":for(F in u)u.hasOwnProperty(F)&&(m=u[F],m!=null)&&(F==="selected"?a.selected=m&&typeof m!="function"&&typeof m!="symbol":Gt(a,l,F,m,u,null));return;case"dialog":_t("beforetoggle",a),_t("toggle",a),_t("cancel",a),_t("close",a);break;case"iframe":case"object":_t("load",a);break;case"video":case"audio":for(m=0;m<sd.length;m++)_t(sd[m],a);break;case"image":_t("error",a),_t("load",a);break;case"details":_t("toggle",a);break;case"embed":case"source":case"link":_t("error",a),_t("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in u)if(u.hasOwnProperty(ne)&&(m=u[ne],m!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Gt(a,l,ne,m,u,null)}return;default:if(Gg(l)){for(de in u)u.hasOwnProperty(de)&&(m=u[de],m!==void 0&&Rv(a,l,de,m,u,void 0));return}}for(C in u)u.hasOwnProperty(C)&&(m=u[C],m!=null&&Gt(a,l,C,m,u,null))}function $L(a,l,u,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,b=null,j=null,C=null,F=null,ne=null,de=null;for(le in u){var me=u[le];if(u.hasOwnProperty(le)&&me!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":F=me;default:m.hasOwnProperty(le)||Gt(a,l,le,null,m,me)}}for(var ie in m){var le=m[ie];if(me=u[ie],m.hasOwnProperty(ie)&&(le!=null||me!=null))switch(ie){case"type":b=le;break;case"name":y=le;break;case"checked":ne=le;break;case"defaultChecked":de=le;break;case"value":j=le;break;case"defaultValue":C=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,l));break;default:le!==me&&Gt(a,l,ie,le,m,me)}}qg(a,j,C,F,ne,de,b,y);return;case"select":le=j=C=ie=null;for(b in u)if(F=u[b],u.hasOwnProperty(b)&&F!=null)switch(b){case"value":break;case"multiple":le=F;default:m.hasOwnProperty(b)||Gt(a,l,b,null,m,F)}for(y in m)if(b=m[y],F=u[y],m.hasOwnProperty(y)&&(b!=null||F!=null))switch(y){case"value":ie=b;break;case"defaultValue":C=b;break;case"multiple":j=b;default:b!==F&&Gt(a,l,y,b,m,F)}l=C,u=j,m=le,ie!=null?Bo(a,!!u,ie,!1):!!m!=!!u&&(l!=null?Bo(a,!!u,l,!0):Bo(a,!!u,u?[]:"",!1));return;case"textarea":le=ie=null;for(C in u)if(y=u[C],u.hasOwnProperty(C)&&y!=null&&!m.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Gt(a,l,C,null,m,y)}for(j in m)if(y=m[j],b=u[j],m.hasOwnProperty(j)&&(y!=null||b!=null))switch(j){case"value":ie=y;break;case"defaultValue":le=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==b&&Gt(a,l,j,y,m,b)}X1(a,ie,le);return;case"option":for(var Oe in u)ie=u[Oe],u.hasOwnProperty(Oe)&&ie!=null&&!m.hasOwnProperty(Oe)&&(Oe==="selected"?a.selected=!1:Gt(a,l,Oe,null,m,ie));for(F in m)ie=m[F],le=u[F],m.hasOwnProperty(F)&&ie!==le&&(ie!=null||le!=null)&&(F==="selected"?a.selected=ie&&typeof ie!="function"&&typeof ie!="symbol":Gt(a,l,F,ie,m,le));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Je in u)ie=u[Je],u.hasOwnProperty(Je)&&ie!=null&&!m.hasOwnProperty(Je)&&Gt(a,l,Je,null,m,ie);for(ne in m)if(ie=m[ne],le=u[ne],m.hasOwnProperty(ne)&&ie!==le&&(ie!=null||le!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,l));break;default:Gt(a,l,ne,ie,m,le)}return;default:if(Gg(l)){for(var Vt in u)ie=u[Vt],u.hasOwnProperty(Vt)&&ie!==void 0&&!m.hasOwnProperty(Vt)&&Rv(a,l,Vt,void 0,m,ie);for(de in m)ie=m[de],le=u[de],!m.hasOwnProperty(de)||ie===le||ie===void 0&&le===void 0||Rv(a,l,de,ie,m,le);return}}for(var J in u)ie=u[J],u.hasOwnProperty(J)&&ie!=null&&!m.hasOwnProperty(J)&&Gt(a,l,J,null,m,ie);for(me in m)ie=m[me],le=u[me],!m.hasOwnProperty(me)||ie===le||ie==null&&le==null||Gt(a,l,me,ie,m,le)}function e2(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function FL(){if(typeof performance.getEntriesByType=="function"){for(var a=0,l=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var y=u[m],b=y.transferSize,j=y.initiatorType,C=y.duration;if(b&&C&&e2(j)){for(j=0,C=y.responseEnd,m+=1;m<u.length;m++){var F=u[m],ne=F.startTime;if(ne>C)break;var de=F.transferSize,me=F.initiatorType;de&&e2(me)&&(F=F.responseEnd,j+=de*(F<C?1:(C-ne)/(F-ne)))}if(--m,l+=8*(b+j)/(y.duration/1e3),a++,10<a)break}}if(0<a)return l/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Cv=null,Dv=null;function hp(a){return a.nodeType===9?a:a.ownerDocument}function t2(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function n2(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function Lv(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Pv=null;function qL(){var a=window.event;return a&&a.type==="popstate"?a===Pv?!1:(Pv=a,!0):(Pv=null,!1)}var r2=typeof setTimeout=="function"?setTimeout:void 0,HL=typeof clearTimeout=="function"?clearTimeout:void 0,i2=typeof Promise=="function"?Promise:void 0,GL=typeof queueMicrotask=="function"?queueMicrotask:typeof i2<"u"?function(a){return i2.resolve(null).then(a).catch(VL)}:r2;function VL(a){setTimeout(function(){throw a})}function tl(a){return a==="head"}
vendor: 8,368 bytes, line 9
9function a2(a,l){var u=l,m=0;do{var y=u.nextSibling;if(a.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(m===0){a.removeChild(y),vc(l);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")od(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,od(u);for(var b=u.firstChild;b;){var j=b.nextSibling,C=b.nodeName;b[qt]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=j}}else u==="body"&&od(a.ownerDocument.body);u=y}while(u);vc(l)}function s2(a,l){var u=a;a=0;do{var m=u.nextSibling;if(u.nodeType===1?l?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(l?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=m}while(u)}function Mv(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Mv(u),bn(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function KL(a,l,u,m){for(;a.nodeType===1;){var y=u;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(m){if(!a[qt])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var b=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=Zi(a.nextSibling),a===null)break}return null}function YL(a,l,u){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Zi(a.nextSibling),a===null))return null;return a}function l2(a,l){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=Zi(a.nextSibling),a===null))return null;return a}function Iv(a){return a.data==="$?"||a.data==="$~"}function zv(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function WL(a,l){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=l;else if(a.data!=="$?"||u.readyState!=="loading")l();else{var m=function(){l(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function Zi(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return a}var Uv=null;function o2(a){a=a.nextSibling;for(var l=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(l===0)return Zi(a.nextSibling);l--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||l++}a=a.nextSibling}return null}function c2(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(l===0)return a;l--}else u!=="/$"&&u!=="/&"||l++}a=a.previousSibling}return null}function u2(a,l,u){switch(l=hp(u),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function od(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);bn(a)}var ea=new Map,d2=new Set;function pp(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ms=W.d;W.d={f:XL,r:JL,D:QL,C:ZL,L:eP,m:tP,X:rP,S:nP,M:iP};function XL(){var a=ms.f(),l=ap();return a||l}function JL(a){var l=Vr(a);l!==null&&l.tag===5&&l.type==="form"?kE(l):ms.r(a)}var mc=typeof document>"u"?null:document;function f2(a,l,u){var m=mc;if(m&&typeof l=="string"&&l){var y=Vi(l);y='link[rel="'+a+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),d2.has(y)||(d2.add(y),a={rel:a,crossOrigin:u,href:l},m.querySelector(y)===null&&(l=m.createElement("link"),pr(l,"link",a),gt(l),m.head.appendChild(l)))}}function QL(a){ms.D(a),f2("dns-prefetch",a,null)}function ZL(a,l){ms.C(a,l),f2("preconnect",a,l)}function eP(a,l,u){ms.L(a,l,u);var m=mc;if(m&&a&&l){var y='link[rel="preload"][as="'+Vi(l)+'"]';l==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+Vi(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+Vi(u.imageSizes)+'"]')):y+='[href="'+Vi(a)+'"]';var b=y;switch(l){case"style":b=gc(a);break;case"script":b=yc(a)}ea.has(b)||(a=g({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:a,as:l},u),ea.set(b,a),m.querySelector(y)!==null||l==="style"&&m.querySelector(cd(b))||l==="script"&&m.querySelector(ud(b))||(l=m.createElement("link"),pr(l,"link",a),gt(l),m.head.appendChild(l)))}}function tP(a,l){ms.m(a,l);var u=mc;if(u&&a){var m=l&&typeof l.as=="string"?l.as:"script",y='link[rel="modulepreload"][as="'+Vi(m)+'"][href="'+Vi(a)+'"]',b=y;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=yc(a)}if(!ea.has(b)&&(a=g({rel:"modulepreload",href:a},l),ea.set(b,a),u.querySelector(y)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ud(b)))return}m=u.createElement("link"),pr(m,"link",a),gt(m),u.head.appendChild(m)}}}function nP(a,l,u){ms.S(a,l,u);var m=mc;if(m&&a){var y=_n(m).hoistableStyles,b=gc(a);l=l||"default";var j=y.get(b);if(!j){var C={loading:0,preload:null};if(j=m.querySelector(cd(b)))C.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":l},u),(u=ea.get(b))&&Bv(a,u);var F=j=m.createElement("link");gt(F),pr(F,"link",a),F._p=new Promise(function(ne,de){F.onload=ne,F.onerror=de}),F.addEventListener("load",function(){C.loading|=1}),F.addEventListener("error",function(){C.loading|=2}),C.loading|=4,mp(j,l,m)}j={type:"stylesheet",instance:j,count:1,state:C},y.set(b,j)}}}function rP(a,l){ms.X(a,l);var u=mc;if(u&&a){var m=_n(u).hoistableScripts,y=yc(a),b=m.get(y);b||(b=u.querySelector(ud(y)),b||(a=g({src:a,async:!0},l),(l=ea.get(y))&&$v(a,l),b=u.createElement("script"),gt(b),pr(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},m.set(y,b))}}function iP(a,l){ms.M(a,l);var u=mc;if(u&&a){var m=_n(u).hoistableScripts,y=yc(a),b=m.get(y);b||(b=u.querySelector(ud(y)),b||(a=g({src:a,async:!0,type:"module"},l),(l=ea.get(y))&&$v(a,l),b=u.createElement("script"),gt(b),pr(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},m.set(y,b))}}function h2(a,l,u,m){var y=(y=ye.current)?pp(y):null;if(!y)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=gc(u.href),u=_n(y).hoistableStyles,m=u.get(l),m||(m={type:"style",instance:null,count:0,state:null},u.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=gc(u.href);var b=_n(y).hoistableStyles,j=b.get(a);if(j||(y=y.ownerDocument||y,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,j),(b=y.querySelector(cd(a)))&&!b._p&&(j.instance=b,j.state.loading=5),ea.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ea.set(a,u),b||aP(y,a,u,j.state))),l&&m===null)throw Error(r(528,""));return j}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?
vendor: 4,016 bytes, line 9
9(l=yc(u),u=_n(y).hoistableScripts,m=u.get(l),m||(m={type:"script",instance:null,count:0,state:null},u.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function gc(a){return'href="'+Vi(a)+'"'}function cd(a){return'link[rel="stylesheet"]['+a+"]"}function p2(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function aP(a,l,u,m){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=a.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),pr(l,"link",u),gt(l),a.head.appendChild(l))}function yc(a){return'[src="'+Vi(a)+'"]'}function ud(a){return"script[async]"+a}function m2(a,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var m=a.querySelector('style[data-href~="'+Vi(u.href)+'"]');if(m)return l.instance=m,gt(m),m;var y=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),gt(m),pr(m,"style",y),mp(m,u.precedence,a),l.instance=m;case"stylesheet":y=gc(u.href);var b=a.querySelector(cd(y));if(b)return l.state.loading|=4,l.instance=b,gt(b),b;m=p2(u),(y=ea.get(y))&&Bv(m,y),b=(a.ownerDocument||a).createElement("link"),gt(b);var j=b;return j._p=new Promise(function(C,F){j.onload=C,j.onerror=F}),pr(b,"link",m),l.state.loading|=4,mp(b,u.precedence,a),l.instance=b;case"script":return b=yc(u.src),(y=a.querySelector(ud(b)))?(l.instance=y,gt(y),y):(m=u,(y=ea.get(b))&&(m=g({},u),$v(m,y)),a=a.ownerDocument||a,y=a.createElement("script"),gt(y),pr(y,"link",m),a.head.appendChild(y),l.instance=y);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,mp(m,u.precedence,a));return l.instance}function mp(a,l,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=m.length?m[m.length-1]:null,b=y,j=0;j<m.length;j++){var C=m[j];if(C.dataset.precedence===l)b=C;else if(b!==y)break}b?b.parentNode.insertBefore(a,b.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(a,l.firstChild))}function Bv(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function $v(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var gp=null;function g2(a,l,u){if(gp===null){var m=new Map,y=gp=new Map;y.set(u,m)}else y=gp,m=y.get(u),m||(m=new Map,y.set(u,m));if(m.has(a))return m;for(m.set(a,null),u=u.getElementsByTagName(a),y=0;y<u.length;y++){var b=u[y];if(!(b[qt]||b[at]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var j=b.getAttribute(l)||"";j=a+j;var C=m.get(j);C?C.push(b):m.set(j,[b])}}return m}function y2(a,l,u){a=a.ownerDocument||a,a.head.insertBefore(u,l==="title"?a.querySelector("head > title"):null)}function sP(a,l,u){if(u===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(a=l.disabled,typeof l.precedence=="string"&&a==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function v2(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function lP(a,l,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var y=gc(m.href),b=l.querySelector(cd(y));if(b){l=b._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=yp.bind(a),l.then(a,a)),u.state.loading|=4,u.instance=b,gt(b);return}
vendor: 2,927 bytes, line 9
9b=l.ownerDocument||l,m=p2(m),(y=ea.get(y))&&Bv(m,y),b=b.createElement("link"),gt(b);var j=b;j._p=new Promise(function(C,F){j.onload=C,j.onerror=F}),pr(b,"link",m),u.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,l),(l=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=yp.bind(a),l.addEventListener("load",u),l.addEventListener("error",u))}}var Fv=0;function oP(a,l){return a.stylesheets&&a.count===0&&xp(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var m=setTimeout(function(){if(a.stylesheets&&xp(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+l);0<a.imgBytes&&Fv===0&&(Fv=62500*FL());var y=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&xp(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Fv?50:800)+l);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(y)}}:null}function yp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xp(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var vp=null;function xp(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,vp=new Map,l.forEach(cP,a),vp=null,yp.call(a))}function cP(a,l){if(!(l.state.loading&4)){var u=vp.get(a);if(u)var m=u.get(null);else{u=new Map,vp.set(a,u);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<y.length;b++){var j=y[b];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(u.set(j.dataset.precedence,j),m=j)}m&&u.set(null,m)}y=l.instance,j=y.getAttribute("data-precedence"),b=u.get(j)||m,b===m&&u.set(null,y),u.set(j,y),this.count++,m=yp.bind(this),y.addEventListener("load",m),y.addEventListener("error",m),b?b.parentNode.insertBefore(y,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),l.state.loading|=4}}var dd={$$typeof:k,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function uP(a,l,u,m,y,b,j,C,F){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ie(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.hiddenUpdates=Ie(null),this.identifierPrefix=m,this.onUncaughtError=y,this.onCaughtError=b,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function x2(a,l,u,m,y,b,j,C,F,ne,de,me){return a=new uP(a,l,u,j,F,ne,de,me,C),l=1,b===!0&&(l|=24),b=mi(3,null,null,l),a.current=b,b.stateNode=a,l=_y(),l.refCount++,a.pooledCache=l,l.refCount++,b.memoizedState={element:m,isDehydrated:u,cac
vendor: 9,354 bytes, line 9
9he:l},jy(b),a}function b2(a){return a?(a=Yo,a):Yo}function _2(a,l,u,m,y,b){y=b2(y),m.context===null?m.context=y:m.pendingContext=y,m=Hs(l),m.payload={element:u},b=b===void 0?null:b,b!==null&&(m.callback=b),u=Gs(a,m,l),u!==null&&(Qr(u,a,l),qu(u,a,l))}function w2(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<l?u:l}}function qv(a,l){w2(a,l),(a=a.alternate)&&w2(a,l)}function S2(a){if(a.tag===13||a.tag===31){var l=$l(a,67108864);l!==null&&Qr(l,a,67108864),qv(a,67108864)}}function E2(a){if(a.tag===13||a.tag===31){var l=bi();l=Ye(l);var u=$l(a,l);u!==null&&Qr(u,a,l),qv(a,l)}}var bp=!0;function dP(a,l,u,m){var y=U.T;U.T=null;var b=W.p;try{W.p=2,Hv(a,l,u,m)}finally{W.p=b,U.T=y}}function fP(a,l,u,m){var y=U.T;U.T=null;var b=W.p;try{W.p=8,Hv(a,l,u,m)}finally{W.p=b,U.T=y}}function Hv(a,l,u,m){if(bp){var y=Gv(m);if(y===null)Ov(a,l,m,_p,u),N2(a,m);else if(pP(y,a,l,u,m))m.stopPropagation();else if(N2(a,m),l&4&&-1<hP.indexOf(a)){for(;y!==null;){var b=Vr(y);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var j=Yt(b.pendingLanes);if(j!==0){var C=b;for(C.pendingLanes|=2,C.entangledLanes|=2;j;){var F=1<<31-Y(j);C.entanglements[1]|=F,j&=~F}Oa(b),(Pt&6)===0&&(rp=It()+500,ad(0))}}break;case 31:case 13:C=$l(b,2),C!==null&&Qr(C,b,2),ap(),qv(b,2)}if(b=Gv(m),b===null&&Ov(a,l,m,_p,u),b===y)break;y=b}y!==null&&m.stopPropagation()}else Ov(a,l,m,null,u)}}function Gv(a){return a=Kg(a),Vv(a)}var _p=null;function Vv(a){if(_p=null,a=an(a),a!==null){var l=s(a);if(l===null)a=null;else{var u=l.tag;if(u===13){if(a=o(l),a!==null)return a;a=null}else if(u===31){if(a=c(l),a!==null)return a;a=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return _p=a,null}function j2(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gn()){case oe:return 2;case ge:return 8;case De:case Be:return 32;case it:return 268435456;default:return 32}default:return 32}}var Kv=!1,nl=null,rl=null,il=null,fd=new Map,hd=new Map,al=[],hP="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".split(" ");function N2(a,l){switch(a){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":rl=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":fd.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":hd.delete(l.pointerId)}}function pd(a,l,u,m,y,b){return a===null||a.nativeEvent!==b?(a={blockedOn:l,domEventName:u,eventSystemFlags:m,nativeEvent:b,targetContainers:[y]},l!==null&&(l=Vr(l),l!==null&&S2(l)),a):(a.eventSystemFlags|=m,l=a.targetContainers,y!==null&&l.indexOf(y)===-1&&l.push(y),a)}function pP(a,l,u,m,y){switch(l){case"focusin":return nl=pd(nl,a,l,u,m,y),!0;case"dragenter":return rl=pd(rl,a,l,u,m,y),!0;case"mouseover":return il=pd(il,a,l,u,m,y),!0;case"pointerover":var b=y.pointerId;return fd.set(b,pd(fd.get(b)||null,a,l,u,m,y)),!0;case"gotpointercapture":return b=y.pointerId,hd.set(b,pd(hd.get(b)||null,a,l,u,m,y)),!0}return!1}function T2(a){var l=an(a.target);if(l!==null){var u=s(l);if(u!==null){if(l=u.tag,l===13){if(l=o(u),l!==null){a.blockedOn=l,Wt(a.priority,function(){E2(u)});return}}else if(l===31){if(l=c(u),l!==null){a.blockedOn=l,Wt(a.priority,function(){E2(u)});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function wp(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var u=Gv(a.nativeEvent);if(u===null){u=a.nativeEvent;var m=new u.constructor(u.type,u);Vg=m,u.target.dispatchEvent(m),Vg=null}else return l=Vr(u),l!==null&&S2(l),a.blockedOn=u,!1;l.shift()}return!0}function k2(a,l,u){wp(a)&&u.delete(l)}function mP(){Kv=!1,nl!==null&&wp(nl)&&(nl=null),rl!==null&&wp(rl)&&(rl=null),il!==null&&wp(il)&&(il=null),fd.forEach(k2),hd.forEach(k2)}function Sp(a,l){a.blockedOn===l&&(a.blockedOn=null,Kv||(Kv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,mP)))}var Ep=null;function A2(a){Ep!==a&&(Ep=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ep===a&&(Ep=null);for(var l=0;l<a.length;l+=3){var u=a[l],m=a[l+1],y=a[l+2];if(typeof m!="function"){if(Vv(m||u)===null)continue;break}var b=Vr(u);b!==null&&(a.splice(l,3),l-=3,Gy(b,{pending:!0,data:y,method:u.method,action:m},m,y))}}))}function vc(a){function l(F){return Sp(F,a)}nl!==null&&Sp(nl,a),rl!==null&&Sp(rl,a),il!==null&&Sp(il,a),fd.forEach(l),hd.forEach(l);for(var u=0;u<al.length;u++){var m=al[u];m.blockedOn===a&&(m.blockedOn=null)}for(;0<al.length&&(u=al[0],u.blockedOn===null);)T2(u),u.blockedOn===null&&al.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var y=u[m],b=u[m+1],j=y[ot]||null;if(typeof b=="function")j||A2(u);else if(j){var C=null;if(b&&b.hasAttribute("formAction")){if(y=b,j=b[ot]||null)C=j.formAction;else if(Vv(y)!==null)continue}else C=j.action;typeof C=="function"?u[m+1]=C:(u.splice(m,3),m-=3),A2(u)}}}function O2(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(j){return y=j})},focusReset:"manual",scroll:"manual"})}function l(){y!==null&&(y(),y=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,y=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),y!==null&&(y(),y=null)}}}function Yv(a){this._internalRoot=a}jp.prototype.render=Yv.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var u=l.current,m=bi();_2(u,m,a,l,null,null)},jp.prototype.unmount=Yv.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;_2(a.current,2,null,a,null,null),ap(),l[mt]=null}};function jp(a){this._internalRoot=a}jp.prototype.unstable_scheduleHydration=function(a){if(a){var l=lt();a={blockedOn:null,target:a,priority:l};for(var u=0;u<al.length&&l!==0&&l<al[u].priority;u++);al.splice(u,0,a),u===0&&T2(a)}};var R2=e.version;if(R2!=="19.2.4")throw Error(r(527,R2,"19.2.4"));W.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(l),a=a!==null?p(a):null,a=a===null?null:a.stateNode,a};var gP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Np=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Np.isDisabled&&Np.supportsFiber)try{An=Np.inject(gP),Ot=Np}catch{}}return gd.createRoot=function(a,l){if(!i(a))throw Error(r(299));var u=!1,m="",y=zE,b=UE,j=BE;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(j=l.onRecoverableError)),l=x2(a,1,!1,null,null,u,m,null,y,b,j,O2),a[mt]=l.current,Av(a),new Yv(l)},gd.hydrateRoot=function(a,l,u){if(!i(a))throw Error(r(299));var m=!1,y="",b=zE,j=UE,C=BE,F=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(j=u.onCaughtError),u.onRecoverableError!==void 0&&(C=u.onRecoverableError),u.formState!==void 0&&(F=u.formState)),l=x2(a,1,!0,l,u??null,m,y,F,b,j,C,O2),l.context=b2(null),u=l.current,m=bi(),m=Ye(m),y=Hs(m),y.callback=null,Gs(u,y,m),u=m,l.current.lanes=u,ze(l,u),Oa(l),a[mt]=l.current,Av(a),new jp(l)},gd.version="19.2.4",gd}var $2;
vendor: 8,240 bytes, line 9
9function TP(){if($2)return Jv.exports;$2=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Jv.exports=NP(),Jv.exports}var kP=TP(),se=typeof window<"u"?window:void 0,xr=typeof globalThis<"u"?globalThis:se;typeof self>"u"&&(xr.self=xr),typeof File>"u"&&(xr.File=function(){});var JO=Array.prototype,F2=JO.forEach,q2=JO.indexOf,Li=xr?.navigator,we=xr?.document,vr=xr?.location,Hb=xr?.fetch,Gb=xr!=null&&xr.XMLHttpRequest&&"withCredentials"in new xr.XMLHttpRequest?xr.XMLHttpRequest:void 0,H2=xr?.AbortController,ti=Li?.userAgent,qe=se??{},G2="1.363.2",ia={DEBUG:!1,LIB_VERSION:G2,LIB_NAME:"web",JS_SDK_VERSION:G2};function V2(t,e,n,r,i,s,o){try{var c=t[s](o),f=c.value}catch(h){return void n(h)}c.done?e(f):Promise.resolve(f).then(r,i)}function vs(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var s=t.apply(e,n);function o(f){V2(s,r,i,o,c,"next",f)}function c(f){V2(s,r,i,o,c,"throw",f)}o(void 0)}))}}function _e(){return _e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_e.apply(null,arguments)}function QO(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var AP=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],OP=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],K2=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return OP.concat(e).some((r=>{var i=r.toLowerCase();return n.indexOf(i)!==-1}))};function wt(t,e){return t.indexOf(e)!==-1}var pg=function(t){return t.trim()},Vb=function(t){return t.replace(/^\$/,"")},RP=Array.isArray,ZO=Object.prototype,eR=ZO.hasOwnProperty,mg=ZO.toString,Lt=RP||function(t){return mg.call(t)==="[object Array]"},Ns=t=>typeof t=="function",ir=t=>t===Object(t)&&!Lt(t),$c=t=>{if(ir(t)){for(var e in t)if(eR.call(t,e))return!1;return!0}return!1},je=t=>t===void 0,Jn=t=>mg.call(t)=="[object String]",Kb=t=>Jn(t)&&t.trim().length===0,wa=t=>t===null,Tt=t=>je(t)||wa(t),Ka=t=>mg.call(t)=="[object Number]"&&t==t,Dc=t=>Ka(t)&&t>0,As=t=>mg.call(t)==="[object Boolean]",CP=t=>t instanceof FormData,DP=t=>wt(AP,t);function tR(t){return t===null||typeof t!="object"}function Dm(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function Sw(t){return!je(Event)&&(function(e,n){try{return e instanceof n}catch{return!1}})(t,Event)}var LP=[!0,"true",1,"1","yes"],t0=t=>wt(LP,t),PP=[!1,"false",0,"0","no"];function Ba(t,e,n,r,i){return e>n&&(r.warn("min cannot be greater than max."),e=n),Ka(t)?t>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t<e?(r.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),Ba(i||n,e,n,r))}class MP{constructor(e){this.t={},this.i=e.i,this.o=Ba(e.bucketSize,0,100,e.h),this.m=Ba(e.refillRate,0,this.o,e.h),this.S=Ba(e.refillInterval,0,864e5,e.h)}$(e,n){var r=n-e.lastAccess,i=Math.floor(r/this.S);if(i>0){var s=i*this.m;e.tokens=Math.min(e.tokens+s,this.o),e.lastAccess=e.lastAccess+i*this.S}}consumeRateLimit(e){var n,r=Date.now(),i=String(e),s=this.t[i];return s?this.$(s,r):(s={tokens:this.o,lastAccess:r},this.t[i]=s),s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.i)==null||n.call(this,e)),s.tokens===0)}stop(){this.t={}}}var zi="Mobile",Lm="iOS",Ts="Android",au="Tablet",nR=Ts+" "+au,rR="iPad",iR="Apple",aR=iR+" Watch",jf="Safari",su="BlackBerry",sR="Samsung",lR=sR+"Browser",oR=sR+" Internet",Oo="Chrome",IP=Oo+" OS",cR=Oo+" "+Lm,Ew="Internet Explorer",uR=Ew+" "+zi,jw="Opera",zP=jw+" Mini",Nw="Edge",dR="Microsoft "+Nw,Kc="Firefox",fR=Kc+" "+Lm,Nf="Nintendo",Tf="PlayStation",Yc="Xbox",hR=Ts+" "+zi,pR=zi+" "+jf,Id="Windows",Yb=Id+" Phone",Y2="Nokia",Wb="Ouya",mR="Generic",UP=mR+" "+zi.toLowerCase(),gR=mR+" "+au.toLowerCase(),Xb="Konqueror",Ir="(\\d+(\\.\\d+)?)",n0=new RegExp("Version/"+Ir),BP=new RegExp(Yc,"i"),$P=new RegExp(Tf+" \\w+","i"),FP=new RegExp(Nf+" \\w+","i"),Tw=new RegExp(su+"|PlayBook|BB10","i"),qP={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Tp,W2,r0,HP=(t,e)=>e&&wt(e,iR)||(function(n){return wt(n,jf)&&!wt(n,Oo)&&!wt(n,Ts)})(t),yR=function(t,e){return e=e||"",wt(t," OPR/")&&wt(t,"Mini")?zP:wt(t," OPR/")?jw:Tw.test(t)?su:wt(t,"IE"+zi)||wt(t,"WPDesktop")?uR:wt(t,lR)?oR:wt(t,Nw)||wt(t,"Edg/")?dR:wt(t,"FBIOS")?"Facebook "+zi:wt(t,"UCWEB")||wt(t,"UCBrowser")?"UC Browser":wt(t,"CriOS")?cR:wt(t,"CrMo")||wt(t,Oo)?Oo:wt(t,Ts)&&wt(t,jf)?hR:wt(t,"FxiOS")?fR:wt(t.toLowerCase(),Xb.toLowerCase())?Xb:HP(t,e)?wt(t,zi)?pR:jf:wt(t,Kc)?Kc:wt(t,"MSIE")||wt(t,"Trident/")?Ew:wt(t,"Gecko")?Kc:""},GP={[uR]:[new RegExp("rv:"+Ir)],[dR]:[new RegExp(Nw+"?\\/"+Ir)],[Oo]:[new RegExp("("+Oo+"|CrMo)\\/"+Ir)],[cR]:[new RegExp("CriOS\\/"+Ir)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ir)],[jf]:[n0],[pR]:[n0],[jw]:[new RegExp("(Opera|OPR)\\/"+Ir)],[Kc]:[new RegExp(Kc+"\\/"+Ir)],[fR]:[new RegExp("FxiOS\\/"+Ir)],[Xb]:[new RegExp("Konqueror[:/]?"+Ir,"i")],[su]:[new RegExp(su+" "+Ir),n0],[hR]:[new RegExp("android\\s"+Ir,"i")],[oR]:[new RegExp(lR+"\\/"+Ir)],[Ew]:[new RegExp("(rv:|MSIE )"+Ir)],Mozilla:[new RegExp("rv:"+Ir)]},VP=function(t,e){var n=yR(t,e),r=GP[n];if(je(r))return null;for(var i=0;i<r.length;i++){var s=r[i],o=t.match(s);if(o)return parseFloat(o[o.length-2])}return null},X2=[[new RegExp(Yc+"; "+Yc+" (.*?)[);]","i"),t=>[Yc,t&&t[1]||""]],[new RegExp(Nf,"i"),[Nf,""]],[new RegExp(Tf,"i"),[Tf,""]],[Tw,[su,""]],[new RegExp(Id,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[Yb,""];if(new RegExp(zi).test(e)&&!/IEMobile\b/.test(e))return[Id+" "+zi,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var r=n[1],i=qP[r]||"";return/arm/i.test(e)&&(i="RT"),[Id,i]}return[Id,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>{if(t&&t[3]){var e=[t[3],t[4],t[5]||"0"];return[Lm,e.join(".")]}return[Lm,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=je(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Ts+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ts+")","i"),t=>{if(t&&t[2]){var e=[t[2],t[3],t[4]||"0"];return[Ts,e.join(".")]}return[Ts,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];if(t&&t[1]){var n=[t[1],t[2],t[3]||"0"];e[1]=n.join(".")}return e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[IP,""]],[/Linux|debian/i,["Linux",""]]],J2=function(t){return FP.test(t)?Nf:$P.test(t)?Tf:BP.test(t)?Yc:new RegExp(Wb,"i").test(t)?Wb:new RegExp("("+Yb+"|WPDesktop)","i").test(t)?Yb:/iPad/.test(t)?rR:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?aR:Tw.test(t)?su:/(kobo)\s(ereader|touch)/i.test(t)?"K
9obo":new RegExp(Y2,"i").test(t)?Y2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(zi).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ts:nR:new RegExp("(pda|"+zi+")","i").test(t)?UP:new RegExp(au,"i").test(t)&&!new RegExp(au+" pc","i").test(t)?gR:""},KP=t=>t instanceof Error;function YP(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return r0&&n.length===W2||(W2=n.length,r0=n.reduce(((r,i)=>{Tp||(Tp={});var s=Tp[i];if(s)r[s[0]]=s[1];else for(var o=t(i),c=o.length-1;c>=0;c--){var f=o[c],h=f?.filename,p=e[i];if(h&&p){r[h]=p,Tp[i]=[h,p];break}}return r}),{})),r0}}class WP{constructor(e,n,r){r===void 0&&(r=[]),this.coercers=e,this.stackParser=n,this.modifiers=r}buildFromUnknown(e,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(r,n,0).apply(e),s=this.buildParsingContext(n),o=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(o,r),$exception_level:"error"}}modifyFrames(e){var n=this;return vs((function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&Lt(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return e}))()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var r,i;return e.cause!=null&&(r=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),_e({},e,{cause:r,stack:i})}applyChunkIds(e,n){return e.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(e,n){for(var r of this.coercers)if(r.match(e))return r.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return vs((function*(){var r=e;for(var i of n.modifiers)r=yield i(r);return r}))()}convertToExceptionList(e,n){var r,i,s,o={type:e.type,value:e.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(i=n.handled)===null||i===void 0||i,synthetic:(s=e.synthetic)!==null&&s!==void 0&&s}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var c=[o];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,_e({},n,{handled:!0}))),c}buildParsingContext(e){var n;return{chunkIdMap:YP(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,r){r===void 0&&(r=0);var i=(s,o)=>{if(o<=4){var c=this.buildCoercingContext(e,n,o);return this.applyCoercers(s,c)}};return _e({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:e,apply:s=>i(s,r),next:s=>i(s,r+1)})}}var lu="?";function Jb(t,e,n,r,i){var s={platform:t,filename:e,function:n==="<anonymous>"?lu:n,in_app:!0};return je(r)||(s.lineno=r),je(i)||(s.colno=i),s}var vR=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:lu,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},XP=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,JP=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,QP=/\((\S*)(?::(\d+))(?::(\d+))\)/,ZP=(t,e)=>{var n=XP.exec(t);if(n){var[,r,i,s]=n;return Jb(e,r,lu,+i,+s)}var o=JP.exec(t);if(o){if(o[2]&&o[2].indexOf("eval")===0){var c=QP.exec(o[2]);c&&(o[2]=c[1],o[3]=c[2],o[4]=c[3])}var[f,h]=vR(o[1]||lu,o[2]);return Jb(e,h,f,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},eM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nM=(t,e)=>{var n=eM.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=tM.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],s=n[1]||lu;return[s,i]=vR(s,i),Jb(e,i,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Q2=/\(error: (.*)\)/,Z2=50;function rM(){return(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(i,s){s===void 0&&(s=0);for(var o=[],c=i.split(` 10`),f=s;f<c.length;f++){var h=c[f];if(!(h.length>1024)){var p=Q2.test(h)?h.replace(Q2,"$1"):h;if(!p.match(/\S*Error: /)){for(var g of n){var x=g(p,t);
10if(x){o.push(x);break}}if(o.length>=Z2)break}}}return(function(v){if(!v.length)return[];var w=Array.from(v);return w.reverse(),w.slice(0,Z2).map((_=>{return _e({},_,{filename:_.filename||(S=w,S[S.length-1]||{}).filename,function:_.function||lu});var S}))})(o)}})("web:javascript",ZP,nM)}class iM{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var r=Jn(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return Dm(e,"DOMException")}isDOMError(e){return Dm(e,"DOMError")}}class aM{match(e){return(n=>n instanceof Error)(e)}coerce(e,n){return{type:this.getType(e),value:this.getMessage(e,n),stack:this.getStack(e),cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var r=e.message;return r.error&&typeof r.error.message=="string"?String(r.error.message):String(r)}getStack(e){return e.stacktrace||e.stack||void 0}}class sM{constructor(){}match(e){return Dm(e,"ErrorEvent")&&e.error!=null}coerce(e,n){var r,i=n.apply(e.error);return i||{type:"ErrorEvent",value:e.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var lM=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class oM{match(e){return typeof e=="string"}coerce(e,n){var r,[i,s]=this.getInfos(e);return{type:i??"Error",value:s??e,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(e){var n="Error",r=e,i=e.match(lM);return i&&(n=i[1],r=i[2]),[n,r]}}var cM=["fatal","error","warning","log","info","debug"];function xR(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length||i.length<=e?i:i.slice(0,e)+"..."}return""}class uM{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var r,i=this.getErrorPropertyFromObject(e);return i?n.apply(i):{type:this.getType(e),value:this.getValue(e),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return Sw(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var r=this.getObjectClassName(e);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+xR(e)}isSeverityLevel(e){return Jn(e)&&!Kb(e)&&cM.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];if(KP(r))return r}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class dM{match(e){return Sw(e)}coerce(e,n){var r,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+xR(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class fM{match(e){return tR(e)}coerce(e,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class hM{match(e){return Dm(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!Sw(e))return!1;try{var n=e.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(e,n){var r,i=this.getUnhandledRejectionReason(e);return tR(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var bR=function(t,e){var{debugEnabled:n}=e===void 0?{}:e,r={k:function(i){if(se&&(ia.DEBUG||qe.POSTHOG_DEBUG||n)&&!je(se.console)&&se.console){for(var s=("__rrweb_original__"in se.console[i])?se.console[i].__rrweb_original__:se.console[i],o=arguments.length,c=new Array(o>1?o-1:0),f=1;f<o;f++)c[f-1]=arguments[f];s(t,...c)}},info:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r.k("log",...s)},warn:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r.k("warn",...s)},error:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r.k("error",...s)},critical:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];console.error(t,...s)},uninitializedWarning:i=>{r.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>bR(t+" "+i,s)};return r},Ee=bR("[PostHog.js]"),Tn=Ee.createLogger,pM=Tn("[ExternalScriptsLoader]"),eN=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return pM.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=we?.querySelectorAll("script");
10if(r){for(var i,s=function(){if(r[o].src===e){var f=r[o];return f.__posthog_loading_callback_fired?{v:n()}:(f.addEventListener("load",(h=>{f.__posthog_loading_callback_fired=!0,n(void 0,h)})),f.onerror=h=>n(h),{v:void 0})}},o=0;o<r.length;o++)if(i=s())return i.v}var c=()=>{if(!we)return n("document not found");var f=we.createElement("script");if(f.type="text/javascript",f.crossOrigin="anonymous",f.src=e,f.onload=g=>{f.__posthog_loading_callback_fired=!0,n(void 0,g)},f.onerror=g=>n(g),t.config.prepare_external_dependency_script&&(f=t.config.prepare_external_dependency_script(f)),!f)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")we.head.appendChild(f);else{var h,p=we.querySelectorAll("body > script");p.length>0?(h=p[0].parentNode)==null||h.insertBefore(f,p[0]):we.body.appendChild(f)}};we!=null&&we.body?c():we?.addEventListener("DOMContentLoaded",c)};qe.__PosthogExtensions__=qe.__PosthogExtensions__||{},qe.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{var r="/static/"+e+".js?v="+t.version;if(e==="remote-config"&&(r="/array/"+t.config.token+"/config.js"),e==="toolbar"){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}var s=t.requestRouter.endpointFor("assets",r);eN(t,s,n)},qe.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var r=t.requestRouter.endpointFor("api",e);eN(t,r,n)};var Pm={};function Nl(t,e,n){if(Lt(t)){if(F2&&t.forEach===F2)t.forEach(e,n);else if("length"in t&&t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r)===Pm)return}}}function un(t,e,n){if(!Tt(t)){if(Lt(t))return Nl(t,e,n);if(CP(t)){for(var r of t.entries())if(e.call(n,r[1],r[0])===Pm)return}else for(var i in t)if(eR.call(t,i)&&e.call(n,t[i],i)===Pm)return}}var zn=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Nl(n,(function(i){for(var s in i)i[s]!==void 0&&(t[s]=i[s])})),t},ou=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Nl(n,(function(i){Nl(i,(function(s){t.push(s)}))})),t};function fm(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}var tN=function(t){try{return t()}catch{return}},mM=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}catch(i){Ee.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ee.critical(i)}}},kw=function(t){var e={};return un(t,(function(n,r){(Jn(n)&&n.length>0||Ka(n))&&(e[r]=n)})),e};function gM(t,e){return n=t,r=s=>Jn(s)&&!wa(e)?s.slice(0,e):s,i=new Set,(function s(o,c){return o!==Object(o)?r?r(o,c):o:i.has(o)?void 0:(i.add(o),Lt(o)?(f=[],Nl(o,(h=>{f.push(s(h))}))):(f={},un(o,((h,p)=>{i.has(h)||(f[p]=s(h,p))}))),f);var f})(n);var n,r,i}var yM=["herokuapp.com","vercel.app","netlify.app"];function vM(t){var e=t?.hostname;if(!Jn(e))return!1;var n=e.split(".").slice(-2).join(".");for(var r of yM)if(n===r)return!1;return!0}function _R(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function Wn(t,e,n,r){var{capture:i=!1,passive:s=!0}=r??{};t?.addEventListener(e,n,{capture:i,passive:s})}function wR(t){return t.name==="ph_toolbar_internal"}var SR="$people_distinct_id",zd="__alias",Ud="__timers",nN="$autocapture_disabled_server_side",Qb="$heatmaps_enabled_server_side",rN="$exception_capture_enabled_server_side",Zb="$error_tracking_suppression_rules",iN="$error_tracking_capture_extension_exceptions",aN="$web_vitals_enabled_server_side",ER="$dead_clicks_enabled_server_side",sN="$product_tours_enabled_server_side",lN="$web_vitals_allowed_metrics",kp="$session_recording_remote_config",Mm="$sesid",jR="$session_is_sampled",Fc="$enabled_feature_flags",Bd="$early_access_features",e_="$feature_flag_details",$d="$stored_person_properties",oo="$stored_group_properties",t_="$surveys",ef="$flag_call_reported",n_="$flag_call_reported_session_id",r_="$feature_flag_errors",Im="$feature_flag_evaluated_at",xa="$user_state",i_="$client_session_props",a_="$capture_rate_limit",s_="$initial_campaign_params",l_="$initial_referrer_info",zm="$initial_person_info",Um="$epp",NR="__POSTHOG_TOOLBAR__",yd="$posthog_cookieless",xM=[SR,zd,"__cmpns",Ud,"$session_recording_enabled_server_side",Qb,Mm,Fc,Zb,xa,Bd,e_,oo,$d,t_,ef,n_,r_,Im,i_,a_,s_,l_,Um,zm];Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Ka(t)&&isFinite(t)&&Math.floor(t)===t});var oN="0123456789abcdef";class Bm{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,r,i){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||e<0||n<0||r<0||i<0||e>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/Math.pow(2,8),s[5]=e,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new Bm(s)}toString(){for(var e="",n=0;n<this.bytes.length;n++)e=e+oN.charAt(this.bytes[n]>>>4)+oN.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Bm(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;n<16;n++){var r=this.bytes[n]-e.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class bM{constructor(){this.P=0,this.T=0,this.R=new _M}generate(){var e=this.generateOrAbort();if(je(e)){this.P=0;var n=this.generateOrAbort();if(je(n))throw new Error("Could not generate UUID after timestamp reset");return n}return e}generateOrAbort(){var e=Date.now();if(e>this.P)this.P=e,this.I();else{if(!(e+1e4>this.P))return;this.T++,this.T>4398046511103&&(this.P++,this.I())}return Bm.fromFieldsV7(this.P,Math.trunc(this.T/Math.pow(2,30)),this.T&Math.pow(2,30)-1,this.R.nextUint32())}I(){this.T=1024*this.R.nextUint32()+(1023&this.R.nextUint32())}}var cN,TR=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;e<t.length;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};se&&!je(se.crypto)&&crypto.getRandomValues&&(TR=t=>crypto.getRandomValues(t));class _M{constructor(){this.C=new Uint32Array(8),this.O=1/0}nextUint32(){return this.O>=this.C.length&&(TR(this.C),this.O=0),this.C[this.O++]}}var xl=()=>wM().toString(),wM=()=>(cN||(cN=new bM)).generate(),vd="",SM=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function EM(t,e){if(e){var n=(function(i,s){if(s===void 0&&(s=we),vd)return vd;if(!s||["localhost","127.0.0.1"].includes(i))return"";for(var o=i.split("."),c=Math.min(o.length,8),f="dmn_chk_"+xl();!vd&&c--;){var h=o.slice(c).join("."),p=f+"=1;domain=."+h+";path=/";s.cookie=p+";max-age=3",s.cookie.includes(f)&&(s.cookie=p+";max-age=0",vd=h)}return vd})(t);if(!n){var r=(i=>
10{var s=i.match(SM);return s?s[0]:""})(t);r!==n&&Ee.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}var Pa={F:()=>!!we,M:function(t){Ee.error("cookieStore error: "+t)},A:function(t){if(we){try{for(var e=t+"=",n=we.cookie.split(";").filter((s=>s.length)),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return decodeURIComponent(i.substring(e.length,i.length))}}catch{}return null}},D:function(t){var e;try{e=JSON.parse(Pa.A(t))||{}}catch{}return e},j:function(t,e,n,r,i){if(we)try{var s="",o="",c=EM(we.location.hostname,r);if(n){var f=new Date;f.setTime(f.getTime()+24*n*60*60*1e3),s="; expires="+f.toUTCString()}i&&(o="; secure");var h=t+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+c+o;return h.length>3686.4&&Ee.warn("cookieStore warning: large cookie, len="+h.length),we.cookie=h,h}catch{return}},L:function(t,e){if(we!=null&&we.cookie)try{Pa.j(t,"",-1,e)}catch{return}}},i0=null,Sn={F:function(){if(!wa(i0))return i0;var t=!0;if(je(se))t=!1;else try{var e="__mplssupport__";Sn.j(e,"xyz"),Sn.A(e)!=='"xyz"'&&(t=!1),Sn.L(e)}catch{t=!1}return t||Ee.error("localStorage unsupported; falling back to cookie store"),i0=t,t},M:function(t){Ee.error("localStorage error: "+t)},A:function(t){try{return se?.localStorage.getItem(t)}catch(e){Sn.M(e)}return null},D:function(t){try{return JSON.parse(Sn.A(t))||{}}catch{}return null},j:function(t,e){try{se?.localStorage.setItem(t,JSON.stringify(e))}catch(n){Sn.M(n)}},L:function(t){try{se?.localStorage.removeItem(t)}catch(e){Sn.M(e)}}},jM=["$device_id","distinct_id",Mm,jR,Um,zm,xa],Ap={},NM={F:function(){return!0},M:function(t){Ee.error("memoryStorage error: "+t)},A:function(t){return Ap[t]||null},D:function(t){return Ap[t]||null},j:function(t,e){Ap[t]=e},L:function(t){delete Ap[t]}},eo=null,yr={F:function(){if(!wa(eo))return eo;if(eo=!0,je(se))eo=!1;else try{var t="__support__";yr.j(t,"xyz"),yr.A(t)!=='"xyz"'&&(eo=!1),yr.L(t)}catch{eo=!1}return eo},M:function(t){Ee.error("sessionStorage error: ",t)},A:function(t){try{return se?.sessionStorage.getItem(t)}catch(e){yr.M(e)}return null},D:function(t){try{return JSON.parse(yr.A(t))||null}catch{}return null},j:function(t,e){try{se?.sessionStorage.setItem(t,JSON.stringify(e))}catch(n){yr.M(n)}},L:function(t){try{se?.sessionStorage.removeItem(t)}catch(e){yr.M(e)}}},xs=(function(t){return t[t.PENDING=-1]="PENDING",t[t.DENIED=0]="DENIED",t[t.GRANTED=1]="GRANTED",t})({});class TM{constructor(e){this._instance=e}get N(){return this._instance.config}get consent(){return this.U()?xs.DENIED:this.H}isOptedOut(){return this.N.cookieless_mode==="always"||this.consent===xs.DENIED||this.consent===xs.PENDING&&(this.N.opt_out_capturing_by_default||this.N.cookieless_mode==="on_reject")}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===xs.DENIED}optInOut(e){this.B.j(this.q,e?1:0,this.N.cookie_expiration,this.N.cross_subdomain_cookie,this.N.secure_cookie)}reset(){this.B.L(this.q,this.N.cross_subdomain_cookie)}get q(){var{token:e,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+e:"__ph_opt_in_out_"+e)}get H(){var e=this.B.A(this.q);return t0(e)?xs.GRANTED:wt(PP,e)?xs.DENIED:xs.PENDING}get B(){if(!this.V){var e=this.N.opt_out_capturing_persistence_type;this.V=e==="localStorage"?Sn:Pa;var n=e==="localStorage"?Pa:Sn;n.A(this.q)&&(this.V.A(this.q)||this.optInOut(t0(n.A(this.q))),n.L(this.q,this.N.cross_subdomain_cookie))}return this.V}U(){return!!this.N.respect_dnt&&!!_R([Li?.doNotTrack,Li?.msDoNotTrack,qe.doNotTrack],(e=>t0(e)))}}var Op=Tn("[Dead Clicks]"),kM=()=>!0,AM=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(ER)),r=t.instance.config.capture_dead_clicks;return As(r)?r:!!ir(r)||n};class uN{get lazyLoadedDeadClicksAutocapture(){return this.W}constructor(e,n,r){this.instance=e,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[ER]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.G((()=>{this.Y()})):this.stop()}G(e){var n,r;(n=qe.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&e(),(r=qe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?Op.error("failed to load script",i):e()}))}Y(){var e;if(we){if(!this.W&&(e=qe.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=ir
10(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.W=qe.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.W.start(we),Op.info("starting...")}}else Op.error("`document` not found. Cannot start.")}stop(){this.W&&(this.W.stop(),this.W=void 0,Op.info("stopping..."))}}var a0=Tn("[SegmentIntegration]");function OM(t,e){var n=t.config.segment;if(!n)return e();(function(r,i){var s=r.config.segment;if(!s)return i();var o=f=>{var h=()=>f.anonymousId()||xl();r.config.get_device_id=h,f.id()&&(r.register({distinct_id:f.id(),$device_id:h()}),r.persistence.set_property(xa,"identified")),i()},c=s.user();"then"in c&&Ns(c.then)?c.then(o):o(c)})(t,(()=>{n.register((r=>{Promise&&Promise.resolve||a0.warn("This browser does not have Promise support, and can not use the segment integration");var i=(s,o)=>{if(!o)return s;s.event.userId||s.event.anonymousId===r.get_distinct_id()||(a0.info("No userId set, resetting PostHog"),r.reset()),s.event.userId&&s.event.userId!==r.get_distinct_id()&&(a0.info("UserId set, identifying with PostHog"),r.identify(s.event.userId));var c=r.calculateEventProperties(o,s.event.properties);return s.event.properties=Object.assign({},c,s.event.properties),s};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:s=>i(s,s.event.event),page:s=>i(s,"$pageview"),identify:s=>i(s,"$identify"),screen:s=>i(s,"$screen")}})(t)).then((()=>{e()}))}))}var kR="posthog-js";function AR(t,e){var{organization:n,projectId:r,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=e===void 0?{}:e;return c=>{var f,h,p,g,x;if(!(s==="*"||s.includes(c.level))||!t.__loaded)return c;c.tags||(c.tags={});var v=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=v,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var w,_=((f=c.exception)==null?void 0:f.values)||[],S=_.map((N=>_e({},N,{stacktrace:N.stacktrace?_e({},N.stacktrace,{type:"raw",frames:(N.stacktrace.frames||[]).map((k=>_e({},k,{platform:"web:javascript"})))}):void 0}))),E={$exception_message:((h=_[0])==null?void 0:h.value)||c.message,$exception_type:(p=_[0])==null?void 0:p.type,$exception_level:c.level,$exception_list:S,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((g=_[0])==null?void 0:g.value)||c.message,$sentry_exception_type:(x=_[0])==null?void 0:x.type,$sentry_tags:c.tags};return n&&r&&(E.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+c.event_id),o&&((w=t.exceptions)==null||w.sendExceptionEvent(E)),c}}class RM{constructor(e,n,r,i,s,o){this.name=kR,this.setupOnce=function(c){c(AR(e,{organization:n,projectId:r,prefix:i,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}class dN{constructor(e){this.J=(n,r,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength)&&(Ee.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:i}),this.K=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.X()}X(){var e;this.Z=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.J)}destroy(){var e;(e=this.Z)==null||e.call(this),this.Z=void 0}doPageView(e,n){var r,i=this.tt(e,n);return this.K={pathname:(r=se?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var n;return this.tt(e,(n=this.K)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.K)==null?void 0:e.pageViewId}}tt(e,n){var r=this.K;if(!r)return{$pageview_id:n};var i={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:c,maxScrollY:f,maxContentHeight:h,lastContentY:p,maxContentY:g}=s;if(!(je(o)||je(c)||je(f)||je(h)||je(p)||je(g))){o=Math.ceil(o),c=Math.ceil(c),f=Math.ceil(f),h=Math.ceil(h),p=Math.ceil(p),g=Math.ceil(g);var x=o<=1?1:Ba(c/o,0,1,Ee),v=o<=1?1:Ba(f/o,0,1,Ee),w=h<=1?1:Ba(p/h,0,1,Ee),_=h<=1?1:Ba(g/h,0,1,Ee);i=zn(i,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:x,$prev_pageview_max_scroll:f,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:p,$prev_pageview_last_content_percentage:w,$prev_pageview_max_content:g,$prev_pageview_max_content_percentage:_})}}return r.pathname&&(i.$prev_pageview_pathname=r.pathname),r.timestamp&&(i.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),i}}var $m=t=>{var e=we?.createElement("a");return je(e)?null:(e.href=t,e)},CM=function(t,e){var n,r;e===void 0&&(e="&");var i=[];return un(t,(function(s,o){je(s)||je(o)||o==="undefined"||(n=encodeURIComponent((c=>c instanceof File)(s)?s.name:s.toString()),r=encodeURIComponent(o),i[i.length]=r+"="+n)})),i.join(e)},Fm=function(t,e){for(var n,r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<r.length;i++){var s=r[i].split("=");if(s[0]===e){n=s;break}}if(!Lt(n)||n.length<2)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{Ee.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},kf=function(t,e,n){if(!t||!e||!e.length)return t;for(var r=t.split("#"),i=r[0]||"",s=r[1],o=i.split("?"),c=o[1],f=
10o[0],h=(c||"").split("&"),p=[],g=0;g<h.length;g++){var x=h[g].split("=");Lt(x)&&(e.includes(x[0])?p.push(x[0]+"="+n):p.push(h[g]))}var v=f;return c!=null&&(v+="?"+p.join("&")),s!=null&&(v+="#"+s),v},qm=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},Rp="https?://(.*)",cu=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],DM=ou(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],cu),Af="<masked>",LM=["li_fat_id"];function OR(t,e,n){if(!we)return{};var r,i=e?ou([],cu,n||[]):[],s=RR(kf(we.URL,i,Af),t),o=(r={},un(LM,(function(c){var f=Pa.A(c);r[c]=f||null})),r);return zn(o,s)}function RR(t,e){var n=DM.concat(e||[]),r={};return un(n,(function(i){var s=Fm(t,i);r[i]=s||null})),r}function CR(t){var e=(function(s){return s?s.search(Rp+"google.([^/?]*)")===0?"google":s.search(Rp+"bing.com")===0?"bing":s.search(Rp+"yahoo.com")===0?"yahoo":s.search(Rp+"duckduckgo.com")===0?"duckduckgo":null:null})(t),n=e!="yahoo"?"q":"p",r={};if(!wa(e)){r.$search_engine=e;var i=we?Fm(we.referrer,n):"";i.length&&(r.ph_keyword=i)}return r}function fN(){return navigator.language||navigator.userLanguage}function DR(){return we?.referrer||"$direct"}function LR(t,e){var n=t?ou([],cu,e||[]):[],r=vr?.href.substring(0,1e3);return{r:DR().substring(0,1e3),u:r?kf(r,n,Af):void 0}}function PR(t){var e,{r:n,u:r}=t,i={$referrer:n,$referring_domain:n==null?void 0:n=="$direct"?"$direct":(e=$m(n))==null?void 0:e.host};if(r){i.$current_url=r;var s=$m(r);i.$host=s?.host,i.$pathname=s?.pathname;var o=RR(r);zn(i,o)}if(n){var c=CR(n);zn(i,c)}return i}function MR(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function PM(){try{return new Date().getTimezoneOffset()}catch{return}}function MM(t,e){var n,r,i,s;if(!ti)return{};var o,c,f,h,p,g,x,v,w=t?ou([],cu,e||[]):[],[_,S]=(function(E){for(var N=0;N<X2.length;N++){var[k,R]=X2[N],D=k.exec(E),O=D&&(Ns(R)?R(D,E):R);if(O)return O}return["",""]})(ti);return zn(kw({$os:_,$os_version:S,$browser:yR(ti,navigator.vendor),$device:J2(ti),$device_type:(c=ti,f={userAgentDataPlatform:(n=navigator)==null||(n=n.userAgentData)==null?void 0:n.platform,maxTouchPoints:(r=navigator)==null?void 0:r.maxTouchPoints,screenWidth:se==null||(i=se.screen)==null?void 0:i.width,screenHeight:se==null||(s=se.screen)==null?void 0:s.height,devicePixelRatio:se?.devicePixelRatio},v=J2(c),v===rR||v===nR||v==="Kobo"||v==="Kindle Fire"||v===gR?au:v===Nf||v===Yc||v===Tf||v===Wb?"Console":v===aR?"Wearable":v?zi:f?.userAgentDataPlatform==="Android"&&((h=f?.maxTouchPoints)!==null&&h!==void 0?h:0)>0?Math.min((p=f?.screenWidth)!==null&&p!==void 0?p:0,(g=f?.screenHeight)!==null&&g!==void 0?g:0)/((x=f?.devicePixelRatio)!==null&&x!==void 0?x:1)>=600?au:zi:"Desktop"),$timezone:MR(),$timezone_offset:PM()}),{$current_url:kf(vr?.href,w,Af),$host:vr?.host,$pathname:vr?.pathname,$raw_user_agent:ti.length>1e3?ti.substring(0,997)+"...":ti,$browser_version:VP(ti,navigator.vendor),$browser_language:fN(),$browser_language_prefix:(o=fN(),typeof o=="string"?o.split("-")[0]:void 0),$screen_height:se?.screen.height,$screen_width:se?.screen.width,$viewport_height:se?.innerHeight,$viewport_width:se?.innerWidth,$lib:ia.LIB_NAME,$lib_version:ia.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var IM=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class s0{constructor(e,n){this.N=e,this.props={},this.it=!1,this.et=(r=>{var i="";return r.token&&(i=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+i+"_posthog"})(e),this.B=this.rt(e),this.load(),e.debug&&Ee.info("Persistence loaded",e.persistence,_e({},this.props)),this.update_config(e,e,n),this.save()}isDisabled(){return!!this.st}rt(e){IM.indexOf(e.persistence.toLowerCase())===-1&&(Ee.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n=(function(i){i===void 0&&(i=[]);var s=[...jM,...i];return _e({},Sn,{D:function(o){try{var c={};try{c=Pa.D(o)||{}}catch{}var f=zn(c,JSON.parse(Sn.A(o)||"{}"));return Sn.j(o,f),f}catch{}return null},j:function(o,c,f,h,p,g){try{Sn.j(o,c,void 0,void 0,g);var x={};
10s.forEach((v=>{c[v]&&(x[v]=c[v])})),Object.keys(x).length&&Pa.j(o,x,f,h,p,g)}catch(v){Sn.M(v)}},L:function(o,c){try{se?.localStorage.removeItem(o),Pa.L(o,c)}catch(f){Sn.M(f)}}})})(e.cookie_persisted_properties||[]),r=e.persistence.toLowerCase();return r==="localstorage"&&Sn.F()?Sn:r==="localstorage+cookie"&&n.F()?n:r==="sessionstorage"&&yr.F()?yr:r==="memory"?NM:r==="cookie"?Pa:n.F()?n:Pa}nt(e){var n=e??this.N.feature_flag_cache_ttl_ms;if(!n||n<=0)return!1;var r=this.props[Im];return!r||typeof r!="number"||Date.now()-r>n}properties(){var e={};return un(this.props,((n,r)=>{if(r===Fc&&ir(n)){if(!this.nt())for(var i=Object.keys(n),s=0;s<i.length;s++)e["$feature/"+i[s]]=n[i[s]]}else c=r,f=!1,(wa(o=xM)?f:q2&&o.indexOf===q2?o.indexOf(c)!=-1:(un(o,(function(h){if(f||(f=h===c))return Pm})),f))||(e[r]=n);var o,c,f})),e}load(){if(!this.st){var e=this.B.D(this.et);e&&(this.props=zn({},e))}}save(){this.st||this.B.j(this.et,this.props,this.ot,this.ut,this.ht,this.N.debug)}remove(){this.B.L(this.et,!1),this.B.L(this.et,!0)}clear(){this.remove(),this.props={}}register_once(e,n,r){if(ir(e)){je(n)&&(n="None"),this.ot=je(r)?this.dt:r;var i=!1;if(un(e,((s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=s,i=!0)})),i)return this.save(),!0}return!1}register(e,n){if(ir(e)){this.ot=je(n)?this.dt:n;var r=!1;if(un(e,((i,s)=>{e.hasOwnProperty(s)&&this.props[s]!==i&&(this.props[s]=i,r=!0)})),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.it){var e=OR(this.N.custom_campaign_params,this.N.mask_personal_data_properties,this.N.custom_personal_data_properties);$c(kw(e))||this.register(e),this.it=!0}}update_search_keyword(){var e;this.register((e=we?.referrer)?CR(e):{})}update_referrer_info(){var e;this.register_once({$referrer:DR(),$referring_domain:we!=null&&we.referrer&&((e=$m(we.referrer))==null?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[s_]||this.props[l_]||this.register_once({[zm]:LR(this.N.mask_personal_data_properties,this.N.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};un([l_,s_],(o=>{var c=this.props[o];c&&un(c,(function(f,h){e["$initial_"+Vb(h)]=f}))}));var n,r,i=this.props[zm];if(i){var s=(n=PR(i),r={},un(n,(function(o,c){r["$initial_"+Vb(c)]=o})),r);zn(e,s)}return e}safe_merge(e){return un(this.props,(function(n,r){r in e||(e[r]=n)})),e}update_config(e,n,r){if(this.dt=this.ot=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==n.persistence||!((o,c)=>{if(o.length!==c.length)return!1;var f=[...o].sort(),h=[...c].sort();return f.every(((p,g)=>p===h[g]))})(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var i=this.rt(e),s=this.props;this.clear(),this.B=i,this.props=s,this.save()}}set_disabled(e){this.st=e,this.st?this.remove():this.save()}set_cross_subdomain(e){e!==this.ut&&(this.ut=e,this.remove(),this.save())}set_secure(e){e!==this.ht&&(this.ht=e,this.remove(),this.save())}set_event_timer(e,n){var r=this.props[Ud]||{};r[e]=n,this.props[Ud]=r,this.save()}remove_event_timer(e){var n=(this.props[Ud]||{})[e];return je(n)||(delete this.props[Ud][e],this.save()),n}get_property(e){return this.props[e]}set_property(e,n){this.props[e]=n,this.save()}}var xd={Activation:"events",Cancellation:"cancelEvents"},l0={Popover:"popover",API:"api",Widget:"widget"},Fd={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},o0={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},o_={Popover:"popover",Inline:"inline"},zM=(function(t){return t.SHOWN="product tour shown",t.DISMISSED="product tour dismissed",t.COMPLETED="product tour completed",t.STEP_SHOWN="product tour step shown",t.STEP_COMPLETED="product tour step completed",t.BUTTON_CLICKED="product tour button clicked",t.STEP_SELECTOR_FAILED="product tour step selector failed",t.BANNER_CONTAINER_SELECTOR_FAILED="product tour banner container selector failed",t.BANNER_ACTION_CLICKED="product tour banner action clicked",t})({}),hN=(function(t){return t.TOUR_ID="$product_tour_id",t.TOUR_NAME="$product_tour_name",t.TOUR_ITERATION="$product_tour_iteration",t.TOUR_RENDER_REASON="$product_tour_render_reason",t.TOUR_STEP_ID="$product_tour_step_id",t.TOUR_STEP_ORDER="$product_tour_step_order",t.TOUR_STEP_TYPE="$product_tour_step_type",t.TOUR_DISMISS_REASON="$product_tour_dismiss_reason",t.TOUR_BUTTON_TEXT="$product_tour_button_text",t.TOUR_BUTTON_ACTION="$product_tour_button_action",t.TOUR_BUTTON_LINK="$product_tour_button_link",t.TOUR_BUTTON_TOUR_ID="$product_tour_button_tour_id",t.TOUR_STEPS_COUNT="$product_tour_steps_count",t.TOUR_STEP_SELECTOR="$product_tour_step_selector",t.TOUR_STEP_SELECTOR_FOUND="$product_tour_step_selector_found",t.TOUR_STEP_ELEMENT_TAG="$product_tour_step_element_tag",t.TOUR_STEP_ELEMENT_ID="$product_tour_step_element_id",t.TOUR_STEP_ELEMENT_CLASSES="$product_tour_step_element_classes",t.TOUR_STEP_ELEMENT_TEXT="$product_tour_step_element_text",t.TOUR_ERROR="$product_tour_error",t.TOUR_MATCHES_COUNT="$product_tour_matches_count",t.TOUR_FAILURE_PHASE="$product_tour_failure_phase",t.TOUR_WAITED_FOR_ELEMENT="$product_tour_waited_for_element",t.TOUR_WAIT_DURATION_MS="$product_tour_wait_duration_ms",t.TOUR_BANNER_SELECTOR="$product_tour_banner_selector",t.TOUR_LINKED_SURVEY_ID="$product_tour_linked_survey_id",t.USE_MANUAL_SELECTOR="$use_manual_selector",t.INFERENCE_DATA_PRESENT="$inference_data_present",t.TOUR_LAST_SEEN_DATE="$product_tour_last_seen_date",t.TOUR_TYPE="$product_tour_type",t})({}),pN=Tn("[RateLimiter]");class UM{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;
10if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((i=>{pN.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4}))}catch(i){return void pN.warn('could not rate limit - continuing. Error: "'+i?.message+'"',{text:r})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,r,i;e===void 0&&(e=!1);var{captureEventsBurstLimit:s,captureEventsPerSecond:o}=this,c=new Date().getTime(),f=(n=(r=this.instance.persistence)==null?void 0:r.get_property(a_))!==null&&n!==void 0?n:{tokens:s,last:c};f.tokens+=(c-f.last)/1e3*o,f.last=c,f.tokens>s&&(f.tokens=s);var h=f.tokens<1;return h||e||(f.tokens=Math.max(0,f.tokens-1)),!h||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+o+" events per second and "+s+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=h,(i=this.instance.persistence)==null||i.set_property(a_,f),{isRateLimited:h,remainingTokens:f.tokens}}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var bd=Tn("[RemoteConfig]");class IR{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=qe._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}vt(e){var n,r;(n=qe.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=qe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}ct(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:n=>{e(n.json)}})}load(){try{if(this.remoteConfig)return bd.info("Using preloaded remote config",this.remoteConfig),this.ft(this.remoteConfig),void this._t();if(this._instance.bt())return void bd.warn("Remote config is disabled. Falling back to local config.");this.vt((e=>{if(!e)return bd.info("No config found after loading remote JS config. Falling back to JSON."),void this.ct((n=>{this.ft(n),this._t()}));this.ft(e),this._t()}))}catch(e){bd.error("Error loading remote config",e)}}stop(){this.yt&&(clearInterval(this.yt),this.yt=void 0)}refresh(){this._instance.bt()||we?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}_t(){var e;if(!this.yt){var n=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;n!==0&&(this.yt=setInterval((()=>{this.refresh()}),n))}}ft(e){var n;e||bd.error("Failed to fetch remote config from PostHog."),this._instance.ft(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var Es=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),ua=Uint8Array,ri=Uint16Array,uu=Uint32Array,Aw=new ua([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ow=new ua([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),mN=new ua([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zR=function(t,e){for(var n=new ri(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new uu(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},UR=zR(Aw,2),BM=UR[0],c_=UR[1];BM[28]=258,c_[258]=28;for(var gN=zR(Ow,0)[1],BR=new ri(32768),mn=0;mn<32768;++mn){var to=(43690&mn)>>>1|(21845&mn)<<1;to=(61680&(to=(52428&to)>>>2|(13107&to)<<2))>>>4|(3855&to)<<4,BR[mn]=((65280&to)>>>8|(255&to)<<8)>>>1}var tf=function(t,e,n){for(var r=t.length,i=0,s=new ri(e);i<r;++i)++s[t[i]-1];var o,c=new ri(e);for(i=0;i<e;++i)c[i]=c[i-1]+s[i-1]<<1;for(o=new ri(r),i=0;i<r;++i)o[i]=BR[c[t[i]-1]++]>>>15-t[i];return o},Ro=new ua(288);for(mn=0;mn<144;++mn)Ro[mn]=8;for(mn=144;mn<256;++mn)Ro[mn]=9;for(mn=256;mn<280;++mn)Ro[mn]=7;for(mn=280;mn<288;++mn)Ro[mn]=8;var Hm=new ua(32);for(mn=0;mn<32;++mn)Hm[mn]=5;var $M=tf(Ro,9),FM=tf(Hm,5),$R=function(t){return(t/8>>
vendor: 4,427 bytes, line 10
100)+(7&t&&1)},FR=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var r=new(t instanceof ri?ri:t instanceof uu?uu:ua)(n-e);return r.set(t.subarray(e,n)),r},gs=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},_d=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},c0=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,s=n.slice();if(!i)return[new ua(0),0];if(i==1){var o=new ua(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(D,O){return D.f-O.f})),n.push({s:-1,f:25001});var c=n[0],f=n[1],h=0,p=1,g=2;for(n[0]={s:-1,f:c.f+f.f,l:c,r:f};p!=i-1;)c=n[n[h].f<n[g].f?h++:g++],f=n[h!=p&&n[h].f<n[g].f?h++:g++],n[p++]={s:-1,f:c.f+f.f,l:c,r:f};var x=s[0].s;for(r=1;r<i;++r)s[r].s>x&&(x=s[r].s);var v=new ri(x+1),w=u_(n[p-1],v,0);if(w>e){r=0;var _=0,S=w-e,E=1<<S;for(s.sort((function(D,O){return v[O.s]-v[D.s]||D.f-O.f}));r<i;++r){var N=s[r].s;if(!(v[N]>e))break;_+=E-(1<<w-v[N]),v[N]=e}for(_>>>=S;_>0;){var k=s[r].s;v[k]<e?_-=1<<e-v[k]++-1:++r}for(;r>=0&&_;--r){var R=s[r].s;v[R]==e&&(--v[R],++_)}w=e}return[new ua(v),w]},u_=function(t,e,n){return t.s==-1?Math.max(u_(t.l,e,n+1),u_(t.r,e,n+1)):e[t.s]=n},yN=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new ri(++e),r=0,i=t[0],s=1,o=function(f){n[r++]=f},c=1;c<=e;++c)if(t[c]==i&&c!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=t[c]}return[n.subarray(0,r),e]},wd=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},d_=function(t,e,n){var r=n.length,i=$R(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<r;++s)t[i+s+4]=n[s];return 8*(i+4+r)},vN=function(t,e,n,r,i,s,o,c,f,h,p){gs(e,p++,n),++i[256];for(var g=c0(i,15),x=g[0],v=g[1],w=c0(s,15),_=w[0],S=w[1],E=yN(x),N=E[0],k=E[1],R=yN(_),D=R[0],O=R[1],T=new ri(19),L=0;L<N.length;++L)T[31&N[L]]++;for(L=0;L<D.length;++L)T[31&D[L]]++;for(var M=c0(T,7),q=M[0],B=M[1],I=19;I>4&&!q[mN[I-1]];--I);var Z,X,K,U,W=h+5<<3,G=wd(i,Ro)+wd(s,Hm)+o,he=wd(i,x)+wd(s,_)+o+14+3*I+wd(T,q)+(2*T[16]+3*T[17]+7*T[18]);if(W<=G&&W<=he)return d_(e,p,t.subarray(f,f+h));if(gs(e,p,1+(he<G)),p+=2,he<G){Z=tf(x,v),X=x,K=tf(_,S),U=_;var A=tf(q,B);for(gs(e,p,k-257),gs(e,p+5,O-1),gs(e,p+10,I-4),p+=14,L=0;L<I;++L)gs(e,p+3*L,q[mN[L]]);p+=3*I;for(var z=[N,D],Q=0;Q<2;++Q){var P=z[Q];for(L=0;L<P.length;++L){var ce=31&P[L];gs(e,p,A[ce]),p+=q[ce],ce>15&&(gs(e,p,P[L]>>>5&127),p+=P[L]>>>12)}}}else Z=$M,X=Ro,K=FM,U=Hm;for(L=0;L<c;++L)if(r[L]>255){ce=r[L]>>>18&31,_d(e,p,Z[ce+257]),p+=X[ce+257],ce>7&&(gs(e,p,r[L]>>>23&31),p+=Aw[ce]);var ve=31&r[L];_d(e,p,K[ve]),p+=U[ve],ve>3&&(_d(e,p,r[L]>>>5&8191),p+=Ow[ve])}else _d(e,p,Z[r[L]]),p+=X[r[L]];return _d(e,p,Z[256]),p+X[256]},qM=new uu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),HM=(function(){for(var t=new uu(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t})(),GM=function(t,e,n,r,i){return(function(s,o,c,f,h,p){var g=s.length,x=new ua(f+g+5*(1+Math.floor(g/7e3))+h),v=x.subarray(f,x.length-h),w=0;if(!o||g<8)for(var _=0;_<=g;_+=65535){var S=_+65535;S<g?w=d_(v,w,s.subarray(_,S)):(v[_]=p,w=d_(v,w,s.subarray(_,g)))}else{for(var E=qM[o-1],N=E>>>13,k=8191&E,R=(1<<c)-1,D=new ri(32768),O=new ri(R+1),T=Math.ceil(c/3),L=2*T,M=function(H){return(s[H]^s[H+1]<<T^s[H+2]<<L)&R},q=new uu(25e3),B=new ri(288),I=new ri(32),Z=0,X=0,K=(_=0,0),U=0,W=0;_<g;++_){var G=M(_),he=32767&_,A=O[G];if(D[he]=A,O[G]=he,U<=_){var z=g-_;if((Z>7e3||K>24576)&&z>423){w=vN(s,v,0,q,B,I,X,K,W,_-W,w),K=Z=X=0,W=_;for(var Q=0;Q<286;++Q)B[Q]=0;for(Q=0;Q<30;++Q)I[Q]=0}var P=2,ce=0,ve=k,ye=he-A&32767;if(z>2&&G==M(_-ye))for(var Se=Math.min(N,z)-1,He=Math.min(32767,_),Te=Math.min(258,z);ye<=He&&--ve&&he!=A;){if(s[_+P]==s[_+P-ye]){for(var Ae=0;Ae<Te&&s[_+Ae]==s[_+Ae-ye];++Ae);if(Ae>P){if(P=Ae,ce=ye,Ae>Se)break;var We=Math.min(ye,Ae-2),Ge=0;for(Q=0;Q<We;++Q){var Ce=_-ye+Q+32768&32767,Ve=Ce-D[Ce]+32768&32767;Ve>Ge&&(Ge=Ve,A=Ce)}}}ye+=(he=A)-(A=D[he])+32768&32767}if(ce){q[K++]=268435456|c_[P]<<18|gN[ce];var re=31&c_[P],ue=31&gN[ce];X+=Aw[re]+Ow[ue],++B[257+re],++I[ue],U=_+P,++Z}else q[K++]=s[_],++B[s[_]]}}w=vN(s,v,p,q,B,I,X,K,W,_-W,w)}return FR(x,0,f+$R(w)+h)})(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!0)},u0=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};
10function VM(t,e){e===void 0&&(e={});var n=(function(){var c=4294967295;return{p:function(f){for(var h=c,p=0;p<f.length;++p)h=HM[255&h^f[p]]^h>>>8;c=h},d:function(){return 4294967295^c}}})(),r=t.length;n.p(t);var i,s=GM(t,e,10+((i=e).filename&&i.filename.length+1||0),8),o=s.length;return(function(c,f){var h=f.filename;if(c[0]=31,c[1]=139,c[2]=8,c[8]=f.level<2?4:f.level==9?2:0,c[9]=3,f.mtime!=0&&u0(c,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),h){c[3]=8;for(var p=0;p<=h.length;++p)c[p+10]=h.charCodeAt(p)}})(s,e),u0(s,o-8,n.d()),u0(s,o-4,r),s}var KM=function(t){var e,n,r,i,s="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,` 11`).replace(/\r/g,` 12`)).length,i=0;i<r;i++){var o=t.charCodeAt(i),c=null;o<128?n++:c=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),wa(c)||(n>e&&(s+=t.substring(e,n)),s+=c,e=n=i+1)}return n>e&&(s+=t.substring(e,t.length)),s},YM=!!Gb||!!Hb,Gm=function(t,e,n){var r;n===void 0&&(n=!0);var[i,s]=t.split("?"),o=_e({},e),c=(r=s?.split("&").map((h=>{var p,[g,x]=h.split("="),v=n&&(p=o[g])!==null&&p!==void 0?p:x;return delete o[g],g+"="+v})))!==null&&r!==void 0?r:[],f=CM(o);return f&&c.push(f),i+"?"+c.join("&")},qd=(t,e)=>JSON.stringify(t,((n,r)=>typeof r=="bigint"?r.toString():r),e),d0=t=>{var{data:e,compression:n}=t;if(e){if(n===Es.GZipJS){var r=VM((function(c,f){var h=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var p=new ua(c.length+(c.length>>>1)),g=0,x=function(S){p[g++]=S},v=0;v<h;++v){if(g+5>p.length){var w=new ua(g+8+(h-v<<1));w.set(p),p=w}var _=c.charCodeAt(v);_<128||f?x(_):_<2048?(x(192|_>>>6),x(128|63&_)):_>55295&&_<57344?(x(240|(_=65536+(1047552&_)|1023&c.charCodeAt(++v))>>>18),x(128|_>>>12&63),x(128|_>>>6&63),x(128|63&_)):(x(224|_>>>12),x(128|_>>>6&63),x(128|63&_))}return FR(p,0,g)})(qd(e)),{mtime:0});return{contentType:"text/plain",body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===Es.Base64){var i=(function(c){var f,h,p,g,x,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w=0,_=0,S="",E=[];if(!c)return c;c=KM(c);do f=(x=c.charCodeAt(w++)<<16|c.charCodeAt(w++)<<8|c.charCodeAt(w++))>>18&63,h=x>>12&63,p=x>>6&63,g=63&x,E[_++]=v.charAt(f)+v.charAt(h)+v.charAt(p)+v.charAt(g);while(w<c.length);switch(S=E.join(""),c.length%3){case 1:S=S.slice(0,-2)+"==";break;case 2:S=S.slice(0,-1)+"="}return S})(qd(e)),s=(c=>"data="+encodeURIComponent(typeof c=="string"?c:qd(c)))(i);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var o=qd(e);return{contentType:"application/json",body:o,estimatedSize:new Blob([o]).size}}},hm=[];Hb&&hm.push({transport:"fetch",method:t=>{var e,n,{contentType:r,body:i,estimatedSize:s}=(e=d0(t))!==null&&e!==void 0?e:{},o=new Headers;un(t.headers,(function(p,g){o.append(g,p)})),r&&o.append("Content-Type",r);var c=t.url,f=null;if(H2){var h=new H2;f={signal:h.signal,timeout:setTimeout((()=>h.abort()),t.timeout)}}Hb(c,_e({method:t?.method||"GET",headers:o,keepalive:t.method==="POST"&&(s||0)<52428.8,body:i,signal:(n=f)==null?void 0:n.signal},t.fetchOptions)).then((p=>p.text().then((g=>{var x={statusCode:p.status,text:g};if(p.status===200)try{x.json=JSON.parse(g)}catch(v){Ee.error(v)}t.callback==null||t.callback(x)})))).catch((p=>{Ee.error(p),t.callback==null||t.callback({statusCode:0,error:p})})).finally((()=>f?clearTimeout(f.timeout):null))}}),Gb&&hm.push({transport:"XHR",method:t=>{var e,n=new Gb;n.open(t.method||"GET",t.url,!0);var{contentType:r,body:i}=(e=d0(t))!==null&&e!==void 0?e:{};un(t.headers,(function(s,o){n.setRequestHeader(o,s)})),r&&n.setRequestHeader("Content-Type",r),t.timeout&&(n.timeout=t.timeout),t.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var s={statusCode:n.status,text:n.responseText};if(n.status===200)try{s.json=JSON.parse(n.responseText)}catch{}t.callback==null||t.callback(s)}},n.send(i)}}),Li!=null&&Li.sendBeacon&&hm.push({transport:"sendBeacon",method:t=>{var e=Gm(t.url,{beacon:"1"});try{var n,{contentType:r,body:i}=(n=d0(t))!==null&&n!==void 0?n:{},s=typeof i=="string"?new Blob([i],{type:r}):i;Li.sendBeacon(e,s)}catch{}}});var f_=3e3;class WM{constructor(e,n){this.wt=!0,this.Et=[],this.St=Ba(n?.flush_interval_ms||f_,250,5e3,Ee.createLogger("flush interval"),f_),this.xt=e}enqueue(e){this.Et.push(e),this.$t||this.kt()}unload(){this.Pt();var e=this.Et.length>0?this.Tt():{},n=Object.values(e);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.xt(_e({},r,{transport:"sendBeacon"}))}))}enable(){this.wt=!1,this.kt()}kt(){var e=this;this.wt||(this.$t=setTimeout((()=>
12{if(this.Pt(),this.Et.length>0){var n=this.Tt(),r=function(){var s=n[i],o=new Date().getTime();s.data&&Lt(s.data)&&un(s.data,(c=>{c.offset=Math.abs(c.timestamp-o),delete c.timestamp})),e.xt(s)};for(var i in n)r()}}),this.St))}Pt(){clearTimeout(this.$t),this.$t=void 0}Tt(){var e={};return un(this.Et,(n=>{var r,i=n,s=(i?i.batchKey:null)||i.url;je(e[s])&&(e[s]=_e({},i,{data:[]})),(r=e[s].data)==null||r.push(i.data)})),this.Et=[],e}}var XM=["retriesPerformedSoFar"];class JM{constructor(e){this.Rt=!1,this.It=3e3,this.Et=[],this._instance=e,this.Et=[],this.Ct=!0,!je(se)&&"onLine"in se.navigator&&(this.Ct=se.navigator.onLine,this.Ot=()=>{this.Ct=!0,this.Ft()},this.Mt=()=>{this.Ct=!1},Wn(se,"online",this.Ot),Wn(se,"offline",this.Mt))}get length(){return this.Et.length}retriableRequest(e){var{retriesPerformedSoFar:n}=e,r=QO(e,XM);Dc(n)&&(r.url=Gm(r.url,{retry_count:n})),this._instance._send_request(_e({},r,{callback:i=>{i.statusCode!==200&&(i.statusCode<400||i.statusCode>=500)&&(n??0)<10?this.At(_e({retriesPerformedSoFar:n},r)):r.callback==null||r.callback(i)}}))}At(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(function(o){var c=3e3*Math.pow(2,o),f=c/2,h=Math.min(18e5,c),p=(Math.random()-.5)*(h-f);return Math.ceil(h+p)})(n),i=Date.now()+r;this.Et.push({retryAt:i,requestOptions:e});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),Ee.warn(s),this.Rt||(this.Rt=!0,this.Dt())}Dt(){if(this.jt&&clearTimeout(this.jt),this.Et.length===0)return this.Rt=!1,void(this.jt=void 0);this.jt=setTimeout((()=>{this.Ct&&this.Et.length>0&&this.Ft(),this.Dt()}),this.It)}Ft(){var e=Date.now(),n=[],r=this.Et.filter((s=>s.retryAt<e||(n.push(s),!1)));if(this.Et=n,r.length>0)for(var{requestOptions:i}of r)this.retriableRequest(i)}unload(){for(var{requestOptions:e}of(this.jt&&(clearTimeout(this.jt),this.jt=void 0),this.Rt=!1,je(se)||(this.Ot&&(se.removeEventListener("online",this.Ot),this.Ot=void 0),this.Mt&&(se.removeEventListener("offline",this.Mt),this.Mt=void 0)),this.Et))try{this._instance._send_request(_e({},e,{transport:"sendBeacon"}))}catch(n){Ee.error(n)}this.Et=[]}}class QM{constructor(e){this.Lt=()=>{var n,r,i,s;this.Nt||(this.Nt={});var o=this.scrollElement(),c=this.scrollY(),f=o?Math.max(0,o.scrollHeight-o.clientHeight):0,h=c+(o?.clientHeight||0),p=o?.scrollHeight||0;this.Nt.lastScrollY=Math.ceil(c),this.Nt.maxScrollY=Math.max(c,(n=this.Nt.maxScrollY)!==null&&n!==void 0?n:0),this.Nt.maxScrollHeight=Math.max(f,(r=this.Nt.maxScrollHeight)!==null&&r!==void 0?r:0),this.Nt.lastContentY=h,this.Nt.maxContentY=Math.max(h,(i=this.Nt.maxContentY)!==null&&i!==void 0?i:0),this.Nt.maxContentHeight=Math.max(p,(s=this.Nt.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=e}getContext(){return this.Nt}resetContext(){var e=this.Nt;return setTimeout(this.Lt,0),e}startMeasuringScrollPosition(){Wn(se,"scroll",this.Lt,{capture:!0}),Wn(se,"scrollend",this.Lt,{capture:!0}),Wn(se,"resize",this.Lt)}scrollElement(){if(!this._instance.config.scroll_root_selector)return se?.document.documentElement;var e=Lt(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var n of e){var r=se?.document.querySelector(n);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return se&&(se.scrollY||se.pageYOffset||se.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return se&&(se.scrollX||se.pageXOffset||se.document.documentElement.scrollLeft)||0}}var ZM=t=>LR(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class xN{constructor(e,n,r,i){this.Ut=s=>{var o=this.zt();if(!o||o.sessionId!==s){var c={sessionId:s,props:this.Ht(this._instance)};this.Bt.register({[i_]:c})}},this._instance=e,this.qt=n,this.Bt=r,this.Ht=i||ZM,this.qt.onSessionId(this.Ut)}zt(){return this.Bt.props[i_]}getSetOnceProps(){var e,n=(e=this.zt())==null?void 0:e.props;return n?"r"in n?PR(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return un(kw(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),e["$session_entry_"+Vb(r)]=n})),e}}class Rw{constructor(){this.Vt={},this.Vt={}}on(e,n){return this.Vt[e]||(this.Vt[e]=[]),this.Vt[e].push(n),()=>{this.Vt[e]=this.Vt[e].filter((r=>r!==n))}}emit(e,n){for(var r of this.Vt[e]||[])r(n);for(var i of this.Vt["*"]||[])i(e,n)}}var f0=Tn("[SessionId]");class bN{on(e,n){return this.Wt.on(e,n)}constructor(e,n,r){var i;if(this.Gt=[],this.Yt=void 0,this.Wt=new Rw,this.Jt=(p,g)=>!(!Dc(p)||!Dc(g))&&Math.abs(p-g)>
12this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.N=e.config,this.Bt=e.persistence,this.Kt=void 0,this.Xt=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Qt=n||xl,this.Zt=r||xl;var s=this.N.persistence_name||this.N.token,o=this.N.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*Ba(o,60,36e3,f0.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ti(),this.ii="ph_"+s+"_window_id",this.ei="ph_"+s+"_primary_window_exists",this.ri()){var c=yr.D(this.ii),f=yr.D(this.ei);c&&!f?this.Kt=c:yr.L(this.ii),yr.j(this.ei,!0)}if((i=this.N.bootstrap)!=null&&i.sessionID)try{var h=(p=>{var g=p.replace(/-/g,"");if(g.length!==32)throw new Error("Not a valid UUID");if(g[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(g.substring(0,12),16)})(this.N.bootstrap.sessionID);this.si(this.N.bootstrap.sessionID,new Date().getTime(),h)}catch(p){f0.error("Invalid sessionID in bootstrap",p)}this.ni()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return je(this.Gt)&&(this.Gt=[]),this.Gt.push(e),this.Xt&&e(this.Xt,this.Kt),()=>{this.Gt=this.Gt.filter((n=>n!==e))}}ri(){return this.N.persistence!=="memory"&&!this.Bt.st&&yr.F()}oi(e){e!==this.Kt&&(this.Kt=e,this.ri()&&yr.j(this.ii,e))}ai(){return this.Kt?this.Kt:this.ri()?yr.D(this.ii):null}si(e,n,r){e===this.Xt&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.Xt=e,this.Bt.register({[Mm]:[n,e,r]}))}li(){var e=this.Bt.props[Mm];return Lt(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.si(null,null,null)}destroy(){clearTimeout(this.ui),this.ui=void 0,this.Yt&&se&&(se.removeEventListener("beforeunload",this.Yt,{capture:!1}),this.Yt=void 0),this.Gt=[]}ni(){this.Yt=()=>{this.ri()&&yr.L(this.ei)},Wn(se,"beforeunload",this.Yt,{capture:!1})}checkAndGetSessionAndWindowId(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=null),this.N.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[i,s,o]=this.li(),c=this.ai(),f=Dc(o)&&Math.abs(r-o)>864e5,h=!1,p=!s,g=!p&&!e&&this.Jt(r,i);p||g||f?(s=this.Qt(),c=this.Zt(),f0.info("new session ID generated",{sessionId:s,windowId:c,changeReason:{noSessionId:p,activityTimeout:g,sessionPastMaximumLength:f}}),o=r,h=!0):c||(c=this.Zt(),h=!0);var x=Dc(i)&&e&&!f?i:r,v=Dc(o)?o:new Date().getTime();return this.oi(c),this.si(s,x,v),e||this.ti(),h&&this.Gt.forEach((w=>w(s,c,h?{noSessionId:p,activityTimeout:g,sessionPastMaximumLength:f}:void 0))),{sessionId:s,windowId:c,sessionStartTimestamp:v,changeReason:h?{noSessionId:p,activityTimeout:g,sessionPastMaximumLength:f}:void 0,lastActivityTimestamp:i}}ti(){clearTimeout(this.ui),this.ui=setTimeout((()=>{var[e]=this.li();if(this.Jt(new Date().getTime(),e)){var n=this.Xt;this.resetSessionId(),this.Wt.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var qR=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&K2(n,e))return!0;try{var r=t?.userAgentData;if(r!=null&&r.brands&&r.brands.some((i=>K2(i?.brand,e))))return!0}catch{}return!!t.webdriver},Vm=function(t,e){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function _N(t,e,n){return qd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var HR={exact:(t,e)=>e.some((n=>t.some((r=>n===r)))),is_not:(t,e)=>e.every((n=>t.every((r=>n!==r)))),regex:(t,e)=>e.some((n=>t.some((r=>Vm(n,r))))),not_regex:(t,e)=>e.every((n=>t.every((r=>!Vm(n,r))))),icontains:(t,e)=>e.map(Cp).some((n=>t.map(Cp).some((r=>n.includes(r))))),not_icontains:(t,e)=>e.map(Cp).every((n=>t.map(Cp).every((r=>!n.includes(r))))),gt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((i=>r>parseFloat(i)))})),lt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((i=>r<parseFloat(i)))}))},Cp=t=>t.toLowerCase();function GR(t,e){return!t||Object.entries(t).every((n=>{var[r,i]=n,s=e?.[r];if(je(s)||wa(s))return!1;var o=[String(s)],c=HR[i.operator];return!!c&&c(i.values,o)}))}var Hd=(function(t){return t.US="us",t.EU="eu",t.CUSTOM="custom",t})({}),wN="i.posthog.com";class eI{constructor(e){this.hi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+wN,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}
12get region(){return this.hi[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.hi[this.apiHost]=Hd.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.hi[this.apiHost]=Hd.EU:this.hi[this.apiHost]=Hd.CUSTOM),this.hi[this.apiHost]}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.uiHost+n;if(e==="flags")return this.flagsApiHost+n;if(this.region===Hd.CUSTOM)return this.apiHost+n;var r=wN+n;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Qt=Tn("[Surveys]"),VR="seenSurvey_",tI=(t,e)=>{var n="$survey_"+e+"/"+t.id;return t.current_iteration&&t.current_iteration>0&&(n="$survey_"+e+"/"+t.id+"/"+t.current_iteration),n},SN=t=>((e,n)=>{var r=""+e+n.id;return n.current_iteration&&n.current_iteration>0&&(r=""+e+n.id+"_"+n.current_iteration),r})(VR,t),nI=[l0.Popover,l0.Widget,l0.API],rI={ignoreConditions:!1,ignoreDelay:!1,displayType:o_.Popover},iI=Tn("[PostHog ExternalIntegrations]"),aI={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class sI{constructor(e){this._instance=e}G(e,n){var r;(r=qe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,e,(i=>{if(i)return iI.error("failed to load script",i);n()}))}startIfEnabledOrStop(){var e=this,n=function(o){var c,f,h;!i||(c=qe.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[o]||e.G(aI[o],(()=>{var p;(p=qe.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[o])==null||p.start(e._instance)})),!i&&(f=qe.__PosthogExtensions__)!=null&&(f=f.integrations)!=null&&f[o]&&((h=qe.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[o])==null||h.stop())};for(var[r,i]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;n(r)}}}var nf={},h0=0,h_=()=>{},Lc="posthog",KR=!YM&&ti?.indexOf("MSIE")===-1&&ti?.indexOf("Mozilla")===-1,EN=t=>{var e;return _e({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:vM(we?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:h_,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,debug:vr&&Jn(vr?.search)&&vr.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(se==null||(e=se.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:n=>{var r="Bad HTTP status: "+n.statusCode+" "+n.text;Ee.error(r)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:f_},error_tracking:{},_onCapture:h_,__preview_eager_load_replay:!1},(n=>({rageclick:!(n&&n>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(n&&n>="2025-05-24")||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},jN=t=>{var e={};je(t.process_person)||(e.person_profiles=t.process_person),je(t.xhr_headers)||(e.request_headers=t.xhr_headers),je(t.cookie_name)||(e.persistence_name=t.cookie_name),je(t.disable_cookie)||(e.disable_persistence=t.disable_cookie),je(t.store_google)||(e.save_campaign_params=t.store_google),je(t.verbose)||(e.debug=t.verbose);var n=zn({},e,t);return Lt(t.property_blacklist)&&(je(t.property_denylist)?n.property_denylist=t.property_blacklist:Lt(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:Ee.error("Invalid value for property_denylist config: "+t.property_denylist)),n};class lI{constructor(){this.__forceAllowLocalhost=!1}get di(){return this.__forceAllowLocalhost}set di(e){Ee.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Ma{vi(e,n){if(e){var r=this.ci.indexOf(e);r!==-1&&this.ci.splice(r,1)}return this.ci.push(n),n.initialize==null||n.initialize(),n}get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;
12this.webPerformance=new lI,this.fi=!1,this.version=ia.LIB_VERSION,this.pi=new Rw,this.ci=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=EN(),this.SentryIntegration=RM,this.sentryIntegration=r=>(function(i,s){var o=AR(i,s);return{name:kR,processEvent:c=>o(c)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.gi=!1,this.mi=null,this.bi=null,this.yi=null,this.scrollManager=new QM(this),this.pageViewManager=new dN(this),this.rateLimiter=new UM(this),this.requestRouter=new eI(this),this.consent=new TM(this),this.externalIntegrations=new sI(this);var n=(e=Ma.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,i,s)=>{var o=Jn(r)?{[r]:i}:r;this.setPersonProperties(o),s?.({})},set_once:(r,i,s)=>{var o=Jn(r)?{[r]:i}:r;this.setPersonProperties(void 0,o),s?.({})}},this.on("eventCaptured",(r=>Ee.info('send "'+r?.event+'"',r)))}init(e,n,r){if(r&&r!==Lc){var i,s=(i=nf[r])!==null&&i!==void 0?i:new Ma;return s._init(e,n,r),nf[r]=s,nf[Lc][r]=s,s}return this._init(e,n,r)}_init(e,n,r){var i;if(n===void 0&&(n={}),je(e)||Kb(e))return Ee.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.wi(n.debug),this.Ei=n,this.Si=[],n.person_profiles?this.bi=n.person_profiles:n.process_person&&(this.bi=n.process_person),this.set_config(zn({},EN(n.defaults),jN(n),{name:r,token:e})),this.config.on_xhr_error&&Ee.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Es.GZipJS;var s=this.xi();this.persistence=new s0(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new s0(_e({},this.config,{persistence:"sessionStorage"}),s);var o=_e({},this.persistence.props),c=_e({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.$i=new WM((_=>this.ki(_)),this.config.request_queue_config),this.Pi=new JM(this),this.__request_queue=[];var f=this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut();if(f||(this.sessionManager=new bN(this),this.sessionPropsManager=new xN(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ee.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Ti(f)}),0)):(Ee.info("Initializing extensions synchronously"),this.Ti(f)),ia.DEBUG=ia.DEBUG||this.config.debug,ia.DEBUG&&Ee.info("Starting in debug mode",{this:this,config:n,thisC:_e({},this.config),p:o,s:c}),((i=n.bootstrap)==null?void 0:i.distinctID)!==void 0){var h=n.bootstrap.distinctID,p=this.get_distinct_id(),g=this.persistence.get_property(xa);if(n.bootstrap.isIdentifiedID&&p!=null&&p!==h&&g==="anonymous")this.identify(h);else if(n.bootstrap.isIdentifiedID&&p!=null&&p!==h&&g==="identified")Ee.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var x=this.config.get_device_id(xl()),v=n.bootstrap.isIdentifiedID?x:h;this.persistence.set_property(xa,n.bootstrap.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:h,$device_id:v})}}if(f)this.register_once({distinct_id:yd,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(xl());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(xa,"anonymous")}return Wn(se,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?OM(this,(()=>this.Ri())):this.Ri(),Ns(this.config._onCapture)&&this.config._onCapture!==h_&&(Ee.w
12arn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(_=>this.config._onCapture(_.event,_)))),this.config.ip&&Ee.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Ti(e){var n,r,i,s,o,c,f,h=performance.now(),p=_e({},Ma.__defaultExtensionClasses,this.config.__extensionClasses),g=[];p.featureFlags&&this.ci.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new p.featureFlags(this)),p.exceptions&&this.ci.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new p.exceptions(this)),p.historyAutocapture&&this.ci.push(this.historyAutocapture=new p.historyAutocapture(this)),p.tracingHeaders&&this.ci.push(new p.tracingHeaders(this)),p.siteApps&&this.ci.push(this.siteApps=new p.siteApps(this)),p.sessionRecording&&!e&&this.ci.push(this.sessionRecording=new p.sessionRecording(this)),this.config.disable_scroll_properties||g.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),p.autocapture&&this.ci.push(this.autocapture=new p.autocapture(this)),p.surveys&&this.ci.push(this.surveys=(i=this.surveys)!==null&&i!==void 0?i:new p.surveys(this)),p.logs&&this.ci.push(this.logs=(s=this.logs)!==null&&s!==void 0?s:new p.logs(this)),p.conversations&&this.ci.push(this.conversations=(o=this.conversations)!==null&&o!==void 0?o:new p.conversations(this)),p.productTours&&this.ci.push(this.productTours=new p.productTours(this)),p.heatmaps&&this.ci.push(this.heatmaps=new p.heatmaps(this)),p.webVitalsAutocapture&&this.ci.push(this.webVitalsAutocapture=new p.webVitalsAutocapture(this)),p.exceptionObserver&&this.ci.push(this.exceptionObserver=new p.exceptionObserver(this)),p.deadClicksAutocapture&&this.ci.push(this.deadClicksAutocapture=new p.deadClicksAutocapture(this,AM)),p.toolbar&&this.ci.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new p.toolbar(this)),p.experiments&&this.ci.push(this.experiments=(f=this.experiments)!==null&&f!==void 0?f:new p.experiments(this)),this.ci.forEach((x=>{x.initialize&&g.push((()=>{x.initialize==null||x.initialize()}))})),g.push((()=>{if(this.Ii){var x=this.Ii;this.Ii=void 0,this.ft(x)}})),this.Ci(g,h)}Ci(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout((()=>{this.Ci(e,n)}),0);var r=e.shift();if(r)try{r()}catch(s){Ee.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-n);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:i}),this.config.__preview_deferred_init_extensions&&Ee.info("PostHog extensions initialized ("+i+"ms)")}ft(e){var n;if(!we||!we.body)return Ee.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.ft(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Ii=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=wt(e.supportedCompression,Es.GZipJS)?Es.GZipJS:wt(e.supportedCompression,Es.Base64)?Es.Base64:void 0),(n=e.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.bi?this.bi:"identified_only"}),this.ci.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(e)))}Ri(){try{this.config.loaded(this)}catch(r){Ee.critical("`loaded` function failed",r)}if(this.Oi(),this.config.internal_or_test_user_hostname&&vr!=null&&vr.hostname){var e=vr.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.config.cookieless_mode==="always")&&this.Fi()}),1),this.Mi=new IR(this),this.Mi.load()}Oi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.$i)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Nl(this.__request_queue,(e=>this.ki(e))),this.__request_queue=[],this.Oi()}_handle_unload(){var e,n,r;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Ai()&&this.capture("$pageleave"),(n=this.$i)==null||n.unload(),(r=this.Pi)==null||r.unload()):this.Ai()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(KR?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=Gm(e.url,{ip:this.config.ip?1:0}),e.headers=_e({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
12(n=>{var r,i,s,o=_e({},n);o.timeout=o.timeout||6e4,o.url=Gm(o.url,{_:new Date().getTime().toString(),ver:ia.JS_SDK_VERSION,compression:o.compression});var c=(r=o.transport)!==null&&r!==void 0?r:"fetch",f=hm.filter((p=>!o.disableTransport||!p.transport||!o.disableTransport.includes(p.transport))),h=(i=(s=_R(f,(p=>p.transport===c)))==null?void 0:s.method)!==null&&i!==void 0?i:f[0].method;if(!h)throw new Error("No available transport method");h(o)})(_e({},e,{callback:n=>{var r,i;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((r=(i=this.config).on_request_error)==null||r.call(i,n)),e.callback==null||e.callback(n)}}))))}ki(e){this.Pi?this.Pi.retriableRequest(e):this._send_request(e)}_execute_array(e){h0++;try{var n,r=[],i=[],s=[];Nl(e,(c=>{c&&(n=c[0],Lt(n)?s.push(c):Ns(c)?c.call(this):Lt(c)&&n==="alias"?r.push(c):Lt(c)&&n.indexOf("capture")!==-1&&Ns(this[n])?s.push(c):i.push(c))}));var o=function(c,f){Nl(c,(function(h){if(Lt(h[0])){var p=f;un(h,(function(g){p=p[g[0]].apply(p,g.slice(1))}))}else this[h[0]].apply(this,h.slice(1))}),f)};o(r,this),o(i,this),o(s,this)}finally{h0--}}push(e){if(h0>0&&Lt(e)&&Jn(e[0])){var n=Ma.prototype[e[0]];Ns(n)&&n.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,n,r){var i;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.$i){if(this.is_capturing())if(!je(e)&&Jn(e)){var s=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(s&&!this.config.__preview_capture_bot_pageviews)){var o=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(o==null||!o.isRateLimited){n!=null&&n.$current_url&&!Jn(n?.$current_url)&&(Ee.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),e!=="$exception"||r!=null&&r.Di||Ee.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var c=new Date,f=r?.timestamp||c,h=xl(),p={uuid:h,event:e,properties:this.calculateEventProperties(e,n||{},f,h)};e==="$pageview"&&this.config.__preview_capture_bot_pageviews&&s&&(p.event="$bot_pageview",p.properties.$browser_type="bot"),o&&(p.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),r?.$set&&(p.$set=r?.$set);var g,x=e!=="$groupidentify",v=e==="$identify",w=this.ji(r?.$set_once,x,v);if(w&&(p.$set_once=w),(p=gM(p,r!=null&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=f,je(r?.timestamp)||(p.properties.$event_time_override_provided=!0,p.properties.$event_time_override_system_time=c),e===Fd.DISMISSED||e===Fd.SENT){var _=n?.[o0.SURVEY_ID],S=n?.[o0.SURVEY_ITERATION];g={id:_,current_iteration:S},localStorage.getItem(SN(g))||localStorage.setItem(SN(g),"true"),p.$set=_e({},p.$set,{[tI({id:_,current_iteration:S},e===Fd.SENT?"responded":"dismissed")]:!0})}else e===Fd.SHOWN&&(p.$set=_e({},p.$set,{[o0.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===zM.SHOWN){var E=n?.[hN.TOUR_TYPE];E&&(p.$set=_e({},p.$set,{[hN.TOUR_LAST_SEEN_DATE+"/"+E]:new Date().toISOString()}))}var N=_e({},p.properties.$set,p.$set);if($c(N)||this.setPersonPropertiesForFlags(N),!Tt(this.config.before_send)){var k=this.Li(p);if(!k)return;p=k}
12this.pi.emit("eventCaptured",p);var R={method:"POST",url:(i=r?._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:p,compression:"best-available",batchKey:r?._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.ki(R):this.$i.enqueue(R),p}Ee.critical("This capture call is ignored due to client rate limiting.")}}else Ee.error("No event name provided to posthog.capture")}else Ee.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(n=>e(n.event,n)))}calculateEventProperties(e,n,r,i,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=s?void 0:this.persistence.remove_event_timer(e),c=_e({},n);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,(this.config.cookieless_mode=="always"||this.config.cookieless_mode=="on_reject"&&this.consent.isExplicitlyOptedOut())&&(c.$cookieless_mode=!0),e==="$snapshot"){var f=_e({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=f.distinct_id,(!Jn(c.distinct_id)&&!Ka(c.distinct_id)||Kb(c.distinct_id))&&Ee.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var h,p=MM(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:g,windowId:x}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());c.$session_id=g,c.$window_id=x}this.sessionPropsManager&&zn(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&zn(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Pi)==null?void 0:v.length}catch(E){c.$sdk_debug_error_capturing_properties=String(E)}if(this.requestRouter.region===Hd.CUSTOM&&(c.$lib_custom_api_host=this.config.api_host),h=e!=="$pageview"||s?e!=="$pageleave"||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),c=zn(c,h),e==="$pageview"&&we&&(c.title=we.title),!je(o)){var w=r.getTime()-o;c.$duration=parseFloat((w/1e3).toFixed(3))}ti&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=zn({},p,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Lt(this.config.property_denylist)?un(this.config.property_denylist,(function(E){delete c[E]})):Ee.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var _=this.config.sanitize_properties;_&&(Ee.error("sanitize_properties is deprecated. Use before_send instead"),c=_(c,e));var S=this.Ni();return c.$process_person_profile=S,S&&!s&&this.Ui("_calculate_event_properties"),c}ji(e,n,r){var i;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.Ni()||this.fi&&!r)return e;var s=this.persistence.get_initial_props(),o=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),c=zn({},s,o||{},e||{}),f=this.config.sanitize_properties;return f&&(Ee.error("sanitize_properties is deprecated. Use before_send instead"),c=f(c,"$set_once")),n&&(this.fi=!0),$c(c)?void 0:c}register(e,n){var r;(r=this.persistence)==null||r.register(e,n)}register_once(e,n,r){var i;(i=this.persistence)==null||i.register_once(e,n,r)}register_for_session(e){var n;(n=this.sessionPersistence)==null||n.register(e)}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e)}zi(e,n){this.register({[e]:n})}getFeatureFlag(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(e,n)}getFeatureFlagPayload(e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(e,n)}isFeatureEnabled(e,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(e,n)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,n,r){var i;(i=this.featureFlags)==null||i.updateFlags(e,n,r)}updateEarlyAccessFeatureEnrollment(e,n,r){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(e,n,r)}getEarlyAccessFeatures(e,n,r){var i;return n===void 0&&(n=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(e,n,r)}on(e,n){return this.pi.on(e,n)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:"Surveys module not available"}),()=>{})}onSessionId(e){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(e))!==null&&n!==void 0?n:()=>{}}
12getSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(e,n):e([],{isLoaded:!1,error:"Surveys module not available"})}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,n):e([],{isLoaded:!1,error:"Surveys module not available"})}renderSurvey(e,n){var r;(r=this.surveys)==null||r.renderSurvey(e,n)}displaySurvey(e,n){var r;n===void 0&&(n=rI),(r=this.surveys)==null||r.displaySurvey(e,n)}cancelPendingSurvey(e){var n;(n=this.surveys)==null||n.cancelPendingSurvey(e)}canRenderSurvey(e){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(e))!==null&&n!==void 0?n:{visible:!1,disabledReason:"Surveys module not available"}}canRenderSurveyAsync(e,n){var r,i;return n===void 0&&(n=!1),(r=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(e,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:"Surveys module not available"})}identify(e,n,r){if(!this.__loaded||!this.persistence)return Ee.uninitializedWarning("posthog.identify");if(Ka(e)&&(e=e.toString(),Ee.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))Ee.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(e!==yd){if(this.Ui("posthog.identify")){var i=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==i&&e!==this.get_property(zd)&&(this.unregister(zd),this.register({distinct_id:e}));var o,c=(this.persistence.get_property(xa)||"anonymous")==="anonymous";e!==i&&c?(this.persistence.set_property(xa,"identified"),this.setPersonPropertiesForFlags(_e({},r||{},n||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.yi=_N(e,n,r),(o=this.featureFlags)==null||o.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),e!==i&&(this.reloadFeatureFlags(),this.unregister(ef))}}else Ee.critical('The string "'+yd+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Ee.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,n){if((e||n)&&this.Ui("posthog.setPersonProperties")){var r=_N(this.get_distinct_id(),e,n);this.yi!==r?(this.setPersonPropertiesForFlags(_e({},n||{},e||{})),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.yi=r):Ee.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,n,r){if(e&&n){var i=this.getGroups();i[e]!==n&&this.resetGroupPropertiesForFlags(e),this.register({$groups:_e({},i,{[e]:n})}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[e]:r})),i[e]===n||r||this.reloadFeatureFlags()}else Ee.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),this.Ui("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(e,n))}resetGroupPropertiesForFlags(e){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(e)}reset(e){var n,r,i,s,o,c,f;if(Ee.info("reset"),!this.__loaded)return Ee.uninitializedWarning("posthog.reset");var h=this.get_property("$device_id");if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),(i=this.surveys)==null||i.reset(),(s=this.Mi)==null||s.stop(),(o=this.featureFlags)==null||o.reset(),(c=this.persistence)==null||c.set_property(xa,"anonymous"),(f=this.sessionManager)==null||f.resetSessionId(),this.yi=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:yd,$device_id:null},"");else{var p=this.config.get_device_id(xl());this.register_once({distinct_id:p,$device_id:e?p:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),this.reloadFeatureFlags()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(e!=null&&e.withTimestamp&&r){var s,o=(s=e.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return i}alias(e,n){return e===this.get_property(SR)?(Ee.critical("Attempting to create alias for existing People user - aborting."),-2):this.Ui("posthog.alias")?(je(n)&&(n=this.get_distinct_id()),e!==n?(this.zi(zd,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(Ee.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=_e({},this.config);if(ir(e)){var r,i,s,o,c,f,h,p,g;zn(this.config,jN(e));var x=this.xi();(r=this.persistence)==null||r.update_config(this.config,n,x),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new s0(_e({},this.config,{persistence:"sessionStorage"}),x);var v=this.wi(this.config.debug);As(v)&&(this.config.debug=v),As(this.config.debug)&&(this.config.debug?(ia.DEBUG=!0,Sn.F()&&Sn.j("ph_debug",!0),Ee.info("set_config",{config:e,oldConfig:n,newConfig:_e({},this.config)})):(ia.DEBUG=!1,Sn.F()&&Sn.L("ph_debug"))),(i=this.exceptionObserver)==null||i.onConfigChange(),(s=this.sessionRecording)==null||s.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(c=this.heatmaps)==null||c.startIfEnabled(),(f=this.exceptionObserver)==null||f.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(p=this.surveys)==null||p.loadIfEnabled(),this.Hi(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(e,n){ia.LIB_NAME=e,ia.LIB_VERSION=n}
12startSessionRecording(e){var n=e===!0,r={sampling:n||!(e==null||!e.sampling),linked_flag:n||!(e==null||!e.linked_flag),url_trigger:n||!(e==null||!e.url_trigger),event_trigger:n||!(e==null||!e.event_trigger)};if(Object.values(r).some(Boolean)){var i,s,o,c,f;(i=this.sessionManager)==null||i.checkAndGetSessionAndWindowId(),r.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),r.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),r.url_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("url")),r.event_trigger&&((f=this.sessionRecording)==null||f.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(_e({},i,n))}}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(e))!==null&&n!==void 0&&n}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:Lc;return n!==Lc&&(n=Lc+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(xa))==="identified"||((n=this.sessionPersistence)==null?void 0:n.get_property(xa))==="identified"}Ni(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&$c(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[zd])&&((n=this.persistence)==null||(n=n.props)==null||!n[Um]))}Ai(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Ni()||this.Ui("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Ui("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Ui(e){return this.config.person_profiles==="never"?(Ee.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.zi(Um,!0),!0)}xi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut(),n=this.config.opt_out_persistence_by_default||this.config.cookieless_mode==="on_reject";return this.config.disable_persistence||e&&!!n}Hi(){var e,n,r,i,s=this.xi();return((e=this.persistence)==null?void 0:e.st)!==s&&((r=this.persistence)==null||r.set_disabled(s)),((n=this.sessionPersistence)==null?void 0:n.st)!==s&&((i=this.sessionPersistence)==null||i.set_disabled(s)),s}opt_in_capturing(e){var n;if(this.config.cookieless_mode!=="always"){if(this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut()){var r,i,s,o,c;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=new bN(this),this.pageViewManager=new dN(this),this.persistence&&(this.sessionPropsManager=new xN(this,this.sessionManager,this.persistence));var f=(s=(o=this.config.__extensionClasses)==null?void 0:o.sessionRecording)!==null&&s!==void 0?s:(c=Ma.__defaultExtensionClasses)==null?void 0:c.sessionRecording;f&&(this.sessionRecording=this.vi(this.sessionRecording,new f(this)))}var h,p;this.consent.optInOut(!0),this.Hi(),this.Oi(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode=="on_reject"&&((h=this.surveys)==null||h.loadIfEnabled()),(je(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((p=e?.captureEventName)!==null&&p!==void 0?p:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Fi()}
vendor: 5,009 bytes, line 12
12else Ee.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,n,r;this.config.cookieless_mode!=="always"?(this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Hi(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:yd,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(r=this.sessionRecording)==null||r.stopRecording(),this.sessionRecording=void 0,this.Fi())):Ee.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===xs.GRANTED?"granted":e===xs.DENIED?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Hi()}_is_bot(){return Li?qR(Li,this.config.custom_blocked_useragents):void 0}Fi(){we&&(we.visibilityState==="visible"?this.gi||(this.gi=!0,this.capture("$pageview",{title:we.title},{send_instantly:!0}),this.mi&&(we.removeEventListener("visibilitychange",this.mi),this.mi=null)):this.mi||(this.mi=this.Fi.bind(this),Wn(we,"visibilitychange",this.mi)))}debug(e){e===!1?(se?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(se?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}bt(){var e,n,r,i,s,o,c,f=this.Ei||{};return"advanced_disable_flags"in f?!!f.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ee.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",i=!1,s=Ee,o=(n="advanced_disable_flags")in(e=f)&&!Tt(e[n]),c=r in e&&!Tt(e[r]),o?e[n]:c?(s&&s.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),e[r]):i)}Li(e){if(Tt(this.config.before_send))return e;var n=Lt(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var i of n){if(r=i(r),Tt(r)){var s="Event '"+e.event+"' was rejected in beforeSend function";return DP(e.event)?Ee.warn(s+". This can cause unexpected behavior."):Ee.info(s),null}r.properties&&!$c(r.properties)||Ee.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return(e=this.pageViewManager.K)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(r)})}wi(e){var n=As(e)&&!e,r=Sn.F()&&Sn.A("ph_debug")==="true";return!n&&(!!r||e)}}Ma.__defaultExtensionClasses={},(function(t,e){for(var n=0;n<e.length;n++)t.prototype[e[n]]=mM(t.prototype[e[n]])})(Ma,["identify"]);function NN(t){return t instanceof Element&&(t.id===NR||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function gg(t){return!!t&&t.nodeType===1}function Tl(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function YR(t){return!!t&&t.nodeType===3}function WR(t){return!!t&&t.nodeType===11}function Cw(t){return t?pg(t).split(/\s+/):[]}function TN(t){var e=se?.location.href;return!!(e&&t&&t.some((n=>e.match(n))))}function Km(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return Cw(e)}function XR(t){return Tt(t)?null:pg(t).split(/(\s+)/).filter((e=>Of(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Zf(t){var e="";return p_(t)&&!eC(t)&&t.childNodes&&t.childNodes.length&&un(t.childNodes,(function(n){var r;YR(n)&&n.textContent&&(e+=(r=XR(n.textContent))!==null&&r!==void 0?r:"")})),pg(e)}function kN(t){return je(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var Dw=["a","button","form","input","select","textarea","label"];function JR(t,e){if(je(e))return!0;var n,r=function(s){if(e.some((o=>s.matches(o))))return{v:!0}};for(var i of t)if(n=r(i))return n.v;return!1}function QR(t){var e=t.parentNode;return!(!e||!gg(e))&&e}var oI=["next","previous","prev",">","<"],AN=10,ON=[".ph-no-rageclick",".ph-no-capture"];function cI(t,e){if(!se||Lw(t))return!1;var n,r,i;
12if(As(e)?(n=!!e&&ON,r=void 0):(n=(i=e?.css_selector_ignorelist)!==null&&i!==void 0?i:ON,r=e?.content_ignorelist),n===!1)return!1;var{targetElementList:s}=ZR(t,!1);return!(function(o,c){if(o===!1||je(o))return!1;var f;if(o===!0)f=oI;else{if(!Lt(o))return!1;if(o.length>AN)return Ee.error("[PostHog] content_ignorelist array cannot exceed "+AN+" items. Use css_selector_ignorelist for more complex matching."),!1;f=o.map((h=>h.toLowerCase()))}return c.some((h=>{var{safeText:p,ariaLabel:g}=h;return f.some((x=>p.includes(x)||g.includes(x)))}))})(r,s.map((o=>{var c;return{safeText:Zf(o).toLowerCase(),ariaLabel:((c=o.getAttribute("aria-label"))==null?void 0:c.toLowerCase().trim())||""}})))&&!JR(s,n)}var Lw=t=>!t||Tl(t,"html")||!gg(t),ZR=(t,e)=>{if(!se||Lw(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[t],i=t;i.parentNode&&!Tl(i,"body");)if(WR(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var s=QR(i);if(!s)break;if(e||Dw.indexOf(s.tagName.toLowerCase())>-1)n=!0;else{var o=se.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(s),i=s}return{parentIsUsefulElement:n,targetElementList:r}};function uI(t,e,n,r,i){var s,o,c,f;if(n===void 0&&(n=void 0),!se||Lw(t)||(s=n)!=null&&s.url_allowlist&&!TN(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&TN(n.url_ignorelist))return!1;if((c=n)!=null&&c.dom_event_allowlist){var h=n.dom_event_allowlist;if(h&&!h.some((w=>e.type===w)))return!1}var{parentIsUsefulElement:p,targetElementList:g}=ZR(t,r);if(!(function(w,_){var S=_?.element_allowlist;if(je(S))return!0;var E,N=function(R){if(S.some((D=>R.tagName.toLowerCase()===D)))return{v:!0}};for(var k of w)if(E=N(k))return E.v;return!1})(g,n)||!JR(g,(f=n)==null?void 0:f.css_selector_allowlist))return!1;var x=se.getComputedStyle(t);if(x&&x.getPropertyValue("cursor")==="pointer"&&e.type==="click")return!0;var v=t.tagName.toLowerCase();switch(v){case"html":return!1;case"form":return(i||["submit"]).indexOf(e.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(e.type)>=0;default:return p?(i||["click"]).indexOf(e.type)>=0:(i||["click"]).indexOf(e.type)>=0&&(Dw.indexOf(v)>-1||t.getAttribute("contenteditable")==="true")}}function p_(t){for(var e=t;e.parentNode&&!Tl(e,"body");e=e.parentNode){var n=Km(e);if(wt(n,"ph-sensitive")||wt(n,"ph-no-capture"))return!1}if(wt(Km(t),"ph-include"))return!0;var r=t.type||"";if(Jn(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=t.name||t.id||"";return!(Jn(i)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function eC(t){return!!(Tl(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Tl(t,"select")||Tl(t,"textarea")||t.getAttribute("contenteditable")==="true")}var tC="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",dI=new RegExp("^(?:"+tC+")$"),fI=new RegExp(tC),nC="\\d{3}-?\\d{2}-?\\d{4}",hI=new RegExp("^("+nC+")$"),pI=new RegExp("("+nC+")");function Of(t,e){return e===void 0&&(e=!0),!(Tt(t)||Jn(t)&&(t=pg(t),(e?dI:fI).test((t||"").replace(/[- ]/g,""))||(e?hI:pI).test(t)))}function rC(t){var e=Zf(t);return Of(e=(e+" "+iC(t)).trim())?e:""}function iC(t){var e="";return t&&t.childNodes&&t.childNodes.length&&un(t.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var i=Zf(n);e=(e+" "+i).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+iC(n)).trim())}catch(s){Ee.error("[AutoCapture]",s)}})),e}function mI(t){return(function(e){var n=e.map((r=>{var i,s,o="";if(r.tag_name&&(o+=r.tag_name),r.attr_class)for(var c of(r.attr_class.sort(),r.attr_class))o+="."+c.replace(/"/g,"");var f=_e({},r.text?{text:r.text}:{},{"nth-child":(i=r.nth_child)!==null&&i!==void 0?i:0,"nth-of-type":(s=r.nth_of_type)!==null&&s!==void 0?s:0},r.href?{href:r.href}:{},r.attr_id?{attr_id:r.attr_id}:{},r.attributes),h={};return fm(f).sort(((p,g)=>{var[x]=p,[v]=g;return x.localeCompare(v)}
12)).forEach((p=>{var[g,x]=p;return h[RN(g.toString())]=RN(x.toString())})),o+=":",o+=fm(h).map((p=>{var[g,x]=p;return g+'="'+x+'"'})).join("")}));return n.join(";")})((function(e){return e.map((n=>{var r,i,s={text:(r=n.$el_text)==null?void 0:r.slice(0,400),tag_name:n.tag_name,href:(i=n.attr__href)==null?void 0:i.slice(0,2048),attr_class:gI(n),attr_id:n.attr__id,nth_child:n.nth_child,nth_of_type:n.nth_of_type,attributes:{}};return fm(n).filter((o=>{var[c]=o;return c.indexOf("attr__")===0})).forEach((o=>{var[c,f]=o;return s.attributes[c]=f})),s}))})(t))}function RN(t){return t.replace(/"|\\"/g,'\\"')}function gI(t){var e=t.attr__class;return e?Lt(e)?e:Cw(e):void 0}class CN{constructor(e){this.disabled=e===!1;var n=ir(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,r){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(n-i.y)<this.thresholdPx&&r-i.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:r}];return!1}}var p0="$copy_autocapture",DN=Tn("[AutoCapture]");function m0(t,e){return e.length>t?e.slice(0,t)+"...":e}function yI(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!gg(e));return e}function vI(t,e,n,r){var i=t.tagName.toLowerCase(),s={tag_name:i};Dw.indexOf(i)>-1&&!n&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?s.$el_text=m0(1024,rC(t)):s.$el_text=m0(1024,Zf(t)));var o=Km(t);o.length>0&&(s.classes=o.filter((function(p){return p!==""}))),un(t.attributes,(function(p){var g;if((!eC(t)||["name","id","class","aria-label"].indexOf(p.name)!==-1)&&(r==null||!r.includes(p.name))&&!e&&Of(p.value)&&(g=p.name,!Jn(g)||g.substring(0,10)!=="_ngcontent"&&g.substring(0,7)!=="_nghost")){var x=p.value;p.name==="class"&&(x=Cw(x).join(" ")),s["attr__"+p.name]=m0(1024,x)}}));for(var c=1,f=1,h=t;h=yI(h);)c++,h.tagName===t.tagName&&f++;return s.nth_child=c,s.nth_of_type=f,s}function xI(t,e){for(var n,r,{e:i,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:c,elementsChainAsString:f}=e,h=[t],p=t;p.parentNode&&!Tl(p,"body");)WR(p.parentNode)?(h.push(p.parentNode.host),p=p.parentNode.host):(h.push(p.parentNode),p=p.parentNode);var g,x=[],v={},w=!1,_=!1;if(un(h,(R=>{var D=p_(R);R.tagName.toLowerCase()==="a"&&(w=R.getAttribute("href"),w=D&&w&&Of(w)&&w),wt(Km(R),"ph-no-capture")&&(_=!0),x.push(vI(R,s,o,c));var O=(function(T){if(!p_(T))return{};var L={};return un(T.attributes,(function(M){if(M.name&&M.name.indexOf("data-ph-capture-attribute")===0){var q=M.name.replace("data-ph-capture-attribute-",""),B=M.value;q&&B&&Of(B)&&(L[q]=B)}})),L})(R);zn(v,O)})),_)return{props:{},explicitNoCapture:_};if(o||(t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?x[0].$el_text=rC(t):x[0].$el_text=Zf(t)),w){var S,E;x[0].attr__href=w;var N=(S=$m(w))==null?void 0:S.host,k=se==null||(E=se.location)==null?void 0:E.host;N&&k&&N!==k&&(g=w)}return{props:zn({$event_type:i.type,$ce_version:1},f?{}:{$elements:x},{$elements_chain:mI(x)},(n=x[0])!=null&&n.$el_text?{$el_text:(r=x[0])==null?void 0:r.$el_text}:{},g&&i.type==="click"?{$external_click_url:g}:{},v)}}var Sd=Tn("[ExceptionAutocapture]");function LN(t,e,n){try{if(!(e in t))return()=>{};var r=t[e],i=n(r);return Ns(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}var bI=Tn("[TracingHeaders]"),ll=Tn("[Web Vitals]"),PN=9e5,MN="disabled",IN="lazy_loading",Ed="awaiting_config",Dp="missing_config";Tn("[SessionRecording]");var m_="[SessionRecording]",ol=Tn(m_),_I=Tn("[Heatmaps]");function zN(t){return ir(t)&&"clientX"in t&&"clientY"in t&&Ka(t.clientX)&&Ka(t.clientY)}var UN=Tn("[Product Tours]"),g0="ph_product_tours",wI=["$set_once","$set"],cl=Tn("[SiteApps]");function xc(t,e,n){if(Tt(t))return!1;switch(n){case"exact":return t===e;case"contains":var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class SI{constructor(e){this.Bi=new Rw,this.qi=(n,r)=>this.Vi(n,r)&&this.Wi(n,r)&&this.Gi(n,r)&&this.Yi(n,r),this.Vi=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=e,this.Ji=new Set,this.Ki=new Set}init(){var e;if(!je((e=this._instance)==null?void 0:e._addCaptureHook)){var n;(n=this._instance)==null||n._addCaptureHook(((r,i)=>{this.on(r,i)}))}}register(e){var n,r;if(!je((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach((o=>{var c,f;(c=this.Ki)==null||c.add(o),(f=o.steps)==null||f.forEach((h=>{var p;(p=this.Ji)==null||p.add(h?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var i,s=new Set;e.forEach((o=>{var c;
12(c=o.steps)==null||c.forEach((f=>{f!=null&&f.selector&&s.add(f?.selector)}))})),(i=this._instance)==null||i.autocapture.setElementSelectors(s)}}on(e,n){var r;n!=null&&e.length!=0&&(this.Ji.has(e)||this.Ji.has(n?.event))&&this.Ki&&((r=this.Ki)==null?void 0:r.size)>0&&this.Ki.forEach((i=>{this.Xi(n,i)&&this.Bi.emit("actionCaptured",i.name)}))}Qi(e){this.onAction("actionCaptured",(n=>e(n)))}Xi(e,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.qi(e,r))return!0;return!1}onAction(e,n){return this.Bi.on(e,n)}Wi(e,n){if(n!=null&&n.url){var r,i=e==null||(r=e.properties)==null?void 0:r.$current_url;if(!i||typeof i!="string"||!xc(i,n.url,n.url_matching||"contains"))return!1}return!0}Gi(e,n){return!!this.Zi(e,n)&&!!this.te(e,n)&&!!this.ie(e,n)}Zi(e,n){var r;if(n==null||!n.href)return!0;var i=this.ee(e);if(i.length>0)return i.some((c=>xc(c.href,n.href,n.href_matching||"exact")));var s,o=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!o&&xc((s=o.match(/(?::|")href="(.*?)"/))?s[1]:"",n.href,n.href_matching||"exact")}te(e,n){var r;if(n==null||!n.text)return!0;var i=this.ee(e);if(i.length>0)return i.some((h=>xc(h.text,n.text,n.text_matching||"exact")||xc(h.$el_text,n.text,n.text_matching||"exact")));var s,o,c,f=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!f&&(s=(function(h){for(var p,g=[],x=/(?::|")text="(.*?)"/g;!Tt(p=x.exec(h));)g.includes(p[1])||g.push(p[1]);return g})(f),o=n.text,c=n.text_matching||"exact",s.some((h=>xc(h,o,c))))}ie(e,n){var r,i;if(n==null||!n.selector)return!0;var s=e==null||(r=e.properties)==null?void 0:r.$element_selectors;if(s!=null&&s.includes(n.selector))return!0;var o=(e==null||(i=e.properties)==null?void 0:i.$elements_chain)||"";if(n.selector_regex&&o)try{return new RegExp(n.selector_regex).test(o)}catch{return!1}return!1}ee(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e?.properties.$elements}Yi(e,n){return n==null||!n.properties||n.properties.length===0||GR(n.properties.reduce(((r,i)=>{var s=Lt(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return r[i.key]={values:s,operator:i.operator||"exact"},r}),{}),e?.properties)}}class EI{constructor(e){this._instance=e,this.re=new Map,this.se=new Map,this.ne=new Map}oe(e,n){return!!e&&GR(e.propertyFilters,n?.properties)}ae(e,n){var r=new Map;return e.forEach((i=>{var s;(s=i.conditions)==null||(s=s[n])==null||(s=s.values)==null||s.forEach((o=>{if(o!=null&&o.name){var c=r.get(o.name)||[];c.push(i.id),r.set(o.name,c)}}))})),r}le(e,n,r){var i=(r===xd.Activation?this.re:this.se).get(e),s=[];return this.ue((o=>{s=o.filter((c=>i?.includes(c.id)))})),s.filter((o=>{var c,f=(c=o.conditions)==null||(c=c[r])==null||(c=c.values)==null?void 0:c.find((h=>h.name===e));return this.oe(f,n)}))}register(e){var n;je((n=this._instance)==null?void 0:n._addCaptureHook)||(this.he(e),this.de(e))}de(e){var n=e.filter((r=>{var i,s;return((i=r.conditions)==null?void 0:i.actions)&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));n.length!==0&&(this.ve==null&&(this.ve=new SI(this._instance),this.ve.init(),this.ve.Qi((r=>{this.onAction(r)}))),n.forEach((r=>{var i,s,o,c,f;r.conditions&&(i=r.conditions)!=null&&i.actions&&(s=r.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((c=this.ve)==null||c.register(r.conditions.actions.values),(f=r.conditions)==null||(f=f.actions)==null||(f=f.values)==null||f.forEach((h=>{if(h&&h.name){var p=this.ne.get(h.name);p&&p.push(r.id),this.ne.set(h.name,p||[r.id])}})))})))}he(e){var n,r=e.filter((s=>{var o,c;return((o=s.conditions)==null?void 0:o.events)&&((c=s.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),i=e.filter((s=>{var o,c;return((o=s.conditions)==null?void 0:o.cancelEvents)&&((c=s.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));(r.length!==0||i.length!==0)&&((n=this._instance)==null||n._addCaptureHook(((s,o)=>{this.onEvent(s,o)})),this.re=this.ae(e,xd.Activation),this.se=this.ae(e,xd.Cancellation))}onEvent(e,n){var r,i=this.ce(),s=this.fe(),o=this.pe(),c=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[s])||[];if(o===e&&n&&c.length>0){var f,h;i.info("event matched, removing item from activated items",{event:e,eventPayload:n,existingActivatedItems:c});var p=(n==null||(f=n.properties)==null?void 0:f.$survey_id)||(n==null||(h=n.properties)==null?void 0:h.$product_tour_id);if(p){var g=c.indexOf(p);g>=0&&(c.splice(g,1),this._e(c))}}else{if(this.se.has(e)){var x=this.le(e,n,xd.Cancellation);x.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:x.map((w=>w.id))}),x.forEach((w=>{var _=c.indexOf(w.id);_>=0&&c.splice(_,1),this.ge(w.id)})),this._e(c))}
12if(this.re.has(e)){i.info("event name matched",{event:e,eventPayload:n,items:this.re.get(e)});var v=this.le(e,n,xd.Activation);this._e(c.concat(v.map((w=>w.id))||[]))}}}onAction(e){var n,r=this.fe(),i=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.ne.has(e)&&this._e(i.concat(this.ne.get(e)||[]))}_e(e){var n,r=this.ce(),i=this.fe(),s=[...new Set(e)].filter((o=>!this.me(o)));r.info("updating activated items",{activatedItems:s}),(n=this._instance)==null||(n=n.persistence)==null||n.register({[i]:s})}getActivatedIds(){var e,n=this.fe(),r=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n];return r||[]}getEventToItemsMap(){return this.re}be(){return this.ve}}class jI extends EI{constructor(e){super(e)}fe(){return"$surveys_activated"}pe(){return Fd.SHOWN}ue(e){var n;(n=this._instance)==null||n.getSurveys(e)}ge(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}ce(){return Qt}me(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var NI=se!=null&&se.location?qm(se.location.hash,"__posthog")||qm(location.hash,"state"):null,BN="_postHogToolbarParams",$N=Tn("[Toolbar]"),pl=(function(t){return t[t.UNINITIALIZED=0]="UNINITIALIZED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED",t})(pl||{}),zr=Tn("[FeatureFlags]"),no=Tn("[FeatureFlags]",{debugEnabled:!0}),TI="errors_while_computing_flags",kI="flag_missing",AI="quota_limited",OI="timeout",RI="connection_error",CI="unknown_error",DI=t=>"api_error_"+t,y0="$active_feature_flags",ul="$override_feature_flags",FN="$feature_flag_payloads",jd="$override_feature_flag_payloads",qN="$feature_flag_request_id",HN=t=>{for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e},GN=t=>{var e={};for(var[n,r]of fm(t||{}))r&&(e[n]=r);return e},LI=t=>{var e=t.flags;return e?(t.featureFlags=Object.fromEntries(Object.keys(e).map((n=>{var r;return[n,(r=e[n].variant)!==null&&r!==void 0?r:e[n].enabled]}))),t.featureFlagPayloads=Object.fromEntries(Object.keys(e).filter((n=>e[n].enabled)).filter((n=>{var r;return(r=e[n].metadata)==null?void 0:r.payload})).map((n=>{var r;return[n,(r=e[n].metadata)==null?void 0:r.payload]})))):zr.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),t},PI=(function(t){return t.FeatureFlags="feature_flags",t.Recordings="recordings",t})({}),v0=Tn("[Error tracking]"),MI={icontains:(t,e)=>!!se&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!se&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!se&&Vm(e.href,t),not_regex:(t,e)=>!!se&&!Vm(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class Sr{constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((i=>{Sr.ye("retrieved web experiments from the server"),n.we=new Map,i.forEach((s=>{if(s.feature_flag_key){var o;n.we&&(Sr.ye("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=n.we)==null||o.set(s.feature_flag_key,s));var c=n._instance.getFeatureFlag(s.feature_flag_key);Jn(c)&&s.variants[c]&&n.Ee(s.name,c,s.variants[c].transforms)}else if(s.variants)for(var f in s.variants){var h=s.variants[f];Sr.Se(h)&&n.Ee(s.name,f,h.transforms)}}))}),r)},this._instance=e,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())Sr.ye("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(Tt(this.we))return this.we=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Sr.ye("applying feature flags",e),e.forEach((n=>{var r;if(this.we&&(r=this.we)!=null&&r.has(n)){var i,s=this._instance.getFeatureFlag(n),o=(i=this.we)==null?void 0:i.get(n);s&&o!=null&&o.variants[s]&&this.Ee(o.name,s,o.variants[s].transforms)}}))}}previewWebExperiment(){var e=Sr.getWindowLocation();if(e!=null&&e.search){var n=Fm(e?.search,"__experiment_id"),r=Fm(e?.search,"__experiment_variant");n&&r&&(Sr.ye("previewing web experiments "+n+" && "+r),this.getWebExperiments((i=>{this.xe(parseInt(n),r,i)}),!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,r){if(this._instance.config.disable_web_experiments&&!r)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!n)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:s=>{if(s.statusCode!==200||!s.json)return e([]);var o=s.json.experiments||[];return e(o)}})}xe(e,n,r){var i=r.filter((s=>s.id===e));i&&i.length>0&&(Sr.ye("Previewing web experiment ["+i[0].name+"] with variant ["+n+"]"),this.Ee(i[0].name,n,i[0].variants[n].transforms))}static Se(e){return!Tt(e.conditions)&&Sr.$e(e)&&Sr.ke(e)}static $e(e){var n;if(Tt(e.conditions)||Tt((n=e.conditions)==null?void 0:n.url))return!0;var r,i,s,o=Sr.getWindowLocation();return!!o&&((r=e.conditions)==null||!r.url||MI[(i=(s=e.conditions)==null?void 0:s.urlMatchType)!==null&&i!==void 0?i:"icontains"](e.conditions.url,o))}
12static getWindowLocation(){return se?.location}static ke(e){var n;if(Tt(e.conditions)||Tt((n=e.conditions)==null?void 0:n.utm))return!0;var r=OR();if(r.utm_source){var i,s,o,c,f,h,p,g,x=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,v=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==r.utm_source,w=(f=e.conditions)==null||(f=f.utm)==null||!f.utm_medium||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_medium)==r.utm_medium,_=(p=e.conditions)==null||(p=p.utm)==null||!p.utm_term||((g=e.conditions)==null||(g=g.utm)==null?void 0:g.utm_term)==r.utm_term;return x&&w&&_&&v}return!1}static ye(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Ee.info("[WebExperiments] "+e,r)}Ee(e,n,r){this._is_bot()?Sr.ye("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach((i=>{if(i.selector){var s;Sr.ye("applying transform of variant "+n+" for experiment "+e+" ",i);var o=(s=document)==null?void 0:s.querySelectorAll(i.selector);o?.forEach((c=>{var f=c;i.html&&(f.innerHTML=i.html),i.css&&f.setAttribute("style",i.css)}))}})):Sr.ye("Control variants leave the page unmodified.")}_is_bot(){return Li&&this._instance?qR(Li,this._instance.config.custom_blocked_useragents):void 0}}var ta=Tn("[Conversations]"),yg={featureFlags:class{constructor(t){this.Pe=!1,this.Te=!1,this.Re=!1,this.Ie=!1,this.Ce=!1,this.Oe=!1,this.Fe=!1,this.Me=!1,this._instance=t,this.featureFlagEventHandlers=[]}Ae(){var t,e;return(t=(e=this._instance.persistence)==null?void 0:e.nt(this._instance.config.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}De(){return!!this.Ae()&&(this.Me||this.Re||(this.Me=!0,zr.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}je(){var t,e=(t=this._instance.config.evaluation_contexts)!==null&&t!==void 0?t:this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.Fe||(zr.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Fe=!0),e!=null&&e.length?e.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||zr.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}Le(){return this.je().length>0}initialize(){var t,e,{config:n}=this._instance,r=(t=(e=n.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(r).length){var i,s,o=(i=(s=n.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&i!==void 0?i:{},c=Object.keys(r).filter((h=>!!r[h])).reduce(((h,p)=>(h[p]=r[p]||!1,h)),{}),f=Object.keys(o).filter((h=>c[h])).reduce(((h,p)=>(o[p]&&(h[p]=o[p]),h)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:f})}}updateFlags(t,e,n){var r=n!=null&&n.merge?this.getFlagVariants():{},i=n!=null&&n.merge?this.getFlagPayloads():{},s=_e({},r,t),o=_e({},i,e),c={};for(var[f,h]of Object.entries(s)){var p=typeof h=="string";c[f]={key:f,enabled:!!p||!!h,variant:p?h:void 0,reason:void 0,metadata:je(o?.[f])?void 0:{id:0,version:void 0,description:void 0,payload:o[f]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Te}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(e_),e=this._instance.get_property(ul),n=this._instance.get_property(jd);if(!n&&!e)return t||{};var r=zn({},t||{}),i=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var s of i){var o,c,f=r[s],h=e?.[s],p=je(h)?(o=f?.enabled)!==null&&o!==void 0&&o:!!h,g=je(h)?f.variant:typeof h=="string"?h:void 0,x=n?.[s],v=_e({},f,{enabled:p,variant:p?g??f?.variant:void 0});p!==f?.enabled&&(v.original_enabled=f?.enabled),g!==f?.variant&&(v.original_variant=f?.variant),x&&(v.metadata=_e({},f?.metadata,{payload:x,original_payload:f==null||(c=f.metadata)==null?void 0:c.payload})),r[s]=v}return this.Pe||(zr.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:r}),this.Pe=!0),r}getFlagVariants(){var t=this._instance.get_property(Fc),e=this._instance.get_property(ul);if(!e)return t||{};for(var n=zn({},t),r=Object.keys(e),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return this.Pe||(zr.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.Pe=!0),n}getFlagPayloads(){var t=this._instance.get_property(FN),e=this._instance.get_property(jd);if(!e)return t||{};for(var n=zn({},t||{}),r=Object.keys(e),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return this.Pe||(zr.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.Pe=!0),n}reloadFeatureFlags(){this.Ie||this._instance.config.advanced_disable_feature_flags||this.Ne||(this._instance.pi.emit("featureFlagsReloading",!0),this.Ne=setTimeout((()=>{this.Ue()}),5))}ze(){clearTimeout(this.Ne),this.Ne=void 0}ensureFlagsLoaded(){this.Te||this.Re||this.Ne||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.Ie=t}Ue(t){var e;if(this.ze(),!this._instance.bt())if(this.Re)this.Ce=!0;else{var n=this._instance.config.token,r=this._instance.get_property("$device_id"),i={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:_e({},((e=this._instance.persistence)==null?void 0:e.get_initial_props())||{},this._instance.get_property($d)||{}),group_properties:this._instance.get_property(oo),timezone:MR()};wa(r)||je(r)||(i.$device_id=r),(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.Le()&&(i.evaluation_contexts=this.je());var s=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+s);this.Re=!0,this._instance._send_request({method:"POST",url:o,data:i,compression:this._instance.config.disable_compression?void 0:Es.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:c=>{var f,h,p,g=!0;if(c.statusCode===200&&(this.Ce||(this.$anon_distinct_id=void 0),g=!1),this.Re=!1,!i.disable_flags||this.Ce){this.Oe=!g;var x=[];c.error?c.error instanceof Error?x.push(c.error.name==="AbortError"?OI:RI):x.push(CI):c.statusCode!==200&&x.push(DI(c.statusCode)),(f=c.json)!=null&&f.errorsWhileComputingFlags&&x.push(TI);var v=!((h=c.json)==null||(h=h.quotaLimited)==null||!h.includes(PI.FeatureFlags));if(v&&x.push(AI),(p=this._instance.persistence)==null||p.register({[r_]:x}),v)zr.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var w;i.disable_flags||this.receivedFeatureFlags((w=c.json)!==null&&w!==void 0?w:{},g),this.Ce&&(this.Ce=!1,this.Ue())}}}})}}getFeatureFlag(t,e){var n;if(e===void 0&&(e={}),!e.fresh||this.Oe)if(this.Te||this.getFlags()&&this.getFlags().length>0){if(!this.De()){var r=this.getFeatureFlagResult(t,e);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else zr.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.Oe)if(this.Te||this.getFlags()&&this.getFlags().length>0){if(!this.De()){var n=this.getFlagVariants(),r=t in n,i=n[t],s=this.getFlagPayloads()[t],o=String(i),c=this._instance.get_property(qN)||void 0,f=this._instance.get_property(Im)||void 0,h=this._instance.get_property(ef)||{};if(this._instance.config.advanced_feature_flags_dedup_per_session){var p,g=this._instance.get_session_id(),x=this._instance.get_property(n_);g&&g!==x&&(h={},(p=this._instance.persistence)==null||p.register({[ef]:h,[n_]:g}))}if((e.send_event||!("send_event"in e))&&(!(t in h)||!h[t].includes(o))){var v,w,_,S,E,N,k,R,D,O;Lt(h[t])?h[t].push(o):h[t]=[o],(v=this._instance.persistence)==null||v.register({[ef]:h});var T=this.getFeatureFlagDetails(t),L=[...(w=this._instance.get_property(r_))!==null&&w!==void 0?w:[]];je(i)&&L.push(kI);var M={$feature_flag:t,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:f,$feature_flag_bootstrapped_response:((_=this._instance.config.bootstrap)==null||(_=_.featureFlags)==null?void 0:_[t])||null,$feature_flag_bootstrapped_payload:((S=this._instance.config.bootstrap)==null||(S=S.featureFlagPayloads)==null?void 0:S[t])||null,$used_bootstrap_value:!this.Oe};je(T==null||(E=T.metadata)==null?void 0:E.version)||(M.$feature_flag_version=T.metadata.version);var q,B=(N=T==null||(k=T.reason)==null?void 0:k.description)!==null&&N!==void 0?N:T==null||(R=T.reason)==null?void 0:R.code;B&&(M.$feature_flag_reason=B),T!=null&&(D=T.metadata)!=null&&D.id&&(M.$feature_flag_id=T.metadata.id),je(T?.original_variant)&&je(T?.original_enabled)||(M.$feature_flag_original_response=je(T.original_variant)?T.original_enabled:T.original_variant),T!=null&&(O=T.metadata)!=null&&O.original_payload&&(M.$feature_flag_original_payload=T==null||(q=T.metadata)==null?void 0:q.original_payload),L.length&&(M.$feature_flag_error=L.join(",")),this._instance.capture("$feature_flag_called",M)}if(r){var I=s;if(!je(s))try{I=JSON.parse(s)}catch{}return{key:t,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:I}}}}else zr.warn('getFeatureFlagResult for key "'+t+`" failed. Feature flags didn't load in time.`)}getRemoteConfigPayload(t,e){var n=this._instance.config.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.Le()&&(r.evaluation_contexts=this.je()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this._instance.config.disable_compression?void 0:Es.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:i=>{var s,o=(s=i.json)==null?void 0:s.featureFlagPayloads;e(o?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.Oe){if(this.Te||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,e);return je(n)?void 0:!!n}zr.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e){if(this._instance.persistence){this.Te=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(s,o,c,f,h){c===void 0&&(c={}),f===void 0&&(f={}),h===void 0&&(h={});var p=LI(s),g=p.flags,x=p.featureFlags,v=p.featureFlagPayloads;if(x){var w=s.requestId,_=s.evaluatedAt;if(Lt(x)){zr.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var S={};if(x)for(var E=0;E<x.length;E++)S[x[E]]=!0;o&&o.register({[y0]:x,[Fc]:S})}else{var N=x,k=v,R=g;if(s.errorsWhileComputingFlags)if(g){var D=new Set(Object.keys(g).filter((O=>{var T;return!((T=g[O])!=null&&T.failed)})));N=_e({},c,Object.fromEntries(Object.entries(N).filter((O=>{var[T]=O;return D.has(T)})))),k=_e({},f,Object.fromEntries(Object.entries(k||{}).filter((O=>{var[T]=O;return D.has(T)})))),R=_e({},h,Object.fromEntries(Object.entries(R||{}).filter((O=>{var[T]=O;return D.has(T)}))))}else N=_e({},c,N),k=_e({},f,k),R=_e({},h,R);o&&o.register(_e({[y0]:Object.keys(GN(N)),[Fc]:N||{},[FN]:k||{},[e_]:R||{}},w?{[qN]:w}:{},_?{[Im]:_}:{}))}}})(t,this._instance.persistence,n,r,i),e||(this.Me=!1),this.He(e)}}override(t,e){e===void 0&&(e=!1),zr.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return zr.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(ul),this._instance.persistence.unregister(jd),this.He(),no.info("All overrides cleared");if(Lt(t)){var e=HN(t);return this._instance.persistence.register({[ul]:e}),this.He(),no.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.Pe=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this._instance.persistence.unregister(ul),no.info("Flag overrides cleared");else if(r.flags){if(Lt(r.flags)){var i=HN(r.flags);this._instance.persistence.register({[ul]:i})}else this._instance.persistence.register({[ul]:r.flags});no.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this._instance.persistence.unregister(jd),no.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[jd]:r.payloads}),no.info("Payload overrides set",{payloads:r.payloads}))),void this.He()}if(t&&typeof t=="object")return this._instance.persistence.register({[ul]:t}),this.He(),no.info("Flag overrides set",{flags:t});zr.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Te){var{flags:e,flagVariants:n}=this.Be();t(e,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,n){var r,i=(this._instance.get_property(Bd)||[]).find((f=>f.flagKey===t)),s={["$feature_enrollment/"+t]:e},o={$feature_flag:t,$feature_enrollment:e,$set:s};i&&(o.$early_access_feature_name=i.name),n&&(o.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(s,!1);var c=_e({},this.getFlagVariants(),{[t]:e});(r=this._instance.persistence)==null||r.register({[y0]:Object.keys(GN(c)),[Fc]:c}),this.He()}getEarlyAccessFeatures(t,e,n){e===void 0&&(e=!1);var r=this._instance.get_property(Bd),i=n?"&"+n.map((s=>"stage="+s)).join("&"):"";if(r&&!e)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:s=>{var o,c;if(s.json){var f=s.json.earlyAccessFeatures;return(o=this._instance.persistence)==null||o.unregister(Bd),(c=this._instance.persistence)==null||c.register({[Bd]:f}),t(f)}}})}Be(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((n=>e[n])),flagVariants:Object.keys(e).filter((n=>e[n])).reduce(((n,r)=>(n[r]=e[r],n)),{})}}He(t){var{flags:e,flagVariants:n}=this.Be();
12this.featureFlagEventHandlers.forEach((r=>r(e,n,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this._instance.get_property($d)||{};this._instance.register({[$d]:_e({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister($d)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this._instance.get_property(oo)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=_e({},n[r],t[r]),delete t[r]})),this._instance.register({[oo]:_e({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this._instance.get_property(oo)||{};this._instance.register({[oo]:_e({},e,{[t]:{}})})}else this._instance.unregister(oo)}reset(){this.Te=!1,this.Re=!1,this.Ie=!1,this.Ce=!1,this.Oe=!1,this.$anon_distinct_id=void 0,this.ze(),this.Pe=!1}}},II={sessionRecording:class{get started(){var t;return!((t=this.qe)==null||!t.isStarted)}get status(){var t,e;return this.Ve===Ed||this.Ve===Dp?this.Ve:(t=(e=this.qe)==null?void 0:e.status)!==null&&t!==void 0?t:this.Ve}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.Ve=MN,this.We=void 0,this._instance=t,!this._instance.sessionManager)throw ol.error("started without valid sessionManager"),new Error(m_+" started without valid sessionManager. This is a bug.");if(this._instance.config.cookieless_mode==="always")throw new Error(m_+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Ge(){var t,e=!((t=this._instance.get_property(kp))==null||!t.enabled),n=!this._instance.config.disable_session_recording,r=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return se&&e&&n&&!r}startIfEnabledOrStop(t){var e;if(!this.Ge||(e=this.qe)==null||!e.isStarted){var n=!je(Object.assign)&&!je(Array.from);this.Ge&&n?(this.Ye(t),ol.info("starting")):(this.Ve=MN,this.stopRecording())}}Ye(t){var e,n,r;this.Ge&&(this.Ve!==Ed&&this.Ve!==Dp&&(this.Ve=IN),qe!=null&&(e=qe.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(n=qe.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Je(t):(r=qe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.Ke,(i=>{if(i)return ol.error("could not load recorder",i);this.Je(t)})))}stopRecording(){var t,e;(t=this.We)==null||t.call(this),this.We=void 0,(e=this.qe)==null||e.stop()}Xe(){var t,e;(t=this.We)==null||t.call(this),this.We=void 0,(e=this.qe)==null||e.discard()}Qe(){var t;(t=this._instance.persistence)==null||t.unregister(jR)}Ze(t,e){if(Tt(t))return null;var n,r=Ka(t)?t:parseFloat(t);return typeof(n=r)=="number"&&Number.isFinite(n)&&n>=0&&n<=1?r:(ol.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null)}tr(t){if(this._instance.persistence){var e,n,r=this._instance.persistence,i=()=>{var s,o=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.Ze((s=this._instance.config.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),f=this.Ze(o?.sampleRate,"remote config sampleRate"),h=c??f;Tt(h)&&this.Qe();var p=o?.minimumDurationMilliseconds;r.register({[kp]:_e({cache_timestamp:Date.now(),enabled:!!o},o,{networkPayloadCapture:_e({capturePerformance:t.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:h,minimumDurationMilliseconds:je(p)?null:p,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers})})};i(),(e=this.We)==null||e.call(this),this.We=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(i)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.tr(t),void this.Xe()):(this.tr(t),void this.startIfEnabledOrStop()):(this.Ve===Ed&&(this.Ve=Dp,ol.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var n;e===void 0&&(e="log"),(n=this.qe)!=null&&n.log?this.qe.log(t,e):ol.warn("log called before recorder was ready")}get Ke(){var t,e,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(kp);return(n==null||(e=n.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}ir(){var t,e=this._instance.get_property(kp);if(!e)return!1;var n=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return Date.now()-n<=36e5}Je(t){var e,n;if((e=qe.__PosthogExtensions__)==null||!e.initSessionRecording)return ol.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({$sdk_debug_recording_script_not_loaded:!0});if(this.qe||(this.qe=(n=qe.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.qe._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.ir())return this.Ve===Dp||this.Ve===Ed?void 0:(this.Ve=Ed,ol.info("persisted remote config is stale, requesting fresh config before starting"),void new IR(this._instance).load());this.Ve=IN,this.qe.start(t)}onRRwebEmit(t){var e;(e=this.qe)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.qe||(e=this._instance.persistence)==null||e.register({$replay_override_linked_flag:!0}),(t=this.qe)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.qe||(e=this._instance.persistence)==null||e.register({$replay_override_sampling:!0}),(t=this.qe)==null||t.overrideSampling()}overrideTrigger(t){var e,n;this.qe||(n=this._instance.persistence)==null||n.register({[t==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}
12),(e=this.qe)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.qe)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var n;return!((n=this.qe)==null||!n.tryAddCustomEvent(t,e))}}},zI={autocapture:class{constructor(t){this.er=!1,this.rr=null,this.sr=!1,this.instance=t,this.rageclicks=new CN(t.config.rageclick),this.nr=null}initialize(){this.startIfEnabled()}get N(){var t,e,n=ir(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map((r=>new RegExp(r))),n.url_ignorelist=(e=n.url_ignorelist)==null?void 0:e.map((r=>new RegExp(r))),n}ar(){if(this.isBrowserSupported()){if(se&&we){var t=n=>{n=n||se?.event;try{this.lr(n)}catch(r){DN.error("Failed to capture event",r)}};if(Wn(we,"submit",t,{capture:!0}),Wn(we,"change",t,{capture:!0}),Wn(we,"click",t,{capture:!0}),this.N.capture_copied_text){var e=n=>{n=n||se?.event,this.lr(n,p0)};Wn(we,"copy",e,{capture:!0}),Wn(we,"cut",e,{capture:!0})}}}else DN.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.er&&(this.ar(),this.er=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.sr=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[nN]:!!t.autocapture_opt_out}),this.rr=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.nr=t}getElementSelectors(t){var e,n=[];return(e=this.nr)==null||e.forEach((r=>{var i=we?.querySelectorAll(r);i?.forEach((s=>{t===s&&n.push(r)}))})),n}get isEnabled(){var t,e,n=(t=this.instance.persistence)==null?void 0:t.props[nN],r=this.rr;if(wa(r)&&!As(n)&&!this.instance.bt())return!1;var i=(e=this.rr)!==null&&e!==void 0?e:!!n;return!!this.instance.config.autocapture&&!i}lr(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var n,r=kN(t);YR(r)&&(r=r.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&cI(r,this.instance.config.rageclick)&&this.lr(t,"$rageclick");var i=e===p0;if(r&&uI(r,t,this.N,i,i?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:o}=xI(r,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.N.element_attribute_ignorelist,elementsChainAsString:this.sr});if(o)return!1;var c=this.getElementSelectors(r);if(c&&c.length>0&&(s.$element_selectors=c),e===p0){var f,h=XR(se==null||(f=se.getSelection())==null?void 0:f.toString()),p=t.type||"clipboard";if(!h)return!1;s.$selected_content=h,s.$copy_type=p}return this.instance.capture(e,s),!0}}}isBrowserSupported(){return Ns(we?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.ur=(se==null||(e=se.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ee.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.hr&&this.hr(),this.hr=void 0,Ee.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(se&&se.history){var n=this;(t=se.history.pushState)!=null&&t.__posthog_wrapped__||LN(se.history,"pushState",(r=>function(i,s,o){r.call(this,i,s,o),n.dr("pushState")})),(e=se.history.replaceState)!=null&&e.__posthog_wrapped__||LN(se.history,"replaceState",(r=>function(i,s,o){r.call(this,i,s,o),n.dr("replaceState")})),this.vr()}}dr(t){try{var e,n=se==null||(e=se.location)==null?void 0:e.pathname;if(!n)return;n!==this.ur&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.ur=n}catch(r){Ee.error("Error capturing "+t+" pageview",r)}}vr(){if(!this.hr){var t=()=>{this.dr("popstate")};Wn(se,"popstate",t),this.hr=()=>{se&&se.removeEventListener("popstate",t)}}}},heatmaps:class{constructor(t){var e;this.cr=!1,this.er=!1,this.pr=null,this.instance=t,this.cr=!((e=this.instance.persistence)==null||!e.props[Qb]),this.rageclicks=new CN(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return ir(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Tt(this.instance.config.capture_heatmaps)?Tt(this.instance.config.enable_heatmaps)?this.cr:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.er)return;_I.info("starting..."),this._r(),this.gr()}else{var t;clearInterval((t=this.pr)!==null&&t!==void 0?t:void 0),this.mr(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Qb]:e}),this.cr=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.C;return this.C=void 0,t}br(t){this.yr(t.originalEvent,"deadclick")}gr(){this.pr&&clearInterval(this.pr),this.pr=(function(t){return t?.visibilityState==="visible"})(we)?setInterval(this.Ft.bind(this),this.flushIntervalMilliseconds):null}_r(){se&&we&&(this.wr=this.Ft.bind(this),Wn(se,"beforeunload",this.wr),this.Er=t=>this.yr(t||se?.event),Wn(we,"click",this.Er,{capture:!0}),this.Sr=t=>this.$r(t||se?.event),Wn(we,"mousemove",this.Sr,{capture:!0}),this.kr=new uN(this.instance,kM,this.br.bind(this)),this.kr.startIfEnabledOrStop(),this.Pr=this.gr.bind(this),Wn(we,"visibilitychange",this.Pr),this.er=!0)}mr(){var t;se&&we&&(this.wr&&se.removeEventListener("beforeunload",this.wr),this.Er&&we.removeEventListener("click",this.Er,{capture:!0}),this.Sr&&we.removeEventListener("mousemove",this.Sr,{capture:!0}),this.Pr&&we.removeEventListener("visibilitychange",this.Pr),clearTimeout(this.Tr),(t=this.kr)==null||t.stop(),this.er=!1)}Rr(t,e){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),s=(function(o,c,f){for(var h=o;h&&gg(h)&&!Tl(h,"body");){if(h===f)return!1;if(wt(c,se?.getComputedStyle(h).position))return!0;
vendor: 4,140 bytes, line 12
12h=QR(h)}return!1})(kN(t),["fixed","sticky"],i);return{x:t.clientX+(s?0:r),y:t.clientY+(s?0:n),target_fixed:s,type:e}}yr(t,e){var n;if(e===void 0&&(e="click"),!NN(t.target)&&zN(t)){var r=this.Rr(t,e);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Ir(_e({},r,{type:"rageclick"})),this.Ir(r)}}$r(t){!NN(t.target)&&zN(t)&&(clearTimeout(this.Tr),this.Tr=setTimeout((()=>{this.Ir(this.Rr(t,"mousemove"))}),500))}Ir(t){if(se){var e=se.location.href,n=this.instance.config.mask_personal_data_properties,r=this.instance.config.custom_personal_data_properties,i=n?ou([],cu,r||[]):[],s=kf(e,i,Af);this.C=this.C||{},this.C[s]||(this.C[s]=[]),this.C[s].push(t)}}Ft(){this.C&&!$c(this.C)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:uN,webVitalsAutocapture:class{constructor(t){var e;this.cr=!1,this.er=!1,this.C={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Cr=()=>{clearTimeout(this.Or),this.C.metrics.length!==0&&(this._instance.capture("$web_vitals",this.C.metrics.reduce(((n,r)=>_e({},n,{["$web_vitals_"+r.name+"_event"]:_e({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.C={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Fr=n=>{var r,i=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0);if(je(i))ll.error("Could not read session ID. Dropping metrics!");else{this.C=this.C||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.Mr();je(s)||(Tt(n?.name)||Tt(n?.value)?ll.error("Invalid metric received",n):this.Ar&&n.value>=this.Ar?ll.error("Ignoring metric with value >= "+this.Ar,n):(this.C.url!==s&&(this.Cr(),this.Or=setTimeout(this.Cr,this.flushToCaptureTimeoutMs)),je(this.C.url)&&(this.C.url=s),this.C.firstMetricTimestamp=je(this.C.firstMetricTimestamp)?Date.now():this.C.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.C.metrics.push(_e({},n,{$current_url:s,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.C.metrics.length===this.allowedMetrics.length&&this.Cr()))}},this.Dr=()=>{if(!this.er){var n,r,i,s,o=qe.__PosthogExtensions__;je(o)||je(o.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:i,onINP:s}=o.postHogWebVitalsCallbacks),n&&r&&i&&s?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.Fr.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.Fr.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.Fr.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.Fr.bind(this)),this.er=!0):ll.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.cr=!((e=this._instance.persistence)==null||!e.props[aN]),this.startIfEnabled()}get allowedMetrics(){var t,e,n=ir(this._instance.config.capture_performance)?(t=this._instance.config.capture_performance)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Tt(n)?((e=this._instance.persistence)==null?void 0:e.props[lN])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(ir(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=ir(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return t!=null&&t}get Ar(){var t=ir(this._instance.config.capture_performance)&&Ka(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:PN;return 0<t&&t<=6e4?PN:t}get isEnabled(){var t=vr?.protocol;if(t!=="http:"&&t!=="https:")return ll.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=ir(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:As(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return As(e)?e:this.cr}startIfEnabled(){this.isEnabled&&!this.er&&(ll.info("enabled, starting..."),this.G(this.Dr))}onRemoteConfig(t){if("capturePerformance"in t){var e=ir(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=ir
12(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[aN]:e}),this._instance.persistence.register({[lN]:n})),this.cr=e,this.startIfEnabled()}}G(t){var e,n;if((e=qe.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks)t();else{var r=this.useAttribution?"web-vitals-with-attribution":"web-vitals";(n=qe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,r,(i=>{i?ll.error("failed to load script",i):t()}))}}Mr(){var t=se?se.location.href:void 0;if(t){var e=this._instance.config.mask_personal_data_properties,n=this._instance.config.custom_personal_data_properties,r=e?ou([],cu,n||[]):[];return kf(t,r,Af)}ll.error("Could not determine current URL")}}},UI={exceptionObserver:class{constructor(t){var e,n,r;this.Dr=()=>{var i;if(se&&this.isEnabled&&(i=qe.__PosthogExtensions__)!=null&&i.errorWrappingFunctions){var s=qe.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,o=qe.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=qe.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.jr&&this.N.capture_unhandled_errors&&(this.jr=s(this.captureException.bind(this))),!this.Lr&&this.N.capture_unhandled_rejections&&(this.Lr=o(this.captureException.bind(this))),!this.Nr&&this.N.capture_console_errors&&(this.Nr=c(this.captureException.bind(this)))}catch(f){Sd.error("failed to start",f),this.Ur()}}},this._instance=t,this.zr=!((e=this._instance.persistence)==null||!e.props[rN]),this.Hr=new MP({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,h:Sd}),this.N=this.Br(),this.startIfEnabledOrStop()}Br(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return ir(t)?e=_e({},e,t):(je(t)?this.zr:t)&&(e=_e({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.N.capture_console_errors||this.N.capture_unhandled_errors||this.N.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Sd.info("enabled"),this.Ur(),this.G(this.Dr)):this.Ur()}G(t){var e,n;(e=qe.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(n=qe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return Sd.error("failed to load script",r);t()}))}Ur(){var t,e,n;(t=this.jr)==null||t.call(this),this.jr=void 0,(e=this.Lr)==null||e.call(this),this.Lr=void 0,(n=this.Nr)==null||n.call(this),this.Nr=void 0}onRemoteConfig(t){if("autocaptureExceptions"in t){var e=t.autocaptureExceptions;this.zr=!!e||!1,this._instance.persistence&&this._instance.persistence.register({[rN]:this.zr}),this.N=this.Br(),this.startIfEnabledOrStop()}}onConfigChange(){this.N=this.Br()}captureException(t){var e,n,r,i=(e=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&e!==void 0?e:"Exception";this.Hr.consumeRateLimit(i)?Sd.info("Skipping exception capture because of client rate limiting.",{exception:i}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,n;this.qr=[],this.Vr=new WP([new iM,new hM,new sM,new aM,new dM,new uM,new oM,new fM],rM()),this._instance=t,this.qr=(e=(n=this._instance.persistence)==null?void 0:n.get_property(Zb))!==null&&e!==void 0?e:[]}onRemoteConfig(t){var e,n,r;if("errorTracking"in t){var i=(e=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&e!==void 0?e:[],s=(r=t.errorTracking)==null?void 0:r.captureExtensionExceptions;this.qr=i,this._instance.persistence&&this._instance.persistence.register({[Zb]:this.qr,[iN]:s})}}get Wr(){var t,e=!!this._instance.get_property(iN),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.Vr.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}sendExceptionEvent(t){var e=t.$exception_list;if(this.Gr(e)){if(this.Yr(e))return void v0.info("Skipping exception capture because a suppression rule matched");if(!this.Wr&&this.Jr(e))return void v0.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Kr(e))return void v0.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent",Di:!0})}Yr(t){if(t.length===0)return!1;var e=t.reduce(((n,r)=>{var{type:i,value:s}=r;return Jn(i)&&i.length>0&&n.$exception_types.push(i),Jn(s)&&s.length>0&&n.$exception_values.push(s),n}),{$exception_types:[],$exception_values:[]});return this.qr.some((n=>{var r=n.values.map((i=>{var s,o=HR[i.operator],c=Lt(i.value)?i.value:[i.value],f=(s=e[i.key])!==null&&s!==void 0?s:[];return c.length>0&&o(c,f)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}Jr(t){return t.flatMap((e=>{var n,r;return(n=(r=e.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}Kr(t){if(t.length>0){var e,n,r,i,s=(e=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[],o=s[s.length-1];return(r=o==null||(i=o.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}Gr(t){return!Tt(t)&&Lt(t)}}},BI=_e({productTours:class{constructor(t){this.Xr=null,this.Qr=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this._instance.persistence&&this._instance.persistence.register({[sN]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Xr||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(sN)||this.G((()=>this.Zr()))}
vendor: 4,296 bytes, line 12
12G(t){var e,n;(e=qe.__PosthogExtensions__)!=null&&e.generateProductTours?t():(n=qe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?UN.error("Could not load product tours script",r):t()}))}Zr(){var t;!this.Xr&&(t=qe.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Xr=qe.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Lt(this.Qr)||e){var n=this._instance.persistence;if(n){var r=n.props[g0];if(Lt(r)&&!e)return this.Qr=r,void t(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:i=>{var s=i.statusCode;if(s!==200||!i.json){var o="Product Tours API could not be loaded, status: "+s;return UN.error(o),void t([],{isLoaded:!1,error:o})}var c=Lt(i.json.product_tours)?i.json.product_tours:[];this.Qr=c,n&&n.register({[g0]:c}),t(c,{isLoaded:!0})}})}else t(this.Qr,{isLoaded:!0})}getActiveProductTours(t){Tt(this.Xr)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Xr.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Xr)==null||e.showTourById(t)}previewTour(t){this.Xr?this.Xr.previewTour(t):this.G((()=>{var e;this.Zr(),(e=this.Xr)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Xr)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Xr)==null||t.nextStep()}previousStep(){var t;(t=this.Xr)==null||t.previousStep()}clearCache(){var t;this.Qr=null,(t=this._instance.persistence)==null||t.unregister(g0)}resetTour(t){var e;(e=this.Xr)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Xr)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Xr)==null||e.cancelPendingTour(t)}}},yg),$I={siteApps:class{constructor(t){this._instance=t,this.ts=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}es(t,e){if(e){var n=this.globalsForEvent(e);this.ts.push(n),this.ts.length>1e3&&(this.ts=this.ts.slice(10))}}get siteAppLoaders(){var t;return(t=qe._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.es.bind(this));this.rs=()=>{t(),this.ts=[],this.rs=void 0}}}globalsForEvent(t){var e,n,r,i,s,o,c;if(!t)throw new Error("Event payload is required");var f={},h=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var[g,x]of Object.entries(p))f[g]={id:h[g],type:g,properties:x};var{$set_once:v,$set:w}=t;return{event:_e({},QO(t,wI),{properties:_e({},t.properties,w?{$set:_e({},(e=(n=t.properties)==null?void 0:n.$set)!==null&&e!==void 0?e:{},w)}:{},v?{$set_once:_e({},(r=(i=t.properties)==null?void 0:i.$set_once)!==null&&r!==void 0?r:{},v)}:{}),elements_chain:(s=(o=t.properties)==null?void 0:o.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:f}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var o;!e.errored&&this.ts.length&&(cl.info("Processing "+this.ts.length+" events for site app with id "+t.id),this.ts.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((o=this.rs)==null||o.call(this))},r=!1,i=o=>{e.errored=!o,e.loaded=!0,cl.info("Site app with id "+t.id+" "+(o?"loaded":"errored")),r&&n()};try{var{processEvent:s}=t.init({posthog:this._instance,callback:o=>{i(o)}});s&&(e.processEvent=s),r=!0}catch(o){cl.error("Error while initializing PostHog app with config id "+t.id,o),i(!1)}if(r&&e.loaded)try{n()}catch(o){cl.error("Error while processing buffered events PostHog app with config id "+t.id,o),e.errored=!0}}ss(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}ns(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(e)}catch(r){cl.error("Error while processing event "+t.event+" for site app "+n.id,r)}}}onRemoteConfig(t){var e,n,r,i=this;
12if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.ss(),void this._instance.on("eventCaptured",(f=>this.ns(f)))):void cl.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.rs)==null||n.call(this),(r=t.siteApps)!=null&&r.length)if(this.isEnabled){var s=function(f){var h;qe["__$$ph_site_app_"+f]=i._instance,(h=qe.__PosthogExtensions__)==null||h.loadSiteApp==null||h.loadSiteApp(i._instance,c,(p=>{if(p)return cl.error("Error while initializing PostHog app with config id "+f,p)}))};for(var{id:o,url:c}of t.siteApps)s(o)}else cl.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},FI={tracingHeaders:class{constructor(t){this.os=void 0,this.ls=void 0,this.Dr=()=>{var e,n;je(this.os)&&((e=qe.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),je(this.ls)&&((n=qe.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}G(t){var e,n;(e=qe.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(n=qe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return bI.error("failed to load script",r);t()}))}startIfEnabledOrStop(){var t,e;this._instance.config.__add_tracing_headers?this.G(this.Dr):((t=this.os)==null||t.call(this),(e=this.ls)==null||e.call(this),this.os=void 0,this.ls=void 0)}}},qI=_e({surveys:class{constructor(t){this.us=void 0,this._surveyManager=null,this.hs=!1,this.ds=[],this.vs=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_surveys){var e=t.surveys;if(Tt(e))return Qt.warn("Flags not loaded yet. Not loading surveys.");var n=Lt(e);this.us=n?e.length>0:e,Qt.info("flags response received, isSurveysEnabled: "+this.us),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var n=localStorage.key(e);(n!=null&&n.startsWith(VR)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.hs)Qt.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Qt.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Qt.info("Not loading surveys in cookieless mode without consent.");else{var t=qe?.__PosthogExtensions__;if(t){if(!je(this.us)||this._instance.config.advanced_enable_surveys){var e=this.us||this._instance.config.advanced_enable_surveys;this.hs=!0;try{var n=t.generateSurveys;if(n)return void this.cs(n,e);var r=t.loadExternalDependency;if(!r)return void this.fs("PostHog loadExternalDependency extension not found.");r(this._instance,"surveys",(i=>{i||!t.generateSurveys?this.fs("Could not load surveys script",i):this.cs(t.generateSurveys,e)}))}catch(i){throw this.fs("Error initializing surveys",i),i}finally{this.hs=!1}}}else Qt.error("PostHog Extensions not found.")}}cs(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new jI(this._instance),Qt.info("Surveys loaded successfully"),this.ps({isLoaded:!0})}fs(t,e){Qt.error(t,e),this.ps({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.ds.push(t),this._surveyManager&&this.ps({isLoaded:!0}),()=>{this.ds=this.ds.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this._instance.config.disable_surveys)return Qt.info("Disabled. Not loading surveys."),t([]);var n,r=this._instance.get_property(t_);if(r&&!e)return t(r,{isLoaded:!0});typeof Promise<"u"&&this.vs?this.vs.then((i=>{var{surveys:s,context:o}=i;return t(s,o)})):(typeof Promise<"u"&&(this.vs=new Promise((i=>{n=i}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:i=>{var s;this.vs=null;var o=i.statusCode;if(o!==200||!i.json){var c="Surveys API could not be loaded, status: "+o;Qt.error(c);var f={isLoaded:!1,error:c};return t([],f),void(n==null||n({surveys:[],context:f}))}var h,p=i.json.surveys||[],g=p.filter((v=>(function(w){return!(!w.start_date||w.end_date)})(v)&&((function(w){var _;return!((_=w.conditions)==null||(_=_.events)==null||(_=_.values)==null||!_.length)})(v)||(function(w){var _;return!((_=w.conditions)==null||(_=_.actions)==null||(_=_.values)==null||!_.length)})(v))));g.length>0&&((h=this._surveyEventReceiver)==null||h.register(g)),(s=this._instance.persistence)==null||s.register({[t_]:p});var x={isLoaded:!0};t(p,x),n?.({surveys:p,context:x})}}))}ps(t){for(var e of this.ds)try{if(!t.isLoaded)return e([],t);
12this.getSurveys(e)}catch(n){Qt.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!Tt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);Qt.warn("init was not called")}_s(t){var e=null;return this.getSurveys((n=>{var r;e=(r=n.find((i=>i.id===t)))!==null&&r!==void 0?r:null})),e}gs(t){if(Tt(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var e=typeof t=="string"?this._s(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Tt(this._surveyManager))return Qt.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var e=this.gs(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return Tt(this._surveyManager)?(Qt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise((n=>{this.getSurveys((r=>{var i,s=(i=r.find((c=>c.id===t)))!==null&&i!==void 0?i:null;if(s){var o=this.gs(s);n({visible:o.eligible,disabledReason:o.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,n){var r;if(Tt(this._surveyManager))Qt.warn("init was not called");else{var i=typeof t=="string"?this._s(t):t;if(i!=null&&i.id)if(nI.includes(i.type)){var s=we?.querySelector(e);if(s)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(Qt.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var o,c;Qt.info("Rendering survey "+i.id+" with delay of "+((o=i.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(i,s,n),Qt.info("Survey "+i.id+" rendered")}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,n);Qt.warn("Survey element not found")}else Qt.warn("Surveys of type "+i.type+" cannot be rendered in the app");else Qt.warn("Survey not found")}}displaySurvey(t,e){var n;if(Tt(this._surveyManager))Qt.warn("init was not called");else{var r=this._s(t);if(r){var i=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&e.ignoreDelay&&(i=_e({},r,{appearance:_e({},r.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==o_.Popover&&e.initialResponses&&Qt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var s=this.canRenderSurvey(r);if(!s.visible)return void Qt.warn("Survey is not eligible to be displayed: ",s.disabledReason)}e.displayType!==o_.Inline?this._surveyManager.handlePopoverSurvey(i,e):this.renderSurvey(i,e.selector,e.properties)}else Qt.warn("Survey not found")}}cancelPendingSurvey(t){Tt(this._surveyManager)?Qt.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},yg),HI={toolbar:class{constructor(t){this.instance=t}bs(t){qe.ph_toolbar_state=t}ys(){var t;return(t=qe.ph_toolbar_state)!==null&&t!==void 0?t:pl.UNINITIALIZED}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,n){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),wR(this.instance.config)||!se||!we)return!1;t=t??se.location,n=n??se.history;try{if(!e){try{se.localStorage.setItem("test","test"),se.localStorage.removeItem("test")}catch{return!1}e=se?.localStorage}var r,i=NI||qm(t.hash,"__posthog")||qm(t.hash,"state"),s=i?tN((()=>JSON.parse(atob(decodeURIComponent(i)))))||tN((()=>JSON.parse(decodeURIComponent(i)))):null;return s&&s.action==="ph_authorize"?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?t.hash=s.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem(BN)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token)&&(this.loadToolbar(r),!0)}catch{return!1}}ws(t){var e=qe.ph_load_toolbar||qe.ph_load_editor;!Tt(e)&&Ns(e)?e(t,this.instance):$N.warn("No toolbar load function found")}loadToolbar(t){var e=!(we==null||!we.getElementById(NR));if(!se||e)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=_e({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(se.localStorage.setItem(BN,JSON.stringify(_e({},r,{source:void 0}))),this.ys()===pl.LOADED)this.ws(r);
12else if(this.ys()===pl.UNINITIALIZED){var i;this.bs(pl.LOADING),(i=qe.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return $N.error("[Toolbar] Failed to load",s),void this.bs(pl.UNINITIALIZED);this.bs(pl.LOADED),this.ws(r)})),Wn(se,"turbolinks:load",(()=>{this.bs(pl.UNINITIALIZED),this.loadToolbar(r)}))}return!0}Es(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}},GI=_e({experiments:Sr},yg),VI={conversations:class{constructor(t){this.Ss=void 0,this._conversationsManager=null,this.xs=!1,this.$s=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;Tt(e)||(As(e)?this.Ss=e:(this.Ss=e.enabled,this.$s=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ss=void 0,this.$s=null}loadIfEnabled(){if(!(this._conversationsManager||this.xs||this._instance.config.disable_conversations||wR(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=qe?.__PosthogExtensions__;if(t&&!je(this.Ss)&&this.Ss)if(this.$s&&this.$s.token){this.xs=!0;try{var e=t.initConversations;if(e)return this.ks(e),void(this.xs=!1);var n=t.loadExternalDependency;if(!n)return void this.Ps("PostHog loadExternalDependency extension not found.");n(this._instance,"conversations",(r=>{r||!t.initConversations?this.Ps("Could not load conversations script",r):this.ks(t.initConversations),this.xs=!1}))}catch(r){this.Ps("Error initializing conversations",r),this.xs=!1}}else ta.error("Conversations enabled but missing token in remote config.")}}ks(t){if(this.$s)try{this._conversationsManager=t(this.$s,this._instance),ta.info("Conversations loaded successfully")}catch(e){this.Ps("Error completing conversations initialization",e)}else ta.error("Cannot complete initialization: remote config is null")}Ps(t,e){ta.error(t,e),this._conversationsManager=null,this.xs=!1}show(){this._conversationsManager?this._conversationsManager.show():ta.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ss===!0&&!wa(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,n){var r=this;return vs((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(t,e,n):(ta.warn("Conversations not available yet."),null)}))()}getMessages(t,e){var n=this;return vs((function*(){return n._conversationsManager?n._conversationsManager.getMessages(t,e):(ta.warn("Conversations not available yet."),null)}))()}markAsRead(t){var e=this;return vs((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(ta.warn("Conversations not available yet."),null)}))()}getTickets(t){var e=this;return vs((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(ta.warn("Conversations not available yet."),null)}))()}requestRestoreLink(t){var e=this;return vs((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(ta.warn("Conversations not available yet."),null)}))()}restoreFromToken(t){var e=this;return vs((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(ta.warn("Conversations not available yet."),null)}))()}restoreFromUrlToken(){var t=this;return vs((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(ta.warn("Conversations not available yet."),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}}},KI={logs:class{constructor(t){var e;this.Ts=!1,this.Rs=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.Ts=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,n=(e=t.logs)==null?void 0:e.captureConsoleLogs;!Tt(n)&&n&&(this.Ts=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Ts&&!this.Rs){var t=Tn("[logs]"),e=qe?.__PosthogExtensions__;if(e){var n=e.loadExternalDependency;n?n(this._instance,"logs",(r=>{var i;r||(i=e.logs)==null||!i.initializeLogs?t.error("Could not load logs script",r):(e.logs.initializeLogs(this._instance),this.Rs=!0)})):t.error("PostHog loadExternalDependency extension not found.")}else t.error("PostHog Extensions not found.")}}}},YI=_e({},yg,II,zI,UI,BI,$I,qI,FI,HI,GI,VI,KI);Ma.__defaultExtensionClasses=_e({},YI);var VN,yl=(VN=nf[Lc]=new Ma,(function(){function t(){t.done||(t.done=!0,KR=!1,un(nf,(function(e){e._dom_loaded()})))}we!=null&&we.addEventListener?we.readyState==="complete"?t():Wn(we,"DOMContentLoaded",t,{capture:!1}):se&&Ee.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),VN),aC=$.createContext({client:yl,bootstrap:void 0});function sC(t,e,n){if(n===void 0&&(n=new WeakMap),t===e)return!0;
12if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(n.has(t)&&n.get(t)===e)return!0;n.set(t,e);var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var s=0,o=r;s<o.length;s++){var c=o[s];if(!i.includes(c)||!sC(t[c],e[c],n))return!1}return!0}function WI(t){var e,n,r=t.children,i=t.client,s=t.apiKey,o=t.options,c=$.useRef(null),f=$.useMemo(function(){return i?(s&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),o&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i):(s||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),yl)},[i,s,JSON.stringify(o)]);return $.useEffect(function(){if(!i){var h=c.current;h?(s!==h.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),o&&!sC(o,h.options)&&yl.set_config(o),c.current={apiKey:s,options:o??{}}):(yl.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),yl.init(s,o),c.current={apiKey:s,options:o??{}})}},[i,s,JSON.stringify(o)]),Cc.createElement(aC.Provider,{value:{client:f,bootstrap:(e=o?.bootstrap)!==null&&e!==void 0?e:(n=i?.config)===null||n===void 0?void 0:n.bootstrap}},r)}var x0=function(t){return typeof t=="function"},g_=function(t,e){return g_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},g_(t,e)};function XI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");g_(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var JI={componentStack:null,exceptionEvent:null,error:null},QI={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(t){XI(e,t);function e(n){var r=t.call(this,n)||this;return r.state=JI,r}return e.prototype.componentDidCatch=function(n,r){var i=this.props.additionalProperties,s;x0(i)?s=i(n):typeof i=="object"&&(s=i);var o=this.context.client,c=o.captureException(n,s),f=r.componentStack;this.setState({error:n,componentStack:f??null,exceptionEvent:c})},e.prototype.render=function(){var n=this.props,r=n.children,i=n.fallback,s=this.state;if(s.componentStack==null)return x0(r)?r():r;var o=x0(i)?Cc.createElement(i,{error:s.error,componentStack:s.componentStack,exceptionEvent:s.exceptionEvent}):i;return Cc.isValidElement(o)?o:(console.warn(QI.INVALID_FALLBACK),Cc.createElement(Cc.Fragment,null))},e.contextType=aC,e})(Cc.Component);function bs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lC(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Ui={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},du={duration:.5,overwrite:!1,delay:0},Pw,_r,vn,oa=1e8,en=1/oa,y_=Math.PI*2,ZI=y_/4,e6=0,oC=Math.sqrt,t6=Math.cos,n6=Math.sin,ur=function(e){return typeof e=="string"},Dn=function(e){return typeof e=="function"},Rs=function(e){return typeof e=="number"},Mw=function(e){return typeof e>"u"},Ya=function(e){return typeof e=="object"},ii=function(e){return e!==!1},Iw=function(){return typeof window<"u"},Lp=function(e){return Dn(e)||ur(e)},cC=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Or=Array.isArray,r6=/random\([^)]+\)/g,i6=/,\s*/g,KN=/(?:-?\.?\d|\.)+/gi,uC=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,qc=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,b0=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dC=/[+-]=-?[.\d]+/,a6=/[^,'"\[\]\s]+/gi,s6=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,En,Da,v_,zw,$i={},Ym={},fC,hC=function(e){return(Ym=fu(e,$i))&&di},Uw=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Rf=function(e,n){return!n&&console.warn(e)},pC=function(e,n){return e&&($i[e]=n)&&Ym&&(Ym[e]=n)||$i},Cf=function(){return 0},l6={suppressEvents:!0,isStart:!0,kill:!1},pm={suppressEvents:!0,kill:!1},o6={suppressEvents:!0},Bw={},kl=[],x_={},mC,Ti={},_0={},YN=30,mm=[],$w="",Fw=function(e){var n=e[0],r,i;if(Ya(n)||Dn(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=mm.length;i--&&!mm[i].targetTest(n););r=mm[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new UC(e[i],r)))||e.splice(i,1);return e},wo=function(e){return e._gsap||Fw(ca(e))[0]._gsap},gC=function(e,n,r){return(r=e[n])&&Dn(r)?e[n]():Mw(r)&&e.getAttribute&&e.getAttribute(n)||r}
vendor: 4,132 bytes, line 12
12,ai=function(e,n){return(e=e.split(",")).forEach(n)||e},In=function(e){return Math.round(e*1e5)/1e5||0},wn=function(e){return Math.round(e*1e7)/1e7||0},Wc=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},c6=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},Wm=function(){var e=kl.length,n=kl.slice(0),r,i;for(x_={},kl.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},qw=function(e){return!!(e._initted||e._startAt||e.add)},yC=function(e,n,r,i){kl.length&&!_r&&Wm(),e.render(n,r,!!(_r&&n<0&&qw(e))),kl.length&&!_r&&Wm()},vC=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(a6).length<2?n:ur(e)?e.trim():e},xC=function(e){return e},Fi=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},u6=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},fu=function(e,n){for(var r in n)e[r]=n[r];return e},WN=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Ya(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Xm=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},rf=function(e){var n=e.parent||En,r=e.keyframes?u6(Or(e.keyframes)):Fi;if(ii(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},d6=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},bC=function(e,n,r,i,s){var o=e[i],c;if(s)for(c=n[s];o&&o[s]>c;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},vg=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},Rl=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},So=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},f6=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},b_=function(e,n,r,i){return e._startAt&&(_r?e._startAt.revert(pm):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},h6=function t(e){return!e||e._ts&&t(e.parent)},XN=function(e){return e._repeat?hu(e._tTime,e=e.duration()+e._rDelay)*e:0},hu=function(e,n){var r=Math.floor(e=wn(e/n));return e&&r===e?r-1:r},Jm=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},xg=function(e){return e._end=wn(e._start+(e._tDur/Math.abs(e._ts||e._rts||en)||0))},bg=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=wn(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),xg(e),r._dirty||So(r,e)),e},_C=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Jm(e.rawTime(),n),(!n._dur||eh(0,n.totalDuration(),r)-n._tTime>en)&&n.render(r,!0)),So(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-en}},Ia=function(e,n,r,i){return n.parent&&Rl(n),n._start=wn((Rs(r)?r:r||e!==En?ra(e,r,n):e._time)+n._delay),n._end=wn(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),bC(e,n,"_first","_last",e._sort?"_start":0),__(n)||(e._recent=n),i||_C(e,n),e._ts<0&&bg(e,e._tTime),e},wC=function(e,n){return($i.ScrollTrigger||Uw("scrollTrigger",n))&&$i.ScrollTrigger.create(n,e)},SC=function(e,n,r,i,s){if(Gw(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!_r&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&mC!==Oi.frame)return kl.push(e),e._lazy=[s,i],1},p6=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},__=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},m6=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&p6(e)&&!(!e._initted&&__(e))||(e._ts<0||e._dp._ts<0)&&!__(e))?0:1,c=e._rDelay,f=0,h,p,g;if(c&&e._repeat&&(f=eh(0,e._tDur,n),p=hu(f,c),e._yoyo&&p&1&&(o=1-o),p!==hu(e._tTime,c)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 4,925 bytes, line 12
12date())),o!==s||_r||i||e._zTime===en||!n&&e._zTime){if(!e._initted&&SC(e,n,i,r,f))return;for(g=e._zTime,e._zTime=n||(r?en:0),r||(r=n&&!g),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=f,h=e._pt;h;)h.r(o,h.d),h=h._next;n<0&&b_(e,n,r,!0),e._onUpdate&&!r&&Pi(e,"onUpdate"),f&&e._repeat&&!r&&e.parent&&Pi(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&Rl(e,1),!r&&!_r&&(Pi(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},g6=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},pu=function(e,n,r,i){var s=e._repeat,o=wn(n)||0,c=e._tTime/e._tDur;return c&&!i&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s<0?1e10:wn(o*(s+1)+e._rDelay*s):o,c>0&&!i&&bg(e,e._tTime=e._tDur*c),e.parent&&xg(e),r||So(e.parent,e),e},JN=function(e){return e instanceof qr?So(e):pu(e,e._dur)},y6={_start:0,endTime:Cf,totalDuration:Cf},ra=function t(e,n,r){var i=e.labels,s=e._recent||y6,o=e.duration()>=oa?s.endTime(!1):e._dur,c,f,h;return ur(n)&&(isNaN(n)||n in i)?(f=n.charAt(0),h=n.substr(-1)==="%",c=n.indexOf("="),f==="<"||f===">"?(c>=0&&(n=n.replace(/=/,"")),(f==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(h?(c<0?s:r).totalDuration()/100:1)):c<0?(n in i||(i[n]=o),i[n]):(f=parseFloat(n.charAt(c-1)+n.substr(c+1)),h&&r&&(f=f/100*(Or(r)?r[0]:r).totalDuration()),c>1?t(e,n.substr(0,c-1),r)+f:o+f)):n==null?o:+n},af=function(e,n,r){var i=Rs(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],c,f;if(i&&(o.duration=n[1]),o.parent=r,e){for(c=o,f=r;f&&!("immediateRender"in c);)c=f.vars.defaults||{},f=ii(f.vars.inherit)&&f.parent;o.immediateRender=ii(c.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new Xn(n[0],o,n[s+1])},Pl=function(e,n){return e||e===0?n(e):n},eh=function(e,n,r){return r<e?e:r>n?n:r},Nr=function(e,n){return!ur(e)||!(n=s6.exec(e))?"":n[1]},v6=function(e,n,r){return Pl(r,function(i){return eh(e,n,i)})},w_=[].slice,EC=function(e,n){return e&&Ya(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Ya(e[0]))&&!e.nodeType&&e!==Da},x6=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return ur(i)&&!n||EC(i,1)?(s=r).push.apply(s,ca(i)):r.push(i)})||r},ca=function(e,n,r){return vn&&!n&&vn.selector?vn.selector(e):ur(e)&&!r&&(v_||!mu())?w_.call((n||zw).querySelectorAll(e),0):Or(e)?x6(e,r):EC(e)?w_.call(e,0):e?[e]:[]},S_=function(e){return e=ca(e)[0]||Rf("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return ca(n,r.querySelectorAll?r:r===e?Rf("Invalid scope")||zw.createElement("div"):e)}},jC=function(e){return e.sort(function(){return .5-Math.random()})},NC=function(e){if(Dn(e))return e;var n=Ya(e)?e:{each:e},r=Eo(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},c=i>0&&i<1,f=isNaN(i)||c,h=n.axis,p=i,g=i;return ur(i)?p=g={center:.5,edges:.5,end:1}[i]||0:!c&&f&&(p=i[0],g=i[1]),function(x,v,w){var _=(w||n).length,S=o[_],E,N,k,R,D,O,T,L,M;if(!S){if(M=n.grid==="auto"?0:(n.grid||[1,oa])[1],!M){for(T=-oa;T<(T=w[M++].getBoundingClientRect().left)&&M<_;);M<_&&M--}for(S=o[_]=[],E=f?Math.min(M,_)*p-.5:i%M,N=M===oa?0:f?_*g/M-.5:i/M|0,T=0,L=oa,O=0;O<_;O++)k=O%M-E,R=N-(O/M|0),S[O]=D=h?Math.abs(h==="y"?R:k):oC(k*k+R*R),D>T&&(T=D),D<L&&(L=D);i==="random"&&jC(S),S.max=T-L,S.min=L,S.v=_=(parseFloat(n.amount)||parseFloat(n.each)*(M>_?_-1:h?h==="y"?_/M:M:Math.max(M,_/M))||0)*(i==="edges"?-1:1),S.b=_<0?s-_:s,S.u=Nr(n.amount||n.each)||0,r=r&&_<0?MC(r):r}return _=(S[x]-S.min)/S.max||0,wn(S.b+(r?r(_):_)*S.v)+S.u}},E_=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=wn(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(Rs(r)?0:Nr(r))}},TC=function(e,n){var r=Or(e),i,s;return!r&&Ya(e)&&(i=r=e.radius||oa,e.values?(e=ca(e.values),(s=!Rs(e[0]))&&(i*=i)):e=E_(e.increment)),Pl(n,r?Dn(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var c=parseFloat(s?o.x:o),f=parseFloat(s?o.y:0),h=oa,p=0,g=e.length,x,v;g--;)s?(x=e[g].x-c,v=e[g].y-f,x=x*x+v*v):x=Math.abs(e[g]-c),x<h&&(h=x,p=g);return p=!i||h<=i?e[p]:o,s||p===o||Rs(o)?p:p+Nr(o)}:E_(e))},kC=function(e,n,r,i){return Pl(Or(e)?!n:r===!0?!!(r=0):!i,function(){return Or(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},b6=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(s,o){return o(s)},i)}},_6=function(e,n){return function(r){return e(parseFloat(r))+(n||Nr(r))}},w6=function(e,n,r){return OC(e,n,0,1,r)},AC=function(e,n,r){return Pl(r,function(i){return e[~~n(i)]})},S6=function t(e,n,r){var i=n-e;return Or(e)?AC(e,t(0,e.length),n):Pl(r,function(s){return(i+(s-e)%i)%i+e})},E6=function t(e,n,r){var i=n-e,s=i*2;return Or(e)?AC(e,t(0,e.length-1),n):Pl(r,function(o){return o=(s+(o-e)%s)%s||
vendor: 7,999 bytes, line 12
120,e+(o>i?s-o:o)})},Df=function(e){return e.replace(r6,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split(i6);return kC(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},OC=function(e,n,r,i,s){var o=n-e,c=i-r;return Pl(s,function(f){return r+((f-e)/o*c||0)})},j6=function t(e,n,r,i){var s=isNaN(e+n)?0:function(v){return(1-v)*e+v*n};if(!s){var o=ur(e),c={},f,h,p,g,x;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(Or(e)&&!Or(n)){for(p=[],g=e.length,x=g-2,h=1;h<g;h++)p.push(t(e[h-1],e[h]));g--,s=function(w){w*=g;var _=Math.min(x,~~w);return p[_](w-_)},r=n}else i||(e=fu(Or(e)?[]:{},e));if(!p){for(f in n)Hw.call(c,e,f,"get",n[f]);s=function(w){return Yw(w,c)||(o?e.p:e)}}}return Pl(r,s)},QN=function(e,n,r){var i=e.labels,s=oa,o,c,f;for(o in i)c=i[o]-n,c<0==!!r&&c&&s>(c=Math.abs(c))&&(f=o,s=c);return f},Pi=function(e,n,r){var i=e.vars,s=i[n],o=vn,c=e._ctx,f,h,p;if(s)return f=i[n+"Params"],h=i.callbackScope||e,r&&kl.length&&Wm(),c&&(vn=c),p=f?s.apply(h,f):s.call(h),vn=o,p},Gd=function(e){return Rl(e),e.scrollTrigger&&e.scrollTrigger.kill(!!_r),e.progress()<1&&Pi(e,"onInterrupt"),e},Hc,RC=[],CC=function(e){if(e)if(e=!e.name&&e.default||e,Iw()||e.headless){var n=e.name,r=Dn(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:Cf,render:Yw,add:Hw,kill:$6,modifier:B6,rawVars:0},o={targetTest:0,get:0,getSetter:Kw,aliases:{},register:0};if(mu(),e!==i){if(Ti[n])return;Fi(i,Fi(Xm(e,s),o)),fu(i.prototype,fu(s,Xm(e,o))),Ti[i.prop=n]=i,e.targetTest&&(mm.push(i),Bw[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}pC(n,i),e.register&&e.register(di,i,si)}else RC.push(e)},Zt=255,Vd={aqua:[0,Zt,Zt],lime:[0,Zt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Zt],navy:[0,0,128],white:[Zt,Zt,Zt],olive:[128,128,0],yellow:[Zt,Zt,0],orange:[Zt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Zt,0,0],pink:[Zt,192,203],cyan:[0,Zt,Zt],transparent:[Zt,Zt,Zt,0]},w0=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*Zt+.5|0},DC=function(e,n,r){var i=e?Rs(e)?[e>>16,e>>8&Zt,e&Zt]:0:Vd.black,s,o,c,f,h,p,g,x,v,w;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Vd[e])i=Vd[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),c=e.charAt(3),e="#"+s+s+o+o+c+c+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&Zt,i&Zt,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Zt,e&Zt]}else if(e.substr(0,3)==="hsl"){if(i=w=e.match(KN),!n)f=+i[0]%360/360,h=+i[1]/100,p=+i[2]/100,o=p<=.5?p*(h+1):p+h-p*h,s=p*2-o,i.length>3&&(i[3]*=1),i[0]=w0(f+1/3,s,o),i[1]=w0(f,s,o),i[2]=w0(f-1/3,s,o);else if(~e.indexOf("="))return i=e.match(uC),r&&i.length<4&&(i[3]=1),i}else i=e.match(KN)||Vd.transparent;i=i.map(Number)}return n&&!w&&(s=i[0]/Zt,o=i[1]/Zt,c=i[2]/Zt,g=Math.max(s,o,c),x=Math.min(s,o,c),p=(g+x)/2,g===x?f=h=0:(v=g-x,h=p>.5?v/(2-g-x):v/(g+x),f=g===s?(o-c)/v+(o<c?6:0):g===o?(c-s)/v+2:(s-o)/v+4,f*=60),i[0]=~~(f+.5),i[1]=~~(h*100+.5),i[2]=~~(p*100+.5)),r&&i.length<4&&(i[3]=1),i},LC=function(e){var n=[],r=[],i=-1;return e.split(Al).forEach(function(s){var o=s.match(qc)||[];n.push.apply(n,o),r.push(i+=o.length+1)}),n.c=r,n},ZN=function(e,n,r){var i="",s=(e+i).match(Al),o=n?"hsla(":"rgba(",c=0,f,h,p,g;if(!s)return e;if(s=s.map(function(x){return(x=DC(x,n,1))&&o+(n?x[0]+","+x[1]+"%,"+x[2]+"%,"+x[3]:x.join(","))+")"}),r&&(p=LC(e),f=r.c,f.join(i)!==p.c.join(i)))for(h=e.replace(Al,"1").split(qc),g=h.length-1;c<g;c++)i+=h[c]+(~f.indexOf(c)?s.shift()||o+"0,0,0,0)":(p.length?p:s.length?s:r).shift());if(!h)for(h=e.split(Al),g=h.length-1;c<g;c++)i+=h[c]+s[c];return i+h[g]},Al=(function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Vd)t+="|"+e+"\\b";return new RegExp(t+")","gi")})(),N6=/hsl[a]?\(/,PC=function(e){var n=e.join(" "),r;if(Al.lastIndex=0,Al.test(n))return r=N6.test(n),e[1]=ZN(e[1],r),e[0]=ZN(e[0],r,LC(e[1])),!0},Lf,Oi=(function(){var t=Date.now,e=500,n=33,r=t(),i=r,s=1e3/240,o=s,c=[],f,h,p,g,x,v,w=function _(S){var E=t()-i,N=S===!0,k,R,D,O;if((E>e||E<0)&&(r+=E-n),i+=E,D=i-r,k=D-o,(k>0||N)&&(O=++g.frame,x=D-g.time*1e3,g.time=D=D/1e3,o+=k+(k>=s?4:s-k),R=1),N||(f=h(_)),R)for(v=0;v<c.length;v++)c[v](D,x,O,S)};return g={time:0,frame:0,tick:function(){w(!0)},deltaRatio:function(S){return x/(1e3/(S||60))},wake:function(){fC&&(!v_&&Iw()&&(Da=v_=window,zw=Da.document||{},$i.gsap=di,(Da.gsapVersions||(Da.gsapVersions=[])).push(di.version),hC(Ym||Da.GreenSockGlobals||!Da.gsap&&Da||{}),RC.forEach(CC)),p=typeof requestAnimationFrame<"u"&&requestAnimationFrame,f&&g.sleep(),h=p||function(S){return setTimeout(S,o-g.time*1e3+1|0)},Lf=1,w(2))},sleep:function(){(p?cancelAnimationFrame:clearTimeout)(f),Lf=0,h=Cf},lagSmoothing:function(S,E){e=S||1/0,n=Math.min(E||33,e)},fps:function(S){s=1e3/(S||240),o=g.time*1e3+s},add:function(S,E,N){var k=E?function(R,D,O,T){S(R,D,O,T),g.remove(k)}:S;return g.remove(S),c[N?"unshift":"push"](k),mu(),k},remove:function(S,E){~(E=c.indexOf(S))&&c.splice(E,1)&&v>=E&&v--},_listeners:c},g})(),mu=function(){return!Lf&&Oi.wake()},At={},T6=/^[\d.\-M][\d.\-,\s]/,k6=/["']/g,A6=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,c,f,h;s<o;s++)f=r[s],c=s!==o-1?f.lastIndexOf(","):f.length,h=f.substr(0,c),n[i]=isNaN(h)?h.replace(k6,"").trim():+h,i=f.substr(c+1).trim();return n},O6=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},R6=function(e){var n=(e+"").split("("),r=At[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[A6(n[1])]:O6(e).split(",").map(vC)):At._CE&&T6.test(e)?At._CE("",e):r},MC=function(e){return function(n){return 1-e(1-n)}},IC=function t(e,n){for(var r=e._first,i;r;)r instanceof qr?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Eo=function(e,n){return e&&(Dn(e)?e:At[e]||R6(e))||n},Io=function(e,n,r,i){r===void 0&&(r=function(f){return 1-n(1-f)}),i===void 0&&(i=function(f){return f<.5?n(f*2)/2:1-n((1-f)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return ai(e,function(c){At[c]=$i[c]=s,At[o=c.toLowerCase()]=r;for(var f in s)At[o+(f==="easeIn"?".in":f==="easeOut"?".out":".inOut")]=At[c+"."+f]=s[f]}),s},zC=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},S0=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/y_*(Math.asin(1/i)||0),c=function(p){return p===1?1:i*Math.pow(2,-10*p)*n6((p-o)*s)+1},f=e==="out"?c:e==="in"?function(h){return 1-c(1-h)}:zC(c);return s=y_/s,f.config=function(h,p){return t(e,h,p)},f},E0=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:zC(r);return i.config=function(s){return t(e,s)},i};ai("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Io(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});At.Linear.easeNone=At.none=At.Linear.easeIn;Io("Elastic",S0("in"),S0("out"),S0());(function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(c){return c<n?t*c*c:c<r?t*Math.pow(c-1.5/e,2)+.75:c<i?t*(c-=2.25/e)*c+.9375:t*Math.pow(c-2.625/e,2)+.984375};Io("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);Io("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Io("Circ",function(t){return-(oC(1-t*t)-1)});Io("Sine",function(t){return t===1?1:-t6(t*ZI)+1});Io("Back",E0("in"),E0("out"),E0());At.SteppedEase=At.steps=$i.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),s=n?1:0,o=1-en;return function(c){return((i*eh(0,o,c)|0)+s)*r}}};du.ease=At["quad.out"];ai("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return $w+=t+","+t+"Param
12s,"});var UC=function(e,n){this.id=e6++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:gC,this.set=n?n.getSetter:Kw},Pf=(function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,pu(this,+n.duration,1,1),this.data=n.data,vn&&(this._ctx=vn,vn.data.push(this)),Lf||Oi.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,pu(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(mu(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(bg(this,r),!s._dp||s.parent||_C(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ia(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===en||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),yC(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+XN(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+XN(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?hu(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-en?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Jm(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-en?0:this._rts,this.totalTime(eh(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),xg(this),f6(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(mu(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==en&&(this._tTime-=en)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=wn(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ia(i,this,this._start-this._delay),this}return this._start},e.endTime=function(r){return this._start+(ii(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Jm(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=o6);var i=_r;return _r=r,qw(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),_r=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,JN(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,JN(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(ra(this,r),ii(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ii(i)),this._dur||(this._zTime=-en),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-en:0)),this):this._rts<0}
vendor: 4,438 bytes, line 12
12,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-en,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s<this.endTime(!0)-en)},e.eventCallback=function(r,i,s){var o=this.vars;return arguments.length>1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this,s=i._prom;return new Promise(function(o){var c=Dn(r)?r:xC,f=function(){var p=i.then;i.then=null,s&&s(),Dn(c)&&(c=c(i))&&(c.then||c===i)&&(i.then=p),o(c),i.then=p};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?f():i._prom=f})},e.kill=function(){Gd(this)},t})();Fi(Pf.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-en,_prom:0,_ps:!1,_rts:1});var qr=(function(t){lC(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=ii(r.sortChildren),En&&Ia(r.parent||En,bs(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&wC(bs(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return af(0,arguments,this),this},n.from=function(i,s,o){return af(1,arguments,this),this},n.fromTo=function(i,s,o,c){return af(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,rf(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Xn(i,s,ra(this,o),1),this},n.call=function(i,s,o){return Ia(this,Xn.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,c,f,h,p){return o.duration=s,o.stagger=o.stagger||c,o.onComplete=h,o.onCompleteParams=p,o.parent=this,new Xn(i,o,ra(this,f)),this},n.staggerFrom=function(i,s,o,c,f,h,p){return o.runBackwards=1,rf(o).immediateRender=ii(o.immediateRender),this.staggerTo(i,s,o,c,f,h,p)},n.staggerFromTo=function(i,s,o,c,f,h,p,g){return c.startAt=o,rf(c).immediateRender=ii(c.immediateRender),this.staggerTo(i,s,c,f,h,p,g)},n.render=function(i,s,o){var c=this._time,f=this._dirty?this.totalDuration():this._tDur,h=this._dur,p=i<=0?0:wn(i),g=this._zTime<0!=i<0&&(this._initted||!h),x,v,w,_,S,E,N,k,R,D,O,T;if(this!==En&&p>f&&i>=0&&(p=f),p!==this._tTime||o||g){if(c!==this._time&&h&&(p+=this._time-c,i+=this._time-c),x=p,R=this._start,k=this._ts,E=!k,g&&(h||(c=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(O=this._yoyo,S=h+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(S*100+i,s,o);if(x=wn(p%S),p===f?(_=this._repeat,x=h):(D=wn(p/S),_=~~D,_&&_===D&&(x=h,_--),x>h&&(x=h)),D=hu(this._tTime,S),!c&&this._tTime&&D!==_&&this._tTime-D*S-this._dur<=0&&(D=_),O&&_&1&&(x=h-x,T=1),_!==D&&!this._lock){var L=O&&D&1,M=L===(O&&_&1);if(_<D&&(L=!L),c=L?0:p%h?h:p,this._lock=1,this.render(c||(T?0:wn(_*S)),s,!h)._lock=0,this._tTime=p,!s&&this.parent&&Pi(this,"onRepeat"),this.vars.repeatRefresh&&!T&&(this.invalidate()._lock=1,D=_),c&&c!==this._time||E!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,f=this._tDur,M&&(this._lock=2,c=L?h:-1e-4,this.render(c,!0),this.vars.repeatRefresh&&!T&&this.invalidate()),this._lock=0,!this._ts&&!E)return this;IC(this,T)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(N=g6(this,wn(c),wn(x)),N&&(p-=x-(x=N._start))),this._tTime=p,this._time=x,this._act=!k,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,c=0),!c&&p&&h&&!s&&!D&&(Pi(this,"onStart"),this._tTime!==p))return this;if(x>=c&&i>=0)for(v=this._first;v;){if(w=v._next,(v._act||x>=v._start)&&v._ts&&N!==v){if(v.parent!==this)return this.render(i,s,o);if(v.render(v._ts>0?(x-v._start)*v._ts:(v._dirty?v.totalDuration():v._tDur)+(x-v._start)*v._ts,s,o),x!==this._time||!this._ts&&!E){N=0,w&&(p+=this._zTime=-en);break}}v=w}else{v=this._last;for(var q=i<0?i:x;v;){if(w=v._prev,(v._act||q<=v._end)&&v._ts&&N!==v){if(v.parent!==this)return this.render(i,s,o);if(v.render(v._ts>0?(q-v._start)*v._ts:(v._dirty?v.totalDuration():v._tDur)+(q-v._start)*v._ts,s,o||_r&&qw(v)),x!==this._time||!this._ts&&!E){N=0,w&&(p+=this._zTime=q?-en:en);break}}v=w}}if(N&&!s&&(this.pause(),N.render(x>=c?0:-en)._zTime=x>=c?1:-1,this._ts))return this._start=R,xg(this),this.render(i,s,o);this._onUpdate&&!s&&Pi(this,"onUpdate",!0),(p===f&&this._tTime>=this.totalDuration()||!p&&c)&&(R===this._start||Math.abs(k)!==Math.abs(this._ts
vendor: 6,772 bytes, line 12
12))&&(this._lock||((i||!h)&&(p===f&&this._ts>0||!p&&this._ts<0)&&Rl(this,1),!s&&!(i<0&&!c)&&(p||c||!f)&&(Pi(this,p===f&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(p<f&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(Rs(s)||(s=ra(this,s,i)),!(i instanceof Pf)){if(Or(i))return i.forEach(function(c){return o.add(c,s)}),this;if(ur(i))return this.addLabel(i,s);if(Dn(i))i=Xn.delayedCall(0,i);else return this}return this!==i?Ia(this,i,s):this},n.getChildren=function(i,s,o,c){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),c===void 0&&(c=-oa);for(var f=[],h=this._first;h;)h._start>=c&&(h instanceof Xn?s&&f.push(h):(o&&f.push(h),i&&f.push.apply(f,h.getChildren(!0,s,o)))),h=h._next;return f},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return ur(i)?this.removeLabel(i):Dn(i)?this.killTweensOf(i):(i.parent===this&&vg(this,i),i===this._recent&&(this._recent=this._last),So(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wn(Oi.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=ra(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var c=Xn.delayedCall(0,s||Cf,o);return c.data="isPause",this._hasPause=1,Ia(this,c,ra(this,i))},n.removePause=function(i){var s=this._first;for(i=ra(this,i);s;)s._start===i&&s.data==="isPause"&&Rl(s),s=s._next},n.killTweensOf=function(i,s,o){for(var c=this.getTweensOf(i,o),f=c.length;f--;)bl!==c[f]&&c[f].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],c=ca(i),f=this._first,h=Rs(s),p;f;)f instanceof Xn?c6(f._targets,c)&&(h?(!bl||f._initted&&f._ts)&&f.globalTime(0)<=s&&f.globalTime(f.totalDuration())>s:!s||f.isActive())&&o.push(f):(p=f.getTweensOf(c,s)).length&&o.push.apply(o,p),f=f._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,c=ra(o,i),f=s,h=f.startAt,p=f.onStart,g=f.onStartParams,x=f.immediateRender,v,w=Xn.to(o,Fi({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:c,overwrite:"auto",duration:s.duration||Math.abs((c-(h&&"time"in h?h.time:o._time))/o.timeScale())||en,onStart:function(){if(o.pause(),!v){var S=s.duration||Math.abs((c-(h&&"time"in h?h.time:o._time))/o.timeScale());w._dur!==S&&pu(w,S,0,1).render(w._time,!0,!0),v=1}p&&p.apply(w,g||[])}},s));return x?w.render(0):w},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,Fi({startAt:{time:ra(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),QN(this,ra(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),QN(this,ra(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+en)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);var c=this._first,f=this.labels,h;for(i=wn(i);c;)c._start>=o&&(c._start+=i,c._end+=i),c=c._next;if(s)for(h in f)f[h]>=o&&(f[h]+=i);return So(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),So(this)},n.totalDuration=function(i){var s=0,o=this,c=o._last,f=oa,h,p,g;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(g=o.parent;c;)h=c._prev,c._dirty&&c.totalDuration(),p=c._start,p>f&&o._sort&&c._ts&&!o._lock?(o._lock=1,Ia(o,c,p-c._delay,1)._lock=0):f=p,p<0&&c._ts&&(s-=p,(!g&&!o._dp||g&&g.smoothChildTiming)&&(o._start+=wn(p/o._ts),o._time-=p,o._tTime-=p),o.shiftChildren(-p,!1,-1/0),f=0),c._end>s&&c._ts&&(s=c._end),c=h;pu(o,o===En&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(En._ts&&(yC(En,Jm(i,En)),mC=Oi.frame),Oi.frame>=YN){YN+=Ui.autoSleep||120;var s=En._first;if((!s||!s._ts)&&Ui.autoSleep&&Oi._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Oi.sleep()}}},e})(Pf);Fi(qr.prototype,{_lock:0,_hasPause:0,_forcing:0});var C6=function(e,n,r,i,s,o,c){var f=new si(this._pt,e,n,0,1,GC,null,s),h=0,p=0,g,x,v,w,_,S,E,N;for(f.b=r,f.e=i,r+="",i+="",(E=~i.indexOf("random("))&&(i=Df(i)),o&&(N=[r,i],o(N,e,n),r=N[0],i=N[1]),x=r.match(b0)||[];g=b0.exec(i);)w=g[0],_=i.substring(h,g.index),v?v=(v+1)%5:_.substr(-5)==="rgba("&&(v=1),w!==x[p++]&&(S=parseFloat(x[p-1])||0,f._pt={_next:f._pt,p:_||p===1?_:",",s:S,c:w.charAt(1)==="="?Wc(S,w)-S:parseFloat(w)-S,m:v&&v<4?Math.round:0},h=b0.lastIndex);return f.c=h<i.length?i.substring(h,i.length):"",f.fp=c,(dC.test(i)||E)&&(f.e=0),this._pt=f,f},Hw=function(e,n,r,i,s,o,c,f,h,p){Dn(i)&&(i=i(s||0,e,o));var g=e[n],x=r!=="get"?r:Dn(g)?h?e[n.indexOf("set")||!Dn(e["get"+n.substr(3)])?n:"get"+n.substr(3)](h):e[n]():g,v=Dn(g)?h?I6:qC:Vw,w;if(ur(i)&&(~i.indexOf("random(")&&(i=Df(i)),i.charAt(1)==="="&&(w=Wc(x,i)+(Nr(x)||0),(w||w===0)&&(i=w))),!p||x!==i||j_)return!isNaN(x*i)&&i!==""?(w=new si(this._pt,e,n,+x||0,i-(x||0),typeof g=="boolean"?U6:HC,0,v),h&&(w.fp=h),c&&w.modifier(c,this,e),this._pt=w):(!g&&!(n in e)&&Uw(n,i),C6.call(this,e,n,x,i,v,f||Ui.stringFilter,h))},D6=function(e,n,r,i,s){if(Dn(e)&&(e=sf(e,s,n,r,i)),!Ya(e)||e.style&&e.nodeType||Or(e)||cC(e))return ur(e)?sf(e,s,n,r,i):e;var o={},c;for(c in e)o[c]=sf(e[c],s,n,r,i);return o},BC=function(e,n,r,i,s,o){var c,f,h,p;if(Ti[e]&&(c=new Ti[e]).init(s,c.rawVars?n[e]:D6(n[e],i,s,o,r),r,i,o)!==!1&&(r._pt=f=new si(r._pt,s,e,0,1,c.render,c,0,c.priority),r!==Hc))for(h=r._ptLookup[r._targets.indexOf(s)],p=c._props.length;p--;)h[c._props[p]]=f;return c},bl,j_,Gw=function t(e,n,r){var i=e.vars,s=i.ease,o=i.startAt,c=i.immediateRender,f=i.lazy,h=i.onUpdate,p=i.runBackwards,g=i.yoyoEase,x=i.keyframes,v=i.autoRevert,w=e._dur,_=e._startAt,S=e._targets,E=e.parent,N=E&&E.data==="nested"?E.vars.targets:S,k=e._overwrite==="auto"&&!Pw,R=e.timeline,D,O,T,L,M,q,B,I,Z,X,K,U,W;if(R&&(!x||!s)&&(s="none"),e._ease=Eo(s,du.ease),e._yEase=g?MC(Eo(g===!0?s:g,du.ease)):0,g&&e._yoyo&&!e._repeat&&(g=e._yEase,e._yEase=e._ease,e._ease=g),e._from=!R&&!!i.runBackwards,!R||x&&!i.stagger){if(I=S[0]?wo(S[0]).harness:0,U=I&&i[I.prop],D=Xm(i,Bw),_&&(_._zTime<0&&_.progress(1),n<0&&p&&c&&!v?_.render(-1,!0):_.revert(p&&w?pm:l6),_._lazy=0),o){if(Rl(e._startAt=Xn.set(S,Fi({data:"isStart",overwrite:!1,parent:E,immediateRender:!0,lazy:!_&&ii(f),startAt:null,delay:0,onUpdate:h&&function(){return Pi(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(_r||!c&&!v)&&e._startAt.revert(pm),c&&w&&n<=0&&r<=0){n&&(e._zTime=n);return}}
vendor: 1,680 bytes, line 12
12else if(p&&w&&!_){if(n&&(c=!1),T=Fi({overwrite:!1,data:"isFromStart",lazy:c&&!_&&ii(f),immediateRender:c,stagger:0,parent:E},D),U&&(T[I.prop]=U),Rl(e._startAt=Xn.set(S,T)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(_r?e._startAt.revert(pm):e._startAt.render(-1,!0)),e._zTime=n,!c)t(e._startAt,en,en);else if(!n)return}for(e._pt=e._ptCache=0,f=w&&ii(f)||f&&!w,O=0;O<S.length;O++){if(M=S[O],B=M._gsap||Fw(S)[O]._gsap,e._ptLookup[O]=X={},x_[B.id]&&kl.length&&Wm(),K=N===S?O:N.indexOf(M),I&&(Z=new I).init(M,U||D,e,K,N)!==!1&&(e._pt=L=new si(e._pt,M,Z.name,0,1,Z.render,Z,0,Z.priority),Z._props.forEach(function(G){X[G]=L}),Z.priority&&(q=1)),!I||U)for(T in D)Ti[T]&&(Z=BC(T,D,e,K,M,N))?Z.priority&&(q=1):X[T]=L=Hw.call(e,M,T,"get",D[T],K,N,0,i.stringFilter);e._op&&e._op[O]&&e.kill(M,e._op[O]),k&&e._pt&&(bl=e,En.killTweensOf(M,X,e.globalTime(n)),W=!e.parent,bl=0),e._pt&&f&&(x_[B.id]=1)}q&&VC(e),e._onInit&&e._onInit(e)}e._onUpdate=h,e._initted=(!e._op||e._pt)&&!W,x&&n<=0&&R.render(oa,!0,!0)},L6=function(e,n,r,i,s,o,c,f){var h=(e._pt&&e._ptCache||(e._ptCache={}))[n],p,g,x,v;if(!h)for(h=e._ptCache[n]=[],x=e._ptLookup,v=e._targets.length;v--;){if(p=x[v][n],p&&p.d&&p.d._pt)for(p=p.d._pt;p&&p.p!==n&&p.fp!==n;)p=p._next;if(!p)return j_=1,e.vars[n]="+=0",Gw(e,c),j_=0,f?Rf(n+" not eligible for reset"):1;h.push(p)}for(v=h.length;v--;)g=h[v],p=g._pt||g,p.s=(i||i===0)&&!s?i:p.s+(i||0)+o*p.c,p.c=r-p.s,g.e&&(g.e=In(r)+Nr(g.e)),g.b&&(g.b=p.s+Nr(g.b))},P6=function(e,n){var r=e[0]?wo(e[0]).harness:0,i=r&&r.aliases,s,o,c,f;if(!i)return n;s=fu({},n);for(o in i)if(o in s)for(f=i[o].split(","),c=f.length;c--;)s[f[c]]=s[o];return s},M6=function(e,n,r,i){var s=n.ease||i||"power1.inOut",o,c;
vendor: 15,994 bytes, line 12
12if(Or(n))c=r[e]||(r[e]=[]),n.forEach(function(f,h){return c.push({t:h/(n.length-1)*100,v:f,e:s})});else for(o in n)c=r[o]||(r[o]=[]),o==="ease"||c.push({t:parseFloat(e),v:n[o],e:s})},sf=function(e,n,r,i,s){return Dn(e)?e.call(n,r,i,s):ur(e)&&~e.indexOf("random(")?Df(e):e},$C=$w+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",FC={};ai($C+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return FC[t]=1});var Xn=(function(t){lC(e,t);function e(r,i,s,o){var c;typeof i=="number"&&(s.duration=i,i=s,s=null),c=t.call(this,o?i:rf(i))||this;var f=c.vars,h=f.duration,p=f.delay,g=f.immediateRender,x=f.stagger,v=f.overwrite,w=f.keyframes,_=f.defaults,S=f.scrollTrigger,E=f.yoyoEase,N=i.parent||En,k=(Or(r)||cC(r)?Rs(r[0]):"length"in i)?[r]:ca(r),R,D,O,T,L,M,q,B;if(c._targets=k.length?Fw(k):Rf("GSAP target "+r+" not found. https://gsap.com",!Ui.nullTargetWarn)||[],c._ptLookup=[],c._overwrite=v,w||x||Lp(h)||Lp(p)){if(i=c.vars,R=c.timeline=new qr({data:"nested",defaults:_||{},targets:N&&N.data==="nested"?N.vars.targets:k}),R.kill(),R.parent=R._dp=bs(c),R._start=0,x||Lp(h)||Lp(p)){if(T=k.length,q=x&&NC(x),Ya(x))for(L in x)~$C.indexOf(L)&&(B||(B={}),B[L]=x[L]);for(D=0;D<T;D++)O=Xm(i,FC),O.stagger=0,E&&(O.yoyoEase=E),B&&fu(O,B),M=k[D],O.duration=+sf(h,bs(c),D,M,k),O.delay=(+sf(p,bs(c),D,M,k)||0)-c._delay,!x&&T===1&&O.delay&&(c._delay=p=O.delay,c._start+=p,O.delay=0),R.to(M,O,q?q(D,M,k):0),R._ease=At.none;R.duration()?h=p=0:c.timeline=0}else if(w){rf(Fi(R.vars.defaults,{ease:"none"})),R._ease=Eo(w.ease||i.ease||"none");var I=0,Z,X,K;if(Or(w))w.forEach(function(U){return R.to(k,U,">")}),R.duration();else{O={};for(L in w)L==="ease"||L==="easeEach"||M6(L,w[L],O,w.easeEach);for(L in O)for(Z=O[L].sort(function(U,W){return U.t-W.t}),I=0,D=0;D<Z.length;D++)X=Z[D],K={ease:X.e,duration:(X.t-(D?Z[D-1].t:0))/100*h},K[L]=X.v,R.to(k,K,I),I+=K.duration;R.duration()<h&&R.to({},{duration:h-R.duration()})}}h||c.duration(h=R.duration())}else c.timeline=0;return v===!0&&!Pw&&(bl=bs(c),En.killTweensOf(k),bl=0),Ia(N,bs(c),s),i.reversed&&c.reverse(),i.paused&&c.paused(!0),(g||!h&&!w&&c._start===wn(N._time)&&ii(g)&&h6(bs(c))&&N.data!=="nested")&&(c._tTime=-en,c.render(Math.max(0,-p)||0)),S&&wC(bs(c),S),c}var n=e.prototype;return n.render=function(i,s,o){var c=this._time,f=this._tDur,h=this._dur,p=i<0,g=i>f-en&&!p?f:i<en?0:i,x,v,w,_,S,E,N,k,R;if(!h)m6(this,i,s,o);else if(g!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(x=g,k=this.timeline,this._repeat){if(_=h+this._rDelay,this._repeat<-1&&p)return this.totalTime(_*100+i,s,o);if(x=wn(g%_),g===f?(w=this._repeat,x=h):(S=wn(g/_),w=~~S,w&&w===S?(x=h,w--):x>h&&(x=h)),E=this._yoyo&&w&1,E&&(R=this._yEase,x=h-x),S=hu(this._tTime,_),x===c&&!o&&this._initted&&w===S)return this._tTime=g,this;w!==S&&(k&&this._yEase&&IC(k,E),this.vars.repeatRefresh&&!E&&!this._lock&&x!==_&&this._initted&&(this._lock=o=1,this.render(wn(_*w),!0).invalidate()._lock=0))}if(!this._initted){if(SC(this,p?i:x,o,s,g))return this._tTime=0,this;if(c!==this._time&&!(o&&this.vars.repeatRefresh&&w!==S))return this;if(h!==this._dur)return this.render(i,s,o)}if(this._tTime=g,this._time=x,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=N=(R||this._ease)(x/h),this._from&&(this.ratio=N=1-N),!c&&g&&!s&&!S&&(Pi(this,"onStart"),this._tTime!==g))return this;for(v=this._pt;v;)v.r(N,v.d),v=v._next;k&&k.render(i<0?i:k._dur*k._ease(x/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(p&&b_(this,i,s,o),Pi(this,"onUpdate")),this._repeat&&w!==S&&this.vars.onRepeat&&!s&&this.parent&&Pi(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(p&&!this._onUpdate&&b_(this,i,!0,!0),(i||!h)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Rl(this,1),!s&&!(p&&!c)&&(g||c||E)&&(Pi(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,c,f){Lf||Oi.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),p;return this._initted||Gw(this,h),p=this._ease(h/this._dur),L6(this,i,s,o,c,p,h,f)?this.resetTo(i,s,o,c,1):(bg(this,0),this.parent||bC(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Gd(this):this.scrollTrigger&&this.scrollTrigger.kill(!!_r),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,bl&&bl.vars.overwrite!==!0)._first||Gd(this),this.parent&&o!==this.timeline.totalDuration()&&pu(this,this._dur*this.timeline._tDur/o,0,1),this}var c=this._targets,f=i?ca(i):c,h=this._ptLookup,p=this._pt,g,x,v,w,_,S,E;if((!s||s==="all")&&d6(c,f))return s==="all"&&(this._pt=0),Gd(this);for(g=this._op=this._op||[],s!=="all"&&(ur(s)&&(_={},ai(s,function(N){return _[N]=1}),s=_),s=P6(c,s)),E=c.length;E--;)if(~f.indexOf(c[E])){x=h[E],s==="all"?(g[E]=s,w=x,v={}):(v=g[E]=g[E]||{},w=s);for(_ in w)S=x&&x[_],S&&((!("kill"in S.d)||S.d.kill(_)===!0)&&vg(this,S,"_pt"),delete x[_]),v!=="all"&&(v[_]=1)}return this._initted&&!this._pt&&p&&Gd(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return af(1,arguments)},e.delayedCall=function(i,s,o,c){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:c})},e.fromTo=function(i,s,o){return af(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return En.killTweensOf(i,s,o)},e})(Pf);Fi(Xn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ai("staggerTo,staggerFrom,staggerFromTo",function(t){Xn[t]=function(){var e=new qr,n=w_.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Vw=function(e,n,r){return e[n]=r},qC=function(e,n,r){return e[n](r)},I6=function(e,n,r,i){return e[n](i.fp,r)},z6=function(e,n,r){return e.setAttribute(n,r)},Kw=function(e,n){return Dn(e[n])?qC:Mw(e[n])&&e.setAttribute?z6:Vw},HC=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},U6=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},GC=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},Yw=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},B6=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},$6=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?vg(this,n,"_pt"):n.dep||(r=1),n=i;return!r},F6=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},VC=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},si=(function(){function t(n,r,i,s,o,c,f,h,p){this.t=r,this.s=s,this.c=o,this.p=i,this.r=c||HC,this.d=f||this,this.set=h||Vw,this.pr=p||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=F6,this.m=r,this.mt=s,this.tween=i},t})();ai($w+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Bw[t]=1});$i.TweenMax=$i.TweenLite=Xn;$i.TimelineLite=$i.TimelineMax=qr;En=new qr({sortChildren:!1,defaults:du,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ui.stringFilter=PC;var jo=[],gm={},q6=[],eT=0,H6=0,j0=function(e){return(gm[e]||q6).map(function(n){return n()})},N_=function(){var e=Date.now(),n=[];e-eT>2&&(j0("matchMediaInit"),jo.forEach(function(r){var i=r.queries,s=r.conditions,o,c,f,h;for(c in i)o=Da.matchMedia(i[c]).matches,o&&(f=1),o!==s[c]&&(s[c]=o,h=1);h&&(r.revert(),f&&n.push(r))}),j0("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),eT=e,j0("matchMedia"))},KC=(function(){function t(n,r){this.selector=r&&S_(r),this.data=[],this._r=[],this.isReverted=!1,this.id=H6++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){Dn(r)&&(s=i,i=r,r=Dn);var o=this,c=function(){var h=vn,p=o.selector,g;return h&&h!==o&&h.data.push(o),s&&(o.selector=S_(s)),vn=o,g=i.apply(o,arguments),Dn(g)&&o._r.push(g),vn=h,o.selector=p,o.isReverted=!1,g};return o.last=c,r===Dn?c(o,function(f){return o.add(null,f)}):r?o[r]=c:c},e.ignore=function(r){var i=vn;vn=null,r(this),vn=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Xn&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?(function(){for(var c=s.getTweens(),f=s.data.length,h;f--;)h=s.data[f],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(p){return c.splice(c.indexOf(p),1)}));for(c.map(function(p){return{g:p._dur||p._delay||p._sat&&!p._sat.vars.immediateRender?p.globalTime(0):-1/0,t:p}}).sort(function(p,g){return g.g-p.g||-1/0}).forEach(function(p){return p.t.revert(r)}),f=s.data.length;f--;)h=s.data[f],h instanceof qr?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Xn)&&h.revert&&h.revert(r);s._r.forEach(function(p){return p(r,s)}),s.isReverted=!0})():this.data.forEach(function(c){return c.kill&&c.kill()}),this.clear(),i)for(var o=jo.length;o--;)jo[o].id===this.id&&jo.splice(o,1)},e.revert=function(r){this.kill(r||{})},t})(),G6=(function(){function t(n){this.contexts=[],this.scope=n,vn&&vn.data.push(this)}var e=t.prototype;return e.add=function(r,i,s){Ya(r)||(r={matches:r});var o=new KC(0,s||this.scope),c=o.conditions={},f,h,p;vn&&!o.selector&&(o.selector=vn.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(h in r)h==="all"?p=1:(f=Da.matchMedia(r[h]),f&&(jo.indexOf(o)<0&&jo.push(o),(c[h]=f.matches)&&(p=1),f.addListener?f.addListener(N_):f.addEventListener("change",N_)));return p&&i(o,function(g){return o.add(null,g)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t})(),Qm={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return CC(i)})},timeline:function(e){return new qr(e)},getTweensOf:function(e,n){return En.getTweensOf(e,n)},getProperty:function(e,n,r,i){ur(e)&&(e=ca(e)[0]);var s=wo(e||{}).get,o=r?xC:vC;return r==="native"&&(r=""),e&&(n?o((Ti[n]&&Ti[n].get||s)(e,n,r,i)):function(c,f,h){return o((Ti[c]&&Ti[c].get||s)(e,c,f,h))})},quickSetter:function(e,n,r){if(e=ca(e),e.length>1){var i=e.map(function(p){return di.quickSetter(p,n,r)}),s=i.length;return function(p){for(var g=s;g--;)i[g](p)}}e=e[0]||{};var o=Ti[n],c=wo(e),f=c.harness&&(c.harness.aliases||{})[n]||n,h=o?function(p){var g=new o;Hc._pt=0,g.init(e,r?p+r:p,Hc,0,[e]),g.render(1,g),Hc._pt&&Yw(1,Hc)}:c.set(e,f);return o?h:function(p){return h(e,f,r?p+r:p,c,1)}},quickTo:function(e,n,r){var i,s=di.to(e,Fi((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(f,h,p){return s.resetTo(n,f,h,p)};return o.tween=s,o},isTweening:function(e){return En.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Eo(e.ease,du.ease)),WN(du,e||{})},config:function(e){return WN(Ui,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(c){return c&&!Ti[c]&&!$i[c]&&Rf(n+" effect requires "+c+" plugin.")}),_0[n]=function(c,f,h){return r(ca(c),Fi(f||{},s),h)},o&&(qr.prototype[n]=function(c,f,h){return this.add(_0[n](c,Ya(f)?f:(h=f)&&{},this),h)})},registerEase:function(e,n){At[e]=Eo(n)},parseEase:function(e,n){return arguments.length?Eo(e,n):At},getById:function(e){return En.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new qr(e),i,s;for(r.smoothChildTiming=ii(e.smoothChildTiming),En.remove(r),r._dp=0,r._time=r._tTime=En._time,i=En._first;i;)s=i._next,(n||!(!i._dur&&i instanceof Xn&&i.vars.onComplete===i._targets[0]))&&Ia(r,i,i._start-i._delay),i=s;return Ia(En,r,0),r},context:function(e,n){return e?new KC(e,n):vn},matchMedia:function(e){return new G6(e)},matchMediaRefresh:function(){return jo.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||N_()},addEventListener:function(e,n){var r=gm[e]||(gm[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=gm[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:S6,wrapYoyo:E6,distribute:NC,random:kC,snap:TC,normalize:w6,getUnit:Nr,clamp:v6,splitColor:DC,toArray:ca,selector:S_,mapRange:OC,pipe:b6,unitize:_6,interpolate:j6,shuffle:jC},install:hC,effects:_0,ticker:Oi,updateRoot:qr.updateRoot,plugins:Ti,globalTimeline:En,core:{PropTween:si,globals:pC,Tween:Xn,Timeline:qr,Animation:Pf,getCache:wo,_removeLinkedListItem:vg,reverting:function(){return _r},context:function(e){return e&&vn&&(vn.data.push(e),e._ctx=vn),vn},suppressOverwrites:function(e){return Pw=e}}};ai("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Qm[t]=Xn[t]});Oi.add(qr.updateRoot);Hc=Qm.to({},{duration:0});var V6=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},K6=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=V6(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},N0=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(c){var f,h;if(ur(s)&&(f={},ai(s,function(p){return f[p]=1}),s=f),n){f={};for(h in s)f[h]=n(s[h]);s=f}K6(c,s)}}}},di=Qm.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,c,f;this.tween=r;for(o in n)f=e.getAttribute(o)||"",c=this.add(e,"setAttribute",(f||0)+"",n[o],i,s,0,0,o),c.op=o,c.b=f,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)_r?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},N0("roundProps",E_),N0("modifiers"),N0("snap",TC))||Qm;Xn.version=qr.version=di.version="3.14.2";fC=1;Iw()&&mu();At.Power0;At.Power1;At.Power2;At.Power3;At.Power4;At.Linear;At.Quad;At.Cubic;At.Quart;At.Quint;At.Strong;At.Elastic;At.Back;At.SteppedEase;At.Bounce;At.Sine;At.Expo;At.Circ;var tT,_l,Xc,Ww,yo,nT,Xw,Y6=function(){return typeof window<"u"},Cs={},co=180/Math.PI,Jc=Math.PI/180,bc=Math.atan2,rT=1e8,Jw=/([A-Z])/g,W6=/(left|right|width|margin|padding|x)/i,X6=/[\s,\(]\S/,$a={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},T_=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},J6=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Q6=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},Z6=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},ez=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},YC=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},WC=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},tz=function(e,n,r){return e.style[n]=r},nz=function(e,n,r){return e.style.setProperty(n,r)},rz=function(e,n,r){return e._gsap[n]=r},iz=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},az=function(e,n,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},sz=function(e,n,r,i,s){var o=e._gsap;o[n]=r,o.renderTransform(s,o)},jn="transform",li=jn+"Origin",lz=function t(e,n){var r=this,i=this.target,s=i.style,o=i._gsap;
vendor: 1,225 bytes, line 12
12if(e in Cs&&s){if(this.tfm=this.tfm||{},e!=="transform")e=$a[e]||e,~e.indexOf(",")?e.split(",").forEach(function(c){return r.tfm[c]=ws(i,c)}):this.tfm[e]=o.x?o[e]:ws(i,e),e===li&&(this.tfm.zOrigin=o.zOrigin);else return $a.transform.split(",").forEach(function(c){return t.call(r,c,n)});if(this.props.indexOf(jn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(li,n,"")),e=jn}(s||n)&&this.props.push(e,n,s[e])},XC=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},oz=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?n[e[s]](e[s+2]):n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(Jw,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=Xw(),(!s||!s.isStart)&&!r[jn]&&(XC(r),i.zOrigin&&r[li]&&(r[li]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},JC=function(e,n){var r={target:e,props:[],revert:oz,save:lz};return e._gsap||di.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.s
vendor: 8,639 bytes, line 12
12ave(i)}),r},QC,k_=function(e,n){var r=_l.createElementNS?_l.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):_l.createElement(e);return r&&r.style?r:_l.createElement(e)},Mi=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Jw,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,gu(n)||n,1)||""},iT="O,Moz,ms,Ms,Webkit".split(","),gu=function(e,n,r){var i=n||yo,s=i.style,o=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(iT[o]+e in s););return o<0?null:(o===3?"ms":o>=0?iT[o]:"")+e},A_=function(){Y6()&&window.document&&(tT=window,_l=tT.document,Xc=_l.documentElement,yo=k_("div")||{style:{}},k_("div"),jn=gu(jn),li=jn+"Origin",yo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",QC=!!gu("perspective"),Xw=di.core.reverting,Ww=1)},aT=function(e){var n=e.ownerSVGElement,r=k_("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),s;i.style.display="block",r.appendChild(i),Xc.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),Xc.removeChild(r),s},sT=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},ZC=function(e){var n,r;try{n=e.getBBox()}catch{n=aT(e),r=1}return n&&(n.width||n.height)||r||(n=aT(e)),n&&!n.width&&!n.x&&!n.y?{x:+sT(e,["x","cx","x1"])||0,y:+sT(e,["y","cy","y1"])||0,width:0,height:0}:n},eD=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ZC(e))},Cl=function(e,n){if(n){var r=e.style,i;n in Cs&&n!==li&&(n=jn),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(Jw,"-$1").toLowerCase())):r.removeAttribute(n)}},wl=function(e,n,r,i,s,o){var c=new si(e._pt,n,r,0,1,o?WC:YC);return e._pt=c,c.b=i,c.e=s,e._props.push(r),c},lT={deg:1,rad:1,turn:1},cz={grid:1,flex:1},Dl=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",c=yo.style,f=W6.test(n),h=e.tagName.toLowerCase()==="svg",p=(h?"client":"offset")+(f?"Width":"Height"),g=100,x=i==="px",v=i==="%",w,_,S,E;if(i===o||!s||lT[i]||lT[o])return s;if(o!=="px"&&!x&&(s=t(e,n,r,"px")),E=e.getCTM&&eD(e),(v||o==="%")&&(Cs[n]||~n.indexOf("adius")))return w=E?e.getBBox()[f?"width":"height"]:e[p],In(v?s/w*g:s/100*w);if(c[f?"width":"height"]=g+(x?o:i),_=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!h?e:e.parentNode,E&&(_=(e.ownerSVGElement||{}).parentNode),(!_||_===_l||!_.appendChild)&&(_=_l.body),S=_._gsap,S&&v&&S.width&&f&&S.time===Oi.time&&!S.uncache)return In(s/S.width*g);if(v&&(n==="height"||n==="width")){var N=e.style[n];e.style[n]=g+i,w=e[p],N?e.style[n]=N:Cl(e,n)}else(v||o==="%")&&!cz[Mi(_,"display")]&&(c.position=Mi(e,"position")),_===e&&(c.position="static"),_.appendChild(yo),w=yo[p],_.removeChild(yo),c.position="absolute";return f&&v&&(S=wo(_),S.time=Oi.time,S.width=_[p]),In(x?w*s/g:w&&s?g/w*s:0)},ws=function(e,n,r,i){var s;return Ww||A_(),n in $a&&n!=="transform"&&(n=$a[n],~n.indexOf(",")&&(n=n.split(",")[0])),Cs[n]&&n!=="transform"?(s=If(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:eg(Mi(e,li))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Zm[n]&&Zm[n](e,n,r)||Mi(e,n)||gC(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Dl(e,n,s,r)+r:s},uz=function(e,n,r,i){if(!r||r==="none"){var s=gu(n,e,1),o=s&&Mi(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=Mi(e,"borderTopColor"))}var c=new si(this._pt,e.style,n,0,1,GC),f=0,h=0,p,g,x,v,w,_,S,E,N,k,R,D;if(c.b=r,c.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Mi(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(_=e.style[n],e.style[n]=i,i=Mi(e,n)||i,_?e.style[n]=_:Cl(e,n)),p=[r,i],PC(p),r=p[0],i=p[1],x=r.match(qc)||[],D=i.match(qc)||[],D.length){for(;g=qc.exec(i);)S=g[0],N=i.substring(f,g.index),w?w=(w+1)%5:(N.substr(-5)==="rgba("||N.substr(-5)==="hsla(")&&(w=1),S!==(_=x[h++]||"")&&(v=parseFloat(_)||0,R=_.substr((v+"").length),S.charAt(1)==="="&&(S=Wc(v,S)+R),E=parseFloat(S),k=S.substr((E+"").length),f=qc.lastIndex-k.length,k||(k=k||Ui.units[n]||R,f===i.length&&(i+=k,c.e+=k)),R!==k&&(v=Dl(e,n,_,k)||0),c._pt={_next:c._pt,p:N||h===1?N:",",s:v,c:E-v,m:w&&w<4||n==="zIndex"?Math.round:0});c.c=f<i.length?i.substring(f,i.length):""}else c.r=n==="display"&&i==="none"?WC:YC;return dC.test(i)&&(c.e=0),this._pt=c,c},oT={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},dz=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=oT[r]||r,n[1]=oT[i]||i,n.join(" ")},fz=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,o=r._gsap,c,f,h;if(s==="all"||s===!0)i.cssText="",f=1;else for(s=s.split(","),h=s.length;--h>-1;)c=s[h],Cs[c]&&(f=1,c=c==="transformOrigin"?li:jn),Cl(r,c);f&&(Cl(r,jn),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",If(r,1),o.uncache=1,XC(i)))}},Zm={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new si(e._pt,n,r,0,0,fz);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},Mf=[1,0,0,1,0,0],tD={},nD=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},cT=function(e){var n=Mi(e,jn);return nD(n)?Mf:n.substr(7).match(uC).map(In)},Qw=function(e,n){var r=e._gsap||wo(e),i=e.style,s=cT(e),o,c,f,h;return r.svg&&e.getAttribute("transform")?(f=e.transform.baseVal.consolidate().matrix,s=[f.a,f.b,f.c,f.d,f.e,f.f],s.join(",")==="1,0,0,1,0,0"?Mf:s):(s===Mf&&!e.offsetParent&&e!==Xc&&!r.svg&&(f=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(h=1,c=e.nextElementSibling,Xc.appendChild(e)),s=cT(e),f?i.display=f:Cl(e,"display"),h&&(c?o.insertBefore(e,c):o?o.appendChild(e):Xc.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},O_=function(e,n,r,i,s,o){var c=e._gsap,f=s||Qw(e,!0),h=c.xOrigin||0,p=c.yOrigin||0,g=c.xOffset||0,x=c.yOffset||0,v=f[0],w=f[1],_=f[2],S=f[3],E=f[4],N=f[5],k=n.split(" "),R=parseFloat(k[0])||0,D=parseFloat(k[1])||0,O,T,L,M;r?f!==Mf&&(T=v*S-w*_)&&(L=R*(S/T)+D*(-_/T)+(_*N-S*E)/T,M=R*(-w/T)+D*(v/T)-(v*N-w*E)/T,R=L,D=M):(O=ZC(e),R=O.x+(~k[0].indexOf("%")?R/100*O.width:R),D=O.y+(~(k[1]||k[0]).indexOf("%")?D/100*O.height:D)),i||i!==!1&&c.smooth?(E=R-h,N=D-p,c.xOffset=g+(E*v+N*_)-E,c.yOffset=x+(E*w+N*S)-N):c.xOffset=c.yOffset=0,c.xOrigin=R,c.yOrigin=D,c.smooth=!!i,c.origin=n,c.originIsAbsolute=!!r,e.style[li]="0px 0px",o&&(wl(o,c,"xOrigin",h,R),wl(o,c,"yOrigin",p,D),wl(o,c,"xOffset",g,c.xOffset),wl(o,c,"yOffset",x,c.yOffset)),e.setAttribute("data-svg-origin",R+" "+D)},If=function(e,n){var r=e._gsap||new UC(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",c="deg",f=getComputedStyle(e),h=Mi(e,li)||"0",p,g,x,v,w,_,S,E,N,k,R,D,O,T,L,M,q,B,I,Z,X,K,U,W,G,he,A,z,Q,P,ce,ve;return p=g=x=_=S=E=N=k=R=0,v=w=1,r.svg=!!(e.getCTM&&eD(e)),f.translate&&((f.translate!=="none"||f.scale!=="none"||f.rotate!=="none")&&(i[jn]=(f.translate!=="none"?"translate3d("+(f.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(f.rotate!=="none"?"rotate("+f.rotate+") ":"")+(f.scale!=="none"?"scale("+f.scale.split(" ").join(",")+") ":"")+(f[jn]!=="none"?f[jn]:"")),i.scale=i.rotate=i.translate="none"),T=Qw(e,r.svg),r.svg&&(r.uncache?(G=e.getBBox(),h=r.xOrigin-G.x+"px "+(r.yOrigin-G.y)+"px",W=""):W=!n&&e.getAttribute("data-svg-origin"),O_(e,W||h,!!W||r.originIsAbsolute,r.smooth!==!1,T)),D=r.xOrigin||0,O=r.yOrigin||0,T!==Mf&&(B=T[0],I=T[1],Z=T[2],X=T[3],p=K=T[4],g=U=T[5],T.length===6?(v=Math.sqrt(B*B+I*I),w=Math.sqrt(X*X+Z*Z),_=B||I?bc(I,B)*co:0,N=Z||X?bc(Z,X)*co+_:0,N&&(w*=Math.abs(Math.cos(N*Jc))),r.svg&&(p-=D-(D*B+O*Z),g-=O-(D*I+O*X))):(ve=T[6],P=T[7],A=T[8],z=T[9],Q=T[10],ce=T[11],p=T[12],g=T[13],x=T[14],L=bc(ve,Q),S=L*co,L&&(M=Math.cos(-L),q=Math.sin(-L),W=K*M+A*q,G=U*M+z*q,he=ve*M+Q*q,A=K*-q+A*M,z=U*-q+z*M,Q=ve*-q+Q*M,ce=P*-q+ce*M,K=W,U=G,ve=he),L=bc(-Z,Q),E=L*co,L&&(M=Math.cos(-L),q=Math.sin(-L),W=B*M-A*q,G=I*M-z*q,he=Z*M-Q*q,ce=X*q+ce*M,B=W,I=G,Z=he),L=bc(I,B),_=L*co,L&&(M=Math.cos(L),q=Math.sin(L),W=B*M+I*q,G=K*M+U*q,I=I*M-B*q,U=U*M-K*q,B=W,K=G),S&&Math.abs(S)+Math.abs(_)>359.9&&(S=_=0,E=180-E),v=In(Math.sqrt(B*B+I*I+Z*Z)),w=In(Math.sqrt(U*U+ve*ve)),L=bc(K,U),N=Math.abs(L)>2e-4?L*co:0,R=ce?1/(ce<0?-ce:ce):0),r.svg&&(W=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!nD(Mi(e,jn)),W&&e.setAttribute("transform",W))),Math.abs(N)>90&&Math.abs(N)<270&&(s?(v*=-1,N+=_<=0?180:-180,_+=_<=0?180:-180):(w*=-1,N+=N<=0?180:-180)),n=n||r.uncache,r.x=p-((r.xPercent=p&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-p)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.
vendor: 22,221 bytes, line 12
12y=g-((r.yPercent=g&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-g)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=x+o,r.scaleX=In(v),r.scaleY=In(w),r.rotation=In(_)+c,r.rotationX=In(S)+c,r.rotationY=In(E)+c,r.skewX=N+c,r.skewY=k+c,r.transformPerspective=R+o,(r.zOrigin=parseFloat(h.split(" ")[2])||!n&&r.zOrigin||0)&&(i[li]=eg(h)),r.xOffset=r.yOffset=0,r.force3D=Ui.force3D,r.renderTransform=r.svg?pz:QC?rD:hz,r.uncache=0,r},eg=function(e){return(e=e.split(" "))[0]+" "+e[1]},T0=function(e,n,r){var i=Nr(n);return In(parseFloat(n)+parseFloat(Dl(e,"x",r+"px",i)))+i},hz=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,rD(e,n)},ro="0deg",Nd="0px",io=") ",rD=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,c=r.y,f=r.z,h=r.rotation,p=r.rotationY,g=r.rotationX,x=r.skewX,v=r.skewY,w=r.scaleX,_=r.scaleY,S=r.transformPerspective,E=r.force3D,N=r.target,k=r.zOrigin,R="",D=E==="auto"&&e&&e!==1||E===!0;if(k&&(g!==ro||p!==ro)){var O=parseFloat(p)*Jc,T=Math.sin(O),L=Math.cos(O),M;O=parseFloat(g)*Jc,M=Math.cos(O),o=T0(N,o,T*M*-k),c=T0(N,c,-Math.sin(O)*-k),f=T0(N,f,L*M*-k+k)}S!==Nd&&(R+="perspective("+S+io),(i||s)&&(R+="translate("+i+"%, "+s+"%) "),(D||o!==Nd||c!==Nd||f!==Nd)&&(R+=f!==Nd||D?"translate3d("+o+", "+c+", "+f+") ":"translate("+o+", "+c+io),h!==ro&&(R+="rotate("+h+io),p!==ro&&(R+="rotateY("+p+io),g!==ro&&(R+="rotateX("+g+io),(x!==ro||v!==ro)&&(R+="skew("+x+", "+v+io),(w!==1||_!==1)&&(R+="scale("+w+", "+_+io),N.style[jn]=R||"translate(0, 0)"},pz=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,c=r.y,f=r.rotation,h=r.skewX,p=r.skewY,g=r.scaleX,x=r.scaleY,v=r.target,w=r.xOrigin,_=r.yOrigin,S=r.xOffset,E=r.yOffset,N=r.forceCSS,k=parseFloat(o),R=parseFloat(c),D,O,T,L,M;f=parseFloat(f),h=parseFloat(h),p=parseFloat(p),p&&(p=parseFloat(p),h+=p,f+=p),f||h?(f*=Jc,h*=Jc,D=Math.cos(f)*g,O=Math.sin(f)*g,T=Math.sin(f-h)*-x,L=Math.cos(f-h)*x,h&&(p*=Jc,M=Math.tan(h-p),M=Math.sqrt(1+M*M),T*=M,L*=M,p&&(M=Math.tan(p),M=Math.sqrt(1+M*M),D*=M,O*=M)),D=In(D),O=In(O),T=In(T),L=In(L)):(D=g,L=x,O=T=0),(k&&!~(o+"").indexOf("px")||R&&!~(c+"").indexOf("px"))&&(k=Dl(v,"x",o,"px"),R=Dl(v,"y",c,"px")),(w||_||S||E)&&(k=In(k+w-(w*D+_*T)+S),R=In(R+_-(w*O+_*L)+E)),(i||s)&&(M=v.getBBox(),k=In(k+i/100*M.width),R=In(R+s/100*M.height)),M="matrix("+D+","+O+","+T+","+L+","+k+","+R+")",v.setAttribute("transform",M),N&&(v.style[jn]=M)},mz=function(e,n,r,i,s){var o=360,c=ur(s),f=parseFloat(s)*(c&&~s.indexOf("rad")?co:1),h=f-i,p=i+h+"deg",g,x;return c&&(g=s.split("_")[1],g==="short"&&(h%=o,h!==h%(o/2)&&(h+=h<0?o:-o)),g==="cw"&&h<0?h=(h+o*rT)%o-~~(h/o)*o:g==="ccw"&&h>0&&(h=(h-o*rT)%o-~~(h/o)*o)),e._pt=x=new si(e._pt,n,r,i,h,J6),x.e=p,x.u="deg",e._props.push(r),x},uT=function(e,n){for(var r in n)e[r]=n[r];return e},gz=function(e,n,r){var i=uT({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,c,f,h,p,g,x,v,w;i.svg?(h=r.getAttribute("transform"),r.setAttribute("transform",""),o[jn]=n,c=If(r,1),Cl(r,jn),r.setAttribute("transform",h)):(h=getComputedStyle(r)[jn],o[jn]=n,c=If(r,1),o[jn]=h);for(f in Cs)h=i[f],p=c[f],h!==p&&s.indexOf(f)<0&&(v=Nr(h),w=Nr(p),g=v!==w?Dl(r,f,h,w):parseFloat(h),x=parseFloat(p),e._pt=new si(e._pt,c,f,g,x-g,T_),e._pt.u=w||0,e._props.push(f));uT(c,i)};ai("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(c){return e<2?t+c:"border"+c+t});Zm[e>1?"border"+t:t]=function(c,f,h,p,g){var x,v;if(arguments.length<4)return x=o.map(function(w){return ws(c,w,h)}),v=x.join(" "),v.split(x[0]).length===5?x[0]:v;x=(p+"").split(" "),v={},o.forEach(function(w,_){return v[w]=x[_]=x[_]||x[(_-1)/2|0]}),c.init(f,v,g)}});var iD={name:"css",register:A_,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,c=e.style,f=r.vars.startAt,h,p,g,x,v,w,_,S,E,N,k,R,D,O,T,L,M;Ww||A_(),this.styles=this.styles||JC(e),L=this.styles.props,this.tween=r;for(_ in n)if(_!=="autoRound"&&(p=n[_],!(Ti[_]&&BC(_,n,r,i,e,s)))){if(v=typeof p,w=Zm[_],v==="function"&&(p=p.call(r,i,e,s),v=typeof p),v==="string"&&~p.indexOf("random(")&&(p=Df(p)),w)w(this,e,_,p,r)&&(T=1);else if(_.substr(0,2)==="--")h=(getComputedStyle(e).getPropertyValue(_)+"").trim(),p+="",Al.lastIndex=0,Al.test(h)||(S=Nr(h),E=Nr(p),E?S!==E&&(h=Dl(e,_,h,E)+E):S&&(p+=S)),this.add(c,"setProperty",h,p,i,s,0,0,_),o.push(_),L.push(_,0,c[_]);else if(v!=="undefined"){if(f&&_ in f?(h=typeof f[_]=="function"?f[_].call(r,i,e,s):f[_],ur(h)&&~h.indexOf("random(")&&(h=Df(h)),Nr(h+"")||h==="auto"||(h+=Ui.units[_]||Nr(ws(e,_))||""),(h+"").charAt(1)==="="&&(h=ws(e,_))):h=ws(e,_),x=parseFloat(h),N=v==="string"&&p.charAt(1)==="="&&p.substr(0,2),N&&(p=p.substr(2)),g=parseFloat(p),_ in $a&&(_==="autoAlpha"&&(x===1&&ws(e,"visibility")==="hidden"&&g&&(x=0),L.push("visibility",0,c.visibility),wl(this,c,"visibility",x?"inherit":"hidden",g?"inherit":"hidden",!g)),_!=="scale"&&_!=="transform"&&(_=$a[_],~_.indexOf(",")&&(_=_.split(",")[0]))),k=_ in Cs,k){if(this.styles.save(_),M=p,v==="string"&&p.substring(0,6)==="var(--"){if(p=Mi(e,p.substring(4,p.indexOf(")"))),p.substring(0,5)==="calc("){var q=e.style.perspective;e.style.perspective=p,p=Mi(e,"perspective"),q?e.style.perspective=q:Cl(e,"perspective")}g=parseFloat(p)}if(R||(D=e._gsap,D.renderTransform&&!n.parseTransform||If(e,n.parseTransform),O=n.smoothOrigin!==!1&&D.smooth,R=this._pt=new si(this._pt,c,jn,0,1,D.renderTransform,D,0,-1),R.dep=1),_==="scale")this._pt=new si(this._pt,D,"scaleY",D.scaleY,(N?Wc(D.scaleY,N+g):g)-D.scaleY||0,T_),this._pt.u=0,o.push("scaleY",_),_+="X";else if(_==="transformOrigin"){L.push(li,0,c[li]),p=dz(p),D.svg?O_(e,p,0,O,0,this):(E=parseFloat(p.split(" ")[2])||0,E!==D.zOrigin&&wl(this,D,"zOrigin",D.zOrigin,E),wl(this,c,_,eg(h),eg(p)));continue}else if(_==="svgOrigin"){O_(e,p,1,O,0,this);continue}else if(_ in tD){mz(this,D,_,x,N?Wc(x,N+p):p);continue}else if(_==="smoothOrigin"){wl(this,D,"smooth",D.smooth,p);continue}else if(_==="force3D"){D[_]=p;continue}else if(_==="transform"){gz(this,p,e);continue}}else _ in c||(_=gu(_)||_);if(k||(g||g===0)&&(x||x===0)&&!X6.test(p)&&_ in c)S=(h+"").substr((x+"").length),g||(g=0),E=Nr(p)||(_ in Ui.units?Ui.units[_]:S),S!==E&&(x=Dl(e,_,h,E)),this._pt=new si(this._pt,k?D:c,_,x,(N?Wc(x,N+g):g)-x,!k&&(E==="px"||_==="zIndex")&&n.autoRound!==!1?ez:T_),this._pt.u=E||0,k&&M!==p?(this._pt.b=h,this._pt.e=M,this._pt.r=Z6):S!==E&&E!=="%"&&(this._pt.b=h,this._pt.r=Q6);else if(_ in c)uz.call(this,e,_,h,N?N+p:p);else if(_ in e)this.add(e,_,h||e[_],N?N+p:p,i,s);else if(_!=="parseTransform"){Uw(_,p);continue}k||(_ in c?L.push(_,0,c[_]):typeof e[_]=="function"?L.push(_,2,e[_]()):L.push(_,1,h||e[_])),o.push(_)}}T&&VC(this)},render:function(e,n){if(n.tween._time||!Xw())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:ws,aliases:$a,getSetter:function(e,n,r){var i=$a[n];return i&&i.indexOf(",")<0&&(n=i),n in Cs&&n!==li&&(e._gsap.x||ws(e,"x"))?r&&nT===r?n==="scale"?iz:rz:(nT=r||{})&&(n==="scale"?az:sz):e.style&&!Mw(e.style[n])?tz:~n.indexOf("-")?nz:Kw(e,n)},core:{_removeProperty:Cl,_getMatrix:Qw}};di.utils.checkPrefix=gu;di.core.getStyleSaver=JC;(function(t,e,n,r){var i=ai(t+","+e+","+n,function(s){Cs[s]=1});ai(e,function(s){Ui.units[s]="deg",tD[s]=1}),$a[i[13]]=t+","+e,ai(r,function(s){var o=s.split(":");$a[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ai("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Ui.units[t]="px"});di.registerPlugin(iD);var Ue=di.registerPlugin(iD)||di;Ue.core.Tween;function yz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vz(t,e,n){return e&&yz(t.prototype,e),t}var br,ym,Ri,Sl,El,Qc,aD,uo,lf,sD,ks,ya,lD,oD=function(){return br||typeof window<"u"&&(br=window.gsap)&&br.registerPlugin&&br},cD=1,Gc=[],vt=[],Ha=[],of=Date.now,R_=function(e,n){return n},xz=function(){var e=lf.core,n=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,vt),i.push.apply(i,Ha),vt=r,Ha=i,R_=function(o,c){return n[o](c)}},Ol=function(e,n){return~Ha.indexOf(e)&&Ha[Ha.indexOf(e)+1][n]},cf=function(e){return!!~sD.indexOf(e)},Ur=function(e,n,r,i,s){return e.addEventListener(n,r,{passive:i!==!1,capture:!!s})},Mr=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},Pp="scrollLeft",Mp="scrollTop",C_=function(){return ks&&ks.isPressed||vt.cache++},tg=function(e,n){var r=function i(s){if(s||s===0){cD&&(Ri.history.scrollRestoration="manual");var o=ks&&ks.isPressed;s=i.v=Math.round(s)||(ks&&ks.iOS?1:0),e(s),i.cacheID=vt.cache,o&&R_("ss",s)}else(n||vt.cache!==i.cacheID||R_("ref"))&&(i.cacheID=vt.cache,i.v=e());return i.v+i.offset};return r.offset=0,e&&r},Hr={s:Pp,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:tg(function(t){return arguments.length?Ri.scrollTo(t,ar.sc()):Ri.pageXOffset||Sl[Pp]||El[Pp]||Qc[Pp]||0})},ar={s:Mp,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Hr,sc:tg(function(t){return arguments.length?Ri.scrollTo(Hr.sc(),t):Ri.pageYOffset||Sl[Mp]||El[Mp]||Qc[Mp]||0})},ni=function(e,n){return(n&&n._ctx&&n._ctx.selector||br.utils.toArray)(e)[0]||(typeof e=="string"&&br.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},bz=function(e,n){for(var r=n.length;r--;)if(n[r]===e||n[r].contains(e))return!0;return!1},Ll=function(e,n){var r=n.s,i=n.sc;cf(e)&&(e=Sl.scrollingElement||El);var s=vt.indexOf(e),o=i===ar.sc?1:2;!~s&&(s=vt.push(e)-1),vt[s+o]||Ur(e,"scroll",C_);var c=vt[s+o],f=c||(vt[s+o]=tg(Ol(e,r),!0)||(cf(e)?i:tg(function(h){return arguments.length?e[r]=h:e[r]})));return f.target=e,c||(f.smooth=br.getProperty(e,"scrollBehavior")==="smooth"),f},D_=function(e,n,r){var i=e,s=e,o=of(),c=o,f=n||50,h=Math.max(500,f*3),p=function(w,_){var S=of();_||S-o>f?(s=i,i=w,c=o,o=S):r?i+=w:i=s+(w-s)/(S-c)*(o-c)},g=function(){s=i=r?0:i,c=o=0},x=function(w){var _=c,S=s,E=of();return(w||w===0)&&w!==i&&p(w),o===c||E-c>h?0:(i+(r?S:-S))/((r?E:o)-_)*1e3};return{update:p,reset:g,getVelocity:x}},Td=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},dT=function(e){var n=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(r)?n:r},uD=function(){lf=br.core.globals().ScrollTrigger,lf&&lf.core&&xz()},dD=function(e){return br=e||oD(),!ym&&br&&typeof document<"u"&&document.body&&(Ri=window,Sl=document,El=Sl.documentElement,Qc=Sl.body,sD=[Ri,Sl,El,Qc],br.utils.clamp,lD=br.core.context||function(){},uo="onpointerenter"in Qc?"pointer":"mouse",aD=Un.isTouch=Ri.matchMedia&&Ri.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ri||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ya=Un.eventTypes=("ontouchstart"in El?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in El?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return cD=0},500),uD(),ym=1),ym};Hr.op=ar;vt.cache=0;var Un=(function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(r){ym||dD(br)||console.warn("Please gsap.registerPlugin(Observer)"),lf||uD();var i=r.tolerance,s=r.dragMinimum,o=r.type,c=r.target,f=r.lineHeight,h=r.debounce,p=r.preventDefault,g=r.onStop,x=r.onStopDelay,v=r.ignore,w=r.wheelSpeed,_=r.event,S=r.onDragStart,E=r.onDragEnd,N=r.onDrag,k=r.onPress,R=r.onRelease,D=r.onRight,O=r.onLeft,T=r.onUp,L=r.onDown,M=r.onChangeX,q=r.onChangeY,B=r.onChange,I=r.onToggleX,Z=r.onToggleY,X=r.onHover,K=r.onHoverEnd,U=r.onMove,W=r.ignoreCheck,G=r.isNormalizer,he=r.onGestureStart,A=r.onGestureEnd,z=r.onWheel,Q=r.onEnable,P=r.onDisable,ce=r.onClick,ve=r.scrollSpeed,ye=r.capture,Se=r.allowClicks,He=r.lockAxis,Te=r.onLockAxis;this.target=c=ni(c)||El,this.vars=r,v&&(v=br.utils.toArray(v)),i=i||1e-9,s=s||0,w=w||1,ve=ve||1,o=o||"wheel,touch,pointer",h=h!==!1,f||(f=parseFloat(Ri.getComputedStyle(Qc).lineHeight)||22);var Ae,We,Ge,Ce,Ve,re,ue,H=this,Ne=0,xt=0,Ut=r.passive||!p&&r.passive!==!1,ut=Ll(c,Hr),xn=Ll(c,ar),Qn=ut(),It=xn(),gn=~o.indexOf("touch")&&!~o.indexOf("pointer")&&ya[0]==="pointerdown",oe=cf(c),ge=c.ownerDocument||Sl,De=[0,0,0],Be=[0,0,0],it=0,kn=function(){return it=of()},Rt=function(ze,St){return(H.event=ze)&&v&&bz(ze.target,v)||St&&gn&&ze.pointerType!=="touch"||W&&W(ze,St)},An=function(){H._vx.reset(),H._vy.reset(),We.pause(),g&&g(H)},Ot=function(){var ze=H.deltaX=dT(De),St=H.deltaY=dT(Be),be=Math.abs(ze)>=i,Ke=Math.abs(St)>=i;B&&(be||Ke)&&B(H,ze,St,De,Be),be&&(D&&H.deltaX>0&&D(H),O&&H.deltaX<0&&O(H),M&&M(H),I&&H.deltaX<0!=Ne<0&&I(H),Ne=H.deltaX,De[0]=De[1]=De[2]=0),Ke&&(L&&H.deltaY>0&&L(H),T&&H.deltaY<0&&T(H),q&&q(H),Z&&H.deltaY<0!=xt<0&&Z(H),xt=H.deltaY,Be[0]=Be[1]=Be[2]=0),(Ce||Ge)&&(U&&U(H),Ge&&(S&&Ge===1&&S(H),N&&N(H),Ge=0),Ce=!1),re&&!(re=!1)&&Te&&Te(H),Ve&&(z(H),Ve=!1),Ae=0},tn=function(ze,St,be){De[be]+=ze,Be[be]+=St,H._vx.update(ze),H._vy.update(St),h?Ae||(Ae=requestAnimationFrame(Ot)):Ot()},Y=function(ze,St){He&&!ue&&(H.axis=ue=Math.abs(ze)>Math.abs(St)?"x":"y",re=!0),ue!=="y"&&(De[2]+=ze,H._vx.update(ze,!0)),ue!=="x"&&(Be[2]+=St,H._vy.update(St,!0)),h?Ae||(Ae=requestAnimationFrame(Ot)):Ot()},ee=function(ze){if(!Rt(ze,1)){ze=Td(ze,p);var St=ze.clientX,be=ze.clientY,Ke=St-H.x,Pe=be-H.y,Ye=H.isDragging;H.x=St,H.y=be,(Ye||(Ke||Pe)&&(Math.abs(H.startX-St)>=s||Math.abs(H.startY-be)>=s))&&(Ge||(Ge=Ye?2:1),Ye||(H.isDragging=!0),Y(Ke,Pe))}},Xe=H.onPress=function(Ie){Rt(Ie,1)||Ie&&Ie.button||(H.axis=ue=null,We.pause(),H.isPressed=!0,Ie=Td(Ie),Ne=xt=0,H.startX=H.x=Ie.clientX,H.startY=H.y=Ie.clientY,H._vx.reset(),H._vy.reset(),Ur(G?c:ge,ya[1],ee,Ut,!0),H.deltaX=H.deltaY=0,k&&k(H))},ke=H.onRelease=function(Ie){if(!Rt(Ie,1)){Mr(G?c:ge,ya[1],ee,!0);var ze=!isNaN(H.y-H.startY),St=H.isDragging,be=St&&(Math.abs(H.x-H.startX)>3||Math.abs(H.y-H.startY)>3),Ke=Td(Ie);!be&&ze&&(H._vx.reset(),H._vy.reset(),p&&Se&&br.delayedCall(.08,function(){if(of()-it>300&&!Ie.defaultPrevented){if(Ie.target.click)Ie.target.click();else if(ge.createEvent){var Pe=ge.createEvent("MouseEvents");Pe.initMouseEvent("click",!0,!0,Ri,1,Ke.screenX,Ke.screenY,Ke.clientX,Ke.clientY,!1,!1,!1,!1,0,null),Ie.target.dispatchEvent(Pe)}}})),H.isDragging=H.isGesturing=H.isPressed=!1,g&&St&&!G&&We.restart(!0),Ge&&Ot(),E&&St&&E(H),R&&R(H,be)}},pt=function(ze){return ze.touches&&ze.touches.length>1&&(H.isGesturing=!0)&&he(ze,H.isDragging)},$e=function(){return(H.isGesturing=!1)||A(H)},fn=function(ze){if(!Rt(ze)){var St=ut(),be=xn();tn((St-Qn)*ve,(be-It)*ve,1),Qn=St,It=be,g&&We.restart(!0)}},Yt=function(ze){if(!Rt(ze)){ze=Td(ze,p),z&&(Ve=!0);var St=(ze.deltaMode===1?f:ze.deltaMode===2?Ri.innerHeight:1)*w;tn(ze.deltaX*St,ze.deltaY*St,0),g&&!G&&We.restart(!0)}},nn=function(ze){if(!Rt(ze)){var St=ze.clientX,be=ze.clientY,Ke=St-H.x,Pe=be-H.y;H.x=St,H.y=be,Ce=!0,g&&We.restart(!0),(Ke||Pe)&&Y(Ke,Pe)}},Ln=function(ze){H.event=ze,X(H)},Dr=function(ze){H.event=ze,K(H)},Lr=function(ze){return Rt(ze)||Td(ze,p)&&ce(H)};We=H._dc=br.delayedCall(x||.25,An).pause(),H.deltaX=H.deltaY=0,H._vx=D_(0,50,!0),H._vy=D_(0,50,!0),H.scrollX=ut,H.scrollY=xn,H.isDragging=H.isGesturing=H.isPressed=!1,lD(this),H.enable=function(Ie){return H.isEnabled||(Ur(oe?ge:c,"scroll",C_),o.indexOf("scroll")>=0&&Ur(oe?ge:c,"scroll",fn,Ut,ye),o.indexOf("wheel")>=0&&Ur(c,"wheel",Yt,Ut,ye),(o.indexOf("touch")>=0&&aD||o.indexOf("pointer")>=0)&&(Ur(c,ya[0],Xe,Ut,ye),Ur(ge,ya[2],ke),Ur(ge,ya[3],ke),Se&&Ur(c,"click",kn,!0,!0),ce&&Ur(c,"click",Lr),he&&Ur(ge,"gesturestart",pt),A&&Ur(ge,"gestureend",$e),X&&Ur(c,uo+"enter",Ln),K&&Ur(c,uo+"leave",Dr),U&&Ur(c,uo+"move",nn)),H.isEnabled=!0,H.isDragging=H.isGesturing=H.isPressed=Ce=Ge=!1,H._vx.reset(),H._vy.reset(),Qn=ut(),It=xn(),Ie&&Ie.type&&Xe(Ie),Q&&Q(H)),H},H.disable=function(){H.isEnabled&&(Gc.filter(function(Ie){return Ie!==H&&cf(Ie.target)}).length||Mr(oe?ge:c,"scroll",C_),H.isPressed&&(H._vx.reset(),H._vy.reset(),Mr(G?c:ge,ya[1],ee,!0)),Mr(oe?ge:c,"scroll",fn,ye),Mr(c,"wheel",Yt,ye),Mr(c,ya[0],Xe,ye),Mr(ge,ya[2],ke),Mr(ge,ya[3],ke),Mr(c,"click",kn,!0),Mr(c,"click",Lr),Mr(ge,"gesturestart",pt),Mr(ge,"gestureend",$e),Mr(c,uo+"enter",Ln),Mr(c,uo+"leave",Dr),Mr(c,uo+"move",nn),H.isEnabled=H.isPressed=H.isDragging=!1,P&&P(H))},H.kill=H.revert=function(){H.disable();var Ie=Gc.indexOf(H);Ie>=0&&Gc.splice(Ie,1),ks===H&&(ks=0)},Gc.push(H),G&&cf(c)&&(ks=H),H.enable(_)},vz(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t})();Un.version="3.14.2";Un.create=function(t){return new Un(t)};Un.register=dD;Un.getAll=function(){return Gc.slice()};Un.getById=function(t){return Gc.filter(function(e){return e.vars.id===t})[0]};oD()&&br.registerPlugin(Un);var Re,Pc,yt,on,ki,zt,Zw,ng,zf,uf,Kd,Ip,Er,_g,L_,$r,fT,hT,Mc,fD,k0,hD,Br,P_,pD,mD,ml,M_,e1,Zc,t1,df,I_,A0,zp=1,jr=Date.now,O0=jr(),da=0,Yd=0,pT=function(e,n,r){var i=Ni(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?e.substr(6,e.length-7):e},mT=function(e,n){return n&&(!Ni(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},_z=function t(){return Yd&&requestAnimationFrame(t)},gT=function(){return _g=1},yT=function(){return _g=0},La=function(e){return e},Wd=function(e){return Math.round(e*1e5)/1e5||0},gD=function(){return typeof window<"u"},yD=function(){return Re||gD()&&(Re=window.gsap)&&Re.registerPlugin&&Re},Co=function(e){return!!~Zw.indexOf(e)},vD=function(e){return(e==="Height"?t1:yt["inner"+e])||ki["client"+e]||zt["client"+e]},xD=function(e){return Ol(e,"getBoundingClientRect")||(Co(e)?function(){return wm.width=yt.innerWidth,wm.height=t1,wm}:function(){return js(e)})},wz=function(e,n,r){var i=r.d,s=r.d2,o=r.a;return(o=Ol(e,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(n?vD(s):e["client"+s])||0}},Sz=function(e,n){return!n||~Ha.indexOf(e)?xD(e):function(){return wm}},Fa=function(e,n){var r=n.s,i=n.d2,s=n.d,o=n.a;return Math.max(0,(r="scroll"+i)&&(o=Ol(e,r))?o()-xD(e)()[s]:Co(e)?(ki[r]||zt[r])-vD(i):e[r]-e["offset"+i])},Up=function(e,n){for(var r=0;r<Mc.length;r+=3)(!n||~n.indexOf(Mc[r+1]))&&e(Mc[r],Mc[r+1],Mc[r+2])},Ni=function(e){return typeof e=="string"},Tr=function(e){return typeof e=="function"},Xd=function(e){return typeof e=="number"},fo=function(e){return typeof e=="object"},kd=function(e,n,r){return e&&e.progress(n?0:1)&&r&&e.pause()},R0=function(e,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return n(e)}):n(e);r&&r.totalTime&&(e.callbackAnimation=r)}},_c=Math.abs,bD="left",_D="top",n1="right",r1="bottom",No="width",To="height",ff="Right",hf="Left",pf="Top",mf="Bottom",Yn="padding",aa="margin",yu="Width",i1="Height",rr="px",sa=function(e){return yt.getComputedStyle(e)},Ez=function(e){var n=sa(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},vT=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},js=function(e,n){var r=n&&sa(e)[L_]!=="matrix(1, 0, 0, 1, 0, 0)"&&Re.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},rg=function(e,n){var r=n.d2;return e["offset"+r]||e["client"+r]||0},wD=function(e){var n=[],r=e.labels,i=e.duration(),s;for(s in r)n.push(r[s]/i);return n},jz=function(e){return function(n){return Re.utils.snap(wD(e),n)}},a1=function(e){var n=Re.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(i,s){return i-s});return r?function(i,s,o){o===void 0&&(o=.001);var c;if(!s)return n(i);if(s>0){for(i-=o,c=0;c<r.length;c++)if(r[c]>=i)return r[c];return r[c-1]}else for(c=r.length,i+=o;c--;)if(r[c]<=i)return r[c];return r[0]}:function(i,s,o){o===void 0&&(o=.001);var c=n(i);return!s||Math.abs(c-i)<o||c-i<0==s<0?c:n(s<0?i-e:i+e)}},Nz=function(e){return function(n,r){return a1(wD(e))(n,r.direction)}},Bp=function(e,n,r,i){return r.split(",").forEach(function(s){return e(n,s,i)})},cr=function(e,n,r,i,s){return e.addEventListener(n,r,{passive:!i,capture:!!s})},or=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},$p=function(e,n,r){r=r&&r.wheelHandler,r&&(e(n,"wheel",r),e(n,"touchmove",r))},xT={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Fp={toggleActions:"play",anticipatePin:0},ig={top:0,left:0,center:.5,bottom:1,right:1},vm=function(e,n){if(Ni(e)){var r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=n/100),e=e.substr(0,r-1)),e=i+(e in ig?ig[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},qp=function(e,n,r,i,s,o,c,f){var h=s.startColor,p=s.endColor,g=s.fontSize,x=s.indent,v=s.fontWeight,w=on.createElement("div"),_=Co(r)||Ol(r,"pinType")==="fixed",S=e.indexOf("scroller")!==-1,E=_?zt:r,N=e.indexOf("start")!==-1,k=N?h:p,R="border-color:"+k+";font-size:"+g+";color:"+k+";font-weight:"+v+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return R+="position:"+((S||f)&&_?"fixed;":"absolute;"),(S||f||!_)&&(R+=(i===ar?n1:r1)+":"+(o+parseFloat(x))+"px;"),c&&(R+="box-sizing:border-box;text-align:left;width:"+c.offsetWidth+"px;"),w._isStart=N,w.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),w.style.cssText=R,w.innerText=n||n===0?e+"-"+n:e,E.children[0]?E.insertBefore(w,E.children[0]):E.appendChild(w),w._offset=w["offset"+i.op.d2],xm(w,0,i,N),w},xm=function(e,n,r,i){var s={display:"block"},o=r[i?"os2":"p2"],c=r[i?"p2":"os2"];e._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+yu]=1,s["border"+c+yu]=0,s[r.p]=n+"px",Re.set(e,s)},ht=[],z_={},Uf,bT=function(){return jr()-da>34&&(Uf||(Uf=requestAnimationFrame(Os)))},wc=function(){(!Br||!Br.isPressed||Br.startX>zt.clientWidth)&&(vt.cache++,Br?Uf||(Uf=requestAnimationFrame(Os)):Os(),da||Lo("scrollStart"),da=jr())},C0=function(){mD=yt.innerWidth,pD=yt.innerHeight},Jd=function(e){vt.cache++,(e===!0||!Er&&!hD&&!on.fullscreenElement&&!on.webkitFullscreenElement&&(!P_||mD!==yt.innerWidth||Math.abs(yt.innerHe
vendor: 5,298 bytes, line 12
12ight-pD)>yt.innerHeight*.25))&&ng.restart(!0)},Do={},Tz=[],SD=function t(){return or(nt,"scrollEnd",t)||vo(!0)},Lo=function(e){return Do[e]&&Do[e].map(function(n){return n()})||Tz},ji=[],ED=function(e){for(var n=0;n<ji.length;n+=5)(!e||ji[n+4]&&ji[n+4].query===e)&&(ji[n].style.cssText=ji[n+1],ji[n].getBBox&&ji[n].setAttribute("transform",ji[n+2]||""),ji[n+3].uncache=1)},jD=function(){return vt.forEach(function(e){return Tr(e)&&++e.cacheID&&(e.rec=e())})},s1=function(e,n){var r;for($r=0;$r<ht.length;$r++)r=ht[$r],r&&(!n||r._ctx===n)&&(e?r.kill(1):r.revert(!0,!0));df=!0,n&&ED(n),n||Lo("revert")},ND=function(e,n){vt.cache++,(n||!Fr)&&vt.forEach(function(r){return Tr(r)&&r.cacheID++&&(r.rec=0)}),Ni(e)&&(yt.history.scrollRestoration=e1=e)},Fr,ko=0,_T,kz=function(){if(_T!==ko){var e=_T=ko;requestAnimationFrame(function(){return e===ko&&vo(!0)})}},TD=function(){zt.appendChild(Zc),t1=!Br&&Zc.offsetHeight||yt.innerHeight,zt.removeChild(Zc)},wT=function(e){return zf(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},vo=function(e,n){if(ki=on.documentElement,zt=on.body,Zw=[yt,on,ki,zt],da&&!e&&!df){cr(nt,"scrollEnd",SD);return}TD(),Fr=nt.isRefreshing=!0,df||jD();var r=Lo("refreshInit");fD&&nt.sort(),n||s1(),vt.forEach(function(i){Tr(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),ht.slice(0).forEach(function(i){return i.refresh()}),df=!1,ht.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",o=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-o),i.refresh()}}),I_=1,wT(!0),ht.forEach(function(i){var s=Fa(i.scroller,i._dir),o=i.vars.end==="max"||i._endClamp&&i.end>s,c=i._startClamp&&i.start>=s;(o||c)&&i.setPositions(c?s-1:i.start,o?Math.max(c?s:i.start+1,s):i.end,!0)}),wT(!1),I_=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),vt.forEach(function(i){Tr(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),ND(e1,1),ng.pause(),ko++,Fr=2,Os(2),ht.forEach(function(i){return Tr(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Fr=nt.isRefreshing=!1,Lo("refresh")},U_=0,bm=1,gf,Os=function(e){if(e===2||!Fr&&!df){nt.isUpdating=!0,gf&&gf.update(0);var n=ht.length,r=jr(),i=r-O0>=50,s=n&&ht[0].scroll();if(bm=U_>s?-1:1,Fr||(U_=s),i&&(da&&!_g&&r-da>200&&(da=0,Lo("scrollEnd")),Kd=O0,O0=r),bm<0){for($r=n;$r-- >0;)ht[$r]&&ht[$r].update(0,i);bm=1}else for($r=0;$r<n;$r++)ht[$r]&&ht[$r].update(0,i);nt.isUpdating=!1}Uf=0},B_=[bD,_D,r1,n1,aa+mf,aa+ff,aa+pf,aa+hf,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],_m=B_.concat([No,To,"boxSizing","max"+yu,"max"+i1,"position",aa,Yn,Yn+pf,Yn+ff,Yn+mf,Yn+hf]),Az=function(e,n,r){eu(r);var i=e._gsap;if(i.spacerIsNative)eu(i.spacerState);else if(e._gsap.swappedIn){var s=n.parentNode;s&&(s.insertBefore(e,n),s.removeChild(n))}e._gsap.swappedIn=!1},D0=function(e,n,r,i){if(!e._gsap.swappedIn){for(var s=B_.length,o=n.style,c=e.style,f;s--;)f=B_[s],o[f]=r[f];o.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(o.display="inline-block"),c[r1]=c[n1]="auto",o.flexBasis=r.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[No]=rg(e,Hr)+rr,o[To]=rg(e,ar)+rr,o[Yn]=c[aa]=c[_D]=c[bD]="0",eu(i),c[No]=c["max"+yu]=r[No],c[To]=c["max"+i1]=r[To],c[Yn]=r[Yn],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},Oz=/([A-Z])/g,eu=function(e){if(e){var n=e.t.style,r=e.length,i=0,s,o;for((e.t._gsap||Re.core.getCache(e.t)).uncache=1;i<r;i+=2)o=e[i+1],s=e[i],o?n[s]=o:n[s]&&n.removeProperty(s.replace(Oz,"-$1").toLowerCase())}},Hp=function(e){for(var n=_m.length,r=e.style,i=[],s=0;s<n;s++)i.push(_m[s],r[_m[s]]);return i.t=e,i},Rz=function(e,n,r){for(var i=[],s=e.length,o=r?8:0,c;o<s;o+=2)c=e[o],i.push(c,c in n?n[c]:e[o+1]);return i.t=e.t,i},wm={left:0,top:0},ST=function(e,n,r,i,s,o,c,f,h,p,g,x,v,w){Tr(e)&&(e=e(f)),Ni(e)&&e.substr(0,3)==="max"&&(e=x+(e.charAt(4)==="="?vm("0"+e.substr(3),r):0));var _=v?v.time():0,S,E,N;if(v&&v.seek(0),isNaN(e)||(e=+e),Xd(e))v&&(e=Re.utils.mapRange(v.scrollTrigger.start,v.scrollTrigger.end,0,x,e)),c&&xm(c,r,i,!0);else{Tr(n)&&(n=n(f));var k=(e||"0").split(" "),R,D,O,T;N=ni(n,f)||zt,R=js(N)||{},(!R||!R.left&&!R.top)&&sa(N).display==="none"&&(T=N.style.display,N.style.display="block",R=js(N),T?N.style.display=T:N.style.removeProperty("display")),D=vm(k[0],R[i.d]),O=vm(k[1]||"0",r),e=R[i.p]-h[i.p]-p+D+s-O,c&&xm(c,O,i,r-O<20||c._isStart&&O>20),r-=r-O}if(w&&(f[w]=e||-.001,e<0&&(e=0)),o){var L=e+r,M=o._isStart;S="scroll"+i.d2,xm(o,L,i,M&&L>20||!M&&(g?Math.max(zt[S],ki[S]):o.parentNode[S])<=L+1),g&&(h=js(c),g&&(o.style[i.op.p]=h[i.op.p]-i.op.m-o._offset+rr))}return v&&N&&(S=js(N),v.seek(x),E=js(N),v._caScrollDist=S[i.p]-E[i.p],e=e/v._caScrollDist*x),v&&v.seek(_),v?e:Math.round(e)},Cz=/(webkit|moz|length|cssText|inset)/i,ET=function(e,n,r,i){if(e.parentNode!==n){var s=e.style,o,c;if(n===zt){e._stOrig=s.cssText,c=sa(e);for(o in c)!+o&&!Cz.test(o)&&c[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=c[o]);s.top=r,s.left=i}else s.cssText=e._stOrig;Re.core.getCache(e).uncache=1,n.appendChild(e)}}
vendor: 5,270 bytes, line 12
12,kD=function(e,n,r){var i=n,s=i;return function(o){var c=Math.round(e());return c!==i&&c!==s&&Math.abs(c-i)>3&&Math.abs(c-s)>3&&(o=c,r&&r()),s=i,i=Math.round(o),i}},Gp=function(e,n,r){var i={};i[n.p]="+="+r,Re.set(e,i)},jT=function(e,n){var r=Ll(e,n),i="_scroll"+n.p2,s=function o(c,f,h,p,g){var x=o.tween,v=f.onComplete,w={};h=h||r();var _=kD(r,h,function(){x.kill(),o.tween=0});return g=p&&g||0,p=p||c-h,x&&x.kill(),f[i]=c,f.inherit=!1,f.modifiers=w,w[i]=function(){return _(h+p*x.ratio+g*x.ratio*x.ratio)},f.onUpdate=function(){vt.cache++,o.tween&&Os()},f.onComplete=function(){o.tween=0,v&&v.call(x)},x=o.tween=Re.to(e,f),x};return e[i]=r,r.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},cr(e,"wheel",r.wheelHandler),nt.isTouch&&cr(e,"touchmove",r.wheelHandler),s},nt=(function(){function t(n,r){Pc||t.register(Re)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),M_(this),this.init(n,r)}var e=t.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Yd){this.update=this.refresh=this.kill=La;return}r=vT(Ni(r)||Xd(r)||r.nodeType?{trigger:r}:r,Fp);var s=r,o=s.onUpdate,c=s.toggleClass,f=s.id,h=s.onToggle,p=s.onRefresh,g=s.scrub,x=s.trigger,v=s.pin,w=s.pinSpacing,_=s.invalidateOnRefresh,S=s.anticipatePin,E=s.onScrubComplete,N=s.onSnapComplete,k=s.once,R=s.snap,D=s.pinReparent,O=s.pinSpacer,T=s.containerAnimation,L=s.fastScrollEnd,M=s.preventOverlaps,q=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Hr:ar,B=!g&&g!==0,I=ni(r.scroller||yt),Z=Re.core.getCache(I),X=Co(I),K=("pinType"in r?r.pinType:Ol(I,"pinType")||X&&"fixed")==="fixed",U=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],W=B&&r.toggleActions.split(" "),G="markers"in r?r.markers:Fp.markers,he=X?0:parseFloat(sa(I)["border"+q.p2+yu])||0,A=this,z=r.onRefreshInit&&function(){return r.onRefreshInit(A)},Q=wz(I,X,q),P=Sz(I,X),ce=0,ve=0,ye=0,Se=Ll(I,q),He,Te,Ae,We,Ge,Ce,Ve,re,ue,H,Ne,xt,Ut,ut,xn,Qn,It,gn,oe,ge,De,Be,it,kn,Rt,An,Ot,tn,Y,ee,Xe,ke,pt,$e,fn,Yt,nn,Ln,Dr;if(A._startClamp=A._endClamp=!1,A._dir=q,S*=45,A.scroller=I,A.scroll=T?T.time.bind(T):Se,We=Se(),A.vars=r,i=i||r.animation,"refreshPriority"in r&&(fD=1,r.refreshPriority===-9999&&(gf=A)),Z.tweenScroll=Z.tweenScroll||{top:jT(I,ar),left:jT(I,Hr)},A.tweenTo=He=Z.tweenScroll[q.p],A.scrubDuration=function(be){pt=Xd(be)&&be,pt?ke?ke.duration(be):ke=Re.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:pt,paused:!0,onComplete:function(){return E&&E(A)}}):(ke&&ke.progress(1).kill(),ke=0)},i&&(i.vars.lazy=!1,i._initted&&!A.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),A.animation=i.pause(),i.scrollTrigger=A,A.scrubDuration(g),ee=0,f||(f=i.vars.id)),R&&((!fo(R)||R.push)&&(R={snapTo:R}),"scrollBehavior"in zt.style&&Re.set(X?[zt,ki]:I,{scrollBehavior:"auto"}),vt.forEach(function(be){return Tr(be)&&be.target===(X?on.scrollingElement||ki:I)&&(be.smooth=!1)}),Ae=Tr(R.snapTo)?R.snapTo:R.snapTo==="labels"?jz(i):R.snapTo==="labelsDirectional"?Nz(i):R.directional!==!1?function(be,Ke){return a1(R.snapTo)(be,jr()-ve<500?0:Ke.direction)}:Re.utils.snap(R.snapTo),$e=R.duration||{min:.1,max:2},$e=fo($e)?uf($e.min,$e.max):uf($e,$e),fn=Re.delayedCall(R.delay||pt/2||.1,function(){var be=Se(),Ke=jr()-ve<500,Pe=He.tween;if((Ke||Math.abs(A.getVelocity())<10)&&!Pe&&!_g&&ce!==be){var Ye=(be-Ce)/ut,rn=i&&!B?i.totalProgress():Ye,lt=Ke?0:(rn-Xe)/(jr()-Kd)*1e3||0,Wt=Re.utils.clamp(-Ye,1-Ye,_c(lt/2)*lt/.185),Ft=Ye+(R.inertia===!1?0:Wt),at,ot,mt=R,sr=mt.onStart,Xt=mt.onInterrupt,Zn=mt.onComplete;if(at=Ae(Ft,A),Xd(at)||(at=Ft),ot=Math.max(0,Math.round(Ce+at*ut)),be<=Ve&&be>=Ce&&ot!==be){if(Pe&&!Pe._initted&&Pe.data<=_c(ot-be))return;R.inertia===!1&&(Wt=at-Ye),He(ot,{duration:$e(_c(Math.max(_c(Ft-rn),_c(at-rn))*.185/lt/.05||0)),ease:R.ease||"power3",data:_c(ot-be),onInterrupt:function(){return fn.restart(!0)&&Xt&&Xt(A)},onComplete:function(){A.update(),ce=Se(),i&&!B&&(ke?ke.resetTo("totalProgress",at,i._tTime/i._tDur):i.progress(at)),ee=Xe=i&&!B?i.totalProgress():A.progress,N&&N(A),Zn&&Zn(A)}},be,Wt*ut,ot-be-Wt*ut),sr&&sr(A,He.tween)}}else A.isActive&&ce!==be&&fn.restart(!0)}).pause()),f&&(z_[f]=A),x=A.trigger=ni(x||v!==!0&&v),Dr=x&&x._gsap&&x._gsap.stRevert,Dr&&(Dr=Dr(A)),v=v===!0?x:ni(v),Ni(c)&&(c={targets:x,className:c}),v&&(w===!1||w===aa||(w=!w&&v.parentNode&&v.parentNode.style&&sa(v.parentNode).display==="flex"?!1:Yn),A.pin=v,Te=Re.core.getCache(v),Te.spacer?xn=Te.pinState:(O&&(O=ni(O),O&&!O.nodeType&&(O=O.current||O.nativeElement),Te.spacerIsNative=!!O,O&&(Te.spacerState=Hp(O))),Te.spacer=gn=O||on.createElement("div"),gn.classList.add("pin-spacer"),f&&gn.classList.add("pin-spacer-"+f),Te.pinState=xn=Hp(v)),r.force3D!==!1&&Re.set(v,{force3D:!0}),A.spacer=gn=Te.spacer,Y=sa(v),kn=Y[w+q.os2],ge=Re.getProperty(v),De=Re.quickSetter(v,q.a,rr),D0(v,gn,Y),It=Hp(v)),G){xt=fo(G)?vT(G,xT):xT,H=qp("scroller-start",f,I,q,xt,0),Ne=qp("scroller-end",f,I,q,xt,0,H),oe=H["offset"+q.op.d2];var Lr=ni(Ol(I,"content")||I);re=this.markerStart=qp("start",f,Lr,q,xt,oe,0,T),ue=this.markerEnd=qp("end",f,Lr,q,xt,oe,0,T),T&&(Ln=Re.quickSetter([re,ue],q.a,rr)),!K&&!(Ha.length&&Ol(I,"fixedMarkers")===!0)&&(Ez(X?zt:I),Re.set([H,Ne],{force3D:!0}),An=Re.quickSetter(H,q.a,rr),tn=Re.quickSetter(Ne,q.a,rr))}
vendor: 4,094 bytes, line 12
12if(T){var Ie=T.vars.onUpdate,ze=T.vars.onUpdateParams;T.eventCallback("onUpdate",function(){A.update(0,0,1),Ie&&Ie.apply(T,ze||[])})}if(A.previous=function(){return ht[ht.indexOf(A)-1]},A.next=function(){return ht[ht.indexOf(A)+1]},A.revert=function(be,Ke){if(!Ke)return A.kill(!0);var Pe=be!==!1||!A.enabled,Ye=Er;Pe!==A.isReverted&&(Pe&&(Yt=Math.max(Se(),A.scroll.rec||0),ye=A.progress,nn=i&&i.progress()),re&&[re,ue,H,Ne].forEach(function(rn){return rn.style.display=Pe?"none":"block"}),Pe&&(Er=A,A.update(Pe)),v&&(!D||!A.isActive)&&(Pe?Az(v,gn,xn):D0(v,gn,sa(v),Rt)),Pe||A.update(Pe),Er=Ye,A.isReverted=Pe)},A.refresh=function(be,Ke,Pe,Ye){if(!((Er||!A.enabled)&&!Ke)){if(v&&be&&da){cr(t,"scrollEnd",SD);return}!Fr&&z&&z(A),Er=A,He.tween&&!Pe&&(He.tween.kill(),He.tween=0),ke&&ke.pause(),_&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Na){return Na.vars.immediateRender&&Na.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),A.isReverted||A.revert(!0,!0),A._subPinOffset=!1;var rn=Q(),lt=P(),Wt=T?T.duration():Fa(I,q),Ft=ut<=.01||!ut,at=0,ot=Ye||0,mt=fo(Pe)?Pe.end:r.end,sr=r.endTrigger||x,Xt=fo(Pe)?Pe.start:r.start||(r.start===0||!x?0:v?"0 0":"0 100%"),Zn=A.pinnedContainer=r.pinnedContainer&&ni(r.pinnedContainer,A),$n=x&&Math.max(0,ht.indexOf(A))||0,qt=$n,bn,an,Vr,Ea,_n,gt,hi,Uo,ja,qi,Hi,Is,Il;for(G&&fo(Pe)&&(Is=Re.getProperty(H,q.p),Il=Re.getProperty(Ne,q.p));qt-- >0;)gt=ht[qt],gt.end||gt.refresh(0,1)||(Er=A),hi=gt.pin,hi&&(hi===x||hi===v||hi===Zn)&&!gt.isReverted&&(qi||(qi=[]),qi.unshift(gt),gt.revert(!0,!0)),gt!==ht[qt]&&($n--,qt--);for(Tr(Xt)&&(Xt=Xt(A)),Xt=pT(Xt,"start",A),Ce=ST(Xt,x,rn,q,Se(),re,H,A,lt,he,K,Wt,T,A._startClamp&&"_startClamp")||(v?-.001:0),Tr(mt)&&(mt=mt(A)),Ni(mt)&&!mt.indexOf("+=")&&(~mt.indexOf(" ")?mt=(Ni(Xt)?Xt.split(" ")[0]:"")+mt:(at=vm(mt.substr(2),rn),mt=Ni(Xt)?Xt:(T?Re.utils.mapRange(0,T.duration(),T.scrollTrigger.start,T.scrollTrigger.end,Ce):Ce)+at,sr=x)),mt=pT(mt,"end",A),Ve=Math.max(Ce,ST(mt||(sr?"100% 0":Wt),sr,rn,q,Se()+at,ue,Ne,A,lt,he,K,Wt,T,A._endClamp&&"_endClamp"))||-.001,at=0,qt=$n;qt--;)gt=ht[qt]||{},hi=gt.pin,hi&>.start-gt._pinPush<=Ce&&!T&>.end>0&&(bn=gt.end-(A._startClamp?Math.max(0,gt.start):gt.start),(hi===x&>.start-gt._pinPush<Ce||hi===Zn)&&isNaN(Xt)&&(at+=bn*(1-gt.progress)),hi===v&&(ot+=bn));if(Ce+=at,Ve+=at,A._startClamp&&(A._startClamp+=at),A._endClamp&&!Fr&&(A._endClamp=Ve||-.001,Ve=Math.min(Ve,Fa(I,q))),ut=Ve-Ce||(Ce-=.01)&&.001,Ft&&(ye=Re.utils.clamp(0,1,Re.utils.normalize(Ce,Ve,Yt))),A._pinPush=ot,re&&at&&(bn={},bn[q.a]="+="+at,Zn&&(bn[q.p]="-="+Se()),Re.set([re,ue],bn)),v&&!(I_&&A.end>=Fa(I,q)))bn=sa(v),Ea=q===ar,Vr=Se(),Be=parseFloat(ge(q.a))+ot,!Wt&&Ve>1&&(Hi=(X?on.scrollingElement||ki:I).style,Hi={style:Hi,value:Hi["overflow"+q.a.toUpperCase()]},X&&sa(zt)["overflow"+q.a.toUpperCase()]!=="scroll"&&(Hi.style["overflow"+q.a.toUpperCase()]="scroll")),D0(v,gn,bn),It=Hp(v),an=js(v,!0),Uo=K&&Ll(I,Ea?Hr:ar)(),w?(Rt=[w+q.os2,ut+ot+rr],Rt.t=gn,qt=w===Yn?rg(v,q)+ut+ot:0,qt&&(Rt.push(q.d,qt+rr),gn.style.flexBasis!=="auto"&&(gn.style.flexBasis=qt+rr)),eu(Rt),Zn&&ht.forEach(function(Na){Na.pin===Zn&&Na.vars.pinSpacing!==!1&&(Na._subPinOffset=!0)}),K&&Se(Yt)):(qt=rg(v,q),qt&&gn.style.flexBasis!=="auto"&&(gn.style.flexBasis=qt+rr)),K&&(_n={top:an.top+(Ea?Vr-Ce:Uo)+rr,left:an.left+(Ea?Uo:Vr-Ce)+rr,boxSizing:"border-box",position:"fixed"},_n[No]=_n["max"+yu]=Math.ceil(an.width)+rr,_n[To]=_n["max"+i1]=Math.ceil(an.height)+rr,_n[aa]=_n[aa+pf]=_n[aa+ff]=_n[aa+mf]=_n[aa+hf]="0",_n[Yn]=bn[Yn],_n[Yn+pf]=bn[Yn+pf],_n[Yn+ff]=bn[Yn+ff],_n[Yn+mf]=bn[Yn+mf],_n[Yn+hf]=bn[Yn+hf],Qn=Rz(xn,_n,D),Fr&&Se(0)),i?(ja=i._initted,k0(1),i.render(i.duration(),!0,!0),it=ge(q.a)-Be+ut+ot,Ot=Math.abs(ut-it)>1,K&&Ot&&Qn.splice(Qn.length-2,2),i.render(0,!0,!0),ja||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),k0(0)):it=ut,Hi&&(Hi.value?Hi.style["overflow"+q.a.toUpperCase()]=Hi.value:Hi.style.removeProperty("overflow-"+q.a));else if(x&&Se()&&!T)for(an=x.parentNode;an&&an!==zt;)an._pinOffset&&(Ce-=an._pinOffset,Ve-=an._pinOffset),an=an.parentNode;
vendor: 11,549 bytes, line 12
12qi&&qi.forEach(function(Na){return Na.revert(!1,!0)}),A.start=Ce,A.end=Ve,We=Ge=Fr?Yt:Se(),!T&&!Fr&&(We<Yt&&Se(Yt),A.scroll.rec=0),A.revert(!1,!0),ve=jr(),fn&&(ce=-1,fn.restart(!0)),Er=0,i&&B&&(i._initted||nn)&&i.progress()!==nn&&i.progress(nn||0,!0).render(i.time(),!0,!0),(Ft||ye!==A.progress||T||_||i&&!i._initted)&&(i&&!B&&(i._initted||ye||i.vars.immediateRender!==!1)&&i.totalProgress(T&&Ce<-.001&&!ye?Re.utils.normalize(Ce,Ve,0):ye,!0),A.progress=Ft||(We-Ce)/ut===ye?0:ye),v&&w&&(gn._pinOffset=Math.round(A.progress*it)),ke&&ke.invalidate(),isNaN(Is)||(Is-=Re.getProperty(H,q.p),Il-=Re.getProperty(Ne,q.p),Gp(H,q,Is),Gp(re,q,Is-(Ye||0)),Gp(Ne,q,Il),Gp(ue,q,Il-(Ye||0))),Ft&&!Fr&&A.update(),p&&!Fr&&!Ut&&(Ut=!0,p(A),Ut=!1)}},A.getVelocity=function(){return(Se()-Ge)/(jr()-Kd)*1e3||0},A.endAnimation=function(){kd(A.callbackAnimation),i&&(ke?ke.progress(1):i.paused()?B||kd(i,A.direction<0,1):kd(i,i.reversed()))},A.labelToScroll=function(be){return i&&i.labels&&(Ce||A.refresh()||Ce)+i.labels[be]/i.duration()*ut||0},A.getTrailing=function(be){var Ke=ht.indexOf(A),Pe=A.direction>0?ht.slice(0,Ke).reverse():ht.slice(Ke+1);return(Ni(be)?Pe.filter(function(Ye){return Ye.vars.preventOverlaps===be}):Pe).filter(function(Ye){return A.direction>0?Ye.end<=Ce:Ye.start>=Ve})},A.update=function(be,Ke,Pe){if(!(T&&!Pe&&!be)){var Ye=Fr===!0?Yt:A.scroll(),rn=be?0:(Ye-Ce)/ut,lt=rn<0?0:rn>1?1:rn||0,Wt=A.progress,Ft,at,ot,mt,sr,Xt,Zn,$n;if(Ke&&(Ge=We,We=T?Se():Ye,R&&(Xe=ee,ee=i&&!B?i.totalProgress():lt)),S&&v&&!Er&&!zp&&da&&(!lt&&Ce<Ye+(Ye-Ge)/(jr()-Kd)*S?lt=1e-4:lt===1&&Ve>Ye+(Ye-Ge)/(jr()-Kd)*S&&(lt=.9999)),lt!==Wt&&A.enabled){if(Ft=A.isActive=!!lt&<<1,at=!!Wt&&Wt<1,Xt=Ft!==at,sr=Xt||!!lt!=!!Wt,A.direction=lt>Wt?1:-1,A.progress=lt,sr&&!Er&&(ot=lt&&!Wt?0:lt===1?1:Wt===1?2:3,B&&(mt=!Xt&&W[ot+1]!=="none"&&W[ot+1]||W[ot],$n=i&&(mt==="complete"||mt==="reset"||mt in i))),M&&(Xt||$n)&&($n||g||!i)&&(Tr(M)?M(A):A.getTrailing(M).forEach(function(Vr){return Vr.endAnimation()})),B||(ke&&!Er&&!zp?(ke._dp._time-ke._start!==ke._time&&ke.render(ke._dp._time-ke._start),ke.resetTo?ke.resetTo("totalProgress",lt,i._tTime/i._tDur):(ke.vars.totalProgress=lt,ke.invalidate().restart())):i&&i.totalProgress(lt,!!(Er&&(ve||be)))),v){if(be&&w&&(gn.style[w+q.os2]=kn),!K)De(Wd(Be+it*lt));else if(sr){if(Zn=!be&<>Wt&&Ve+1>Ye&&Ye+1>=Fa(I,q),D)if(!be&&(Ft||Zn)){var qt=js(v,!0),bn=Ye-Ce;ET(v,zt,qt.top+(q===ar?bn:0)+rr,qt.left+(q===ar?0:bn)+rr)}else ET(v,gn);eu(Ft||Zn?Qn:It),Ot&<<1&&Ft||De(Be+(lt===1&&!Zn?it:0))}}R&&!He.tween&&!Er&&!zp&&fn.restart(!0),c&&(Xt||k&<&&(lt<1||!A0))&&zf(c.targets).forEach(function(Vr){return Vr.classList[Ft||k?"add":"remove"](c.className)}),o&&!B&&!be&&o(A),sr&&!Er?(B&&($n&&(mt==="complete"?i.pause().totalProgress(1):mt==="reset"?i.restart(!0).pause():mt==="restart"?i.restart(!0):i[mt]()),o&&o(A)),(Xt||!A0)&&(h&&Xt&&R0(A,h),U[ot]&&R0(A,U[ot]),k&&(lt===1?A.kill(!1,1):U[ot]=0),Xt||(ot=lt===1?1:3,U[ot]&&R0(A,U[ot]))),L&&!Ft&&Math.abs(A.getVelocity())>(Xd(L)?L:2500)&&(kd(A.callbackAnimation),ke?ke.progress(1):kd(i,mt==="reverse"?1:!lt,1))):B&&o&&!Er&&o(A)}if(tn){var an=T?Ye/T.duration()*(T._caScrollDist||0):Ye;An(an+(H._isFlipped?1:0)),tn(an)}Ln&&Ln(-Ye/T.duration()*(T._caScrollDist||0))}},A.enable=function(be,Ke){A.enabled||(A.enabled=!0,cr(I,"resize",Jd),X||cr(I,"scroll",wc),z&&cr(t,"refreshInit",z),be!==!1&&(A.progress=ye=0,We=Ge=ce=Se()),Ke!==!1&&A.refresh())},A.getTween=function(be){return be&&He?He.tween:ke},A.setPositions=function(be,Ke,Pe,Ye){if(T){var rn=T.scrollTrigger,lt=T.duration(),Wt=rn.end-rn.start;be=rn.start+Wt*be/lt,Ke=rn.start+Wt*Ke/lt}A.refresh(!1,!1,{start:mT(be,Pe&&!!A._startClamp),end:mT(Ke,Pe&&!!A._endClamp)},Ye),A.update()},A.adjustPinSpacing=function(be){if(Rt&&be){var Ke=Rt.indexOf(q.d)+1;Rt[Ke]=parseFloat(Rt[Ke])+be+rr,Rt[1]=parseFloat(Rt[1])+be+rr,eu(Rt)}},A.disable=function(be,Ke){if(be!==!1&&A.revert(!0,!0),A.enabled&&(A.enabled=A.isActive=!1,Ke||ke&&ke.pause(),Yt=0,Te&&(Te.uncache=1),z&&or(t,"refreshInit",z),fn&&(fn.pause(),He.tween&&He.tween.kill()&&(He.tween=0)),!X)){for(var Pe=ht.length;Pe--;)if(ht[Pe].scroller===I&&ht[Pe]!==A)return;or(I,"resize",Jd),X||or(I,"scroll",wc)}},A.kill=function(be,Ke){A.disable(be,Ke),ke&&!Ke&&ke.kill(),f&&delete z_[f];var Pe=ht.indexOf(A);Pe>=0&&ht.splice(Pe,1),Pe===$r&&bm>0&&$r--,Pe=0,ht.forEach(function(Ye){return Ye.scroller===A.scroller&&(Pe=1)}),Pe||Fr||(A.scroll.rec=0),i&&(i.scrollTrigger=null,be&&i.revert({kill:!1}),Ke||i.kill()),re&&[re,ue,H,Ne].forEach(function(Ye){return Ye.parentNode&&Ye.parentNode.removeChild(Ye)}),gf===A&&(gf=0),v&&(Te&&(Te.uncache=1),Pe=0,ht.forEach(function(Ye){return Ye.pin===v&&Pe++}),Pe||(Te.spacer=0)),r.onKill&&r.onKill(A)},ht.push(A),A.enable(!1,!1),Dr&&Dr(A),i&&i.add&&!ut){var St=A.update;A.update=function(){A.update=St,vt.cache++,Ce||Ve||A.refresh()},Re.delayedCall(.01,A.update),ut=.01,Ce=Ve=0}else A.refresh();v&&kz()},t.register=function(r){return Pc||(Re=r||yD(),gD()&&window.document&&t.enable(),Pc=Yd),Pc},t.defaults=function(r){if(r)for(var i in r)Fp[i]=r[i];return Fp},t.disable=function(r,i){Yd=0,ht.forEach(function(o){return o[i?"kill":"disable"](r)}),or(yt,"wheel",wc),or(on,"scroll",wc),clearInterval(Ip),or(on,"touchcancel",La),or(zt,"touchstart",La),Bp(or,on,"pointerdown,touchstart,mousedown",gT),Bp(or,on,"pointerup,touchend,mouseup",yT),ng.kill(),Up(or);for(var s=0;s<vt.length;s+=3)$p(or,vt[s],vt[s+1]),$p(or,vt[s],vt[s+2])},t.enable=function(){if(yt=window,on=document,ki=on.documentElement,zt=on.body,Re&&(zf=Re.utils.toArray,uf=Re.utils.clamp,M_=Re.core.context||La,k0=Re.core.suppressOverwrites||La,e1=yt.history.scrollRestoration||"auto",U_=yt.pageYOffset||0,Re.core.globals("ScrollTrigger",t),zt)){Yd=1,Zc=document.createElement("div"),Zc.style.height="100vh",Zc.style.position="absolute",TD(),_z(),Un.register(Re),t.isTouch=Un.isTouch,ml=Un.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),P_=Un.isTouch===1,cr(yt,"wheel",wc),Zw=[yt,on,ki,zt],Re.matchMedia?(t.matchMedia=function(h){var p=Re.matchMedia(),g;for(g in h)p.add(g,h[g]);return p},Re.addEventListener("matchMediaInit",function(){jD(),s1()}),Re.addEventListener("matchMediaRevert",function(){return ED()}),Re.addEventListener("matchMedia",function(){vo(0,1),Lo("matchMedia")}),Re.matchMedia().add("(orientation: portrait)",function(){return C0(),C0})):console.warn("Requires GSAP 3.11.0 or later"),C0(),cr(on,"scroll",wc);var r=zt.hasAttribute("style"),i=zt.style,s=i.borderTopStyle,o=Re.core.Animation.prototype,c,f;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",c=js(zt),ar.m=Math.round(c.top+ar.sc())||0,Hr.m=Math.round(c.left+Hr.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),r||(zt.setAttribute("style",""),zt.removeAttribute("style")),Ip=setInterval(bT,250),Re.delayedCall(.5,function(){return zp=0}),cr(on,"touchcancel",La),cr(zt,"touchstart",La),Bp(cr,on,"pointerdown,touchstart,mousedown",gT),Bp(cr,on,"pointerup,touchend,mouseup",yT),L_=Re.utils.checkPrefix("transform"),_m.push(L_),Pc=jr(),ng=Re.delayedCall(.2,vo).pause(),Mc=[on,"visibilitychange",function(){var h=yt.innerWidth,p=yt.innerHeight;on.hidden?(fT=h,hT=p):(fT!==h||hT!==p)&&Jd()},on,"DOMContentLoaded",vo,yt,"load",vo,yt,"resize",Jd],Up(cr),ht.forEach(function(h){return h.enable(0,1)}),f=0;f<vt.length;f+=3)$p(or,vt[f],vt[f+1]),$p(or,vt[f],vt[f+2])}},t.config=function(r){"limitCallbacks"in r&&(A0=!!r.limitCallbacks);var i=r.syncInterval;i&&clearInterval(Ip)||(Ip=i)&&setInterval(bT,i),"ignoreMobileResize"in r&&(P_=t.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(Up(or)||Up(cr,r.autoRefreshEvents||"none"),hD=(r.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(r,i){var s=ni(r),o=vt.indexOf(s),c=Co(s);~o&&vt.splice(o,c?6:2),i&&(c?Ha.unshift(yt,i,zt,i,ki,i):Ha.unshift(s,i))},t.clearMatchMedia=function(r){ht.forEach(function(i){return i._ctx&&i._ctx.query===r&&i._ctx.kill(!0,!0)})},t.isInViewport=function(r,i,s){var o=(Ni(r)?ni(r):r).getBoundingClientRect(),c=o[s?No:To]*i||0;return s?o.right-c>0&&o.left+c<yt.innerWidth:o.bottom-c>0&&o.top+c<yt.innerHeight},t.positionInViewport=function(r,i,s){Ni(r)&&(r=ni(r));var o=r.getBoundingClientRect(),c=o[s?No:To],f=i==null?c/2:i in ig?ig[i]*c:~i.indexOf("%")?parseFloat(i)*c/100:parseFloat(i)||0;return s?(o.left+f)/yt.innerWidth:(o.top+f)/yt.innerHeight},t.killAll=function(r){if(ht.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),r!==!0){var i=Do.killAll||[];Do={},i.forEach(function(s){return s()})}},t})();nt.version="3.14.2";nt.saveStyles=function(t){return t?zf(t).forEach(function(e){if(e&&e.style){var n=ji.indexOf(e);n>=0&&ji.splice(n,5),ji.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Re.core.getCache(e),M_())}}):ji};nt.revert=function(t,e){return s1(!t,e)};nt.create=function(t,e){return new nt(t,e)};nt.refresh=function(t){return t?Jd(!0):(Pc||nt.register())&&vo(!0)};nt.update=function(t){return++vt.cache&&Os(t===!0?2:0)};nt.clearScrollMemory=ND;nt.maxScroll=function(t,e){return Fa(t,e?Hr:ar)};nt.getScrollFunc=function(t,e){return Ll(ni(t),e?Hr:ar)};nt.getById=function(t){return z_[t]};nt.getAll=function(){return ht.filter(function(t){return t.vars.id!=="ScrollSmoother"})};nt.isScrolling=function(){return!!da};nt.snapDirectional=a1;nt.addEventListener=function(t,e){var n=Do[t]||(Do[t]=[]);~n.indexOf(e)||n.push(e)};nt.removeEventListener=function(t,e){var n=Do[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)};nt.batch=function(t,e){var n=[],r={},i=e.interval||.016,s=e.batchMax||1e9,o=function(h,p){var g=[],x=[],v=Re.delayedCall(i,function(){p(g,x),g=[],x=[]}).pause();return function(w){g.length||v.restart(!0),g.push(w.trigger),x.push(w),s<=g.length&&v.progress(1)}},c;for(c in e)r[c]=c.substr(0,2)==="on"&&Tr(e[c])&&c!=="onRefreshInit"?o(c,e[c]):e[c];return Tr(s)&&(s=s(),cr(nt,"refresh",function(){return s=e.batchMax()})),zf(t).forEach(function(f){var h={};for(c in r)h[c]=r[c];h.trigger=f,n.push(nt.create(h))}),n};var NT=function(e,n,r,i){return n>i?e(i):n<0&&e(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},L0=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(Un.isTouch?" pinch-zoom":""):"none",e===ki&&t(zt,n)},Vp={auto:1,scroll:1},Dz=function(e){var n=e.event,r=e.target,i=e.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||Re.core.getCache(s),c=jr(),f;if(!o._isScrollT||c-o._isScrollT>2e3){for(;s&&s!==zt&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(Vp[(f=sa(s)).overflowY]||Vp[f.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!Co(s)&&(Vp[(f=sa(s)).overflowY]||Vp[f.overflowX]),o._isScrollT=c}(o._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},AD=function(e,n,r,i){return Un.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&Dz,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&cr(on,Un.eventTypes[0],kT,!1,!0)},onDisable:function(){return or(on,Un.eventTypes[0],kT,!0)}})},Lz=/(input|label|select|textarea)/i,TT,kT=function(e){var n=Lz.test(e.target.tagName);(n||TT)&&(e._gsapAllow=!0,TT=n)},Pz=function(e){fo(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,r=n.normalizeScrollX,i=n.momentum,s=n.allowNestedScroll,o=n.onRelease,c,f,h=ni(e.target)||ki,p=Re.core.globals().ScrollSmoother,g=p&&p.get(),x=ml&&(e.content&&ni(e.content)||g&&e.content!==!1&&!g.smooth()&&g.content()),v=Ll(h,ar),w=Ll(h,Hr),_=1,S=(Un.isTouch&&yt.visualVie
12wport?yt.visualViewport.scale*yt.visualViewport.width:yt.outerWidth)/yt.innerWidth,E=0,N=Tr(i)?function(){return i(c)}:function(){return i||2.8},k,R,D=AD(h,e.type,!0,s),O=function(){return R=!1},T=La,L=La,M=function(){f=Fa(h,ar),L=uf(ml?1:0,f),r&&(T=uf(0,Fa(h,Hr))),k=ko},q=function(){x._gsap.y=Wd(parseFloat(x._gsap.y)+v.offset)+"px",x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(x._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},B=function(){if(R){requestAnimationFrame(O);var G=Wd(c.deltaY/2),he=L(v.v-G);if(x&&he!==v.v+v.offset){v.offset=he-v.v;var A=Wd((parseFloat(x&&x._gsap.y)||0)-v.offset);x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+A+", 0, 1)",x._gsap.y=A+"px",v.cacheID=vt.cache,Os()}return!0}v.offset&&q(),R=!0},I,Z,X,K,U=function(){M(),I.isActive()&&I.vars.scrollY>f&&(v()>f?I.progress(1)&&v(f):I.resetTo("scrollY",f))};return x&&Re.set(x,{y:"+=0"}),e.ignoreCheck=function(W){return ml&&W.type==="touchmove"&&B()||_>1.05&&W.type!=="touchstart"||c.isGesturing||W.touches&&W.touches.length>1},e.onPress=function(){R=!1;var W=_;_=Wd((yt.visualViewport&&yt.visualViewport.scale||1)/S),I.pause(),W!==_&&L0(h,_>1.01?!0:r?!1:"x"),Z=w(),X=v(),M(),k=ko},e.onRelease=e.onGestureStart=function(W,G){if(v.offset&&q(),!G)K.restart(!0);else{vt.cache++;var he=N(),A,z;r&&(A=w(),z=A+he*.05*-W.velocityX/.227,he*=NT(w,A,z,Fa(h,Hr)),I.vars.scrollX=T(z)),A=v(),z=A+he*.05*-W.velocityY/.227,he*=NT(v,A,z,Fa(h,ar)),I.vars.scrollY=L(z),I.invalidate().duration(he).play(.01),(ml&&I.vars.scrollY>=f||A>=f-1)&&Re.to({},{onUpdate:U,duration:he})}o&&o(W)},e.onWheel=function(){I._ts&&I.pause(),jr()-E>1e3&&(k=0,E=jr())},e.onChange=function(W,G,he,A,z){if(ko!==k&&M(),G&&r&&w(T(A[2]===G?Z+(W.startX-W.x):w()+G-A[1])),he){v.offset&&q();var Q=z[2]===he,P=Q?X+W.startY-W.y:v()+he-z[1],ce=L(P);Q&&P!==ce&&(X+=ce-P),v(ce)}(he||G)&&Os()},e.onEnable=function(){L0(h,r?!1:"x"),nt.addEventListener("refresh",U),cr(yt,"resize",U),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=w.smooth=!1),D.enable()},e.onDisable=function(){L0(h,!0),or(yt,"resize",U),nt.removeEventListener("refresh",U),D.kill()},e.lockAxis=e.lockAxis!==!1,c=new Un(e),c.iOS=ml,ml&&!v()&&v(1),ml&&Re.ticker.add(La),K=c._dc,I=Re.to(c,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:kD(v,v(),function(){return I.pause()})},onUpdate:Os,onComplete:K.vars.onComplete}),c};nt.sort=function(t){if(Tr(t))return ht.sort(t);var e=yt.pageYOffset||0;return nt.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+yt.innerHeight}),ht.sort(t||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};nt.observe=function(t){return new Un(t)};nt.normalizeScroll=function(t){if(typeof t>"u")return Br;if(t===!0&&Br)return Br.enable();if(t===!1){Br&&Br.kill(),Br=t;return}var e=t instanceof Un?t:Pz(t);return Br&&Br.target===e.target&&Br.kill(),Co(e.target)&&(Br=e),e};nt.core={_getVelocityProp:D_,_inputObserver:AD,_scrollers:vt,_proxies:Ha,bridge:{ss:function(){da||Lo("scrollStart"),da=jr()},ref:function(){return Er}}};yD()&&Re.registerPlugin(nt);var AT="popstate";function OT(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Mz(t={}){function e(r,i){let s=i.state?.masked,{pathname:o,search:c,hash:f}=s||r.location;return $_("",{pathname:o,search:c,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:Bf(i)}return zz(e,n,null,t)}function Nn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Wa(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Iz(){return Math.random().toString(36).substring(2,10)}function RT(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function $_(t,e,n=null,r,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?_u(e):e,state:n,key:e&&e.key||r||Iz(),unstable_mask:i}}function Bf({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _u(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function zz(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,c="POP",f=null,h=p();h==null&&(h=0,o.replaceState({...o.state,idx:h},""));function p(){return(o.state||{idx:null}).idx}function g(){c="POP";let S=p(),E=S==null?null:S-h;h=S,f&&f({action:c,location:_.location,delta:E})}function x(S,E){c="PUSH";let N=OT(S)?S:$_(_.location,S,E);h=p()+1;let k=RT(N,h),R=_.createHref(N.unstable_mask||N);try{o.pushState(k,"",R)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(R)}s&&f&&f({action:c,location:_.location,delta:1})}function v(S,E){c="REPLACE";let N=OT(S)?S:$_(_.location,S,E);h=p();let k=RT(N,h),R=_.createHref(N.unstable_mask||N);o.replaceState(k,"",R),s&&f&&f({action:c,location:_.location,delta:0})}function w(S){return Uz(S)}let _={get action(){return c},get location(){return t(i,o)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(AT,g),f=S,()=>{i.removeEventListener(AT,g),f=null}},createHref(S){return e(i,S)},createURL:w,encodeLocation(S){let E=w(S);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:x,replace:v,go(S){return o.go(S)}};return _}function Uz(t,e=!1){let n="http://localhost";
12typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Nn(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:Bf(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function OD(t,e,n="/"){return Bz(t,e,n,!1)}function Bz(t,e,n,r){let i=typeof e=="string"?_u(e):e,s=Ds(i.pathname||"/",n);if(s==null)return null;let o=RD(t);$z(o);let c=null;for(let f=0;c==null&&f<o.length;++f){let h=Qz(s);c=Xz(o[f],h,r)}return c}function RD(t,e=[],n=[],r="",i=!1){let s=(o,c,f=i,h)=>{let p={relativePath:h===void 0?o.path||"":h,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&f)return;Nn(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=Ga([r,p.relativePath]),x=n.concat(p);o.children&&o.children.length>0&&(Nn(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),RD(o.children,e,x,g,f)),!(o.path==null&&!o.index)&&e.push({path:g,score:Yz(g,o.index),routesMeta:x})};return t.forEach((o,c)=>{if(o.path===""||!o.path?.includes("?"))s(o,c);else for(let f of CD(o.path))s(o,c,!0,f)}),e}function CD(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=CD(r.join("/")),c=[];return c.push(...o.map(f=>f===""?s:[s,f].join("/"))),i&&c.push(...o),c.map(f=>t.startsWith("/")&&f===""?"/":f)}function $z(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Wz(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Fz=/^:[\w-]+$/,qz=3,Hz=2,Gz=1,Vz=10,Kz=-2,CT=t=>t==="*";function Yz(t,e){let n=t.split("/"),r=n.length;return n.some(CT)&&(r+=Kz),e&&(r+=Hz),n.filter(i=>!CT(i)).reduce((i,s)=>i+(Fz.test(s)?qz:s===""?Gz:Vz),r)}function Wz(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Xz(t,e,n=!1){let{routesMeta:r}=t,i={},s="/",o=[];for(let c=0;c<r.length;++c){let f=r[c],h=c===r.length-1,p=s==="/"?e:e.slice(s.length)||"/",g=ag({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),x=f.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=ag({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;
12Object.assign(i,g.params),o.push({params:i,pathname:Ga([s,g.pathname]),pathnameBase:n8(Ga([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=Ga([s,g.pathnameBase]))}return o}function ag(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Jz(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((h,{paramName:p,isOptional:g},x)=>{if(p==="*"){let w=c[x]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const v=c[x];return g&&!v?h[p]=void 0:h[p]=(v||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:o,pattern:t}}function Jz(t,e=!1,n=!0){Wa(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,f,h,p)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let g=p.charAt(h+o.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Qz(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Wa(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Ds(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}var Zz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function e8(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?_u(t):t,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=DT(n.substring(1),"/"):s=DT(n,e)):s=e,{pathname:s,search:r8(r),hash:i8(i)}}function DT(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function P0(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` 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 t8(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function DD(t){let e=t8(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function l1(t,e,n,r=!1){let i;typeof t=="string"?i=_u(t):(i={...t},Nn(!i.pathname||!i.pathname.includes("?"),P0("?","pathname","search",i)),Nn(!i.pathname||!i.pathname.includes("#"),P0("#","pathname","hash",i)),Nn(!i.search||!i.search.includes("#"),P0("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,c;if(o==null)c=n;else{let g=e.length-1;if(!r&&o.startsWith("..")){let x=o.split("/");for(;x[0]==="..";)x.shift(),g-=1;i.pathname=x.join("/")}c=g>=0?e[g]:"/"}let f=e8(i,c),h=o&&o!=="/"&&o.endsWith("/"),p=(s||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var Ga=t=>t.join("/").replace(/\/\/+/g,"/"),n8=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),r8=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,i8=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,a8=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function s8(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function l8(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var LD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function PD(t,e){let n=t;
12if(typeof n!="string"||!Zz.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(LD)try{let s=new URL(window.location.href),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=Ds(o.pathname,e);o.origin===s.origin&&c!=null?n=c+o.search+o.hash:i=!0}catch{Wa(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var MD=["POST","PUT","PATCH","DELETE"];new Set(MD);var o8=["GET",...MD];new Set(o8);var wu=$.createContext(null);wu.displayName="DataRouter";var wg=$.createContext(null);wg.displayName="DataRouterState";var c8=$.createContext(!1),ID=$.createContext({isTransitioning:!1});ID.displayName="ViewTransition";var u8=$.createContext(new Map);u8.displayName="Fetchers";var d8=$.createContext(null);d8.displayName="Await";var ha=$.createContext(null);ha.displayName="Navigation";var th=$.createContext(null);th.displayName="Location";var Ja=$.createContext({outlet:null,matches:[],isDataRoute:!1});Ja.displayName="Route";var o1=$.createContext(null);o1.displayName="RouteError";var zD="REACT_ROUTER_ERROR",f8="REDIRECT",h8="ROUTE_ERROR_RESPONSE";function p8(t){if(t.startsWith(`${zD}:${f8}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function m8(t){if(t.startsWith(`${zD}:${h8}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new a8(e.status,e.statusText,e.data)}catch{}}function g8(t,{relative:e}={}){Nn(nh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=$.useContext(ha),{hash:i,pathname:s,search:o}=rh(t,{relative:e}),c=s;return n!=="/"&&(c=s==="/"?n:Ga([n,s])),r.createHref({pathname:c,search:o,hash:i})}function nh(){return $.useContext(th)!=null}function Ps(){return Nn(nh(),"useLocation() may be used only in the context of a <Router> component."),$.useContext(th).location}var UD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function BD(t){$.useContext(ha).static||$.useLayoutEffect(t)}function y8(){let{isDataRoute:t}=$.useContext(Ja);return t?R8():v8()}function v8(){Nn(nh(),"useNavigate() may be used only in the context of a <Router> component.");let t=$.useContext(wu),{basename:e,navigator:n}=$.useContext(ha),{matches:r}=$.useContext(Ja),{pathname:i}=Ps(),s=JSON.stringify(DD(r)),o=$.useRef(!1);return BD(()=>{o.current=!0}),$.useCallback((f,h={})=>{if(Wa(o.current,UD),!o.current)return;if(typeof f=="number"){n.go(f);return}let p=l1(f,JSON.parse(s),i,h.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:Ga([e,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[e,n,s,i,t])}$.createContext(null);function x8(){let{matches:t}=$.useContext(Ja),e=t[t.length-1];return e?e.params:{}}function rh(t,{relative:e}={}){let{matches:n}=$.useContext(Ja),{pathname:r}=Ps(),i=JSON.stringify(DD(n));return $.useMemo(()=>l1(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function b8(t,e){return $D(t,e)}function $D(t,e,n){Nn(nh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=$.useContext(ha),{matches:i}=$.useContext(Ja),s=i[i.length-1],o=s?s.params:{},c=s?s.pathname:"/",f=s?s.pathnameBase:"/",h=s&&s.route;{let S=h&&h.path||"";qD(c,!h||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 13 14Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let p=Ps(),g;if(e){let S=typeof e=="string"?_u(e):e;Nn(f==="/"||S.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${S.pathname}" was given in the \`location\` prop.`),g=S}else g=p;let x=g.pathname||"/",v=x;if(f!=="/"){let S=f.replace(/^\//,"").split("/");v="/"+x.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=OD(t,{pathname:v});Wa(h||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Wa(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=j8(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:Ga([f,r.encodeLocation?r.encodeLocation(S.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:Ga([f,r.encodeLocation?r.encodeLocation(S.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),i,n);return e&&_?$.createElement(th.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},_):_}function _8(){let t=O8(),e=s8(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",t),o=$.createElement($.Fragment,null,$.createElement("p",null,"ð¿ Hey developer ð"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:s},"ErrorBoundary")," or"," ",$.createElement("code",{style:s},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application
14Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},e),n?$.createElement("pre",{style:i},n):null,o)}var w8=$.createElement(_8,null),FD=class extends $.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=m8(t.digest);n&&(t=n)}let e=t!==void 0?$.createElement(Ja.Provider,{value:this.props.routeContext},$.createElement(o1.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?$.createElement(S8,{error:t},e):e}};FD.contextType=c8;var M0=new WeakMap;function S8({children:t,error:e}){let{basename:n}=$.useContext(ha);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=p8(e.digest);if(r){let i=M0.get(e);if(i)throw i;let s=PD(r.location,n);if(LD&&!M0.get(e))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw M0.set(e,o),o}return $.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return t}function E8({routeContext:t,match:e,children:n}){let r=$.useContext(wu);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),$.createElement(Ja.Provider,{value:t},n)}function j8(t,e=[],n){let r=n?.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,s=r?.errors;if(s!=null){let p=i.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Nn(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,p+1))}let o=!1,c=-1;if(n&&r){o=r.renderFallback;for(let p=0;p<i.length;p++){let g=i[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(c=p),g.route.id){let{loaderData:x,errors:v}=r,w=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||w){n.isStatic&&(o=!0),c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}}let f=n?.onError,h=r&&f?(p,g)=>{f(p,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:l8(r.matches),errorInfo:g})}:void 0;return i.reduceRight((p,g,x)=>{let v,w=!1,_=null,S=null;r&&(v=s&&g.route.id?s[g.route.id]:void 0,_=g.route.errorElement||w8,o&&(c<0&&x===0?(qD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):c===x&&(w=!0,S=g.route.hydrateFallbackElement||null)));let E=e.concat(i.slice(0,x+1)),N=()=>{let k;return v?k=_:w?k=S:g.route.Component?k=$.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=p,$.createElement(E8,{match:g,routeContext:{outlet:p,matches:E,isDataRoute:r!=null},children:k})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?$.createElement(FD,{location:r.location,revalidation:r.revalidation,component:_,error:v,children:N(),routeC
14ontext:{outlet:null,matches:E,isDataRoute:!0},onError:h}):N()},null)}function c1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function N8(t){let e=$.useContext(wu);return Nn(e,c1(t)),e}function T8(t){let e=$.useContext(wg);return Nn(e,c1(t)),e}function k8(t){let e=$.useContext(Ja);return Nn(e,c1(t)),e}function u1(t){let e=k8(t),n=e.matches[e.matches.length-1];return Nn(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function A8(){return u1("useRouteId")}function O8(){let t=$.useContext(o1),e=T8("useRouteError"),n=u1("useRouteError");return t!==void 0?t:e.errors?.[n]}function R8(){let{router:t}=N8("useNavigate"),e=u1("useNavigate"),n=$.useRef(!1);return BD(()=>{n.current=!0}),$.useCallback(async(i,s={})=>{Wa(n.current,UD),n.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...s}))},[t,e])}var LT={};function qD(t,e,n){!e&&!LT[t]&&(LT[t]=!0,Wa(!1,n))}$.memo(C8);function C8({routes:t,future:e,state:n,isStatic:r,onError:i}){return $D(t,void 0,{state:n,isStatic:r,onError:i})}function tr(t){Nn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function D8({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:o}){Nn(!nh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),f=$.useMemo(()=>({basename:c,navigator:i,static:s,unstable_useTransitions:o,future:{}}),[c,i,s,o]);typeof n=="string"&&(n=_u(n));let{pathname:h="/",search:p="",hash:g="",state:x=null,key:v="default",unstable_mask:w}=n,_=$.useMemo(()=>{let S=Ds(h,c);return S==null?null:{location:{pathname:S,search:p,hash:g,state:x,key:v,unstable_mask:w},navigationType:r}},[c,h,p,g,x,v,r,w]);return Wa(_!=null,`<Router basename="${c}"> is not able to match the URL "${h}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:$.createElement(ha.Provider,{value:f},$.createElement(th.Provider,{children:e,value:_}))}function L8({children:t,location:e}){return b8(F_(t),e)}function F_(t,e=[]){let n=[];return $.Children.forEach(t,(r,i)=>{if(!$.isValidElement(r))return;let s=[...e,i];if(r.type===$.Fragment){n.push.apply(n,F_(r.props.children,s));return}Nn(r.type===tr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Nn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||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=F_(r.props.children,s)),n.push(o)}),n}var Sm="get",Em="application/x-www-form-urlencoded";function Sg(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function P8(t){return Sg(t)&&t.tagName.toLowerCase()==="button"}function M8(t){return Sg(t)&&t.tagName.toLowerCase()==="form"}function I8(t){return Sg(t)&&t.tagName.toLowerCase()==="input"}function z8(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function U8(t,e){return t.button===0&&(!e||e==="_self")&&!z8(t)}var Kp=null;function B8(){if(Kp===null)try{new FormData(document.createElement("form"),0),Kp=!1}catch{Kp=!0}return Kp}var $8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function I0(t){return t!=null&&!$8.has(t)?(Wa(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Em}"`),null):t}function F8(t,e){let n,r,i,s,o;if(M8(t)){let c=t.getAttribute("action");r=c?Ds(c,e):null,n=t.getAttribute("method")||Sm,i=I0(t.getAttribute("enctype"))||Em,s=new FormData(t)}else if(P8(t)||I8(t)&&(t.type==="submit"||t.type==="image")){let c=t.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=t.getAttribute("formaction")||c.getAttribute("action");if(r=f?Ds(f,e):null,n=t.getAttribute("formmethod")||c.getAttribute("method")||Sm,i=I0(t.getAttribute("formenctype"))||I0(c.getAttribute("enctype"))||Em,s=new FormData(c,t),!B8()){let{name:h,type:p,value:g}=t;if(p==="image"){let x=h?`${h}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else h&&s.append(h,g)}}else{if(Sg(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Sm,r=null,i=Em,o=t}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function d1(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function q8(t,e,n,r){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:e&&Ds(i.pathname,e)==="/"?i.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function H8(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
14isSpaMode,window.location.reload(),new Promise(()=>{})}}function G8(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function V8(t,e,n){let r=await Promise.all(t.map(async i=>{let s=e.routes[i.route.id];if(s){let o=await H8(s,n);return o.links?o.links():[]}return[]}));return X8(r.flat(1).filter(G8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function PT(t,e,n,r,i,s){let o=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,c=(f,h)=>n[h].pathname!==f.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==f.params["*"];return s==="assets"?e.filter((f,h)=>o(f,h)||c(f,h)):s==="data"?e.filter((f,h)=>{let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(o(f,h)||c(f,h))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function K8(t,e,{includeHydrateFallback:n}={}){return Y8(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function Y8(t){return[...new Set(t)]}function W8(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function X8(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let s=JSON.stringify(W8(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function HD(){let t=$.useContext(wu);return d1(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function J8(){let t=$.useContext(wg);return d1(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var f1=$.createContext(void 0);f1.displayName="FrameworkContext";function GD(){let t=$.useContext(f1);return d1(t,"You must render this element inside a <HydratedRouter> element"),t}function Q8(t,e){let n=$.useContext(f1),[r,i]=$.useState(!1),[s,o]=$.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:p,onTouchStart:g}=e,x=$.useRef(null);$.useEffect(()=>{if(t==="render"&&o(!0),t==="viewport"){let _=E=>{E.forEach(N=>{o(N.isIntersecting)})},S=new IntersectionObserver(_,{threshold:.5});return x.current&&S.observe(x.current),()=>{S.disconnect()}}},[t]),$.useEffect(()=>{if(r){let _=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(_)}}},[r]);let v=()=>{i(!0)},w=()=>{i(!1),o(!1)};return n?t!=="intent"?[s,x,{}]:[s,x,{onFocus:Ad(c,v),onBlur:Ad(f,w),onMouseEnter:Ad(h,v),onMouseLeave:Ad(p,w),onTouchStart:Ad(g,v)}]:[!1,x,{}]}function Ad(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Z8({page:t,...e}){let{router:n}=HD(),r=$.useMemo(()=>OD(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?$.createElement(tU,{page:t,matches:r,...e}):null}function eU(t){let{manifest:e,routeModules:n}=GD(),[r,i]=$.useState([]);return $.useEffect(()=>{let s=!1;return V8(t,e,n).then(o=>{s||i(o)}),()=>{s=!0}},[t,e,n]),r}function tU({page:t,matches:e,...n}){let r=Ps(),{future:i,manifest:s,routeModules:o}=GD(),{basename:c}=HD(),{loaderData:f,matches:h}=J8(),p=$.useMemo(()=>PT(t,e,h,s,r,"data"),[t,e,h,s,r]),g=$.useMemo(()=>PT(t,e,h,s,r,"assets"),[t,e,h,s,r]),x=$.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let _=new Set,S=!1;if(e.forEach(N=>{let k=s.routes[N.route.id];!k||!k.hasLoader||(!p.some(R=>R.route.id===N.route.id)&&N.route.id in f&&o[N.route.id]?.shouldRevalidate||k.hasClientLoader?S=!0:_.add(N.route.id))}),_.size===0)return[];let E=q8(t,c,i.unstable_trailingSlashAwareDataRequests,"data");return S&&_.size>0&&E.searchParams.set("_routes",e.filter(N=>_.has(N.route.id)).map(N=>N.route.id).join(",")),[E.pathname+E.search]},[c,i.unstable_trailingSlashAwareDataRequests,f,r,s,p,e,t,o]),v=$.useMemo(()=>K8(g,s),[g,s]),w=eU(g);return $.createElement($.Fragment,null,x.map(_=>$.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),v.map(_=>$.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),w.map(({key:_,link:S})=>$.createElement("link",{key:_,nonce:n.nonce,...S,crossOrigin:S.crossOrigin??n.crossOrigin})))}function nU(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var rU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rU&&(window.__reactRouterVersion="7.13.1")}catch{}function iU({basename:t,children:e,unstable_useTransitions:n,window:r}){let i=$.useRef();i.current==null&&(i.current=Mz({window:r,v5Compat:!0}));let s=i.current,[o,c]=$.useState({action:s.action,location:s.location}),f=$.useCallback(h=>{n===!1?c(h):$.startTransition(()=>c(h))},[n]);return $.useLayoutEffect(()=>s.listen(f),[s,f]),$.createElement(D8,{basename:t,children:e,location:o.location,navigationType:o.action,navigator:s,unstable_useTransitions:n})}var VD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nt=$.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,unstable_mask:c,state:f,target:h,to:p,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:v,...w},_){let{basename:S,navigator:E,unstable_useTransitions:N}=$.useContext(ha),k=typeof p=="string"&&VD.test(p),R=PD(p,S);p=R.to;let D=g8(p,{relative:i}),O=Ps(),T=null;if(c){let K=l1(c,[],O.unstable_mask?O.unstable_mask.pathname:"/",!0);S!=="/"&&(K.pathname=K.pathname==="/"?S:Ga([S,K.pathname])),T=E.createHref(K)}let[L,M,q]=Q8(r,w),B=oU(p,{replace:o,unstable_mask:c,state:f,target:h,preventScrollReset:g,relative:i,viewTransition:x,unstable_defaultShouldRevalidate:v,unstable_useTransitions:N});function I(K){e&&e(K),K.defaultPrevented||B(K)}let Z=!(R.isExternal||s),X=$.createElement("a",{...w,...q,href:(Z?T:void 0)||R.absoluteURL||D,onClick:Z?I:e,ref:nU(_,M),target:h,"data-discover":!k&&n==="render"?"true":void 0});return L&&!k?$.createElement($.Fragment,null,X,$.createElement(Z8,{page:D})):X});Nt.displayName="Link";var aU=$.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:c,children:f,...h},p){let g=rh(o,{relative:h.relative}),x=Ps(),v=$.useContext(wg),{navigator:w,basename:_}=$.useContext(ha),S=v!=null&&hU(g)&&c===!0,E=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,N=x.pathname,k=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(N=N.toLowerCase(),k=k?k.toLowerCase():null,E=E.toLowerCase()),k&&_&&(k=Ds(k,_)||k);const R=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let D=N===E||!i&&N.startsWith(E)&&N.charAt(R)==="/",O=k!=null&&(k===E||!i&&k.startsWith(E)&&k.charAt(E.length)==="/"),T={isActive:D,isPending:O,isTransitioning:S},L=D?e:void 0,M;typeof r=="function"?M=r(T):M=[r,D?"active":null,O?"pending":null,S?"transitioning":null].filter(
14Boolean).join(" ");let q=typeof s=="function"?s(T):s;return $.createElement(Nt,{...h,"aria-current":L,className:M,ref:p,style:q,to:o,viewTransition:c},typeof f=="function"?f(T):f)});aU.displayName="NavLink";var sU=$.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:s,method:o=Sm,action:c,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:x,...v},w)=>{let{unstable_useTransitions:_}=$.useContext(ha),S=dU(),E=fU(c,{relative:h}),N=o.toLowerCase()==="get"?"get":"post",k=typeof c=="string"&&VD.test(c),R=D=>{if(f&&f(D),D.defaultPrevented)return;D.preventDefault();let O=D.nativeEvent.submitter,T=O?.getAttribute("formmethod")||o,L=()=>S(O||D.currentTarget,{fetcherKey:e,method:T,navigate:n,replace:i,state:s,relative:h,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:x});_&&n!==!1?$.startTransition(()=>L()):L()};return $.createElement("form",{ref:w,method:N,action:E,onSubmit:r?f:R,...v,"data-discover":!k&&t==="render"?"true":void 0})});sU.displayName="Form";function lU(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function KD(t){let e=$.useContext(wu);return Nn(e,lU(t)),e}function oU(t,{target:e,replace:n,unstable_mask:r,state:i,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:f,unstable_useTransitions:h}={}){let p=y8(),g=Ps(),x=rh(t,{relative:o});return $.useCallback(v=>{if(U8(v,e)){v.preventDefault();let w=n!==void 0?n:Bf(g)===Bf(x),_=()=>p(t,{replace:w,unstable_mask:r,state:i,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:f});h?$.startTransition(()=>_()):_()}},[g,p,x,n,r,i,e,t,s,o,c,f,h])}var cU=0,uU=()=>`__${String(++cU)}__`;function dU(){let{router:t}=KD("useSubmit"),{basename:e}=$.useContext(ha),n=A8(),r=t.fetch,i=t.navigate;return $.useCallback(async(s,o={})=>{let{action:c,method:f,encType:h,formData:p,body:g}=F8(s,e);if(o.navigate===!1){let x=o.fetcherKey||uU();await r(x,n,o.action||c,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||f,formEncType:o.encType||h,flushSync:o.flushSync})}else await i(o.action||c,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||f,formEncType:o.encType||h,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,e,n])}function fU(t,{relative:e}={}){let{basename:n}=$.useContext(ha),r=$.useContext(Ja);Nn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...rh(t||".",{relative:e})},o=Ps();if(t==null){s.search=o.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(p=>p==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let p=c.toString();s.search=p?`?${p}`:""}}return(!t||t===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Ga([n,s.pathname])),Bf(s)}function hU(t,{relative:e}={}){let n=$.useContext(ID);Nn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=KD("useViewTransitionState"),i=rh(t,{relative:e});if(!n.isTransitioning)return!1;let s=Ds(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ds(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ag(i.pathname,o)!=null||ag(i.pathname,s)!=null}const YD=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();const pU=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const mU=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());const MT=t=>{const e=mU(t);return e.charAt(0).toUpperCase()+e.slice(1)};var gU={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"};const yU=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const vU=$.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...c},f)=>$.createElement("svg",{ref:f,...gU,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:YD("lucide",i),...!s&&!yU(c)&&{"aria-hidden":"true"},...c},[...o.map(([h,p])=>$.createElement(h,p)),...Array.isArray(s)?s:[s]]));const rt=(t,e)=>{const n=$.forwardRef(({className:r,...i},s)=>$.createElement(vU,{ref:s,iconNode:e,className:YD(`lucide-${pU(MT(t))}`,`lucide-${t}`,r),...i}));return n.displayName=MT(t),n};const xU=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
14-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],vu=rt("activity",xU);const bU=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],IT=rt("arrow-left",bU);const _U=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Gr=rt("arrow-right",_U);const wU=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],SU=rt("bot",wU);const EU=[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"m10.852 9.228-.383-.923",key:"1fjppe"}],["path",{d:"m13.148 14.772.382.924",key:"je3va1"}],["path",{d:"m13.531 8.305-.383.923",key:"18epck"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 0 0-5.63-1.446 3 3 0 0 0-.368 1.571 4 4 0 0 0-2.525 5.771",key:"jcbbz1"}],["path",{d:"M17.998 5.125a4 4 0 0 1 2.525 5.771",key:"1kkn7e"}],["path",{d:"M19.505 10.294a4 4 0 0 1-1.5 7.706",key:"18bmuc"}],["path",{d:"M4.032 17.483A4 4 0 0 0 11.464 20c.18-.311.892-.311 1.072 0a4 4 0 0 0 7.432-2.516",key:"uozx0d"}],["path",{d:"M4.5 10.291A4 4 0 0 0 6 18",key:"whdemb"}],["path",{d:"M6.002 5.125a3 3 0 0 0 .4 1.375",key:"1kqy2g"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],yf=rt("brain-cog",EU);const jU=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],NU=rt("building",jU);const TU=[["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:"m9 16 2 2 4-4",key:"19s6y9"}]],WD=rt("calendar-check",TU);const kU=[["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"}]],Po=rt("calendar",kU);const AU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],OU=rt("chart-column",AU);const RU=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]],Eg=rt("chart-no-axes-column-increasing",RU);const CU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xo=rt("check",CU);const DU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],jm=rt("chevron-down",DU);const LU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],XD=rt("circle-alert",LU);const PU=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Bi=rt("circle-check-big",PU);const MU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ih=rt("clock",MU);const IU=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],zU=rt("database",IU);const UU=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],BU=rt("dollar-sign",UU);const $U=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],FU=rt("droplets",$U);const qU=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],zT=rt("external-link",qU);const HU=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
14],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],GU=rt("fingerprint-pattern",HU);const VU=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],z0=rt("github",VU);const KU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],$f=rt("globe",KU);const YU=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],JD=rt("heart",YU);const WU=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],XU=rt("layout-dashboard",WU);const JU=[["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"}]],h1=rt("mail",JU);const QU=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ff=rt("message-square",QU);const ZU=[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]],eB=rt("mouse-pointer-2",ZU);const tB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],nB=rt("panels-top-left",tB);const rB=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],q_=rt("pen-line",rB);const iB=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["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"}]],aB=rt("phone-call",iB);const sB=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 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 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 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 .244.473",key:"10hv5p"}]],lB=rt("phone-off",sB);const oB=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],cB=rt("quote",oB);const uB=[["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"}]],Va=rt("refresh-cw",uB);const dB=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fB=rt("search",dB);const hB=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pB=rt("settings",hB);const mB=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
14y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vf=rt("shield-check",mB);const gB=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],QD=rt("shield",gB);const yB=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],ZD=rt("smartphone",yB);const vB=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],kr=rt("sparkles",vB);const xB=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],bB=rt("star",xB);const _B=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],e5=rt("tag",_B);const wB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],qf=rt("target",wB);const SB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Rr=rt("trending-up",SB);const EB=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],p1=rt("user",EB);const jB=[["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"}]],za=rt("users",jB);const NB=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],t5=rt("workflow",NB);const TB=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Ci=rt("zap",TB),kB=({question:t,answer:e})=>{const[n,r]=$.useState(!1);return d.jsxs("div",{className:"border-b border-primary/5 py-6",children:[d.jsxs("button",{onClick:()=>r(!n),className:"flex w-full items-center justify-between text-left group","aria-expanded":n,children:[d.jsx("h3",{className:"font-heading font-semibold text-xl text-primary group-hover:text-accent transition-colors",children:t}),d.jsx(jm,{size:20,className:`text-primary/60 transition-transform duration-300 ${n?"rotate-180 text-accent":""}`,"aria-hidden":"true"})]}),d.jsx("div",{className:`overflow-hidden transition-all duration-500 ease-in-out ${n?"max-h-96 opacity-100 mt-4":"max-h-0 opacity-0"}`,children:d.jsx("p",{className:"font-sans text-primary/70 leading-relaxed text-lg",children:e})})]})},AB=()=>{const t=$.useRef(null),[e,n]=$.useState(!1),[r,i]=$.useState(5),o=(p=>{if(p<=5)return 1225;if(p>=50)return 925;const g=1225-(p-5)/45*300;return Math.round(g/10)*10})(r),c=o*r;$.useEffect(()=>{window.scrollTo(0,0);const p=Ue.context(()=>{Ue.from(".plans-animate",{y:30,opacity:0,stagger:.1,duration:1,ease:"power3.out"})},t);return()=>p.revert()},[]);const f=[{name:"AI-Integrated Operating System",detail:"The core intelligence driving your practice growth."},{name:"CRM",detail:"Track, manage and watch SmileFlow AI automate your patient acquisition."},{name:"Task Tracking",detail:"SmileFlow AI assigns your office staff tasks and ensures no patient ever gets left behind."},{name:"Revenue Attribution Tracking",detail:"Know exactly where every dollar of production comes from."},{name:"Real-time Patient Tracking",detail:"Monitor patient journeys throughout your entire ecosystem."}
14,{name:"Automated Schedule Optimization",detail:"AI fills gaps and prioritizes high-value procedures."},{name:"Agentic Social Media Asset Creation",detail:"We live in the era where AI creates better content than humans. Don't pay more for lower quality."},{name:"AI Created Websites",detail:"Gorgeous, bespoke websites in minutes, not months."},{name:"Website Chatbot",detail:"Automate patient engagement, even while you sleep."},{name:"Email & SMS Marketing",detail:"End-to-end patient engagement, from the first click."},{name:"Automated Retention Deployment",detail:"LTV maximization through machine-learned follow-ups."},{name:"Unlimited Patient Profiles",detail:"Scale your practice without worrying about data limits."},{name:"Priority Support & Strategy",detail:"Direct line to our practice growth engineers."},{name:"All Future Upgrades",detail:"You'll never pay more for new features or modules."}],h=[{question:"Are there any setup or integration fees?",answer:"No. We waive all setup and PMS integration fees. Our team handles the entire deployment process at no cost."},{question:"When does SmileFlow OS launch?",answer:"We are currently preparing for our official launch. Sign up for our waitlist to be notified when slots become available."},{question:"Can I cancel if it's not the right fit?",answer:"Yes. While we focus on long-term practice growth, we believe in the value of our product. You can cancel your subscription at any time."}];return d.jsxs("div",{ref:t,className:"pt-32 pb-20 px-6 md:px-16 max-w-7xl mx-auto overflow-hidden",children:[d.jsxs("div",{className:"text-center mb-20 flex flex-col items-center",children:[d.jsxs("h1",{className:"plans-animate font-heading font-bold text-5xl md:text-7xl lg:text-8xl tracking-tighter text-primary mb-6",children:["One System. ",d.jsx("span",{className:"text-accent italic font-drama lg:text-9xl",children:"Infinite"})," Scale."]}),d.jsx("p",{className:"plans-animate font-sans text-xl md:text-2xl text-primary/80 max-w-2xl font-medium",children:"Replace your fragmented software stack and expensive agency fees with one AI-powered OS."})]}),d.jsx("div",{className:"plans-animate flex justify-center mb-12 relative z-10",children:d.jsxs("div",{className:"bg-primary/5 p-1.5 rounded-full flex items-center relative border border-primary/10 w-80",children:[d.jsx("button",{onClick:()=>n(!1),className:`relative z-10 flex-1 py-2 rounded-full font-bold text-sm transition-all ${e?"text-primary/60 hover:text-primary":"text-white"}`,children:"Monthly"}),d.jsxs("button",{onClick:()=>n(!0),className:`relative z-10 flex-1 py-2 rounded-full font-bold text-sm transition-all ${e?"text-white":"text-primary/60 hover:text-primary"}`,children:["Annually ",d.jsx("span",{className:e?"text-white/80":"text-accent",children:"-10%"})]}),d.jsx("div",{className:`absolute top-1.5 bottom-1.5 w-[calc(50%-6px)] bg-primary rounded-full transition-all duration-300 ease-out z-0 shadow-md ${e?"translate-x-[100%] left-[6px]":"left-1.5"}`})]})}),d.jsx("div",{className:"plans-animate w-full mx-auto mb-32 relative z-10",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 items-stretch",children:[d.jsxs("div",{className:"bg-white rounded-[2rem] border border-primary/5 shadow-xl shadow-primary/5 lg:mt-6 lg:mb-6 p-8 flex flex-col relative overflow-hidden group hover:border-accent/30 transition-all",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-2",children:"CoreFlow"}),d.jsx("p",{className:"text-primary/60 text-sm h-10",children:"Utility Replacement with AI-First Foundation."})]}),d.jsx("div",{className:"mb-8 border-b border-primary/5 pb-8",children:d.jsxs("div",{className:"flex items-baseline gap-1",children:[d.jsxs("span",{className:"text-primary text-5xl font-heading font-bold",children:["$",e?Math.round(829*.9).toLocaleString():"829"]}),d.jsx("span",{className:"text-primary/50 text-base font-sans font-medium",children:"/mo"})]})}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"font-bold text-sm text-primary mb-4 uppercase tracking-wider",children:"Highlights"}),d.jsx("ul",{className:"space-y-4 mb-8",children:["Automated Patient Engagement","24/7 AI Website Chat","Core CRM","Task Tracking","PMS Integration","New Website","Two Way iMessage/RCS texting","Email Marketing","PMS Writeback","Insurance Verification","Generous AI Credits","Missed Call/Afterhours AI Assistant","Hosted Forms","Custom Campaigns","Recall","Online Booking","Real-time ROI Dashboard"].map((p,g)=>d.jsxs("li",{className:"flex items-start gap-3",children:[d.jsx(xo,{size:18,className:"text-accent shrink-0 mt-0.5"}),d.jsx("span",{className:"text-primary/70 text-sm font-medium",children:p})]},g))})]}),d.jsx("button",{disabled:!0,className:"w-full mt-auto bg-primary/5 text-primary/40 py-4 rounded-xl font-bold transition-all cursor-not-allowed border border-primary/10",children:"Coming Soon"})]}),d.jsxs("div",{className:"relative p-[2px] rounded-[2rem] bg-gradient-to-b from-accent via-accent/50 to-transparent shadow-2xl shadow-accent/20 z-10",children:[d.jsx("div",{className:"absolute inset-0 bg-accent/20 blur-xl rounded-[2rem] -z-10"}),d.jsxs("div",{className:"bg-white h-full rounded-[2rem] p-8 flex flex-col relative overflow-hidden",children:[d.jsx("div",{className:"absolute top-0 right-0 w-48 h-48 bg-accent/5 rounded-full blur-3xl -mr-24 -mt-24"}),d.jsx("div",{className:"mb-6 flex justify-between items-start pr-12",children:d.jsxs("div",{children:[d.jsx("h3",{className:"font-heading font-bold text-3xl text-primary mb-2",children:"OmniFlow"}),d.jsx("p",{className:"text-primary/60 text-sm max-w-[200px]",children:"Hyper-Growth for expanding practices."})]})}),d.jsx("div",{className:"mb-8 border-b border-primary/5 pb-8 flex flex-col",children:d.jsxs("div",{className:"flex items-baseline gap-1 mb-3",children:[d.jsxs("span",{className:"text-primary text-6xl font-heading font-bold",children:["$",e?Math.round(1460*.9).toLocaleStr
14ing():"1,460"]}),d.jsx("span",{className:"text-primary/50 text-base font-sans font-medium",children:"/mo"})]})}),d.jsxs("div",{className:"flex-1 relative z-10",children:[d.jsx("p",{className:"font-bold text-sm text-primary mb-4 uppercase tracking-wider",children:"Everything in CoreFlow, plus:"}),d.jsx("ul",{className:"space-y-4 mb-8",children:["Automated Meta/Google Ad Management","AI Lead Nurturing","Real-time ROI Dashboard","AI Website Builder & Hosting","Website AI Chatbot","Automated Schedule Optimization","Social Media Content Generator","Email & SMS Marketing"].map((p,g)=>d.jsxs("li",{className:"flex items-start gap-3",children:[d.jsx("div",{className:"bg-accent/10 p-0.5 rounded-full shrink-0 mt-0.5",children:d.jsx(xo,{size:14,strokeWidth:3,className:"text-accent"})}),d.jsx("span",{className:"text-primary/80 font-medium text-sm",children:p})]},g))})]}),d.jsx("button",{disabled:!0,className:"w-full relative z-10 mt-auto bg-accent/50 text-white/70 py-5 rounded-xl font-bold text-lg cursor-not-allowed",children:"Coming Soon"})]})]}),d.jsxs("div",{className:"bg-white rounded-[2rem] border border-primary/5 shadow-xl shadow-primary/5 lg:mt-6 lg:mb-6 p-8 flex flex-col relative overflow-hidden group hover:border-accent/30 transition-all",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-2",children:"DSOFlow"}),d.jsx("p",{className:"text-primary/60 text-sm h-10",children:"Multi-Location Scale."})]}),d.jsx("div",{className:"mb-6 border-b border-primary/5 pb-8",children:d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"flex justify-between items-center text-sm font-bold text-primary",children:[d.jsx("span",{className:"uppercase tracking-wider",children:"Practices:"}),d.jsxs("span",{className:"text-accent bg-accent/10 px-3 py-1 rounded-md text-base",children:[r,r>=50?"+":""]})]}),d.jsx("label",{htmlFor:"dso-range",className:"sr-only",children:"Number of practices"}),d.jsx("input",{id:"dso-range",type:"range",min:"5",max:"50",step:"1",value:r,onChange:p=>i(Number(p.target.value)),className:"w-full h-2 bg-primary/20 rounded-lg appearance-none cursor-pointer accent-accent transition-all hover:bg-primary/30"}),d.jsxs("div",{className:"flex justify-between text-xs text-primary/40 font-bold px-1",children:[d.jsx("span",{children:"5"}),d.jsx("span",{children:"50+"})]}),d.jsxs("div",{className:"mt-4 flex flex-col items-center bg-gray-50 rounded-xl py-5 border border-primary/10 shadow-inner group-hover:bg-accent/5 transition-colors",children:[d.jsx("div",{className:"text-xs text-primary/50 uppercase tracking-widest font-bold mb-1",children:"Estimated Total"}),d.jsxs("div",{className:"text-4xl font-heading font-bold text-primary",children:["$",(e?Math.round(c*.9):c).toLocaleString(),d.jsx("span",{className:"text-sm text-primary/40 font-sans font-medium",children:"/mo"})]}),d.jsxs("div",{className:"text-xs text-accent mt-2 tracking-wide font-bold",children:["$",(e?Math.round(o*.9):o).toLocaleString()," per practice"]})]})]})}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"font-bold text-sm text-primary mb-4 uppercase tracking-wider",children:"Everything in OmniFlow, plus:"}),d.jsx("ul",{className:"space-y-4 mb-8",children:["Multi-office reporting","Centralized Management Dashboard","Enterprise-grade API integrations"].map((p,g)=>d.jsxs("li",{className:"flex items-start gap-3",children:[d.jsx(xo,{size:18,className:"text-accent shrink-0 mt-0.5"}),d.jsx("span",{className:"text-primary/70 text-sm font-medium",children:p})]},g))})]}),d.jsx("button",{disabled:!0,className:"w-full mt-auto bg-primary/5 text-primary/40 py-4 rounded-xl font-bold transition-all cursor-not-allowed border border-primary/10",children:"Coming Soon"})]})]})}),d.jsx("div",{className:"plans-animate max-w-4xl mx-auto mb-32",children:d.jsx("div",{className:"bg-gradient-to-r from-accent/5 via-primary/5 to-accent/5 p-[1px] rounded-[2rem]",children:d.jsxs("div",{className:"bg-white rounded-[2rem] p-8 md:p-10 flex flex-col md:flex-row items-center justify-between gap-8 text-center md:text-left transition-shadow hover:shadow-xl hover:shadow-
14primary/5",children:[d.jsxs("div",{className:"flex-1",children:[d.jsxs("div",{className:"flex items-center gap-2 justify-center md:justify-start mb-3",children:[d.jsx(kr,{size:16,className:"text-accent"}),d.jsx("span",{className:"text-accent font-bold text-xs uppercase tracking-wider",children:"Optional Add-on"})]}),d.jsx("h3",{className:"font-heading font-bold text-2xl md:text-3xl text-primary mb-2",children:"Dedicated Account Manager"}),d.jsx("p",{className:"text-primary/60 font-sans text-sm md:text-base max-w-lg",children:"Elevate your practice with whiteglove management. A dedicated expert to proactively manage and optimize your SmileFlow system, ensuring maximum ROI without any heavy lifting on your end."})]}),d.jsxs("div",{className:"flex flex-col items-center md:items-end justify-center border-t md:border-t-0 md:border-l border-primary/10 pt-6 md:pt-0 md:pl-10",children:[d.jsx("span",{className:"text-primary text-4xl md:text-5xl font-heading font-bold",children:"$295"}),d.jsx("span",{className:"text-primary/50 text-sm font-sans font-medium mt-1",children:"/mo/practice"})]})]})})}),d.jsxs("div",{className:"plans-animate mb-32",children:[d.jsx("div",{className:"text-center mb-16",children:d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-6xl tracking-tight text-primary mb-4",children:"Complete protocol."})}),d.jsx("div",{className:"overflow-hidden bg-white rounded-[2rem] border border-primary/5 shadow-sm",children:d.jsx("div",{className:"grid grid-cols-1 divide-y divide-primary/5",children:f.map((p,g)=>d.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between p-6 md:p-8 hover:bg-primary/[0.02] transition-colors group",children:[d.jsxs("div",{className:"flex flex-col gap-1 mb-4 md:mb-0",children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary flex items-center gap-3",children:p.name}),d.jsx("p",{className:"font-sans text-sm text-primary/70 font-medium",children:p.detail})]}),d.jsxs("div",{className:"flex items-center gap-3 text-green-500 font-sans font-bold",children:[d.jsx("span",{className:"text-xs tracking-wider uppercase hidden md:inline",children:"Included"}),d.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-green-500 flex items-center justify-center text-white shadow-sm ring-4 ring-green-100",children:d.jsx(xo,{size:18,strokeWidth:3})})]})]},g))})})]}),d.jsxs("div",{className:"plans-animate max-w-4xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-6xl tracking-tight text-primary mb-4",children:"Frequently asked."}),d.jsx("p",{className:"font-sans text-lg text-primary/60",children:"Common questions about our founding program."})]}),d.jsx("div",{className:"flex flex-col",children:h.map((p,g)=>d.jsx(kB,{question:p.question,answer:p.answer},g))})]})]})};Ue.registerPlugin(nt);const OB=({children:t,className:e})=>{const n=$.useRef(null);return $.useEffect(()=>{const r=n.current;if(!r)return;const i=Ue.quickTo(r,"x",{duration:1,ease:"elastic.out(1, 0.3)"}),s=Ue.quickTo(r,"y",{duration:1,ease:"elastic.out(1, 0.3)"}),o=f=>{const h=r.getBoundingClientRect(),p=(f.clientX-h.left-h.width/2)*.4,g=(f.clientY-h.top-h.height/2)*.4;i(p),s(g)},c=()=>{i(0),s(0)};return r.addEventListener("mousemove",o),r.addEventListener("mouseleave",c),()=>{r.removeEventListener("mousemove",o),r.removeEventListener("mouseleave",c)}},[]),d.jsx("div",{className:"magnetic-wrap",children:d.jsx("button",{ref:n,className:e,children:t})})},U0=({label:t,value:e,type:n="cost"})=>d.jsxs("div",{className:"flex justify-between items-center py-4 border-b border-primary/5 group",children:[d.jsx("span",{className:"font-sans text-primary/70 font-medium group-hover:text-primary transition-colors",children:t}),d.jsxs("span",{className:`font-mono font-bold ${n==="savings"?"text-green-600":"text-primary"}`,children:[n==="savings"?"+":"","$",e.toLocaleString()]})]}),RB=()=>{const[t,e]=$.useState(0),[n,r]=$.useState(100);return $.useEffect(()=>{const i=setInterval(()=>{e(s=>s<95?s+1:95),r(s=>s>20?s-1:20)},50);return()=>clearInterval(i)},[]),d.jsxs("div",{className:"relative w-full aspect-square max-w-[280px] md:max-w-[350px] bg-white rounded-[2.5rem] border border-primary/5 shadow-2xl p-6 md:p-8 flex flex-col justify-between overflow-hidden group mx-auto lg:mx-0",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),d.jsxs("div",{className:"relative z-10 flex flex-col gap-2",children:[d.jsxs("div",{className:"flex justify-between items-end",children:[d.jsx("span",{className:"font-mono text-[10px] font-black uppercase tracking-widest text-primary/40",children:"SmileFlow Speed"}),d.jsxs("span",{className:"text-2xl font-black text-accent",children:[t,"%"]})]}),d.jsx("div",{className:"w-full h-3 bg-primary/5 rounded-full overflow-hidden p-0.5 border border-primary/5",children:d.jsx("div",{className:"h-full bg-accent rounded-full transition-all duration-500 ease-out shadow-[0_0_10px_rgba(204,88,51,0.4)]",style:{width:`${t}%`}})})]}),d.jsxs("div",{className:"relative z-10 text-center py-4",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-green-50 text-green-600 px-3 py-1 rounded-full border border-green-100 mb-2",children:[d.jsx(Ci,{size:12,fill:"currentColor"}),d.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest",children:"Instant Scale"})]}),d.jsxs("div",{className:"font-heading font-black text-3xl text-primary leading-tight",children:["Cheaper. ",d.jsx("br",{})," Faster."]})]}),d.jsxs("div",{className:"relative z-10 flex flex-col gap-2",children:[d.jsxs("div",{className:"flex justify-between items-end",children:[d.jsx("span",{className:"font-mono text-[10px] font-black uppercase tracking-widest text-primary/40",children:"Monthly Overhead"}),d.jsxs("span",{className:"text-2xl font-black text-primary",children:[n,"%"]})]}),d.jsx("div",{className:"w-full h-3 bg-primary/5 rounded-full overflow-hidden p-0.5 border border-primary/5",children:d.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-500 ease-out",style:{width:`${n}%`}})})]}),d.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-48 h-48 border border-accent/10 rounded-full animate-ping pointer-events-none"})]})},CB=()=>{const t=$.useRef(null);$.useEffect(()=>{window.scrollTo(0,0);const n=Ue.context(()=>{Ue.from(".compare-animate",{y:40,opacity:0,stagger:.1,duration:1,ease:"power3.out"}),Ue.utils.toArray(".scroll-reveal").forEach(r=>{Ue.from(r,{y:60,opacity:0,duration:1.2,ease:"power3.out",scrollTrigger:{trigger:r,start:"top 85%",toggleActions:"play none none none"}})})},t);return()=>n.revert()},[]);const e=[{name:"24/7 AI Booking",sf:"checkmark",legacy:"Limited",agency:"Manual"},{name:"Instant Lead Response",sf:"checkmark",legacy:"Limited/SMS Only",agency:"Manual (Hours/Days)"},{name:"Automated Ad Optimization",sf:"checkmark",legacy:"None",agency:"Manual (High Fee)"},{name:"Website",sf:"checkmark",legacy:"None",agency:"$5,000-$10,000"},{name:"Multi-channel ROI Tracking",sf:"checkmark",legacy:"Parti
14al",agency:"Manual Reports"},{name:"Built-in CRM",sf:"checkmark",legacy:"checkmark",agency:"Spreadsheets"},{name:"Onboarding Speed",sf:"checkmark",legacy:"30-60 Days",agency:"Unknown"}];return d.jsxs("div",{ref:t,className:"pt-32 pb-20 bg-background overflow-hidden",children:[d.jsx("div",{className:"fixed top-[-20%] left-[-10%] w-[50%] h-[50%] bg-accent/5 rounded-full blur-[100px] pointer-events-none -z-10"}),d.jsx("div",{className:"fixed bottom-[-20%] right-[-10%] w-[50%] h-[50%] bg-blue-500/5 rounded-full blur-[100px] pointer-events-none -z-10"}),d.jsx("section",{className:"px-6 md:px-16 max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-16 lg:gap-24",children:[d.jsxs("div",{className:"flex-1 max-w-4xl",children:[d.jsxs("div",{className:"compare-animate inline-flex items-center gap-2 bg-accent/10 border border-accent/20 px-4 py-1.5 rounded-full mb-8",children:[d.jsx(kr,{size:14,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] md:text-xs font-bold text-accent tracking-wider uppercase",children:"The Economics of Efficiency"})]}),d.jsxs("h1",{className:"compare-animate font-heading font-bold text-5xl md:text-7xl lg:text-8xl tracking-tighter text-primary mb-8 leading-[0.9]",children:["Stop Paying the ",d.jsx("br",{}),d.jsx("span",{className:"text-accent italic font-drama lg:text-9xl pr-4",children:"Manual Tax."})]}),d.jsx("p",{className:"compare-animate font-sans text-xl md:text-2xl text-primary/60 max-w-2xl font-medium leading-relaxed",children:"SmileFlow costs less than the tools and agencies youâre already paying forâand it does 10x the work."})]}),d.jsx("div",{className:"compare-animate flex-shrink-0",children:d.jsx(RB,{})})]})}),d.jsx("section",{className:"scroll-reveal px-6 md:px-16 max-w-7xl mx-auto mb-40",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[d.jsxs("div",{className:"space-y-8",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-5xl tracking-tight text-primary",children:'The "Net-Zero" Reality.'}),d.jsx("p",{className:"font-sans text-lg text-primary/60 max-w-lg leading-relaxed",children:"When you replace your agency and redundant software subscriptions, SmileFlow isn't an expenseâit's a massive monthly savings event."}),d.jsxs("div",{className:"bg-white rounded-[2rem] border border-primary/5 shadow-xl shadow-primary/5 p-8 md:p-10",children:[d.jsx(U0,{label:"Traditional Agency Fee",value:2500}),d.jsx(U0,{label:"Patient Engagement Software",value:500}),d.jsx(U0,{label:"After-Hours Service",value:300}),d.jsxs("div",{className:"flex justify-between items-center py-6",children:[d.jsx("span",{className:"font-heading font-bold text-xl text-primary",children:"Total Monthly Spend"}),d.jsx("span",{className:"font-mono font-black text-2xl text-primary",children:"$3,300"})]}),d.jsxs("div",{className:"mt-4 p-6 bg-accent rounded-2xl text-white shadow-lg shadow-accent/20 flex justify-between items-center",children:[d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest opacity-80",children:"SmileFlow OmniFlow"}),d.jsx("span",{className:"text-2xl font-black",children:"$1,430"})]}),d.jsxs("div",{className:"text-right",children:[d.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest opacity-80",children:"Monthly Savings"}),d.jsx("span",{className:"text-2xl font-black block",children:"+$1,870"})]})]})]})]}),d.jsxs("div",{className:"relative group",children:[d.jsx("div",{className:"absolute inset-0 bg-accent/20 blur-3xl rounded-full group-hover:bg-accent/30 transition-all duration-1000 -z-10"}),d.jsx("div",{className:"bg-white rounded-[3rem] border border-primary/5 p-12 shadow-2xl relative overflow-hidden",children:d.jsxs("div",{className:"flex flex-col gap-8 text-center",children:[d.jsx("div",{className:"flex justify-center",children:d.jsx("div",{className:"w-20 h-20 bg-accent/10 rounded-full flex items-center justify-center text-accent",children:d.jsx(Rr,{size:40})})}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("span",{className:"text-5xl md:text-6xl font-heading font-black text-primary",children:"$22,440"}),d.jsx("p",{className:"text-primary/50 font-sans font-bold uppercase tracking-widest",children:"Yearly Retained Capital"})]}),d.jsx("p",{className:"font-sans text-primary/70 text-sm italic",children:`"That's enough to hire a part-time assistant, refresh your operatory, or simply drop to your bottom line."`})]})})]})]})}),d.jsxs("section",{className:"scroll-reveal px-6 md:px-16 max-w-7xl mx-auto mb-40",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-6xl tracking-tight text-primary mb-6",children:"The Feature Showdown."}),d.jsx("p",{className:"font-sans text-lg text-primary/60",children:"Legacy systems are features. SmileFlow is an ecosystem."})]}),d.jsx("div",{className:"md:hidden flex flex-col items-center gap-2 mb-4 animate-pulse-gentle",children:d.jsxs("span",{className:"font-mono text-[10px] font-bold text-accent uppercase tracking-widest flex items-center gap-2",children:["Swipe to compare",d.jsx(Gr,{size:12,className:"animate-bounce-x"})]})}),d.jsx("div",{className:"overflow-x-auto pb-8 scrollbar-hide",children:d.jsx("div",{className:"min-w-[650px] md:min-w-[800px] bg-white rounded-[2rem] md:rounded-[2.5rem] border border-primary/5 shadow-sm overflow-hidden mx-auto",children:d.jsxs("table",{className:"w-full text-left border-collapse",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-primary/5",children:[d.jsx("th",{className:"p-4 md:p-8 font-heading font-bold text-primary text-lg md:text-xl",children:"Capability"}),d.jsx("th",{className:"p-4 md:p-8 font-heading font-bold text-accent text-lg md:text-xl bg-accent/[0.03] border-x border-accent/10",children:"SmileFlow"}),d.jsx("th",{className:"p-4 md:p-8 font-heading font-bold text-primary/40 text-lg md:text-xl",children:"Legacy SaaS"}),d.jsx("th",{className:"p-4 md:p-8 font-heading font-bold text-primary/40 text-lg md:text-xl",children:"Agencies"})]})}),d.jsx("tbody",{className:"divide-y divide-primary/5",children:e.map((n,r)=>d.jsxs("tr",{className:"hover:bg-primary/[0.01] transition-colors group",children:[d.jsx("td",{className:"p-4 md:p-8",children:d.jsx("span",{className:"font-heading font-bold text-base md:text-lg text-primary",children:n.name})}),d.jsx("td",{className:"p-4 md:p-8 bg-accent/[0.03] border-x border-accent/10 text-center",children:d.jsx("div",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full bg-green-500 text-white shadow-sm ring-4 ring-green-100",children:d.jsx(xo,{size:18,strokeWidth:3})})}),d.jsx("td",{className:"p-4 md:p-8",children:n.legacy==="checkmark"?d.jsx("div",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full bg-primary/10 text-primary/40",children:d.jsx(xo,{size:18,strokeWidth:2})}):d.jsx("span",{className:"font-sans font-bold text-sm text-primary/50 uppercase tracking-wider",children:n.legacy})}),d.jsx("td",{className:"p-4 md:p-8",children:d.jsx("span",{className:"font-sans font-bold text-sm text-primary/50 uppercase tracking-wider",children:n.agency})})]},r))})]})})})]}),d.jsx("section",{className:"scroll-reveal px-6 md:px-16 max-w-7xl mx-auto mb-32 md:mb-40",children:d.jsxs("div",{className:"bg-dark rounded-[2.5rem] md:rounded-[3rem] p-8 md:p-20 text-white overflow-hidden relative",children:[d.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-accent/20 rounded-full blur-[120px] -mr-48 -mt-48"}),d.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-blue-500/10 rounded-full blur-[100px] -ml-32 -mb-32"}),d.jsxs("div",{className:"relative z-10 grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-white/10 border border-white/20 px-4 py-1.5 rounded-full mb-8",children:[d.jsx(XD,{size:14,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] md:text-xs font-bold text-white tracking-wider up
14percase",children:"Revenue Leakage"})]}),d.jsxs("h2",{className:"font-heading font-bold text-3xl md:text-6xl tracking-tight mb-6 md:mb-8 leading-tight",children:["Patch the ",d.jsx("br",{}),d.jsx("span",{className:"text-accent italic font-drama text-5xl md:text-8xl",children:"Leaking Bucket."})]}),d.jsx("p",{className:"font-sans text-lg md:text-xl text-white/70 max-w-lg leading-relaxed mb-8",children:"Most agencies stop working at 5 PM. Most legacy software waits for human intervention. SmileFlow captures high-value cases while you sleep."}),d.jsx("div",{className:"space-y-4",children:d.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-2xl bg-white/5 border border-white/10",children:[d.jsx("div",{className:"w-12 h-12 bg-accent/20 rounded-xl flex items-center justify-center text-accent",children:d.jsx(ih,{size:24})}),d.jsxs("div",{children:[d.jsx("span",{className:"block font-bold",children:"24/7 Response Time"}),d.jsx("span",{className:"text-sm text-white/50",children:"Immediate engagement, regardless of time or day."})]})]})})]}),d.jsxs("div",{className:"relative h-[300px] md:h-[500px] flex items-center justify-center",children:[d.jsxs("div",{className:"relative w-full max-w-[200px] md:max-w-[300px] aspect-[3/4] md:aspect-[1/2] rounded-3xl border-4 border-white/20 bg-white/5 flex flex-col justify-end p-4 overflow-hidden shadow-2xl",children:[d.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center opacity-20 pointer-events-none",children:d.jsx(FU,{size:120,className:"text-accent animate-pulse"})}),d.jsx("div",{className:"relative h-[60%] w-full bg-accent/40 rounded-2xl border-t-4 border-accent animate-[liquid_4s_ease-in-out_infinite] shadow-[0_0_30px_rgba(204,88,51,0.3)]",children:d.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-accent to-transparent p-6 flex flex-col justify-end",children:[d.jsx("span",{className:"text-white text-3xl font-black",children:"$25,000+"}),d.jsx("span",{className:"text-white/60 text-[10px] font-black uppercase tracking-widest",children:"Added Monthly Production"})]})})]}),[...Array(12)].map((n,r)=>d.jsx("div",{className:"absolute w-2 h-2 bg-accent/40 rounded-full animate-ping",style:{top:`${r*7%80+10}%`,left:`${r*13%80+10}%`,animationDelay:`${r*.3%4}s`}},r))]})]})]})}),d.jsx("section",{className:"scroll-reveal px-6 md:px-16 max-w-7xl mx-auto text-center mb-20",children:d.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col items-center",children:[d.jsxs("h2",{className:"font-heading font-bold text-5xl md:text-7xl tracking-tighter text-primary mb-8",children:["See the Math for ",d.jsx("span",{className:"text-accent italic font-drama",children:"Your"})," Practice."]}),d.jsx("p",{className:"font-sans text-xl text-primary/60 mb-12 max-w-xl",children:"Every month you wait is a month of manual tax. Let us show you the ROI blueprint for your specific patient volume."}),d.jsx(Nt,{to:"/founder-notification",children:d.jsxs(OB,{className:"bg-accent text-white px-12 py-6 rounded-full text-xl font-bold flex items-center gap-3 shadow-2xl shadow-accent/40 hover:bg-primary transition-all hover:scale-105 active:scale-95",children:["Book Your Economic Audit ",d.jsx(Gr,{size:24})]})}),d.jsxs("p",{className:"mt-8 text-primary/40 text-sm font-bold flex items-center gap-2",children:[d.jsx(QD,{size:16})," 100% Data Security. Guaranteed Rate-Lock for Founders."]})]})}),d.jsx("style",{dangerouslySetInnerHTML:{__html:` 15 @keyframes scroll { 16 0% { transform: translateY(0); } 17 100% { transform: translateY(-50%); } 18 } 19 @keyframes liquid { 20 0%, 100% { transform: translateY(0) scaleY(1); } 21 50% { transform: translateY(5px) scaleY(0.98); } 22 } 23 @keyframes bounce-x { 24 0%, 100% { transform: translateX(0); } 25 50% { transform: translateX(4px); } 26 } 27 .animate-bounce-x { 28 animation: bounce-x 1s ease-in-out infinite; 29 } 30 .animate-pulse-gentle { 31 animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; 32 } 33 `}})]})},DB=()=>($.useEffect(()=>{window.scrollTo(0,0)},[]),d.jsxs("div",{className:"pt-40 pb-20 px-6 md:px-16 max-w-4xl mx-auto",children:[d.jsx("h1",{className:"font-heading font-bold text-5xl md:text-6xl text-primary mb-12 tracking-tighter",children:"Privacy Policy"}),d.jsxs("div",{className:"space-y-12 font-sans text-primary/70 leading-relaxed text-lg",children:[d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"1. Introduction"}),d.jsx("p",{children:'Welcome to SmileFlow AI ("we," "our," or "us"). We are committed to protecting your privacy and ensuring that your personal and clinical data is handled with the highest level of security and transparency. This Privacy Policy explains how we
33collect, use, and safeguard information across our website and the SmileFlow OS platform.'})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"2. Information Collection"}),d.jsx("p",{className:"mb-4",children:"We collect information from several sources to provide and improve our services:"}),d.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[d.jsxs("li",{children:[d.jsx("strong",{children:"Personal Information:"})," Name, email address, phone number, and practice details provided during registration or waitlist signup."]}),d.jsxs("li",{children:[d.jsx("strong",{children:"SmileFlow OS Integration Data:"})," When connected to your Practice Management System (PMS), SmileFlow OS processes relevant patient data (including clinical schedules and contact information) to perform automated growth and retention tasks."]}),d.jsxs("li",{children:[d.jsx("strong",{children:"Usage Data:"})," Information on how you interact with our website and platform, including IP addresses, browser types, and engagement metrics via tools like PostHog."]})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"3. Data Usage & AI Processing"}),d.jsx("p",{className:"mb-4",children:"SmileFlow AI utilizes advanced machine learning and agentic AI to automate practice growth. Your data is used to:"}),d.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Automate patient lifecycle management and retention."}),d.jsx("li",{children:"Optimize clinical schedules and identify high-value opportunities."}),d.jsx("li",{children:"Generate marketing assets and website content tailored to your practice."}),d.jsx("li",{children:"Track revenue attribution and marketing performance."})]}),d.jsx("p",{className:"mt-4 italic",children:"Note: We do not sell your personal or patient data to third parties for advertising purposes."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"4. Data Security (HIPAA Compliance)"}),d.jsx("p",{children:"For practices using SmileFlow OS, we maintain strict adherence to healthcare data privacy standards. All patient-related data is processed through secure, encrypted channels. We implement industry-standard technical and organizational measures to prevent unauthorized access, disclosure, or alteration of data."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"5. Third-Party Services"}),d.jsx("p",{children:"We may share information with trusted third-party providers (such as hosting services, payment processors, and analytics tools) solely to facilitate our services. All third-party partners are vetted for security compliance and are contractually obligated to protect your data."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"6. Your Rights"}),d.jsx("p",{children:"You have the right to access, correct, or delete your personal information. If you wish to exercise these rights or have questions about our data practices, please contact us directly at [email protected]."})]}),d.jsx("section",{children:d.jsx("p",{className:"text-sm font-bold opacity-50",children:"Last Updated: February 25th, 2026"})})]})]})),LB=()=>($.useEffect(()=>{window.scrollTo(0,0)},[]),d.jsxs("div",{className:"pt-40 pb-20 px-6 md:px-16 max-w-4xl mx-auto",children:[d.jsx("h1",{className:"font-heading font-bold text-5xl md:text-6xl text-primary mb-12 tracking-tighter",children:"Terms of Service"}),d.jsxs("div",{className:"space-y-12 font-sans text-primary/70 leading-relaxed text-lg",children:[d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"1. Acceptance of Terms"}),d.jsx("p",{children:"By accessing or using the SmileFlow AI website or the SmileFlow OS platform, you agree to be bound by these Terms of Service and all applicable laws and regulations. If you do not agree with any of these terms, you are prohibited from using or accessing our services."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"2. SmileFlow OS Subscriptions"}),d.jsx("p",{className:"mb-4",children:"Users enrolled in the Founding Practice Program or other subscription tiers agree to:"}),d.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Maintain an active subscription for continued access to the OS features."}),d.jsx("li",{children:"Ensure the platform remains connected to their Practice Management System (PMS) for automated functionality."}),d.jsx("li",{children:"Adhere to the specific pricing and lock-in terms agreed upon at the time of signup (e.g., the Founding Practice $490/mo rate lock)."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"3. Use License & Intellectual Property"}),d.jsx("p",{children:"SmileFlow AI and SmileFlow OS, including all AI-generated content, code, and interfaces, are the intellectual property of InTandem, LLC. You are granted a limited, non-exclusive license to use the platform for your dental practice. You may not reverse engineer, decompile, or attempt to extract the source code of our systems."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"4. User Conduct & Practice Responsibility"}),d.jsx("p",{children:"Practices are responsible for the accuracy of information provided to SmileFlow AI. While our AI automates many growth tasks, the ultimate clinical and professional responsibility for patient interaction resides with the dental practice."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"5. Limitation of Liability"}),d.jsx("p",{children:'SmileFlow AI is provided "as is" without any warranties of any kind. In no event shall InTandem, LLC or its partners be liable for any damages (including, without limitation, damages for loss of data or profit) arising out of the use or inability to use the SmileFlow materials.'})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"6. Modifications"}),d.jsx("p",{children:"We may revise these Terms of Service for our website and platform at any time without notice. By using this service, you are agreeing to be bound by the then-current version of these terms."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"7. Governing Law"}),d.jsx("p",{children:"Any claim relating to SmileFlow AI shall be governed by the laws of the jurisdiction in which InTandem, LLC is registered, without regard to its conflict of law provisions."})]}),d.jsx("section",{children:d.jsx("p",{className:"text-sm font-bold opacity-50",children:"Last Updated: March 18th, 2026"})})]})]}));function ah(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function PB(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
33return new(n||(n=Promise))(function(s,o){function c(p){try{h(r.next(p))}catch(g){o(g)}}function f(p){try{h(r.throw(p))}catch(g){o(g)}}function h(p){p.done?s(p.value):i(p.value).then(c,f)}h((r=r.apply(t,e||[])).next())})}const MB=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class m1 extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class IB extends m1{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class UT extends m1{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class BT extends m1{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var H_;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(H_||(H_={}));class zB{constructor(e,{headers:n={},customFetch:r,region:i=H_.Any}={}){this.url=e,this.headers=n,this.region=i,this.fetch=MB(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return PB(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:c,method:f,body:h,signal:p,timeout:g}=r;let x={},{region:v}=r;v||(v=this.region);const w=new URL(`${this.url}/${n}`);v&&v!=="any"&&(x["x-region"]=v,w.searchParams.set("forceFunctionRegion",v));let _;h&&(c&&!Object.prototype.hasOwnProperty.call(c,"Content-Type")||!c)?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(x["Content-Type"]="application/octet-stream",_=h):typeof h=="string"?(x["Content-Type"]="text/plain",_=h):typeof FormData<"u"&&h instanceof FormData?_=h:(x["Content-Type"]="application/json",_=JSON.stringify(h)):h&&typeof h!="string"&&!(typeof Blob<"u"&&h instanceof Blob)&&!(h instanceof ArrayBuffer)&&!(typeof FormData<"u"&&h instanceof FormData)?_=JSON.stringify(h):_=h;let S=p;g&&(o=new AbortController,s=setTimeout(()=>o.abort(),g),p?(S=o.signal,p.addEventListener("abort",()=>o.abort())):S=o.signal);const E=yield this.fetch(w.toString(),{method:f||"POST",headers:Object.assign(Object.assign(Object.assign({},x),this.headers),c),body:_,signal:S}).catch(D=>{throw new IB(D)}),N=E.headers.get("x-relay-error");if(N&&N==="true")throw new UT(E);if(!E.ok)throw new BT(E);let k=((i=E.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),R;return k==="application/json"?R=yield E.json():k==="application/octet-stream"||k==="application/pdf"?R=yield E.blob():k==="text/event-stream"?R=E:k==="multipart/form-data"?R=yield E.formData():R=yield E.text(),{data:R,error:null,response:E}}catch(c){return{data:null,error:c,response:c instanceof BT||c instanceof UT?c.context:void 0}}finally{s&&clearTimeout(s)}})}}var UB=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
33de=t.code}},BB=class{constructor(t){var e,n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=t.urlLengthLimit)!==null&&r!==void 0?r:8e3,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){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 s=>{let o=null,c=null,f=null,h=s.status,p=s.statusText;if(s.ok){var g,x;if(n.method!=="HEAD"){var v;const E=await s.text();E===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((v=n.headers.get("Accept"))===null||v===void 0)&&v.includes("application/vnd.pgrst.plan+text"))?c=E:c=JSON.parse(E))}const _=(g=n.headers.get("Prefer"))===null||g===void 0?void 0:g.match(/count=(exact|planned|estimated)/),S=(x=s.headers.get("content-range"))===null||x===void 0?void 0:x.split("/");_&&S&&S.length>1&&(f=parseInt(S[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(c)&&(c.length>1?(o={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,f=null,h=406,p="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{var w;const _=await s.text();try{o=JSON.parse(_),Array.isArray(o)&&s.status===404&&(c=[],o=null,h=200,p="OK")}catch{s.status===404&&_===""?(h=204,p="No Content"):o={message:_}}if(o&&n.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,h=200,p="OK"),o&&n.shouldThrowOnError)throw new UB(o)}return{error:o,data:c,count:f,status:h,statusText:p}});return this.shouldThrowOnError||(i=i.catch(s=>{var o;let c="",f="",h="";const p=s?.cause;if(p){var g,x,v,w;const E=(g=p?.message)!==null&&g!==void 0?g:"",N=(x=p?.code)!==null&&x!==void 0?x:"";c=`${(v=s?.name)!==null&&v!==void 0?v:"FetchError"}: ${s?.message}`,c+=` 34 35Caused by: ${(w=p?.name)!==null&&w!==void 0?w:"Error"}: ${E}`,N&&(c+=` (${N})`),p?.stack&&(c+=` 36${p.stack}`)}else{var _;c=(_=s?.stack)!==null&&_!==void 0?_:""}const S=this.url.toString().length;return s?.name==="AbortError"||s?.code==="ABORT_ERR"?(h="",f="Request was aborted (timeout or manual cancellation)",S>this.urlLengthLimit&&(f+=`. Note: Your request URL is ${S} 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.`)):(p?.name==="HeadersOverflowError"||p?.code==="UND_ERR_HEADERS_OVERFLOW")&&(h="",f="HTTP headers exceeded server limits (typically 16KB)",S>this.urlLengthLimit&&(f+=`. Your request URL is ${S} 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=s?.name)!==null&&o!==void 0?o:"FetchError"}: ${s?.message}`,details:c,hint:f,code:h},data:null,count:null,status:0,statusText:""}})),i.then(t,e)}returns(){return this}overrideTypes(){return this}},$B=class extends BB{select(t){let e=!1;const n=(t??"*").split("").map(r=>/\s/.test(r)&&!e?"":(r==='"'&&(e=!e),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(s,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
36explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var o;const c=[t?"analyze":null,e?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),f=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${f}"; options=${c};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const $T=new RegExp("[,()]");var Ic=class extends $B{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&$T.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&$T.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${s}.${e}`),this}match(t){return Object.entries(t).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},FB=class{constructor(t,{headers:e={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=r,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:r}=e??{},i=n?"HEAD":"GET";let s=!1;const o=(t??"*").split("").map(h=>/\s/.test(h)&&!s?"":(h==='"'&&(s=!s),h)).join(""),{url:c,headers:f}=this.cloneRequestState();return c.searchParams.set("select",o),r&&f.append("Prefer",`count=${r}
36`),new Ic({method:i,url:c,headers:f,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(t,{count:e,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:o}=this.cloneRequestState();if(e&&o.append("Prefer",`count=${e}`),n||o.append("Prefer","missing=default"),Array.isArray(t)){const c=t.reduce((f,h)=>f.concat(Object.keys(h)),[]);if(c.length>0){const f=[...new Set(c)].map(h=>`"${h}"`);s.searchParams.set("columns",f.join(","))}}return new Ic({method:i,url:s,headers:o,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const o="POST",{url:c,headers:f}=this.cloneRequestState();if(f.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&c.searchParams.set("on_conflict",e),r&&f.append("Prefer",`count=${r}`),i||f.append("Prefer","missing=default"),Array.isArray(t)){const h=t.reduce((p,g)=>p.concat(Object.keys(g)),[]);if(h.length>0){const p=[...new Set(h)].map(g=>`"${g}"`);c.searchParams.set("columns",p.join(","))}}
36return new Ic({method:o,url:c,headers:f,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}update(t,{count:e}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Ic({method:r,url:i,headers:s,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:t}={}){var e;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new Ic({method:n,url:r,headers:i,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit})}};function Hf(t){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hf(t)}function qB(t,e){if(Hf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function HB(t){var e=qB(t,"string");return Hf(e)=="symbol"?e:e+""}function GB(t,e,n){return(e=HB(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function FT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Yp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?FT(Object(n),!0).forEach(function(r){GB(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var VB=class n5{constructor(e,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:o=8e3}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const c=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(f,h)=>{const p=new AbortController,g=setTimeout(()=>p.abort(),s),x=h?.signal;if(x){if(x.aborted)return clearTimeout(g),c(f,h);const v=()=>{clearTimeout(g),p.abort()};return x.addEventListener("abort",v,{once:!0}),c(f,Yp(Yp({},h),{},{signal:p.signal})).finally(()=>{clearTimeout(g),x.removeEventListener("abort",v)})}return c(f,Yp(Yp({},h),{},{signal:p.signal})).finally(()=>clearTimeout(g))}:this.fetch=c}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new FB(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(e){return new n5(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(e,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let c;const f=new URL(`${this.url}/rpc/${e}`);let h;const p=v=>v!==null&&typeof v=="object"&&(!Array.isArray(v)||v.some(p)),g=r&&Object.values(n).some(p);g?(c="POST",h=n):r||i?(c=r?"HEAD":"GET",Object.entries(n).filter(([v,w])=>w!==void 0).map(([v,w])=>[v,Array.isArray(w)?`{${w.join(",")}}`:`${w}`]).forEach(([v,w])=>{f.searchParams.append(v,w)})):(c="POST",h=n);const x=new Headers(this.headers);return g?x.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&x.set("Prefer",`count=${s}`),new Ic({method:c,url:f,headers:x,schema:this.schemaName,body:h,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class KB{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.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,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 37import ws from "ws" 38new 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 e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 39 40Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}
40const YB="2.97.0",WB=`realtime-js/${YB}`,XB="1.0.0",r5="2.0.0",qT=r5,G_=1e4,JB=1e3,QB=100;var gl;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(gl||(gl={}));var nr;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(nr||(nr={}));var _a;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(_a||(_a={}));var V_;(function(t){t.websocket="websocket"})(V_||(V_={}));var mo;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(mo||(mo={}));class ZB{constructor(e){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=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,r;const i=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(e){var n,r;const i=(r=(n=e.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(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,n,r){var i,s;const o=e.topic,c=(i=e.ref)!==null&&i!==void 0?i:"",f=(s=e.join_ref)!==null&&s!==void 0?s:"",h=e.payload.event,p=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},g=Object.keys(p).length===0?"":JSON.stringify(p);if(f.length>255)throw new Error(`joinRef length ${f.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`ref length ${c.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`userEvent length ${h.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const x=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+c.length+o.length+h.length+g.length,v=new ArrayBuffer(this.HEADER_LENGTH+x);let w=new DataView(v),_=0;w.setUint8(_++,this.KINDS.userBroadcastPush),w.setUint8(_++,f.length),w.setUint8(_++,c.length),w.setUint8(_++,o.length),w.setUint8(_++,h.length),w.setUint8(_++,g.length),w.setUint8(_++,n),Array.from(f,E=>w.setUint8(_++,E.charCodeAt(0))),Array.from(c,E=>w.setUint8(_++,E.charCodeAt(0))),Array.from(o,E=>w.setUint8(_++,E.charCodeAt(0))),Array.from(h,E=>w.setUint8(_++,E.charCodeAt(0))),Array.from(g,E=>w.setUint8(_++,E.charCodeAt(0)));var S=new Uint8Array(v.byteLength+r.byteLength);return S.set(new Uint8Array(v),0),S.set(new Uint8Array(r),v.byteLength),S.buffer}decode(e,n){if(this._isArrayBuffer(e)){let r=this._binaryDecode(e);return n(r)}if(typeof e=="string"){const r=JSON.parse(e),[i,s,o,c,f]=r;return n({join_ref:i,ref:s,topic:o,event:c,payload:f})}return n({})}_binaryDecode(e){const n=new DataView(e),r=n.getUint8(0),i=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,n,i)}_decodeUserBroadcast(e,n,r){const i=n.getUint8(1),s=n.getUint8(2),o=n.getUint8(3),c=n.getUint8(4);let f=this.HEADER_LENGTH+4;const h=r.decode(e.slice(f,f+i));f=f+i;const p=r.decode(e.slice(f,f+s));f=f+s;const g=r.decode(e.slice(f,f+o));f=f+o;const x=e.slice(f,e.byteLength),v=c===this.JSON_ENCODING?JSON.parse(r.decode(x)):x,w={type:this.BROADCAST_EVENT,event:p,payload:v};return o>0&&(w.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:h,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([r])=>n.includes(r)))}}class i5{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,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 ln;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
40srange="tsrange",t.tstzrange="tstzrange"})(ln||(ln={}));const HT=(t,e,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((s,o)=>(s[o]=e$(o,t,e,i),s),{}):{}},e$=(t,e,n,r)=>{const i=e.find(c=>c.name===t),s=i?.type,o=n[t];return s&&!r.includes(s)?a5(s,o):K_(o)},a5=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return i$(e,n)}switch(t){case ln.bool:return t$(e);case ln.float4:case ln.float8:case ln.int2:case ln.int4:case ln.int8:case ln.numeric:case ln.oid:return n$(e);case ln.json:case ln.jsonb:return r$(e);case ln.timestamp:return a$(e);case ln.abstime:case ln.date:case ln.daterange:case ln.int4range:case ln.int8range:case ln.money:case ln.reltime:case ln.text:case ln.time:case ln.timestamptz:case ln.timetz:case ln.tsrange:case ln.tstzrange:return K_(e);default:return K_(e)}},K_=t=>t,t$=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},n$=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},r$=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},i$=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let s;const o=t.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(c=>a5(e,c))}return t},a$=t=>typeof t=="string"?t.replace(" ","T"):t,s5=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class B0{constructor(e,n,r={},i=G_){this.channel=e,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(e){this.timeout=e,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(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,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:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var GT;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(GT||(GT={}));class xf{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=n?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:s,onLeave:o,onSync:c}=this.caller;this.joinRef=this.channel._joinRef(),this.state=xf.syncState(this.state,i,s,o),this.pendingDiffs.forEach(f=>{this.state=xf.syncDiff(this.state,f,s,o)}),this.pendingDiffs=[],c()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:c}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=xf.syncDiff(this.state,i,s,o),c())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,i){const s=this.cloneDeep(e),o=this.transformState(n),c={},f={};return this.map(s,(h,p)=>{o[h]||(f[h]=p)}),this.map(o,(h,p)=>{const g=s[h];if(g){const x=p.map(S=>S.presence_ref),v=g.map(S=>S.presence_ref),w=p.filter(S=>v.indexOf(S.presence_ref)<0),_=g.filter(S=>x.indexOf(S.presence_ref)<0);w.length>0&&(c[h]=w),_.length>0&&(f[h]=_)}else c[h]=p}),this.syncDiff(s,{joins:c,leaves:f},r,i)}static syncDiff(e,n,r,i){const{joins:s,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(c,f)=>{var h;const p=(h=e[c])!==null&&h!==void 0?h:[];if(e[c]=this.cloneDeep(f),p.length>0){const g=e[c].map(v=>v.presence_ref),x=p.filter(v=>g.indexOf(v.presence_ref)<0);e[c].unshift(...x)}r(c,p,f)}),this.map(o,(c,f)=>{let h=e[c];if(!h)return;const p=f.map(g=>g.presence_ref);h=h.filter(g=>p.indexOf(g.presence_ref)<0),e[c]=h,i(c,h,f),h.length===0&&delete e[c]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const i=e[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var VT;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELET
40E="DELETE"})(VT||(VT={}));var bf;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(bf||(bf={}));var _s;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(_s||(_s={}));class Vc{constructor(e,n={config:{}},r){var i,s;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=nr.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.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 B0(this,_a.join,this.params,this.timeout),this.rejoinTimer=new i5(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=nr.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=nr.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=nr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=nr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=nr.errored,this.rejoinTimer.scheduleTimeout())}),this._on(_a.reply,{},(o,c)=>{this._trigger(this._replyEventName(c),o)}),this.presence=new xf(this),this.broadcastEndpointURL=s5(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==nr.closed){const{config:{broadcast:o,presence:c,private:f}}=this.params,h=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(v=>v.filter))!==null&&i!==void 0?i:[],p=!!this.bindings[bf.PRESENCE]&&this.bindings[bf.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,g={},x={broadcast:o,presence:Object.assign(Object.assign({},c),{enabled:p}),postgres_changes:h,private:f};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(v=>e?.(_s.CHANNEL_ERROR,v)),this._onClose(()=>e?.(_s.CLOSED)),this.updateJoinPayload(Object.assign({config:x},g)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:v})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),v===void 0){e?.(_s.SUBSCRIBED);return}else{const _=this.bindings.postgres_changes,S=(w=_?.length)!==null&&w!==void 0?w:0,E=[];for(let N=0;N<S;N++){const k=_[N],{filter:{event:R,schema:D,table:O,filter:T}}=k,L=v&&v[N];if(L&&L.event===R&&Vc.isFilterValueEqual(L.schema,D)&&Vc.isFilterValueEqual(L.table,O)&&Vc.isFilterValueEqual(L.filter,T))E.push(Object.assign(Object.assign({},k),{id:L.id}));else{this.unsubscribe(),this.state=nr.errored,e?.(_s.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=E,e&&e(_s.SUBSCRIBED);return}}).receive("error",v=>{this.state=nr.errored,e?.(_s.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(v).join(", ")||"error")))}).receive("timeout",()=>{e?.(_s.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===nr.joined&&e===bf.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(e,n,r)}async httpSend(e,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},c=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(c.status===202)return{success:!0};let f=c.statusText;
40try{const h=await c.json();f=h.error||h.message||f}catch{}return Promise.reject(new Error(f))}async send(e,n={}){var r,i;if(!this._canPush()&&e.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:s,payload:o}=e,c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const f={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,f,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=h.body)===null||i===void 0?void 0:i.cancel()),h.ok?"ok":"error"}catch(h){return h.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,c,f;const h=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((f=(c=(o=this.params)===null||o===void 0?void 0:o.config)===null||c===void 0?void 0:c.broadcast)===null||f===void 0)&&f.ack)&&s("ok"),h.receive("ok",()=>s("ok")),h.receive("error",()=>s("error")),h.receive("timeout",()=>s("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=nr.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(_a.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new B0(this,_a.leave,{},e),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?.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=nr.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new B0(this,e,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>QB){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var i,s;const o=e.toLocaleLowerCase(),{close:c,error:f,leave:h,join:p}=_a;if(r&&[c,f,h,p].indexOf(o)>=0&&r!==this._joinRef())return;let x=this._onMessage(o,n,r);if(n&&!x)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(v=>{var w,_,S;return((w=v.filter)===null||w===void 0?void 0:w.event)==="*"||((S=(_=v.filter)===null||_===void 0?void 0:_.event)===null||S===void 0?void 0:S.toLocaleLowerCase())===o}).map(v=>v.callback(x,r)):(s=this.bindings[o])===null||s===void 0||s.filter(v=>{var w,_,S,E,N,k;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in v){const R=v.id,D=(w=v.filter)===null||w===void 0?void 0:w.event;return R&&((_=n.ids)===null||_===void 0?void 0:_.includes(R))&&(D==="*"||D?.toLocaleLowerCase()===((S=n.data)===null||S===void 0?void 0:S.type.toLocaleLowerCase()))}else{const R=(N=(E=v?.filter)===null||E===void 0?void 0:E.event)===null||N===void 0?void 0:N.toLocaleLowerCase();return R==="*"||R===((k=n?.event)===null||k===void 0?void 0:k.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===o}).map(v=>{if(typeof x=="object"&&"ids"in x){const w=x.data,{schema:_,table:S,commit_timestamp:E,type:N,errors:k}=w;x=Object.assign(Object.assign({},{schema:_,table:S,commit_timestamp:E,eventType:N,new:{},old:{},errors:k}),this._getPayloadRecords(w))}v.callback(x,r)})}_isClosed(){return this.state===nr.closed}_isJoined(){return this.state===nr.joined}_isJoining(){return this.state===nr.joining}_isLeaving(){return this.state===nr.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const i=e.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Vc.isEqual(i.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(_a.close,{},e)}_onError(e){this._on(_a.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=nr.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=HT(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=HT(e.columns,e.old_record)),n}}const $0=()=>{},Wp={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},s$=[1e3,2e3,5e3,1e4],l$=1e4,o$=` 41 addEventListener("message", (e) => { 42 if (e.data.event === "start") { 43 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 44 } 45 });`;class c${constructor(e,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=G_,this.transport=null,this.heartbeatIntervalMs=Wp.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=$0,this.ref=0,this.reconnectTimer=null,this.vsn=qT,this.logger=$0,this.conn=null,this.sendBuffer=[],this.serializer
45=new ZB,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?(...s)=>i(...s):(...s)=>fetch(...s),!(!((r=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=`${e}/${V_.websocket}`,this.httpEndpoint=s5(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(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=KB.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n} 46 47To use Realtime in Node.js, you need to provide a WebSocket implementation: 48 49Option 1: Use Node.js 22+ which has native WebSocket support 50Option 2: Install and provide the "ws" package: 51 52 npm install ws 53 54 import ws from "ws" 55 const client = new RealtimeClient(url, { 56 ...options, 57 transport: ws 58 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,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"&&(e?this.conn.close(e,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case gl.connecting:return mo.Connecting;case gl.open:return mo.Open;case gl.closing:return mo.Closing;default:return mo.Closed}}isConnected(){return this.connectionState()===mo.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Vc(`realtime:${e}`,n,this);return this.channels.push(s),s}}push(e){const{topic:n,event:r,payload:i,ref:s}=e,o=()=>{this.encode(e,c=>{var f;(f=this.conn)===null||f===void 0||f.send(c)})};this.log("push",`${n} ${r} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;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,(e=this.conn)===null||e===void 0||e.close(JB,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Wp.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(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
580&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const h=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",h)}catch(p){this.log("error","error in heartbeat callback",p)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:i,payload:s,ref:o}=n,c=o?`(${o})`:"",f=s.status||"";this.log("receive",`${f} ${r} ${i} ${c}`.trim(),s),this.channels.filter(h=>h._isMember(r)).forEach(h=>h._trigger(i,s,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="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=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===gl.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===gl.open||this.conn.readyState===gl.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}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(e=>e.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 e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),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(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(e=>e._trigger(_a.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${e}${r}${i}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([o$],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n,r=!1;if(e)n=e,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
58h(i=>{const s={access_token:n,version:WB};n&&i.updateJoinPayload(s),i.joinedOnce&&i._isJoined()&&i._push(_a.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new i5(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Wp.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,i,s,o,c,f,h,p,g,x,v;switch(this.transport=(n=e?.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e?.timeout)!==null&&r!==void 0?r:G_,this.heartbeatIntervalMs=(i=e?.heartbeatIntervalMs)!==null&&i!==void 0?i:Wp.HEARTBEAT_INTERVAL,this.worker=(s=e?.worker)!==null&&s!==void 0?s:!1,this.accessToken=(o=e?.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(c=e?.heartbeatCallback)!==null&&c!==void 0?c:$0,this.vsn=(f=e?.vsn)!==null&&f!==void 0?f:qT,e?.params&&(this.params=e.params),e?.logger&&(this.logger=e.logger),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(h=e?.reconnectAfterMs)!==null&&h!==void 0?h:(w=>s$[w-1]||l$),this.vsn){case XB:this.encode=(p=e?.encode)!==null&&p!==void 0?p:((w,_)=>_(JSON.stringify(w))),this.decode=(g=e?.decode)!==null&&g!==void 0?g:((w,_)=>_(JSON.parse(w)));break;case r5:this.encode=(x=e?.encode)!==null&&x!==void 0?x:this.serializer.encode.bind(this.serializer),this.decode=(v=e?.decode)!==null&&v!==void 0?v:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e?.workerUrl}}}var Gf=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function u$(t,e,n){const r=new URL(e,t);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function d$(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function f$(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const c=u$(t.baseUrl,r,i),f=await d$(t.auth),h=await e(c,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...f,...o},body:s?JSON.stringify(s):void 0}),p=await h.text(),g=(h.headers.get("content-type")||"").includes("application/json"),x=g&&p?JSON.parse(p):p;if(!h.ok){const v=g?x:void 0,w=v?.error;throw new Gf(w?.message??`Request failed with status ${h.status}`,{status:h.status,icebergType:w?.type,icebergCode:w?.code,details:v})}return{status:h.status,headers:h.headers,data:x}}}}function Xp(t){return t.join("�")}var h$=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Xp(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Xp(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Xp(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Xp(t.namespace)}`}),!0}catch(e){if(e instanceof Gf&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof Gf&&n.status===409)return;throw n}}};function Sc(t){return t.join("�")}var p$=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sc(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Sc(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Sc(t.namespace)}
58/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Sc(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sc(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Sc(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof Gf&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof Gf&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},m$=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=f$({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new h$(this.client,e),this.tableOps=new p$(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}},jg=class extends Error{constructor(t,e="storage",n,r){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Ng(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Jp=class extends jg{constructor(t,e,n,r="storage"){super(t,r,e,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},l5=class extends jg{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};const g$=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),y$=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Y_=t=>{if(Array.isArray(t))return t.map(n=>Y_(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));e[i]=Y_(r)}),e},v$=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function Vf(t){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vf(t)}function x$(t,e){if(Vf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function b$(t){var e=x$(t,"string");return Vf(e)=="symbol"?e:e+""}function _$(t,e,n){return(e=b$(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
58e%2?KT(Object(n),!0).forEach(function(r){_$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const YT=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},w$=async(t,e,n,r)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!n?.noResolveJson){const i=t,s=i.status||500;if(typeof i.json=="function")i.json().then(o=>{const c=o?.statusCode||o?.code||s+"";e(new Jp(YT(o),s,c,r))}).catch(()=>{if(r==="vectors"){const o=s+"";e(new Jp(i.statusText||`HTTP ${s} error`,s,o,r))}else{const o=s+"";e(new Jp(i.statusText||`HTTP ${s} error`,s,o,r))}});else{const o=s+"";e(new Jp(i.statusText||`HTTP ${s} error`,s,o,r))}}else e(new l5(YT(t),t,r))},S$=(t,e,n,r)=>{const i={method:t,headers:e?.headers||{}};return t==="GET"||t==="HEAD"||!r?Qe(Qe({},i),n):(y$(r)?(i.headers=Qe({"Content-Type":"application/json"},e?.headers),i.body=JSON.stringify(r)):i.body=r,e?.duplex&&(i.duplex=e.duplex),Qe(Qe({},i),n))};async function Od(t,e,n,r,i,s,o){return new Promise((c,f)=>{t(n,S$(e,r,i,s)).then(h=>{if(!h.ok)throw h;if(r?.noResolveJson)return h;if(o==="vectors"){const p=h.headers.get("content-type");if(h.headers.get("content-length")==="0"||h.status===204)return{};if(!p||!p.includes("application/json"))return{}}return h.json()}).then(h=>c(h)).catch(h=>w$(h,f,r,o))})}function o5(t="storage"){return{get:async(e,n,r,i)=>Od(e,"GET",n,r,i,void 0,t),post:async(e,n,r,i,s)=>Od(e,"POST",n,i,s,r,t),put:async(e,n,r,i,s)=>Od(e,"PUT",n,i,s,r,t),head:async(e,n,r,i)=>Od(e,"HEAD",n,Qe(Qe({},r),{},{noResolveJson:!0}),i,void 0,t),remove:async(e,n,r,i,s)=>Od(e,"DELETE",n,i,s,r,t)}}const E$=o5("storage"),{get:Kf,post:ba,put:W_,head:j$,remove:g1}=E$,Di=o5("vectors");var Su=class{constructor(t,e={},n,r="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.fetch=g$(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=Qe(Qe({},this.headers),{},{[t]:e}),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ng(n))return{data:null,error:n};throw n}}},N$=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ng(e))return{data:null,error:e};throw e}}};let c5;c5=Symbol.toStringTag;var T$=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[c5]="BlobDownloadBuilder",this.promise=null}asStream(){return new N$(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ng(e))return{data:null,error:e};throw e}}};const k$={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},WT={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var A$=class extends Su{constructor(t,e={},n,r){super(t,e,r,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,r){var i=this;return i.handleOperation(async()=>{let s;const o=Qe(Qe({},WT),r);let c=Qe(Qe({},i.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const f=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),f&&s.append("metadata",i.encodeMetadata(f)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),f&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(f))):(s=n,c["cache-control"]=`max-age=${o.cacheControl}`,c["content-type"]=o.contentType,f&&(c["x-metadata"]=i.toBase64(i.encodeMetadata(f))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),r?.headers&&(c=Qe(Qe({},c),r.headers));const h=i._removeEmptyFolders(e),p=i._getFinalPath(h),g=await(t=="PUT"?W_:ba)(i.fetch,`${i.url}/object/${p}`,s,Qe({headers:c},o?.duplex?{duplex:o.duplex}:{}));return{path:h,id:g.Id,fullPath:g.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,r){var i=this;const s=i._removeEmptyFolders(t),o=i._getFinalPath(s),c=new URL(i.url+`/object/upload/sign/${o}`);return c.searchParams.set("token",e),i.handleOperation(async()=>{let f;const h=Qe({upsert:WT.upsert},r),p=Qe(Qe({},i.headers),{"x-upsert":String(h.upsert)});return typeof Blob<"u"&&n instanceof Blob?(f=new FormData,f.append("cacheControl",h.cacheControl),f.append("",n)):typeof FormData<"u"&&n instanceof FormData?(f=n,f.append("cacheControl",h.cacheControl)):(f=n,p["cache-control"]=`max-age=${h.cacheControl}`,p["content-type"]=h.contentType),{path:s,fullPath:(await W_(i.fetch,c.toString(),f,{headers:p})).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(t);const i=Qe({},n.headers);e?.upsert&&(i["x-upsert"]="true");const s=await ba(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+s.url),c=o.searchParams.get("token");if(!c)throw new jg("No token returned by API");return{signedUrl:o.toString(),path:t,token:c}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var r=this;return r.handleOperation(async()=>await ba(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:r.headers}))}async copy(t,e,n){var r=this;return r.handleOperation(async()=>({path:(await ba(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(t,e,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(t),s=await ba(r.fetch,`${r.url}/object/sign/${i}
58`,Qe({expiresIn:e},n?.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n?.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${s.signedURL}${o}`)}})}async createSignedUrls(t,e,n){var r=this;return r.handleOperation(async()=>{const i=await ba(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:e,paths:t},{headers:r.headers}),s=n?.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(o=>Qe(Qe({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${s}`):null}))})}download(t,e,n){const r=typeof e?.transform<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString(e?.transform||{}),s=i?`?${i}`:"",o=this._getFinalPath(t),c=()=>Kf(this.fetch,`${this.url}/${r}/${o}${s}`,{headers:this.headers,noResolveJson:!0},n);return new T$(c,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>Y_(await Kf(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await j$(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Ng(r)&&r instanceof l5){const i=r.originalError;if([400,404].includes(i?.status))return{data:!1,error:r}}throw r}}getPublicUrl(t,e){const n=this._getFinalPath(t),r=[],i=e?.download?`download=${e.download===!0?"":e.download}`:"";i!==""&&r.push(i);const s=typeof e?.transform<"u"?"render/image":"object",o=this.transformOptsToQueryString(e?.transform||{});o!==""&&r.push(o);let c=r.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${c}`)}}}async remove(t){var e=this;return e.handleOperation(async()=>await g1(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var r=this;return r.handleOperation(async()=>{const i=Qe(Qe(Qe({},k$),e),{},{prefix:t||""});return await ba(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const r=Qe({},t);return await ba(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const O$="2.97.0",sh={"X-Client-Info":`storage-js/${O$}`};var R$=class extends Su{constructor(t,e={},n,r){const i=new URL(t);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=Qe(Qe({},sh),e);super(s,o,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await Kf(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Kf(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await ba(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await W_(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await ba(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await g1(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},C$=class extends Su{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=Qe(Qe({},sh),e);super(r,i,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await ba(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;t?.limit!==void 0&&n.set("limit",t.limit.toString()),t?.offset!==void 0&&n.set("offset",t.offset.toString()),t?.sortColumn&&n.set("sortColumn",t.sortColumn),t?.sortOrder&&n.set("sortOrder",t.sortOrder),t?.search&&n.set("search",t.search);const r=n.toString(),i=r?`${e.url}/bucket?${r}`:`${e.url}/bucket`;return await Kf(e.fetch,i,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await g1(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!v$(t))throw new jg("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 m$({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}
58),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...c)=>{try{return{data:await o.apply(i,c),error:null}}catch(f){if(r)throw f;return{data:null,error:f}}}}})}},D$=class extends Su{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=Qe(Qe({},sh),{},{"Content-Type":"application/json"},e);super(r,i,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await Di.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await Di.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},L$=class extends Su{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=Qe(Qe({},sh),{},{"Content-Type":"application/json"},e);super(r,i,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},P$=class extends Su{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=Qe(Qe({},sh),{},{"Content-Type":"application/json"},e);super(r,i,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Di.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},M$=class extends P${constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new I$(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},I$=class extends D${constructor(t,e,n,r){super(t,e,r),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new z$(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},z$=class extends L${constructor(t,e,n,r,i){super(t,e,i),this.vectorBucketName=n,this.indexName=r}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,Qe(Qe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},U$=class extends R${constructor(t,e={},n,r){super(t,e,n,r)}from(t){return new A$(this.url,this.headers,t,this.fetch)}get vectors(){return new M$(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new C$(this.url+"/iceberg",this.headers,this.fetch)}};
58const u5="2.97.0",zc=30*1e3,X_=3,F0=X_*zc,B$="http://localhost:9999",$$="supabase.auth.token",F$={"X-Client-Info":`gotrue-js/${u5}`},J_="X-Supabase-Api-Version",d5={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},q$=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,H$=600*1e3;class Yf extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Me(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class G$ extends Yf{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function V$(t){return Me(t)&&t.name==="AuthApiError"}class go extends Yf{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Ms extends Yf{constructor(e,n,r,i){super(e,r,i),this.name=n,this.status=r}}class wi extends Ms{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function q0(t){return Me(t)&&t.name==="AuthSessionMissingError"}class Ec extends Ms{constructor(){super("Auth session or user missing","AuthInvalidToken
58ResponseError",500,void 0)}}class Qp extends Ms{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Zp extends Ms{constructor(e,n=null){super(e,"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 K$(t){return Me(t)&&t.name==="AuthImplicitGrantRedirectError"}class XT extends Ms{constructor(e,n=null){super(e,"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 Y$ extends Ms{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 Q_ extends Ms{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function H0(t){return Me(t)&&t.name==="AuthRetryableFetchError"}class JT extends Ms{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Z_ extends Ms{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const sg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),QT=` 59\r=`.split(""),W$=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<QT.length;e+=1)t[QT[e].charCodeAt(0)]=-2;for(let e=0;e<sg.length;e+=1)t[sg[e].charCodeAt(0)]=e;return t})();function ZT(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(sg[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(sg[r]),e.queuedBits-=6}}function f5(t,e,n){const r=W$[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function ek(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{Q$(o,r,n)};for(let o=0;o<t.length;o+=1)f5(t.charCodeAt(o),i,s);return e.join("")}function X$(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function J$(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}X$(r,e)}}function Q$(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if((t>>7-r&1)===0){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function tu(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};for(let i=0;i<t.length;i+=1)f5(t.charCodeAt(i),n,r);return new Uint8Array(e)}function Z$(t){const e=[];return J$(t,n=>e.push(n)),new Uint8Array(e)}function bo(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};return t.forEach(i=>ZT(i,n,r)),ZT(null,n,r),e.join("")}function eF(t){return Math.round(Date.now()/1e3)+t}function tF(){return Symbol("auth-callback")}const gr=()=>typeof window<"u"&&typeof document<"u",ao={tested:!1,writable:!1},h5=()=>{if(!gr())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ao.tested)return ao.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),ao.tested=!0,ao.writable=!0}catch{ao.tested=!0,ao.writable=!1}return ao.writable};function nF(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
59h((i,s)=>{e[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{e[i]=r}),e}const p5=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),rF=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Uc=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},so=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},mr=async(t,e)=>{await t.removeItem(e)};class Tg{constructor(){this.promise=new Tg.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Tg.promiseConstructor=Promise;function em(t){const e=t.split(".");if(e.length!==3)throw new Z_("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!q$.test(e[r]))throw new Z_("JWT not in base64url format");return{header:JSON.parse(ek(e[0])),payload:JSON.parse(ek(e[1])),signature:tu(e[2]),raw:{header:e[0],payload:e[1]}}}async function iF(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function aF(t,e){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await t(s);if(!e(s,null,o)){r(o);return}}catch(o){if(!e(s,o)){i(o);return}}})()})}function sF(t){return("0"+t.toString(16)).substr(-2)}function lF(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(e),Array.from(e,sF).join("")}async function oF(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function cF(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await oF(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function jc(t,e,n=!1){const r=lF();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await Uc(t,`${e}-code-verifier`,i);const s=await cF(r);return[s,r===s?"plain":"s256"]}const uF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function dF(t){const e=t.headers.get(J_);if(!e||!e.match(uF))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function fF(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function hF(t){switch(t){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 pF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Nc(t){if(!pF.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function G0(){const t={};return new Proxy(t,{get:(e,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:(e,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:(e,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 mF(t,e){return new Proxy(t,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!e.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."),e.value=!0),Reflect.get(n,r,i)}})}function tk(t){return JSON.parse(JSON.stringify(t))}const ho=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),gF=[502,503,504];async function nk(t){var e;if(!rF(t))throw new Q_(ho(t),0);if(gF.includes(t.status))throw new Q_(ho(t),t.status);let n;try{n=await t.json()}catch(s){throw new go(ho(s),s)}let r;const i=dF(t);if(i&&i.getTime()>=d5["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 JT(ho(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new wi}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((s,o)=>
59s&&typeof o=="string",!0))throw new JT(ho(n),t.status,n.weak_password.reasons);throw new G$(ho(n),t.status||500,r)}const yF=(t,e,n,r)=>{const i={method:t,headers:e?.headers||{}};return t==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function Ze(t,e,n,r){var i;const s=Object.assign({},r?.headers);s[J_]||(s[J_]=d5["2024-01-01"].name),r?.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r?.query)!==null&&i!==void 0?i:{};r?.redirectTo&&(o.redirect_to=r.redirectTo);const c=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",f=await vF(t,e,n+c,{headers:s,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(f):{data:Object.assign({},f),error:null}}async function vF(t,e,n,r,i,s){const o=yF(e,r,i,s);let c;try{c=await t(n,Object.assign({},o))}catch(f){throw console.error(f),new Q_(ho(f),0)}if(c.ok||await nk(c),r?.noResolveJson)return c;try{return await c.json()}catch(f){await nk(f)}}function va(t){var e;let n=null;_F(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=eF(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function rk(t){const e=va(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function vl(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function xF(t){return{data:t,error:null}}function bF(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=t,o=ah(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),c={action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},f=Object.assign({},o);return{data:{properties:c,user:f},error:null}}function ik(t){return t}function _F(t){return t.access_token&&t.refresh_token&&t.expires_in}const V0=["global","local","others"];class wF{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=p5(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(e,n=V0[0]){if(V0.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${V0.join(", ")}`);try{return await Ze(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Me(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await Ze(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:vl})}catch(r){if(Me(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=ah(e,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r?.newEmail,delete i.newEmail),await Ze(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:bF,redirectTo:n?.redirectTo})}catch(n){if(Me(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await Ze(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:vl})}catch(n){if(Me(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,i,s,o,c,f;try{const h={nextPage:null,lastPage:0,total:0},p=await Ze(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=e?.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:ik});if(p.error)throw p.error;const g=await p.json(),x=(o=p.headers.get("x-total-count"))!==null&&o!==void 0?o:0,v=(f=(c=p.headers.get("link"))===null||c===void 0?void 0:c.split(","))!==null&&f!==void 0?f:[];return v.length>0&&(v.forEach(w=>{const _=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),S=JSON.parse(w.split(";")[1].split("=")[1]);h[`${S}Page`]=_}),h.total=parseInt(x)),{data:Object.assign(Object.assign({},g),h),error:null}}catch(h){if(Me(h))return{data:{users:[]},error:h};throw h}}async getUserById(e){Nc(e);try{return await Ze(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:vl})}catch(n){if(Me(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Nc(e);try{return await Ze(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:vl})}catch(r){if(Me(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Nc(e);
59try{return await Ze(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:vl})}catch(r){if(Me(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Nc(e.userId);try{const{data:n,error:r}=await Ze(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(Me(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Nc(e.userId),Nc(e.id);try{return{data:await Ze(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(Me(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,i,s,o,c,f;try{const h={nextPage:null,lastPage:0,total:0},p=await Ze(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=e?.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:ik});if(p.error)throw p.error;const g=await p.json(),x=(o=p.headers.get("x-total-count"))!==null&&o!==void 0?o:0,v=(f=(c=p.headers.get("link"))===null||c===void 0?void 0:c.split(","))!==null&&f!==void 0?f:[];return v.length>0&&(v.forEach(w=>{const _=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),S=JSON.parse(w.split(";")[1].split("=")[1]);h[`${S}Page`]=_}),h.total=parseInt(x)),{data:Object.assign(Object.assign({},g),h),error:null}}catch(h){if(Me(h))return{data:{clients:[]},error:h};throw h}}async _createOAuthClient(e){try{return await Ze(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Me(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await Ze(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Me(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await Ze(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Me(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await Ze(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Me(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await Ze(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Me(n))return{data:null,error:n};throw n}}}function ak(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const Tc={debug:!!(globalThis&&h5()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class m5 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class sk extends m5{}async function SF(t,e,n){Tc.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;e>0&&setTimeout(()=>{r.abort(),Tc.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){Tc.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,i.name);try{return await n()}finally{Tc.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,i.name)}}else{if(e===0)throw Tc.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new sk(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Tc.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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()}})}catch(i){throw i?.name==="AbortError"?new sk(`Acquiring an exclusive Navigator LockManager lock "${t}" timed out waiting ${e}ms`):i}}function EF(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function g5(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}
59" is invalid.`);return t.toLowerCase()}function jF(t){return parseInt(t,16)}function NF(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function TF(t){var e;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:c,requestId:f,resources:h,scheme:p,uri:g,version:x}=t;{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(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(x!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${x}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 60`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const v=g5(t.address),w=p?`${p}://${r}`:r,_=t.statement?`${t.statement} 61`:"",S=`${w} wants you to sign in with your Ethereum account: 62${v} 63 64${_}`;let E=`URI: ${g} 65Version: ${x} 66Chain ID: ${n}${o?` 67Nonce: ${o}`:""} 68Issued At: ${s.toISOString()}`;if(i&&(E+=` 69Expiration Time: ${i.toISOString()}`),c&&(E+=` 70Not Before: ${c.toISOString()}`),f&&(E+=` 71Request ID: ${f}`),h){let N=` 72Resources:`;for(const k of h){if(!k||typeof k!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${k}`);N+=` 73- ${k}`}E+=N}return`${S} 74${E}`}
74class Kn extends Error{constructor({message:e,code:n,cause:r,name:i}){var s;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class lg extends Kn{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function kF({error:t,options:e}){var n,r,i;const{publicKey:s}=e;if(!s)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Kn({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Kn({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Kn({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Kn({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Kn({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Kn({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return s.pubKeyCredParams.filter(c=>c.type==="public-key").length===0?new Kn({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Kn({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(y5(o)){if(s.rp.id!==o)return new Kn({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Kn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Kn({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Kn({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Kn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function AF({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Kn({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Kn({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(y5(r)){if(n.rpId!==r)return new Kn({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Kn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Kn({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Kn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class OF{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const RF=new OF;function CF(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:r}=t,i=ah(t,["challenge","user","excludeCredentials"]),s=tu(e).buffer,o=Object.assign(Object.assign({},n),{id:tu(n.id).buffer}),c=Object.assign(Object.assign({},i),{challenge:s,user:o});if(r&&r.length>0){c.excludeCredentials=new Array(r.length);for(let f=0;f<r.length;f++){const h=r[f];c.excludeCredentials[f]=Object.assign(Object.assign({},h),{id:tu(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return c}function DF(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,r=ah(t,["challenge","allowCredentials"]),i=tu(e).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const c=n[o];s.allowCredentials[o]=Object.assign(Object.assign({}
74,c),{id:tu(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return s}function LF(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:bo(new Uint8Array(t.response.attestationObject)),clientDataJSON:bo(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function PF(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),i=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:bo(new Uint8Array(i.authenticatorData)),clientDataJSON:bo(new Uint8Array(i.clientDataJSON)),signature:bo(new Uint8Array(i.signature)),userHandle:i.userHandle?bo(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function y5(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function lk(){var t,e;return!!(gr()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function MF(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new lg("Browser returned unexpected credential type",e)}:{data:null,error:new lg("Empty credential response",e)}}catch(e){return{data:null,error:kF({error:e,options:t})}}}async function IF(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new lg("Browser returned unexpected credential type",e)}:{data:null,error:new lg("Empty credential response",e)}}catch(e){return{data:null,error:AF({error:e,options:t})}}}const zF={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},UF={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function og(...t){const e=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of t)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(e(o)){const c=r[s];e(c)?r[s]=og(c,o):r[s]=og(o)}else r[s]=o}return r}function BF(t,e){return og(zF,t,e||{})}function $F(t,e){return og(UF,t,e||{})}class FF{constructor(e){this.client=e,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(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:r,signal:i},s){var o;try{const{data:c,error:f}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!c)return{data:null,error:f};const h=i??RF.createNewAbortSignal();if(c.webauthn.type==="create"){const{user:p}=c.webauthn.credential_options.publicKey;if(!p.name){const g=r;if(g)p.name=`${p.id}:${g}`;else{const v=(await this.client.getUser()).data.user,w=((o=v?.user_metadata)===null||o===void 0?void 0:o.name)||v?.email||v?.id||"User";p.name=`${p.id}:${w}`}}p.displayName||(p.displayName=p.name)}switch(c.webauthn.type){case"create":{const p=BF(c.webauthn.credential_options.publicKey,s?.create),{data:g,error:x}
74=await MF({publicKey:p,signal:h});return g?{data:{factorId:e,challengeId:c.id,webauthn:{type:c.webauthn.type,credential_response:g}},error:null}:{data:null,error:x}}case"request":{const p=$F(c.webauthn.credential_options.publicKey,s?.request),{data:g,error:x}=await IF(Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:p,signal:h}));return g?{data:{factorId:e,challengeId:c.id,webauthn:{type:c.webauthn.type,credential_response:g}},error:null}:{data:null,error:x}}}}catch(c){return Me(c)?{data:null,error:c}:{data:null,error:new go("Unexpected error in challenge",c)}}}async _verify({challengeId:e,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:r})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new Yf("rpId is required for WebAuthn authentication")};try{if(!lk())return{data:null,error:new go("Browser does not support WebAuthn",null)};const{data:o,error:c}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!o)return{data:null,error:c};const{webauthn:f}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:f.type,rpId:n,rpOrigins:r,credential_response:f.credential_response}})}catch(o){return Me(o)?{data:null,error:o}:{data:null,error:new go("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new Yf("rpId is required for WebAuthn registration")};try{if(!lk())return{data:null,error:new go("Browser does not support WebAuthn",null)};const{data:o,error:c}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(p=>{var g;return(g=p.data)===null||g===void 0?void 0:g.all.find(x=>x.factor_type==="webauthn"&&x.friendly_name===e&&x.status!=="unverified")}).then(p=>p?this.client.mfa.unenroll({factorId:p?.id}):void 0),{data:null,error:c};const{data:f,error:h}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return f?this._verify({factorId:o.id,challengeId:f.challengeId,webauthn:{rpId:n,rpOrigins:r,type:f.webauthn.type,credential_response:f.webauthn.credential_response}}):{data:null,error:h}}catch(o){return Me(o)?{data:null,error:o}:{data:null,error:new go("Unexpected error in register",o)}}}}EF();const qF={url:B$,storageKey:$$,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:F$,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4,skipAutoInitialize:!1};async function ok(t,e,n){return await n()}const kc={};class Wf{get jwks(){var e,n;return(n=(e=kc[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){kc[this.storageKey]=Object.assign(Object.assign({},kc[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=kc[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){kc[this.storageKey]=Object.assign(Object.assign({},kc[this.storageKey]),{cachedAt:e})}constructor(e){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 s=Object.assign(Object.assign({},qF),e);if(this.storageKey=s.storageKey,this.instanceID=(n=Wf.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Wf.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&gr()){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=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new wF({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=p5(s.fetch),this.lock=s.lock||ok,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&gr()&&(!((r=globalThis?.navigator)===null||r===void 0)&&r.locks)?this.lock=SF:this.lock=ok,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 FF(this)}
74,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?(s.storage?this.storage=s.storage:h5()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=ak(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=ak(this.memoryStorage)),gr()&&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(c){this._debug("#broadcastChannel","error",c)}})}s.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${u5}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),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 e;try{let n={},r="none";if(gr()&&(n=nF(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),gr()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),K$(s)){const f=(e=s.details)===null||e===void 0?void 0:e.code;if(f==="identity_already_exists"||f==="identity_not_found"||f==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:o,redirectType:c}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",c),await this._saveSession(o),setTimeout(async()=>{c==="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 Me(n)?this._returnResult({error:n}):this._returnResult({error:new go("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,i;try{const s=await Ze(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e?.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=e?.options)===null||i===void 0?void 0:i.captchaToken}},xform:va}),{data:o,error:c}=s;if(c||!o)return this._returnResult({data:{user:null,session:null},error:c});const f=o.session,h=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(s){if(Me(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(e){var n,r,i;try{let s;if("email"in e){const{email:p,password:g,options:x}=e;let v=null,w=null;this.flowType==="pkce"&&([v,w]=await jc(this.storage,this.storageKey)),s=await Ze(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:x?.emailRedirectTo,body:{email:p,password:g,data:(n=x?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:x?.captchaToken},code_challenge:v,code_challenge_method:w},xform:va})}else if("phone"in e){const{phone:p,password:g,options:x}=e;s=await Ze(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:p,password:g,data:(r=x?.data)!==null&&r!==void 0?r:{},channel:(i=x?.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:x?.captchaToken}},xform:va})}else throw new Qp("You must provide either an email or phone number and a password");const{data:o,error:c}=s;if(c||!o)return await mr(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:c});const f=o.session,h=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(s){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(e){try{let n;if("email"in e){const{email:s,password:o,options:c}=e;n=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:rk})}else if("phone"in e){const{phone:s,password:o,options:c}=e;n=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:rk})}else throw new Qp("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 s=new Ec;return this._returnResult({data:{user:null,session:null},error:s})}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(Me(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,r,i,s;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=e.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=e.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,i,s,o,c,f,h,p,g,x;let v,w;if("message"in e)v=e.message,w=e.signature;else{const{chain:_,wallet:S,statement:E,options:N}=e;let k;if(gr())if(typeof S=="object")k=S;else{const M=window;if("ethereum"in M&&typeof M.ethereum=="object"&&"request"in M.ethereum&&typeof M.ethereum.request=="function")k=M.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 S!="object"||!N?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=S}const R=new URL((n=N?.url)!==null&&n!==void 0?n:window.location.href),D=await k.request({method:"eth_requestAccounts"}).then(M=>M).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!D||D.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const O=g5(D[0]);let T=(r=N?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const M=await k.request({method:"eth_chainId"});T=jF(M)}const L={domain:R.host,address:O,statement:E,uri:R.href,version:"1",chainId:T,nonce:(i=N?.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=N?.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(c=N?.signInWithEthereum)===null||c===void 0?void 0:c.expirationTime,notBefore:(f=N?.signInWithEthereum)===null||f===void 0?void 0:f.notBefore,requestId:(h=N?.signInWithEthereum)===null||h===void 0?void 0:h.requestId,resources:(p=N?.signInWithEthereum)===null||p===void 0?void 0:p.resources};v=TF(L),w=await k.request({method:"personal_sign",params:[NF(v),O]})}try{const{data:_,error:S}=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:v,signature:w},!((g=e.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(x=e.options)===null||x===void 0?void 0:x.captchaToken}}:null),xform:va});if(S)throw S;if(!_||!_.session||!_.user){const E=new Ec;return this._returnResult({data:{user:null,session:null},error:E})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:S})}catch(_){if(Me(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async signInWithSolana(e){var n,r,i,s,o,c,f,h,p,g,x,v;let w,_;if("message"in e)w=e.message,_=e.signature;else{const{chain:S,wallet:E,statement:N,options:k}=e;let R;if(gr())if(typeof E=="object")R=E;else{const O=window;if("solana"in O&&typeof O.solana=="object"&&("signIn"in O.solana&&typeof O.solana.signIn=="function"||"signMessage"in O.solana&&typeof O.solana.signMessage=="function"))R=O.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 E!="object"||!k?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");R=E}const D=new URL((n=k?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in R&&R.signIn){const O=await R.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},k?.signInWithSolana),{version:"1",domain:D.host,uri:D.href}),N?{statement:N}:null));let T;if(Array.isArray(O)&&O[0]&&typeof O[0]=="object")T=O[0];else if(O&&typeof O=="object"&&"signedMessage"in O&&"signature"in O)T=O;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)w=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),_=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in R)||typeof R.signMessage!="function"||!("publicKey"in R)||typeof R!="object"||!R.publicKey||!("toBase58"in R.publicKey)||typeof R.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${D.host} wants you to sign in with your Solana account:`,R.publicKey.toBase58(),...N?["",N,""]:[""],"Version: 1",`URI: ${D.href}`,`Issued At: ${(i=(r=k?.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=k?.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${k.signInWithSolana.notBefore}`]:[],...!((o=k?.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${k.signInWithSolana.expirationTime}`]:[],...!((c=k?.signInWithSolana)===null||c===void 0)&&c.chainId?[`Chain ID: ${k.signInWithSolana.chainId}`]:[],...!((f=k?.signInWithSolana)===null||f===void 0)&&f.nonce?[`Nonce: ${k.signInWithSolana.nonce}`]:[],...!((h=k?.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${
74k.signInWithSolana.requestId}`]:[],...!((g=(p=k?.signInWithSolana)===null||p===void 0?void 0:p.resources)===null||g===void 0)&&g.length?["Resources",...k.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` 75`);const O=await R.signMessage(new TextEncoder().encode(w),"utf8");if(!O||!(O instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");_=O}}try{const{data:S,error:E}=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:bo(_)},!((x=e.options)===null||x===void 0)&&x.captchaToken?{gotrue_meta_security:{captcha_token:(v=e.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:va});if(E)throw E;if(!S||!S.session||!S.user){const N=new Ec;return this._returnResult({data:{user:null,session:null},error:N})}return S.session&&(await this._saveSession(S.session),await this._notifyAllSubscribers("SIGNED_IN",S.session)),this._returnResult({data:Object.assign({},S),error:E})}catch(S){if(Me(S))return this._returnResult({data:{user:null,session:null},error:S});throw S}}async _exchangeCodeForSession(e){const n=await so(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new Y$;const{data:s,error:o}=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:va});if(await mr(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const c=new Ec;return this._returnResult({data:{user:null,session:null,redirectType:null},error:c})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(e){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=e,c=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:va}),{data:f,error:h}=c;if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!f||!f.session||!f.user){const p=new Ec;return this._returnResult({data:{user:null,session:null},error:p})}return f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("SIGNED_IN",f.session)),this._returnResult({data:f,error:h})}catch(n){if(Me(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,r,i,s,o;try{if("email"in e){const{email:c,options:f}=e;let h=null,p=null;this.flowType==="pkce"&&([h,p]=await jc(this.storage,this.storageKey));const{error:g}=await Ze(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:c,data:(n=f?.data)!==null&&n!==void 0?n:{},create_user:(r=f?.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},code_challenge:h,code_challenge_method:p},redirectTo:f?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in e){const{phone:c,options:f}=e,{data:h,error:p}=await Ze(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:c,data:(i=f?.data)!==null&&i!==void 0?i:{},create_user:(s=f?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},channel:(o=f?.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:h?.message_id},error:p})}throw new Qp("You must provide either an email or phone number.")}catch(c){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async verifyOtp(e){var n,r;try{let i,s;"options"in e&&(i=(n=e.options)===null||n===void 0?void 0:n.redirectTo,s=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:c}=await Ze(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:va});if(c)throw c;if(!o)throw new Error("An error occurred on token verification.");const f=o.session,h=o.user;return f?.access_token&&(await this._saveSession(f),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(i){if(Me(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(e){var n,r,i,s,o;try{let c=null,f=null;this.flowType==="pkce"&&([c,f]=await jc(this.storage,this.storageKey));const h=await Ze(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=e?.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:c,code_challenge_method:f}),headers:this.headers,xform:xF});return!((s=h.data)===null||s===void 0)&&s.url&&gr()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(h.data.url),this._returnResult(h)}catch(c){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(c))return this._returnResult({data:null,error:c});throw c}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new wi;const{error:i}=await Ze(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(e){if(Me(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:i,options:s}=e,{error:o}=await Ze(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s?.captchaToken}},redirectTo:s?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in e){const{phone:r,type:i,options:s}=e,{data:o,error:c}=await Ze(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o?.message_id},error:c})}throw new Qp("You must provide either an email or phone number and a type")}catch(n){if(Me(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(e,n){this._debug("#_acquireLock","begin",e);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}`,e,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(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(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 e=null;const n=await so(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
75id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<F0:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await so(this.userStorage,this.storageKey+"-user");o?.user?e.user=o.user:e.user=G0()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=mF(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await Ze(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:vl}):await this._useSession(async n=>{var r,i,s;const{data:o,error:c}=n;if(c)throw c;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new wi}:await Ze(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:vl})})}catch(n){if(Me(n))return q0(n)&&(await this._removeSession(),await mr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new wi;const o=i.session;let c=null,f=null;this.flowType==="pkce"&&e.email!=null&&([c,f]=await jc(this.storage,this.storageKey));const{data:h,error:p}=await Ze(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:c,code_challenge_method:f}),jwt:o.access_token,xform:vl});if(p)throw p;return o.user=h.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new wi;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=em(e.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{data:c,error:f}=await this._callRefreshToken(e.refresh_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!c)return{data:{user:null,session:null},error:null};s=c}else{const{data:c,error:f}=await this._getUser(e.access_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});s={access_token:e.access_token,refresh_token:e.refresh_token,user:c.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(Me(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:c}=n;if(c)throw c;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!e?.refresh_token)throw new wi;const{data:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(Me(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}
75async _getSessionFromURL(e,n){try{if(!gr())throw new Zp("No browser detected.");if(e.error||e.error_description||e.error_code)throw new Zp(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new XT("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Zp("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new XT("No code detected.");const{data:N,error:k}=await this._exchangeCodeForSession(e.code);if(k)throw k;const R=new URL(window.location.href);return R.searchParams.delete("code"),window.history.replaceState(window.history.state,"",R.toString()),{data:{session:N.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:c,expires_at:f,token_type:h}=e;if(!s||!c||!o||!h)throw new Zp("No session defined in URL");const p=Math.round(Date.now()/1e3),g=parseInt(c);let x=p+g;f&&(x=parseInt(f));const v=x-p;v*1e3<=zc&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${g}s`);const w=x-g;p-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,x,p):p-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,x,p);const{data:_,error:S}=await this._getUser(s);if(S)throw S;const E={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:g,expires_at:x,refresh_token:o,token_type:h,user:_.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:E,redirectType:e.type},error:null})}catch(r){if(Me(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await so(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s&&!q0(s))return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:c}=await this.admin.signOut(o,e);if(c&&!(V$(c)&&(c.status===404||c.status===401||c.status===403)||q0(c)))return this._returnResult({error:c})}return e!=="others"&&(await this._removeSession(),await mr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=tF(),r={id:n,callback:e,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(e){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",e,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(e))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",s),console.error(s)}})}async resetPasswordForEmail(e,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await jc(this.storage,this.storageKey,!0));try{return await Ze(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,c,f,h,p;const{data:g,error:x}=s;
75if(x)throw x;const v=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(c=e.options)===null||c===void 0?void 0:c.scopes,queryParams:(f=e.options)===null||f===void 0?void 0:f.queryParams,skipBrowserRedirect:!0});return await Ze(this.fetch,"GET",v,{headers:this.headers,jwt:(p=(h=g.session)===null||h===void 0?void 0:h.access_token)!==null&&p!==void 0?p:void 0})});if(i)throw i;return gr()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r?.url),this._returnResult({data:{provider:e.provider,url:r?.url},error:null})}catch(r){if(Me(r))return this._returnResult({data:{provider:e.provider,url:null},error:r});throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;if(i)throw i;const{options:o,provider:c,token:f,access_token:h,nonce:p}=e,g=await Ze(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s?.access_token)!==null&&r!==void 0?r:void 0,body:{provider:c,id_token:f,access_token:h,nonce:p,link_identity:!0,gotrue_meta_security:{captcha_token:o?.captchaToken}},xform:va}),{data:x,error:v}=g;return v?this._returnResult({data:{user:null,session:null},error:v}):!x||!x.session||!x.user?this._returnResult({data:{user:null,session:null},error:new Ec}):(x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("USER_UPDATED",x.session)),this._returnResult({data:x,error:v}))}catch(i){if(await mr(this.storage,`${this.storageKey}-code-verifier`),Me(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await Ze(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await aF(async i=>(i>0&&await iF(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await Ze(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:va})),(i,s)=>{const o=200*Math.pow(2,i);return s&&H0(s)&&Date.now()+o-r<zc})}catch(r){if(this._debug(n,"error",r),Me(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),gr()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await so(this.storage,this.storageKey);if(i&&this.userStorage){let o=await so(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Uc(this.userStorage,this.storageKey+"-user",o)),i.user=(e=o?.user)!==null&&e!==void 0?e:G0()}else if(i&&!i.user&&!i.user){const o=await so(this.storage,this.storageKey+"-user");o&&o?.user?(i.user=o.user,await mr(this.storage,this.storageKey+"-user"),await Uc(this.storage,this.storageKey,i)):i.user=G0()}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 s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<F0;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${F0}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);
75o&&(console.error(o),H0(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:c}=await this._getUser(i.access_token);!c&&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(e){var n,r;if(!e)throw new wi;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Tg;const{data:s,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!s.session)throw new wi;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const c={data:s.session,error:null};return this.refreshingDeferred.resolve(c),c}catch(s){if(this._debug(i,"error",s),Me(s)){const o={data:null,error:s};return H0(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(e,n,r=!0){const i=`#_notifyAllSubscribers(${e})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async c=>{try{await c.callback(e,n)}catch(f){s.push(f)}});if(await Promise.all(o),s.length>0){for(let c=0;c<s.length;c+=1)console.error(s[c]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await mr(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Uc(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=tk(i);await Uc(this.storage,this.storageKey,s)}else{const i=tk(n);await Uc(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await mr(this.storage,this.storageKey),await mr(this.storage,this.storageKey+"-code-verifier"),await mr(this.storage,this.storageKey+"-user"),this.userStorage&&await mr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&gr()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),zc);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);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 e=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-e)/zc);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${zc}ms, refresh threshold is ${X_} ticks`),i<=X_&&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(e){if(e.isAcquireTimeout||e instanceof m5)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!gr()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
75await 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(e,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r?.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r?.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await jc(this.storage,this.storageKey),c=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(c.toString())}if(r?.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r?.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${i.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await Ze(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=i?.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)return this._returnResult({data:null,error:o});const c=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:f,error:h}=await Ze(this.fetch,"POST",`${this.url}/factors`,{body:c,headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token});return h?this._returnResult({data:null,error:h}):(e.factorType==="totp"&&f.type==="totp"&&(!((i=f?.totp)===null||i===void 0)&&i.qr_code)&&(f.totp.qr_code=`data:image/svg+xml;utf-8,${f.totp.qr_code}`),this._returnResult({data:f,error:null}))})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?LF(e.webauthn.credential_response):PF(e.webauthn.credential_response)})}:{code:e.code}),{data:c,error:f}=await Ze(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i?.session)===null||r===void 0?void 0:r.access_token});return f?this._returnResult({data:null,error:f}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:f}))})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await Ze(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(r=i?.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:c}=o;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:CF(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:DF(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(e=n?.factors)!==null&&e!==void 0?e:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,r,i,s;if(e)try{const{payload:v}=em(e);let w=null;v.aal&&(w=v.aal);let _=w;const{data:{user:S},error:E}=await this.getUser(e);if(E)return this._returnResult({data:null,error:E});((r=(n=S?.factors)===null||n===void 0?void 0:n.filter(R=>R.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(_="aal2");const k=v.amr||[];return{data:{currentLevel:w,nextLevel:_,currentAuthenticationMethods:k},error:null}}catch(v){if(Me(v))return this._returnResult({data:null,error:v});throw v}const{data:{session:o},error:c}
75=await this.getSession();if(c)return this._returnResult({data:null,error:c});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:f}=em(o.access_token);let h=null;f.aal&&(h=f.aal);let p=h;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(v=>v.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(p="aal2");const x=f.amr||[];return{data:{currentLevel:h,nextLevel:p,currentAuthenticationMethods:x},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await Ze(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new wi})})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new wi});const o=await Ze(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:c=>({data:c,error:null})});return o.data&&o.data.redirect_url&&gr()&&!n?.skipBrowserRedirect&&window.location.assign(o.data.redirect_url),o})}catch(r){if(Me(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new wi});const o=await Ze(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:c=>({data:c,error:null})});return o.data&&o.data.redirect_url&&gr()&&!n?.skipBrowserRedirect&&window.location.assign(o.data.redirect_url),o})}catch(r){if(Me(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;return r?this._returnResult({data:null,error:r}):n?await Ze(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 wi})})}catch(e){if(Me(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await Ze(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new wi})})}catch(n){if(Me(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(c=>c.kid===e);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(c=>c.kid===e),r&&this.jwks_cached_at+H$>i)return r;const{data:s,error:o}=await Ze(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(c=>c.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:v,error:w}
75=await this.getSession();if(w||!v.session)return this._returnResult({data:null,error:w});r=v.session.access_token}const{header:i,payload:s,signature:o,raw:{header:c,payload:f}}=em(r);n?.allowExpired||fF(s.exp);const h=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!h){const{error:v}=await this.getUser(r);if(v)throw v;return{data:{claims:s,header:i,signature:o},error:null}}const p=hF(i.alg),g=await crypto.subtle.importKey("jwk",h,p,!0,["verify"]);if(!await crypto.subtle.verify(p,g,o,Z$(`${c}.${f}`)))throw new Z_("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(Me(r))return this._returnResult({data:null,error:r});throw r}}}Wf.nextInstanceID={};const HF=Wf,GF="2.97.0";let Qd="";typeof Deno<"u"?Qd="deno":typeof document<"u"?Qd="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Qd="react-native":Qd="node";const VF={"X-Client-Info":`supabase-js-${Qd}/${GF}`},KF={headers:VF},YF={schema:"public"},WF={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},XF={};function Xf(t){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xf(t)}function JF(t,e){if(Xf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Xf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QF(t){var e=JF(t,"string");return Xf(e)=="symbol"?e:e+""}function ZF(t,e,n){return(e=QF(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ck(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ck(Object(n),!0).forEach(function(r){ZF(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ck(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const eq=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),tq=()=>Headers,nq=(t,e,n)=>{const r=eq(n),i=tq();return async(s,o)=>{var c;const f=(c=await e())!==null&&c!==void 0?c:t;let h=new i(o?.headers);return h.has("apikey")||h.set("apikey",t),h.has("Authorization")||h.set("Authorization",`Bearer ${f}`),r(s,Cn(Cn({},o),{},{headers:h}))}};function rq(t){return t.endsWith("/")?t:t+"/"}function iq(t,e){var n,r;const{db:i,auth:s,realtime:o,global:c}=t,{db:f,auth:h,realtime:p,global:g}=e,x={db:Cn(Cn({},f),i),auth:Cn(Cn({},h),s),realtime:Cn(Cn({},p),o),storage:{},global:Cn(Cn(Cn({},g),c),{},{headers:Cn(Cn({},(n=g?.headers)!==null&&n!==void 0?n:{}),(r=c?.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return t.accessToken?x.accessToken=t.accessToken:delete x.accessToken,x}function aq(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(rq(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var sq=class extends HF{constructor(t){super(t)}},lq=class{constructor(t,e,n){var r,i;this.supabaseUrl=t,this.supabaseKey=e;const s=aq(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,c={db:YF,realtime:XF,auth:Cn(Cn({},WF),{},{storageKey:o}),global:KF},f=iq(n??{},c);if(this.storageKey=(r=f.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=f.global.headers)!==null&&i!==void 0?i:{},f.accessToken)this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(p,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var h;this.auth=this._initSupabaseAuthClient((h=f.auth)!==null&&h!==void 0?h:{},this.headers,f.global.fetch)}this.fetch=nq(e,this._getAccessToken.bind(this),f.global.fetch),this.realtime=this._initRealtimeClient(Cn({headers:this.headers,accessToken:this._getAccessToken.bind(this)},f.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(p=>this.realtime.setAuth(p)).catch(p=>console.warn("Failed to set initial Realtime auth token:",p)),this.rest=new VB(new URL("rest/v1",s).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch,timeout:f.db.timeout,urlLengthLimit:f.db.urlLengthLimit}),this.storage=new U$(this.storageUrl.href,this.headers,this.fetch,n?.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new zB(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:r}=await t.auth.getSession();
75return(e=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:o,lock:c,debug:f,throwOnError:h},p,g){const x={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new sq({url:this.authUrl.href,headers:Cn(Cn({},x),p),storageKey:s,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:c,debug:f,throwOnError:h,fetch:g,hasCustomAuthorizationHeader:Object.keys(this.headers).some(v=>v.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new c$(this.realtimeUrl.href,Cn(Cn({},t),{},{params:Cn(Cn({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const oq=(t,e,n)=>new lq(t,e,n);function cq(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}cq()&&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 uq="https://vofuxtomijabhrxtovrq.supabase.co",dq="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZvZnV4dG9taWphYmhyeHRvdnJxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzE0NDYyMzMsImV4cCI6MjA4NzAyMjIzM30.2hN6h5L6K5bEtA9zCoEa5DozqsiNH-VVj7PgBzhyeSE",uk=oq(uq,dq),fq=()=>{const[t,e]=$.useState({full_name:"",practice_name:"",locations:"",pms:"",marketing_spend:"",email:"",consent:!1}),[n,r]=$.useState("idle"),[i,s]=$.useState(""),o=[{name:"AI-Integrated Operating System",detail:"The core intelligence driving your practice growth."},{name:"CRM",detail:"Track, manage and watch SmileFlow AI automate your patient acquisition."},{name:"Task Tracking",detail:"SmileFlow AI assigns your office staff tasks and ensures no patient ever gets left behind."},{name:"Revenue Attribution Tracking",detail:"Know exactly where every dollar of production comes from."},{name:"Real-time Patient Tracking",detail:"Monitor patient journeys throughout your entire ecosystem."},{name:"Automated Schedule Optimization",detail:"AI fills gaps and prioritizes high-value procedures."},{name:"Agentic Social Media Asset Creation",detail:"We live in the era where AI creates better content than humans. Don't pay more for lower quality."},{name:"AI Created Websites",detail:"Gorgeous, bespoke websites in minutes, not months."},{name:"Website Chatbot",detail:"Automate patient engagement, even while you sleep."},{name:"Email & SMS Marketing",detail:"End-to-end patient engagement, from the first click."},{name:"Automated Retention Deployment",detail:"LTV maximization through machine-learned follow-ups."},{name:"Unlimited Patient Profiles",detail:"Scale your practice without worrying about data limits."},{name:"Priority Support & Strategy",detail:"Direct line to our practice growth engineers."}
75,{name:"All Future Upgrades",detail:"You'll never pay more for new features or modules."}];$.useEffect(()=>{window.scrollTo(0,0)},[]);const c=h=>{const{name:p,value:g,type:x,checked:v}=h.target;e(w=>({...w,[p]:x==="checkbox"?v:g}))},f=async h=>{if(h.preventDefault(),!t.consent){s("Please accept the notification consent.");return}r("loading"),s("");try{if(!uk)throw new Error("Database service is currently unavailable. Please contact support.");const{error:p}=await uk.from("founder-notification").insert([{full_name:t.full_name,practice_name:t.practice_name,locations:t.locations,pms:t.pms,marketing_spend:t.marketing_spend,email:t.email,consent:t.consent}]);if(p)throw p;r("success")}catch(p){console.error("Error submitting form:",p),r("error"),s(p.message||"Something went wrong. Please try again later.")}};return n==="success"?d.jsxs("div",{className:"pt-40 pb-20 px-6 md:px-16 max-w-4xl mx-auto flex flex-col items-center text-center",children:[d.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center text-green-600 mb-8 animate-bounce",children:d.jsx(Bi,{size:40})}),d.jsx("h1",{className:"font-heading font-bold text-4xl md:text-6xl text-primary mb-6 tracking-tighter",children:"Application Received"}),d.jsx("p",{className:"font-sans text-xl text-primary/60 max-w-lg mb-12",children:"Once submitted, our team will review your application for clinical and technical compatibility and reach out within 24 hours."}),d.jsxs(Nt,{to:"/",className:"bg-primary text-white px-8 py-4 rounded-2xl font-bold hover:bg-accent transition-colors flex items-center gap-2",children:["Back to Home ",d.jsx(Gr,{size:18})]})]}):d.jsxs("div",{className:"pt-40 pb-20 px-6 md:px-16 max-w-4xl mx-auto",children:[d.jsxs("div",{className:"flex flex-col items-center text-center mb-16",children:[d.jsxs("div",{className:"flex items-center gap-2 bg-accent/10 border border-accent/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx(kr,{size:14,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] md:text-xs font-bold text-accent tracking-wider uppercase",children:"90-Day Zero Cost Pilot Program"})]}),d.jsx("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary mb-6 tracking-tighter",children:"Drive More Leads. Convert More Patients. Retain Them Longer."}),d.jsx("p",{className:"font-sans text-xl text-primary/60 max-w-2xl font-medium",children:"We are selecting 3 high-growth DSOs and practices to join our exclusive 90-day pilot. Experience the full power of SmileFlow AIâintegrated with your PMSâat zero cost for three months."})]}),d.jsxs("div",{className:"max-w-xl mx-auto",children:[d.jsxs("form",{onSubmit:f,className:"bg-white rounded-[2.5rem] border border-primary/5 shadow-2xl p-8 md:p-12 space-y-6",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block font-sans text-sm font-bold text-primary/40 uppercase tracking-widest mb-2 ml-1",children:"Full Name"}),d.jsxs("div",{className:"relative",children:[d.jsx(p1,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary/20",size:20}),d.jsx("input",{required:!0,type:"text",name:"full_name",value:t.full_name,onChange:c,placeholder:"Dr. Jane Smith",className:"w-full bg-primary/[0.02] border border-primary/5 rounded-2xl py-4 pl-12 pr-4 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-all font-sans font-medium"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-sans text-sm font-bold text-primary/40 uppercase tracking-widest mb-2 ml-1",children:"Practice/DSO Name"}),d.jsx("div",{className:"relative",children:d.jsx("input",{required:!0,type:"text",name:"practice_name",value:t.practice_name,onChange:c,placeholder:"Studio Smile",className:"w-full bg-primary/[0.02] border border-primary/5 rounded-2xl py-4 px-4 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-all font-sans font-medium"})})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-sans text-sm font-bold text-primary/40 uppercase tracking-widest mb-2 ml-1",children:"Number of Locations"}),d.jsxs("div",{className:"relative",children:[d.jsxs("select",{required:!0,name:"locations",value:t.locations,onChange:c,className:"w-full bg-primary/[0.02] border border-primary/5 rounded-2xl py-4 px-4 pr-10 focus:outline-none focus:ring-2 focus:ring-accent/20 focu
75s:border-accent transition-all font-sans font-medium appearance-none",children:[d.jsx("option",{value:"",disabled:!0,children:"Select Locations"}),d.jsx("option",{value:"500+",children:"500+"}),d.jsx("option",{value:"100-500",children:"100-500"}),d.jsx("option",{value:"50-100",children:"50-100"}),d.jsx("option",{value:"10-50",children:"10-50"}),d.jsx("option",{value:"1-10",children:"1-10"})]}),d.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none text-primary/30",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:d.jsx("path",{d:"m6 9 6 6 6-6"})})})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-sans text-sm font-bold text-primary/40 uppercase tracking-widest mb-2 ml-1",children:"Current PMS"}),d.jsxs("div",{className:"relative",children:[d.jsxs("select",{required:!0,name:"pms",value:t.pms,onChange:c,className:"w-full bg-primary/[0.02] border border-primary/5 rounded-2xl py-4 px-4 pr-10 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-all font-sans font-medium appearance-none",children:[d.jsx("option",{value:"",disabled:!0,children:"Select PMS"}),d.jsx("option",{value:"Dentrix",children:"Dentrix"}),d.jsx("option",{value:"Open Dental",children:"Open Dental"}),d.jsx("option",{value:"Eaglesoft",children:"Eaglesoft"}),d.jsx("option",{value:"Other",children:"Other"})]}),d.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none text-primary/30",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:d.jsx("path",{d:"m6 9 6 6 6-6"})})})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-sans text-sm font-bold text-primary/40 uppercase tracking-widest mb-2 ml-1",children:"Monthly Marketing Spend (Approximate)"}),d.jsx("div",{className:"relative",children:d.jsx("input",{required:!0,type:"text",name:"marketing_spend",value:t.marketing_spend,onChange:c,placeholder:"e.g. $5,000",className:"w-full bg-primary/[0.02] border border-primary/5 rounded-2xl py-4 px-4 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-all font-sans font-medium"})})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-sans text-sm font-bold text-primary/40 uppercase tracking-widest mb-2 ml-1",children:"Email Address"}),d.jsxs("div",{className:"relative",children:[d.jsx(h1,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-primary/20",size:20}),d.jsx("input",{required:!0,type:"email",name:"email",value:t.email,onChange:c,placeholder:"[email protected]",className:"w-full bg-primary/[0.02] border border-primary/5 rounded-2xl py-4 pl-12 pr-4 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-all font-sans font-medium"})]})]}),d.jsx("div",{className:"pt-4",children:d.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[d.jsx("input",{type:"checkbox",name:"consent",checked:t.consent,onChange:c,className:"mt-1 w-5 h-5 rounded border-primary/10 text-accent focus:ring-accent/20 transition-all cursor-pointer"}),d.jsx("span",{className:"font-sans text-sm text-primary/60 leading-relaxed font-medium group-hover:text-primary transition-colors",children:"I give permission to be contacted regarding my pilot application and SmileFlow OS updates."})]})}),i&&d.jsxs("div",{className:"p-4 bg-red-50 text-red-600 rounded-xl text-sm font-bold border border-red-100 flex items-center gap-2",children:[d.jsx(vf,{size:16})," ",i]}),d.jsxs("button",{type:"submit",disabled:n==="loading",className:`w-full bg-accent text-white py-5 rounded-2xl text-lg font-bold shadow-xl shadow-accent/20 transition-all flex items-center justify-center gap-3 ${n==="loading"?"opacity-70 cursor-not-allowed":"hover:bg-primary hover:scale-[1.02] active:scale-[0.98]"}`,children:[n==="loading"?"Submitting...":"Apply Now"," ",d.jsx(Gr,{size:20})]})]}),d.jsx("p",{className:"mt-8 text-center font-sans text-sm text-primary/30 font-medium",children:'By clicking "Apply Now", you agree to our Terms of Service and Privacy Policy.'})]}),d.jsxs("div",{className:"mt-32 w-full mx-auto",children:[d.jsx("div",{className:"text-center mb-16",children:d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-6xl tracking-tight text-primary mb-4",children:"Complete protocol."})}),d.jsx("div",{className:"overflow-hidden bg-white rounded-[2rem] border border-primary/5 shadow-sm",children:d.jsx("div",{className:"grid grid-cols-1 divide-y divide-primary/5",children:o.map((h,p)=>d.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between p-6 md:p-8 hover:bg-primary/[0.02] transition-colors group",children:[d.jsxs("div",{className:"flex flex-col gap-1 mb-4 md:mb-0",children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary flex items-center gap-3",children:h.name}),d.jsx("p",{className:"font-sans text-sm text-primary/70 font-medium",children:h.detail})]}),d.jsxs("div",{className:"flex items-center gap-3 text-green-500 font-sans font-bold",children:[d.jsx("span",{className:"text-xs tracking-wider up
75percase hidden md:inline",children:"Included"}),d.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-green-500 flex items-center justify-center text-white shadow-sm ring-4 ring-green-100",children:d.jsx(xo,{size:18,strokeWidth:3})})]})]},p))})})]})]})},tm=[{name:"Dentrix",src:"/images/pms-logos/dentrix_logo.svg"},{name:"Open Dental",src:"/images/pms-logos/opendental_logo.svg"},{name:"Eaglesoft",src:"/images/pms-logos/eaglesoft_logo2.png"},{name:"Denticon",src:"/images/pms-logos/denticon_logo.svg"},{name:"Athenahealth",src:"/images/pms-logos/athenahealth_logo.svg"},{name:"Curve Dental",src:"/images/pms-logos/curvedental_logo.svg"},{name:"Modmed",src:"/images/pms-logos/modmed_logo.svg"},{name:"Cloud 9 Software",src:"/images/pms-logos/cloud9software_logo.svg"},{name:"Dolphin",src:"/images/pms-logos/dolphin_logo.png"},{name:"Sensei",src:"/images/pms-logos/sensei_logo.png"},{name:"Carestream",src:"/images/pms-logos/carestream_logo.png"},{name:"eClinicalWorks",src:"/images/pms-logos/e_clinicalworks_logo.svg"},{name:"Nextgen",src:"/images/pms-logos/nextgen_logo.svg"},{name:"Dental4Web",src:"/images/pms-logos/Dental4Web-Logo-PNG-300x72.png"},{name:"Core Practice",src:"/images/pms-logos/[email protected]"}],v5=({variant:t="default"})=>{const e=$.useRef(null),n=t==="compact";return $.useEffect(()=>{const r=e.current.scrollWidth,i=Ue.to(e.current,{x:`-${r/2}px`,duration:n?25:35,ease:"none",repeat:-1});return()=>i.kill()},[n]),n?d.jsxs("div",{className:"relative w-full max-w-[400px] overflow-hidden",children:[d.jsx("div",{className:"absolute inset-y-0 left-0 w-12 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),d.jsx("div",{className:"absolute inset-y-0 right-0 w-12 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),d.jsx("div",{className:"flex whitespace-nowrap overflow-hidden py-4",children:d.jsx("div",{ref:e,className:"flex gap-8 items-center",children:[...tm,...tm].map((r,i)=>d.jsx("div",{className:"flex-shrink-0 flex items-center justify-center grayscale opacity-30 hover:grayscale-0 hover:opacity-100 transition-all duration-500 px-2",children:d.jsx("img",{src:r.src,alt:r.name,className:"h-5 w-auto object-contain max-w-[100px]"})},i))})})]}):d.jsxs("section",{className:"py-20 md:py-32 bg-background relative overflow-hidden",children:[d.jsx("div",{className:"max-w-7xl mx-auto px-6 mb-12 text-center",children:d.jsx("h2",{className:"font-heading font-medium text-lg md:text-xl text-primary/70 uppercase tracking-[0.2em]",children:"Integrates directly with your Practice Management System"})}),d.jsxs("div",{className:"relative w-full",children:[d.jsx("div",{className:"absolute inset-y-0 left-0 w-32 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),d.jsx("div",{className:"absolute inset-y-0 right-0 w-32 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),d.jsx("div",{className:"flex whitespace-nowrap overflow-hidden py-10",children:d.jsx("div",{ref:e,className:"flex gap-16 md:gap-24 items-center",children:[...tm,...tm].map((r,i)=>d.jsx("div",{className:"flex-shrink-0 flex items-center justify-center grayscale opacity-30 hover:grayscale-0 hover:opacity-100 transition-all duration-700 cursor-default px-4",children:d.jsx("img",{src:r.src,alt:r.name,className:"h-7 md:h-10 w-auto object-contain max-w-[160px]"})},i))})})]})]})};Ue.registerPlugin(nt);const hq=({title:t,description:e,badge:n,icon:r,image:i,renderVisual:s,isPlaceholder:o})=>{const c=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(c.current,{y:50,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:c.current,start:"top 85%",toggleActions:"play none none none"}})},[]),d.jsx("div",{ref:c,className:"group relative bg-white rounded-[2rem] border border-primary/5 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden flex flex-col h-full",children:d.jsxs("div",{className:"p-8 flex-1",children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl group-hover:scale-110 transition-transform duration-500",children:d.jsx(r,{size:24})}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-accent tracking-widest uppercase bg-accent/5 px-3 py-1 rounded-full border border-accent/10",children:n})]}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-8",children:e}),d.jsxs("div",{className:"relative rounded-2xl overflow-hidden border border-primary/5 bg-background aspect-[16/10]",children:[s?s():o?d.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-primary/20 p-8 text-center",children:[d.jsx(kr,{size:48,className:"mb-4 opacity-20"}),d.jsx("p",{className:"font-mono text-[10px] uppercase tracking-widest font-bold",children:"Visualization Coming Soon"}),d.jsxs("p",{className:"text-xs mt-2",children:["Integrating high-fidelity ",t.toLowerCase()," engine."]})]}):d.jsx("img",{src:i,alt:t,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-1000"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/5 to-transparent pointer-events-none"})]})]})})},pq=()=>{const t=$.useRef(null);$.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0}
75,{y:0,opacity:1,duration:1,ease:"power3.out"})},[]);const e=[{title:"2-Way PMS Sync",description:"Direct booking and real-time schedule openings. Bi-directional data flow ensures your practice management system is always the source of truth.",badge:"DATA PROTOCOL",icon:Va,image:"/images/integrations/pms-sync.png",isPlaceholder:!1},{title:"AI-Led Chair Optimization",description:"Automated cancellation filling and schedule density maximization. Our AI detects gaps and deploys targeted outreach to active waitlists.",badge:"LATENCY ZERO",icon:Ci,image:"/images/integrations/chair-optimization.png",isPlaceholder:!1},{title:"Marketing ROI Tracker",description:"Linking every procedure back to specific campaigns or leads. Gain absolute clarity on which marketing channels drive high-value production.",badge:"REVENUE INTEL",icon:Rr,renderVisual:()=>d.jsxs("div",{className:"w-full h-full bg-white p-6 flex flex-col gap-4",children:[d.jsxs("div",{className:"flex justify-between items-end",children:[d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-[10px] font-bold text-primary/40 uppercase tracking-tight",children:"Total Production"}),d.jsx("span",{className:"text-2xl font-bold text-primary",children:"$142,400"})]}),d.jsx("div",{className:"bg-green-500/10 text-green-600 text-[10px] font-bold px-2 py-0.5 rounded-full",children:"+24%"})]}),d.jsx("div",{className:"flex-1 flex flex-col justify-center gap-3",children:[{name:"Paid Search",value:"$64k",width:"w-[90%]",color:"bg-accent"},{name:"Social Media",value:"$42k",width:"w-[65%]",color:"bg-blue-400"},{name:"Referrals",value:"$36k",width:"w-[50%]",color:"bg-purple-400"}].map((n,r)=>d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsxs("div",{className:"flex justify-between text-[10px] font-bold text-primary/60",children:[d.jsx("span",{children:n.name}),d.jsx("span",{children:n.value})]}),d.jsx("div",{className:"h-1.5 w-full bg-primary/5 rounded-full overflow-hidden",children:d.jsx("div",{className:`h-full ${n.color} ${n.width} rounded-full`})})]},r))})]})},{title:"Live Insurance Verification",description:"Automated eligibility checks during chat or calls. Eliminate administrative friction by verifying benefits before the patient even walks in.",badge:"VERIFIED ACTIVE",icon:vf,renderVisual:()=>d.jsxs("div",{className:"w-full h-full bg-white p-6 flex flex-col gap-4",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-primary/5 pb-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/10 flex items-center justify-center text-accent font-bold text-xs",children:"JD"}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-xs font-bold text-primary",children:"John Doe"}),d.jsx("span",{className:"text-[10px] text-primary/40",children:"MetLife ⢠Delta Dental"})]})]}),d.jsxs("div",{className:"flex items-center gap-1 bg-green-500/10 text-green-600 text-[10px] font-bold px-2 py-1 rounded-lg",children:[d.jsx(Bi,{size:10})," ELIGIBLE"]})]}),d.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"Deductible",val:"$50",sub:"Met"},{label:"Annual Max",val:"$1,500",sub:"$1,240 left"},{label:"Prev/Diag",val:"100%",sub:"Covered"},{label:"Basic",val:"80%",sub:"Covered"}].map((n,r)=>d.jsxs("div",{className:"bg-primary/[0.02] p-2 rounded-xl border border-primary/5",children:[d.jsx("div",{className:"text-[9px] font-bold text-primary/40 uppercase mb-0.5",children:n.label}),d.jsx("div",{className:"text-xs font-bold text-primary",children:n.val}),d.jsx("div",{className:"text-[9px] text-primary/60",children:n.sub})]},r))})]})}];return d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsxs("div",{ref:t,className:"max-w-7xl mx-auto mb-20 flex flex-col md:flex-row md:items-end justify-between gap-8",children:[d.jsxs("div",{className:"text-center md:text-left",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent/5 border border-accent/10 px-4 py-1.5 rounded-full mb-6",children:[d.jsx(zU,{size:14,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-accent tracking-widest uppercase",children:"Deep Integration Layer"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["The PMS ",d.jsx("span",{className:"font-drama italic text-accent",children:"Nexus."})]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed",children:"SmileFlow connects directly to your practice management systems, turning raw clinical data into automated growth protocols."})]}),d.jsxs("div",{className:"flex flex-col items-center md:items-end md:pb-2",children:[d.jsxs("div",{className:"group flex items-center gap-4 bg-white border border-primary/5 px-5 py-3 rounded-2xl shadow-sm hover:shadow-md transition-all duration-300 translate-y-2",children:[d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center text-accent group-hover:bg-accent group-hover:text-white transition-colors duration-300",children:d.jsx(Va,{size:18,className:"animate-[spin_6s_linear_infinite]"})}),d.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-green-500 rounded-full border-2 border-white animate-pulse"})]}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"font-heading font-bold text-primary text-lg leading-tight",children:"470+"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-primary/40 uppercase tracking-widest text-left",children:"PMS integrations and counting"})]})]}),d.jsx("div",{className:"mt-4 w-full flex justify-center md:justify-end",children:d.jsx(v5,{variant:"compact"})})]})]}),d.jsx("div",{className:"max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-12 mb-32",children:e.map((n,r)=>d.jsx(hq,{...n},r))}),d.jsx("section",{className:"max-w-7xl mx-auto mb-32 py-24 border-t border-primary/5",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[d.jsxs("div",{children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-5xl text-primary mb-8 tracking-tight",children:["Eliminate the ",d.jsx("span",{className:"text-accent italic font-drama",children:'"Data Lag"'})," that limits your scale."]}),d.jsxs("div",{className:"space-y-6 text-lg text-primary/80 font-medium",children:[d.jsx("p",{children:"In most dental practices, clinical data is an island. Your PMS holds the schedule, but your marketing tools, patient communication, and ROI tracking are disconnected."}),d.jsx("p",{children:`This gap creates "Data Lag"âthe 24 to 48-hour delay where your front desk manually reconciles appointments, verifies insurance, and updates lead statuses. By the time you see a gap in the schedule, it's often too late to fill it.`}),d.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-primary/5 shadow-sm",children:[d.jsxs("h3",{className:"font-bold text-primary mb-2 flex items-center gap-2",children:[d.jsx(ih,{size:18,className:"text-accent","aria-hidden":"true"})," Manual Reconciliation is a Tax"]}),d.jsx("p",{className:"text-sm",children:"The average practice spends 12+ hours per week on manual data entry between systems. SmileFlow recovers that time, allowing your team to focus on patient experience rather than data janitorship."})]})]})]}),d.jsxs("div",{className:"relative aspect-square bg-accent/5 rounded-[3rem] overflow-hidden border border-accent/10 p-12 flex flex-col justify-center gap-8",children:[d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx("div",{className:"h-2 w-24 bg-accent/20 rounded-full"}),d.jsx("div",{className:"h-2 w-48 bg-accent/10 rounded-full"})]}),d.jsx("div",{className:"space-y-4",children:[{label:"Data Latency",val:"24h+",color:"text-red-400"}
75,{label:"SmileFlow Latency",val:"< 1s",color:"text-green-500"}].map((n,r)=>d.jsxs("div",{className:"flex justify-between items-center bg-white p-4 rounded-2xl shadow-sm border border-primary/5",children:[d.jsx("span",{className:"font-mono text-[10px] font-bold uppercase text-primary/40 tracking-widest",children:n.label}),d.jsx("span",{className:`font-heading font-bold text-2xl ${n.color}`,children:n.val})]},r))}),d.jsx("div",{className:"flex justify-center",children:d.jsx("div",{className:"w-16 h-16 rounded-full bg-accent flex items-center justify-center animate-pulse shadow-[0_0_30px_rgba(173,92,174,0.4)]",children:d.jsx(Ci,{className:"text-white",size:32})})})]})]})}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-32 py-24 bg-white rounded-[4rem] border border-primary/5 shadow-sm px-8 md:px-16",children:[d.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl text-primary mb-6",children:["Real-time ",d.jsx("span",{className:"text-accent",children:"2-Way API"})," Connectivity."]}),d.jsx("p",{className:"font-sans text-lg text-primary/60",children:'Standard dental software uses "connectors" that scrape files once a day. SmileFlow uses direct API protocols for instantaneous bi-directional communication.'})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[{title:"Instant Read/Write",desc:"Don't just read the schedule. SmileFlow writes new appointments directly back to Dentrix, Open Dental, or Eaglesoft the moment they are booked.",icon:Va},{title:"Clinical Accuracy",desc:"We sync procedure codes, provider IDs, and operatory assignments with 99.9% accuracy, ensuring your clinical record is never compromised.",icon:Bi},{title:"Legacy-Safe Sync",desc:"Our bridge technology is designed to work with both modern cloud engines and legacy on-premise servers without slowing down your local network.",icon:vf}].map((n,r)=>d.jsxs("div",{className:"flex flex-col items-center text-center p-6",children:[d.jsx("div",{className:"w-12 h-12 bg-accent/10 text-accent rounded-xl flex items-center justify-center mb-6",children:d.jsx(n.icon,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-xl text-primary mb-3",children:n.title}),d.jsx("p",{className:"text-sm text-primary/80 leading-relaxed font-medium",children:n.desc})]},r))})]}),d.jsx("div",{className:"max-w-7xl mx-auto pt-20 border-t border-primary/5 mb-32",children:d.jsxs("div",{className:"flex flex-col items-center md:items-start gap-4 opacity-50 contrast-75 saturate-50",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase tracking-widest font-bold",children:"Secure Sync Protocol"}),d.jsxs("div",{className:"flex items-center gap-6 md:gap-12",children:[d.jsxs("div",{className:"flex items-center gap-2 font-heading font-bold text-xl",children:[d.jsx(GU,{size:20})," SOC2"]}),d.jsxs("div",{className:"flex items-center gap-2 font-heading font-bold text-xl",children:[d.jsx(vf,{size:20})," HIPAA"]}),d.jsxs("div",{className:"flex items-center gap-2 font-heading font-bold text-xl",children:[d.jsx(mq,{size:20})," AES-256"]})]})]})})]})},mq=({size:t,className:e})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[d.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),d.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),gq=()=>($.useEffect(()=>{window.scrollTo(0,0)},[]),d.jsxs("div",{className:"pt-40 pb-20 px-6 md:px-16 max-w-5xl mx-auto",children:[d.jsx("div",{className:"flex items-center gap-3 mb-8",children:d.jsxs("div",{className:"bg-accent/10 px-4 py-1.5 rounded-full flex items-center gap-2",children:[d.jsx(kr,{size:14,className:"text-accent ring-1 ring-accent/20 rounded-full"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-accent tracking-wider uppercase",children:"Open Source"})]})}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary mb-8 tracking-tighter leading-tight",children:["Building a ",d.jsx("span",{className:"font-drama italic text-accent pr-2",children:"Better Web"})," for Everyone."]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12 mt-16",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-12 font-sans text-primary/90 leading-relaxed text-lg",children:[d.jsxs("section",{children:[d.jsxs("h2",{className:"text-3xl font-bold text-primary mb-6 flex items-center gap-3",children:[d.jsx(JD,{className:"text-accent"})," Our Commitment"]}),d.jsx("p",{className:"text-xl",children:"At SmileFlow, we believe that the internet should be accessible to everyone, regardless of their abilities. Accessibility is not just a feature or a checklist; it's a fundamental human right and a core pillar of a truly innovative digital landscape."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"Why Accessibility Matters"}),d.jsx("p",{children:"A website that isn't accessible is a website that excludes. For millions of visitors with visual, auditory, motor, or cognitive impairments, a properly built web experience is the difference between participation and isolation. We believe every pixel should be inclusive, every interaction should be intuitive, and every piece of content should be reachable."})]}),d.jsxs("section",{className:"bg-primary/5 rounded-[2rem] p-8 md:p-12 border border-primary/10",children:[d.jsxs("h2",{className:"text-2xl font-bold text-primary mb-4 flex items-center gap-3",children:[d.jsx(z0,{})," Open Source & MIT License"]}),d.jsxs("p",{className:"mb-6",children:["In our mission to improve the web, we've released our Acce
75ssibility Widget for ",d.jsx("strong",{children:"free use"})," under the ",d.jsx("strong",{children:"MIT license"}),". We believe that by providing high-quality tools to the developer community, we can collectively raise the standard for web accessibility across the entire internet."]}),d.jsxs("div",{className:"flex flex-wrap gap-4",children:[d.jsxs("a",{href:"https://github.com/SmileFlow-Steve/SmileFlow-Accessibility-Widget",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-primary text-white px-6 py-3 rounded-full font-semibold hover:bg-accent transition-colors shadow-lg shadow-primary/10",children:[d.jsx(z0,{size:18})," View on GitHub"]}),d.jsxs("a",{href:"https://accessibility.smileflow.ai/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-white text-primary border border-primary/10 px-6 py-3 rounded-full font-semibold hover:border-accent hover:text-accent transition-colors shadow-sm",children:[d.jsx(zT,{size:18})," Installation Guide"]})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-2xl font-bold text-primary mb-4",children:"Contribute to the Cause"}),d.jsx("p",{children:"We take contributions and pull requests seriously. If you're a developer or an accessibility expert, we'd love your help in making this widget even better. Whether it's fixing a bug, adding a new feature, or improving documentation, your input helps build a more inclusive web for all."})]})]}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"bg-accent/5 rounded-3xl p-8 border border-accent/10",children:[d.jsx("h3",{className:"font-heading font-bold text-primary text-xl mb-4",children:"Quick Links"}),d.jsxs("ul",{className:"space-y-4",children:[d.jsx("li",{children:d.jsxs("a",{href:"https://accessibility.smileflow.ai/",className:"flex items-center gap-2 text-primary hover:text-accent transition-colors font-medium",children:[d.jsx($f,{size:16})," Main Documentation"]})}),d.jsx("li",{children:d.jsxs("a",{href:"https://github.com/SmileFlow-Steve/SmileFlow-Accessibility-Widget",className:"flex items-center gap-2 text-primary hover:text-accent transition-colors font-medium",children:[d.jsx(z0,{size:16})," Repository"]})}),d.jsx("li",{children:d.jsxs("a",{href:"https://github.com/SmileFlow-Steve/SmileFlow-Accessibility-Widget/pulls",className:"flex items-center gap-2 text-primary hover:text-accent transition-colors font-medium",children:[d.jsx(zT,{size:16})," Pull Requests"]})})]})]}),d.jsxs("div",{className:"bg-blue-500/5 rounded-3xl p-8 border border-blue-500/10",children:[d.jsx(QD,{className:"text-blue-500 mb-4"}),d.jsx("h3",{className:"font-heading font-bold text-primary text-xl mb-2",children:"Secure & Free"}),d.jsx("p",{className:"text-sm text-primary/60",children:"Our widget is designed to be lightweight, secure, and always free. We believe in transparency and security as much as we do in accessibility."})]})]})]})]}));function x5(t,e){return function(){return t.apply(e,arguments)}}const{toString:yq}=Object.prototype,{getPrototypeOf:y1}=Object,{iterator:kg,toStringTag:b5}=Symbol,Ag=(t=>e=>{const n=yq.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Sa=t=>(t=t.toLowerCase(),e=>Ag(e)===t),Og=t=>e=>typeof e===t,{isArray:Eu}=Array,xu=Og("undefined");function lh(t){return t!==null&&!xu(t)&&t.constructor!==null&&!xu(t.constructor)&&oi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const _5=Sa("ArrayBuffer");function vq(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&_5(t.buffer),e}const xq=Og("string"),oi=Og("function"),w5=Og("number"),oh=t=>t!==null&&typeof t=="object",bq=t=>t===!0||t===!1,Nm=t=>{if(Ag(t)!=="object")return!1;const e=y1(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(b5 in t)&&!(kg in t)},_q=t=>{if(!oh(t)||lh(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},wq=Sa("Date"),Sq=Sa("File"),Eq=t=>!!(t&&typeof t.uri<"u"),jq=t=>t&&typeof t.getParts<"u",Nq=Sa("Blob"),Tq=Sa("FileList"),kq=t=>oh(t)&&oi(t.pipe);function Aq(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dk=Aq(),fk=typeof dk.FormData<"u"?dk.FormData:void 0,Oq=t=>{let e;
vendor: 11,658 bytes, line 75
75return t&&(fk&&t instanceof fk||oi(t.append)&&((e=Ag(t))==="formdata"||e==="object"&&oi(t.toString)&&t.toString()==="[object FormData]"))},Rq=Sa("URLSearchParams"),[Cq,Dq,Lq,Pq]=["ReadableStream","Request","Response","Headers"].map(Sa),Mq=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ch(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Eu(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(lh(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let c;for(r=0;r<o;r++)c=s[r],e.call(null,t[c],c,t)}}function S5(t,e){if(lh(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const _o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,E5=t=>!xu(t)&&t!==_o;function ew(){const{caseless:t,skipUndefined:e}=E5(this)&&this||{},n={},r=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&S5(n,s)||s;Nm(n[o])&&Nm(i)?n[o]=ew(n[o],i):Nm(i)?n[o]=ew({},i):Eu(i)?n[o]=i.slice():(!e||!xu(i))&&(n[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ch(arguments[i],r);return n}const Iq=(t,e,n,{allOwnKeys:r}={})=>(ch(e,(i,s)=>{n&&oi(i)?Object.defineProperty(t,s,{value:x5(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),zq=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Uq=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Bq=(t,e,n,r)=>{let i,s,o;const c={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!c[o]&&(e[o]=t[o],c[o]=!0);t=n!==!1&&y1(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},$q=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Fq=t=>{if(!t)return null;if(Eu(t))return t;let e=t.length;if(!w5(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},qq=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&y1(Uint8Array)),Hq=(t,e)=>{const r=(t&&t[kg]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},Gq=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Vq=Sa("HTMLFormElement"),Kq=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),hk=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yq=Sa("RegExp"),j5=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ch(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},Wq=t=>{j5(t,(e,n)=>{if(oi(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(oi(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xq=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Eu(t)?r(t):r(String(t).split(e)),n},Jq=()=>{},Qq=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Zq(t){return!!(t&&oi(t.append)&&t[b5]==="FormData"&&t[kg])}const eH=t=>{const e=new Array(10),n=(r,i)=>{if(oh(r)){if(e.indexOf(r)>=0)return;if(lh(r))return r;if(!("toJSON"in r)){e[i]=r;const s=Eu(r)?[]:{};return ch(r,(o,c)=>{const f=n(o,i+1);!xu(f)&&(s[c]=f)}),e[i]=void 0,s}}return r};return n(t,0)},tH=Sa("AsyncFunction"),nH=t=>t&&(oh(t)||oi(t))&&oi(t.then)&&oi(t.catch),N5=((t,e)=>t?setImmediate:e?((n,r)=>(_o.addEventListener("message",({source:i,data:s})=>{i===_o&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),_o.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",oi(_o.postMessage)),rH=typeof queueMicrotask<"u"?queueMicrotask.bind(_o):typeof process<"u"&&process.nextTick||N5,iH=t=>t!=null&&oi(t[kg]),ae={isArray:Eu,isArrayBuffer:_5,isBuffer:lh,isFormData:Oq,isArrayBufferView:vq,isString:xq,isNumber:w5,isBoolean:bq,isObject:oh,isPlainObject:Nm,isEmptyObject:_q,isReadableStream:Cq,isRequest:Dq,isResponse:Lq,isHeaders:Pq,isUndefined:xu,isDate:wq,isFile:Sq,isReactNativeBlob:Eq,isReactNative:jq,isBlob:Nq,isRegExp:Yq,isFunction:oi,isStream:kq,isURLSearchParams:Rq,isTypedArray:qq,isFileList:Tq,forEach:ch,merge:ew,extend:Iq,trim:Mq,stripBOM:zq,inherits:Uq,toFlatObject:Bq,kindOf:Ag,kindOfTest:Sa,endsWith:$q,toArray:Fq,forEachEntry:Hq,matchAll:Gq,isHTMLForm:Vq,hasOwnProperty:hk,hasOwnProp:hk,reduceDescriptors:j5,freezeMethods:Wq,toObjectSet:Xq,toCamelCase:Kq,noop:Jq,toFiniteNumber:Qq,findKey:S5,global:_o,isContextDefined:E5,isSpecCompliantForm:Zq,toJSONObject:eH,isAsyncFn:tH,isThenable:nH,setImmediate:N5,asap:rH,isIterable:iH};let et=class T5 extends Error{static from(e,n,r,i,s,o){const c=new T5(e.message,n||e.code,r,i,s);return c.cause=e,c.name=e.name,e.status!=null&&c.status==null&&(c.status=e.status),o&&Object.assign(c,o),c}constructor(e,n,r,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ae.toJSONObject(this.config),code:this.code,status:this.status}}};et.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";et.ERR_BAD_OPTION="ERR_BAD_OPTION";et.ECONNABORTED="ECONNABORTED";et.ETIMEDOUT="ETIMEDOUT";et.ERR_NETWORK="ERR_NETWORK";et.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";et.ERR_DEPRECATED="ERR_DEPRECATED";et.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";et.ERR_BAD_REQUEST="ERR_BAD_REQUEST";et.ERR_CANCELED="ERR_CANCELED";et.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";et.ERR_INVALID_URL="ERR_INVALID_URL";const aH=null;function tw(t){return ae.isPlainObject(t)||ae.isArray(t)}function k5(t){return ae.endsWith(t,"[]")?t.slice(0,-2):t}function K0(t,e,n){return t?t.concat(e).map(function(i,s){return i=k5(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function sH(t){return ae.isArray(t)&&!t.some(tw)}const lH=ae.toFlatObject(ae,{},null,function(e){return/^is[A-Z]/.test(e)});function Rg(t,e,n){if(!ae.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,S){return!ae.isUndefined(S[_])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(e);if(!ae.isFunction(i))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(ae.isDate(w))return w.toISOString();if(ae.isBoolean(w))return w.toString();if(!f&&ae.isBlob(w))throw new et("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(w)||ae.isTypedArray(w)?f&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function p(w,_,S){let E=w;if(ae.isReactNative(e)&&ae.isReactNativeBlob(w))return e.append(K0(S,_,s),h(w)),!1;if(w&&!S&&typeof w=="object"){if(ae.endsWith(_,"{}"))_=r?_:_.slice(0,-2),w=JSON.stringify(w);else if(ae.isArray(w)&&sH(w)||(ae.isFileList(w)||ae.endsWith(_,"[]"))&&(E=ae.toArray(w)))return _=k5(_),E.forEach(function(k,R){!(ae.isUndefined(k)||k===null)&&e.append(o===!0?K0([_],R,s):o===null?_:_+"[]",h(k))}),!1}return tw(w)?!0:(e.append(K0(S,_,s),h(w)),!1)}const g=[],x=Object.assign(lH,{defaultVisitor:p,convertValue:h,isVisitable:tw});function v(w,_){if(!ae.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+_.join("."));g.push(w),ae.forEach(w,function(E,N){(!(ae.isUndefined(E)||E===null)&&i.call(e,E,ae.isString(N)?N.trim():N,_,x))===!0&&v(E,_?_.concat(N):[N])}),g.pop()}}if(!ae.isObject(t))throw new TypeError("data must be an object");return v(t),e}function pk(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function v1(t,e){this._pairs=[],t&&Rg(t,this,e)}const A5=v1.prototype;A5.append=function(e,n){this._pairs.push([e,n])};A5.toString=function(e){const n=e?function(r){return e.call(this,r,pk)}:pk;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function oH(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function O5(t,e,n){if(!e)return t;const r=n&&n.encode||oH,i=ae.isFunction(n)?{serialize:n}:n,s=i&&i.serialize;let o;if(s?o=s(e,i):o=ae.isURLSearchParams(e)?e.toString():new v1(e,i).toString(r),o){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class mk{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ae.forEach(this.handlers,function(r){r!==null&&e(r)})}}const x1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},cH=typeof URLSearchParams<"u"?URLSearchParams:v1,uH=typeof FormData<"u"?FormData:null,dH=typeof Blob<"u"?Blob:null,fH={isBrowser:!0,classes:{URLSearchParams:cH,FormData:uH,Blob:dH},protocols:["http","https","file","blob","url","data"]},b1=typeof window<"u"&&typeof document<"u",nw=typeof navigator=="object"&&navigator||void 0,hH=b1&&(!nw||["ReactNative","NativeScript","NS"].indexOf(nw.product)<0),pH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mH=b1&&window.location.href||"http://localhost",gH=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:b1,hasStandardBrowserEnv:hH,hasStandardBrowserWebWorkerEnv:pH,navigator:nw,origin:mH},Symbol.toStringTag,{value:"Module"})),Ar={...gH,...fH};function yH(t,e){return Rg(t,new Ar.classes.URLSearchParams,{visitor:function(n,r,i,s){return Ar.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function vH(t){return ae.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function xH(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function R5(t){function e(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),f=s>=n.length;return o=!o&&ae.isArray(i)?i.length:o,f?(ae.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!c):((!i[o]||!ae.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&ae.isArray(i[o])&&(i[o]=xH(i[o])),!c)}if(ae.isFormData(t)&&ae.isFunction(t.entries)){const n={};return ae.forEachEntry(t,(r,i)=>{e(vH(r),i,n,0)}),n}return null}function bH(t,e,n){if(ae.isString(t))try{return(e||JSON.parse)(t),ae.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const uh={transitional:x1,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=ae.isObject(e);if(s&&ae.isHTMLForm(e)&&(e=new FormData(e)),ae.isFormData(e))return i?JSON.stringify(R5(e)):e;if(ae.isArrayBuffer(e)||ae.isBuffer(e)||ae.isStream(e)||ae.isFile(e)||ae.isBlob(e)||ae.isReadableStream(e))return e;if(ae.isArrayBufferView(e))return e.buffer;if(ae.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>
vendor: 4,457 bytes, lines 75-77
75-1)return yH(e,this.formSerializer).toString();if((c=ae.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Rg(c?{"files[]":e}:e,f&&new f,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),bH(e)):e}],transformResponse:[function(e){const n=this.transitional||uh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ae.isResponse(e)||ae.isReadableStream(e))return e;if(e&&ae.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?et.from(c,et.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ar.classes.FormData,Blob:Ar.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],t=>{uh.headers[t]={}});const _H=ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wH=t=>{const e={};let n,r,i;return t&&t.split(` 76`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&_H[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},gk=Symbol("internals");function Rd(t){return t&&String(t).trim().toLowerCase()}function Tm(t){return t===!1||t==null?t:ae.isArray(t)?t.map(Tm):String(t)}function SH(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const EH=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Y0(t,e,n,r,i){if(ae.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!ae.isString(e)){if(ae.isString(r))return e.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(e)}}function jH(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function NH(t,e){const n=ae.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}let ci=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(c,f,h){const p=Rd(f);if(!p)throw new Error("header name must be a non-empty string");const g=ae.findKey(i,p);(!g||i[g]===void 0||h===!0||h===void 0&&i[g]!==!1)&&(i[g||f]=Tm(c))}const o=(c,f)=>ae.forEach(c,(h,p)=>s(h,p,f));if(ae.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(ae.isString(e)&&(e=e.trim())&&!EH(e))o(wH(e),n);else if(ae.isObject(e)&&ae.isIterable(e)){let c={},f,h;for(const p of e){if(!ae.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[h=p[0]]=(f=c[h])?ae.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}o(c,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=Rd(e),e){const r=ae.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return SH(i);if(ae.isFunction(n))return n.call(this,i,r);if(ae.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Rd(e),e){const r=ae.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Y0(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(o){if(o=Rd(o),o){const c=ae.findKey(r,o);c&&(!n||Y0(r,r[c],c,n))&&(delete r[c],i=!0)}}return ae.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||Y0(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return ae.forEach(this,(i,s)=>{const o=ae.findKey(r,s);if(o){n[o]=Tm(i),delete n[s];return}const c=e?jH(s):String(s).trim();c!==s&&delete n[s],n[c]=Tm(i),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&ae.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 77`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);
vendor: 5,528 bytes, line 77
77return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[gk]=this[gk]={accessors:{}}).accessors,i=this.prototype;function s(o){const c=Rd(o);r[c]||(NH(i,o),r[c]=!0)}return ae.isArray(e)?e.forEach(s):s(e),this}};ci.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(ci.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});ae.freezeMethods(ci);function W0(t,e){const n=this||uh,r=e||n,i=ci.from(r.headers);let s=r.data;return ae.forEach(t,function(c){s=c.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function C5(t){return!!(t&&t.__CANCEL__)}let dh=class extends et{constructor(e,n,r){super(e??"canceled",et.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function D5(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new et("Request failed with status code "+n.status,[et.ERR_BAD_REQUEST,et.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function TH(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function kH(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(f){const h=Date.now(),p=r[s];o||(o=h),n[i]=f,r[i]=h;let g=s,x=0;for(;g!==i;)x+=n[g++],g=g%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),h-o<e)return;const v=p&&h-p;return v?Math.round(x*1e3/v):void 0}}function AH(t,e){let n=0,r=1e3/e,i,s;const o=(h,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),t(...h)};return[(...h)=>{const p=Date.now(),g=p-n;g>=r?o(h,p):(i=h,s||(s=setTimeout(()=>{s=null,o(i)},r-g)))},()=>i&&o(i)]}const cg=(t,e,n=3)=>{let r=0;const i=kH(50,250);return AH(s=>{const o=s.loaded,c=s.lengthComputable?s.total:void 0,f=o-r,h=i(f),p=o<=c;r=o;const g={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:h||void 0,estimated:h&&c&&p?(c-o)/h:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(g)},n)},yk=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},vk=t=>(...e)=>ae.asap(()=>t(...e)),OH=Ar.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Ar.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Ar.origin),Ar.navigator&&/(msie|trident)/i.test(Ar.navigator.userAgent)):()=>!0,RH=Ar.hasStandardBrowserEnv?{write(t,e,n,r,i,s,o){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];ae.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),ae.isString(r)&&c.push(`path=${r}`),ae.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),ae.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function CH(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function DH(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function L5(t,e,n){let r=!CH(e);return t&&(r||n==!1)?DH(t,e):e}const xk=t=>t instanceof ci?{...t}:t;function Mo(t,e){e=e||{};const n={};function r(h,p,g,x){return ae.isPlainObject(h)&&ae.isPlainObject(p)?ae.merge.call({caseless:x},h,p):ae.isPlainObject(p)?ae.merge({},p):ae.isArray(p)?p.slice():p}function i(h,p,g,x){if(ae.isUndefined(p)){if(!ae.isUndefined(h))return r(void 0,h,g,x)}else return r(h,p,g,x)}function s(h,p){if(!ae.isUndefined(p))return r(void 0,p)}function o(h,p){if(ae.isUndefined(p)){if(!ae.isUndefined(h))return r(void 0,h)}else return r(void 0,p)}function c(h,p,g){if(g in e)return r(h,p);if(g in t)return r(void 0,h)}const f={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(h,p,g)=>i(xk(h),xk(p),g,!0)};return ae.forEach(Object.keys({...t,...e}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=ae.hasOwnProp(f,p)?f[p]:i,x=g(t[p],e[p],p);ae.isUndefined(x)&&g!==c||(n[p]=x)}),n}const P5=t=>{const e=Mo({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:c}=e;if(e.headers=o=ci.from(o),e.url=O5(L5(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ae.isFormData(n)){if(Ar.hasStandardBrowserEnv||Ar.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(ae.isFunction(n.getHeaders)){const f=n.getHeaders(),h=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{h.includes(p.toLowerCase())&&o.set(p,g)})}}if(Ar.hasStandardBrowserEnv&&(r&&ae.isFunction(r)&&(r=r(e)),r||r!==!1&&OH(e.url))){const f=i&&s&&RH.read(s);f&&o.set(i,f)}return e},LH=typeof XMLHttpRequest<"u",PH=LH&&function(t){return new Promise(function(n,r){const i=P5(t);let s=i.data;const o=ci.from(i.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:h}=i,p,g,x,v,w;function _(){v&&v(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;
vendor: 4,123 bytes, line 77
77function E(){if(!S)return;const k=ci.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),D={data:!c||c==="text"||c==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:k,config:t,request:S};D5(function(T){n(T),_()},function(T){r(T),_()},D),S=null}"onloadend"in S?S.onloadend=E:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(E)},S.onabort=function(){S&&(r(new et("Request aborted",et.ECONNABORTED,t,S)),S=null)},S.onerror=function(R){const D=R&&R.message?R.message:"Network Error",O=new et(D,et.ERR_NETWORK,t,S);O.event=R||null,r(O),S=null},S.ontimeout=function(){let R=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||x1;i.timeoutErrorMessage&&(R=i.timeoutErrorMessage),r(new et(R,D.clarifyTimeoutError?et.ETIMEDOUT:et.ECONNABORTED,t,S)),S=null},s===void 0&&o.setContentType(null),"setRequestHeader"in S&&ae.forEach(o.toJSON(),function(R,D){S.setRequestHeader(D,R)}),ae.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),c&&c!=="json"&&(S.responseType=i.responseType),h&&([x,w]=cg(h,!0),S.addEventListener("progress",x)),f&&S.upload&&([g,v]=cg(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(p=k=>{S&&(r(!k||k.type?new dh(null,t,S):k),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const N=TH(i.url);if(N&&Ar.protocols.indexOf(N)===-1){r(new et("Unsupported protocol "+N+":",et.ERR_BAD_REQUEST,t));return}S.send(s||null)})},MH=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(h){if(!i){i=!0,c();const p=h instanceof Error?h:this.reason;r.abort(p instanceof et?p:new dh(p instanceof Error?p.message:p))}};let o=e&&setTimeout(()=>{o=null,s(new et(`timeout of ${e}ms exceeded`,et.ETIMEDOUT))},e);const c=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(s):h.removeEventListener("abort",s)}),t=null)};t.forEach(h=>h.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>ae.asap(c),f}},IH=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},zH=async function*(t,e){for await(const n of UH(t))yield*IH(n,e)},UH=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},bk=(t,e,n,r)=>{const i=zH(t,e);let s=0,o,c=f=>{o||(o=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:h,value:p}=await i.next();if(h){c(),f.close();return}let g=p.byteLength;if(n){let x=s+=g;n(x)}f.enqueue(new Uint8Array(p))}catch(h){throw c(h),h}},cancel(f){return c(f),i.return()}},{highWaterMark:2})},_k=64*1024,{isFunction:nm}=ae,BH=(({Request:t,Response:e})=>({Request:t,Response:e}))(ae.global),{ReadableStream:wk,TextEncoder:Sk}=ae.global,Ek=(t,...e)=>{try{return!!t(...e)}catch{return!1}},$H=t=>{t=ae.merge.call({skipUndefined:!0},BH,t);const{fetch:e,Request:n,Response:r}=t,i=e?nm(e):typeof fetch=="function",s=nm(n),o=nm(r);if(!i)return!1;const c=i&&nm(wk),f=i&&(typeof Sk=="function"?(w=>_=>w.encode(_))(new Sk):async w=>new Uint8Array(await new n(w).arrayBuffer())),h=s&&c&&Ek(()=>{let w=!1;const _=new n(Ar.origin,{body:new wk,method:"POST",get duplex(){return w=!0,"half"}}).headers.has("Content-Type");return w&&!_}),p=o&&c&&Ek(()=>ae.isReadableStream(new r("").body)),g={stream:p&&(w=>w.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!g[w]&&(g[w]=(_,S)=>{let E=_&&_[w];if(E)return E.call(_);throw new et(`Response type '${w}' is not supported`,et.ERR_NOT_SUPPORT,S)})});const x=async w=>{if(w==null)return 0;if(ae.isBlob(w))return w.size;if(ae.isSpecCompliantForm(w))return(await new n(Ar.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(ae.isArrayBufferView(w)||ae.isArrayBuffer(w))return w.byteLength;if(ae.isURLSearchParams(w)&&(w=w+""),ae.isString(w))return(await f(w)).b
vendor: 4,166 bytes, lines 77-79
77yteLength},v=async(w,_)=>{const S=ae.toFiniteNumber(w.getContentLength());return S??x(_)};return async w=>{let{url:_,method:S,data:E,signal:N,cancelToken:k,timeout:R,onDownloadProgress:D,onUploadProgress:O,responseType:T,headers:L,withCredentials:M="same-origin",fetchOptions:q}=P5(w),B=e||fetch;T=T?(T+"").toLowerCase():"text";let I=MH([N,k&&k.toAbortSignal()],R),Z=null;const X=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let K;try{if(O&&h&&S!=="get"&&S!=="head"&&(K=await v(L,E))!==0){let z=new n(_,{method:"POST",body:E,duplex:"half"}),Q;if(ae.isFormData(E)&&(Q=z.headers.get("content-type"))&&L.setContentType(Q),z.body){const[P,ce]=yk(K,cg(vk(O)));E=bk(z.body,_k,P,ce)}}ae.isString(M)||(M=M?"include":"omit");const U=s&&"credentials"in n.prototype,W={...q,signal:I,method:S.toUpperCase(),headers:L.normalize().toJSON(),body:E,duplex:"half",credentials:U?M:void 0};Z=s&&new n(_,W);let G=await(s?B(Z,q):B(_,W));const he=p&&(T==="stream"||T==="response");if(p&&(D||he&&X)){const z={};["status","statusText","headers"].forEach(ve=>{z[ve]=G[ve]});const Q=ae.toFiniteNumber(G.headers.get("content-length")),[P,ce]=D&&yk(Q,cg(vk(D),!0))||[];G=new r(bk(G.body,_k,P,()=>{ce&&ce(),X&&X()}),z)}T=T||"text";let A=await g[ae.findKey(g,T)||"text"](G,w);return!he&&X&&X(),await new Promise((z,Q)=>{D5(z,Q,{data:A,headers:ci.from(G.headers),status:G.status,statusText:G.statusText,config:w,request:Z})})}catch(U){throw X&&X(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new et("Network Error",et.ERR_NETWORK,w,Z,U&&U.response),{cause:U.cause||U}):et.from(U,U&&U.code,w,Z,U&&U.response)}}},FH=new Map,M5=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,s=[r,i,n];let o=s.length,c=o,f,h,p=FH;for(;c--;)f=s[c],h=p.get(f),h===void 0&&p.set(f,h=c?new Map:$H(e)),p=h;return h};M5();const _1={http:aH,xhr:PH,fetch:{get:M5}};ae.forEach(_1,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const jk=t=>`- ${t}`,qH=t=>ae.isFunction(t)||t===null||t===!1;function HH(t,e){t=ae.isArray(t)?t:[t];const{length:n}=t;let r,i;const s={};for(let o=0;o<n;o++){r=t[o];let c;if(i=r,!qH(r)&&(i=_1[(c=String(r)).toLowerCase()],i===void 0))throw new et(`Unknown adapter '${c}'`);if(i&&(ae.isFunction(i)||(i=i.get(e))))break;s[c||"#"+o]=i}if(!i){const o=Object.entries(s).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since : 78`+o.map(jk).join(` 79`):" "+jk(o[0]):"as no adapter specified";throw new et("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i}const I5={getAdapter:HH,adapters:_1};function X0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new dh(null,t)}function Nk(t){return X0(t),t.headers=ci.from(t.headers),t.data=W0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),I5.getAdapter(t.adapter||uh.adapter,t)(t).then(function(r){return X0(t),r.data=W0.call(t,t.transformResponse,r),r.headers=ci.from(r.headers),r},function(r){return C5(r)||(X0(t),r&&r.response&&(r.response.data=W0.call(t,t.transformResponse,r.response),r.response.headers=ci.from(r.response.headers))),Promise.reject(r)})}const z5="1.13.6",Cg={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Cg[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Tk={};Cg.transitional=function(e,n,r){function i(s,o){return"[Axios v"+z5+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,c)=>{if(e===!1)throw new et(i(o," has been removed"+(n?" in "+n:"")),et.ERR_DEPRECATED);return n&&!Tk[o]&&(Tk[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,c):!0}};Cg.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function GH(t,e,n){if(typeof t!="object")throw new et("options must be an object",et.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const c=t[s],f=c===void 0||o(c,s,t);
vendor: 4,100 bytes, lines 79-80
79if(f!==!0)throw new et("option "+s+" must be "+f,et.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new et("Unknown option "+s,et.ERR_BAD_OPTION)}}const km={assertOptions:GH,validators:Cg},na=km.validators;let Ao=class{constructor(e){this.defaults=e||{},this.interceptors={request:new mk,response:new mk}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` 80`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Mo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&km.assertOptions(r,{silentJSONParsing:na.transitional(na.boolean),forcedJSONParsing:na.transitional(na.boolean),clarifyTimeoutError:na.transitional(na.boolean),legacyInterceptorReqResOrdering:na.transitional(na.boolean)},!1),i!=null&&(ae.isFunction(i)?n.paramsSerializer={serialize:i}:km.assertOptions(i,{encode:na.function,serialize:na.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),km.assertOptions(n,{baseUrl:na.spelling("baseURL"),withXsrfToken:na.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&ae.merge(s.common,s[n.method]);s&&ae.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),n.headers=ci.concat(o,s);const c=[];let f=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;f=f&&_.synchronous;const S=n.transitional||x1;S&&S.legacyInterceptorReqResOrdering?c.unshift(_.fulfilled,_.rejected):c.push(_.fulfilled,_.rejected)});const h=[];this.interceptors.response.forEach(function(_){h.push(_.fulfilled,_.rejected)});let p,g=0,x;if(!f){const w=[Nk.bind(this),void 0];for(w.unshift(...c),w.push(...h),x=w.length,p=Promise.resolve(n);g<x;)p=p.then(w[g++],w[g++]);return p}x=c.length;let v=n;for(;g<x;){const w=c[g++],_=c[g++];try{v=w(v)}catch(S){_.call(this,S);break}}try{p=Nk.call(this,v)}catch(w){return Promise.reject(w)}for(g=0,x=h.length;g<x;)p=p.then(h[g++],h[g++]);return p}getUri(e){e=Mo(this.defaults,e);const n=L5(e.baseURL,e.url,e.allowAbsoluteUrls);return O5(n,e.params,e.paramsSerializer)}};ae.forEach(["delete","get","head","options"],function(e){Ao.prototype[e]=function(n,r){return this.request(Mo(r||{},{method:e,url:n,data:(r||{}).data}))}});ae.forEach(["post","put","patch"],function(e){function n(r){return function(s,o,c){return this.request(Mo(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Ao.prototype[e]=n(),Ao.prototype[e+"Form"]=n(!0)});let VH=class U5{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(c=>{r.subscribe(c),s=c}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,c){r.reason||(r.reason=new dh(s,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new U5(function(i){e=i}),cancel:e}}};function KH(t){return function(n){return t.apply(null,n)}}function YH(t){return ae.isObject(t)&&t.isAxiosError===!0}const rw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
80alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rw).forEach(([t,e])=>{rw[e]=t});function B5(t){const e=new Ao(t),n=x5(Ao.prototype.request,e);return ae.extend(n,Ao.prototype,e,{allOwnKeys:!0}),ae.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return B5(Mo(t,i))},n}const Bn=B5(uh);Bn.Axios=Ao;Bn.CanceledError=dh;Bn.CancelToken=VH;Bn.isCancel=C5;Bn.VERSION=z5;Bn.toFormData=Rg;Bn.AxiosError=et;Bn.Cancel=Bn.CanceledError;Bn.all=function(e){return Promise.all(e)};Bn.spread=KH;Bn.isAxiosError=YH;Bn.mergeConfig=Mo;Bn.AxiosHeaders=ci;Bn.formToJSON=t=>R5(ae.isHTMLForm(t)?new FormData(t):t);Bn.getAdapter=I5.getAdapter;Bn.HttpStatusCode=rw;Bn.default=Bn;const{Axios:rQ,AxiosError:iQ,CanceledError:aQ,isCancel:sQ,CancelToken:lQ,VERSION:oQ,all:cQ,Cancel:uQ,isAxiosError:dQ,spread:fQ,toFormData:hQ,AxiosHeaders:pQ,HttpStatusCode:mQ,formToJSON:gQ,getAdapter:yQ,mergeConfig:vQ}=Bn;var WH=Function.prototype.toString,J0=Object.create,XH=Object.prototype.toString,JH=(function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(e){return!!~this._keys.indexOf(e)},t.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},t.prototype.set=function(e,n){this._keys.push(e),this._values.push(n)},t})();function QH(){return new JH}function ZH(){return new WeakMap}var e9=typeof WeakMap<"u"?ZH:QH;function w1(t){if(!t)return J0(null);var e=t.constructor;if(e===Object)return t===Object.prototype?{}:J0(t);if(e&&~WH.call(e).indexOf("[native code]"))try{return new e}catch{}return J0(t)}function t9(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function n9(t){return t.flags}var r9=/test/g.flags==="g"?n9:t9;function $5(t){var e=XH.call(t);return e.substring(8,e.length-1)}function i9(t){return t[Symbol.toStringTag]||$5(t)}var a9=typeof Symbol<"u"?i9:$5,s9=Object.defineProperty,l9=Object.getOwnPropertyDescriptor,F5=Object.getOwnPropertyNames,S1=Object.getOwnPropertySymbols,q5=Object.prototype,H5=q5.hasOwnProperty,o9=q5.propertyIsEnumerable,G5=typeof S1=="function";function c9(t){return F5(t).concat(S1(t))}var u9=G5?c9:F5;function Dg(t,e,n){for(var r=u9(t),i=0,s=r.length,o=void 0,c=void 0;i<s;++i)if(o=r[i],!(o==="callee"||o==="caller")){if(c=l9(t,o),!c){e[o]=n.copier(t[o],n);continue}!c.get&&!c.set&&(c.value=n.copier(c.value,n));try{s9(e,o,c)}catch{e[o]=c.value}}return e}function d9(t,e){var n=new e.Constructor;e.cache.set(t,n);for(var r=0,i=t.length;r<i;++r)n[r]=e.copier(t[r],e);return n}function f9(t,e){var n=new e.Constructor;return e.cache.set(t,n),Dg(t,n,e)}function V5(t,e){return t.slice(0)}function h9(t,e){return t.slice(0,t.size,t.type)}function p9(t,e){return new e.Constructor(V5(t.buffer))}function m9(t,e){return new e.Constructor(t.getTime())}function K5(t,e){var n=new e.Constructor;return e.cache.set(t,n),t.forEach(function(r,i){n.set(i,e.copier(r,e))}),n}function g9(t,e){return Dg(t,K5(t,e),e)}function y9(t,e){var n=w1(e.prototype);e.cache.set(t,n);for(var r in t)H5.call(t,r)&&(n[r]=e.copier(t[r],e));return n}function v9(t,e){var n=w1(e.prototype);e.cache.set(t,n);for(var r in t)H5.call(t,r)&&(n[r]=e.copier(t[r],e));for(var i=S1(t),s=0,o=i.length,c=void 0;s<o;++s)c=i[s],o9.call(t,c)&&(n[c]=e.copier(t[c],e));return n}var x9=G5?v9:y9;function b9(t,e){var n=w1(e.prototype);return e.cache.set(t,n),Dg(t,n,e)}function Q0(t,e){return new e.Constructor(t.valueOf())}function _9(t,e){var n=new e.Constructor(t.source,r9(t));return n.lastIndex=t.lastIndex,n}function Am(t,e){return t}function Y5(t,e){var n=new e.Constructor;return e.cache.set(t,n),t.forEach(function(r){n.add(e.copier(r,e))}),n}function w9(t,e){return Dg(t,Y5(t,e),e)}var S9=Array.isArray,E1=Object.assign,E9=Object.getPrototypeOf||(function(t){return t.__proto__}),W5={array:d9,arrayBuffer:V5,blob:h9,dataView:p9,date:m9,error:Am,map:K5,object:x9,regExp:_9,set:Y5},j9=E1({},W5,{array:f9,map:g9,object:b9,set:w9});function N9(t){return{Arguments:t.object,Array:t.array,ArrayBuffer:t.arrayBuffer,Blob:t.blob,Boolean:Q0,DataView:t.dataView,Date:t.date,Error:t.error,Float32Array:t.arrayBuffer,Float64Array:t.arrayBuffer,Int8Array:t.arrayBuffer,Int16Array:t.arrayBuffer,Int32Array:t.arrayBuffer,Map:t.map,Number:Q0,Object:t.object,Promise:Am,RegExp:t.regExp,Set:t.set,String:Q0,WeakMap:Am,WeakSet:Am,Uint8Array:t.arrayBuffer,
80Uint8ClampedArray:t.arrayBuffer,Uint16Array:t.arrayBuffer,Uint32Array:t.arrayBuffer,Uint64Array:t.arrayBuffer}}function X5(t){var e=E1({},W5,t),n=N9(e),r=n.Array,i=n.Object;function s(o,c){if(c.prototype=c.Constructor=void 0,!o||typeof o!="object")return o;if(c.cache.has(o))return c.cache.get(o);if(c.prototype=E9(o),c.Constructor=c.prototype&&c.prototype.constructor,!c.Constructor||c.Constructor===Object)return i(o,c);if(S9(o))return r(o,c);var f=n[a9(o)];return f?f(o,c):typeof o.then=="function"?o:i(o,c)}return function(c){return s(c,{Constructor:void 0,cache:e9(),copier:s,prototype:void 0})}}function T9(t){return X5(E1({},j9,t))}T9({});var Lg=X5({});function k9(t,e){t.interceptors.request.use(function(n){return e().then(r=>(n.headers.set("Authorization",`Bearer ${r}`),n))})}var Z0={exports:{}},kk;function A9(){if(kk)return Z0.exports;kk=1;var t=Z0.exports={},e,n;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=r}catch{e=r}try{typeof clearTimeout=="function"?n=clearTimeout:n=i}catch{n=i}})();function s(_){if(e===setTimeout)return setTimeout(_,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(_,0);try{return e(_,0)}catch{try{return e.call(null,_,0)}catch{return e.call(this,_,0)}}}function o(_){if(n===clearTimeout)return clearTimeout(_);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(_);try{return n(_)}catch{try{return n.call(null,_)}catch{return n.call(this,_)}}}var c=[],f=!1,h,p=-1;function g(){!f||!h||(f=!1,h.length?c=h.concat(c):p=-1,c.length&&x())}function x(){if(!f){var _=s(g);f=!0;for(var S=c.length;S;){for(h=c,c=[];++p<S;)h&&h[p].run();p=-1,S=c.length}h=null,f=!1,o(_)}}t.nextTick=function(_){var S=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)S[E-1]=arguments[E];c.push(new v(_,S)),c.length===1&&!f&&s(x)};function v(_,S){this.fun=_,this.array=S}v.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function w(){}return t.on=w,t.addListener=w,t.once=w,t.off=w,t.removeListener=w,t.removeAllListeners=w,t.emit=w,t.prependListener=w,t.prependOnceListener=w,t.listeners=function(_){return[]},t.binding=function(_){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(_){throw new Error("process.chdir is not supported")},t.umask=function(){return 0},Z0.exports}var O9=A9();const jl=Ls(O9);function R9(){return typeof jl<"u"&&!jl.browser}function C9(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function D9(){return jl.versions&&jl.versions.node?`v${jl.versions.node}`:jl.version}function L9(){return window}function iw(){}const P9=t=>new Promise(e=>{setTimeout(e,t)}),M9=t=>Math.pow(Math.SQRT2,t);function I9(t,e=5){const{responseLogger:n=iw,requestLogger:r=iw}=t.defaults;t.interceptors.request.use(function(i){return r(i),i},function(i){return r(i),Promise.reject(i)}),t.interceptors.response.use(function(i){return n(i),i},async function(i){const{response:s}=i,{config:o}=i;if(n(i),!o||!t.defaults.retryOnError)return Promise.reject(i);const c=o.attempts||1;if(c>e)return i.attempts=o.attempts,Promise.reject(i);let f=null,h=M9(c);return s?s.status>=500&&s.status<600?f=`Server ${s.status}`:s.status===429&&(f="Rate limit",s.headers&&i.response.headers["x-contentful-ratelimit-reset"]&&(h=s.headers["x-contentful-ratelimit-reset"])):f="Connection",f?(h=Math.floor(h*1e3+Math.random()*200+500),t.defaults.logHandler("warning",`${f} error occurred. Waiting for ${h} ms before retrying...`),o.attempts=c+1,delete o.httpAgent,delete o.httpsAgent,P9(h).then(()=>t(o))):Promise.reject(i)})}var ex,Ak;function z9(){if(Ak)return ex;Ak=1;var t=typeof Bc=="object"&&Bc&&Bc.Object===Object&&Bc;return ex=t,ex}var tx,Ok;function U9(){if(Ok)return tx;Ok=1;var t=z9(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return tx=n,tx}var nx,Rk;function J5(){if(Rk)return nx;Rk=1;var t=U9(),e=t.Symbol;return nx=e,nx}var rx,Ck;function B9(){if(Ck)return rx;Ck=1;var t=J5(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;function s(o){var c=n.call(o,i),f=o[i];try{o[i]=void 0;var h=!0}catch{}var p=r.call(o);return h&&(c?o[i]=f:delete o[i]),p}return rx=s,rx}var ix,Dk;function $9(){if(Dk)return ix;Dk=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return ix=n,ix}var ax,Lk;function Q5(){if(Lk)return ax;Lk=1;
80var t=J5(),e=B9(),n=$9(),r="[object Null]",i="[object Undefined]",s=t?t.toStringTag:void 0;function o(c){return c==null?c===void 0?i:r:s&&s in Object(c)?e(c):n(c)}return ax=o,ax}var sx,Pk;function F9(){if(Pk)return sx;Pk=1;var t=Array.isArray;return sx=t,sx}var lx,Mk;function Z5(){if(Mk)return lx;Mk=1;function t(e){return e!=null&&typeof e=="object"}return lx=t,lx}var ox,Ik;function q9(){if(Ik)return ox;Ik=1;var t=Q5(),e=F9(),n=Z5(),r="[object String]";function i(s){return typeof s=="string"||!e(s)&&n(s)&&t(s)==r}return ox=i,ox}var H9=q9();const zk=Ls(H9);class G9 extends Error{name="AbortError";constructor(){super("Throttled function aborted")}}function V9({limit:t,interval:e,strict:n,onDelay:r}){if(!Number.isFinite(t))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(e))throw new TypeError("Expected `interval` to be a finite number");const i=new Map;let s=0,o=0;function c(){const h=Date.now();return h-s>e?(o=1,s=h,0):(o<t?o++:(s+=e,o=1),s-h)}const f=c;return function(h){const p=function(...g){if(!p.isEnabled)return(async()=>h.apply(this,g))();let x;return new Promise((v,w)=>{const _=()=>{v(h.apply(this,g)),i.delete(x)},S=f();S>0?(x=setTimeout(_,S),i.set(x,w),r?.()):_()})};return p.abort=()=>{for(const g of i.keys())clearTimeout(g),i.get(g)(new G9);i.clear()},p.isEnabled=!0,Object.defineProperty(p,"queueSize",{get(){return i.size}}),p}}const aw=/(?<value>\d+)(%)/;function cx(t,e=7){let n=e;if(aw.test(t)){const r=t.match(aw)?.groups;if(r&&r.value){const i=parseInt(r.value)/100;n=Math.round(e*i)}}return Math.min(30,Math.max(1,n))}function Uk(t,e){return e("info",`Throttle request to ${t}/s`),V9({limit:t,interval:1e3,strict:!1})}var K9=(t,e="auto")=>{const{logHandler:n=iw}=t.defaults;let r=zk(e)?cx(e):cx("auto",e),i=Uk(r,n),s=!1,o=t.interceptors.request.use(f=>i(()=>f)(),function(f){return Promise.reject(f)});const c=t.interceptors.response.use(f=>{if(!s&&zk(e)&&(e==="auto"||aw.test(e))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){const h=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),p=cx(e,h);p!==r&&(o&&t.interceptors.request.eject(o),r=p,i=Uk(p,n),o=t.interceptors.request.use(g=>i(()=>g)(),function(g){return Promise.reject(g)})),s=!0}return f},function(f){return Promise.reject(f)});return()=>{t.interceptors.request.eject(o),t.interceptors.response.eject(c)}},ux,Bk;function ju(){return Bk||(Bk=1,ux=TypeError),ux}const Y9={},W9=Object.freeze(Object.defineProperty({__proto__:null,default:Y9},Symbol.toStringTag,{value:"Module"})),X9=vP(W9);var dx,$k;function Pg(){if($k)return dx;$k=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=i&&s&&typeof s.get=="function"?s.get:null,c=i&&Set.prototype.forEach,f=typeof WeakMap=="function"&&WeakMap.prototype,h=f?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,g=p?WeakSet.prototype.has:null,x=typeof WeakRef=="function"&&WeakRef.prototype,v=x?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,_=Object.prototype.toString,S=Function.prototype.toString,E=String.prototype.match,N=String.prototype.slice,k=String.prototype.replace,R=String.prototype.toUpperCase,D=String.prototype.toLowerCase,O=RegExp.prototype.test,T=Array.prototype.concat,L=Array.prototype.join,M=Array.prototype.slice,q=Math.floor,B=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,X=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===X||!0)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,W=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Y){return Y.__proto__}:null);function G(Y,ee){if(Y===1/0||Y===-1/0||Y!==Y||Y&&Y>-1e3&&Y<1e3||O.call(/e/,ee))return ee;var Xe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Y=="number"){var ke=Y<0?-q(-Y):q(Y);if(ke!==Y){var pt=String(ke),$e=N.call(ee,pt.length+1);
vendor: 36,644 bytes, lines 80-83
80return k.call(pt,Xe,"$&_")+"."+k.call(k.call($e,/([0-9]{3})/g,"$&_"),/_$/,"")}}return k.call(ee,Xe,"$&_")}var he=X9,A=he.custom,z=Ve(A)?A:null,Q={__proto__:null,double:'"',single:"'"},P={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};dx=function Y(ee,Xe,ke,pt){var $e=Xe||{};if(H($e,"quoteStyle")&&!H(Q,$e.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H($e,"maxStringLength")&&(typeof $e.maxStringLength=="number"?$e.maxStringLength<0&&$e.maxStringLength!==1/0:$e.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var fn=H($e,"customInspect")?$e.customInspect:!0;if(typeof fn!="boolean"&&fn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H($e,"indent")&&$e.indent!==null&&$e.indent!==" "&&!(parseInt($e.indent,10)===$e.indent&&$e.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H($e,"numericSeparator")&&typeof $e.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Yt=$e.numericSeparator;if(typeof ee>"u")return"undefined";if(ee===null)return"null";if(typeof ee=="boolean")return ee?"true":"false";if(typeof ee=="string")return ge(ee,$e);if(typeof ee=="number"){if(ee===0)return 1/0/ee>0?"0":"-0";var nn=String(ee);return Yt?G(ee,nn):nn}if(typeof ee=="bigint"){var Ln=String(ee)+"n";return Yt?G(ee,Ln):Ln}var Dr=typeof $e.depth>"u"?5:$e.depth;if(typeof ke>"u"&&(ke=0),ke>=Dr&&Dr>0&&typeof ee=="object")return Se(ee)?"[Array]":"[Object]";var Lr=An($e,ke);if(typeof pt>"u")pt=[];else if(Ut(pt,ee)>=0)return"[Circular]";function Ie($n,qt,bn){if(qt&&(pt=M.call(pt),pt.push(qt)),bn){var an={depth:$e.depth};return H($e,"quoteStyle")&&(an.quoteStyle=$e.quoteStyle),Y($n,an,ke+1,pt)}return Y($n,$e,ke+1,pt)}if(typeof ee=="function"&&!Te(ee)){var ze=xt(ee),St=tn(ee,Ie);return"[Function"+(ze?": "+ze:" (anonymous)")+"]"+(St.length>0?" { "+L.call(St,", ")+" }":"")}if(Ve(ee)){var be=X?k.call(String(ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):Z.call(ee);return typeof ee=="object"&&!X?Be(be):be}if(oe(ee)){for(var Ke="<"+D.call(String(ee.nodeName)),Pe=ee.attributes||[],Ye=0;Ye<Pe.length;Ye++)Ke+=" "+Pe[Ye].name+"="+ce(ve(Pe[Ye].value),"double",$e);return Ke+=">",ee.childNodes&&ee.childNodes.length&&(Ke+="..."),Ke+="</"+D.call(String(ee.nodeName))+">",Ke}if(Se(ee)){if(ee.length===0)return"[]";var rn=tn(ee,Ie);return Lr&&!Rt(rn)?"["+Ot(rn,Lr)+"]":"[ "+L.call(rn,", ")+" ]"}if(Ae(ee)){var lt=tn(ee,Ie);return!("cause"in Error.prototype)&&"cause"in ee&&!U.call(ee,"cause")?"{ ["+String(ee)+"] "+L.call(T.call("[cause]: "+Ie(ee.cause),lt),", ")+" }":lt.length===0?"["+String(ee)+"]":"{ ["+String(ee)+"] "+L.call(lt,", ")+" }"}if(typeof ee=="object"&&fn){if(z&&typeof ee[z]=="function"&&he)return he(ee,{depth:Dr-ke});if(fn!=="symbol"&&typeof ee.inspect=="function")return ee.inspect()}if(ut(ee)){var Wt=[];return r&&r.call(ee,function($n,qt){Wt.push(Ie(qt,ee,!0)+" => "+Ie($n,ee))}),kn("Map",n.call(ee),Wt,Lr)}if(It(ee)){var Ft=[];return c&&c.call(ee,function($n){Ft.push(Ie($n,ee))}),kn("Set",o.call(ee),Ft,Lr)}if(xn(ee))return it("WeakMap");if(gn(ee))return it("WeakSet");if(Qn(ee))return it("WeakRef");if(Ge(ee))return Be(Ie(Number(ee)));if(re(ee))return Be(Ie(B.call(ee)));if(Ce(ee))return Be(w.call(ee));if(We(ee))return Be(Ie(String(ee)));if(typeof window<"u"&&ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ee===globalThis||typeof Bc<"u"&&ee===Bc)return"{ [object globalThis] }";if(!He(ee)&&!Te(ee)){var at=tn(ee,Ie),ot=W?W(ee)===Object.prototype:ee instanceof Object||ee.constructor===Object,mt=ee instanceof Object?"":"null prototype",sr=!ot&&K&&Object(ee)===ee&&K in ee?N.call(Ne(ee),8,-1):mt?"Object":"",Xt=ot||typeof ee.constructor!="function"?"":ee.constructor.name?ee.constructor.name+" ":"",Zn=Xt+(sr||mt?"["+L.call(T.call([],sr||[],mt||[]),": ")+"] ":"");return at.length===0?Zn+"{}":Lr?Zn+"{"+Ot(at,Lr)+"}":Zn+"{ "+L.call(at,", ")+" }"}return String(ee)};function ce(Y,ee,Xe){var ke=Xe.quoteStyle||ee,pt=Q[ke];return pt+Y+pt}function ve(Y){return k.call(String(Y),/"/g,""")}function ye(Y){return!K||!(typeof Y=="object"&&(K in Y||typeof Y[K]<"u"))}function Se(Y){return Ne(Y)==="[object Array]"&&ye(Y)}function He(Y){return Ne(Y)==="[object Date]"&&ye(Y)}function Te(Y){return Ne(Y)==="[object RegExp]"&&ye(Y)}function Ae(Y){return Ne(Y)==="[object Error]"&&ye(Y)}function We(Y){return Ne(Y)==="[object String]"&&ye(Y)}function Ge(Y){return Ne(Y)==="[object Number]"&&ye(Y)}function Ce(Y){return Ne(Y)==="[object Boolean]"&&ye(Y)}function Ve(Y){if(X)return Y&&typeof Y=="object"&&Y instanceof Symbol;if(typeof Y=="symbol")return!0;if(!Y||typeof Y!="object"||!Z)return!1;try{return Z.call(Y),!0}catch{}return!1}function re(Y){if(!Y||typeof Y!="object"||!B)return!1;try{return B.call(Y),!0}catch{}return!1}var ue=Object.prototype.hasOwnProperty||function(Y){return Y in this};function H(Y,ee){return ue.call(Y,ee)}function Ne(Y){return _.call(Y)}function xt(Y){if(Y.name)return Y.name;var ee=E.call(S.call(Y),/^function\s*([\w$]+)/);return ee?ee[1]:null}function Ut(Y,ee){if(Y.indexOf)return Y.indexOf(ee);for(var Xe=0,ke=Y.length;Xe<ke;Xe++)if(Y[Xe]===ee)return Xe;return-1}function ut(Y){if(!n||!Y||typeof Y!="object")return!1;try{n.call(Y);try{o.call(Y)}catch{return!0}return Y instanceof Map}catch{}return!1}function xn(Y){if(!h||!Y||typeof Y!="object")return!1;try{h.call(Y,h);try{g.call(Y,g)}catch{return!0}return Y instanceof WeakMap}catch{}return!1}function Qn(Y){if(!v||!Y||typeof Y!="object")return!1;try{return v.call(Y),!0}catch{}return!1}function It(Y){if(!o||!Y||typeof Y!="object")return!1;try{o.call(Y);try{n.call(Y)}catch{return!0}return Y instanceof Set}catch{}return!1}function gn(Y){if(!g||!Y||typeof Y!="object")return!1;try{g.call(Y,g);try{h.call(Y,h)}catch{return!0}return Y instanceof WeakSet}catch{}return!1}function oe(Y){return!Y||typeof Y!="object"?!1:typeof HTMLElement<"u"&&Y instanceof HTMLElement?!0:typeof Y.nodeName=="string"&&typeof Y.getAttribute=="function"}function ge(Y,ee){if(Y.length>ee.maxStringLength){var Xe=Y.length-ee.maxStringLength,ke="... "+Xe+" more character"+(Xe>1?"s":"");return ge(N.call(Y,0,ee.maxStringLength),ee)+ke}var pt=P[ee.quoteStyle||"single"];pt.lastIndex=0;var $e=k.call(k.call(Y,pt,"\\$1"),/[\x00-\x1f]/g,De);return ce($e,"single",ee)}function De(Y){var ee=Y.charCodeAt(0),Xe={8:"b",9:"t",10:"n",12:"f",13:"r"}[ee];return Xe?"\\"+Xe:"\\x"+(ee<16?"0":"")+R.call(ee.toString(16))}function Be(Y){return"Object("+Y+")"}function it(Y){return Y+" { ? }"}function kn(Y,ee,Xe,ke){var pt=ke?Ot(Xe,ke):L.call(Xe,", ");return Y+" ("+ee+") {"+pt+"}"}function Rt(Y){for(var ee=0;ee<Y.length;ee++)if(Ut(Y[ee],` 81`)>=0)return!1;return!0}function An(Y,ee){var Xe;if(Y.indent===" ")Xe=" ";else if(typeof Y.indent=="number"&&Y.indent>0)Xe=L.call(Array(Y.indent+1)," ");else return null;return{base:Xe,prev:L.call(Array(ee+1),Xe)}}function Ot(Y,ee){if(Y.length===0)return"";var Xe=` 82`+ee.prev+ee.base;return Xe+L.call(Y,","+Xe)+` 83`+ee.prev}function tn(Y,ee){var Xe=Se(Y),ke=[];if(Xe){ke.length=Y.length;for(var pt=0;pt<Y.length;pt++)ke[pt]=H(Y,pt)?ee(Y[pt],Y):""}var $e=typeof I=="function"?I(Y):[],fn;if(X){fn={};for(var Yt=0;Yt<$e.length;Yt++)fn["$"+$e[Yt]]=$e[Yt]}for(var nn in Y)H(Y,nn)&&(Xe&&String(Number(nn))===nn&&nn<Y.length||X&&fn["$"+nn]instanceof Symbol||(O.call(/[^\w$]/,nn)?ke.push(ee(nn,Y)+": "+ee(Y[nn],Y)):ke.push(nn+": "+ee(Y[nn],Y))));if(typeof I=="function")for(var Ln=0;Ln<$e.length;Ln++)U.call(Y,$e[Ln])&&ke.push("["+ee($e[Ln])+"]: "+ee(Y[$e[Ln]],Y));return ke}return dx}var fx,Fk;function J9(){if(Fk)return fx;Fk=1;var t=Pg(),e=ju(),n=function(c,f,h){for(var p=c,g;(g=p.next)!=null;p=g)if(g.key===f)return p.next=g.next,h||(g.next=c.next,c.next=g),g},r=function(c,f){if(c){var h=n(c,f);return h&&h.value}},i=function(c,f,h){var p=n(c,f);p?p.value=h:c.next={key:f,next:c.next,value:h}},s=function(c,f){return c?!!n(c,f):!1},o=function(c,f){if(c)return n(c,f,!0)};return fx=function(){var f,h={assert:function(p){if(!h.has(p))throw new e("Side channel does not contain "+t(p))},delete:function(p){var g=f&&f.next,x=o(f,p);return x&&g&&g===x&&(f=void 0),!!x},get:function(p){return r(f,p)},has:function(p){return s(f,p)},set:function(p,g){f||(f={next:void 0}),i(f,p,g)}};return h},fx}var hx,qk;function e3(){return qk||(qk=1,hx=Object),hx}var px,Hk;function Q9(){return Hk||(Hk=1,px=Error),px}var mx,Gk;function Z9(){return Gk||(Gk=1,mx=EvalError),mx}var gx,Vk;function e7(){return Vk||(Vk=1,gx=RangeError),gx}var yx,Kk;function t7(){return Kk||(Kk=1,yx=ReferenceError),yx}var vx,Yk;function n7(){return Yk||(Yk=1,vx=SyntaxError),vx}var xx,Wk;function r7(){return Wk||(Wk=1,xx=URIError),xx}var bx,Xk;function i7(){return Xk||(Xk=1,bx=Math.abs),bx}var _x,Jk;function a7(){return Jk||(Jk=1,_x=Math.floor),_x}var wx,Qk;function s7(){return Qk||(Qk=1,wx=Math.max),wx}var Sx,Zk;function l7(){return Zk||(Zk=1,Sx=Math.min),Sx}var Ex,eA;function o7(){return eA||(eA=1,Ex=Math.pow),Ex}var jx,tA;function c7(){return tA||(tA=1,jx=Math.round),jx}var Nx,nA;function u7(){return nA||(nA=1,Nx=Number.isNaN||function(e){return e!==e}),Nx}var Tx,rA;function d7(){if(rA)return Tx;rA=1;var t=u7();return Tx=function(n){return t(n)||n===0?n:n<0?-1:1},Tx}var kx,iA;function f7(){return iA||(iA=1,kx=Object.getOwnPropertyDescriptor),kx}var Ax,aA;function t3(){if(aA)return Ax;aA=1;var t=f7();if(t)try{t([],"length")}catch{t=null}return Ax=t,Ax}var Ox,sA;function h7(){if(sA)return Ox;sA=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Ox=t,Ox}var Rx,lA;function p7(){return lA||(lA=1,Rx=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,n);if(c.value!==i||c.enumerable!==!0)return!1}return!0}),Rx}var Cx,oA;function m7(){if(oA)return Cx;oA=1;var t=typeof Symbol<"u"&&Symbol,e=p7();return Cx=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Cx}var Dx,cA;function n3(){return cA||(cA=1,Dx=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Dx}var Lx,uA;function r3(){if(uA)return Lx;uA=1;var t=e3();return Lx=t.getPrototypeOf||null,Lx}var Px,dA;function g7(){if(dA)return Px;dA=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,r="[object Function]",i=function(f,h){for(var p=[],g=0;g<f.length;g+=1)p[g]=f[g];for(var x=0;x<h.length;x+=1)p[x+f.length]=h[x];return p},s=function(f,h){for(var p=[],g=h,x=0;g<f.length;g+=1,x+=1)p[x]=f[g];return p},o=function(c,f){for(var h="",p=0;p<c.length;p+=1)h+=c[p],p+1<c.length&&(h+=f);return h};return Px=function(f){var h=this;if(typeof h!="function"||e.apply(h)!==r)throw new TypeError(t+h);for(var p=s(arguments,1),g,x=function(){if(this instanceof g){var E=h.apply(this,i(p,arguments));return Object(E)===E?E:this}return h.apply(f,i(p,arguments))},v=n(0,h.length-p.length),w=[],_=0;_<v;_++)w[_]="$"+_;if(g=Function("binder","return function ("+o(w,",")+"){ return binder.apply(this,arguments); }")(x),h.prototype){var S=function(){};S.prototype=h.prototype,g.prototype=new S,S.prototype=null}return g},Px}var Mx,fA;function Mg(){if(fA)return Mx;fA=1;var t=g7();return Mx=Function.prototype.bind||t,Mx}var Ix,hA;function j1(){return hA||(hA=1,Ix=Function.prototype.call),Ix}var zx,pA;function i3(){return pA||(pA=1,zx=Function.prototype.apply),zx}var Ux,mA;function y7(){return mA||(mA=1,Ux=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ux}var Bx,gA;function v7(){if(gA)return Bx;gA=1;var t=Mg(),e=i3(),n=j1(),r=y7();return Bx=r||t.call(n,e),Bx}var $x,yA;function a3(){if(yA)return $x;yA=1;var t=Mg(),e=ju(),n=j1(),r=v7();return $x=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return r(t,n,s)},$x}var Fx,vA;function x7(){if(vA)return Fx;vA=1;var t=a3(),e=t3(),n;try{n=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var r=!!n&&e&&e(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Fx=r&&typeof r.get=="function"?t([r.get]):typeof s=="function"?function(c){return s(c==null?c:i(c))}:!1,Fx}var qx,xA;function b7(){if(xA)return qx;xA=1;var t=n3(),e=r3(),n=x7();return qx=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:n?function(i){return n(i)}:null,qx}var Hx,bA;function _7(){if(bA)return Hx;bA=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=Mg();return Hx=n.call(t,e),Hx}var Gx,_A;function N1(){if(_A)return Gx;_A=1;var t,e=e3(),n=Q9(),r=Z9(),i=e7(),s=t7(),o=n7(),c=ju(),f=r7(),h=i7(),p=a7(),g=s7(),x=l7(),v=o7(),w=c7(),_=d7(),S=Function,E=function(Te){try{return S('"use strict"; return ('+Te+").constructor;")()}catch{}},N=t3(),k=h7(),R=function(){throw new c},D=N?(function(){try{return arguments.callee,R}catch{try{return N(arguments,"callee").get}catch{return R}}})():R,O=m7()(),T=b7(),L=r3(),M=n3(),q=i3(),B=j1(),I={},Z=typeof Uint8Array>"u"||!T?t:T(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":O&&T?T([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&T?T(T([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!T?t:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":N,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!T?t:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&T?T(""[Symbol.iterator]()):t,"%Symbol%":O?Symbol:t,"%SyntaxError%":o,"%ThrowTypeError%":D,"%TypedArray%":Z,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":q,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":L,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":g,"%Math.min%":x,"%Math.pow%":v,"%Math.round%":w,"%Math.sign%":_,"%Reflect.getPrototypeOf%":M};if(T)try{null.error}catch(Te){var K=T(T(Te));X["%Error.prototype%"]=K}var U=function Te(Ae){var We;if(Ae==="%AsyncFunction%")We=E("async function () {}");else if(Ae==="%GeneratorFunction%")We=E("function* () {}");else if(Ae==="%AsyncGeneratorFunction%")We=E("async function* () {}");else if(Ae==="%AsyncGenerator%"){var Ge=Te("%AsyncGeneratorFunction%");Ge&&(We=Ge.prototype)}else if(Ae==="%AsyncIteratorPrototype%"){var Ce=Te("%AsyncGenerator%");Ce&&T&&(We=T(Ce.prototype))}return X[Ae]=We,We},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Mg(),he=_7(),A=G.call(B,Array.prototype.concat),z=G.call(q,Array.prototype.splice),Q=G.call(B,String.prototype.replace),P=G.call(B,String.prototype.slice),ce=G.call(B,RegExp.prototype.exec),ve=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ye=/\\(\\)?/g,Se=function(Ae){var We=P(Ae,0,1),Ge=P(Ae,-1);if(We==="%"&&Ge!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(Ge==="%"&&We!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Ce=[];return Q(Ae,ve,function(Ve,re,ue,H){Ce[Ce.length]=ue?Q(H,ye,"$1"):re||Ve}),Ce},He=function(Ae,We){var Ge=Ae,Ce;if(he(W,Ge)&&(Ce=W[Ge],Ge="%"+Ce[0]+"%"),he(X,Ge)){var Ve=X[Ge];if(Ve===I&&(Ve=U(Ge)),typeof Ve>"u"&&!We)throw new c("intrinsic "+Ae+" exists, but is not available. Please file an issue!");return{alias:Ce,name:Ge,value:Ve}}throw new o("intrinsic "+Ae+" does not exist!")};return Gx=function(Ae,We){if(typeof Ae!="string"||Ae.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof We!="boolean")throw new c('"allowMissing" argument must be a boolean');if(ce(/^%?[^%]*%?$/,Ae)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ge=Se(Ae),Ce=Ge.length>0?Ge[0]:"",Ve=He("%"+Ce+"%",We),re=Ve.name,ue=Ve.value,H=!1,Ne=Ve.alias;Ne&&(Ce=Ne[0],z(Ge,A([0,1],Ne)));for(var xt=1,Ut=!0;xt<Ge.length;xt+=1){var ut=Ge[xt],xn=P(ut,0,1),Qn=P(ut,-1);if((xn==='"'||xn==="'"||xn==="`"||Qn==='"'||Qn==="'"||Qn==="`")&&xn!==Qn)throw new o("property names with quotes must have matching quotes");if((ut==="constructor"||!Ut)&&(H=!0),Ce+="."+ut,re="%"+Ce+"%",he(X,re))ue=X[re];else if(ue!=null){if(!(ut in ue)){if(!We)throw new c("base intrinsic for "+Ae+" exists, but the property is not available.");return}if(N&&xt+1>=Ge.length){var It=N(ue,ut);Ut=!!It,Ut&&"get"in It&&!("originalValue"in It.get)?ue=It.get:ue=ue[ut]}else Ut=he(ue,ut),ue=ue[ut];Ut&&!H&&(X[re]=ue)}}return ue},Gx}var Vx,wA;function s3(){if(wA)return Vx;wA=1;var t=N1(),e=a3(),n=e([t("%String.prototype.indexOf%")]);return Vx=function(i,s){var o=t(i,!!s);return typeof o=="function"&&n(i,".prototype.")>-1?e([o]):o},Vx}var Kx,SA;function l3(){if(SA)return Kx;SA=1;var t=N1(),e=s3(),n=Pg(),r=ju(),i=t("%Map%",!0),s=e("Map.prototype.get",!0),o=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),f=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return Kx=!!i&&function(){var g,x={assert:function(v){if(!x.has(v))throw new r("Side channel does not contain "+n(v))},delete:function(v){if(g){var w=f(g,v);return h(g)===0&&(g=void 0),w}return!1},get:function(v){if(g)return s(g,v)},has:function(v){return g?c(g,v):!1},set:function(v,w){g||(g=new i),o(g,v,w)}};return x},Kx}var Yx,EA;function w7(){if(EA)return Yx;EA=1;var t=N1(),e=s3(),n=Pg(),r=l3(),i=ju(),s=t("%WeakMap%",!0),o=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),f=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return Yx=s?function(){var g,x,v={assert:function(w){if(!v.has(w))throw new i("Side channel does not contain "+n(w))},delete:function(w){if(s&&w&&(typeof w=="object"||typeof w=="function")){if(g)return h(g,w)}else if(r&&x)return x.delete(w);return!1},get:function(w){return s&&w&&(typeof w=="object"||typeof w=="function")&&g?o(g,w):x&&x.get(w)},has:function(w){return s&&w&&(typeof w=="object"||typeof w=="function")&&g?f(g,w):!!x&&x.has(w)},set:function(w,_){s&&w&&(typeof w=="object"||typeof w=="function")?(g||(g=new s),c(g,w,_)):r&&(x||(x=r()),x.set(w,_))}};return v}:r,Yx}var Wx,jA;function o3(){if(jA)return Wx;jA=1;var t=ju(),e=Pg(),n=J9(),r=l3(),i=w7(),s=i||r||n;return Wx=function(){var c,f={assert:function(h){if(!f.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){return!!c&&c.delete(h)},get:function(h){return c&&c.get(h)},has:function(h){return!!c&&c.has(h)},set:function(h,p){c||(c=s()),c.set(h,p)}};return f},Wx}var Xx,NA;function T1(){if(NA)return Xx;NA=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Xx={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Xx}var Jx,TA;function c3(){if(TA)return Jx;TA=1;var t=T1(),e=o3(),n=Object.prototype.hasOwnProperty,r=Array.isArray,i=e(),s=function(T,L){return i.set(T,L),T},o=function(T){return i.has(T)},c=function(T){return i.get(T)},f=function(T,L){i.set(T,L)},h=(function(){for(var O=[],T=0;T<256;++T)O[O.length]="%"+((T<16?"0":"")+T.toString(16)).toUpperCase();return O})(),p=function(T){for(;T.length>1;){var L=T.pop(),M=L.obj[L.prop];if(r(M)){for(var q=[],B=0;B<M.length;++B)typeof M[B]<"u"&&(q[q.length]=M[B]);L.obj[L.prop]=q}}},g=function(T,L){for(var M=L&&L.plainObjects?{__proto__:null}:{},q=0;q<T.length;++q)typeof T[q]<"u"&&(M[q]=T[q]);return M},x=function O(T,L,M){if(!L)return T;if(typeof L!="object"&&typeof L!="function"){if(r(T)){var q=T.length;if(M&&typeof M.arrayLimit=="number"&&q>M.arrayLimit)return s(g(T.concat(L),M),q);T[q]=L}else if(T&&typeof T=="object")if(o(T)){var B=c(T)+1;T[B]=L,f(T,B)}else{if(M&&M.strictMerge)return[T,L];(M&&(M.plainObjects||M.allowPrototypes)||!n.call(Object.prototype,L))&&(T[L]=!0)}else return[T,L];return T}if(!T||typeof T!="object"){if(o(L)){for(var I=Object.keys(L),Z=M&&M.plainObjects?{__proto__:null,0:T}:{0:T},X=0;X<I.length;X++){var K=parseInt(I[X],10);Z[K+1]=L[I[X]]}return s(Z,c(L)+1)}var U=[T].concat(L);return M&&typeof M.arrayLimit=="number"&&U.length>M.arrayLimit?s(g(U,M),U.length-1):U}var W=T;return r(T)&&!r(L)&&(W=g(T,M)),r(T)&&r(L)?(L.forEach(function(G,he){if(n.call(T,he)){var A=T[he];A&&typeof A=="object"&&G&&typeof G=="object"?T[he]=O(A,G,M):T[T.length]=G}else T[he]=G}),T):Object.keys(L).reduce(function(G,he){var A=L[he];if(n.call(G,he)?G[he]=O(G[he],A,M):G[he]=A,o(L)&&!o(G)&&s(G,c(L)),o(G)){var z=parseInt(he,10);String(z)===he&&z>=0&&z>c(G)&&f(G,z)}return G},W)},v=function(T,L){return Object.keys(L).reduce(function(M,q){return M[q]=L[q],M},T)},w=function(O,T,L){var M=O.replace(/\+/g," ");if(L==="iso-8859-1")return M.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(M)}catch{return M}},_=1024,S=function(T,L,M,q,B){if(T.length===0)return T;var I=T;if(typeof T=="symbol"?I=Symbol.prototype.toString.call(T):typeof T!="string"&&(I=String(T)),M==="iso-8859-1")return escape(I).replace(/%u[0-9a-f]{4}/gi,function(he){return"%26%23"+parseInt(he.slice(2),16)+"%3B"});for(var Z="",X=0;X<I.length;X+=_){for(var K=I.length>=_?I.slice(X,X+_):I,U=[],W=0;W<K.length;++W){var G=K.charCodeAt(W);if(G===45||G===46||G===95||G===126||G>=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||B===t.RFC1738&&(G===40||G===41)){U[U.length]=K.charAt(W);continue}if(G<128){U[U.length]=h[G];continue}if(G<2048){U[U.length]=h[192|G>>6]+h[128|G&63];continue}if(G<55296||G>=57344){U[U.length]=h[224|G>>12]+h[128|G>>6&63]+h[128|G&63];continue}W+=1,G=65536+((G&1023)<<10|K.charCodeAt(W)&1023),U[U.length]=h[240|G>>18]+h[128|G>>12&63]+h[128|G>>6&63]+h[128|G&63]}Z+=U.join("")}return Z},E=function(T){for(var L=[{obj:{o:T},prop:"o"}],M=[],q=0;q<L.length;++q)for(var B=L[q],I=B.obj[B.prop],Z=Object.keys(I),X=0;X<Z.length;++X){var K=Z[X],U=I[K];typeof U=="object"&&U!==null&&M.indexOf(U)===-1&&(L[L.length]={obj:I,prop:K},M[M.length]=U)}return p(L),T},N=function(T){return Object.prototype.toString.call(T)==="[object RegExp]"},k=function(T){return!T||typeof T!="object"?!1:!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},R=function(T,L,M,q){if(o(T)){var B=c(T)+1;return T[B]=L,f(T,B),T}var I=[].concat(T,L);return I.length>M?s(g(I,{plainObjects:q}),I.length-1):I},D=function(T,L){if(r(T)){for(var M=[],q=0;q<T.length;q+=1)M[M.length]=L(T[q]);return M}return L(T)};return Jx={arrayToObject:g,assign:v,combine:R,compact:E,decode:w,encode:S,isBuffer:k,isOverflow:o,isRegExp:N,markOverflow:s,maybeMap:D,merge:x},Jx}var Qx,kA;function S7(){if(kA)return Qx;kA=1;var t=o3(),e=c3(),n=T1(),r=Object.prototype.hasOwnProperty,i={brackets:function(S){return S+"[]"},comma:"comma",indices:function(S,E){return S+"["+E+"]"},repeat:function(S){return S}},s=Array.isArray,o=Array.prototype.push,c=function(_,S){o.apply(_,s(S)?S:[S])},f=Date.prototype.toISOString,h=n.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:n.formatters[h],indices:!1,serializeDate:function(S){return f.call(S)},skipNulls:!1,strictNullHandling:!1},g=function(S){return typeof S=="string"||typeof S=="number"||typeof S=="boolean"||typeof S=="symbol"||typeof S=="bigint"},x={},v=function _(S,E,N,k,R,D,O,T,L,M,q,B,I,Z,X,K,U,W){for(var G=S,he=W,A=0,z=!1;(he=he.get(x))!==void 0&&!z;){var Q=he.get(S);if(A+=1,typeof Q<"u"){if(Q===A)throw new RangeError("Cyclic object value");z=!0}typeof he.get(x)>"u"&&(A=0)}if(typeof M=="function"?G=M(E,G):G instanceof Date?G=I(G):N==="comma"&&s(G)&&(G=e.maybeMap(G,function(re){return re instanceof Date?I(re):re})),G===null){if(D)return L&&!K?L(E,p.encoder,U,"key",Z):E;G=""}if(g(G)||e.isBuffer(G)){if(L){var P=K?E:L(E,p.encoder,U,"key",Z);return[X(P)+"="+X(L(G,p.encoder,U,"value",Z))]}return[X(E)+"="+X(String(G))]}var ce=[];if(typeof G>"u")return ce;var ve;if(N==="comma"&&s(G))K&&L&&(G=e.maybeMap(G,L)),ve=[{value:G.length>0?G.join(",")||null:void 0}];else if(s(M))ve=M;else{var ye=Object.keys(G);ve=q?ye.sort(q):ye}var Se=T?String(E).replace(/\./g,"%2E"):String(E),He=k&&s(G)&&G.length===1?Se+"[]":Se;if(R&&s(G)&&G.length===0)return He+"[]";for(var Te=0;Te<ve.length;++Te){var Ae=ve[Te],We=typeof Ae=="object"&&Ae&&typeof Ae.value<"u"?Ae.value:G[Ae];if(!(O&&We===null)){var Ge=B&&T?String(Ae).replace(/\./g,"%2E"):String(Ae),Ce=s(G)?typeof N=="function"?N(He,Ge):He:He+(B?"."+Ge:"["+Ge+"]");W.set(S,A);var Ve=t();Ve.set(x,W),c(ce,_(We,Ce,N,k,R,D,O,T,N==="comma"&&K&&s(G)?null:L,M,q,B,I,Z,X,K,U,Ve))}}return ce},w=function(S){if(!S)return p;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.encodeDotInKeys<"u"&&typeof S.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(S.encoder!==null&&typeof S.encoder<"u"&&typeof S.encoder!="function")throw new TypeError("Encoder has to be a function.");var E=S.charset||p.charset;if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var N=n.default;if(typeof S.format<"u"){if(!r.call(n.formatters,S.format))throw new TypeError("Unknown format option provided.");N=S.format}var k=n.formatters[N],R=p.filter;(typeof S.filter=="function"||s(S.filter))&&(R=S.filter);var D;if(S.arrayFormat in i?D=S.arrayFormat:"indices"in S?D=S.indices?"indices":"repeat":D=p.arrayFormat,"commaRoundTrip"in S&&typeof S.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=typeof S.allowDots>"u"?S.encodeDotInKeys===!0?!0:p.allowDots:!!S.allowDots;return{addQueryPrefix:typeof S.addQueryPrefix=="boolean"?S.addQueryPrefix:p.addQueryPrefix,allowDots:O,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:D,charset:E,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!S.commaRoundTrip,delimiter:typeof S.delimiter>"u"?p.delimiter:S.delimiter,encode:typeof S.encode=="boolean"?S.encode:p.encode,encodeDotInKeys:typeof S.encodeDotInKeys=="boolean"?S.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof S.encoder=="function"?S.encoder:p.encoder,encodeValuesOnly:typeof S.encodeValuesOnly=="boolean"?S.encodeValuesOnly:p.encodeValuesOnly,filter:R,format:N,formatter:k,serializeDate:typeof S.serializeDate=="function"?S.serializeDate:p.serializeDate,skipNulls:typeof S.skipNulls=="boolean"?S.skipNulls:p.skipNulls,sort:typeof S.sort=="function"?S.sort:null,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:p.strictNullHandling}};return Qx=function(_,S){var E=_,N=w(S),k,R;typeof N.filter=="function"?(R=N.filter,E=R("",E)):s(N.filter)&&(R=N.filter,k=R);var D=[];if(typeof E!="object"||E===null)return"";var O=i[N.arrayFormat],T=O==="comma"&&N.commaRoundTrip;k||(k=Object.keys(E)),N.sort&&k.sort(N.sort);for(var L=t(),M=0;M<k.length;++M){var q=k[M],B=E[q];N.skipNulls&&B===null||c(D,v(B,q,O,T,N.allowEmptyArrays,N.strictNullHandling,N.skipNulls,N.encodeDotInKeys,N.encode?N.encoder:null,N.filter,N.sort,N.allowDots,N.serializeDate,N.format,N.formatter,N.encodeValuesOnly,N.charset,L))}var I=D.join(N.delimiter),Z=N.addQueryPrefix===!0?"?":"";return N.charsetSentinel&&(N.charset==="iso-8859-1"?Z+="utf8=%26%2310003%3B&":Z+="utf8=%E2%9C%93&"),I.length>0?Z+I:""},Qx}var Zx,AA;function E7(){if(AA)return Zx;AA=1;var t=c3(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(v){return v.replace(/&#(\d+);/g,function(w,_){return String.fromCharCode(parseInt(_,10))})},s=function(v,w,_){if(v&&typeof v=="string"&&w.comma&&v.indexOf(",")>-1)return v.split(",");if(w.throwOnLimitExceeded&&_>=w.arrayLimit)throw new RangeError("Array limit exceeded. Only "+w.arrayLimit+" element"+(w.arrayLimit===1?"":"s")+" allowed in an array.");return v},o="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",f=function(w,_){var S={__proto__:null},E=_.ignoreQueryPrefix?w.replace(/^\?/,""):w;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var N=_.parameterLimit===1/0?void 0:_.parameterLimit,k=E.split(_.delimiter,_.throwOnLimitExceeded?N+1:N);if(_.throwOnLimitExceeded&&k.length>N)throw new RangeError("Parameter limit exceeded. Only "+N+" parameter"+(N===1?"":"s")+" allowed.");var R=-1,D,O=_.charset;if(_.charsetSentinel)for(D=0;D<k.length;++D)k[D].indexOf("utf8=")===0&&(k[D]===c?O="utf-8":k[D]===o&&(O="iso-8859-1"),R=D,D=k.length);for(D=0;D<k.length;++D)if(D!==R){var T=k[D],L=T.indexOf("]="),M=L===-1?T.indexOf("="):L+1,q,B;if(M===-1?(q=_.decoder(T,r.decoder,O,"key"),B=_.strictNullHandling?null:""):(q=_.decoder(T.slice(0,M),r.decoder,O,"key"),q!==null&&(B=t.maybeMap(s(T.slice(M+1),_,n(S[q])?S[q].length:0),function(Z){return _.decoder(Z,r.decoder,O,"value")}))),B&&_.interpretNumericEntities&&O==="iso-8859-1"&&(B=i(String(B))),T.indexOf("[]=")>-1&&(B=n(B)?[B]:B),_.comma&&n(B)&&B.length>_.arrayLimit){if(_.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");B=t.combine([],B,_.arrayLimit,_.plainObjects)}if(q!==null){var I=e.call(S,q);I&&(_.duplicates==="combine"||T.indexOf("[]=")>-1)?S[q]=t.combine(S[q],B,_.arrayLimit,_.plainObjects):(!I||_.duplicates==="last")&&(S[q]=B)}}return S},h=function(v,w,_,S){var E=0;if(v.length>0&&v[v.length-1]==="[]"){var N=v.slice(0,-1).join("");E=Array.isArray(w)&&w[N]?w[N].length:0}for(var k=S?w:s(w,_,E),R=v.length-1;R>=0;--R){var D,O=v[R];if(O==="[]"&&_.parseArrays)t.isOverflow(k)?D=k:D=_.allowEmptyArrays&&(k===""||_.strictNullHandling&&k===null)?[]:t.combine([],k,_.arrayLimit,_.plainObjects);else{D=_.plainObjects?{__proto__:null}:{};var T=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,L=_.decodeDotInKeys?T.replace(/%2E/g,"."):T,M=parseInt(L,10),q=!isNaN(M)&&O!==L&&String(M)===L&&M>=0&&_.parseArrays;if(!_.parseArrays&&L==="")D={0:k};else if(q&&M<_.arrayLimit)D=[],D[M]=k;else{if(q&&_.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");q?(D[M]=k,t.markOverflow(D,M)):L!=="__proto__"&&(D[L]=k)}}k=D}return k},p=function(w,_){var S=_.allowDots?w.replace(/\.([^.[]+)/g,"[$1]"):w;if(_.depth<=0)return!_.plainObjects&&e.call(Object.prototype,S)&&!_.allowPrototypes?void 0:[S];var E=/(\[[^[\]]*])/,N=/(\[[^[\]]*])/g,k=E.exec(S),R=k?S.slice(0,k.index):S,D=[];if(R){if(!_.plainObjects&&e.call(Object.prototype,R)&&!_.allowPrototypes)return;D[D.length]=R}for(var O=0;(k=N.exec(S))!==null&&O<_.depth;){O+=1;var T=k[1].slice(1,-1);if(!_.plainObjects&&e.call(Object.prototype,T)&&!_.allowPrototypes)return;D[D.length]=k[1]}if(k){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");D[D.length]="["+S.slice(k.index)+"]"}return D},g=function(w,_,S,E){if(w){var N=p(w,S);if(N)return h(N,_,S,E)}},x=function(w){if(!w)return r;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
83if(typeof w.decodeDotInKeys<"u"&&typeof w.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(w.decoder!==null&&typeof w.decoder<"u"&&typeof w.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof w.throwOnLimitExceeded<"u"&&typeof w.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof w.charset>"u"?r.charset:w.charset,S=typeof w.duplicates>"u"?r.duplicates:w.duplicates;if(S!=="combine"&&S!=="first"&&S!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof w.allowDots>"u"?w.decodeDotInKeys===!0?!0:r.allowDots:!!w.allowDots;return{allowDots:E,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof w.allowPrototypes=="boolean"?w.allowPrototypes:r.allowPrototypes,allowSparse:typeof w.allowSparse=="boolean"?w.allowSparse:r.allowSparse,arrayLimit:typeof w.arrayLimit=="number"?w.arrayLimit:r.arrayLimit,charset:_,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:r.charsetSentinel,comma:typeof w.comma=="boolean"?w.comma:r.comma,decodeDotInKeys:typeof w.decodeDotInKeys=="boolean"?w.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof w.decoder=="function"?w.decoder:r.decoder,delimiter:typeof w.delimiter=="string"||t.isRegExp(w.delimiter)?w.delimiter:r.delimiter,depth:typeof w.depth=="number"||w.depth===!1?+w.depth:r.depth,duplicates:S,ignoreQueryPrefix:w.ignoreQueryPrefix===!0,interpretNumericEntities:typeof w.interpretNumericEntities=="boolean"?w.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof w.parameterLimit=="number"?w.parameterLimit:r.parameterLimit,parseArrays:w.parseArrays!==!1,plainObjects:typeof w.plainObjects=="boolean"?w.plainObjects:r.plainObjects,strictDepth:typeof w.strictDepth=="boolean"?!!w.strictDepth:r.strictDepth,strictMerge:typeof w.strictMerge=="boolean"?!!w.strictMerge:r.strictMerge,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof w.throwOnLimitExceeded=="boolean"?w.throwOnLimitExceeded:!1}};return Zx=function(v,w){var _=x(w);if(v===""||v===null||typeof v>"u")return _.plainObjects?{__proto__:null}:{};for(var S=typeof v=="string"?f(v,_):v,E=_.plainObjects?{__proto__:null}:{},N=Object.keys(S),k=0;k<N.length;++k){var R=N[k],D=g(R,S[R],_,typeof v=="string");E=t.merge(E,D,_)}return _.allowSparse===!0?E:t.compact(E)},Zx}var eb,OA;function j7(){if(OA)return eb;OA=1;var t=S7(),e=E7(),n=T1();return eb={formats:n,parse:e,stringify:t},eb}var N7=j7();const T7=Ls(N7),k7=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function A7(t){const n={...{insecure:!1,retryOnError:!0,logHandler:(h,p)=>{if(h==="error"&&p){const g=[p.name,p.message].filter(x=>x).join(" - ");console.error(`[error] ${g}`),console.error(p);return}console.log(`[${h}] ${p}`)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},...t};if(!n.accessToken){const h=new TypeError("Expected parameter accessToken");throw n.logHandler("error",h),h}const r=n.insecure?"http":"https",i=n.space?`${n.space}/`:"";let s=n.defaultHostname,o=n.insecure?80:443;if(n.host&&k7.test(n.host)){const h=n.host.split(":");h.length===2?[s,o]=h:s=h[0]}n.basePath&&(n.basePath=`/${n.basePath.split("/").filter(Boolean).join("/")}`);const c=t.baseURL||`${r}://${s}:${o}${n.basePath}/spaces/${i}`;return!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken),{baseURL:c,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,fetchOptions:n.fetchOptions,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,paramsSerializer:{serialize:h=>T7.stringify(h)},logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError}}function O7(t){const e=Lg(t);return e.httpAgent=t.httpAgent,e.httpsAgent=t.httpsAgent,e}function u3(t,e){const n=A7(e),r=t.create(n);return r.httpClientParams=e,r.cloneWithNewParams=function(i){return u3(t,{...O7(e),...i})},e.onBeforeRequest&&r.interceptors.request.use(e.onBeforeRequest),typeof e.accessToken=="function"&&k9(r,e.accessToken),e.throttle&&K9(r,e.throttle),I9(r,e.retryLimit),e.onError&&r.interceptors.response.use(i=>i,e.onError),r}function Si({query:t}){const e={};return delete t.resolveLinks,e.params=Lg(t),e}function d3(t){const e=Object.getOwnPropertyNames(t);for(const n of e){const r=t[n];r&&typeof r=="object"&&d3(r)}return Object.freeze(t)}function R7(t){return d3(t.sys||{}),t}function RA(){const t=L9();if(!t)return null;const e=t.navigator.userAgent,n=t.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],s=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":s.indexOf(n)!==-1?"iOS":i.indexOf(n)!==-1?"Windows":/Android/.test(e)?"Android":/Linux/.test(n)?"Linux":null}function C7(){const t=jl.platform||"linux",e=jl.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return t in n?`${n[t]||"Linux"}/${e}`:null}function D7(t,e,n,r){const i=[];e&&i.push(`app ${e}`),n&&i.push(`integration ${n}`),i.push(`sdk ${t}`);let s=null;try{C9()?(s=RA(),i.push("platform ReactNative")):R9()?(s=C7(),i.push(`platform node.js/${D9()}`)):(s=RA(),i.push("platform browser"))}catch{s=null}return s&&i.push(`os ${s}`),`${i.filter(o=>o!=="").join("; ")};`}function f3(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,
83configurable:!1,writable:!1,value:function(){return Lg(this)}})}var tb,CA;function L7(){if(CA)return tb;CA=1;function t(e,n){return function(r){return e(n(r))}}return tb=t,tb}var nb,DA;function P7(){if(DA)return nb;DA=1;var t=L7(),e=t(Object.getPrototypeOf,Object);return nb=e,nb}var rb,LA;function M7(){if(LA)return rb;LA=1;var t=Q5(),e=P7(),n=Z5(),r="[object Object]",i=Function.prototype,s=Object.prototype,o=i.toString,c=s.hasOwnProperty,f=o.call(Object);function h(p){if(!n(p)||t(p)!=r)return!1;var g=e(p);if(g===null)return!0;var x=c.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&o.call(x)==f}return rb=h,rb}var I7=M7();const ib=Ls(I7);function z7(t){if(t?.headers?.Authorization){const e=`...${t.headers.Authorization.toString().substr(-5)}`;t.headers.Authorization=`Bearer ${e}`}if(t?.headers?.["X-Contentful-Resource-Resolution"]){const e=`...${t.headers["X-Contentful-Resource-Resolution"].toString().substr(-5)}`;t.headers["X-Contentful-Resource-Resolution"]=e}}function _i(t){const{config:e,response:n}=t;let r;if(z7(e),!ib(n)||!ib(e))throw t;const i=n?.data,s={status:n?.status,statusText:n?.statusText,message:"",details:{}};e&&ib(e)&&(s.request={url:e.url,headers:e.headers,method:e.method,payloadData:e.data}),i&&typeof i=="object"&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),r=i.sys?.id);const o=new Error;o.name=r&&r!=="Unknown"?r:`${n?.status} ${n?.statusText}`;try{o.message=JSON.stringify(s,null," ")}catch{o.message=s?.message??""}throw o}function U7(t){return function(n){return Object.assign({},t,n)}}var h3={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},k1={0:8203,1:8204,2:8205,3:65279},B7=new Array(4).fill(String.fromCodePoint(k1[0])).join("");function $7(t){let e=JSON.stringify(t);return`${B7}${Array.from(e).map(n=>{let r=n.charCodeAt(0);if(r>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${n} (${r})`);return Array.from(r.toString(4).padStart(4,"0")).map(i=>String.fromCodePoint(k1[i])).join("")}).join("")}`}function F7(t){return!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t)?!1:!!Date.parse(t)}function q7(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function H7(t,e,n="auto"){return n===!0||n==="auto"&&(F7(t)||q7(t))?t:`${t}${$7(e)}`}Object.fromEntries(Object.entries(k1).map(t=>t.reverse()));Object.fromEntries(Object.entries(h3).map(t=>t.reverse()));`${Object.values(h3).map(t=>`\\u{${t.toString(16)}}`).join("")}`;function _f(t,e){return H7(t,e)}var ab,PA;function G7(){if(PA)return ab;PA=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return ab=function(n,r,i){if(e.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var s=n.length;if(s===+s)for(var o=0;o<s;o++)r.call(i,n[o],o,n);else for(var c in n)t.call(n,c)&&r.call(i,n[c],c,n)},ab}var sb,MA;function V7(){if(MA)return sb;MA=1;var t=G7();sb=e;function e(n,r,i){if(arguments.length===3)return e.set(n,r,i);if(arguments.length===2)return e.get(n,r);var s=e.bind(e,n);for(var o in e)e.hasOwnProperty(o)&&(s[o]=e[o].bind(s,n));return s}return e.get=function(n,r){for(var i=Array.isArray(r)?r:e.parse(r),s=0;s<i.length;++s){var o=i[s];if(!(typeof n=="object"&&o in n))throw new Error("Invalid reference token: "+o);n=n[o]}return n},e.set=function(n,r,i){var s=Array.isArray(r)?r:e.parse(r),o=s[0];if(s.length===0)throw Error("Can not set the root object");for(var c=0;c<s.length-1;++c){var f=s[c];typeof f!="string"&&typeof f!="number"&&(f=String(f)),!(f==="__proto__"||f==="constructor"||f==="prototype")&&(f==="-"&&Array.isArray(n)&&(f=n.length),o=s[c+1],f in n||(o.match(/^(\d+|-)$/)?n[f]=[]:n[f]={}),n=n[f])}return o==="-"&&Array.isArray(n)&&(o=n.length),n[o]=i,this},e.remove=function(n,r){var i=Array.isArray(r)?r:e.parse(r),s=i[i.length-1];if(s===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var o=e.get(n,i.slice(0,-1));if(Array.isArray(o)){var c=+s;if(s===""&&isNaN(c))throw new Error('Invalid array index: "'+s+'"');Array.prototype.splice.call(o,c,1)}else delete o[s]},e.dict=function(n,r){var i={};return e.walk(n,function(s,o){i[o]=s},r),i},e.walk=function(n,r,i){var s=[];i=i||function(o){var c=Object.prototype.toString.call(o);return c==="[object Object]"||c==="[object Array]"},(function o(c){t(c,function(f,h){s.push(String(h)),i(f)?o(f):r(f,e.compile(s)),s.pop()})})(n)},e.has=function(n,r){try{e.get(n,r)}catch{return!1}return!0},e.escape=function(n){return n.toString().replace(/~/g,"~0").replace(/\//g,"~1")},e.unescape=function(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")},e.parse=function(n){if(n==="")return[];if(n.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+n);return n.substring(1).split(/\//).map(e.unescape)},e.compile=function(n){return n.length===0?"":"/"+n.map(e.escape).join("/")},sb}var qa=V7();const K7=({pointer:t,mappings:e,data:n,hiddenStrings:r})=>{const i=e[t];if(i){delete e[t];const s=sw(n,t);for(const o of s){e[o]=i;const c=qa.get(n,o),f=_f(c,r);qa.set(n,o,f)}}else{const s=sw(n,t);for(const o of s){const c=qa.get(n,o),f=_f(c,r);qa.set(n,o,f)}}};function Y7(t){return"content"in t&&!!t.content}const sw=(t,e="")=>{const n=[],r=qa.get(t,e);if(Y7(r))for(let i=0;i<r.content.length;i++)r.content[i].nodeType==="text"?n.push(`${e}/content/${i}/value`):n.push(...sw(t,`${e}/content/${i}`));return n},IA=({entityId:t,entityType:e,space:n,environment:r,field:i,locale:s,editorInterface:o,fieldType:c,targetOrigin:f,platform:h})=>({origin:"contentful.com",href:`${`https://app.contentful.com/spaces/${n}/environments/${r}`}/${e==="Entry"?"entries":"assets"}/${t}/?focusedField=${i}
83&focusedLocale=${s}&source=vercel-content-link`,contentful:{editorInterface:o,fieldType:c}}),W7=t=>["builtin","sidebar-builtin","editor-builtin"].includes(t),X7=t=>Q7.includes(t);function J7(t){if(typeof structuredClone=="function")return structuredClone(t);try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to clone data:",t,e),t}}const Q7=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function zA(t,e,n,r,i,s,o){const c=o?e[o]:e;switch(t){case"Symbol":{const f=_f(c,n);qa.set(r,i,f);break}case"Text":{const f=_f(c,n);qa.set(r,i,f);break}case"RichText":{K7({pointer:"",mappings:s,data:c,hiddenStrings:n});break}case"Array":{const f=c.map(h=>typeof h=="string"?_f(h,n):h);qa.set(r,i,f);break}}}const rm=(t,e,n,r,i)=>{if(!t.fields)return;const{contentSourceMaps:s}=t.sys;if(!s)return;const{mappings:o}=s;for(const c in o){const{source:f}=o[c],h=t.sys.space.sys.id,p=t.sys.environment.sys.id,g=t.sys.id,x=t.sys.type,v=e[f.fieldType],w=n[f.editorInterface];if(W7(w.widgetNamespace)&&!X7(w.widgetId))continue;const _=c.startsWith("/")?c:`/${c}`;if(qa.has(t,_)){const S=qa.get(t,_);if(S===null)return;const E=_.split("/").pop();if(!E){console.error("Field name could not be extracted from the pointer",_);return}const N=t.sys.locale;if(N){const k=IA({entityId:g,entityType:x,space:h,environment:p,field:E,locale:N,editorInterface:w,fieldType:v,targetOrigin:r,platform:i});zA(v,S,k,t,_,o)}else Object.keys(S).forEach(k=>{const R=IA({entityId:g,entityType:x,space:h,environment:p,field:E,locale:k,editorInterface:w,fieldType:v,targetOrigin:r,platform:i});zA(v,S,R,t,`${_}/${k}`,o,k)})}}}
83,Z7=(t,e,n)=>{var r;const i=J7(t);if(i.sys&&"items"in i){const s=i;if(!((r=s.sys)!=null&&r.contentSourceMapsLookup))return s;const{contentSourceMapsLookup:{fieldTypes:o,editorInterfaces:c}}=s.sys,{items:f,includes:h}=s;f.forEach(p=>rm(p,o,c,e,n)),h&&h.Entry&&h.Entry.forEach(p=>rm(p,o,c,e,n)),h&&h.Asset&&h.Asset.forEach(p=>rm(p,o,c,e,n))}else{const s=i;if(!s.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),s;rm(s,s.sys.contentSourceMapsLookup.fieldTypes,s.sys.contentSourceMapsLookup.editorInterfaces,e,n)}return i};var eG=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},tG=(function(){function t(e,n){var r=[],i=!0,s=!1,o=void 0;try{for(var c=e[Symbol.iterator](),f;!(i=(f=c.next()).done)&&(r.push(f.value),!(n&&r.length===n));i=!0);}catch(h){s=!0,o=h}finally{try{!i&&c.return&&c.return()}finally{if(s)throw o}}return r}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();function Cd(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var Jf={},nG=function(e){return e&&e.sys&&e.sys.type==="Link"},rG=function(e){return e&&e.sys&&e.sys.type==="ResourceLink"},iG=function(e){return e.space&&e.environment?[e.type+"!"+e.id,e.space.sys.id+"!"+e.environment.sys.id+"!"+e.type+"!"+e.id]:[e.type+"!"+e.id]},UA=function(e,n){var r=n.entryId,i=n.linkType,s=n.spaceId,o=n.environmentId;return s&&o?e.get(s+"!"+o+"!"+i+"!"+r):e.get(i+"!"+r)},aG=function(e){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(e)){var r=e.match(n),i=tG(r,4);i[0];var s=i[1],o=i[2],c=o===void 0?"master":o,f=i[3];return{spaceId:s,environmentId:c,entryId:f}}},sG=function(e,n){var r=n.sys,i=r.type,s=r.linkType;if(i==="ResourceLink"){if(!s.startsWith("Contentful:"))return n;var o=n.sys.urn,c=aG(o),f=c.spaceId,h=c.environmentId,p=c.entryId,g=s.split(":")[1];return UA(e,{linkType:g,entryId:p,spaceId:f,environmentId:h})||Jf}var x=n.sys.id;return UA(e,{linkType:s,entryId:x})||Jf},lG=function(e){if(Array.isArray(e))return e.filter(function(r){return r!==Jf});for(var n in e)e[n]===Jf&&delete e[n];return e},oG=function t(e,n,r,i){if(n(e))return r(e);if(e&&(typeof e>"u"?"undefined":eG(e))==="object"){for(var s in e)e.hasOwnProperty(s)&&(e[s]=t(e[s],n,r,i));i&&(e=lG(e))}return e},cG=function(e,n,r){var i=sG(e,n);return i===Jf?r?i:n:i},uG=function(e,n){if(!Array.isArray(n))return e;var r=Object.keys(e).filter(function(i){return n.indexOf(i)!==-1});return r.reduce(function(i,s){return i[s]=e[s],i},{})}
83,p3=function(e,n){if(n=n||{},!e.items)return[];var r=Lg(e),i=Object.keys(r.includes||{}).reduce(function(c,f){return[].concat(Cd(c),Cd(e.includes[f]))},[]),s=[].concat(Cd(r.items),Cd(i)).filter(function(c){return!!c.sys}),o=new Map(s.reduce(function(c,f){var h=iG(f.sys).map(function(p){return[p,f]});return c.push.apply(c,Cd(h)),c},[]));return s.forEach(function(c){var f=uG(c,n.itemEntryPoints);Object.assign(c,oG(f,function(h){return nG(h)||rG(h)},function(h){return cG(o,h,n.removeUnresolved)},n.removeUnresolved))}),r.items},im={exports:{}},BA;function dG(){return BA||(BA=1,(function(t,e){e=t.exports=n,e.getSerialize=r;function n(i,s,o,c){return JSON.stringify(i,r(s,c),o)}function r(i,s){var o=[],c=[];return s==null&&(s=function(f,h){return o[0]===h?"[Circular ~]":"[Circular ~."+c.slice(0,o.indexOf(h)).join(".")+"]"}),function(f,h){if(o.length>0){var p=o.indexOf(this);~p?o.splice(p+1):o.push(this),~p?c.splice(p,1/0,f):c.push(f),~o.indexOf(h)&&(h=s.call(this,f,h))}else o.push(h);return i==null?h:i.call(this,f,h)}}})(im,im.exports)),im.exports}var fG=dG();const hG=Ls(fG);function m3(t){return Object.defineProperty(t,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(e=null,n=""){return hG(this,e,n,(r,i)=>({sys:{type:"Link",linkType:"Entry",id:i.sys.id,circular:!0}}))}})}async function pG(t,e,n){if(!e||!e.initial&&!e.nextSyncToken&&!e.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(e.content_type&&!e.type)e.type="Entry";else if(e.content_type&&e.type&&e.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const r={withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0},{withoutLinkResolution:i,withoutUnresolvableLinks:s,paginate:o}=Object.assign(Object.assign({},r),n),c=await g3(t,[],e,{paginate:o});i||(c.items=p3(c,{removeUnresolved:s,itemEntryPoints:["fields"]}));const f=mG(c.items);return c.nextSyncToken&&(f.nextSyncToken=c.nextSyncToken),c.nextPageToken&&(f.nextPageToken=c.nextPageToken),R7(m3(f3(f)))}function mG(t){const e=n=>(r,i)=>(i.sys.type===n&&r.push(f3(i)),r);return{entries:t.reduce(e("Entry"),[]),assets:t.reduce(e("Asset"),[]),deletedEntries:t.reduce(e("DeletedEntry"),[]),deletedAssets:t.reduce(e("DeletedAsset"),[])}}function gG(t){return t.nextPageToken?{sync_token:t.nextPageToken}:t.nextSyncToken?{sync_token:t.nextSyncToken}:t.sync_token?{sync_token:t.sync_token}:t}async function g3(t,e,n,{paginate:r}){const i=gG(n),o=(await t.get("sync",Si({query:i}))).data||{};return e=e.concat(o.items||[]),o.nextPageUrl?r?(delete i.initial,i.sync_token=lb(o.nextPageUrl),g3(t,e,i,{paginate:r})):{items:e,nextPageToken:lb(o.nextPageUrl)}:o.nextSyncUrl?{items:e,nextSyncToken:lb(o.nextSyncUrl)}:{items:[]}}function lb(t){const e=t.split("?");return e.length>0?e[1].replace("sync_token=",""):""}function dl(t){const e={};let n=!1;for(const r in t)Array.isArray(t[r])&&(e[r]=t[r].join(","),n=!0);return n?Object.assign(Object.assign({},t),e):t}function y3(t){if(!t.select)return new Set;const e=Array.isArray(t.select)?t.select:t.select.split(",").map(n=>n.trim());return new Set(e)}function ys(t){if(!t.select)return t;const e=y3(t);return e.has("sys")?t:(e.add("sys.id"),e.add("sys.type"),Object.assign(Object.assign({},t),{select:[...e].join(",")}))}function $A(t,{resolveLinks:e,removeUnresolved:n}){const r=m3(t);return e&&(r.items=p3(r,{removeUnresolved:n,itemEntryPoints:["fields"]})),r}class fa extends Error{constructor(e,n){super(`Invalid "${e}" provided, `+n),this.name="ValidationError"}}function yG(t,e,n){if(n=n||{},typeof e!="number")throw new fa(t,`only numeric values are allowed for timestamps, provided type was "${typeof e}"`);if(n.maximum&&e>n.maximum)throw new fa(t,`value (${e}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&e<n.now)throw new fa(t,`value (${e}) cannot be in the past, current time was ${n.now}`)}function vG(t){return!!(t&&typeof t=="object"&&typeof t.lte=="string")}function xG(t){return!!(t&&typeof t=="object"&&(typeof t.lte=="string"||t.lte instanceof Date))}
83const bG=t=>{if(typeof t!="object"||t===null||Array.isArray(t))throw new fa("timelinePreview","The 'timelinePreview' parameter must be an object.");const e=vG(t.release),n=xG(t.timestamp);if(!e&&!n)throw new fa("timelinePreview","The 'timelinePreview' object must have at least one of 'release' or 'timestamp' with a valid 'lte' property.");return e||n},FA=t=>{var e,n;const r=t?.host,i=(e=t?.timelinePreview)!==null&&e!==void 0?e:(n=t?.alphaFeatures)===null||n===void 0?void 0:n.timelinePreview;return{enabled:EG(r,i),timelinePreview:i}};function _G(t){if(t.locale==="*")throw new fa("locale",`The use of locale='*' is no longer supported.To fetch an entry in all existing locales, 84 use client.withAllLocales instead of the locale='*' parameter.`)}function wG(t){if(t.locale)throw new fa("locale","The `locale` parameter is not allowed")}function am(t,e){e?wG(t):_G(t)}function Om(t){if("resolveLinks"in t)throw new fa("resolveLinks",`The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved. 85 If you do not want to resolve links, use client.withoutLinkResolution.`)}function Rm(t){if("removeUnresolved"in t)throw new fa("removeUnresolved",`The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects. 86 If you do not want to include unresolved links, use client.withoutUnresolvableLinks.`)}function SG(t,e){if(e===void 0)return!1;if(typeof e!="boolean")throw new fa("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");const n=typeof t=="string"&&t.startsWith("preview");if(e&&!n)throw new fa("includeContentSourceMaps",`The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to include Content Source Maps. 87 `);return e}function EG(t,e){if(e===void 0)return!1;const n=bG(e),r=typeof t=="string"&&t.startsWith("preview");if(n&&!r)throw new fa("timelinePreview",`The 'timelinePreview' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to enable Timeline Preview. 88 `);return!0}function Ac(t){for(const e in t){const n=t[e];if(typeof n=="object"&&n!==null&&!Array.isArray(n))throw new Error(`Objects are not supported as value for the "${e}" query parameter.`)}}function qA(t){const{cursor:e,pagePrev:n,pageNext:r,skip:i}=t,s=ah(t,["cursor","pagePrev","pageNext","skip"]);return Object.assign(Object.assign(Object.assign(Object.assign({},s),{cursor:!0}),!!n&&{pagePrev:n}),!!r&&{pageNext:r})}function jG(t,e){const n=e?.split("?")[1];if(n)return new URLSearchParams(n).get(t)}const NG={prev:"pagePrev",next:"pageNext"};function HA(t){const e={};for(const[n,r]of Object.entries(NG)){const i=jG(r,t.pages[n]);i&&(e[n]=i)}return Object.assign(Object.assign({},t),{pages:e})}const TG=2880*60;class kG extends Error{constructor(e,n,r){super("The resource could not be found."),this.sys={type:"Error",id:"NotFound"},this.details={type:"Entry",id:e,environment:n,space:r}}}function v3({http:t,getGlobalOptions:e},n){const r=(re="unknown")=>new kG(re,e().environment,e().space),i=re=>{let ue=re==="space"?e().spaceBaseUrl:e().environmentBaseUrl;if(!ue)throw new Error("Please define baseUrl for "+re);return ue.endsWith("/")||(ue+="/"),ue};function s(re={}){var ue,H;const Ne=t.httpClientParams,xt=(ue=Ne?.includeContentSourceMaps)!==null&&ue!==void 0?ue:(H=Ne?.alphaFeatures)===null||H===void 0?void 0:H.includeContentSourceMaps,Ut=Ne?.host;if(SG(Ut,xt)&&(re.includeContentSourceMaps=!0,re.select)){const xn=y3(re);xn.add("sys"),re.select=Array.from(xn).join(",")}return re}function o(re){const{enabled:ue}=FA(t.httpClientParams);return ue?`timeline/${re}`:re}function c(re){const{enabled:ue,timelinePreview:H}=FA(t.httpClientParams);return ue&&(H?.release&&(re.release=H.release),H?.timestamp&&(re.timestamp=H.timestamp)),re}function f(re,ue){var H;return((H=ue?.params)===null||H===void 0?void 0:H.includeContentSourceMaps)?Z7(re):re}async function h({context:re,path:ue,config:H}){const Ne=i(re);try{const xt=await t.get(Ne+ue,H);return f(xt.data,H)}catch(xt){_i(xt)}}
88async function p({context:re,path:ue,data:H,config:Ne}){const xt=i(re);try{return(await t.post(xt+ue,H,Ne)).data}catch(Ut){_i(Ut)}}async function g(){return h({context:"space",path:""})}async function x(re){return h({context:"environment",path:`content_types/${re}`})}async function v(re={}){return h({context:"environment",path:"content_types",config:Si({query:re})})}async function w(re,ue={}){return E(re,ue,n)}async function _(re={}){return k(re,n)}async function S(re={}){const ue=await k(qA(re),n);return HA(ue)}async function E(re,ue,H={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:Ne}=H;return am(ue,Ne),Om(ue),Rm(ue),Ac(ue),N(re,Ne?Object.assign(Object.assign({},ue),{locale:"*"}):ue,H)}async function N(re,ue,H){if(!re)throw r(re);try{const Ne=await D(Object.assign({"sys.id":re},s(ue)),H);if(Ne.items.length>0)return Ne.items[0];throw r(re)}catch(Ne){_i(Ne)}}async function k(re,ue={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:H}=ue;return am(re,H),Om(re),Rm(re),Ac(re),D(H?Object.assign(Object.assign({},re),{locale:"*"}):re,ue)}function R(re){const ue=c(Object.assign({},re));return s(dl(ys(ue)))}async function D(re,ue){const{withoutLinkResolution:H,withoutUnresolvableLinks:Ne}=ue;try{const xt=await h({context:"environment",path:o("entries"),config:Si({query:R(re)})});return $A(xt,{resolveLinks:!H,removeUnresolved:Ne??!1})}catch(xt){_i(xt)}}async function O(re,ue={}){return B(re,ue,n)}async function T(re={}){return M(re,n)}async function L(re={}){const ue=await M(qA(re),n);return HA(ue)}async function M(re,ue={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:H}=ue;am(re,H),Ac(re);const Ne=H?Object.assign(Object.assign({},re),{locale:"*"}):re;return I(Ne)}async function q(re,ue){try{return h({context:"environment",path:o(`assets/${re}`),config:Si({query:R(ue)})})}catch(H){_i(H)}}async function B(re,ue,H={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:Ne}=H;am(ue,Ne),Ac(ue);const xt=Ne?Object.assign(Object.assign({},ue),{locale:"*"}):ue;return q(re,xt)}async function I(re){try{return h({context:"environment",path:o("assets"),config:Si({query:R(re)})})}catch(ue){_i(ue)}}async function Z(re){return h({context:"environment",path:`tags/${re}`})}async function X(re={}){return Ac(re),h({context:"environment",path:"tags",config:Si({query:dl(ys(re))})})}async function K(re){try{const ue=Math.floor(Date.now()/1e3),H=ue+TG;yG("expiresAt",re,{maximum:H,now:ue})}catch(ue){_i(ue)}return p({context:"environment",path:"asset_keys",data:{expiresAt:re}})}async function U(re={}){return Ac(re),h({context:"environment",path:"locales",config:Si({query:ys(re)})})}async function W(re,ue={paginate:!0}){return G(re,ue,n)}async function G(re,ue,H={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){Om(re),Rm(re);const Ne=Object.assign(Object.assign({},ue),H);return Ve(t),pG(t,re,Ne)}function he(re){return A(re,n)}function A(re,ue={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){return z(re,ue)}function z(re,ue){const{withoutLinkResolution:H,withoutUnresolvableLinks:Ne}=ue;return $A(re,{resolveLinks:!H,removeUnresolved:Ne??!1})}function Q(re,ue={}){return P(re,ue)}async function P(re,ue={}){try{return h({context:"environment",path:`taxonomy/concept-schemes/${re}`,config:Si({query:dl(ys(ue))})})}catch(H){_i(H)}}function ce(re={}){return ve(re)}async function ve(re={}){try{return h({context:"environment",path:"taxonomy/concept-schemes",config:Si({query:dl(ys(re))})})}catch(ue){_i(ue)}}function ye(re,ue={}){return Se(re,ue)}async function Se(re,ue={}){try{return h({context:"environment",path:`taxonomy/concepts/${re}`,config:Si({query:dl(ys(ue))})})}catch(H){_i(H)}}function He(re={}){return Te(re)}async function Te(re={}){try{return h({context:"environment",path:"taxonomy/concepts",config:Si({query:dl(ys(re))})})}catch(ue){_i(ue)}}function Ae(re,ue={}){return We(re,ue)}async function We(re,ue={}){try{return h({context:"environment",path:`taxonomy/concepts/${re}/ancestors`,config:Si({query:dl(ys(ue))})})}catch(H){_i(H)}}function Ge(re,ue={}){return Ce(re,ue)}async function Ce(re,ue={}){try{return h({context:"environment",path:`taxonomy/concepts/${re}/descendants`,config:Si({query:dl(ys(ue))})})}catch(H){_i(H)}}function Ve(re){re.defaults.baseURL=e().environmentBaseUrl}
88return{version:"0.0.0-determined-by-semantic-release",getSpace:g,getContentType:x,getContentTypes:v,getAsset:O,getAssets:T,getAssetsWithCursor:L,getTag:Z,getTags:X,getLocales:U,parseEntries:he,sync:W,getEntry:w,getEntries:_,getEntriesWithCursor:S,getConceptScheme:Q,getConceptSchemes:ce,getConcept:ye,getConcepts:He,getConceptAncestors:Ae,getConceptDescendants:Ge,createAssetKey:K}}function AG({http:t,getGlobalOptions:e},n,r){const i=v3({http:t,getGlobalOptions:e},n),s=i||{};return Object.defineProperty(s,"withAllLocales",{get:()=>r(Object.assign(Object.assign({},n),{withAllLocales:!0}))}),Object.defineProperty(s,"withoutLinkResolution",{get:()=>r(Object.assign(Object.assign({},n),{withoutLinkResolution:!0}))}),Object.defineProperty(s,"withoutUnresolvableLinks",{get:()=>r(Object.assign(Object.assign({},n),{withoutUnresolvableLinks:!0}))}),Object.create(s)}const OG=({http:t,getGlobalOptions:e})=>{function n(i){return AG({http:t,getGlobalOptions:e},i,n)}const r=v3({http:t,getGlobalOptions:e},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1});return Object.assign(Object.assign({},r),{get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}})};function RG(t){if(!t.accessToken)throw new TypeError("Expected parameter accessToken");if(!t.space)throw new TypeError("Expected parameter space");Om(t),Rm(t);const n=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),t),r=D7("contentful.js/0.0.0-determined-by-semantic-release",n.application,n.integration);n.headers=Object.assign(Object.assign({},n.headers),{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});const i=u3(Bn,n);if(!i.defaults.baseURL)throw new Error("Please define a baseURL");const s=U7({space:n.space,environment:n.environment,spaceBaseUrl:i.defaults.baseURL,environmentBaseUrl:`${i.defaults.baseURL}environments/${n.environment}`});return i.defaults.baseURL=s({}).environmentBaseUrl,OG({http:i,getGlobalOptions:s})}const x3=RG({space:"f3lh3a3m18sb",accessToken:"TiGVDCcNGQ5qlGfhAgNP7jI-RLcgOSgqBl_s9mzkjaw"});async function CG(){return(await x3.getEntries({content_type:"blog",order:["-fields.publishDate"],include:2})).items}async function DG(t){return(await x3.getEntries({content_type:"blog","fields.slug":t,include:2,limit:1})).items[0]||null}const LG=()=>d.jsxs("div",{className:"bg-white rounded-2xl border border-primary/5 shadow-sm overflow-hidden animate-pulse",children:[d.jsx("div",{className:"h-52 bg-primary/5"}),d.jsxs("div",{className:"p-6 flex flex-col gap-3",children:[d.jsx("div",{className:"w-20 h-5 bg-primary/5 rounded-full"}),d.jsx("div",{className:"w-3/4 h-6 bg-primary/10 rounded"}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("div",{className:"w-full h-3 bg-primary/5 rounded"}),d.jsx("div",{className:"w-5/6 h-3 bg-primary/5 rounded"})]}),d.jsxs("div",{className:"flex items-center gap-4 pt-2",children:[d.jsx("div",{className:"w-24 h-3 bg-primary/5 rounded"}),d.jsx("div",{className:"w-20 h-3 bg-primary/5 rounded"})]})]})]}),PG=({post:t})=>{const{title:e,slug:n,excerpt:r,coverImage:i,author:s,publishDate:o,category:c}=t.fields,f=i?.fields?.file?.url?`https:${i.fields.file.url}`:null,h=o?new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null;return d.jsxs("article",{className:"group bg-white rounded-2xl border border-primary/5 shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden flex flex-col",children:[d.jsx(Nt,{to:`/news/${n}`,className:"block overflow-hidden h-52 bg-primary/5",children:f?d.jsx("img",{src:`${f}?w=800&q=75&fm=webp`,alt:i.fields.title||e,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):d.jsx("div",{className:"w-full h-full flex items-center justify-center",children:d.jsx("span",{className:"font-drama italic text-5xl text-primary/10",children:"SF"})})}),d.jsxs("div",{className:"flex flex-col gap-3 p-6 flex-1",children:[c&&d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(e5,{size:12,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] uppercase tracking-widest text-accent font-semibold",children:c})]}),d.jsx(Nt,{to:`/news/${n}`,children:d.jsx("h2",{className:"font-heading font-bold text-xl text-primary group-hover:text-accent transition-colors duration-300 leading-snug",children:e})}),r&&d.jsx("p",{className:"font-sans text-sm text-primary/60 leading-relaxed line-clamp-3 flex-1",children:r}),d.jsxs("div",{className:"flex items-center justify-between pt-2 mt-auto border-t border-primary/5",children:[d.jsxs("div",{className:"flex items-center gap-3 text-xs text-primary/40 font-sans",children:[s&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(p1,{size:11})," ",s]}),h&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(Po,{size:11})," ",h]})]}),d.jsxs(Nt,{to:`/news/${n}`,className:"flex items-center gap-1 font-mono text-[10px] uppercase tracking-wide text-accent hover:text-primary transition-colors font-semibold",children:["Read ",d.jsx(Gr,{size:12})]})]})]})]})},MG=()=>{const[t,e]=$.useState([]),[n,r]=$.useState(!0),[i,s]=$.useState(null);return $.useEffect(()=>{window.scrollTo(0,0),CG().then(e).catch(o=>{console.error("Contentful fetch error:",o),s("Unable to load posts at this time.")}).finally(()=>r(!1))},[]),d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsxs("section",{className:"relative pt-40 pb-20 px-6 md:px-16 max-w-7xl mx-auto",children:[d.jsx("div",{className:"absolute top-0 left-[-10%] w-[40%] h-[50%] bg-accent/5 rounded-full blur-[100px] pointer-events-none"}),d.jsxs("div",{className:"relative z-10 max-w-2xl",children:[d.jsx("div",{className:"inline-flex items-center gap-2 bg-white border border-primary/5 px-4 py-1.5 rounded-full shadow-sm mb-6",children:d.jsx("span",{className:"font-mono text-[10px] font-semibold text-primary/70 tracking-wider up
88percase",children:"SmileFlow News"})}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl tracking-tight text-primary mb-4",children:["Insights & ",d.jsx("span",{className:"font-drama italic text-accent",children:"Updates."})]}),d.jsx("p",{className:"font-sans text-lg text-primary/60 font-medium leading-relaxed max-w-xl",children:"The latest thinking on dental practice growth, AI, and the future of patient experience."})]})]}),d.jsxs("section",{className:"px-6 md:px-16 pb-32 max-w-7xl mx-auto",children:[n&&d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((o,c)=>d.jsx(LG,{},c))}),!n&&i&&d.jsx("div",{className:"text-center py-24",children:d.jsx("p",{className:"font-sans text-primary/50 text-lg",children:i})}),!n&&!i&&t.length===0&&d.jsxs("div",{className:"text-center py-24",children:[d.jsx("span",{className:"font-drama italic text-7xl text-primary/10 block mb-6",children:"Soon."}),d.jsx("p",{className:"font-sans text-primary/40 text-lg",children:"No posts yet â check back soon."})]}),!n&&!i&&t.length>0&&d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map(o=>d.jsx(PG,{post:o},o.sys.id))})]})]})};var ob={},cb={},ub={},GA;function fh(){return GA||(GA=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return e}});var e=(function(n){return n.DOCUMENT="document",n.PARAGRAPH="paragraph",n.HEADING_1="heading-1",n.HEADING_2="heading-2",n.HEADING_3="heading-3",n.HEADING_4="heading-4",n.HEADING_5="heading-5",n.HEADING_6="heading-6",n.OL_LIST="ordered-list",n.UL_LIST="unordered-list",n.LIST_ITEM="list-item",n.HR="hr",n.QUOTE="blockquote",n.EMBEDDED_ENTRY="embedded-entry-block",n.EMBEDDED_ASSET="embedded-asset-block",n.EMBEDDED_RESOURCE="embedded-resource-block",n.TABLE="table",n.TABLE_ROW="table-row",n.TABLE_CELL="table-cell",n.TABLE_HEADER_CELL="table-header-cell",n})({})})(ub)),ub}var db={},VA;function Ig(){return VA||(VA=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return e}});var e=(function(n){return n.ASSET_HYPERLINK="asset-hyperlink",n.EMBEDDED_ENTRY="embedded-entry-inline",n.EMBEDDED_RESOURCE="embedded-resource-inline",n.ENTRY_HYPERLINK="entry-hyperlink",n.HYPERLINK="hyperlink",n.RESOURCE_HYPERLINK="resource-hyperlink",n})({})})(db)),db}var fb={},KA;function b3(){return KA||(KA=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return e}});var e=(function(n){return n.BOLD="bold",n.ITALIC="italic",n.UNDERLINE="underline",n.CODE="code",n.SUPERSCRIPT="superscript",n.SUBSCRIPT="subscript",n.STRIKETHROUGH="strikethrough",n})({})})(fb)),fb}var hb={},YA;function _3(){return YA||(YA=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(O,T){for(var L in T)Object.defineProperty(O,L,{enumerable:!0,get:Object.getOwnPropertyDescriptor(T,L).get})}e(t,{get CONTAINERS(){return E},get HEADINGS(){return N},get LIST_ITEM_BLOCKS(){return v},get TABLE_BLOCKS(){return w},get TEXT_CONTAINERS(){return k},get TOP_LEVEL_BLOCKS(){return x},get V1_MARKS(){return D},get V1_NODE_TYPES(){return R},get VOID_BLOCKS(){return _}});var n=fh(),r=Ig(),i=b3();function s(O,T){(T==null||T>O.length)&&(T=O.length);for(var L=0,M=new Array(T);L<T;L++)M[L]=O[L];return M}function o(O){if(Array.isArray(O))return s(O)}function c(O,T,L){return T in O?Object.defineProperty(O,T,{value:L,enumerable:!0,configurable:!0,writable:!0}):O[T]=L,O}function f(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(O){return o(O)||f(O)||g(O)||h()}function g(O,T){if(O){if(typeof O=="string")return s(O,T);var L=Object.prototype.toString.call(O).slice(8,-1);if(L==="Object"&&O.constructor&&(L=O.constructor.name),L==="Map"||L==="Set")return Array.from(L);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return s(O,T)}}var x=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE,n.BLOCKS.TABLE],v=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],w=[n.BLOCKS.TABLE,n.BLOCKS.TABLE_ROW,n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],_=[n.BLOCKS.HR,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],S,E=(S={},c(S,n.BLOCKS.OL_LIST,[n.BLOCKS.LIST_ITEM]),c(S,n.BLOCKS.UL_LIST,[n.BLOCKS.LIST_ITEM]),c(S,n.BLOCKS.LIST_ITEM,v),c(S,n.BLOCKS.QUOTE,[n.BLOCKS.PARAGRAPH]),c(S,n.BLOCKS.TABLE,[n.BLOCKS.TABLE_ROW]),c(S,n.BLOCKS.TABLE_ROW,[n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL]),c(S,n.BLOCKS.TABLE_CELL,[n.BLOCKS.PARAGRAPH,n.BLOCKS.UL_LIST,n.BLOCKS.OL_LIST]),c(S,n.BLOCKS.TABLE_HEADER_CELL,[n.BLOCKS.PARAGRAPH]),S),N=[n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6],k=[n.BLOCKS.PARAGRAPH].concat(p(N)),R=[n.BLOCKS.DOCUMENT,n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.LIST_ITEM,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,r.INLINES.HYPERLINK,r.INLINES.ENTRY_HYPERLINK,r.INLINES.ASSET_HYPERLINK,r.INLINES.EMBEDDED_ENTRY,"text"],D=[i.MARKS.BOLD,i.MARKS.CODE,i.MARKS.ITALIC,i.MARKS.UNDERLINE]})(hb)),hb}var pb={},WA;
88function IG(){return WA||(WA=1,Object.defineProperty(pb,"__esModule",{value:!0})),pb}var mb={},XA;function zG(){return XA||(XA=1,Object.defineProperty(mb,"__esModule",{value:!0})),mb}var gb={},JA;function UG(){return JA||(JA=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var e=fh(),n={nodeType:e.BLOCKS.DOCUMENT,data:{},content:[{nodeType:e.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}})(gb)),gb}var yb={},QA;function BG(){return QA||(QA=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(E,N){for(var k in N)Object.defineProperty(E,k,{enumerable:!0,get:Object.getOwnPropertyDescriptor(N,k).get})}e(t,{get isBlock(){return g},get isEmptyParagraph(){return v},get isInline(){return p},get isText(){return x},get stripEmptyTrailingParagraphFromDocument(){return S}});var n=fh(),r=Ig();function i(E,N,k){return N in E?Object.defineProperty(E,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):E[N]=k,E}function s(E){for(var N=1;N<arguments.length;N++){var k=arguments[N]!=null?arguments[N]:{},R=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(R=R.concat(Object.getOwnPropertySymbols(k).filter(function(D){return Object.getOwnPropertyDescriptor(k,D).enumerable}))),R.forEach(function(D){i(E,D,k[D])})}return E}function o(E,N){var k=Object.keys(E);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(E);k.push.apply(k,R)}return k}function c(E,N){return N=N??{},Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(N)):o(Object(N)).forEach(function(k){Object.defineProperty(E,k,Object.getOwnPropertyDescriptor(N,k))}),E}function f(E){"@swc/helpers - typeof";return E&&typeof Symbol<"u"&&E.constructor===Symbol?"symbol":typeof E}function h(E,N){var k=!0,R=!1,D=void 0;try{for(var O=Object.keys(E)[Symbol.iterator](),T;!(k=(T=O.next()).done);k=!0){var L=T.value;if(N===E[L])return!0}}catch(M){R=!0,D=M}finally{try{!k&&O.return!=null&&O.return()}finally{if(R)throw D}}return!1}function p(E){return h(r.INLINES,E.nodeType)}function g(E){return h(n.BLOCKS,E.nodeType)}function x(E){return E.nodeType==="text"}function v(E){if(E.nodeType!==n.BLOCKS.PARAGRAPH||E.content.length!==1)return!1;var N=E.content[0];return N.nodeType==="text"&&N.value===""}function w(E){return E!=null&&(typeof E>"u"?"undefined":f(E))==="object"&&"content"in E&&Array.isArray(E.content)}var _=2;function S(E){if(!w(E)||E.content.length<_)return E;var N=E.content[E.content.length-1];return v(N)?c(s({},E),{content:E.content.slice(0,-1)}):E}})(yb)),yb}var vb={},xb={},bb,ZA;function w3(){return ZA||(ZA=1,bb=t=>{if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}),bb}var _b={},eO;function $G(){return eO||(eO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(w,_){for(var S in _)Object.defineProperty(w,S,{enumerable:!0,get:Object.getOwnPropertyDescriptor(_,S).get})}e(t,{get enumError(){return g},get maxSizeError(){return p},get minSizeError(){return h},get requiredPropertyError(){return v},get typeMismatchError(){return f},get unknownPropertyError(){return x}});function n(w,_){(_==null||_>w.length)&&(_=w.length);for(var S=0,E=new Array(_);S<_;S++)E[S]=w[S];return E}function r(w){if(Array.isArray(w))return n(w)}function i(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(w){return r(w)||i(w)||c(w)||s()}function c(w,_){if(w){if(typeof w=="string")return n(w,_);var S=Object.prototype.toString.call(w).slice(8,-1);if(S==="Object"&&w.constructor&&(S=w.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return n(w,_)}}var f=function(w){var _=w.path,S=w.property,E=w.typeName,N=w.value;return{details:'The type of "'.concat(S,'" is incorrect, expected type: ').concat(E),name:"type",path:_.toArray(),type:E,value:N}},h=function(w){var _=w.min,S=w.value,E=w.path;return{name:"size",min:_,path:E.toArray(),details:"Size must be at least ".concat(_),value:S}},p=function(w){var _=w.max,S=w.value,E=w.path;return{name:"size",max:_,path:E.toArray(),details:"Size must be at most ".concat(_),value:S}},g=function(w){var _=w.expected,S=w.value,E=w.path;return{details:"Value must be one of expected values",name:"in",expected:o(_).sort(),path:E.toArray(),value:S}},x=function(w){var _=w.property,S=w.path;return{details:'The property "'.concat(_,'" is not expected'),name:"unexpected",path:S.toArray()}},v=function(w){var _=w.property,S=w.path;return{details:'The property "'.concat(_,'" is required here'),name:"required",path:S.toArray()}}})(_b)),_b}var tO;function A1(){return tO||(tO=1,(function(t){Object.defineProperty(t,"__esMo
88dule",{value:!0}),Object.defineProperty(t,"ObjectAssertion",{enumerable:!0,get:function(){return w}});var e=h(w3()),n=$G();function r(_,S){(S==null||S>_.length)&&(S=_.length);for(var E=0,N=new Array(S);E<S;E++)N[E]=_[E];return N}function i(_){if(Array.isArray(_))return r(_)}function s(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}function o(_,S){for(var E=0;E<S.length;E++){var N=S[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}function c(_,S,E){return S&&o(_.prototype,S),_}function f(_,S,E){return S in _?Object.defineProperty(_,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):_[S]=E,_}function h(_){return _&&_.__esModule?_:{default:_}}function p(_){if(typeof Symbol<"u"&&_[Symbol.iterator]!=null||_["@@iterator"]!=null)return Array.from(_)}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(_){return i(_)||p(_)||v(_)||g()}function v(_,S){if(_){if(typeof _=="string")return r(_,S);var E=Object.prototype.toString.call(_).slice(8,-1);if(E==="Object"&&_.constructor&&(E=_.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return r(_,S)}}var w=(function(){function _(S,E){var N=this,k=this;s(this,_),f(this,"obj",void 0),f(this,"path",void 0),f(this,"_errors",void 0),f(this,"catch",void 0),f(this,"exists",void 0),f(this,"object",void 0),f(this,"string",void 0),f(this,"number",void 0),f(this,"array",void 0),f(this,"enum",void 0),f(this,"empty",void 0),f(this,"minLength",void 0),f(this,"noAdditionalProperties",void 0),f(this,"each",void 0),this.obj=S,this.path=E,this._errors=[],this.catch=function(){for(var R=arguments.length,D=new Array(R),O=0;O<R;O++)D[O]=arguments[O];var T;(T=k._errors).push.apply(T,x(D))},this.exists=function(R){return R in N.obj?!0:(N.catch((0,n.requiredPropertyError)({property:R,path:N.path.of(R)})),!1)},this.object=function(R){var D=R?N.obj[R]:N.obj;if(R&&!N.exists(R))return!1;if((0,e.default)(D))return!0;var O=R?N.path.of(R):N.path,T,L=(T=R??N.path.last())!==null&&T!==void 0?T:"value";return N.catch((0,n.typeMismatchError)({typeName:"Object",property:L,path:O,value:D})),!1},this.string=function(R){var D=N.obj[R];
88return R&&!N.exists(R)?!1:typeof D=="string"?!0:(N.catch((0,n.typeMismatchError)({typeName:"String",property:R,path:N.path.of(R),value:D})),!1)},this.number=function(R,D){var O=N.obj[R];return D&&!(R in N.obj)?!0:N.exists(R)?typeof O=="number"&&!Number.isNaN(O)?!0:(N.catch((0,n.typeMismatchError)({typeName:"Number",property:R,path:N.path.of(R),value:O})),!1):!1},this.array=function(R){var D=N.obj[R];return R&&!N.exists(R)?!1:Array.isArray(D)?!0:(N.catch((0,n.typeMismatchError)({typeName:"Array",property:R,path:N.path.of(R),value:D})),!1)},this.enum=function(R,D){var O=N.obj[R];return typeof O=="string"&&D.includes(O)?!0:(N.catch((0,n.enumError)({expected:D,value:O,path:N.path.of(R)})),!1)},this.empty=function(R){if(!N.array(R))return!1;var D=N.obj[R];return D.length===0?!0:(N.catch((0,n.maxSizeError)({max:0,value:D,path:N.path.of(R)})),!1)},this.minLength=function(R,D){if(!N.array(R))return!1;var O=N.obj[R];return O.length>=D?!0:(N.catch((0,n.minSizeError)({min:D,value:O,path:N.path.of(R)})),!1)},this.noAdditionalProperties=function(R){var D=Object.keys(N.obj).sort().filter(function(O){return!R.includes(O)});return D.forEach(function(O){return N.catch((0,n.unknownPropertyError)({property:O,path:N.path.of(O)}))}),D.length===0},this.each=function(R,D){if(N.array(R)){var O=N.obj[R],T=!1;O.forEach(function(L,M){if(!T){var q=D(L,N.path.of(R).of(M));q.length>0&&(T=!0),N.catch.apply(N,x(q))}})}}}return c(_,[{key:"errors",get:function(){var E=this,N=function(k){return JSON.stringify({details:k.details,path:k.path})};return this._errors.filter(function(k,R){return E._errors.findIndex(function(D){return N(k)===N(D)})===R})}}]),_})()})(xb)),xb}var wb={},nO;function FG(){return nO||(nO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(B,I){for(var Z in I)Object.defineProperty(B,Z,{enumerable:!0,get:Object.getOwnPropertyDescriptor(I,Z).get})}e(t,{get EntityLinkAssertion(){return T},get HyperLinkAssertion(){return L},get NodeAssertion(){return O},get VOID_CONTENT(){return D},get assert(){return M},get assertLink(){return q}});var n=A1();function r(B,I){(I==null||I>B.length)&&(I=B.length);for(var Z=0,X=new Array(I);Z<I;Z++)X[Z]=B[Z];return X}function i(B){if(Array.isArray(B))return r(B)}function s(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function o(B,I,Z){return I=g(I),_(B,R()?Reflect.construct(I,Z||[],g(B).constructor):I.apply(B,Z))}function c(B,I){if(!(B instanceof I))throw new TypeError("Cannot call a class as a function")}function f(B,I){for(var Z=0;Z<I.length;Z++){var X=I[Z];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(B,X.key,X)}}function h(B,I,Z){return I&&f(B.prototype,I),B}function p(B,I,Z){return I in B?Object.defineProperty(B,I,{value:Z,enumerable:!0,configurable:!0,writable:!0}):B[I]=Z,B}function g(B){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},g(B)}function x(B,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(I&&I.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),I&&S(B,I)}function v(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(B,I){return I&&(N(I)==="object"||typeof I=="function")?I:s(B)}function S(B,I){return S=Object.setPrototypeOf||function(X,K){return X.__proto__=K,X},S(B,I)}function E(B){return i(B)||v(B)||k(B)||w()}function N(B){"@swc/helpers - typeof";return B&&typeof Symbol<"u"&&B.constructor===Symbol?"symbol":typeof B}function k(B,I){if(B){if(typeof B=="string")return r(B,I);var Z=Object.prototype.toString.call(B).slice(8,-1);if(Z==="Object"&&B.constructor&&(Z=B.constructor.name),Z==="Map"||Z==="Set")return Array.from(Z);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return r(B,I)}}function R(){try{var B=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R=function(){return!!B})()}var D=[],O=(function(){function B(I,Z){c(this,B),p(this,"contentRule",void 0),p(this,"validateData",void 0),this.contentRule=I,this.validateData=Z}return h(B,[{key:"assert",value:function(Z,X){var K=new n.ObjectAssertion(Z,X);if(!K.object())return K.errors;K.noAdditionalProperties(["nodeType","data","content"]);var U=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(Z,X),W=U.nodeTypes,G=U.min,he=G===void 0?0:G;if(W.length===0&&he>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(he," with no nodeTypes"));if(K.minLength("content",he),W.length===0?K.empty("content"):K.each("content",function(ve,ye){var Se=new n.ObjectAssertion(ve,ye);
88return Se.object()&&Se.enum("nodeType",W),Se.errors}),K.object("data")){var A,z,Q,P,ce=(P=(z=(Q=this).validateData)===null||z===void 0?void 0:z.call(Q,Z.data,X.of("data")))!==null&&P!==void 0?P:[];(A=K).catch.apply(A,E(ce))}return K.errors}}]),B})(),T=(function(B){x(I,B);function I(Z,X){c(this,I);var K;return K=o(this,I,[X,function(U,W){return s(K).assertLink(U,W)}]),p(K,"linkType",void 0),p(K,"type",void 0),p(K,"assertLink",void 0),K.linkType=Z,K.assertLink=function(U,W){var G=new n.ObjectAssertion(U,W);if(G.object("target")){var he,A=new n.ObjectAssertion(U.target.sys,W.of("target").of("sys"));A.object()&&(A.enum("type",[K.type]),A.enum("linkType",[K.linkType]),K.type==="Link"?(A.string("id"),A.noAdditionalProperties(["type","linkType","id"])):K.type==="ResourceLink"&&(A.string("urn"),A.noAdditionalProperties(["type","linkType","urn"]))),(he=G).catch.apply(he,E(A.errors))}return G.noAdditionalProperties(["target"]),G.errors},K.type=K.linkType.startsWith("Contentful:")?"ResourceLink":"Link",K}return I})(O),L=(function(B){x(I,B);function I(){c(this,I);var Z;return Z=o(this,I,[["text"],function(X,K){return s(Z).assertLink(X,K)}]),p(Z,"assertLink",function(X,K){var U=new n.ObjectAssertion(X,K);return U.string("uri"),U.noAdditionalProperties(["uri"]),U.errors}),Z}return I})(O),M=function(B,I){return new O(B,I)},q=function(B,I){return new T(B,I)}})(wb)),wb}var Sb={},rO;function qG(){return rO||(rO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return h}});function e(p,g){(g==null||g>p.length)&&(g=p.length);for(var x=0,v=new Array(g);x<g;x++)v[x]=p[x];return v}function n(p){if(Array.isArray(p))return e(p)}function r(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function i(p,g,x){return g in p?Object.defineProperty(p,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):p[g]=x,p}function s(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(p){return n(p)||s(p)||f(p)||o()}function f(p,g){if(p){if(typeof p=="string")return e(p,g);var x=Object.prototype.toString.call(p).slice(8,-1);if(x==="Object"&&p.constructor&&(x=p.constructor.name),x==="Map"||x==="Set")return Array.from(x);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return e(p,g)}}var h=function p(){var g=this,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r(this,p),i(this,"path",void 0),i(this,"of",void 0),i(this,"isRoot",void 0),i(this,"last",void 0),i(this,"toArray",void 0),this.path=x,this.of=function(v){return new p(c(g.path).concat([v]))},this.isRoot=function(){return g.path.length===0},this.last=function(){return g.path[g.path.length-1]},this.toArray=function(){return g.path}}})(Sb)),Sb}var Eb={},iO;function HG(){return iO||(iO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assertText",{enumerable:!0,get:function(){return n}});var e=A1();function n(r,i){var s=new e.ObjectAssertion(r,i);return s.object()&&(s.noAdditionalProperties(["nodeType","data","value","marks"]),s.object("data"),s.each("marks",function(o,c){var f=new e.ObjectAssertion(o,c);return f.object()&&f.string("type"),f.errors}),s.string("value")),s.errors}})(Eb)),Eb}var aO;function GG(){return aO||(aO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"validateRichTextDocument",{enumerable:!0,get:function(){return O}});var e=fh(),n=Ig(),r=_3(),i=A1(),s=FG(),o=qG(),c=HG();function f(T,L){(L==null||L>T.length)&&(L=T.length);for(var M=0,q=new Array(L);M<L;M++)q[M]=T[M];return q}function h(T){if(Array.isArray(T))return f(T)}function p(T,L,M){return L in T?Object.defineProperty(T,L,{value:M,enumerable:!0,configurable:!0,writable:!0}):T[L]=M,T}function g(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(T){return h(T)||g(T)||w(T)||x()}function w(T,L){if(T){if(typeof T=="string")return f(T,L);var M=Object.prototype.toString.call(T).slice(8,-1);if(M==="Object"&&T.constructor&&(M=T.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return f(T,L)}}var _=(0,s.assert)(v(Object.values(n.INLINES)).concat(["text"]).sort()),S=(0,s.assert)([e.BLOCKS.LIST_ITEM]),E=(0,s.assertLink)("Entry",s.VOID_CONTENT),N=(0,s.assert)(function(){return{nodeTypes:[e.BLOCKS.PARAGRAPH],min:1}}
88,function(T,L){var M=new i.ObjectAssertion(T,L);return M.noAdditionalProperties(["colspan","rowspan"]),M.number("colspan",!0),M.number("rowspan",!0),M.errors}),k,R=(k={},p(k,e.BLOCKS.DOCUMENT,(0,s.assert)(r.TOP_LEVEL_BLOCKS)),p(k,e.BLOCKS.PARAGRAPH,_),p(k,e.BLOCKS.HEADING_1,_),p(k,e.BLOCKS.HEADING_2,_),p(k,e.BLOCKS.HEADING_3,_),p(k,e.BLOCKS.HEADING_4,_),p(k,e.BLOCKS.HEADING_5,_),p(k,e.BLOCKS.HEADING_6,_),p(k,e.BLOCKS.QUOTE,(0,s.assert)(r.CONTAINERS[e.BLOCKS.QUOTE])),p(k,e.BLOCKS.EMBEDDED_ENTRY,E),p(k,e.BLOCKS.EMBEDDED_ASSET,(0,s.assertLink)("Asset",s.VOID_CONTENT)),p(k,e.BLOCKS.EMBEDDED_RESOURCE,(0,s.assertLink)("Contentful:Entry",s.VOID_CONTENT)),p(k,e.BLOCKS.HR,(0,s.assert)(s.VOID_CONTENT)),p(k,e.BLOCKS.OL_LIST,S),p(k,e.BLOCKS.UL_LIST,S),p(k,e.BLOCKS.LIST_ITEM,(0,s.assert)(v(r.LIST_ITEM_BLOCKS).sort())),p(k,e.BLOCKS.TABLE,(0,s.assert)(function(){return{nodeTypes:[e.BLOCKS.TABLE_ROW],min:1}})),p(k,e.BLOCKS.TABLE_ROW,(0,s.assert)(function(){return{nodeTypes:[e.BLOCKS.TABLE_CELL,e.BLOCKS.TABLE_HEADER_CELL],min:1}})),p(k,e.BLOCKS.TABLE_CELL,N),p(k,e.BLOCKS.TABLE_HEADER_CELL,N),p(k,n.INLINES.HYPERLINK,new s.HyperLinkAssertion),p(k,n.INLINES.EMBEDDED_ENTRY,E),p(k,n.INLINES.EMBEDDED_RESOURCE,(0,s.assertLink)("Contentful:Entry",s.VOID_CONTENT)),p(k,n.INLINES.ENTRY_HYPERLINK,(0,s.assertLink)("Entry",["text"])),p(k,n.INLINES.ASSET_HYPERLINK,(0,s.assertLink)("Asset",["text"])),p(k,n.INLINES.RESOURCE_HYPERLINK,(0,s.assertLink)("Contentful:Entry",["text"])),k);function D(T,L){if(T.nodeType==="text")return(0,c.assertText)(T,L);var M=R[T.nodeType].assert(T,L);if(M.length>0)return M;var q=new i.ObjectAssertion(T,L);return q.each("content",function(B,I){return D(B,I)}),q.errors}var O=function(T){var L=new o.Path,M=new i.ObjectAssertion(T,L);return M.object()&&M.enum("nodeType",[e.BLOCKS.DOCUMENT]),M.errors.length>0?M.errors:D(T,L)}})(vb)),vb}var sO;function VG(){return sO||(sO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(g,x){for(var v in x)Object.defineProperty(g,v,{enumerable:!0,get:Object.getOwnPropertyDescriptor(x,v).get})}e(t,{get BLOCKS(){return n.BLOCKS},get EMPTY_DOCUMENT(){return s.EMPTY_DOCUMENT},get INLINES(){return r.INLINES},get MARKS(){return i.MARKS},get helpers(){return o},get validateRichTextDocument(){return c.validateRichTextDocument}});var n=fh(),r=Ig(),i=b3();f(_3(),t),f(IG(),t),f(zG(),t);var s=UG(),o=p(BG()),c=GG();function f(g,x){return Object.keys(g).forEach(function(v){v!=="default"&&!Object.prototype.hasOwnProperty.call(x,v)&&Object.defineProperty(x,v,{enumerable:!0,get:function(){return g[v]}})}),g}function h(g){if(typeof WeakMap!="function")return null;var x=new WeakMap,v=new WeakMap;return(h=function(w){return w?v:x})(g)}function p(g,x){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=h(x);if(v&&v.has(g))return v.get(g);var w={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in g)if(S!=="default"&&Object.prototype.hasOwnProperty.call(g,S)){var E=_?Object.getOwnPropertyDescriptor(g,S):null;E&&(E.get||E.set)?Object.defineProperty(w,S,E):w[S]=g[S]}return w.default=g,v&&v.set(g,w),w}})(cb)),cb}var lO;function KG(){if(lO)return ob;lO=1;var t=hg(),e=VG();function n(p,g){return t.isValidElement(p)&&p.key===null?t.cloneElement(p,{key:g}):p}function r(p,g){return p.map((x,v)=>n(i(x,g),v))}function i(p,g){const{renderNode:x,renderMark:v,renderText:w,preserveWhitespace:_}=g;if(e.helpers.isText(p)){let S=w?w(p.value):p.value;if(_&&!w){S=S.replace(/ {2,}/g,k=>"Â ".repeat(k.length));const E=S.split(` 89`),N=[];E.forEach((k,R)=>{N.push(k),R!==E.length-1&&N.push(t.createElement("br",null))}),S=N}return p.marks.reduce((E,N)=>v[N.type]?v[N.type](E):E,S)}else{const S=r(p.content,g);return!p.nodeType||!x[p.nodeType]?t.createElement(t.Fragment,null,S):x[p.nodeType](p,S)}}const s={[e.BLOCKS.DOCUMENT]:(p,g)=>g,[e.BLOCKS.PARAGRAPH]:(p,g)=>t.createElement("p",null,g),[e.BLOCKS.HEADING_1]:(p,g)=>t.createElement("h1",null,g),[e.BLOCKS.HEADING_2]:(p,g)=>t.createElement("h2",null,g),[e.BLOCKS.HEADING_3]:(p,g)=>t.createElement("h3",null,g),[e.BLOCKS.HEADING_4]:(p,g)=>t.createElement("h4",null,g),[e.BLOCKS.HEADING_5]:(p,g)=>t.createElement("h5",null,g),[e.BLOCKS.HEADING_6]:(p,g)=>t.createElement("h6",null,g),[e.BLOCKS.EMBEDDED_ENTRY]:(p,g)=>t.createElement("div",null,g),[e.BLOCKS.EMBEDDED_RESOURCE]:(p,g)=>t.createElement("div",null,g),[e.BLOCKS.UL_LIST]:(p,g)=>t.createElement("ul",null,g),[e.BLOCKS.OL_LIST]:(p,g)=>t.createElement("ol",null,g),[e.BLOCKS.LIST_ITEM]:(p,g)=>t.createElement("li",null,g),[e.BLOCKS.QUOTE]:(p,g)=>t.createElement("blockquote",null,g),[e.BLOCKS.HR]:()=>t.createElement("hr",null),[e.BLOCKS.TABLE]:(p,g)=>t.createElement("table",null,t.createElement("tbody",null,g)),[e.BLOCKS.TABLE_ROW]:(p,g)=>t.createElement("tr",null,g),[e.BLOCKS.TABLE_HEADER_CELL]:(p,g)=>
89t.createElement("th",null,g),[e.BLOCKS.TABLE_CELL]:(p,g)=>t.createElement("td",null,g),[e.INLINES.ASSET_HYPERLINK]:p=>c(e.INLINES.ASSET_HYPERLINK,p),[e.INLINES.ENTRY_HYPERLINK]:p=>c(e.INLINES.ENTRY_HYPERLINK,p),[e.INLINES.RESOURCE_HYPERLINK]:p=>f(e.INLINES.RESOURCE_HYPERLINK,p),[e.INLINES.EMBEDDED_ENTRY]:p=>c(e.INLINES.EMBEDDED_ENTRY,p),[e.INLINES.EMBEDDED_RESOURCE]:(p,g)=>f(e.INLINES.EMBEDDED_RESOURCE,p),[e.INLINES.HYPERLINK]:(p,g)=>t.createElement("a",{href:p.data.uri},g)},o={[e.MARKS.BOLD]:p=>t.createElement("b",null,p),[e.MARKS.ITALIC]:p=>t.createElement("i",null,p),[e.MARKS.UNDERLINE]:p=>t.createElement("u",null,p),[e.MARKS.CODE]:p=>t.createElement("code",null,p),[e.MARKS.SUPERSCRIPT]:p=>t.createElement("sup",null,p),[e.MARKS.SUBSCRIPT]:p=>t.createElement("sub",null,p),[e.MARKS.STRIKETHROUGH]:p=>t.createElement("s",null,p)};function c(p,g){return t.createElement("span",{key:g.data.target.sys.id},"type: ",g.nodeType," id: ",g.data.target.sys.id)}function f(p,g){return t.createElement("span",{key:g.data.target.sys.urn},"type: ",g.nodeType," urn: ",g.data.target.sys.urn)}function h(p,g={}){if(!p)return null;let x=p;return g.stripEmptyTrailingParagraph&&(x=e.helpers.stripEmptyTrailingParagraphFromDocument(p)),i(x,{renderNode:{...s,...g.renderNode},renderMark:{...o,...g.renderMark},renderText:g.renderText,preserveWhitespace:g.preserveWhitespace})}return ob.documentToReactComponents=h,ob}var YG=KG(),pe=(function(t){return t.DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell",t})({}),Ai=(function(t){return t.ASSET_HYPERLINK="asset-hyperlink",t.EMBEDDED_ENTRY="embedded-entry-inline",t.EMBEDDED_RESOURCE="embedded-resource-inline",t.ENTRY_HYPERLINK="entry-hyperlink",t.HYPERLINK="hyperlink",t.RESOURCE_HYPERLINK="resource-hyperlink",t})({}),jb=(function(t){return t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.CODE="code",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript",t.STRIKETHROUGH="strikethrough",t})({});function lw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function WG(t){if(Array.isArray(t))return lw(t)}function fl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XG(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function JG(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function QG(t){return WG(t)||XG(t)||ZG(t)||JG()}function ZG(t,e){if(t){if(typeof t=="string")return lw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lw(t,e)}}var eV=[pe.PARAGRAPH,pe.HEADING_1,pe.HEADING_2,pe.HEADING_3,pe.HEADING_4,pe.HEADING_5,pe.HEADING_6,pe.OL_LIST,pe.UL_LIST,pe.HR,pe.QUOTE,pe.EMBEDDED_ENTRY,pe.EMBEDDED_ASSET,pe.EMBEDDED_RESOURCE,pe.TABLE],S3=[pe.PARAGRAPH,pe.HEADING_1,pe.HEADING_2,pe.HEADING_3,pe.HEADING_4,pe.HEADING_5,pe.HEADING_6,pe.OL_LIST,pe.UL_LIST,pe.HR,pe.QUOTE,pe.EMBEDDED_ENTRY,pe.EMBEDDED_ASSET,pe.EMBEDDED_RESOURCE];pe.TABLE,pe.TABLE_ROW,pe.TABLE_CELL,pe.TABLE_HEADER_CELL;pe.HR,pe.EMBEDDED_ENTRY,pe.EMBEDDED_ASSET,pe.EMBEDDED_RESOURCE;var Ra,tV=(Ra={},fl(Ra,pe.OL_LIST,[pe.LIST_ITEM]),fl(Ra,pe.UL_LIST,[pe.LIST_ITEM]),fl(Ra,pe.LIST_ITEM,S3),fl(Ra,pe.QUOTE,[pe.PARAGRAPH]),fl(Ra,pe.TABLE,[pe.TABLE_ROW]),fl(Ra,pe.TABLE_ROW,[pe.TABLE_CELL,pe.TABLE_HEADER_CELL]),fl(Ra,pe.TABLE_CELL,[pe.PARAGRAPH,pe.UL_LIST,pe.OL_LIST]),fl(Ra,pe.TABLE_HEADER_CELL,[pe.PARAGRAPH]),Ra),nV=[pe.HEADING_1,pe.HEADING_2,pe.HEADING_3,pe.HEADING_4,pe.HEADING_5,pe.HEADING_6];[pe.PARAGRAPH].concat(QG(nV));pe.DOCUMENT,pe.PARAGRAPH,pe.HEADING_1,pe.HEADING_2,pe.HEADING_3,pe.HEADING_4,pe.HEADING_5,pe.HEADING_6,pe.OL_LIST,pe.UL_LIST,pe.LIST_ITEM,pe.HR,pe.QUOTE,pe.EMBEDDED_ENTRY,pe.EMBEDDED_ASSET,Ai.HYPERLINK,Ai.ENTRY_HYPERLINK,Ai.ASSET_HYPERLINK,Ai.EMBEDDED_ENTRY;pe.DOCUMENT,pe.PARAGRAPH;var rV=w3();const iV=Ls(rV);function ow(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function aV(t){if(Array.isArray(t))return ow(t)}function sV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lV(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oV(t){return aV(t)||sV(t)||cV(t)||lV()}function cV(t,e){if(t){if(typeof t=="string")return ow(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ow(t,e)}}var sm=function(t){var e=t.path,n=t.property,r=t.typeName,i=t.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:e.toArray(),type:r,value:i}},uV=function(t){var e=t.min,n=t.value,r=t.path;return{name:"size",min:e,path:r.toArray(),details:"Size must be at least ".concat(e),value:n}},dV=function(t){var e=t.max,n=t.value,r=t.path;return{name:"size",max:e,path:r.toArray(),details:"Size must be at most ".concat(e),value:n}},fV=function(t){var e=t.expected,n=t.value,r=t.path;return{details:"Value must be one of expected values",name:"in",expected:oV(e).sort(),path:r.toArray(),value:n}},hV=function(t){var e=t.property,n=t.path;return{details:'The property "'.concat(e,'" is not expected'),name:"unexpected",path:n.toArray()}},pV=function(t){var e=t.property,n=t.path;return{details:'The property "'.concat(e,'" is required here'),name:"required",path:n.toArray()}};function cw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mV(t){if(Array.isArray(t))return cw(t)}function gV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vV(t,e,n){return e&&yV(t.prototype,e),t}function Zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bV(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
89function oO(t){return mV(t)||xV(t)||_V(t)||bV()}function _V(t,e){if(t){if(typeof t=="string")return cw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cw(t,e)}}var bu=(function(){function t(e,n){var r=this,i=this;gV(this,t),Zr(this,"obj",void 0),Zr(this,"path",void 0),Zr(this,"_errors",void 0),Zr(this,"catch",void 0),Zr(this,"exists",void 0),Zr(this,"object",void 0),Zr(this,"string",void 0),Zr(this,"number",void 0),Zr(this,"array",void 0),Zr(this,"enum",void 0),Zr(this,"empty",void 0),Zr(this,"minLength",void 0),Zr(this,"noAdditionalProperties",void 0),Zr(this,"each",void 0),this.obj=e,this.path=n,this._errors=[],this.catch=function(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];var f;(f=i._errors).push.apply(f,oO(o))},this.exists=function(s){return s in r.obj?!0:(r.catch(pV({property:s,path:r.path.of(s)})),!1)},this.object=function(s){var o=s?r.obj[s]:r.obj;if(s&&!r.exists(s))return!1;if(iV(o))return!0;var c=s?r.path.of(s):r.path,f,h=(f=s??r.path.last())!==null&&f!==void 0?f:"value";return r.catch(sm({typeName:"Object",property:h,path:c,value:o})),!1},this.string=function(s){var o=r.obj[s];return s&&!r.exists(s)?!1:typeof o=="string"?!0:(r.catch(sm({typeName:"String",property:s,path:r.path.of(s),value:o})),!1)},this.number=function(s,o){var c=r.obj[s];return o&&!(s in r.obj)?!0:r.exists(s)?typeof c=="number"&&!Number.isNaN(c)?!0:(r.catch(sm({typeName:"Number",property:s,path:r.path.of(s),value:c})),!1):!1},this.array=function(s){var o=r.obj[s];return s&&!r.exists(s)?!1:Array.isArray(o)?!0:(r.catch(sm({typeName:"Array",property:s,path:r.path.of(s),value:o})),!1)},this.enum=function(s,o){var c=r.obj[s];return typeof c=="string"&&o.includes(c)?!0:(r.catch(fV({expected:o,value:c,path:r.path.of(s)})),!1)},this.empty=function(s){if(!r.array(s))return!1;var o=r.obj[s];return o.length===0?!0:(r.catch(dV({max:0,value:o,path:r.path.of(s)})),!1)},this.minLength=function(s,o){if(!r.array(s))return!1;var c=r.obj[s];return c.length>=o?!0:(r.catch(uV({min:o,value:c,path:r.path.of(s)})),!1)},this.noAdditionalProperties=function(s){var o=Object.keys(r.obj).sort().filter(function(c){return!s.includes(c)});return o.forEach(function(c){return r.catch(hV({property:c,path:r.path.of(c)}))}),o.length===0},this.each=function(s,o){if(r.array(s)){var c=r.obj[s],f=!1;
89c.forEach(function(h,p){if(!f){var g=o(h,r.path.of(s).of(p));g.length>0&&(f=!0),r.catch.apply(r,oO(g))}})}}}return vV(t,[{key:"errors",get:function(){var n=this,r=function(i){return JSON.stringify({details:i.details,path:i.path})};return this._errors.filter(function(i,s){return n._errors.findIndex(function(o){return r(i)===r(o)})===s})}}]),t})();function uw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wV(t){if(Array.isArray(t))return uw(t)}function O1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E3(t,e,n){return e=ug(e),TV(t,T3()?Reflect.construct(e,n||[],ug(t).constructor):e.apply(t,n))}function R1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function EV(t,e,n){return e&&SV(t.prototype,e),t}function nu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ug(t){return ug=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ug(t)}function j3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dw(t,e)}function jV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function NV(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function TV(t,e){return e&&(kV(e)==="object"||typeof e=="function")?e:O1(t)}function dw(t,e){return dw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},dw(t,e)}function N3(t){return wV(t)||jV(t)||AV(t)||NV()}function kV(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function AV(t,e){if(t){if(typeof t=="string")return uw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uw(t,e)}}function T3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T3=function(){return!!t})()}var Zd=[],C1=(function(){function t(e,n){R1(this,t),nu(this,"contentRule",void 0),nu(this,"validateData",void 0),this.contentRule=e,this.validateData=n}return EV(t,[{key:"assert",value:function(n,r){var i=new bu(n,r);if(!i.object())return i.errors;i.noAdditionalProperties(["nodeType","data","content"]);var s=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(n,r),o=s.nodeTypes,c=s.min,f=c===void 0?0:c;if(o.length===0&&f>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(f," with no nodeTypes"));if(i.minLength("content",f),o.length===0?i.empty("content"):i.each("content",function(w,_){var S=new bu(w,_);return S.object()&&S.enum("nodeType",o),S.errors}),i.object("data")){var h,p,g,x,v=(x=(p=(g=this).validateData)===null||p===void 0?void 0:p.call(g,n.data,r.of("data")))!==null&&x!==void 0?x:[];(h=i).catch.apply(h,N3(v))}return i.errors}}]),t})(),OV=(function(t){j3(e,t);function e(n,r){R1(this,e);var i;return i=E3(this,e,[r,function(s,o){return O1(i).assertLink(s,o)}]),nu(i,"linkType",void 0),nu(i,"type",void 0),nu(i,"assertLink",void 0),i.linkType=n,i.assertLink=function(s,o){var c=new bu(s,o);if(c.object("target")){var f,h=new bu(s.target.sys,o.of("target").of("sys"));h.object()&&(h.enum("type",[i.type]),h.enum("linkType",[i.linkType]),i.type==="Link"?(h.string("id"),h.noAdditionalProperties(["type","linkType","id"])):i.type==="ResourceLink"&&(h.string("urn"),h.noAdditionalProperties(["type","linkType","urn"]))),(f=c).catch.apply(f,N3(h.errors))}return c.noAdditionalProperties(["target"]),c.errors}
89,i.type=i.linkType.startsWith("Contentful:")?"ResourceLink":"Link",i}return e})(C1),RV=(function(t){j3(e,t);function e(){R1(this,e);var n;return n=E3(this,e,[["text"],function(r,i){return O1(n).assertLink(r,i)}]),nu(n,"assertLink",function(r,i){var s=new bu(r,i);return s.string("uri"),s.noAdditionalProperties(["uri"]),s.errors}),n}return e})(C1),Ss=function(t,e){return new C1(t,e)},po=function(t,e){return new OV(t,e)};function fw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function CV(t){if(Array.isArray(t))return fw(t)}function sn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LV(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k3(t){return CV(t)||DV(t)||PV(t)||LV()}function PV(t,e){if(t){if(typeof t=="string")return fw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fw(t,e)}}var lo=Ss(k3(Object.values(Ai)).concat(["text"]).sort()),cO=Ss([pe.LIST_ITEM]),uO=po("Entry",Zd),dO=Ss(function(){return{nodeTypes:[pe.PARAGRAPH],min:1}},function(t,e){var n=new bu(t,e);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors}),Kt;Kt={},sn(Kt,pe.DOCUMENT,Ss(eV)),sn(Kt,pe.PARAGRAPH,lo),sn(Kt,pe.HEADING_1,lo),sn(Kt,pe.HEADING_2,lo),sn(Kt,pe.HEADING_3,lo),sn(Kt,pe.HEADING_4,lo),sn(Kt,pe.HEADING_5,lo),sn(Kt,pe.HEADING_6,lo),sn(Kt,pe.QUOTE,Ss(tV[pe.QUOTE])),sn(Kt,pe.EMBEDDED_ENTRY,uO),sn(Kt,pe.EMBEDDED_ASSET,po("Asset",Zd)),sn(Kt,pe.EMBEDDED_RESOURCE,po("Contentful:Entry",Zd)),sn(Kt,pe.HR,Ss(Zd)),sn(Kt,pe.OL_LIST,cO),sn(Kt,pe.UL_LIST,cO),sn(Kt,pe.LIST_ITEM,Ss(k3(S3).sort())),sn(Kt,pe.TABLE,Ss(function(){return{nodeTypes:[pe.TABLE_ROW],min:1}})),sn(Kt,pe.TABLE_ROW,Ss(function(){return{nodeTypes:[pe.TABLE_CELL,pe.TABLE_HEADER_CELL],min:1}})),sn(Kt,pe.TABLE_CELL,dO),sn(Kt,pe.TABLE_HEADER_CELL,dO),sn(Kt,Ai.HYPERLINK,new RV),sn(Kt,Ai.EMBEDDED_ENTRY,uO),sn(Kt,Ai.EMBEDDED_RESOURCE,po("Contentful:Entry",Zd)),sn(Kt,Ai.ENTRY_HYPERLINK,po("Entry",["text"])),sn(Kt,Ai.ASSET_HYPERLINK,po("Asset",["text"])),sn(Kt,Ai.RESOURCE_HYPERLINK,po("Contentful:Entry",["text"]));function MV(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const IV=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zV=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,UV={};function fO(t,e){return(UV.jsx?zV:IV).test(t)}const BV=/[ \t\n\f\r]/g;function $V(t){return typeof t=="object"?t.type==="text"?hO(t.value):!1:hO(t)}function hO(t){return t.replace(BV,"")===""}class hh{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}hh.prototype.normal={};hh.prototype.property={};hh.prototype.space=void 0;function A3(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new hh(n,r,e)}function hw(t){return t.toLowerCase()}class fi{constructor(e,n){this.attribute=n,this.property=e}}fi.prototype.attribute="";fi.prototype.booleanish=!1;fi.prototype.boolean=!1;fi.prototype.commaOrSpaceSeparated=!1;fi.prototype.commaSeparated=!1;fi.prototype.defined=!1;fi.prototype.mustUseProperty=!1;fi.prototype.number=!1;fi.prototype.overloadedBoolean=!1;fi.prototype.property="";fi.prototype.spaceSeparated=!1;fi.prototype.space=void 0;let FV=0;const ft=zo(),Vn=zo(),pw=zo(),xe=zo(),cn=zo(),ru=zo(),Ei=zo();function zo(){return 2**++FV}const mw=Object.freeze(Object.defineProperty({__proto__:null,boolean:ft,booleanish:Vn,commaOrSpaceSeparated:Ei,commaSeparated:ru,number:xe,overloadedBoolean:pw,spaceSeparated:cn},Symbol.toStringTag,{value:"Module"})),Nb=Object.keys(mw);class D1 extends fi{constructor(e,n,r,i){let s=-1;if(super(e,n),pO(this,"space",i),typeof r=="number")for(;++s<Nb.length;){const o=Nb[s];pO(this,Nb[s],(r&mw[o])===mw[o])}}}D1.prototype.defined=!0;function pO(t,e,n){n&&(t[e]=n)}function Nu(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const s=new D1(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[hw(r)]=r,n[hw(s.attribute)]=r}return new hh(e,n,t.space)}const O3=Nu({properties:{ariaActiveDescendant:null,ariaAtomic:Vn,ariaAutoComplete:null,ariaBusy:Vn,ariaChecked:Vn,ariaColCount:xe,ariaColIndex:xe,ariaColSpan:xe,ariaControl
vendor: 5,434 bytes, line 89
89s:cn,ariaCurrent:null,ariaDescribedBy:cn,ariaDetails:null,ariaDisabled:Vn,ariaDropEffect:cn,ariaErrorMessage:null,ariaExpanded:Vn,ariaFlowTo:cn,ariaGrabbed:Vn,ariaHasPopup:null,ariaHidden:Vn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cn,ariaLevel:xe,ariaLive:null,ariaModal:Vn,ariaMultiLine:Vn,ariaMultiSelectable:Vn,ariaOrientation:null,ariaOwns:cn,ariaPlaceholder:null,ariaPosInSet:xe,ariaPressed:Vn,ariaReadOnly:Vn,ariaRelevant:null,ariaRequired:Vn,ariaRoleDescription:cn,ariaRowCount:xe,ariaRowIndex:xe,ariaRowSpan:xe,ariaSelected:Vn,ariaSetSize:xe,ariaSort:null,ariaValueMax:xe,ariaValueMin:xe,ariaValueNow:xe,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function R3(t,e){return e in t?t[e]:e}function C3(t,e){return R3(t,e.toLowerCase())}const qV=Nu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ru,acceptCharset:cn,accessKey:cn,action:null,allow:null,allowFullScreen:ft,allowPaymentRequest:ft,allowUserMedia:ft,alt:null,as:null,async:ft,autoCapitalize:null,autoComplete:cn,autoFocus:ft,autoPlay:ft,blocking:cn,capture:null,charSet:null,checked:ft,cite:null,className:cn,cols:xe,colSpan:null,content:null,contentEditable:Vn,controls:ft,controlsList:cn,coords:xe|ru,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ft,defer:ft,dir:null,dirName:null,disabled:ft,download:pw,draggable:Vn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ft,formTarget:null,headers:cn,height:xe,hidden:pw,high:xe,href:null,hrefLang:null,htmlFor:cn,httpEquiv:cn,id:null,imageSizes:null,imageSrcSet:null,inert:ft,inputMode:null,integrity:null,is:null,isMap:ft,itemId:null,itemProp:cn,itemRef:cn,itemScope:ft,itemType:cn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ft,low:xe,manifest:null,max:null,maxLength:xe,media:null,method:null,min:null,minLength:xe,multiple:ft,muted:ft,name:null,nonce:null,noModule:ft,noValidate:ft,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ft,optimum:xe,pattern:null,ping:cn,placeholder:null,playsInline:ft,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ft,referrerPolicy:null,rel:cn,required:ft,reversed:ft,rows:xe,rowSpan:xe,sandbox:cn,scope:null,scoped:ft,seamless:ft,selected:ft,shadowRootClonable:ft,shadowRootDelegatesFocus:ft,shadowRootMode:null,shape:null,size:xe,sizes:null,slot:null,span:xe,spellCheck:Vn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xe,step:null,style:null,tabIndex:xe,target:null,title:null,translate:null,type:null,typeMustMatch:ft,useMap:null,value:Vn,width:xe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:cn,axis:null,background:null,bgColor:null,border:xe,borderColor:null,bottomMargin:xe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ft,declare:ft,event:null,face:null,frame:null,frameBorder:null,hSpace:xe,leftMargin:xe,link:null,longDesc:null,lowSrc:null,marginHeight:xe,marginWidth:xe,noResize:ft,noHref:ft,noShade:ft,noWrap:ft,object:null,profile:null,prompt:null,rev:null,rightMargin:xe,rules:null,scheme:null,scrolling:Vn,standby:null,summary:null,text:null,topMargin:xe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ft,disableRemotePlayback:ft,prefix:null,property:null,results:xe,security:null,unselectable:null},space:"html",transform:C3}),HV=Nu({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
89dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ei,accentHeight:xe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xe,amplitude:xe,arabicForm:null,ascent:xe,attributeName:null,attributeType:null,azimuth:xe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xe,by:null,calcMode:null,capHeight:xe,className:cn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
89dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:xe,diffuseConstant:xe,direction:null,display:null,dur:null,divisor:xe,dominantBaseline:null,download:ft,dx:null,dy:null,edgeMode:null,editable:null,elevation:xe,enableBackground:null,end:null,event:null,exponent:xe,externalResourcesRequired:null,fill:null,fillOpacity:xe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ru,g2:ru,glyphName:ru,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xe,horizOriginX:xe,horizOriginY:xe,id:null,ideographic:xe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xe,k:xe,k1:xe,k2:xe,k3:xe,k4:xe,kernelMatrix:Ei,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:xe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:xe,overlineThickness:xe,paintOrder:null,panose1:null,path:null,pathLength:xe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xe,pointsAtY:xe,pointsAtZ:xe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ei,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ei,rev:Ei,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ei,requiredFeatures:Ei,requiredFonts:Ei,requiredFormats:Ei,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:xe,specularExponent:xe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xe,strikethroughThickness:xe,string:null,stroke:null,strokeDashArray:Ei,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xe,strokeOpacity:xe,strokeWidth:null,style:null,surfaceScale:xe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ei,tabIndex:xe,tableValues:null,target:null,targetX:xe,targetY:xe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ei,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xe,underlineThickness:xe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xe,values:null,vAlphabetic:xe,vMathematical:xe,vectorEffect:null,vHanging:xe,vIdeographic:xe,version:null,vertAdvY:xe,vertOriginX:xe,vertOriginY:xe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:R3}),D3=Nu({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,084 bytes, lines 89-90
89,space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),L3=Nu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:C3}),P3=Nu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),GV={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},VV=/[A-Z]/g,mO=/-[a-z]/g,KV=/^data[-\w.:]+$/i;function YV(t,e){const n=hw(e);let r=e,i=fi;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&KV.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(mO,XV);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!mO.test(s)){let o=s.replace(VV,WV);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=D1}return new i(r,e)}function WV(t){return"-"+t.toLowerCase()}function XV(t){return t.charAt(1).toUpperCase()}const JV=A3([O3,qV,D3,L3,P3],"html"),L1=A3([O3,HV,D3,L3,P3],"svg");function QV(t){return t.join(" ").trim()}var Oc={},Tb,gO;function ZV(){if(gO)return Tb;gO=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,f=` 90`,h="/",p="*",g="",x="comment",v="declaration";function w(S,E){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];E=E||{};var N=1,k=1;function R(X){var K=X.match(e);K&&(N+=K.length);var U=X.lastIndexOf(f);k=~U?X.length-U:k+X.length}function D(){var X={line:N,column:k};return function(K){return K.position=new O(X),M(),K}}function O(X){this.start=X,this.end={line:N,column:k},this.source=E.source}O.prototype.content=S;function T(X){var K=new Error(E.source+":"+N+":"+k+": "+X);if(K.reason=X,K.filename=E.source,K.line=N,K.column=k,K.source=S,!E.silent)throw K}function L(X){var K=X.exec(S);if(K){var U=K[0];return R(U),S=S.slice(U.length),K}}function M(){L(n)}function q(X){var K;for(X=X||[];K=B();)K!==!1&&X.push(K);return X}function B(){var X=D();if(!(h!=S.charAt(0)||p!=S.charAt(1))){for(var K=2;g!=S.charAt(K)&&(p!=S.charAt(K)||h!=S.charAt(K+1));)++K;if(K+=2,g===S.charAt(K-1))return T("End of comment missing");var U=S.slice(2,K-2);return k+=2,R(U),S=S.slice(K),k+=2,X({type:x,comment:U})}}function I(){var X=D(),K=L(r);if(K){if(B(),!L(i))return T("property missing ':'");var U=L(s),W=X({type:v,property:_(K[0].replace(t,g)),value:U?_(U[0].replace(t,g)):g});return L(o),W}}function Z(){var X=[];q(X);for(var K;K=I();)K!==!1&&(X.push(K),q(X));return X}return M(),Z()}function _(S){return S?S.replace(c,g):g}return Tb=w,Tb}var yO;function eK(){if(yO)return Oc;yO=1;var t=Oc&&Oc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.default=n;const e=t(ZV());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const o=(0,e.default)(r),c=typeof i=="function";return o.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:p}=f;c?i(h,p,f):p&&(s=s||{},s[h]=p)}),s}return Oc}var Dd={},vO;function tK(){if(vO)return Dd;vO=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(h){return!h||n.test(h)||t.test(h)},o=function(h,p){return p.toUpperCase()},c=function(h,p){return"".concat(p,"-")},f=function(h,p){return p===void 0&&(p={}),s(h)?h:(h=h.toLowerCase(),p.reactCompat?h=h.replace(i,c):h=h.replace(r,c),h.replace(e,o))};return Dd.camelCase=f,Dd}var Ld,xO;function nK(){if(xO)return Ld;xO=1;var t=Ld&&Ld.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(eK()),n=tK();function r(i,s){var o={};
vendor: 2,733 bytes, line 90
90return!i||typeof i!="string"||(0,e.default)(i,function(c,f){c&&f&&(o[(0,n.camelCase)(c,s)]=f)}),o}return r.default=r,Ld=r,Ld}var rK=nK();const iK=Ls(rK),M3=I3("end"),P1=I3("start");function I3(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function aK(t){const e=P1(t),n=M3(t);if(e&&n)return{start:e,end:n}}function wf(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?bO(t.position):"start"in t||"end"in t?bO(t):"line"in t||"column"in t?gw(t):""}function gw(t){return _O(t&&t.line)+":"+_O(t&&t.column)}function bO(t){return gw(t&&t.start)+"-"+gw(t&&t.end)}function _O(t){return t&&typeof t=="number"?t:1}class Cr extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const f=r.indexOf(":");f===-1?s.ruleId=r:(s.source=r.slice(0,f),s.ruleId=r.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=c?c.line:void 0,this.name=wf(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Cr.prototype.file="";Cr.prototype.name="";Cr.prototype.reason="";Cr.prototype.message="";Cr.prototype.stack="";Cr.prototype.column=void 0;Cr.prototype.line=void 0;Cr.prototype.ancestors=void 0;Cr.prototype.cause=void 0;Cr.prototype.fatal=void 0;Cr.prototype.place=void 0;Cr.prototype.ruleId=void 0;Cr.prototype.source=void 0;const M1={}.hasOwnProperty,sK=new Map,lK=/[A-Z]/g,oK=new Set(["table","tbody","thead","tfoot","tr"]),cK=new Set(["td","th"]),z3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uK(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=vK(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,016 bytes, line 90
90if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yK(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?L1:JV,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=U3(i,t,void 0);return s&&typeof s!="string"?s:i.create(t,i.Fragment,{children:s||void 0},void 0)}function U3(t,e,n){if(e.type==="element")return dK(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return fK(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return pK(t,e,n);if(e.type==="mdxjsEsm")return hK(t,e);if(e.type==="root")return mK(t,e,n);if(e.type==="text")return gK(t,e)}function dK(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=L1,t.schema=i),t.ancestors.push(e);const s=$3(t,e.tagName,!1),o=xK(t,e);let c=z1(t,e);return oK.has(e.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!$V(f):!0})),B3(t,o,s,e),I1(o,c),t.ancestors.pop(),t.schema=r,t.create(e,s,o,n)}function fK(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}Qf(t,e.position)}function hK(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Qf(t,e.position)}function pK(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=L1,t.schema=i),t.ancestors.push(e);const s=e.name===null?t.Fragment:$3(t,e.name,!0),o=bK(t,e),c=z1(t,e);return B3(t,o,s,e),I1(o,c),t.ancestors.pop(),t.schema=r,t.create(e,s,o,n)}function mK(t,e,n){const r={};return I1(r,z1(t,e)),t.create(e,t.Fragment,r,n)}function gK(t,e){return e.value}function B3(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function I1(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function yK(t,e,n){return r;function r(i,s,o,c){const h=Array.isArray(o.children)?n:e;return c?h(s,o,c):h(s,o)}}function vK(t,e){return n;function n(r,i,s,o){const c=Array.isArray(s.children),f=P1(r);return e(i,s,o,c,{columnNumber:f?f.column-1:void 0,fileName:t,lineNumber:f?f.line:void 0},void 0)}}function xK(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&M1.call(e.properties,i)){const s=_K(t,i,e.properties[i]);if(s){const[o,c]=s;t.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&cK.has(e.tagName)?r=c:n[o]=c}}if(r){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function bK(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,t.evaluater.evaluateExpression(c.argument))}else Qf(t,e.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const c=r.value.data.estree.body[0];c.type,s=t.evaluater.evaluateExpression(c.expression)}else Qf(t,e.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function z1(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:sK;for(;++r<e.children.length;){const s=e.children[r];let o;if(t.passKeys){const f=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(f){const h=i.get(f)||0;o=f+"-"+h,i.set(f,h+1)}}const c=U3(t,s,o);c!==void 0&&n.push(c)}return n}function _K(t,e,n){const r=YV(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?MV(n):QV(n)),r.property==="style"){let i=typeof n=="object"?n:wK(t,String(n));return t.stylePropertyNameCase==="css"&&(i=SK(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?GV[r.property]||r.property:r.attribute,n]}}function wK(t,e){try{return iK(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new Cr("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=z3+"#cannot-parse-style-attribute",i}}function $3(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let s=-1,o;for(;++s<i.length;){const c=fO(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}r=o}else r=fO(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return M1.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);Qf(t)}function Qf(t,e){const n=new Cr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=z3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function SK(t){const e={};let n;for(n in t)M1.call(t,n)&&(e[EK(n)]=t[n]);return e}function EK(t){let e=t.replace(lK,jK);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function jK(t){return"-"+t.toLowerCase()}const kb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},NK={};function TK(t,e){const n=NK,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return F3(t,r,i)}function F3(t,e,n){if(kK(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return wO(t.children,e,n)}
vendor: 11,166 bytes, line 90
90return Array.isArray(t)?wO(t,e,n):""}function wO(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=F3(t[i],e,n);return r.join("")}function kK(t){return!!(t&&typeof t=="object")}const SO=document.createElement("i");function U1(t){const e="&"+t+";";SO.innerHTML=e;const n=SO.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Xa(t,e,n,r){const i=t.length;let s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function la(t,e){return t.length>0?(Xa(t,t.length,0,e),t):e}const EO={}.hasOwnProperty;function AK(t){const e={};let n=-1;for(;++n<t.length;)OK(e,t[n]);return e}function OK(t,e){let n;for(n in e){const i=(EO.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){EO.call(i,o)||(i[o]=[]);const c=s[o];RK(i[o],Array.isArray(c)?c:c?[c]:[])}}}function RK(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Xa(t,0,0,r)}function q3(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function iu(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ua=Ml(/[A-Za-z]/),Ii=Ml(/[\dA-Za-z]/),CK=Ml(/[#-'*+\--9=?A-Z^-~]/);function yw(t){return t!==null&&(t<32||t===127)}const vw=Ml(/\d/),DK=Ml(/[\dA-Fa-f]/),LK=Ml(/[!-/:-@[-`{-~]/);function tt(t){return t!==null&&t<-2}function ui(t){return t!==null&&(t<0||t===32)}function Mt(t){return t===-2||t===-1||t===32}const PK=Ml(new RegExp("\\p{P}|\\p{S}","u")),MK=Ml(/\s/);function Ml(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Tu(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let o="";if(s===37&&Ii(t.charCodeAt(n+1))&&Ii(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const c=t.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(o=String.fromCharCode(s,c),i=1):o="�"}else o=String.fromCharCode(s);o&&(e.push(t.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function dn(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(f){return Mt(f)?(t.enter(n),c(f)):e(f)}function c(f){return Mt(f)&&s++<i?(t.consume(f),c):(t.exit(n),e(f))}}const IK={tokenize:zK};function zK(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),dn(t,e,"linePrefix")}function i(c){return t.enter("paragraph"),s(c)}function s(c){const f=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,o(c)}function o(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return tt(c)?(t.consume(c),t.exit("chunkText"),s):(t.consume(c),o)}}const UK={tokenize:BK},jO={tokenize:$K};function BK(t){const e=this,n=[];let r=0,i,s,o;return c;function c(k){if(r<n.length){const R=n[r];return e.containerState=R[1],t.attempt(R[0].continuation,f,h)(k)}return h(k)}function f(k){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&N();const R=e.events.length;let D=R,O;for(;D--;)if(e.events[D][0]==="exit"&&e.events[D][1].type==="chunkFlow"){O=e.events[D][1].end;break}E(r);let T=R;for(;T<e.events.length;)e.events[T][1].end={...O},T++;return Xa(e.events,D+1,0,e.events.slice(R)),e.events.length=T,h(k)}return c(k)}function h(k){if(r===n.length){if(!i)return x(k);if(i.currentConstruct&&i.currentConstruct.concrete)return w(k);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(jO,p,g)(k)}function p(k){return i&&N(),E(r),x(k)}function g(k){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,w(k)}function x(k){return e.containerState={},t.attempt(jO,v,w)(k)}function v(k){return r++,n.push([e.currentConstruct,e.containerState]),x(k)}function w(k){if(k===null){i&&N(),E(0),t.consume(k);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),_(k)}function _(k){if(k===null){S(t.exit("chunkFlow"),!0),E(0),t.consume(k);return}return tt(k)?(t.consume(k),S(t.exit("chunkFlow")),r=0,e.interrupt=void 0,c):(t.consume(k),_)}function S(k,R){const D=e.sliceStream(k);if(R&&D.push(null),k.previous=s,s&&(s.next=k),s=k,i.defineSkip(k.start),i.write(D),e.parser.lazy[k.start.line]){let O=i.events.length;for(;O--;)if(i.events[O][1].start.offset<o&&(!i.events[O][1].end||i.events[O][1].end.offset>o))return;const T=e.events.length;let L=T,M,q;for(;L--;)if(e.events[L][0]==="exit"&&e.events[L][1].type==="chunkFlow"){if(M){q=e.events[L][1].end;break}M=!0}for(E(r),O=T;O<e.events.length;)e.events[O][1].end={...q},O++;Xa(e.events,L+1,0,e.events.slice(T)),e.events.length=O}}function E(k){let R=n.length;for(;R-- >k;){const D=n[R];e.containerState=D[1],D[0].exit.call(e,t)}n.length=k}function N(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function $K(t,e,n){return dn(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function NO(t){if(t===null||ui(t)||MK(t))return 1;if(PK(t))return 2}function B1(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}const xw={name:"attention",resolveAll:FK,tokenize:qK};function FK(t,e){let n=-1,r,i,s,o,c,f,h,p;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;f=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const g={...t[r][1].end},x={...t[n][1].start};TO(g,-f),TO(x,f),o={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...t[r][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:x},s={type:f>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:f>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},t[r][1].end={...o.start},t[n][1].start={...c.end},h=[],t[r][1].end.offset-t[r][1].start.offset&&(h=la(h,[["enter",t[r][1],e],["exit",t[r][1],e]])),h=la(h,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),h=la(h,B1(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),h=la(h,[["exit",s,e],["enter",c,e],["exit",c,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(p=2,h=la(h,[["enter",t[n][1],e],["exit",t[n][1],e]])):p=0,Xa(t,r-1,n-r+3,h),n=r+h.length-p-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function qK(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=NO(r);let s;return o;function o(f){return s=f,t.enter("attentionSequence"),c(f)}function c(f){if(f===s)return t.consume(f),c;const h=t.exit("attentionSequence"),p=NO(f),g=!p||p===2&&i||n.includes(f),x=!i||i===2&&p||n.includes(r);return h._open=!!(s===42?g:g&&(i||!x)),h._close=!!(s===42?x:x&&(p||!g)),e(f)}}function TO(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const HK={name:"autolink",tokenize:GK};function GK(t,e,n){let r=0;return i;function i(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(v){return Ua(v)?(t.consume(v),o):v===64?n(v):h(v)}function o(v){return v===43||v===45||v===46||Ii(v)?(r=1,c(v)):h(v)}function c(v){return v===58?(t.consume(v),r=0,f):(v===43||v===45||v===46||Ii(v))&&r++<32?(t.consume(v),c):(r=0,h(v))}function f(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),e):v===null||v===32||v===60||yw(v)?n(v):(t.consume(v),f)}function h(v){return v===64?(t.consume(v),p):CK(v)?(t.consume(v),h):n(v)}function p(v){return Ii(v)?g(v):n(v)}function g(v){return v===46?(t.consume(v),r=0,p):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),e):x(v)}function x(v){if((v===45||Ii(v))&&r++<63){const w=v===45?x:g;return t.consume(v),w}return n(v)}}const zg={partial:!0,tokenize:VK};function VK(t,e,n){return r;function r(s){return Mt(s)?dn(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||tt(s)?e(s):n(s)}}const H3={continuation:{tokenize:YK},exit:WK,name:"blockQuote",tokenize:KK};function KK(t,e,n){const r=this;return i;function i(o){if(o===62){const c=r.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Mt(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function YK(t,e,n){const r=this;return i;function i(o){return Mt(o)?dn(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(H3,e,n)(o)}}function WK(t){t.exit("blockQuote")}const G3={name:"characterEscape",tokenize:XK};function XK(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return LK(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const V3={name:"characterReference",tokenize:JK};function JK(t,e,n){const r=this;let i=0,s,o;return c;function c(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),f}function f(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),s=31,o=Ii,p(g))}function h(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=DK,p):(t.enter("characterReferenceValue"),s=7,o=vw,p(g))}function p(g){if(g===59&&i){const x=t.exit("characterReferenceValue");return o===Ii&&!U1(r.sliceSerialize(x))?n(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(g)&&i++<s?(t.consume(g),p):n(g)}}const kO={partial:!0,tokenize:ZK},AO={concrete:!0,name:"codeFenced",tokenize:QK};function QK(t,e,n){const r=this,i={partial:!0,tokenize:D};let s=0,o=0,c;return f;function f(O){return h(O)}function h(O){const T=r.events[r.events.length-1];return s=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,c=O,t.enter("co
90deFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===c?(o++,t.consume(O),p):o<3?n(O):(t.exit("codeFencedFenceSequence"),Mt(O)?dn(t,g,"whitespace")(O):g(O))}function g(O){return O===null||tt(O)?(t.exit("codeFencedFence"),r.interrupt?e(O):t.check(kO,_,R)(O)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(O))}function x(O){return O===null||tt(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(O)):Mt(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),dn(t,v,"whitespace")(O)):O===96&&O===c?n(O):(t.consume(O),x)}function v(O){return O===null||tt(O)?g(O):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(O))}function w(O){return O===null||tt(O)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(O)):O===96&&O===c?n(O):(t.consume(O),w)}function _(O){return t.attempt(i,R,S)(O)}function S(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),E}function E(O){return s>0&&Mt(O)?dn(t,N,"linePrefix",s+1)(O):N(O)}function N(O){return O===null||tt(O)?t.check(kO,_,R)(O):(t.enter("codeFlowValue"),k(O))}function k(O){return O===null||tt(O)?(t.exit("codeFlowValue"),N(O)):(t.consume(O),k)}function R(O){return t.exit("codeFenced"),e(O)}function D(O,T,L){let M=0;return q;function q(K){return O.enter("lineEnding"),O.consume(K),O.exit("lineEnding"),B}function B(K){return O.enter("codeFencedFence"),Mt(K)?dn(O,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):I(K)}function I(K){return K===c?(O.enter("codeFencedFenceSequence"),Z(K)):L(K)}function Z(K){return K===c?(M++,O.consume(K),Z):M>=o?(O.exit("codeFencedFenceSequence"),Mt(K)?dn(O,X,"whitespace")(K):X(K)):L(K)}function X(K){return K===null||tt(K)?(O.exit("codeFencedFence"),T(K)):L(K)}}}function ZK(t,e,n){const r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}const Ab={name:"codeIndented",tokenize:tY},eY={partial:!0,tokenize:nY};function tY(t,e,n){const r=this;return i;function i(h){return t.enter("codeIndented"),dn(t,s,"linePrefix",5)(h)}function s(h){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(h):n(h)}function o(h){return h===null?f(h):tt(h)?t.attempt(eY,o,f)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||tt(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),c)}function f(h){return t.exit("codeIndented"),e(h)}}function nY(t,e,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):tt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):dn(t,s,"linePrefix",5)(o)}function s(o){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?e(o):tt(o)?i(o):n(o)}}const rY={name:"codeText",previous:aY,resolve:iY,tokenize:sY};function iY(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function aY(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sY(t,e,n){let r=0,i,s;return o;function o(g){return t.enter("codeText"),t.enter("codeTextSequence"),c(g)}function c(g){return g===96?(t.consume(g),r++,c):(t.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),f):g===96?(s=t.enter("codeTextSequence"),i=0,p(g)):tt(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),f):(t.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||tt(g)?(t.exit("codeTextData"),f(g)):(t.consume(g),h)}function p(g){return g===96?(t.consume(g),i++,p):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(g)):(s.type="codeTextData",h(g))}}class lY{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Pd(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Pd(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Pd(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Pd(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Pd(this.left,n.reverse())}}}function Pd(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function K3(t){const e={};let n=-1,r,i,s,o,c,f,h;const p=new lY(t);for(;++n<p.length;){for(;n in e;)n=e[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(f=r[1]._tokenizer.events,s=0,s<f.length&&f[s][1].type==="lineEndingBlank"&&(s+=2),s<f.length&&f[s][1].type==="content"))for(;++s<f.length&&f[s][1].type!=="content";)f[s][1].type==="chunkText"&&(f[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,oY(p,n)),n=e[n],h=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=p.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(p.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...p.get(i)[1].start},c=p.slice(i,n),c.unshift(r),p.splice(i,n-i+1,c))}}return Xa(t,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function oY(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,f=[],h={};let p,g,x=-1,v=n,w=0,_=0;const S=[_];for(;v;){for(;t.get(++i)[1]!==v;);s.push(i),v._tokenizer||(p=r.sliceStream(v),v.next||p.push(null),g&&o.defineSki
vendor: 18,565 bytes, line 90
90p(v.start),v._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),v._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=n;++x<c.length;)c[x][0]==="exit"&&c[x-1][0]==="enter"&&c[x][1].type===c[x-1][1].type&&c[x][1].start.line!==c[x][1].end.line&&(_=x+1,S.push(_),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(o.events=[],v?(v._tokenizer=void 0,v.previous=void 0):S.pop(),x=S.length;x--;){const E=c.slice(S[x],S[x+1]),N=s.pop();f.push([N,N+E.length-1]),t.splice(N,2,E)}for(f.reverse(),x=-1;++x<f.length;)h[w+f[x][0]]=w+f[x][1],w+=f[x][1]-f[x][0]-1;return h}const cY={resolve:dY,tokenize:fY},uY={partial:!0,tokenize:hY};function dY(t){return K3(t),t}function fY(t,e){let n;return r;function r(c){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?s(c):tt(c)?t.check(uY,o,s)(c):(t.consume(c),i)}function s(c){return t.exit("chunkContent"),t.exit("content"),e(c)}function o(c){return t.consume(c),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function hY(t,e,n){const r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),dn(t,s,"linePrefix")}function s(o){if(o===null||tt(o))return n(o);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}function Y3(t,e,n,r,i,s,o,c,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(E){return E===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(E),t.exit(s),x):E===null||E===32||E===41||yw(E)?n(E):(t.enter(r),t.enter(o),t.enter(c),t.enter("chunkString",{contentType:"string"}),_(E))}function x(E){return E===62?(t.enter(s),t.consume(E),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(c),t.enter("chunkString",{contentType:"string"}),v(E))}function v(E){return E===62?(t.exit("chunkString"),t.exit(c),x(E)):E===null||E===60||tt(E)?n(E):(t.consume(E),E===92?w:v)}function w(E){return E===60||E===62||E===92?(t.consume(E),v):v(E)}function _(E){return!p&&(E===null||E===41||ui(E))?(t.exit("chunkString"),t.exit(c),t.exit(o),t.exit(r),e(E)):p<h&&E===40?(t.consume(E),p++,_):E===41?(t.consume(E),p--,_):E===null||E===32||E===40||yw(E)?n(E):(t.consume(E),E===92?S:_)}function S(E){return E===40||E===41||E===92?(t.consume(E),_):_(E)}}function W3(t,e,n,r,i,s){const o=this;let c=0,f;return h;function h(v){return t.enter(r),t.enter(i),t.consume(v),t.exit(i),t.enter(s),p}function p(v){return c>999||v===null||v===91||v===93&&!f||v===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(v):v===93?(t.exit(s),t.enter(i),t.consume(v),t.exit(i),t.exit(r),e):tt(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),p):(t.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||tt(v)||c++>999?(t.exit("chunkString"),p(v)):(t.consume(v),f||(f=!Mt(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(t.consume(v),c++,g):g(v)}}function X3(t,e,n,r,i,s){let o;return c;function c(x){return x===34||x===39||x===40?(t.enter(r),t.enter(i),t.consume(x),t.exit(i),o=x===40?41:x,f):n(x)}function f(x){return x===o?(t.enter(i),t.consume(x),t.exit(i),t.exit(r),e):(t.enter(s),h(x))}function h(x){return x===o?(t.exit(s),f(o)):x===null?n(x):tt(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),dn(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===o||x===null||tt(x)?(t.exit("chunkString"),h(x)):(t.consume(x),x===92?g:p)}function g(x){return x===o||x===92?(t.consume(x),p):p(x)}}function Sf(t,e){let n;return r;function r(i){return tt(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):Mt(i)?dn(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const pY={name:"definition",tokenize:gY},mY={partial:!0,tokenize:yY};function gY(t,e,n){const r=this;let i;return s;function s(v){return t.enter("definition"),o(v)}function o(v){return W3.call(r,t,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function c(v){return i=iu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),f):n(v)}function f(v){return ui(v)?Sf(t,h)(v):h(v)}function h(v){return Y3(t,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function p(v){return t.attempt(mY,g,g)(v)}function g(v){return Mt(v)?dn(t,x,"whitespace")(v):x(v)}function x(v){return v===null||tt(v)?(t.exit("definition"),r.parser.defined.push(i),e(v)):n(v)}}function yY(t,e,n){return r;function r(c){return ui(c)?Sf(t,i)(c):n(c)}function i(c){return X3(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return Mt(c)?dn(t,o,"whitespace")(c):o(c)}function o(c){return c===null||tt(c)?e(c):n(c)}}const vY={name:"hardBreakEscape",tokenize:xY};function xY(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return tt(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const bY={name:"headingAtx",resolve:_Y,tokenize:wY};function _Y(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Xa(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function wY(t,e,n){let r=0;return i;function i(p){return t.enter("atxHeading"),s(p)}function s(p){return t.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(t.consume(p),o):p===null||ui(p)?(t.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(t.enter("atxHeadingSequence"),f(p)):p===null||tt(p)?(t.exit("atxHeading"),e(p)):Mt(p)?dn(t,c,"whitespace")(p):(t.enter("atxHeadingText"),h(p))}function f(p){return p===35?(t.consume(p),f):(t.exit("atxHeadingSequence"),c(p))}function h(p){return p===null||p===35||ui(p)?(t.exit("atxHeadingText"),c(p)):(t.consume(p),h)}}const SY=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],OO=["pre","script","style","textarea"],EY={concrete:!0,name:"htmlFlow",resolveTo:TY,tokenize:kY},jY={partial:!0,tokenize:OY},NY={partial:!0,tokenize:AY};function TY(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function kY(t,e,n){const r=this;let i,s,o,c,f;return h;function h(P){return p(P)}function p(P){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(P),g}function g(P){return P===33?(t.consume(P),x):P===47?(t.consume(P),s=!0,_):P===63?(t.consume(P),i=3,r.interrupt?e:A):Ua(P)?(t.consume(P),o=String.fromCharCode(P),S):n(P)}function x(P){return P===45?(t.consume(P),i=2,v):P===91?(t.consume(P),i=5,c=0,w):Ua(P)?(t.consume(P),i=4,r.interrupt?e:A):n(P)}function v(P){return P===45?(t.consume(P),r.interrupt?e:A):n(P)}function w(P){const ce="CDATA[";return P===ce.charCodeAt(c++)?(t.consume(P),c===ce.length?r.interrupt?e:I:w):n(P)}function _(P){return Ua(P)?(t.consume(P),o=String.fromCharCode(P),S):n(P)}function S(P){if(P===null||P===47||P===62||ui(P)){const ce=P===47,ve=o.toLowerCase();return!ce&&!s&&OO.includes(ve)?(i=1,r.interrupt?e(P):I(P)):SY.includes(o.toLowerCase())?(i=6,ce?(t.consume(P),E):r.interrupt?e(P):I(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):s?N(P):k(P))}return P===45||Ii(P)?(t.consume(P),o+=String.fromCharCode(P),S):n(P)}function E(P){return P===62?(t.consume(P),r.interrupt?e:I):n(P)}function N(P){return Mt(P)?(t.consume(P),N):q(P)}function k(P){return P===47?(t.consume(P),q):P===58||P===95||Ua(P)?(t.consume(P),R):Mt(P)?(t.consume(P),k):q(P)}function R(P){return P===45||P===46||P===58||P===95||Ii(P)?(t.consume(P),R):D(P)}function D(P){return P===61?(t.consume(P),O):Mt(P)?(t.consume(P),D):k(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(t.consume(P),f=P,T):Mt(P)?(t.consume(P),O):L(P)}function T(P){return P===f?(t.consume(P),f=null,M):P===null||tt(P)?n(P):(t.consume(P),T)}function L(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||ui(P)?D(P):(t.consume(P),L)}function M(P){return P===47||P===62||Mt(P)?k(P):n(P)}function q(P){return P===62?(t.consume(P),B):n(P)}function B(P){return P===null||tt(P)?I(P):Mt(P)?(t.consume(P),B):n(P)}function I(P){return P===45&&i===2?(t.consume(P),U):P===60&&i===1?(t.consume(P),W):P===62&&i===4?(t.consume(P),z):P===63&&i===3?(t.consume(P),A):P===93&&i===5?(t.consume(P),he):tt(P)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(jY,Q,Z)(P)):P===null||tt(P)?(t.exit("htmlFlowData"),Z(P)):(t.consume(P),I)}function Z(P){return t.check(NY,X,Q)(P)}function X(P){return t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),K}function K(P){return P===null||tt(P)?Z(P):(t.enter("htmlFlowData"),I(P))}function U(P){return P===45?(t.consume(P),A):I(P)}function W(P){return P===47?(t.consume(P),o="",G):I(P)}function G(P){if(P===62){const ce=o.toLowerCase();return OO.includes(ce)?(t.consume(P),z):I(P)}return Ua(P)&&o.length<8?(t.consume(P),o+=String.fromCharCode(P),G):I(P)}function he(P){return P===93?(t.consume(P),A):I(P)}function A(P){return P===62?(t.consume(P),z):P===45&&i===2?(t.consume(P),A):I(P)}function z(P){return P===null||tt(P)?(t.exit("htmlFlowData"),Q(P)):(t.consume(P),z)}function Q(P){return t.exit("htmlFlow"),e(P)}}function AY(t,e,n){const r=this;return i;function i(o){return tt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}function OY(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(zg,e,n)}}const RY={name:"htmlText",tokenize:CY};function CY(t,e,n){const r=this;let i,s,o;return c;function c(A){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(A),f}function f(A){return A===33?(t.consume(A),h):A===47?(t.consume(A),D):A===63?(t.consume(A),k):Ua(A)?(t.consume(A),L):n(A)}function h(A){return A===45?(t.consume(A),p):A===91?(t.consume(A),s=0,w):Ua(A)?(t.consume(A),N):n(A)}function p(A){return A===45?(t.consume(A),v):n(A)}function g(A){return A===null?n(A):A===45?(t.consume(A),x):tt(A)?(o=g,W(A)):(t.consume(A),g)}function x(A){return A===45?(t.consume(A),v):g(A)}function v(A){return A===62?U(A):A===45?x(A):g(A)}function w(A){const z="CDATA[";return A===z.charCodeAt(s++)?(t.consume(A),s===z.length?_:w):n(A)}function _(A){return A===null?n(A):A===93?(t.consume(A),S):tt(A)?(o=_,W(A)):(t.consume(A),_)}function S(A){return A===93?(t.consume(A),E):_(A)}function E(A){return A===62?U(A):A===93?(t.consume(A),E):_(A)}function N(A){return A===null||A===62?U(A):tt(A)?(o=N,W(A)):(t.consume(A),N)}function k(A){return A===null?n(A):A===63?(t.consume(A),R):tt(A)?(o=k,W(A)):(t.consume(A),k)}function R(A){return A===62?U(A):k(A)}function D(A){return Ua(A)?(t.consume(A),O):n(A)}function O(A){return A===45||Ii(A)?(t.consume(A),O):T(A)}function T(A){return tt(A)?(o=T,W(A)):Mt(A)?(t.consume(A),T):U(A)}function L(A){return A===45||Ii(A)?(t.consume(A),L):A===47||A===62||ui(A)?M(A):n(A)}function M(A){return A===47?(t.consume(A),U):A===58||A===95||Ua(A)?(t.consume(A),q):tt(A)?(o=M,W(A)):Mt(A)?(t.consume(A),M):U(A)}function q(A){return A===45||A===46||A===58||A===95||Ii(A)?(t.consume(A),q):B(A)}function B(A){return A===61?(t.consume(A),I):tt(A)?(o=B,W(A)):Mt(A)?(t.consume(A),B):M(A)}function I(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(t.consume(A),i=A,Z):tt(A)?(o=I,W(A)):Mt(A)?(t.consume(A),I):(t.consume(A),X)}function Z(A){return A===i?(t.consume(A),i=void 0,K):A===null?n(A):tt(A)?(o=Z,W(A)):(t.consume(A),Z)}function X(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||ui(A)?M(A):(t.consume(A),X)}function K(A){return A===47||A===62||ui(A)?M(A):n(A)}function U(A){return A===62?(t.consume(A),t.exit("htmlTextData"),t.exit("htmlText"),e):n(A)}function W(A){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),G}function G(A){return Mt(A)?dn(t,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):he(A)}function he(A){return t.enter("htmlTextData"),o(A)}}const $1={name:"labelEnd",resolveAll:MY,resolveTo:IY,tokenize:zY},DY={tokenize:UY},LY={tokenize:BY},PY={tokenize:$Y};function MY(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&Xa(t,0,t.length,n),t}function IY(t,e){let n=t.length,r=0,i,s,o,c;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const f={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[s][1].start},end:{...t[o][1].end}},p={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[o-2][1].start}};return c=[["enter",f,e],["enter",h,e]],c=la(c,t.slice(s+1,s+r+3)),c=la(c,[["enter",p,e]]),c=la(c,B1(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),c=la(c,[["exit",p,e],t[o-2],t[o-1],["exit",h,e]]),c=la(c,t.slice(o+1)),c=la(c,[["exit",f,e]]),Xa(t,s,t.length,c),t}function zY(t,e,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return c;function c(x){return s?s._inactive?g(x):(o=r.parser.defined.includes(iu(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),f):n(x)}function f(x){return x===40?t.attempt(DY,p,o?p:g)(x):x===91?t.attempt(LY,p,o?h:g)(x):o?p(x):g(x)}function h(x){return t.attempt(PY,p,g)(x)}function p(x){return e(x)}function g(x){return s._balanced=!0,n(x)}}function UY(t,e,n){return r;function r(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),i}function i(g){return ui(g)?Sf(t,s)(g):s(g)}function s(g){return g===41?p(g):Y3(t,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function o(g){return ui(g)?Sf(t,f)(g):p(g)}function c(g){return n(g)}function f(g){return g===34||g===39||g===40?X3(t,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return ui(g)?Sf(t,p)(g):p(g)}function p(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),e):n(g)}}function BY(t,e,n){const r=this;return i;function i(c){return W3.call(r,t,s,o,"reference","referenceMarker","referenceString")(c)}function s(c){return r.parser.defined.includes(iu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(c):n(c)}function o(c){return n(c)}}function $Y(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const FY={name:"labelStartImage",resolveAll:$1.resolveAll,tokenize:qY};function qY(t,e,n){const r=this;return i;function i(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),s}function s(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):e(c)}}const HY={name:"labelStartLink",resolveAll:$1.resolveAll,tokenize:GY};function GY(t,e,n){const r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const Ob={name:"lineEnding",tokenize:VY};function VY(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),dn(t,e,"linePrefix")}}const Cm={name:"thematicBreak",tokenize:KY};function KY(t,e,n){let r=0,i;return s;function s(h){return t.enter("thematicBreak"),o(h)}function o(h){return i=h,c(h)}function c(h){return h===i?(t.enter("thematicBreakSequence"),f(h)):r>=3&&(h===null||tt(h))?(t.exit("thematicBreak"),e(h)):n(h)}function f(h){return h===i?(t.consume(h),r++,f):(t.exit("thematicBreakSequence"),Mt(h)?dn(t,c,"whitespace")(h):c(h))}}const ei={continuation:{tokenize:JY},exit:ZY,name:"list",tokenize:XY},YY={partial:!0,tokenize:eW},WY={partial:!0,tokenize:QY};function XY(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return c;function c(v){const w=r.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||v===r.containerState.marker:vw(v)){if(r.containerState.type||(r.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(Cm,n,h)(v):h(v);if(!r.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(v)}return n(v)}function f(v){return vw(v)&&++o<10?(t.consume(v),f):(!r.interrupt||o<2)&&(r.containerState.marker?v===r.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),h(v)):n(v)}function h(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||v,t.check(zg,r.interrupt?n:p,t.attempt(YY,x,g))}
vendor: 5,359 bytes, line 90
90function p(v){return r.containerState.initialBlankLine=!0,s++,x(v)}function g(v){return Mt(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),x):n(v)}function x(v){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(v)}}function JY(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(zg,i,s);function i(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,dn(t,e,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!Mt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(WY,e,o)(c))}function o(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,dn(t,t.attempt(ei,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function QY(t,e,n){const r=this;return dn(t,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}function ZY(t){t.exit(this.containerState.type)}function eW(t,e,n){const r=this;return dn(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!Mt(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const RO={name:"setextUnderline",resolveTo:tW,tokenize:nW};function tW(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=o,t.push(["exit",o,e]),t}function nW(t,e,n){const r=this;let i;return s;function s(h){let p=r.events.length,g;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){g=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(t.enter("setextHeadingLine"),i=h,o(h)):n(h)}function o(h){return t.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===i?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),Mt(h)?dn(t,f,"lineSuffix")(h):f(h))}function f(h){return h===null||tt(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}const rW={tokenize:iW};function iW(t){const e=this,n=t.attempt(zg,r,t.attempt(this.parser.constructs.flowInitial,i,dn(t,t.attempt(this.parser.constructs.flow,i,t.attempt(cY,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const aW={resolveAll:Q3()},sW=J3("string"),lW=J3("text");function J3(t){return{resolveAll:Q3(t==="text"?oW:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,o,c);return o;function o(p){return h(p)?s(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),f}function f(p){return h(p)?(n.exit("data"),s(p)):(n.consume(p),f)}function h(p){if(p===null)return!0;const g=i[p];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(r,r.previous))return!0}return!1}}}function Q3(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function oW(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,o=-1,c=0,f;for(;s--;){const h=i[s];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(h===-2)f=!0,c++;else if(h!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(c=0),c){const h={type:n===t.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(t.splice(n,0,["enter",h,e],["exit",h,e]),n+=2)}n++}return t}const cW={42:ei,43:ei,45:ei,48:ei,49:ei,50:ei,51:ei,52:ei,53:ei,54:ei,55:ei,56:ei,57:ei,62:H3},uW={91:pY},dW={[-2]:Ab,[-1]:Ab,32:Ab},fW={35:bY,42:Cm,45:[RO,Cm],60:EY,61:RO,95:Cm,96:AO,126:AO},hW={38:V3,92:G3},pW={[-5]:Ob,[-4]:Ob,[-3]:Ob,33:FY,38:V3,42:xw,60:[HK,RY],91:HY,92:[vY,G3],93:$1,95:xw,96:rY},mW={null:[xw,aW]},gW={null:[42,95]},yW={null:[]},vW=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gW,contentInitial:uW,disable:yW,document:cW,flow:fW,flowInitial:dW,insideSpan:mW,string:hW,text:pW},Symbol.toStringTag,{value:"Module"}));function xW(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 13,790 bytes, lines 90-92
90olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],c=[];const f={attempt:T(D),check:T(O),consume:N,enter:k,exit:R,interrupt:T(O,{interrupt:!0})},h={code:null,containerState:{},defineSkip:_,events:[],now:w,parser:t,previous:null,sliceSerialize:x,sliceStream:v,write:g};let p=e.tokenize.call(h,f);return e.resolveAll&&s.push(e),h;function g(B){return o=la(o,B),S(),o[o.length-1]!==null?[]:(L(e,0),h.events=B1(s,h.events,h),h.events)}function x(B,I){return _W(v(B),I)}function v(B){return bW(o,B)}function w(){const{_bufferIndex:B,_index:I,line:Z,column:X,offset:K}=r;return{_bufferIndex:B,_index:I,line:Z,column:X,offset:K}}function _(B){i[B.line]=B.column,q()}function S(){let B;for(;r._index<o.length;){const I=o[r._index];if(typeof I=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<I.length;)E(I.charCodeAt(r._bufferIndex));else E(I)}}function E(B){p=p(B)}function N(B){tt(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,q()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=B}function k(B,I){const Z=I||{};return Z.type=B,Z.start=w(),h.events.push(["enter",Z,h]),c.push(Z),Z}function R(B){const I=c.pop();return I.end=w(),h.events.push(["exit",I,h]),I}function D(B,I){L(B,I.from)}function O(B,I){I.restore()}function T(B,I){return Z;function Z(X,K,U){let W,G,he,A;return Array.isArray(X)?Q(X):"tokenize"in X?Q([X]):z(X);function z(ye){return Se;function Se(He){const Te=He!==null&&ye[He],Ae=He!==null&&ye.null,We=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(Ae)?Ae:Ae?[Ae]:[]];return Q(We)(He)}}function Q(ye){return W=ye,G=0,ye.length===0?U:P(ye[G])}function P(ye){return Se;function Se(He){return A=M(),he=ye,ye.partial||(h.currentConstruct=ye),ye.name&&h.parser.constructs.disable.null.includes(ye.name)?ve():ye.tokenize.call(I?Object.assign(Object.create(h),I):h,f,ce,ve)(He)}}function ce(ye){return B(he,A),K}function ve(ye){return A.restore(),++G<W.length?P(W[G]):U}}}function L(B,I){B.resolveAll&&!s.includes(B)&&s.push(B),B.resolve&&Xa(h.events,I,h.events.length-I,B.resolve(h.events.slice(I),h)),B.resolveTo&&(h.events=B.resolveTo(h.events,h))}function M(){const B=w(),I=h.previous,Z=h.currentConstruct,X=h.events.length,K=Array.from(c);return{from:X,restore:U};function U(){r=B,h.previous=I,h.currentConstruct=Z,h.events.length=X,c=K,q()}}function q(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function bW(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}function _W(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=` 91`;break}case-3:{o=`\r 92`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function wW(t){const r={constructs:AK([vW,...(t||{}).extensions||[]]),content:i(IK),defined:[],document:i(UK),flow:i(rW),lazy:{},string:i(sW),text:i(lW)};return r;function i(s){return o;function o(c){return xW(r,s,c)}}}function SW(t){for(;!K3(t););return t}const CO=/[\0\t\n\r]/g;function EW(){let t=1,e="",n=!0,r;return i;function i(s,o,c){const f=[];let h,p,g,x,v;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),g=0,e="",n&&(s.charCodeAt(0)===65279&&g++,n=void 0);g<s.length;){if(CO.lastIndex=g,h=CO.exec(s),x=h&&h.index!==void 0?h.index:s.length,v=s.charCodeAt(x),!h){e=s.slice(g);break}if(v===10&&g===x&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),g<x&&(f.push(s.slice(g,x)),t+=x-g),v){case 0:{f.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,f.push(-2);t++<p;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:r=!0,t=1}g=x+1}return c&&(r&&f.push(-5),e&&f.push(e),f.push(null)),f}}const jW=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NW(t){return t.replace(jW,TW)}function TW(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return q3(n.slice(s?2:1),s?16:10)}return U1(n)||t}const Z3={}.hasOwnProperty;function kW(t,e,n){return e&&typeof e=="object"&&(n=e,e=void 0),AW(n)(SW(wW(n).document().write(EW()(t,e,!0))))}function AW(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xt),autolinkProtocol:M,autolinkEmail:M,atxHeading:s(re),blockQuote:s(Ae),characterEscape:M,characterReference:M,codeFenced:s(We),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(We,o),codeText:s(Ge,o),codeTextData:M,data:M,codeFlowValue:M,definition:s(Ce),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Ve),hardBreakEscape:s(ue),hardBreakTrailing:s(ue),htmlFlow:s(H,o),htmlFlowData:M,htmlText:s(H,o),htmlTextData:M,image:s(Ne),label:o,link:s(xt),listItem:s(ut),listItemValue:x,listOrdered:s(Ut,g),listUnordered:s(Ut),paragraph:s(xn),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(re),strong:s(Qn),thematicBreak:s(gn)},exit:{atxHeading:f(),atxHeadingSequence:D,autolink:f(),autolinkEmail:Te,autolinkProtocol:He,blockQuote:f(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:ye,characterReference:Se,codeFenced:f(S),codeFencedFence:_,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:q,codeIndented:f(E),codeText:f(K),codeTextData:q,data:q,definition:f(),definitionDestinationString:R,definitionLabelString:N,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(I),hardBreakTrailing:f(I),htmlFlow:f(Z),htmlFlowData:q,htmlText:f(X),htmlTextData:q,image:f(W),label:he,labelText:G,lineEnding:B,link:f(U),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ce,resourceDestinationString:A,resourceTitleString:z,resource:Q,setextHeading:f(L),setextHeadingLineSequence:T,setextHeadingText:O,strong:f(),thematicBreak:f()}};e4(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(oe){let ge={type:"root",children:[]};const De={stack:[ge],tokenStack:[],config:e,enter:c,exit:h,buffer:o,resume:p,data:n},Be=[];let it=-1;for(;++it<oe.length;)if(oe[it][1].type==="listOrdered"||oe[it][1].type==="listUnordered")if(oe[it][0]==="enter")Be.push(it);else{const kn=Be.pop();it=i(oe,kn,it)}for(it=-1;++it<oe.length;){const kn=e[oe[it][0]];Z3.call(kn,oe[it][1].type)&&kn[oe[it][1].type].call(Object.assign({sliceSerialize:oe[it][2].sliceSerialize},De),oe[it][1])}if(De.tokenStack.length>0){const kn=De.tokenStack[De.tokenStack.length-1];(kn[1]||DO).call(De,void 0,kn[0])}for(ge.position={start:hl(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:hl(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<e.transforms.length;)ge=e.transforms[it](ge)||ge;return ge}function i(oe,ge,De){let Be=ge-1,it=-1,kn=!1,Rt,An,Ot,tn;for(;++Be<=De;){const Y=oe[Be];switch(Y[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Y[0]==="enter"?it++:it--,tn=void 0;break}case"lineEndingBlank":{Y[0]==="enter"&&(Rt&&!tn&&!it&&!Ot&&(Ot=Be),tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:tn=void 0}if(!it&&Y[0]==="enter"&&Y[1].type==="listItemPrefix"||it===-1&&Y[0]==="exit"&&(Y[1].type==="listUnordered"||Y[1].type==="listOrdered")){if(Rt){let ee=Be;for(An=void 0;ee--;){const Xe=oe[ee];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;An&&(oe[An][1].type="lineEndingBlank",kn=!0),Xe[1].type="lineEnding",An=ee}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Ot&&(!An||Ot<An)&&(Rt._spread=!0),Rt.end=Object.assign({},An?oe[An][1].start:Y[1].end),oe.splice(An||Be,0,["exit",Rt,Y[2]]),Be++,De++}if(Y[1].type==="listItemPrefix"){const ee={type:"listItem",_spread:!1,start:Object.assign({},Y[1].start),end:void 0};Rt=ee,oe.splice(Be,0,["enter",ee,Y[2]]),Be++,De++,Ot=void 0,tn=!0}}}return oe[ge][1]._spread=kn,De}function s(oe,ge){return De;function De(Be){c.call(this,oe(Be),Be),ge&&ge.call(this,Be)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(oe,ge,De){this.stack[this.stack.length-1].children.push(oe),this.stack.push(oe),this.tokenStack.push([ge,De||void 0]),oe.position={start:hl(ge.start),end:void 0}}function f(oe){return ge;function ge(De){oe&&oe.call(this,De),h.call(this,De)}}function h(oe,ge){const De=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==oe.type&&(ge?ge.call(this,oe,Be[0]):(Be[1]||DO).call(this,oe,Be[0]));else throw new Error("Cannot close `"+oe.type+"` ("+wf({start:oe.start,end:oe.end})+"): itâs not open");De.position.end=hl(oe.end)}function p(){return TK(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(oe){if(this.data.expectingFirstListItemValue){const ge=this.stack[this.stack.length-2];ge.start=Number.parseInt(this.sliceSerialize(oe),10),this.data.expectingFirstListItemValue=void 0}}function v(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.lang=oe}function w(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.meta=oe}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.value=oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.value=oe.replace(/(\r?\n|\r)$/g,"")}function N(oe){const ge=this.resume(),De=this.stack[this.stack.length-1];De.label=ge,De.identifier=iu(this.sliceSerialize(oe)).toLowerCase()}function k(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.title=oe}function R(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.url=oe}function D(oe){const ge=this.stack[this.stack.length-1];if(!ge.depth){const De=this.sliceSerialize(oe).length;ge.depth=De}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function T(oe){const ge=this.stack[this.stack.length-1];ge.depth=this.sliceSerialize(oe).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function M(oe){const De=this.stack[this.stack.length-1].children;let Be=De[De.length-1];(!Be||Be.type!=="text")&&(Be=It(),Be.position={start:hl(oe.start),end:void 0},De.push(Be)),this.stack.push(Be)}function q(oe){const ge=this.stack.pop();ge.value+=this.sliceSerialize(oe),ge.position.end=hl(oe.end)}function B(oe){const ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=ge.children[ge.children.length-1];De.position.end=hl(oe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ge.type)&&(M.call(this,oe),q.call(this,oe))}function I(){this.data.atHardBreak=!0}function Z(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.value=oe}function X(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.value=oe}function K(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.value=oe}function U(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=ge,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function W(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=ge,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function G(oe){const ge=this.sliceSerialize(oe),De=this.stack[this.stack.length-2];De.label=NW(ge),De.identifier=iu(ge).toLowerCase()}function he(){const oe=this.stack[this.stack.length-1],ge=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const Be=oe.children;De.children=Be}else De.alt=ge}function A(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.url=oe}function z(){const oe=this.resume(),ge=this.stack[this.stack.length-1];ge.title=oe}function Q(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function ce(oe){const ge=this.resume(),De=this.stack[this.stack.length-1];De.label=ge,De.identifier=iu(this.sliceSerialize(oe)).toLowerCase(),this.data.referenceType="full"}function ve(oe){this.data.characterReferenceType=oe.type}function ye(oe){const ge=this.sliceSerialize(oe),De=this.data.characterReferenceType;let Be;De?(Be=q3(ge,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=U1(ge);const it=this.stack[this.stack.length-1];it.value+=Be}function Se(oe){const ge=this.stack.pop();ge.position.end=hl(oe.end)}function He(oe){q.call(this,oe);const ge=this.stack[this.stack.length-1];ge.url=this.sliceSerialize(oe)}function Te(oe){q.call(this,oe);const ge=this.stack[this.stack.length-1];ge.url="mailto:"+this.sliceSerialize(oe)}function Ae(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function Ge(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ve(){return{type:"emphasis",children:[]}}function re(){return{type:"heading",depth:0,children:[]}}function ue(){return{type:"break"}}function H(){return{type:"html",value:""}}function Ne(){return{type:"image",title:null,url:"",alt:null}}
vendor: 6,976 bytes, lines 92-96
92function xt(){return{type:"link",title:null,url:"",children:[]}}function Ut(oe){return{type:"list",ordered:oe.type==="listOrdered",start:null,spread:oe._spread,children:[]}}function ut(oe){return{type:"listItem",spread:oe._spread,checked:null,children:[]}}function xn(){return{type:"paragraph",children:[]}}function Qn(){return{type:"strong",children:[]}}function It(){return{type:"text",value:""}}function gn(){return{type:"thematicBreak"}}}function hl(t){return{line:t.line,column:t.column,offset:t.offset}}function e4(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?e4(t,r):OW(t,r)}}function OW(t,e){let n;for(n in e)if(Z3.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function DO(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+wf({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+wf({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+wf({start:e.start,end:e.end})+") is still open")}function RW(t){const e=this;e.parser=n;function n(r){return kW(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function CW(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function DW(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:` 93`}]}function LW(t,e){const n=e.value?e.value+` 94`:"",r={},i=e.lang?e.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}function PW(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function MW(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function IW(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=Tu(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let o,c=t.footnoteCounts.get(r);c===void 0?(c=0,t.footnoteOrder.push(r),o=t.footnoteOrder.length):o=s+1,c+=1,t.footnoteCounts.set(r,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return t.patch(e,h),t.applyData(e,h)}function zW(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function UW(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function t4(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function BW(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return t4(t,e);const i={src:Tu(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}function $W(t,e){const n={src:Tu(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function FW(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function qW(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return t4(t,e);const i={href:Tu(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function HW(t,e){const n={href:Tu(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function GW(t,e,n){const r=t.all(e),i=n?VW(n):n4(e),s={},o=[];if(typeof e.checked=="boolean"){const p=r[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(i||c!==0||p.type!=="element"||p.tagName!=="p")&&o.push({type:"text",value:` 95`}),p.type==="element"&&p.tagName==="p"&&!i?o.push(...p.children):o.push(p)}const f=r[r.length-1];f&&(i||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:` 96`});const h={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,h),t.applyData(e,h)}function VW(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=n4(n[r])}return e}function n4(t){const e=t.spread;return e??t.children.length>1}function KW(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}function YW(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function WW(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function XW(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function JW(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},c=P1(e.children[1]),f=M3(e.children[e.children.length-1]);c&&f&&(o.position={start:c,end:f}),i.push(o)}const s={type:"element",tagName:"table",properties:{}
vendor: 2,156 bytes, line 96
96,children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function QW(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:e.children.length;let f=-1;const h=[];for(;++f<c;){const g=e.children[f],x={},v=o?o[f]:void 0;v&&(x.align=v);let w={type:"element",tagName:s,properties:x,children:[]};g&&(w.children=t.all(g),t.patch(g,w),w=t.applyData(g,w)),h.push(w)}const p={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,p),t.applyData(e,p)}function ZW(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const LO=9,PO=32;function eX(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(MO(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(MO(e.slice(i),i>0,!1)),s.join("")}function MO(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===LO||s===PO;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===LO||s===PO;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}function tX(t,e){const n={type:"text",value:eX(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function nX(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const rX={blockquote:CW,break:DW,code:LW,delete:PW,emphasis:MW,footnoteReference:IW,heading:zW,html:UW,imageReference:BW,image:$W,inlineCode:FW,linkReference:qW,link:HW,listItem:GW,list:KW,paragraph:YW,root:WW,strong:XW,table:JW,tableCell:ZW,tableRow:QW,text:tX,thematicBreak:nX,toml:lm,yaml:lm,definition:lm,footnoteDefinition:lm};function lm(){}const r4=-1,Ug=0,Ef=1,dg=2,F1=3,q1=4,H1=5,G1=6,i4=7,a4=8,IO=typeof self=="object"?self:globalThis,iX=(t,e)=>{const n=(i,s)=>(t.set(s,i),i),r=i=>{if(t.has(i))return t.get(i);const[s,o]=e[i];switch(s){case Ug:case r4:return n(o,i);case Ef:{const c=n([],i);for(const f of o)c.push(r(f));return c}case dg:{const c=n({},i);for(const[f,h]of o)c[r(f)]=r(h);return c}case F1:return n(new Date(o),i);case q1:{const{source:c,flags:f}=o;return n(new RegExp(c,f),i)}case H1:{const c=n(new Map,i);
vendor: 6,406 bytes, lines 96-98
96for(const[f,h]of o)c.set(r(f),r(h));return c}case G1:{const c=n(new Set,i);for(const f of o)c.add(r(f));return c}case i4:{const{name:c,message:f}=o;return n(new IO[c](f),i)}case a4:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(new IO[s](o),i)};return r},zO=t=>iX(new Map,t)(0),Rc="",{toString:aX}={},{keys:sX}=Object,Md=t=>{const e=typeof t;if(e!=="object"||!t)return[Ug,e];const n=aX.call(t).slice(8,-1);switch(n){case"Array":return[Ef,Rc];case"Object":return[dg,Rc];case"Date":return[F1,Rc];case"RegExp":return[q1,Rc];case"Map":return[H1,Rc];case"Set":return[G1,Rc];case"DataView":return[Ef,n]}return n.includes("Array")?[Ef,n]:n.includes("Error")?[i4,n]:[dg,n]},om=([t,e])=>t===Ug&&(e==="function"||e==="symbol"),lX=(t,e,n,r)=>{const i=(o,c)=>{const f=r.push(o)-1;return n.set(c,f),f},s=o=>{if(n.has(o))return n.get(o);let[c,f]=Md(o);switch(c){case Ug:{let p=o;switch(f){case"bigint":c=a4,p=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return i([r4],o)}return i([c,p],o)}case Ef:{if(f){let x=o;return f==="DataView"?x=new Uint8Array(o.buffer):f==="ArrayBuffer"&&(x=new Uint8Array(o)),i([f,[...x]],o)}const p=[],g=i([c,p],o);for(const x of o)p.push(s(x));return g}case dg:{if(f)switch(f){case"BigInt":return i([f,o.toString()],o);case"Boolean":case"Number":case"String":return i([f,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const p=[],g=i([c,p],o);for(const x of sX(o))(t||!om(Md(o[x])))&&p.push([s(x),s(o[x])]);return g}case F1:return i([c,o.toISOString()],o);case q1:{const{source:p,flags:g}=o;return i([c,{source:p,flags:g}],o)}case H1:{const p=[],g=i([c,p],o);for(const[x,v]of o)(t||!(om(Md(x))||om(Md(v))))&&p.push([s(x),s(v)]);return g}case G1:{const p=[],g=i([c,p],o);for(const x of o)(t||!om(Md(x)))&&p.push(s(x));return g}}const{message:h}=o;return i([c,{name:f,message:h}],o)};return s},UO=(t,{json:e,lossy:n}={})=>{const r=[];return lX(!(e||n),!!e,new Map,r)(t),r},fg=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?zO(UO(t,e)):structuredClone(t):(t,e)=>zO(UO(t,e));function oX(t,e){const n=[{type:"text",value:"â©"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function cX(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function uX(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||oX,r=t.options.footnoteBackLabel||cX,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[f]);if(!h)continue;const p=t.all(h),g=String(h.identifier).toUpperCase(),x=Tu(g.toLowerCase());let v=0;const w=[],_=t.footnoteCounts.get(g);for(;_!==void 0&&++v<=_;){w.length>0&&w.push({type:"text",value:" "});let N=typeof n=="string"?n:n(f,v);typeof N=="string"&&(N={type:"text",value:N}),w.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(f,v),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const N=S.children[S.children.length-1];N&&N.type==="text"?N.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...w)}else p.push(...w);const E={type:"element",tagName:"li",properties:{id:e+"fn-"+x},children:t.wrap(p,!0)};t.patch(h,E),c.push(E)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...fg(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 97`},{type:"element",tagName:"ol",properties:{},children:t.wrap(c,!0)},{type:"text",value:` 98`}]}}const s4=(function(t){if(t==null)return pX;if(typeof t=="function")return Bg(t);if(typeof t=="object")return Array.isArray(t)?dX(t):fX(t);if(typeof t=="string")return hX(t);throw new Error("Expected function, string, or object as test")});function dX(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=s4(t[n]);return Bg(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function fX(t){const e=t;return Bg(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function hX(t){return Bg(e);function e(n){return n&&n.type===t}}function Bg(t){return e;function e(n,r,i){return!!(mX(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function pX(){return!0}function mX(t){return t!==null&&typeof t=="object"&&"type"in t}const l4=[],gX=!0,BO=!1,yX="skip";function vX(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=s4(i),o=r?-1:1;c(t,void 0,[])();function c(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=l4,w,_,S;if((!e||s(f,h,p[p.length-1]||void 0))&&(v=xX(n(f,p)),v[0]===BO))return v;if("children"in f&&f.children){const E=f;if(E.children&&v[0]!==yX)for(_=(r?E.children.length:-1)+o,S=p.concat(E);_>-1&&_<E.children.length;){const N=E.children[_];if(w=c(N,_,S)(),w[0]===BO)return w;_=typeof w[1]=="number"?w[1]:_+o}}return v}}}function xX(t){return Array.isArray(t)?t:typeof t=="number"?[gX,t]:t==null?l4:[t]}function o4(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),vX(t,s,c,i);function c(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return o(f,g,p)}}const bw={}.hasOwnProperty,bX={};function _X(t,e){const n=e||bX,r=new Map,i=new Map,s=new Map,o={...rX,...n.handlers},c={all:h,applyData:SX,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:f,options:n,patch:wX,wrap:jX};return o4(t,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?r:i,x=String(p.identifier).toUpperCase();g.has(x)||g.set(x,p)}}),c;function f(p,g){const x=p.type,v=c.handlers[x];if(bw.call(c.handlers,x)&&v)return v(c,p,g);
vendor: 7,263 bytes, lines 98-102
98if(c.options.passThrough&&c.options.passThrough.includes(x)){if("children"in p){const{children:_,...S}=p,E=fg(S);return E.children=c.all(p),E}return fg(p)}return(c.options.unknownHandler||EX)(c,p,g)}function h(p){const g=[];if("children"in p){const x=p.children;let v=-1;for(;++v<x.length;){const w=c.one(x[v],p);if(w){if(v&&x[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=$O(w.value)),!Array.isArray(w)&&w.type==="element")){const _=w.children[0];_&&_.type==="text"&&(_.value=$O(_.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function wX(t,e){t.position&&(e.position=aK(t))}function SX(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,fg(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function EX(t,e){const n=e.data||{},r="value"in e&&!(bw.call(n,"hProperties")||bw.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function jX(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:` 99`});++r<t.length;)r&&n.push({type:"text",value:` 100`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:` 101`}),n}function $O(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function FO(t,e){const n=_X(t,e),r=n.one(t,void 0),i=uX(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:` 102`},i),s}function NX(t,e){return t&&"run"in t?async function(n,r){const i=FO(n,{file:r,...e});await t.run(i,r)}:function(n,r){return FO(n,{file:r,...t||e})}}function qO(t){if(t)throw t}var Rb,HO;function TX(){if(HO)return Rb;HO=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},s=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var p=t.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!g)return!1;var x;for(x in h);return typeof x>"u"||t.call(h,x)},o=function(h,p){n&&p.name==="__proto__"?n(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},c=function(h,p){if(p==="__proto__")if(t.call(h,p)){if(r)return r(h,p).value}else return;return h[p]};return Rb=function f(){var h,p,g,x,v,w,_=arguments[0],S=1,E=arguments.length,N=!1;for(typeof _=="boolean"&&(N=_,_=arguments[1]||{},S=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});S<E;++S)if(h=arguments[S],h!=null)for(p in h)g=c(_,p),x=c(h,p),_!==x&&(N&&x&&(s(x)||(v=i(x)))?(v?(v=!1,w=g&&i(g)?g:[]):w=g&&s(g)?g:{},o(_,{name:p,newValue:f(N,w,x)})):typeof x<"u"&&o(_,{name:p,newValue:x}));return _},Rb}var kX=TX();const Cb=Ls(kX);function _w(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function AX(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...i);function c(f,...h){const p=t[++s];let g=-1;if(f){o(f);return}for(;++g<i.length;)(h[g]===null||h[g]===void 0)&&(h[g]=i[g]);i=h,p?OX(p,c)(...h):o(null,...h)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function OX(t,e){let n;return r;function r(...o){const c=t.length>o.length;let f;c&&o.push(i);try{f=t.apply(this,o)}catch(h){const p=h;if(c&&n)throw p;return i(p)}c||(f&&f.then&&typeof f.then=="function"?f.then(s,i):f instanceof Error?i(f):s(f))}function i(o,...c){n||(n=!0,e(o,...c))}function s(o){i(null,o)}}const Ca={basename:RX,dirname:CX,extname:DX,join:LX,sep:"/"};function RX(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ph(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let o=-1,c=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),c>-1&&(t.codePointAt(i)===e.codePointAt(c--)?c<0&&(r=i):(c=-1,r=o));return n===r?r=o:r<0&&(r=t.length),t.slice(n,r)}function CX(t){if(ph(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function DX(t){ph(t);let e=t.length,n=-1,r=0,i=-1,s=0,o;for(;e--;){const c=t.codePointAt(e);if(c===47){if(o){r=e+1;break}continue}n<0&&(o=!0,n=e+1),c===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function LX(...t){let e=-1,n;for(;++e<t.length;)ph(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":PX(n)}function PX(t){ph(t);const e=t.codePointAt(0)===47;let n=MX(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function MX(t,e){let n="",r=0,i=-1,s=0,o=-1,c,f;for(;++o<=t.length;){if(o<t.length)c=t.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",r=0):(n=n.slice(0,f),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,o):n=t.slice(i+1,o),r=o-i-1;i=o,s=0}else c===46&&s>-1?s++:s=-1}return n}function ph(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const IX={cwd:zX};function zX(){return"/"}function ww(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function UX(t){if(typeof t=="string")t=new URL(t);else if(!ww(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return BX(t)}function BX(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const Db=["history","path","basename","stem","extname","dirname"];class c4{constructor(e){let n;e?ww(e)?n={path:e}:typeof e=="string"||$X(e)?n={value:e}
vendor: 9,725 bytes, line 102
102:n=e:n={},this.cwd="cwd"in n?"":IX.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Db.length;){const s=Db[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Db.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ca.basename(this.path):void 0}set basename(e){Pb(e,"basename"),Lb(e,"basename"),this.path=Ca.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Ca.dirname(this.path):void 0}set dirname(e){GO(this.basename,"dirname"),this.path=Ca.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Ca.extname(this.path):void 0}set extname(e){if(Lb(e,"extname"),GO(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ca.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ww(e)&&(e=UX(e)),Pb(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Ca.basename(this.path,this.extname):void 0}set stem(e){Pb(e,"stem"),Lb(e,"stem"),this.path=Ca.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new Cr(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Lb(t,e){if(t&&t.includes(Ca.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Ca.sep+"`")}function Pb(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function GO(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function $X(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const FX=(function(t){const r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),qX={}.hasOwnProperty;class V1 extends FX{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=AX()}copy(){const e=new V1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Cb(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(zb("data",this.frozen),this.namespace[e]=n,this):qX.call(this.namespace,e)&&this.namespace[e]||void 0:e?(zb("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=cm(e),r=this.parser||this.Parser;return Mb("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),Mb("process",this.parser||this.Parser),Ib("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const c=cm(e),f=r.parse(c);r.run(f,c,function(p,g,x){if(p||!g||!x)return h(p);const v=g,w=r.stringify(v,x);VX(w)?x.value=w:x.result=w,h(p,x)});function h(p,g){p||!g?o(p):s?s(g):n(void 0,g)}}}processSync(e){let n=!1,r;return this.freeze(),Mb("processSync",this.parser||this.Parser),Ib("processSync",this.compiler||this.Compiler),this.process(e,i),KO("processSync","process",n),r;function i(s,o){n=!0,qO(s),r=o}}run(e,n,r){VO(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,c){const f=cm(n);i.run(e,f,h);function h(p,g,x){const v=g||e;p?c(p):o?o(v):r(void 0,v,x)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),KO("runSync","run",r),i;function s(o,c){qO(o),i=c,r=!0}}stringify(e,n){this.freeze();const r=cm(n),i=this.compiler||this.Compiler;return Ib("stringify",i),VO(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(zb("use",this.frozen),e!=null)if(typeof e=="function")f(e,n);else if(typeof e=="object")Array.isArray(e)?c(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(i.settings=Cb(!0,i.settings,h.settings))}function c(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];s(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,x=-1;for(;++g<r.length;)if(r[g][0]===h){x=g;break}if(x===-1)r.push([h,...p]);else if(p.length>0){let[v,...w]=p;const _=r[x][1];_w(_)&&_w(v)&&(v=Cb(!0,_,v)),r[x]=[h,v,...w]}}}}const HX=new V1().freeze();function Mb(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Ib(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function zb(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function VO(t){if(!_w(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function KO(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function cm(t){return GX(t)?t:new c4(t)}function GX(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function VX(t){return typeof t=="string"||KX(t)}function KX(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const YX="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",YO=[],WO={allowDangerousHtml:!0},WX=/^(https?|ircs?|mailto|xmpp)$/i,XX=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function JX(t){const e=QX(t),n=ZX(t);return eJ(e.runSync(e.parse(n),n),t)}function QX(t){const e=t.rehypePlugins||YO,n=t.remarkPlugins||YO,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...WO}:WO;return HX().use(RW).use(n).use(NX,r).use(e)}function ZX(t){const e=t.children||"",n=new c4;return typeof e=="string"&&(n.value=e),n}function eJ(t,e){const n=e.allowedElements,r=e.allowElement,i=e.components,s=e.disallowedElements,o=e.skipHtml,c=e.unwrapDisallowed,f=e.urlTransform||tJ;for(const p of XX)Object.hasOwn(e,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+YX+p.id,void 0);return o4(t,h),uK(t,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function h(p,g,x){if(p.type==="raw"&&x&&typeof g=="number")return o?x.children.splice(g,1):x.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let v;for(v in kb)if(Object.hasOwn(kb,v)&&Object.hasOwn(p.properties,v)){const w=p.properties[v],_=kb[v];(_===null||_.includes(p.tagName))&&(p.properties[v]=f(String(w||""),v,p))}}if(p.type==="element"){let v=n?!n.includes(p.tagName):s?s.includes(p.tagName):!1;if(!v&&r&&typeof g=="number"&&(v=!r(p,g,x)),v&&x&&typeof g=="number")return c&&p.children?x.children.splice(g,1,...p.children):x.children.splice(g,1),g}}}function tJ(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||r!==-1&&e>r||WX.test(t.slice(0,e))?t:""}const nJ={renderMark:{[jb.BOLD]:t=>d.jsx("strong",{className:"font-semibold text-primary",children:t}),[jb.ITALIC]:t=>d.jsx("em",{className:"italic",children:t}),[jb.CODE]:t=>d.jsx("code",{className:"font-mono text-sm bg-primary/5 text-accent px-1.5 py-0.5 rounded",children:t})},renderNode:{[pe.PARAGRAPH]:(t,e)=>d.jsx("p",{className:"font-sans text-primary/80 text-base md:text-lg leading-relaxed mb-6",children:e}),[pe.HEADING_1]:(t,e)=>d.jsx("h1",{className:"font-heading font-bold text-4xl text-primary mt-10 mb-4",children:e}),[pe.HEADING_2]:(t,e)=>d.jsx("h2",{className:"font-heading font-bold text-3xl text-primary mt-10 mb-4",children:e}),[pe.HEADING_3]:(t,e)=>d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mt-8 mb-3",children:e}),[pe.UL_LIST]:(t,e)=>
102d.jsx("ul",{className:"list-disc list-outside ml-6 mb-6 space-y-2 font-sans text-primary/80",children:e}),[pe.OL_LIST]:(t,e)=>d.jsx("ol",{className:"list-decimal list-outside ml-6 mb-6 space-y-2 font-sans text-primary/80",children:e}),[pe.LIST_ITEM]:(t,e)=>d.jsx("li",{className:"leading-relaxed",children:e}),[pe.QUOTE]:(t,e)=>d.jsx("blockquote",{className:"border-l-4 border-accent pl-6 my-8 italic text-primary/60 text-lg",children:e}),[pe.HR]:()=>d.jsx("hr",{className:"border-primary/10 my-10"}),[pe.EMBEDDED_ASSET]:t=>{try{const e=t?.data?.target?.fields;if(!e)return null;const n=e.file;if(!n?.url)return null;const r=`https:${n.url}`;return(n.contentType||"").startsWith("image/")?d.jsxs("figure",{className:"my-8",children:[d.jsx("img",{src:`${r}?w=1200&q=80&fm=webp`,alt:e.description||e.title||"",className:"w-full rounded-2xl border border-primary/5 shadow-sm"}),(e.description||e.title)&&d.jsx("figcaption",{className:"text-center text-xs text-primary/40 font-sans mt-3",children:e.description||e.title})]}):null}catch{return null}},[pe.EMBEDDED_ENTRY]:t=>{try{const e=t?.data?.target?.fields;if(!e)return null;const n=e.text||e.body||e.description||null;return n&&typeof n=="string"?d.jsx("div",{className:"my-6 border-l-4 border-accent/30 pl-5 py-2 bg-accent/5 rounded-r-xl",children:d.jsx("p",{className:"font-sans text-sm text-primary/70",children:n})}):null}catch{return null}},[Ai.HYPERLINK]:(t,e)=>d.jsx("a",{href:t.data.uri,target:"_blank",rel:"noopener noreferrer",className:"text-accent underline underline-offset-2 hover:text-primary transition-colors",children:e}),[Ai.EMBEDDED_ENTRY]:()=>null}},rJ=({body:t})=>t?typeof t=="string"?d.jsx("div",{className:"markdown-content",children:d.jsx(JX,{components:{h1:({children:e})=>d.jsx("h1",{className:"font-heading font-bold text-4xl text-primary mt-10 mb-4",children:e}),h2:({children:e})=>d.jsx("h2",{className:"font-heading font-bold text-3xl text-primary mt-10 mb-4",children:e}),h3:({children:e})=>d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mt-8 mb-3",children:e}),p:({children:e})=>d.jsx("p",{className:"font-sans text-primary/80 text-base md:text-lg leading-relaxed mb-6",children:e}),ul:({children:e})=>d.jsx("ul",{className:"list-disc list-outside ml-6 mb-6 space-y-2 font-sans text-primary/80",children:e}),ol:({children:e})=>d.jsx("ol",{className:"list-decimal list-outside ml-6 mb-6 space-y-2 font-sans text-primary/80",children:e}),li:({children:e})=>d.jsx("li",{className:"leading-relaxed",children:e}),blockquote:({children:e})=>d.jsx("blockquote",{className:"border-l-4 border-accent pl-6 my-8 italic text-primary/60 text-lg",children:e}),hr:()=>d.jsx("hr",{className:"border-primary/10 my-10"}),a:({href:e,children:n})=>d.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-accent underline underline-offset-2 hover:text-primary transition-colors",children:n}),strong:({children:e})=>d.jsx("strong",{className:"font-semibold text-primary",children:e}),em:({children:e})=>d.jsx("em",{className:"italic",children:e}),code:({children:e})=>d.jsx("code",{className:"font-mono text-sm bg-primary/5 text-accent px-1.5 py-0.5 rounded",children:e})},children:t})}):d.jsx(d.Fragment,{children:YG.documentToReactComponents(t,nJ)}):null,iJ=()=>d.jsxs("div",{className:"animate-pulse max-w-3xl mx-auto px-6 md:px-0 pt-40 pb-32",children:[d.jsx("div",{className:"w-24 h-4 bg-primary/5 rounded-full mb-8"}),d.jsx("div",{className:"w-3/4 h-10 bg-primary/10 rounded mb-4"}),d.jsx("div",{className:"w-1/2 h-6 bg-primary/5 rounded mb-10"}),d.jsx("div",{className:"w-full h-80 bg-primary/5 rounded-2xl mb-10"}),[...Array(4)].map((t,e)=>d.jsx("div",{className:"w-full h-4 bg-primary/5 rounded mb-3"},e))]}),aJ=()=>{const{slug:t}=x8(),[e,n]=$.useState(null),[r,i]=$.useState(!0),[s,o]=$.useState(!1);if($.useEffect(()=>{window.scrollTo(0,0),DG(t).then(S=>{S?n(S):o(!0)}).catch(()=>o(!0)).finally(()=>i(!1))},[t]),r)return d.jsx("div",{className:"min-h-screen bg-background",children:d.jsx(iJ,{})});if(s||!e)return d.jsxs("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center gap-6 px-6",children:[d.jsx("span",{className:"font-drama italic text-9xl text-primary/10",children:"404."}),d.jsx("p",{className:"font-sans text-primary/50 text-xl",children:"Post not found."}),d.jsxs(Nt,{to:"/news",className:"flex items-center gap-2 font-mono text-xs uppercase tracking-widest text-accent hover:text-primary transition-colors font-semibold",children:[d.jsx(IT,{size:14})," Back to News"]})]});const{title:c,excerpt:f,coverImage:h,author:p,publishDate:g,category:x,body:v}=e.fields,w=h?.fields?.file?.url?`https:${h.fields.file.url}`:null,_=g?new Date(g).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null;return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx("div",{className:"absolute top-0 right-[-10%] w-[40%] h-[40%] bg-accent/5 rounded-full blur-[120px] pointer-events-none"}),d.jsxs("article",{className:"relative z-10 max-w-3xl mx-auto px-6 md:px-0 pt-36 pb-32",children:[d.jsxs(Nt,{to:"/news",className:"inline-flex items-center gap-2 font-mono text-[10px] uppercase tracking-widest text-primary/40 hover:text-accent transition-colors mb-10 font-semibold",children:[d.jsx(IT,{size:12})," All Posts"]}),x&&d.jsxs("div",{className:"flex items-center gap-1.5 mb-4",children:[d.jsx(e5,{size:12,className:"text-accent"}),d.jsx("span",{className:"font-mono text-xs uppercase tracking-widest text-accent font-semibold",children:x})]}),d.jsx("h1",{className:"font-heading font-bold text-4xl md:text-6xl text-primary leading-tight tracking-tight mb-4",children:c}),f&&d.jsx("p",{className:"font-sans text-xl text-primary/50 leading-relaxed mb-8",children:f}),d.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs text-primary/40 font-sans mb-10 pb-8 border-b border-primary/5",children:[p&&d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(p1,{size:12})," ",p]}),_&&d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(Po,{size:12})," ",_]})]}),w&&d.jsx("figure",{className:"mb-12",children:d.jsx("img",{src:`${w}?w=1400&q=80&fm=webp`,alt:h?.fields?.title||c,className:"w-full rounded-2xl border border-primary/5 shadow-md"})}),v&&d.jsx("div",{className:"prose-content",children:d.jsx(rJ,{body:v})})]})]})},sJ="/assets/family-_F14iRau.jpg",lJ="/assets/headshot-BiKASy_g.jpg",oJ="/assets/vision-C1DUaTg2.jpg",cJ="/assets/formal-Dp7Xvt2W.jpg";Ue.registerPlugin(nt);const uJ=()=>{const t=$.useRef(null);return $.useEffect(()=>{window.scrollTo(0,0),document.title="Stephen Salstrand - Founder of SmileFlow AI";let e=document.querySelector('meta[name="description"]'),n="";e&&(n=e.getAttribute("content")||"",e.setAttribute("content","Meet Stephen Salstrand, the founder of SmileFlow AI. Discover his vision for the future of dental technology, AI-first systems, and driving measurable ROI."));const r=Ue.context(()=>{Ue.from(".hero-content > *",{y:60,opacity:0,duration:1.2,stagger:.2,ease:"power4.out"}),Ue.utils.toArray(".reveal-section").forEach(o=>{Ue.from(o,{scrollTrigger:{trigger:o,start:"top 80%"},y:50,opacity:0,duration:1,ease:"power3.out"})}),Ue.utils.toArray(".reveal-image").forEach(o=>{Ue.from(o,{scrollTrigger:{trigger:o,start:"top 85%"},scale:.9,opacity:0,duration:1.2,ease:"expo.out"})})},t);return()=>{r.revert(),document.title="SmileFlow | Practice Growth OS";let i=document.querySelector('meta[name="description"]');i&&typeof n<"u"&&i.setAttribute("content",n)}},[]),d.jsxs("div",{ref:t,className:"bg-background min-h-screen pt-32 pb-20 overflow-hidden",children:[d.jsx("div",{className:"fixed top-[-10%] right-[-10%] w-[50%] h-[50%] bg-accent/5 rounded-full blur-[120px] pointer-events-none"}),d.jsx("div",{className:"fixed bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-blue-500/5 rounded-full blur-[120px] pointer-events-none"}),d.jsx("section",{className:"px-6 md:px-16 max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[d.jsxs("div",{className:"hero-content flex flex-col items-start gap-8",children:[d.jsxs("div",{className:"flex items-center gap-2 bg-accent/10 border border-accent/20 px-4 py-1.5 rounded-full",children:[d.jsx(kr,{size:14,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] md:text-xs font-bold text-accent tracking-wider up
102percase",children:"Meet the Founder"})]}),d.jsxs("h1",{className:"font-heading font-bold text-6xl md:text-8xl text-primary tracking-tighter leading-[0.9]",children:["Stephen ",d.jsx("span",{className:"text-accent italic font-drama",children:"Salstrand."})]}),d.jsx("p",{className:"font-sans text-xl md:text-2xl text-primary/70 font-medium leading-relaxed max-w-xl",children:"The architect behind data-driven dental growth, merging elite systems engineering with clinical excellence."}),d.jsx("div",{className:"flex items-center gap-6 mt-4",children:d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"font-mono text-[10px] text-primary/40 uppercase tracking-widest font-bold",children:"Founder"}),d.jsx("span",{className:"font-heading font-bold text-lg text-primary",children:"SmileFlow AI"})]})})]}),d.jsxs("div",{className:"relative reveal-image group",children:[d.jsx("div",{className:"absolute inset-0 bg-accent/10 blur-[60px] rounded-full scale-110"}),d.jsxs("div",{className:"relative aspect-[4/5] rounded-[3rem] overflow-hidden border border-primary/5 shadow-2xl",children:[d.jsx("img",{src:lJ,alt:"Stephen Salstrand - SmileFlow AI Founder and Systems Engineer",className:"absolute inset-0 w-full h-full object-cover transition-opacity duration-700 opacity-100 group-hover:opacity-0"}),d.jsx("img",{src:cJ,alt:"Stephen Salstrand - Formal Headshot",className:"absolute inset-0 w-full h-full object-cover transition-opacity duration-700 opacity-0 group-hover:opacity-100"})]}),d.jsxs("div",{className:"absolute -bottom-10 -left-10 bg-white p-8 rounded-3xl border border-primary/5 shadow-2xl max-w-xs hidden md:block z-10",children:[d.jsx(cB,{size:32,className:"text-accent/20 mb-4"}),d.jsx("p",{className:"font-drama italic text-xl text-primary leading-tight",children:`"Practice growth isn't just a goal; it's a protocol."`})]})]})]})}),d.jsx("section",{className:"reveal-section px-6 md:px-16 max-w-7xl mx-auto mb-32 bg-primary/[0.02] rounded-[4rem] py-24 md:py-32 border border-primary/5",children:d.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-6xl text-primary tracking-tight mb-12",children:["Deconstructing complexity. ",d.jsx("br",{}),d.jsx("span",{className:"text-accent",children:"Driving measurable ROI."})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 text-left",children:[d.jsxs("div",{className:"space-y-6",children:[d.jsx("p",{className:"font-sans text-lg text-primary/80 font-medium leading-relaxed",children:"With a career defined by the intersection of high-level systems engineering and dental practice growth, Stephen Salstrand has spent years deconstructing the complexities of dental marketing and operations."}),d.jsx("p",{className:"font-sans text-lg text-primary/80 font-medium leading-relaxed",children:"As the former Chief Technology Officer at Transcendental, Stephen was the architect behind the data-driven strategies and technological frameworks that powered massive scale and new patient acquisition for hundreds of dental practices across the United States."})]}),d.jsxs("div",{className:"space-y-6",children:[d.jsx("p",{className:"font-sans text-lg text-primary/80 font-medium leading-relaxed",children:"His tenure as CTO was marked by a relentless focus on ROI. By leveraging sophisticated full-stack development and automated systems, he helped clinicians move past traditional bottlenecks, driving measurable growth and sustainable patient flow."}),d.jsxs("div",{className:"bg-white p-6 rounded-[2rem] border border-primary/5 shadow-sm flex items-center gap-4",children:[d.jsx("div",{className:"p-3 bg-accent/10 rounded-2xl text-accent",children:d.jsx(Ci,{size:24})}),d.jsx("span",{className:"font-heading font-bold text-primary",children:"Focused on ROI-driven automation."})]})]})]})]})}),d.jsx("section",{className:"reveal-section px-6 md:px-16 max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[d.jsxs("div",{className:"order-2 lg:order-1 relative reveal-image",children:[d.jsx("div",{className:"absolute inset-0 bg-blue-500/10 blur-[60px] rounded-full scale-110"}),d.jsx("div",{className:"relative aspect-[4/3] rounded-[3rem] overflow-hidden border border-primary/5 shadow-2xl",children:d.jsx("img",{src:oJ,alt:"Stephen Salstrand - SmileFlow AI Visionary",className:"w-full h-full object-cover object-top"})})]}),d.jsxs("div",{className:"order-1 lg:order-2 space-y-8",children:[d.jsx("div",{className:"p-3 bg-blue-500/10 rounded-2xl text-blue-500 inline-block",children:d.jsx(yf,{size:32})}),d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-6xl text-primary tracking-tight",children:["From Systems Engineering ",d.jsx("br",{}),d.jsx("span",{className:"italic font-drama lg:text-7xl",children:"to SmileFlow AI."})]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium leading-relaxed",children:"Today, as the founder of SmileFlow AI, Stephen Salstrand is channeling that deep industry expertise into the next generation of dental technology."}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium leading-relaxed",children:`His mission is to empower practice owners with "AI-first" tools that don't just manage data, but actively streamline the patient journeyâbringing the same elite-level growth strategies he pioneered to practices of all sizes.`})]})]})}),d.jsx("section",{className:"reveal-section px-6 md:px-16 max-w-7xl mx-auto mb-32 overflow-hidden",children:d.jsxs("div",{className:"bg-dark rounded-[4rem] p-12 md:p-24 relative",children:[d.jsx("div",{className:"absolute top-0 right-0 w-full h-full opacity-10 pointer-events-none",children:d.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[d.jsx("path",{d:"M0,100 C30,50 70,50 100,0 L100,100 Z",fill:"url(#grad)"}),d.jsx("defs",{children:d.jsxs("linearGradient",{id:"grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d.jsx("stop",{offset:"0%",style:{stopColor:"rgb(204,88,51)",stopOpacity:1}}),d.jsx("stop",{offset:"100%",style:{stopColor:"rgb(59,130,246)",stopOpacity:1}})]})})]})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center relative z-10",children:[d.jsxs("div",{className:"space-y-8",children:[d.jsx("div",{className:"p-3 bg-white/10 rounded-2xl text-accent inline-block",children:d.jsx(JD,{size:32})}),d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-6xl text-white tracking-tight",children:["Beyond the ",d.jsx("span",{className:"italic font-drama",children:"Code."})]}),d.jsx("p",{className:"font-sans text-xl text-white/70 font-medium leading-relaxed",children:"When he isnât architecting the future of dental SaaS AI, Stephen Salstrand's world revolves around his family. As a father of five daughters, he understands the value of time, efficiency, and building a legacy."}),d.jsx("p",{className:"font-sans text-xl text-white/70 font-medium leading-relaxed",children:"This personal perspective fuels his drive to create solutions that give practice owners their time back, allowing them to focus on what matters mostâboth in their clinics and at home."})]}),d.jsx("div",{className:"reveal-image",children:d.jsx("div",{className:"relative aspect-video rounded-[2.5rem] overflow-hidden border border-white/10 shadow-2xl",children:d.jsx("img",{src:sJ,alt:"Stephen Salstrand with his family",className:"w-full h-full object-cover"})})})]})]})}),d.jsxs("section",{className:"reveal-section px-6 md:px-16 max-w-5xl mx-auto mb-32 text-center",children:[d.jsx("div",{className:"p-3 bg-accent/10 rounded-2xl text-accent inline-block mb-8",children:d.jsx(qf,{size:32})}),d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-7xl text-primary tracking-tighter mb-12",children:["The 2031 ",d.jsx("span",{className:"text-secondary italic font-drama lg:text-8xl",children:"Vision."})]}),d.jsxs("div",{className:"space-y-8 max-w-3xl mx-auto",children:[d.jsx("p",{className:"font-sans text-2xl text-primary/80 font-medium leading-relaxed italic",children:'"By 2031, SmileFlow AI will be the industry standard for predictive patient acquisition and frictionless practice management."'}),d.jsx("p",{className:"font-sans text-lg text-primary/60 font-medium leading-relaxed",children:'Our five-year vision is to redefine the "Operating System" of the modern dental practice. We aim to eliminate the administrative "noise" that leads to practitioner burnout, replacing manual workflows with intelligent, self-optimizing systems that allow dentists to focus exclusively on clinical excellence and patient care.'})]})]}),d.jsx("section",{className:"reveal-section px-6 md:px-16 max-w-5xl mx-auto mb-32",children:d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/10 via-blue-500/5 to-accent/10 rounded-[4rem] blur-[40px] scale-105"}),d.jsxs("div",{className:"relative bg-white/80 backdrop-blur-xl rounded-[4rem] border border-primary/5 shadow-2xl p-12 md:p-20 text-center overflow-hidden",children:[d.jsx("div",{className:"absolute top-0 left-0 w-32 h-32 bg-accent/5 rounded-full -translate-x-1/2 -translate-y-1/2"}),d.jsx("div",{className:"absolute bottom-0 right-0 w-48 h-48 bg-blue-500/5 rounded-full translate-x-1/4 translate-y-1/4"}),d.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8",children:[d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute inset-0 bg-accent/20 rounded-3xl blur-xl animate-pulse"}),d.jsx("div",{className:"relative p-5 bg-gradient-to-br from-accent to-accent/80 rounded-3xl text-white shadow-lg shadow-accent/25",children:d.jsx(WD,{size:36})})]}),d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-6xl text-primary tracking-tight",children:["Let's Talk ",d.jsx("span",{className:"text-accent italic font-drama",children:"Growth."})]}),d.jsx("p",{className:"font-sans text-xl text-primary/70 font-medium leading-relaxed max-w-2xl",children:"Ready to see how SmileFlow AI can transform your practice? Book a personal meeting with Stephen Salstrand to discu
102ss your goals, challenges, and a tailored growth strategy."}),d.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mt-2",children:[d.jsxs("div",{className:"flex items-center gap-2 bg-accent/5 border border-accent/10 px-5 py-2.5 rounded-full",children:[d.jsx("div",{className:"w-2 h-2 bg-accent rounded-full"}),d.jsx("span",{className:"font-mono text-xs font-bold text-accent/80 uppercase tracking-wider",children:"30-Min Call"})]}),d.jsxs("div",{className:"flex items-center gap-2 bg-blue-500/5 border border-blue-500/10 px-5 py-2.5 rounded-full",children:[d.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),d.jsx("span",{className:"font-mono text-xs font-bold text-blue-500/80 uppercase tracking-wider",children:"No Obligations"})]}),d.jsxs("div",{className:"flex items-center gap-2 bg-emerald-500/5 border border-emerald-500/10 px-5 py-2.5 rounded-full",children:[d.jsx("div",{className:"w-2 h-2 bg-emerald-500 rounded-full"}),d.jsx("span",{className:"font-mono text-xs font-bold text-emerald-500/80 uppercase tracking-wider",children:"Growth Strategy"})]})]}),d.jsxs("a",{href:"https://calendar.app.google/XTYRschBDqbpyDqs7",target:"_blank",rel:"noopener noreferrer",id:"book-meeting-cta",className:"mt-4 group/btn inline-flex items-center gap-3 bg-gradient-to-r from-accent to-accent/90 text-white px-12 py-6 rounded-full text-xl font-bold shadow-2xl shadow-accent/20 hover:shadow-accent/40 hover:scale-105 transition-all duration-300",children:["Book a Meeting",d.jsx(Gr,{size:24,className:"group-hover/btn:translate-x-1 transition-transform"})]}),d.jsx("p",{className:"font-sans text-sm text-primary/40 mt-2",children:"Powered by Google Calendar ⢠Pick a time that works for you"})]})]})]})})]})};Ue.registerPlugin(nt);const dJ=({title:t,description:e,icon:n,badge:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:30,opacity:0},{y:0,opacity:1,duration:.8,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 90%",toggleActions:"play none none none"}})},[]),d.jsxs("div",{ref:i,className:"group p-8 bg-white rounded-[2rem] border border-primary/5 shadow-sm hover:shadow-xl transition-all duration-500 flex flex-col h-full",children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),r&&d.jsx("span",{className:"font-mono text-[10px] font-bold text-accent tracking-widest uppercase bg-accent/5 px-3 py-1 rounded-full border border-accent/10",children:r})]}),d.jsx("h3",{className:"font-heading font-bold text-xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/70 font-medium leading-relaxed",children:e})]})},fJ=()=>{const t=$.useRef(null),e=$.useRef(null);$.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out"}),Ue.utils.toArray(".showcase-img").forEach((s,o)=>{Ue.fromTo(s,{scale:.95,opacity:0,y:40},{scale:1,opacity:1,y:0,duration:1,delay:o*.2,ease:"power3.out",scrollTrigger:{trigger:s,start:"top 85%"}})})},[]);const n=[{title:"Structure Based on Specialty",description:"Whether you're a general dentist or an orthodontist, our builder understands your clinical flow and structures your site accordingly.",icon:nB,badge:"INTELLIGENT LAYOUT"},{title:"Complete Brand Alignment",description:"Upload your logo once. Our AI automatically synchronizes your brand colors, typography, and voice across every page.",icon:q_,badge:"DESIGN SYSTEMS"},{title:"Built-in SEO Excellence",description:"Automatic meta-tags, schema markup, and high-performance indexing. We ensure your practice is visible where it matters most.",icon:fB,badge:"RANKING READY"},{title:"Vercel-Powered Speed",description:"Built on Next.js and deployed to the edge. Sub-second load times that keep patients engaged and reduce bounce rates.",icon:Ci,badge:"LATENCY ZERO"},{title:"Mobile-First Architecture",description:"70% of dental patients book from their phones. Our sites are designed for thumbs first, ensuring a seamless mobile experience.",icon:ZD,badge:"FLUID DESIGN"},{title:"Conversion-Focused UI",description:"Strategically placed CTAs and friction-free booking flows designed to maximize your appointment volume.",icon:eB,badge:"REVENUE OPTIMIZED"},{title:"Advanced Tracking Metrics",description:"Integrated PostHog analytics allow you to see exactly how patients interact with your site and where your leads are coming from.",icon:Rr,badge:"DATA INSIGHTS"},{title:"AI Patient Assistant",description:"A built-in AI chatbot that answers patient questions 24/7 and guides them toward booking an appointment.",icon:SU,badge:"ALWAYS ON"},{title:"Automatically Written Content",description:"High-quality, professional copy generated from your practice survey. No more staring at a blank screen.",icon:q_,badge:"COPYWRITING"}],r=[{src:"/images/examples/dental-hero.png",alt:"Dental Atelier Hero"},{src:"/images/examples/dental-env.png",alt:"Dental Atelier Environment"},{src:"/images/examples/dental-artisans.png",alt:"Dental Atelier Artisans"},{src:"/images/examples/dental-outcome.png",alt:"Dental Atelier Outcome"},{src:"/images/examples/dental-gallery.png",alt:"Dental Atelier Gallery"}];return d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsx("section",{ref:t,className:"max-w-7xl mx-auto mb-32 text-center md:text-left",children:d.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-12",children:[d.jsxs("div",{className:"flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent/5 border border-accent/10 px-4 py-1.5 rounded-full mb-6",children:[d.jsx($f,{size:14,className:"text-accent"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-accent tracking-widest uppercase",children:"The Next-Gen Web Builder"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["Websites that build your ",d.jsx("span",{className:"font-drama italic text-accent",children:"Brand."})]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed mb-10",children:"Crank out a beautiful, high-performance website in a few hours once you've answered a few questions. The SmileFlow builder is designed specifically for high-growth dental practices."}),d.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center md:justify-start",children:[d.jsxs(Nt,{to:"/founder-notification",className:"bg-accent text-white px-8 py-4 rounded-full text-lg font-semibold flex items-center justify-center gap-3 shadow-xl shadow-accent/20 hover:bg-primary transition-all duration-300",children:["Launch Your Website ",d.jsx(Gr,{size:20})]}),d.jsx("a",{href:"https://thedentalatelier.smileflow.ai/",target:"_blank",rel:"noopener noreferrer",className:"bg-white text-primary border border-primary/10 px-8 py-4 rounded-full text-lg font-semibold flex items-center justify-center gap-3 hover:bg-primary/5 transition-all duration-300",children:"View Live E
102xample Site"})]})]}),d.jsxs("div",{className:"flex-1 relative hidden lg:block",children:[d.jsx("div",{className:"absolute -inset-4 bg-accent/20 blur-3xl rounded-full opacity-30 animate-pulse"}),d.jsx("div",{className:"relative rounded-3xl overflow-hidden border border-primary/10 shadow-2xl skew-y-1",children:d.jsx("img",{src:"/images/examples/dental-hero.png",alt:"Example Website",className:"w-full h-auto"})})]})]})}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-40",children:[d.jsxs("div",{className:"flex flex-col items-center text-center mb-16",children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-5xl text-primary mb-6 tracking-tight",children:["Proof of ",d.jsx("span",{className:"text-accent italic font-drama",children:"Excellence."})]}),d.jsxs("p",{className:"font-sans text-lg text-primary/60 max-w-2xl",children:["See what we built for ",d.jsx("span",{className:"font-bold text-primary",children:"The Dental Atelier"})," in just a few hours using our core builder engine."]})]}),d.jsx("div",{ref:e,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map((i,s)=>d.jsxs("div",{className:`showcase-img relative rounded-[2rem] overflow-hidden border border-primary/5 shadow-sm hover:shadow-xl transition-all duration-700 bg-white ${s===0?"md:col-span-2":""}`,children:[d.jsx("img",{src:i.src,alt:i.alt,className:"w-full h-full object-cover aspect-video md:aspect-auto"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/10 to-transparent pointer-events-none"})]},s))})]}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-40 py-24 border-t border-primary/5",children:[d.jsxs("div",{className:"mb-20 text-center md:text-left",children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-5xl text-primary mb-6 tracking-tight",children:["Enterprise Grade ",d.jsx("span",{className:"text-accent italic font-drama",children:"Features."})]}),d.jsx("p",{className:"font-sans text-xl text-primary/70 font-medium",children:"Standardizing excellence across your entire portfolio."})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:n.map((i,s)=>d.jsx(dJ,{...i},s))})]}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-40 bg-white rounded-[4rem] border border-primary/5 shadow-sm p-8 md:p-20 overflow-hidden relative",children:[d.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-accent/5 rounded-full blur-3xl -mr-32 -mt-32"}),d.jsxs("div",{className:"relative z-10 flex flex-col lg:flex-row gap-16 items-center",children:[d.jsxs("div",{className:"flex-1",children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-5xl text-primary mb-8 tracking-tight",children:["From Survey to ",d.jsx("span",{className:"text-accent italic font-drama",children:"Launch."})]}),d.jsx("div",{className:"space-y-12",children:[{step:"01",title:"Answer 5 Minutes of Questions",desc:"Our intelligent survey captures your brand essence, services, and location details."},{step:"02",title:"Specialty-Aware Generation",desc:"Our engine crafts a site structure tailored specifically to your clinical specialty."},{step:"03",title:"Review & Refine",desc:"Instantly preview your site. Tweak colors, fonts, and content with a simple click."},{step:"04",title:"Go Live on the Edge",desc:"Launch your site on our ultra-fast network with built-in SEO and analytics."}].map((i,s)=>d.jsxs("div",{className:"flex gap-6",children:[d.jsx("span",{className:"font-drama italic text-4xl text-accent/30",children:i.step}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary mb-2",children:i.title}),d.jsx("p",{className:"font-sans text-primary/70 font-medium",children:i.desc})]})]},s))})]}),d.jsxs("div",{className:"flex-1 flex flex-col gap-4 w-full",children:[d.jsxs("div",{className:"p-8 bg-background/50 rounded-3xl border border-primary/5 flex flex-col gap-6 scale-95 md:scale-100",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-accent flex items-center justify-center text-white font-bold",children:d.jsx(kr,{size:24})}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] font-bold text-primary/40 uppercase tracking-widest",children:"Builder Status"}),d.jsx("div",{className:"text-primary font-bold",children:"Generating Portfolio Section..."})]})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsx("div",{className:"h-2 w-full bg-primary/5 rounded-full overflow-hidden",children:d.jsx("div",{className:"h-full bg-accent animate-[pulse_2s_infinite]",style:{width:"85%"}})}),d.jsxs("div",{className:"flex justify-between text-[10px] font-bold text-primary/60",children:[d.jsx("span",{children:"Processing Brand Assets"}),d.jsx("span",{children:"85%"})]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-3 mt-4",children:[d.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-primary/5 flex flex-col items-center",children:[d.jsx(Bi,{size:16,className:"text-green-500 mb-2"}),d.jsx("span",{className:"text-[10px] uppercase font-bold text-primary/40",children:"SEO Optimized"})]}),d.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-primary/5 flex flex-col items-center",children:[d.jsx(Bi,{size:16,className:"text-green-500 mb-2"}),d.jsx("span",{className:"text-[10px] uppercase font-bold text-primary/40",children:"Mobile Ready"})]})]})]}),d.jsxs("div",{className:"flex items-center gap-3 justify-center text-primary/40 font-mono text-[10px] uppercase tracking-widest mt-4",children:[d.jsx(ih,{size:12})," Average Build Time: 4.2 Hours"]})]})]})]}),d.jsxs("section",{className:"max-w-4xl mx-auto text-center py-20",children:[d.jsxs("h2",{className:"font-heading font-bold text-4xl md:text-6xl text-primary mb-8 tracking-tight",children:["Stop building websites. ",d.jsx("br",{})," Start building ",d.jsx("span",{className:"text-accent italic font-drama",children:"Equity."})]}),d.jsxs(Nt,{to:"/founder-notification",className:"inline-flex items-center gap-4 bg-primary text-white px-10 py-5 rounded-full text-xl font-bold hover:bg-accent transition-all duration-300 shadow-2xl shadow-primary/20",children:["Apply for the Pilot Program ",d.jsx(Gr,{})]}),d.jsx("p",{className:"mt-8 text-primary/50 font-medium",children:"Limited spots available for high-growth practices and DSOs."})]})]})};Ue.registerPlugin(nt);const Ub=({title:t,description:e,icon:n,stats:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:40,opacity:0}
102,{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 85%"}})},[]),d.jsxs("div",{ref:i,className:"bg-white rounded-[2rem] border border-primary/5 p-8 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl w-fit mb-6 group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-6",children:e}),r&&d.jsxs("div",{className:"mt-auto bg-primary/[0.02] border border-primary/5 rounded-xl p-4 flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase font-bold text-primary/40 tracking-widest",children:r.label}),d.jsx("span",{className:"font-heading font-bold text-xl text-accent",children:r.value})]})]})},hJ=()=>{const t=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out"})},[]),d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsxs("div",{ref:t,className:"max-w-7xl mx-auto mb-20 flex flex-col md:flex-row md:items-center justify-between gap-12",children:[d.jsxs("div",{className:"text-center md:text-left flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-blue-500/10 border border-blue-500/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-blue-600 tracking-widest uppercase",children:"24/7 Overflow Answering"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["Never miss a ",d.jsx("span",{className:"font-drama italic text-accent",children:"patient call"})," again."]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed",children:"Instantly route overflow calls, after-hours inquiries, and routine scheduling requests to our AI-powered dental receptionist. Fully integrated with your PMS."})]}),d.jsx("div",{className:"flex-1 flex justify-center md:justify-end relative",children:d.jsxs("div",{className:"relative w-full max-w-md aspect-[4/3] bg-white rounded-3xl border border-primary/5 shadow-2xl overflow-hidden p-6 flex flex-col gap-4 group",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/5 to-transparent opacity-50 pointer-events-none"}),d.jsxs("div",{className:"flex items-center gap-3 bg-primary/[0.02] border border-primary/5 p-3 rounded-xl shadow-sm",children:[d.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-500/10 flex items-center justify-center animate-pulse",children:d.jsx(aB,{size:20,className:"text-blue-500"})}),d.jsxs("div",{children:[d.jsx("span",{className:"text-xs font-bold text-primary block",children:"Incoming Call..."}),d.jsx("span",{className:"text-[10px] text-primary/60",children:"New Patient"})]}),d.jsx("div",{className:"ml-auto bg-green-500 text-white text-[10px] font-bold px-2 py-1 rounded",children:"Answered"})]}),d.jsx("div",{className:"bg-primary/5 rounded-xl p-3 max-w-[85%] relative self-start mt-2",children:d.jsx("p",{className:"text-xs font-medium text-primary/80",children:'"Hello, SmileFlow Dental. How can I help you today?"'})}),d.jsx("div",{className:"bg-accent/10 rounded-xl p-3 max-w-[85%] relative self-end",children:d.jsx("p",{className:"text-xs font-medium text-accent",children:'"Hi, I need to schedule a cleaning next week."'})}),d.jsx("div",{className:"bg-primary/5 rounded-xl p-3 max-w-[85%] relative self-start",children:d.jsx("p",{className:"text-xs font-medium text-primary/80",children:`"I'd be happy to help. I see availability on Tuesday at 10 AM. Does that work for you?"`})})]})})]}),d.jsxs("div",{className:"max-w-7xl mx-auto mb-32",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl text-primary mb-4 tracking-tight",children:"Capabilities beyond basic answering services."}),d.jsx("p",{className:"font-sans text-lg text-primary/60",children:"SmileFlow's AI receptionist understands dental terminology and operates natively within your schedule."})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[d.jsx(Ub,{title:"Smart Scheduling Integration",description:"Books appointments directly into Dentrix, OpenDental, or Eaglesoft without any double entry.",icon:WD,stats:{label:"Availability",value:"24/7/365"}}),d.jsx(Ub,{title:"Multilingual Communication",description:"Automatically detects and converses fluently in Spanish, French, and over 30 languages.",icon:Ff,stats:{label:"Translation Delay",value:"< 0.5s"}}),d.jsx(Ub,{title:"Insurance Verification",description:"Collects patient details over the phone and triggers real-time eligibility checks.",icon:vf,stats:{label:"Verified Instantly",value:"99%"}})]})]}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-32 bg-white rounded-[4rem] border border-primary/5 shadow-sm overflow-hidden flex flex-col md:flex-row",children:[d.jsxs("div",{className:"flex-1 p-12 md:p-20 flex flex-col justify-center bg-gradient-to-br from-white to-accent/5",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-5xl text-primary mb-6",children:"Stop losing production to voicemail."}),d.jsx("p",{className:"font-sans text-lg text-primary/80 font-medium mb-8",children:"A single missed new patient call can cost your practice thousands in lifetime value. Our AI ensures that whether the front desk is busy or the office is closed, your practice is always open for business."}),d.jsx("div",{className:"space-y-4",children:[{label:"Missed Call Recovery",val:"+34%"},{label:"Front Desk Time Saved",val:"15h/week"},{label:"Patient Satisfaction",val:"99.2%"}].map((e,n)=>d.jsxs("div",{className:"flex justify-between items-center bg-white p-4 rounded-xl shadow-sm border border-primary/5",children:[d.jsx("span",{className:"font-mono text-[10px] font-bold uppercase text-primary/60 tracking-widest",children:e.label}),d.jsx("span",{className:"font-heading font-bold text-2xl text-accent",children:e.val})]},n))})]}),d.jsxs("div",{className:"flex-[0.8] relative min-h-[400px] overflow-hidden",children:[d.jsx("img",{src:"https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=1000&q=80",alt:"Happy Dentist",className:"absolute inset-0 w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/10 to-transparent pointer-events-none"})]})]})]})};Ue.registerPlugin(nt);const um=({title:t,description:e,icon:n,stats:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:40,opacity:0}
102,{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 85%"}})},[]),d.jsxs("div",{ref:i,className:"bg-white rounded-[2rem] border border-primary/5 p-8 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl w-fit mb-6 group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-6",children:e}),r&&d.jsxs("div",{className:"mt-auto bg-primary/[0.02] border border-primary/5 rounded-xl p-4 flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase font-bold text-primary/40 tracking-widest",children:r.label}),d.jsx("span",{className:"font-heading font-bold text-xl text-accent",children:r.value})]})]})},pJ=()=>d.jsxs("div",{className:"bg-white rounded-[2rem] border border-primary/5 shadow-sm p-6 overflow-hidden mt-12 mb-20 max-w-5xl mx-auto",children:[d.jsxs("div",{className:"flex justify-between items-center mb-6",children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary",children:"Patient Acquisition Pipeline"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("span",{className:"px-3 py-1 bg-green-50 text-green-600 text-[10px] font-bold rounded-full",children:"Automated"}),d.jsx("span",{className:"px-3 py-1 bg-primary/5 text-primary text-[10px] font-bold rounded-full border border-primary/10",children:"All Locations"})]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[d.jsxs("div",{className:"bg-primary/5 rounded-xl p-3 min-h-[300px] flex flex-col gap-3",children:[d.jsxs("div",{className:"flex justify-between items-center px-1 mb-2",children:[d.jsx("span",{className:"text-xs font-bold text-primary/60 uppercase",children:"New Leads"}),d.jsx("span",{className:"bg-white text-primary rounded-full px-2 py-0.5 text-[10px] font-bold shadow-sm",children:"24"})]}),[{name:"Sarah M.",tag:"Implants",time:"10m ago"},{name:"John D.",tag:"Checkup",time:"1h ago"}].map((t,e)=>d.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-primary/5 curs
102or-pointer hover:border-accent/40 transition-colors",children:[d.jsxs("div",{className:"flex justify-between items-center mb-2",children:[d.jsx("span",{className:"text-sm font-bold text-primary",children:t.name}),d.jsxs("span",{className:"text-[10px] text-primary/40 flex items-center gap-1",children:[d.jsx(ih,{size:10})," ",t.time]})]}),d.jsx("span",{className:"bg-blue-50 text-blue-600 px-2 py-1 rounded text-[10px] font-bold",children:t.tag})]},e))]}),d.jsxs("div",{className:"bg-blue-50/50 rounded-xl p-3 min-h-[300px] flex flex-col gap-3 border border-blue-100",children:[d.jsxs("div",{className:"flex justify-between items-center px-1 mb-2",children:[d.jsx("span",{className:"text-xs font-bold text-blue-600 uppercase",children:"AI Engaging"}),d.jsx("span",{className:"bg-white text-blue-600 rounded-full px-2 py-0.5 text-[10px] font-bold shadow-sm border border-blue-100",children:"8"})]}),[{name:"Michael R.",tag:"Invisalign",status:"SMS Sent"}].map((t,e)=>d.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-md border-l-2 border-l-blue-500 cursor-pointer",children:[d.jsx("div",{className:"flex justify-between items-center mb-2",children:d.jsx("span",{className:"text-sm font-bold text-primary",children:t.name})}),d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"bg-indigo-50 text-indigo-600 px-2 py-1 rounded text-[10px] font-bold",children:t.tag}),d.jsxs("span",{className:"text-[10px] text-blue-500 font-medium flex items-center gap-1",children:[d.jsx(Ff,{size:10})," ",t.status]})]})]},e))]}),d.jsxs("div",{className:"bg-green-50/50 rounded-xl p-3 min-h-[300px] flex flex-col gap-3 border border-green-100",children:[d.jsxs("div",{className:"flex justify-between items-center px-1 mb-2",children:[d.jsx("span",{className:"text-xs font-bold text-green-600 uppercase",children:"Scheduled"}),d.jsx("span",{className:"bg-white text-green-600 rounded-full px-2 py-0.5 text-[10px] font-bold shadow-sm border border-green-100",children:"12"})]}),[{name:"Emma T.",tag:"Whitening",value:"$400"},{name:"David L.",tag:"Implants",value:"$4,500"}].map((t,e)=>d.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-green-200 cursor-pointer",children:[d.jsxs("div",{className:"flex justify-between items-start mb-2",children:[d.jsx("span",{className:"text-sm font-bold text-primary",children:t.name}),d.jsx("span",{className:"text-xs font-bold text-green-600",children:t.value})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("span",{className:"bg-green-50 text-green-700 px-2 py-1 rounded text-[10px] font-bold",children:t.tag}),d.jsxs("span",{className:"bg-primary/5 text-primary/60 px-2 py-1 rounded text-[10px] font-bold flex items-center gap-1",children:[d.jsx(Po,{size:10})," Tomorrow"]})]})]},e))]})]})]}),mJ=()=>{const t=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out"})},[]),d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsxs("div",{ref:t,className:"max-w-7xl mx-auto mb-10 flex flex-col md:flex-row md:items-center justify-between gap-12",children:[d.jsxs("div",{className:"text-center md:text-left flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-blue-500/10 border border-blue-500/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-blue-600 tracking-widest uppercase",children:"Intelligent CRM"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["Manage your pipeline with ",d.jsx("span",{className:"font-drama italic text-accent",children:"clinical precision"}),"."]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed",children:"Stop letting production slip through the cracks. Automate follow-ups, sync directly with Dentrix or Eaglesoft, and give your team a singular source of truth for patient communication."})]}),d.jsx("div",{className:"flex-1 flex justify-center md:justify-end relative",children:d.jsxs("div",{className:"relative w-full max-w-sm bg-white rounded-3xl border border-primary/5 shadow-2xl overflow-hidden p-6 flex flex-col gap-4",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/5 to-transparent opacity-50 pointer-events-none"}),d.jsxs("div",{className:"bg-primary/5 p-4 rounded-xl flex items-center justify-between group cursor-pointer hover:bg-white transition-colors",children:[d.jsxs("div",{children:[d.jsx("span",{className:"block text-sm font-bold text-primary group-hover:text-accent transition-colors",children:"Task: Call John D."}),d.jsx("span",{className:"text-xs text-primary/60",children:"High Intent - Missing Tooth"})]}),d.jsx("div",{className:"bg-blue-100 text-blue-600 p-2 rounded-full",children:d.jsx(ih,{size:16})})]}),d.jsx("div",{className:"bg-blue-50/50 p-4 rounded-xl border border-blue-100 flex items-center justify-between mt-2 shadow-sm",children:d.jsxs("div",{className:"flex gap-3 items-center",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:d.jsx(Ff,{size:14,className:"text-blue-500"})}),d.jsxs("span",{children:[d.jsx("span",{className:"block text-sm font-bold text-primary",children:"Incoming SMS"}),d.jsx("span",{className:"text-xs text-primary/60",children:'"Are you open on Tuesday?"'})]})]})})]})})]}),d.jsx(pJ,{}),d.jsxs("div",{className:"max-w-7xl mx-auto mb-32",children:[d.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl text-primary mb-4 tracking-tight",children:"Built specifically for dental front desks."}),d.jsx("p",{className:"font-sans text-lg text-primary/60 font-medium",children:"Unlike generic CRMs, SmileFlow understands treatment codes, insurance delays, and the precise cadence needed to close high-value cases."})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[d.jsx(um,{title:"Task Automation",description:"Assigns daily tasks based on lead intent and past due hygiene.",icon:Bi}),d.jsx(um,{title:"PMS Syncing",description:"Real-time two-way data streaming with your scheduling software.",icon:Va}
102),d.jsx(um,{title:"Treatment Tracking",description:"Monitor pending treatment plans and trigger targeted outreach.",icon:za}),d.jsx(um,{title:"Revenue Attribution",description:"Trace production dollars directly to the originating campaign.",icon:Eg})]})]}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-32 bg-white rounded-[4rem] border border-primary/5 shadow-sm overflow-hidden flex flex-col md:flex-row",children:[d.jsxs("div",{className:"flex-[1.2] p-12 md:p-20 flex flex-col justify-center bg-gradient-to-br from-white to-blue-50/50",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl text-primary mb-6",children:"Unified 1-to-1 Communication."}),d.jsx("p",{className:"font-sans text-lg text-primary/80 font-medium mb-8",children:"Manage all SMS and email communication with patients in a single, unified inbox natively connected to their CRM profile and PMS data. Your team never has to switch tabs to see a patient's clinical history before replying."}),d.jsxs("div",{className:"flex items-center gap-4 border border-blue-100 bg-white p-4 rounded-2xl shadow-sm self-start",children:[d.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center",children:d.jsx(Ff,{size:20,className:"text-blue-500"})}),d.jsxs("div",{children:[d.jsx("span",{className:"text-xs uppercase font-bold text-primary/40 tracking-widest block mb-1",children:"Central Inbox"}),d.jsx("span",{className:"text-lg font-bold text-primary",children:"0 Missed Messages"})]})]})]}),d.jsx("div",{className:"flex-[0.8] bg-primary/5 relative min-h-[300px]"})]})]})};Ue.registerPlugin(nt);const dm=({title:t,value:e,trend:n,trendUp:r,icon:i,delay:s=0})=>{const o=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(o.current,{y:30,opacity:0},{y:0,opacity:1,duration:.8,delay:s,ease:"power3.out",scrollTrigger:{trigger:o.current,start:"top 85%"}})},[s]),d.jsxs("div",{ref:o,className:"bg-white rounded-2xl p-5 border border-primary/5 shadow-sm hover:shadow-md transition-shadow",children:[d.jsxs("div",{className:"flex justify-between items-start mb-4",children:[d.jsx("div",{className:"p-2 bg-primary/5 rounded-lg text-primary/70",children:d.jsx(i,{size:18})}),d.jsxs("div",{className:`flex items-center gap-1 text-[10px] font-bold px-2 py-1 rounded-full ${r?"bg-green-50 text-green-600":"bg-red-50 text-red-600"}`,children:[r?d.jsx(Rr,{size:12}):d.jsx(Rr,{size:12,className:"rotate-180"}),n]})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("span",{className:"text-sm font-semibold text-primary/60",children:t}),d.jsx("span",{className:"text-3xl font-heading font-bold text-primary",children:e})]})]})},gJ=()=>d.jsxs("div",{className:"bg-white rounded-[2rem] p-6 md:p-8 border border-primary/5 shadow-sm w-full relative overflow-hidden group",children:[d.jsxs("div",{className:"flex justify-between items-center mb-8 relative z-10",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary mb-1",children:"Portfolio Production"}),d.jsx("p",{className:"text-xs text-primary/50 font-medium",children:"Trailing 12 Months (All Locations)"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-primary/60",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-500"})," Target"]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-primary",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"})," Actual"]})]})]}),d.jsxs("div",{className:"h-64 relative z-10 w-full flex mt-4",children:[d.jsxs("div",{className:"flex flex-col justify-between text-[10px] font-mono text-primary/30 h-full pb-6 pr-4",children:[d.jsx("span",{children:"8M"}),d.jsx("span",{children:"6M"}),d.jsx("span",{children:"4M"}),d.jsx("span",{children:"2M"})]}),d.jsxs("div",{className:"flex-1 relative h-full",children:[d.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between pb-6 pointer-events-none",children:[d.jsx("div",{className:"w-full h-px bg-primary/5"}),d.jsx("div",{className:"w-full h-px bg-primary/5"}),d.jsx("div",{className:"w-full h-px bg-primary/5"}),d.jsx("div",{className:"w-full h-px bg-primary/5"})]}),d.jsxs("svg",{viewBox:"0 0 1000 200",className:"w-full h-[calc(100%-24px)] preserve-3d overflow-visible relative z-10",preserveAspectRatio:"none",children:[d.jsx("defs",{children:d.jsxs("linearGradient",{id:"actualGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"0%",stopColor:"#0f172a",stopOpacity:"0.15"}),d.jsx("stop",{offset:"100%",stopColor:"#0f172a",stopOpacity:"0"})]})}
102),d.jsx("path",{d:"M 0,160 C 200,150 400,120 600,90 C 800,60 900,40 1000,30",fill:"none",stroke:"#f97316",strokeWidth:"3",strokeDasharray:"6,6",className:"opacity-60"}),d.jsx("path",{d:"M 0,170 C 200,165 400,140 600,100 C 800,40 900,10 1000,10 L 1000,200 L 0,200 Z",fill:"url(#actualGradient)"}),d.jsx("path",{d:"M 0,170 C 200,165 400,140 600,100 C 800,40 900,10 1000,10",fill:"none",stroke:"#0f172a",strokeWidth:"4"}),d.jsx("circle",{cx:"200",cy:"150",r:"4",fill:"#f97316",className:"opacity-60"}),d.jsx("circle",{cx:"400",cy:"120",r:"4",fill:"#f97316",className:"opacity-60"}),d.jsx("circle",{cx:"600",cy:"90",r:"4",fill:"#f97316",className:"opacity-60"}),d.jsx("circle",{cx:"800",cy:"60",r:"4",fill:"#f97316",className:"opacity-60"}),d.jsx("circle",{cx:"200",cy:"165",r:"4",fill:"#0f172a"}),d.jsx("circle",{cx:"400",cy:"140",r:"4",fill:"#0f172a"}),d.jsx("circle",{cx:"600",cy:"100",r:"4",fill:"#0f172a"}),d.jsx("circle",{cx:"800",cy:"40",r:"6",fill:"#f97316",className:"animate-pulse shadow-xl stroke-[3px] stroke-white"}),d.jsx("circle",{cx:"1000",cy:"10",r:"6",fill:"#0f172a",className:"shadow-lg"})]}),d.jsxs("div",{className:"absolute left-0 right-0 bottom-0 flex justify-between text-[10px] font-mono text-primary/30 pt-2 border-t border-primary/10",children:[d.jsx("span",{children:"Jan"}),d.jsx("span",{children:"Mar"}),d.jsx("span",{children:"May"}),d.jsx("span",{children:"Jul"}),d.jsx("span",{children:"Sep"}),d.jsx("span",{className:"font-bold text-primary",children:"Nov"})]})]})]}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white/50 to-transparent pointer-events-none"})]}),yJ=()=>{const t=[{name:"Austin South",rev:"$845k",ebitda:"24%",status:"positive"},{name:"Dallas Metro",rev:"$720k",ebitda:"21%",status:"positive"},{name:"Houston West",rev:"$610k",ebitda:"18%",status:"neutral"},{name:"San Antonio NW",rev:"$490k",ebitda:"12%",status:"warning"}];return d.jsxs("div",{className:"bg-white rounded-[2rem] p-6 md:p-8 border border-primary/5 shadow-sm h-full flex flex-col",children:[d.jsxs("div",{className:"flex justify-between items-center mb-6",children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary",children:"Location Leaderboard"}),d.jsxs("select",{className:"text-xs border border-primary/10 rounded-lg px-2 py-1 text-primary/70 bg-transparent outline-none cursor-pointer",children:[d.jsx("option",{children:"Q3 2026"}),d.jsx("option",{children:"Q2 2026"})]})]}),d.jsx("div",{className:"flex flex-col gap-4 flex-1",children:t.map((e,n)=>d.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl border border-primary/5 hover:border-primary/10 hover:bg-primary/[0.02] transition-colors cursor-default",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/5 flex items-center justify-center text-xs font-bold text-primary",children:n+1}),d.jsx("span",{className:"font-semibold text-sm text-primary",children:e.name})]}),d.jsxs("div",{className:"flex items-center gap-6",children:[d.jsxs("div",{className:"flex flex-col items-end",children:[d.jsx("span",{className:"text-[10px] uppercase font-bold text-primary/40",children:"Revenue"}),d.jsx("span",{className:"text-sm font-bold text-primary",children:e.rev})]}),d.jsxs("div",{className:"flex flex-col items-end w-12",children:[d.jsx("span",{className:"text-[10px] uppercase font-bold text-primary/40",children:"EBITDA"}),d.jsx("span",{className:`text-sm font-bold ${e.status==="positive"?"text-green-600":e.status==="warning"?"text-red-500":"text-orange-500"}`,children:e.ebitda})]})]})]},n))}),d.jsx("button",{className:"w-full mt-4 py-3 rounded-xl border border-primary/10 text-xs font-bold text-primary/70 hover:bg-primary/5 transition-colors uppercase tracking-widest",children:"View All Locations"})]})},vJ=()=>d.jsxs("div",{className:"bg-white rounded-[2rem] p-6 md:p-8 border border-primary/5 shadow-sm relative overflow-hidden group h-full",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h3",{className:"font-heading font-bold text-xl text-primary mb-1",children:"Acquisition Funnel"}),d.jsx("p",{className:"text-xs text-primary/50 font-medium",children:"Network-wide conversion metrics"})]}),d.jsxs("div",{className:"flex flex-col gap-3 relative z-10 w-full max-w-xs mx-auto",children:[d.jsxs("div",{className:"w-full bg-blue-500/10 border border-blue-500/20 p-3 rounded-xl flex justify-between items-center group-hover:scale-[1.02] transition-transform",children:[d.jsx("span",{className:"text-xs font-bold text-blue-800",children:"Unique Web Visitors"}),d.jsx("span",{className:"font-mono text-sm font-bold text-blue-600",children:"45.2k"})]}),d.jsxs("div",{className:"w-[85%] mx-auto bg-indigo-500/10 border border-indigo-500/20 p-3 rounded-xl flex justify-between items-center group-hover:scale-[1.02] transition-transform",children:[d.jsx("span",{className:"text-xs font-bold text-indigo-800",children:"Leads Captured"}),d.jsx("span",{className:"font-mono text-sm font-bold text-indigo-600",children:"3,840"})]}),d.jsxs("div",{className:"w-[70%] mx-auto bg-purple-500/10 border border-purple-500/20 p-3 rounded-xl flex justify-between items-center group-hover:scale-[1.02] transition-transform",children:[d.jsx("span",{className:"text-xs font-bold text-purple-800",children:"Appointments"}),d.jsx("span",{className:"font-mono text-sm font-bold text-purple-600",children:"1,250"})]}),d.jsxs("div",{className:"w-[55%] mx-auto bg-accent/10 border border-accent/20 p-3 rounded-xl flex justify-between items-center group-hover:scale-[1.02] transition-transform shadow-lg shadow-accent/10",children:[d.jsx("span",{className:"text-xs font-bold text-accent",children:"Production"}),d.jsx("span",{className:"font-mono text-sm font-bold text-accent",children:"$8.2M"})]})]}),d.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-[60%] border-x border-dashed border-primary/10 -z-0 opacity-50",style:{clipPath:"pol
102ygon(0 0, 100% 0, 70% 100%, 30% 100%)"}})]}),Bb=({title:t,description:e,icon:n,stats:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:40,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 85%"}})},[]),d.jsxs("div",{ref:i,className:"bg-white rounded-[2rem] border border-primary/5 p-8 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl w-fit mb-6 group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-6",children:e}),r&&d.jsxs("div",{className:"mt-auto bg-primary/[0.02] border border-primary/5 rounded-xl p-4 flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase font-bold text-primary/40 tracking-widest",children:r.label}),d.jsx("span",{className:"font-heading font-bold text-xl text-accent",children:r.value})]})]})},xJ=()=>{const t=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out"})},[]),d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsxs("div",{ref:t,className:"max-w-7xl mx-auto mb-20 flex flex-col md:flex-row md:items-center justify-between gap-12",children:[d.jsxs("div",{className:"text-center md:text-left flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-orange-500/10 border border-orange-500/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-orange-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-orange-600 tracking-widest uppercase",children:"Executive Operations"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:[d.jsx("span",{className:"font-drama italic text-accent",children:"Line of Sight"})," across your entire empire."]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed mb-8",children:"DSOs operate blindly without centralized data. SmileFlow aggregates practice management data, marketing spend, and patient attribution into a single, real-time executive dashboard to predictably drive EBITDA."}),d.jsx("div",{className:"flex gap-4 justify-center md:justify-start",children:d.jsxs(Nt,{to:"/founder-notification",className:"bg-accent text-white px-8 py-4 rounded-full font-bold shadow-xl shadow-accent/20 hover:bg-primary transition-colors inline-flex items-center gap-2",children:["Request Demo ",d.jsx(Gr,{size:18})]})})]}),d.jsxs("div",{className:"flex-1 w-full relative",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-orange-400/20 to-accent/10 rounded-[3rem] blur-3xl opacity-50 pointer-events-none"}),d.jsxs("div",{className:"bg-white/80 backdrop-blur-xl border border-white rounded-[2rem] shadow-2xl p-6 relative z-10 grid grid-cols-2 gap-4 origin-top-right transform md:rotate-2 md:hover:rotate-0 transition-transform duration-700",children:[d.jsx(dm,{title:"Total Production (YTD)",value:"$42.8M",trend:"18.5%",trendUp:!0,icon:BU,delay:.1}),d.jsx(dm,{title:"Active Patients",value:"124k",trend:"5.2%",trendUp:!0,icon:za,delay:.2}),d.jsx(dm,{title:"Avg EBITDA Margin",value:"22.4%",trend:"2.1%",trendUp:!0,icon:vu,delay:.3}),d.jsx(dm,{title:"Patient Attrition",value:"8.1%",trend:"1.2%",trendUp:!1,icon:OU,delay:.4})]})]})]}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-32",children:[d.jsxs("div",{className:"mb-12 text-center max-w-3xl mx-auto",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl text-primary mb-4 tracking-tight",children:"The ultimate source of truth."}),d.jsx("p",{className:"text-lg text-primary/60 font-medium",children:"Standardize reporting across all locations, regardless of underlying PMS software. Uncover hidden bottlenecks and aggressively scale winning acquisition channels."})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[d.jsx("div",{className:"lg:col-span-3",children:d.jsx(gJ,{})}),d.jsx("div",{className:"lg:col-span-2",children:d.jsx(yJ,{})}),d.jsx("div",{className:"lg:col-span-1",children:d.jsx(vJ,{})})]})]}),d.jsx("div",{className:"max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[d.jsx(Bb,{title:"Portfolio-Wide Visibility",description:"Aggregate performance metrics across dozens of practices in real-time.",icon:XU,stats:{label:"Data Latency",value:"< 1s"}}),d.jsx(Bb,{title:"Patient Flow & LTV",description:"Track true lifetime value and follow the patient journey to optimize retention.",icon:za,stats:{label:"LTV Growth",value:"+22%"}}),d.jsx(Bb,{title:"EBITDA & Financials",description:"Drill down into revenue attribution, production trends, and cost efficiency metrics.",icon:Rr,stats:{label:"Reporting",value:"Automated"}})]})}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-32 bg-white rounded-[4rem] border border-primary/5 shadow-sm overflow-hidden flex flex-col md:flex-row",children:[d.jsxs("div",{className:"flex-1 p-12 md:p-20 flex flex-col justify-center bg-gradient-to-br from-white to-orange-50/50",children:[d.jsx("div",{className:"w-16 h-16 bg-white rounded-2xl shadow-sm border border-orange-100 flex items-center justify-center mb-8",children:d.jsx(qf,{size:32,className:"text-orange-500"})}),d.jsx("h2",{className:"font-heading font-bold text-4xl text-primary mb-6",children:"Stop managing practices. Start managing growth."}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsxs("h4",{className:"font-bold text-lg text-primary mb-2 flex items-center gap-2",children:[d.jsx(Ci,{size:20,className:"text-accent"})," Standardized PMS Normalization"]}),d.jsx("p",{className:"text-primary/70 font-medium",children:"Whether you acquire a practice running Dentrix, Eaglesoft, or OpenDental, SmileFlow ingests, normalizes, and instantly maps their data into your master overview."})]}),d.jsxs("div",{children:[d.jsxs("h4",{className:"font-bold text-lg text-primary mb-2 flex items-center gap-2",children:[d.jsx(Rr,{size:20,className:"text-accent"})," True Revenue Attribution"]}),d.jsx("p",{className:"text-primary/70 font-medium",children:"Connect Google Ads, Meta, and SEO spend directly to actual production codes generated in the chair. Know exact ROI, not just lead cost."})]})]})]}),d.jsx("div",{className:"flex-[0.8] relative bg-primary/5 min-h-[400px] flex items-center justify-center p-12 overflow-hidden",children:d.jsxs("div",{className:"relative w-full max-w-sm aspect-square",children:[d.jsxs("div",{className:"absolute inset-0 border-[40px] border-white rounded-full shadow-2xl relative",children:[d.jsx("div",{className:"absolute top-[-20px] left-[-20px] right-[-20px] bottom-[-20px] border-[10px] border-orange-500 rounded-full",style:{clipPath:"pol
102ygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0)"}}),d.jsx("div",{className:"absolute top-[-20px] left-[-20px] right-[-20px] bottom-[-20px] border-[10px] border-accent rounded-full",style:{clipPath:"polygon(50% 50%, 0 0, 50% 0)"}}),d.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[d.jsx("span",{className:"text-[10px] font-bold text-primary/40 uppercase tracking-widest mb-1",children:"Total CapEx"}),d.jsx("span",{className:"font-heading font-bold text-4xl text-primary",children:"$12.4M"})]})]}),d.jsx("div",{className:"absolute top-0 right-0 bg-white shadow-xl px-4 py-2 rounded-xl border border-primary/5 text-xs font-bold text-accent transform translate-x-1/4 -translate-y-1/4",children:"Operations (55%)"}),d.jsx("div",{className:"absolute bottom-0 left-0 bg-white shadow-xl px-4 py-2 rounded-xl border border-primary/5 text-xs font-bold text-orange-500 transform -translate-x-1/4 translate-y-1/4",children:"Marketing (20%)"})]})})]})]})};Ue.registerPlugin(nt);const $b=({title:t,description:e,icon:n,stats:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:40,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 85%"}})},[]),d.jsxs("div",{ref:i,className:"bg-white rounded-[2rem] border border-primary/5 p-8 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl w-fit mb-6 group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-6",children:e}),r&&d.jsxs("div",{className:"mt-auto bg-primary/[0.02] border border-primary/5 rounded-xl p-4 flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase font-bold text-primary/40 tracking-widest",children:r.label}),d.jsx("span",{className:"font-heading font-bold text-xl text-accent",children:r.value})]})]})},bJ=()=>d.jsxs("div",{className:"max-w-5xl mx-auto bg-white rounded-[2rem] border border-primary/5 shadow-sm p-6 md:p-10 mb-20 flex flex-col md:flex-row gap-12",children:[d.jsxs("div",{className:"flex-1 flex flex-col justify-center gap-6",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-2",children:"Perfectly matched to your brand."}),d.jsx("p",{className:"text-sm text-primary/60 font-medium",children:"Control the AI's boundaries, adjust its personality, and set mandatory scheduling constraints directly from an intuitive control panel."})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex justify-between items-center p-4 border border-primary/5 rounded-xl bg-primary/[0.02] hover:bg-white transition-colors cursor-pointer shadow-sm",children:[d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-sm font-bold text-primary",children:"Tone: Clinical & Professional"}),d.jsx("span",{className:"text-xs text-primary/50",children:"Answers with precise dental terminology."})]}),d.jsx("div",{className:"w-10 h-6 bg-teal-500 rounded-full relative",children:d.jsx("div",{className:"w-4 h-4 rounded-full bg-white absolute top-1 right-1 shadow-sm"})})]}),d.jsxs("div",{className:"flex justify-between items-center p-4 border border-primary/5 rounded-xl bg-primary/[0.02] hover:bg-white transition-colors cursor-pointer shadow-sm",children:[d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-sm font-bold text-primary",children:"Require Phone Number"}),d.jsx("span",{className:"text-xs text-primary/50",children:"Mandatory before showing availability."})]}),d.jsx("div",{className:"w-10 h-6 bg-teal-500 rounded-full relative",children:d.jsx("div",{className:"w-4 h-4 rounded-full bg-white absolute top-1 right-1 shadow-sm"})})]})]})]}),d.jsx("div",{className:"flex-1 relative",children:d.jsxs("div",{className:"bg-teal-50/50 rounded-3xl p-8 border border-teal-100 flex flex-col items-center justify-center relative overflow-hidden h-full min-h-[300px]",children:[d.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-teal-200 rounded-full blur-3xl op
102acity-40"}),d.jsxs("div",{className:"relative w-40 h-40 flex items-center justify-center mb-4",children:[d.jsxs("svg",{viewBox:"0 0 100 100",className:"w-full h-full -rotate-90",children:[d.jsx("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"currentColor",strokeWidth:"12",className:"text-teal-100"}),d.jsx("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"currentColor",strokeWidth:"12",strokeDasharray:"251",strokeDashoffset:"60",className:"text-teal-500 transition-all duration-1000",strokeLinecap:"round"})]}),d.jsx("div",{className:"absolute flex flex-col items-center",children:d.jsxs("span",{className:"font-heading font-bold text-4xl text-primary",children:["76",d.jsx("span",{className:"text-xl text-primary/50",children:"%"})]})})]}),d.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-teal-800 bg-teal-100 px-3 py-1 rounded-full border border-teal-200 shadow-sm",children:"Total Action Rate"}),d.jsx("span",{className:"text-[10px] text-teal-700/70 text-center font-medium mt-3 block w-[80%]",children:"Percentage of non-calling visitors successfully secured into the pipeline."})]})})]}),_J=()=>{const t=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out"})},[]),d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsxs("div",{ref:t,className:"max-w-7xl mx-auto mb-16 flex flex-col md:flex-row md:items-center justify-between gap-12",children:[d.jsxs("div",{className:"text-center md:text-left flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-teal-500/10 border border-teal-500/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-teal-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-teal-600 tracking-widest uppercase",children:"AI Concierge"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["Convert the ",d.jsx("span",{className:"font-drama italic text-accent",children:"phone-averse"})," patient."]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed mb-8",children:"Stop losing high-value millennials and gen-z patients to competitors because they don't want to dial your front desk. Engage them instantly 24/7 with a chatbot that perfectly mirrors your brand."}),d.jsx("div",{className:"flex gap-4 justify-center md:justify-start",children:d.jsxs(Nt,{to:"/founder-notification",className:"bg-accent text-white px-8 py-4 rounded-full font-bold shadow-xl shadow-accent/20 hover:bg-primary transition-colors inline-flex items-center gap-2",children:["Get Started ",d.jsx(Gr,{size:18})]})})]}),d.jsx("div",{className:"flex-1 flex justify-center md:justify-end relative",children:d.jsxs("div",{className:"relative w-full max-w-sm bg-white rounded-[2rem] border border-primary/5 shadow-2xl overflow-hidden p-6 flex flex-col gap-4 aspect-square",children:[d.jsxs("div",{className:"p-3 bg-teal-500 text-white rounded-xl shadow-sm text-sm font-bold flex items-center gap-2 max-w-[85%]",children:[d.jsx("span",{className:"w-6 h-6 rounded-full bg-white/20 flex items-center justify-center shrink-0",children:d.jsx(Ci,{size:12})}),"Hi there! Trying to figure out insurance out-of-network costs?"]}),d.jsx("div",{className:"p-3 bg-gray-100 text-primary rounded-xl shadow-sm text-sm self-end font-medium max-w-[85%] border border-gray-200",children:"Yes, actually. Do you take Delta Dental?"}),d.jsxs("div",{className:"p-3 bg-teal-500 text-white rounded-xl shadow-sm text-sm font-bold max-w-[90%] relative",children:["We do! Let's get your member ID so we can verify exact copays before you even come into the office.",d.jsx("div",{className:"absolute -bottom-1 -right-1 w-3 h-3 bg-green-400 rounded-full border-2 border-white"})]}),d.jsx("div",{className:"p-2 border border-teal-100 rounded-lg text-center bg-teal-50 w-full mt-2 cursor-pointer hover:bg-teal-100 transition-colors",children:d.jsx("span",{className:"text-[10px] font-bold text-teal-600 uppercase tracking-widest",children:"Share Insurance Card"})})]})})]}),d.jsx(bJ,{}),d.jsx("div",{className:"max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[d.jsx($b,{title:"Capture Silent Visitors",description:"Over 40% of millennials prefer chat over phone calls. Don't let your marketing dollars bounce off a passive 'Contact Us' page.",icon:lB,stats:{label:"Conversion Lift",value:"up 24%"}}),d.jsx($b,{title:"Instant Qualification",description:"The AI screens for PPOs, gathers chief complaints, and automatically flags high-value cases like implants or full-arch rehabs.",icon:za,stats:{label:"Pre-Screened",value:"100%"}}),d.jsx($b,{title:"Outcome Directed",description:"Designed specifically to push toward concrete outcomes: securing a phone number or booking directly into your PMS.",icon:pB,stats:{label:"Goal Oriented",value:"Always"}}
102)]})})]})};Ue.registerPlugin(nt);const Fb=({title:t,description:e,icon:n,stats:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:40,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 85%"}})},[]),d.jsxs("div",{ref:i,className:"bg-white rounded-[2rem] border border-primary/5 p-8 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl w-fit mb-6 group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-6",children:e}),r&&d.jsxs("div",{className:"mt-auto bg-primary/[0.02] border border-primary/5 rounded-xl p-4 flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase font-bold text-primary/40 tracking-widest",children:r.label}),d.jsx("span",{className:"font-heading font-bold text-xl text-accent",children:r.value})]})]})},wJ=()=>d.jsxs("div",{className:"max-w-5xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8 mb-20",children:[d.jsxs("div",{className:"bg-white rounded-[2rem] border border-primary/5 p-6 shadow-xl flex flex-col h-full overflow-hidden",children:[d.jsxs("div",{className:"flex items-center justify-between mb-4 border-b pb-4",children:[d.jsx("span",{className:"font-bold text-primary",children:"Campaign Builder"}),d.jsx("span",{className:"text-[10px] bg-yellow-100 text-yellow-700 px-2 py-1 rounded font-bold uppercase tracking-widest",children:"Multi-Channel"})]}),d.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 flex-1 flex flex-col items-center justify-center border border-gray-100 relative",children:[d.jsxs("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 bg-white px-4 py-2 rounded-lg shadow-sm border border-primary/5 text-xs font-bold text-primary z-10 flex flex-col items-center",children:[d.jsx("span",{className:"text-[8px] text-primary/40 uppercase mb-1",children:"Trigger Condition"}),"Unscheduled Treatment > $2,500"]}),d.jsx("div",{className:"w-0.5 h-12 bg-yellow-200 mt-12 z-0"}),d.jsxs("div",{className:"bg-yellow-500 text-white px-6 py-3 rounded-xl shadow-lg border border-yellow-400 z-10 flex gap-3 items-center hover:scale-105 transition-transform cursor-pointer",children:[d.jsx(h1,{size:16})," ",d.jsx("span",{className:"text-sm font-bold",children:'Email: "Use It Or Lose It"'})]}),d.jsx("div",{className:"w-0.5 h-12 bg-yellow-200 z-0 relative",children:d.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white px-2 py-0.5 rounded text-[8px] border border-gray-200 font-bold text-gray-500",children:"WAIT 3 DAYS"})}),d.jsxs("div",{className:"bg-white text-primary px-6 py-3 rounded-xl shadow-md border border-yellow-200 z-10 flex gap-3 items-center hover:scale-105 transition-transform cursor-pointer",children:[d.jsx(ZD,{size:16,className:"text-yellow-500"})," ",d.jsx("span",{className:"text-sm font-bold",children:"SMS Reminder + Link"})]})]})]}),d.jsxs("div",{className:"bg-yellow-50/30 rounded-[2rem] border border-yellow-100 p-8 flex flex-col justify-center",children:[d.jsx("h3",{className:"font-heading font-bold text-3xl text-primary mb-2",children:"Track exact ROI instantly."}),d.jsx("p",{className:"text-sm text-primary/70 font-medium mb-8",children:"Stop guessing if your newsletters work. Connect campaigns directly to production dollars generated in your PMS."}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"bg-white p-4 rounded-xl border border-yellow-100 shadow-sm flex items-center justify-between",children:[d.jsxs("div",{className:"flex gap-3 items-center",children:[d.jsx("div",{className:"p-2 bg-yellow-100 text-yellow-600 rounded-lg",children:d.jsx(za,{size:16})}),d.jsx("span",{className:"text-sm font-bold text-primary",children:"Audience Match"})]}),d.jsx("span",{className:"font-mono font-bold text-lg text-primary",children:"1,240"})]}),d.jsxs("div",{className:"bg-white p-4 rounded-xl border border-yellow-100 shadow-sm flex items-center justify-between",children:[d.jsxs("div",{className:"flex gap-3 items-center",children:[d.jsx("div",{className:"p-2 bg-green-100 text-green-600 rounded-lg",children:d.jsx(t5,{size:16})}),d.jsx("span",{className:"text-sm font-bold text-primary",children:"Appointments Booked"})]}),d.jsx("span",{className:"font-mono font-bold text-lg text-green-600",children:"84"})]}),d.jsxs("div",{className:"bg-white p-4 rounded-xl shadow-lg shadow-accent/5 border border-accent/20 flex items-center justify-between scale-[1.02]",children:[d.jsxs("div",{className:"flex gap-3 items-center",children:[d.jsx("div",{className:"p-2 bg-accent/10 text-accent rounded-lg",children:d.jsx(Rr,{size:16})}),d.jsx("span",{className:"text-sm font-bold text-accent",children:"Attributed Production"})]}),d.jsx("span",{className:"font-heading font-black text-2xl text-accent",children:"$18,450"})]})]})]})]}),SJ=()=>{const t=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0}
102,{y:0,opacity:1,duration:1,ease:"power3.out"})},[]),d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsx("div",{ref:t,className:"max-w-7xl mx-auto mb-16 flex flex-col md:flex-row md:items-center justify-between gap-12",children:d.jsxs("div",{className:"text-center md:text-left flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-yellow-500/10 border border-yellow-500/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-yellow-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-yellow-600 tracking-widest uppercase",children:"Targeted Campaigns"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["Reach them where they ",d.jsx("span",{className:"font-drama italic text-accent",children:"already are"}),"."]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed",children:"Blasting generic newsletters burns your list. Ingest live PMS data to build hyper-segmented Email and SMS campaigns that drive predictable surges in production."})]})}),d.jsx(wJ,{}),d.jsx("div",{className:"max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[d.jsx(Fb,{title:"Drag & Drop Builder",description:"Design spectacularly branded emails out of the box. No coding required, just beautiful native templates.",icon:h1,stats:{label:"Campaigns",value:"Unlimited"}}),d.jsx(Fb,{title:"PMS Segmenting",description:"Filter lists based on clinical codes, last hygiene visit, unscheduled treatment, or remaining insurance maximums.",icon:t5,stats:{label:"Precision",value:"Clinical"}}),d.jsx(Fb,{title:"Unified Analytics",description:"Track opens, clicks, replies, and ultimately the precise dollars generated from every blast you send.",icon:Rr,stats:{label:"ROI Tracking",value:"Exact"}})]})}),d.jsxs("section",{className:"max-w-7xl mx-auto mb-32 bg-white rounded-[4rem] border border-primary/5 shadow-sm overflow-hidden flex flex-col md:flex-row items-center",children:[d.jsxs("div",{className:"flex-1 p-12 md:p-20 text-center md:text-left",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl text-primary mb-4",children:"Keep patient threads in one place."}),d.jsx("p",{className:"font-sans text-lg text-primary/70 font-medium mb-6",children:"If a patient replies to a mass promotion text, it drops straight into your unified CRM inbox. Your front desk sees the campaign context instantly and can schedule the patient natively."})]}),d.jsx("div",{className:"flex-1 w-full bg-yellow-50/50 min-h-[300px] flex items-center justify-center border-l border-yellow-100 p-8",children:d.jsxs("div",{className:"bg-white p-6 rounded-2xl shadow-xl border border-yellow-200 w-full max-w-sm flex items-start gap-4 transform rotate-1 hover:rotate-0 transition-transform cursor-pointer",children:[d.jsx("div",{className:"bg-gray-100 rounded-full w-10 h-10 flex shrink-0 items-center justify-center text-gray-500 font-bold",children:"SD"}),d.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[d.jsxs("div",{className:"flex justify-between items-center w-full",children:[d.jsx("span",{className:"text-sm font-bold text-primary",children:"Sarah D."}),d.jsx("span",{className:"text-[10px] text-primary/40",children:"Just Now"})]}),d.jsx("p",{className:"text-xs text-primary/70",children:"I got the email about the Invisalign promo. Do you have time tomorrow?"}),d.jsx("span",{className:"self-end mt-2 bg-yellow-100 text-yellow-700 font-bold px-2 py-0.5 rounded text-[8px] uppercase tracking-widest border border-yellow-200",children:"Via Campaign Link"})]})]})})]})]})};Ue.registerPlugin(nt);const qb=({title:t,description:e,icon:n,stats:r})=>{const i=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(i.current,{y:40,opacity:0},{y:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:i.current,start:"top 85%"}})},[]),d.jsxs("div",{ref:i,className:"bg-white rounded-[2rem] border border-primary/5 p-8 shadow-sm hover:shadow-xl transition-all duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"p-3 bg-accent/10 text-accent rounded-2xl w-fit mb-6 group-hover:scale-110 transition-transform duration-500",children:d.jsx(n,{size:24})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary mb-3",children:t}),d.jsx("p",{className:"font-sans text-primary/80 font-medium leading-relaxed mb-6",children:e}),r&&d.jsxs("div",{className:"mt-auto bg-primary/[0.02] border border-primary/5 rounded-xl p-4 flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[10px] uppercase font-bold text-primary/40 tracking-widest",children:r.label}),d.jsx("span",{className:"font-heading font-bold text-xl text-accent",children:r.value})]})]})},EJ=()=>d.jsxs("div",{className:"max-w-5xl mx-auto bg-white rounded-[2rem] border border-primary/5 shadow-sm p-6 md:p-10 mb-20 flex flex-col md:flex-row items-center gap-12 overflow-hidden",children:[d.jsxs("div",{className:"flex-1 w-full space-y-4 relative",children:[d.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-48 h-48 bg-rose-200 rounded-full blur-[80px] opacity-40 mix-blend-multiply"}),[{name:"John Davis",score:94,reason:"Unscheduled Crown ⢠Overdue 3mo"},{name:"Sarah Miller",score:88,reason:"Implants Search ⢠Viewed Web"},{name:"Emily Chen",score:76,reason:"Hygiene Due Next Week"}].map((t,e)=>d.jsxs("div",{className:"bg-white/80 backdrop-blur-sm border border-rose-100 rounded-xl p-4 shadow-sm flex items-center justify-between relative z-10 hover:shadow-md transition-shadow cursor-pointer hover:border-rose-300",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-full bg-rose-50 flex items-center justify-center font-bold text-rose-600 text-sm",children:t.score}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"font-bold text-sm text-primary",children:t.name}),d.jsx("span",{className:"text-[10px] font-semibold text-primary/50",children:t.reason})]})]}),d.jsx("div",{className:"text-[8px] bg-rose-500 text-white font-bold px-2 py-1 rounded shadow-sm",children:"AI FLAGGED"})]},e))]}),d.jsxs("div",{className:"flex-1 flex flex-col justify-center text-center md:text-left",children:[d.jsx("h3",{className:"font-heading font-bold text-3xl text-primary mb-4",children:"Predictive Scoring."}),d.jsx("p",{className:"text-primary/70 font-medium mb-6",children:"Our AI constantly scans your PMS database to identify patients most likely to book high-value treatments or churn. It scores them daily."}),d.jsx("div",{className:"flex gap-4 items-center justify-center md:justify-start",children:d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"font-heading font-black text-4xl text-rose-500",children:"+$210k"}),d.jsx("span",{className:"text-[10px] uppercase font-bold text-primary/40 tracking-widest mt-1",children:"Avg Found Revenue"})]})})]})]}),jJ=()=>{const t=$.useRef(null);return $.useEffect(()=>{Ue.fromTo(t.current,{y:30,opacity:0}
102,{y:0,opacity:1,duration:1,ease:"power3.out"})},[]),d.jsxs("div",{className:"pt-32 pb-24 px-6 md:px-16 min-h-screen bg-background",children:[d.jsxs("div",{ref:t,className:"max-w-7xl mx-auto mb-16 flex flex-col md:flex-row md:items-center justify-between gap-12",children:[d.jsxs("div",{className:"text-center md:text-left flex-1",children:[d.jsxs("div",{className:"inline-flex items-center gap-2 bg-rose-500/10 border border-rose-500/20 px-4 py-1.5 rounded-full mb-6",children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-rose-600 tracking-widest uppercase",children:"Predictive Intelligence"})]}),d.jsxs("h1",{className:"font-heading font-bold text-5xl md:text-7xl text-primary tracking-tight mb-6",children:["Maximize patient ",d.jsx("span",{className:"font-drama italic text-accent",children:"lifetime value"}),"."]}),d.jsx("p",{className:"font-sans text-xl text-primary/80 font-medium max-w-2xl leading-relaxed mb-8",children:"Acquiring a new patient costs thousands. Keeping them costs pennies. Deploy intelligent follow-up sequences that engage patients automatically before they leave your ecosystem."}),d.jsx("div",{className:"flex gap-4 justify-center md:justify-start",children:d.jsxs(Nt,{to:"/founder-notification",className:"bg-accent text-white px-8 py-4 rounded-full font-bold shadow-xl shadow-accent/20 hover:bg-primary transition-colors inline-flex items-center gap-2",children:["Demo Retention ",d.jsx(Gr,{size:18})]})})]}),d.jsx("div",{className:"flex-1 flex justify-center md:justify-end relative",children:d.jsxs("div",{className:"relative w-full max-w-sm bg-white rounded-[2rem] border border-primary/5 shadow-2xl p-6 flex flex-col items-center gap-4",children:[d.jsx("div",{className:"w-16 h-16 rounded-full bg-rose-50 flex items-center justify-center -mt-10 border-4 border-white shadow-md",children:d.jsx(Va,{size:24,className:"text-rose-500 font-bold"})}),d.jsx("h3",{className:"font-heading font-bold text-2xl text-primary text-center",children:"Reactivation Loop"}),d.jsxs("div",{className:"w-full bg-gray-50 border border-gray-100 rounded-xl p-4 flex flex-col gap-2 mt-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-4 h-4 rounded-full bg-white border border-gray-300 flex items-center justify-center",children:d.jsx(Bi,{size:10,className:"text-gray-300"})}),d.jsx("span",{className:"text-xs font-semibold text-primary/60 line-through",children:"Day 1: Gentle Reminder"})]}),d.jsx("div",{className:"w-0.5 h-3 bg-gray-200 ml-2"}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-4 h-4 rounded-full bg-rose-500 flex items-center justify-center shadow-[0_0_10px_rgba(244,63,94,0.4)]",children:d.jsx(Rr,{size:10,className:"text-white"})}),d.jsx("span",{className:"text-xs font-bold text-primary",children:"Day 7: Benefit Focus SMS"})]}),d.jsx("div",{className:"w-0.5 h-3 bg-gray-200 ml-2"}),d.jsxs("div",{className:"flex items-center gap-2 opacity-50",children:[d.jsx("div",{className:"w-4 h-4 rounded-full border border-gray-300"}),d.jsx("span",{className:"text-xs font-medium text-primary",children:"Day 30: End of Year Benefit"})]})]})]})})]}),d.jsx(EJ,{}),d.jsx("div",{className:"max-w-7xl mx-auto mb-32",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[d.jsx(qb,{title:"Automated Sequences",description:"Drop patients into dynamic remarketing workflows the moment they miss hygiene or reject a case.",icon:Va,stats:{label:"Automation",value:"Zero Touch"}}),d.jsx(qb,{title:"Predictive Models",description:"Machine learning predicts when patients will need specific treatments based on historical clinical data.",icon:qf,stats:{label:"Preventative",value:"100%"}}),d.jsx(qb,{title:"VIP Experiences",description:"Identify and hyper-personalize communication for your top 10% highest producing patients.",icon:bB,stats:{label:"Loyalty",value:"Maximized"}})]})})]})};var XO={},NJ="@vercel/speed-insights",TJ="1.3.1",kJ=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function AJ(){return typeof window<"u"}function OJ(){try{const t="production"}catch{}return"production"}function u4(){return OJ()==="development"}function RJ(t){return t.scriptSrc?t.scriptSrc:u4()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":t.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.
102js":t.basePath?`${t.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js"}function CJ(t={}){var e;if(!AJ()||t.route===null)return null;kJ();const n=RJ(t);if(document.head.querySelector(`script[src*="${n}"]`))return null;t.beforeSend&&((e=window.si)==null||e.call(window,"beforeSend",t.beforeSend));const r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn=NJ+(t.framework?`/${t.framework}`:""),r.dataset.sdkv=TJ,t.sampleRate&&(r.dataset.sampleRate=t.sampleRate.toString()),t.route&&(r.dataset.route=t.route),t.endpoint?r.dataset.endpoint=t.endpoint:t.basePath&&(r.dataset.endpoint=`${t.basePath}/speed-insights/vitals`),t.dsn&&(r.dataset.dsn=t.dsn),u4()&&t.debug===!1&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:i=>{r.dataset.route=i??void 0}}}function DJ(){if(!(typeof process>"u"||typeof XO>"u"))return XO.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function LJ(t){$.useEffect(()=>{var n;t.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",t.beforeSend))},[t.beforeSend]);const e=$.useRef(null);return $.useEffect(()=>{if(e.current)t.route&&e.current(t.route);else{const n=CJ({framework:t.framework??"react",basePath:t.basePath??DJ(),...t});n&&(e.current=n.setRoute)}},[t.route]),null}const PJ=()=>{const{pathname:t}=Ps();return $.useEffect(()=>{window.scrollTo(0,0)},[t]),null};Ue.registerPlugin(nt);const MJ=()=>d.jsxs("svg",{className:"pointer-events-none fixed inset-0 z-50 h-[100dvh] w-full opacity-[0.05]",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("filter",{id:"noise",children:d.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.8",numOctaves:"4",stitchTiles:"stitch"})}),d.jsx("rect",{width:"100%",height:"100%",filter:"url(#noise)"})]}),$g=({children:t,className:e})=>{const n=$.useRef(null);return $.useEffect(()=>{const r=n.current;if(!r)return;const i=Ue.quickTo(r,"x",{duration:1,ease:"elastic.out(1, 0.3)"}),s=Ue.quickTo(r,"y",{duration:1,ease:"elastic.out(1, 0.3)"}),o=f=>{const h=r.getBoundingClientRect(),p=(f.clientX-h.left-h.width/2)*.4,g=(f.clientY-h.top-h.height/2)*.4;i(p),s(g)},c=()=>{i(0),s(0)};return r.addEventListener("mousemove",o),r.addEventListener("mouseleave",c),()=>{r.removeEventListener("mousemove",o),r.removeEventListener("mouseleave",c)}},[]),d.jsx("div",{className:"magnetic-wrap",children:d.jsx("button",{ref:n,className:e,children:t})})},IJ=({isOpen:t,onClose:e})=>{const n=$.useRef(null),r=$.useRef([]),i=$.useRef(null);$.useEffect(()=>{if(t){document.body.style.overflow="hidden";const o=Ue.timeline();o.to(n.current,{display:"flex",duration:0}),o.fromTo(i.current,{scaleY:0,transformOrigin:"top"},{scaleY:1,duration:.8,ease:"expo.inOut"}),o.fromTo(r.current,{y:100,opacity:0},{y:0,opacity:1,duration:.8,stagger:.1,ease:"power4.out"},"-=0.4")}else{document.body.style.overflow="auto";const o=Ue.timeline();o.to(r.current,{y:-50,opacity:0,duration:.4,stagger:.05,ease:"power2.in"}),o.to(i.current,{scaleY:0,transformOrigin:"top",duration:.6,ease:"expo.inOut"},"-=0.2"),o.to(n.current,{display:"none",duration:0})}},[t]);const s=[{label:"Home",path:"/"},{label:"News",path:"/news"},{label:"Compare",path:"/compare"},{label:"Integrations",path:"/pms-integrations"},{label:"Plans",path:"/plans"}];return d.jsxs("div",{ref:n,className:"fixed inset-0 z-[100] hidden flex-col items-center justify-center",children:[d.jsx("div",{ref:i,className:"absolute inset-0 bg-background/90 backdrop-blur-2xl"}),d.jsx("button",{onClick:e,className:"absolute top-8 right-8 text-primary/80 hover:text-primary transition-colors z-50 px-4 py-2 border border-primary/20 rounded-full font-mono text-[10px] uppercase tracking-widest bg-white shadow-sm","aria-label":"Close Menu",children:"Close [ESC]"}),d.jsxs("nav",{className:"relative z-10 flex flex-col items-center gap-5 md:gap-7",role:"navigation",children:[s.map((o,c)=>d.jsxs(Nt,{to:o.path,onClick:e,ref:f=>r.current[c]=f,className:"group relative",children:[d.jsx("span",{className:"font-drama italic text-4xl md:text-6xl text-primary hover:text-accent transition-colors duration-500",children:o.label}),d.jsx("div",{className:"absolute -bottom-2 left-0 w-0 h-1 bg-accent transition-all duration-500 group-hover:w-full"})]},c)),d.jsx("div",{ref:o=>r.current[s.length]=o,className:"mt-8 flex flex-col items-center",children:d.jsxs(Nt,{to:"/founder-notification",onClick:e,className:"flex flex-col items-center group",children:[d.jsx($g,{className:"bg-accent text-white px-10 py-5 rounded-full text-xl font-semibold shadow-2xl shadow-accent/20 hover:bg-primary transition-all duration-300",children:"90-Day Zero Cost Pilot"}),d.jsx("span",{className:"mt-3 text-[10px] text-primary/60 font-medium group-hover:text-primary transition-colors duration-300",children:"Risk-free trial for qualified DSOs and high-growth practices."})]})})]}),d.jsx("div",{className:"absolute bottom-12 left-12 z-10 hidden md:block",children:d.jsx("p",{className:"font-mono text-[10px] text-primary/20 uppercase tracking-[0.3em]",children:"The Revenue Engine for DSOs."})})]})},zJ=()=>{const[t,e]=$.useState(!1),[n,r]=$.useState(!1);return $.useEffect(()=>{const i=()=>e(window.scrollY>50);return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]),$.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(!1)};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[]),d.jsxs(d.Fragment,{children:[d.jsxs("nav",{className:`fixed top-4 left-1/2 -translate-x-1/2 z-40 transition-all duration-500 rounded-full px-6 flex items-center justify-between w-11/12 max-w-5xl glass-nav text-primary ${t?"py-3 shadow-md":"py-4"}`,children:[d.jsx(Nt,{to:"/",className:"font-heading font-bold text-xl tracking-tight z-50",children:"SmileFlow"}),d.jsxs("button",{onClick:()=>r(!0),className:"group flex items-center gap-4 hover:opacity-70 transition-opacity","aria-label":"Open Menu",children:[d.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest opacity-50 group-hover:opacity-100 transition-opacity hidden sm:block",children:"Menu"}),d.jsxs("div",{className:"flex flex-col gap-1.5","aria-hidden":"true",children:[d.jsx("div",{className:"w-8 h-0.5 bg-primary rounded-full transition-all group-hover:w-6"}),d.jsx("div",{className:"w-5 h-0.5 bg-primary rounded-full transition-all group-hover:w-8"})]})]})]}),d.jsx(IJ,{isOpen:n,onClose:()=>r(!1)})]})},UJ=({step:t})=>d.jsx("div",{className:`absolute inset-0 z-30 flex items-center justify-center p-6 md:p-12 lg:p-16 transition-all duration-1000 ${t>=8&&t<=10?"opacity-100 scale-100 pointer-events-auto":"opacity-0 scale-95 pointer-events-none"}`,children:d.jsxs("div",{className:"w-full max-w-6xl h-[700px] max-h-[90vh] bg-[#f8fafc] rounded-[2rem] border border-slate-200 shadow-[0_30px_100px_-20px_rgba(0,0,0,0.2)] overflow-hidden flex relative",children:[d.jsxs("div",{className:"w-64 bg-white border-r border-slate-100 flex flex-col p-4 z-10 hidden md:flex relative",children:[d.jsxs("div",{className:"flex items-center gap-2 px-2 py-4 mb-4",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-500 flex items-center justify-center text-white font-bold text-xs",children:"SF"}),d.jsxs("span",{className:"font-bold text-xl tracking-tight text-slate-800",children:["SmileFlow ",d.jsx("span",{className:"text-blue-500 font-medium",children:"OS"})]})]}),d.jsx("div",{className:"px-2 mb-6",children:d.jsxs("div",{className:"w-full border border-slate-200 rounded-xl p-3 flex items-center justify-between",children:[d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-sm font-semibold text-slate-800",children:"Dr. Smith's Practice"}),d.jsx("span",{className:"text-xs text-slate-500",children:"1 Practice"})]}),d.jsx(jm,{size:14,className:"text-slate-400"})]})}),d.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 bg-blue-50 text-blue-600 rounded-lg",children:[d.jsx($f,{size:16})," ",d.jsx("span",{className:"text-sm font-semibold",children:"Overview"})]}),d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 text-slate-600 rounded-lg",children:[d.jsx(Eg,{size:16})," ",d.jsx("span",{className:"text-sm font-medium",children:"Practice Management"})]}),d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 text-slate-600 rounded-lg",children:[d.jsx(Ci,{size:16})," ",d.jsx("span",{className:"text-sm font-medium",children:"Growth Engine"})]}),d.jsxs("div",{className:"flex items-center justify-between px-3 py-2.5 text-slate-600 rounded-lg",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Ff,{size:16})," ",d.jsx("span",{className:"text-sm font-medium",children:"Message Center"})]}),d.jsx("div",{className:"w-5 h-5 rounded-full bg-orange-500 text-white text-[10px] font-bold flex items-center justify-center",children:"17"})]}),d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 text-slate-600 rounded-lg",children:[d.jsx(vu,{size:16})," ",d.jsx("span",{className:"text-sm font-medium",children:"Analytics"})]})]}),d.jsx("div",{className:"mt-auto border-t border-slate-100 pt-4 flex flex-col gap-2",children:d.jsxs("div",{className:"flex items-center gap-3 px-2",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-100 text-blue-600 font-bold flex items-center justify-center text-xs",children:"D"}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-sm font-bold text-blue-500",children:"Account Settings"}),d.jsx("span",{className:"text-xs text-slate-500",children:"Profile & Security"})]})]})})]}),d.jsxs("div",{className:"flex-1 flex flex-col relative overflow-hidden bg-[#f8fafc]",children:[d.jsxs("div",{className:"p-8 pb-4",children:[d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{children:[d.jsxs("h1",{className:"text-4xl font-bold text-slate-800 tracking-tight mb-2",children:["Welcome back, ",d.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Dr. Smith"})]}),d.jsxs("p",{className:"text-slate-500 text-sm",children:["Your executive dashboard across ",d.jsx("span",{className:"text-blue-500 font-semibold",children:"10 locations."})]})]}),d.jsxs("div",{className:"flex items-center gap-3 hidden lg:flex",children:[d.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 border border-slate-200 bg-white rounded-lg text-sm font-medium text-slate-600 shadow-sm",children:[d.jsx(Va,{size:14})," Refresh"]}),d.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 border border-slate-200 bg-white rounded-lg text-sm font-medium text-slate-600 shadow-sm",children:[d.jsx(q_,{size:14})," Edit Dashboard"]}),d.jsx("div",{className:"flex items-center gap-2 px-4 py-2 bg-indigo-500 rounded-lg text-sm font-medium text-white shadow-md",children:"Save View"})]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white border border-slate-200 rounded-full text-sm text-slate-600 font-medium shadow-sm",children:[d.jsx(NU,{size:14,className:"text-blue-500"})," All Locations ",d.jsx(jm,{size:14})]}),d.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white border border-slate-200 rounded-full text-sm text-slate-600 font-medium shadow-sm",children:[d.jsx(Po,{size:14,className:"text-purple-500"})," This Month ",d.jsx(jm,{size:14})]})]})]}),d.jsxs("div",{className:"flex-1 p-8 pt-4 overflow-hidden relative",children:[d.jsxs("div",{className:"w-full h-full bg-white rounded-2xl border border-slate-100 shadow-sm p-6 flex flex-col gap-6",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500 flex items-center justify-center text-white",children:d.jsx(Rr,{size:16})}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-bold text-slate-800",children:"EBITDA & Financial Health"}),d.jsx("p",{className:"text-xs text-slate-500",children:"Consolidated metrics across 10 locations."})]})]}),d.jsxs("div",{className:"text-right",children:[d.jsx("div",{className:"text-2xl font-bold text-slate-800",children:"19.6%"}),d.jsxs("div",{className:"text-xs text-emerald-500 font-bold flex items-center justify-end gap-1",children:[d.jsx(Rr,{size:12})," +2.1pp vs prior"]})]})]}),d.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[d.jsxs("div",{className:"bg-slate-50 rounded-xl p-4 border border-slate-100",children:[d.jsx("div",{className:"text-xs text-slate-500 font-bold mb-1 uppercase tracking-wider",children:"Total Revenue"}),d.jsx("div",{className:"text-xl font-bold text-slate-800",children:"$2,403,000"})]}),d.jsxs("div",{className:"bg-slate-50 rounded-xl p-4 border border-slate-100",children:[d.jsx("div",{className:"text-xs text-slate-500 font-bold mb-1 uppercase tracking-wider",children:"Operating Expenses"}),d.jsx("div",{className:"text-xl font-bold text-slate-800",children:"$1,931,300"})]}),d.jsxs("div",{className:"bg-blue-50 rounded-xl p-4 border border-blue-100",children:[d.jsx("div",{className:"text-xs text-blue-600 font-bold mb-1 uppercase tracking-wider",children:"EBITDA"}),d.jsx("div",{className:"text-xl font-bold text-blue-700",children:"$471,700"})]})]}),d.jsx("div",{className:"flex-1 flex flex-col gap-4 mt-2 justify-center",children:[1,2,3].map(e=>d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"w-32 text-sm font-semibold text-slate-700 flex items-center gap-2",children:[d.jsx("div",{className:"w-6 h-6 rounded bg-slate-100 flex items-center justify-center text-xs font-bold",children:e})," Location ",e]}),d.jsxs("div",{className:"flex-1 h-3 bg-slate-100 rounded-full overflow-hidden flex",children:[d.jsx("div",{className:"h-full bg-emerald-400 w-[70%]"}),d.jsx("div",{className:"h-full bg-orange-400 w-[15%]"})]}),d.jsx("div",{className:"w-16 text-right font-bold text-sm text-slate-800",children:"23%"})]},e))})]}),d.jsxs("div",{className:`absolute top-12 left-12 w-[420px] bg-white rounded-2xl shadow-[0_30px_60px_-15px_rgba(0,0,0,0.3)] border border-slate-200 flex flex-col transition-all duration-[1500ms] ease-[cubic-bezier(0.16,1,0.3,1)] z-50 ${t>=9?"translate-y-0 opacity-100 scale-100":"translate-y-16 opacity-0 scale-95"}`,children:[d.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between",children:[d.jsx("span",{className:"font-bold text-slate-800",children:"Notifications"}),d.jsx("div",{className:"flex gap-2",children:d.jsxs("div",{className:"px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-lg text-xs font-semibold text-slate-600 flex items-center gap-2",children:["Inbox ",d.jsx("span",{className:"bg-red-100 text-red-600 px-1.5 rounded-sm",children:"3"})]})})]}),d.jsxs("div",{className:"p-2 flex flex-col gap-1 max-h-[400px] overflow-y-auto",children:[d.jsxs("div",{className:"p-4 bg-blue-50/50 hover:bg-blue-50 rounded-xl cursor-pointer border border-blue-100 flex gap-3 relative overflow-hidden transition-colors",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center flex-shrink-0 mt-1 shadow-sm",children:d.jsx(kr,{size:14})}),d.jsxs("div",{className:"flex flex-col",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),d.jsx("span",{className:"font-bold text-slate-800 text-sm",children:"AI Task: Emergency Scheduled"})]}),d.jsxs("p",{className:"text-xs text-slate-600 leading-relaxed",children:["SmileFlow AI successfully processed an emergency inquiry, verified ",d.jsx("strong",{children:"Delta Dental"})," coverage, and secured a 2:00 PM appointment for ",d.jsx("strong",{children:"Sarah Jenkins"}),"."]}),d.jsxs("div",{className:"mt-3 flex gap-2",children:[d.jsx("span",{className:"px-2.5 py-1.5 bg-emerald-100 text-emerald-700 text-[10px] font-bold rounded-md uppercase tracking-wider",children:"+$350 Revenue"}),d.jsxs("span",{className:"px-2.5 py-1.5 bg-white border border-slate-200 text-slate-600 text-[10px] font-bold rounded-md uppercase tracking-wider flex items-center gap-1 sh
102adow-sm",children:[d.jsx(Po,{size:10})," Operator 2"]})]})]})]}),d.jsxs("div",{className:"p-4 hover:bg-slate-50 rounded-xl cursor-pointer border border-transparent flex gap-3 opacity-60 transition-colors",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-orange-100 text-orange-600 flex items-center justify-center flex-shrink-0 mt-1",children:d.jsx(XD,{size:14})}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("div",{className:"flex items-center gap-2 mb-1.5",children:d.jsx("span",{className:"font-bold text-slate-700 text-sm",children:"Priority Tag: Implants"})}),d.jsx("p",{className:"text-xs text-slate-500 leading-relaxed",children:"AI detected high-priority interest: Implants. This lead may need immediate attention."})]})]})]})]})]})]})]})}),BJ=({step:t})=>d.jsxs("div",{className:"relative w-full max-w-[500px] lg:max-w-[600px] aspect-[4/3] bg-white rounded-3xl border border-primary/5 shadow-[0_20px_60px_-15px_rgba(0,0,0,0.1)] overflow-hidden flex flex-col mx-auto group",children:[d.jsx("div",{className:`absolute -inset-4 bg-gradient-to-r from-accent/20 to-purple-500/20 blur-xl transition-opacity duration-1000 -z-10 ${t>=2&&t<=6?"opacity-100":"opacity-0"}`}),d.jsxs("div",{className:"h-10 bg-primary/[0.02] border-b border-primary/5 flex items-center px-4 justify-between relative z-10",children:[d.jsxs("div",{className:"flex gap-1.5",children:[d.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-400"}),d.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-yellow-400"}),d.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-green-400"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(kr,{size:12,className:`text-accent transition-all duration-500 ${t>=2?"opacity-100 scale-100":"opacity-50 scale-75"}`}),d.jsx("span",{className:"font-mono text-[10px] font-semibold text-primary/60 uppercase tracking-widest",children:"SmileFlow OS"})]})]}),d.jsxs("div",{className:"flex-1 bg-background/50 p-4 sm:p-6 relative flex flex-col gap-4 overflow-hidden z-10",children:[d.jsx("div",{className:`flex w-full transition-all duration-700 transform origin-left ${t>=1?"opacity-100 translate-x-0 scale-100":"opacity-0 -translate-x-8 scale-95"}`,children:d.jsxs("div",{className:"bg-white border border-primary/10 shadow-sm rounded-2xl rounded-tl-sm p-4 max-w-[85%] relative",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 font-bold text-[10px]",children:"SJ"}),d.jsx("span",{className:"text-[10px] font-semibold text-primary/60",children:"Sarah Jenkins (Patient)"})]}),d.jsx("p",{className:"text-sm font-medium text-primary leading-relaxed",children:"Hi! I chipped my tooth on a coffee mug this morning and it hurts. Can I come in ASAP? ð"})]})}),d.jsxs("div",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[85%] bg-white border border-accent/20 shadow-xl rounded-xl p-5 flex flex-col gap-4 transition-all duration-500 z-30 ${t===2||t===3?"opacity-100 scale-100":"opacity-0 scale-90 pointer-events-none"}`,children:[d.jsxs("div",{className:"flex justify-between items-center border-b border-primary/5 pb-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-accent animate-pulse"}),d.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-accent",children:"AI Agent Active"})]}),d.jsx(yf,{size:16,className:"text-accent animate-[spin_3s_linear_infinite]"})]}),d.jsxs("div",{className:"flex flex-col gap-3",children:[d.jsxs("div",{className:"flex items-center gap-3 text-sm font-medium text-primary/70",children:[d.jsx(Bi,{size:14,className:"text-green-500"})," Intent identified: ",d.jsx("span",{className:"text-primary font-bold",children:"Emergency (Chipped Tooth)"})]}),d.jsxs("div",{className:`flex items-center gap-3 text-sm font-medium text-primary/70 transition-opacity duration-300 ${t>=3?"opacity-100":"opacity-50"}`,children:[d.jsx(Bi,{size:14,className:"text-green-500"})," Checking schedule... ",d.jsx("span",{className:"text-primary font-bold",children:"2:00 PM available"})]}),d.jsxs("div",{className:`flex items-center gap-3 text-sm font-medium text-primary/70 transition-opacity duration-300 ${t>=3?"opacity-100":"opacity-30"}`,children:[d.jsx("div",{className:"w-3 h-3 flex items-center justify-center",children:d.jsx("div",{className:"w-2 h-2 bg-accent rounded-full animate-ping"})})," Drafting response..."]})]})]}),d.jsx("div",{className:`flex w-full justify-end transition-all duration-700 transform origin-right ${t>=4?"opacity-100 translate-x-0 scale-100":"opacity-0 translate-x-8 scale-95"} mt-auto`,children:d.jsxs("div",{className:"bg-accent text-white shadow-md rounded-2xl rounded-tr-sm p-4 max-w-[85%]",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(kr,{size:12,className:"text-white/80"}),d.jsx("span",{className:"text-[10px] font-semibold text-white/80",children:"SmileFlow AI"})]}),d.jsx("p",{className:"text-sm font-medium leading-relaxed",children:"Oh no, I'm so sorry to hear that! We want to get you taken care of right away. We have an opening today at 2:00 PM with Dr. Smith. Shall I secure that time for you?"})]})}),d.jsx("div",{className:`flex w-full transition-all duration-700 transform origin-left ${t>=5?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-4 scale-95"}`,children:d.jsx("div",{className:"bg-white border border-primary/10 shadow-sm rounded-2xl rounded-tl-sm p-3 px-4 max-w-[85%] relative",children:d.jsx("p",{className:"text-sm font-medium text-primary",children:"Yes please! Thank you so much!"})})}),d.jsx("div",{className:`absolute inset-0 bg-background/60 backdrop-blur-[2px] flex items-center justify-center transition-all duration-700 z-40 ${t>=6?"opacity-100":"opacity-0 pointer-events-none"}`,children:d.jsxs("div",{className:`bg-white border-2 border-green-500/20 shadow-2xl rounded-2xl p-8 flex flex-col items-center gap-4 transform transition-all duration-700 delay-300 ${t>=6?"scale-100 translate-y-0":"scale-75 translate-y-8"}`,children:[d.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center text-green-500 mb-2 shadow-inner",children:d.jsx(Bi,{size:32})}),d.jsx("h3",{className:"font-heading font-bold text-3xl text-primary m-0 leading-none",children:"Appointment Booked"}),d.jsxs("div",{className:"flex items-center gap-2 bg-green-50 px-4 py-2 rounded-full border border-green-200 mt-2",children:[d.jsx(Rr,{size:16,className:"text-green-600"}),d.jsx("span",{className:"font-mono text-sm font-bold text-green-700 tracking-wide",children:"+ $350 EMERGENCY REVENUE"})]})]})})]})]}),$J=()=>{const t=$.useRef(null),e=$.useRef(null),[n,r]=$.useState(0);return $.useEffect(()=>{const i=()=>{r(0),setTimeout(()=>r(1),2e3),setTimeout(()=>r(2),4e3),setTimeout(()=>r(3),7e3),setTimeout(()=>r(4),10500),setTimeout(()=>r(5),13e3),setTimeout(()=>r(6),16e3),setTimeout(()=>r(7),19e3),setTimeout(()=>r(8),19500),setTimeout(()=>r(9),20500),setTimeout(()=>r(10),26e3),setTimeout(()=>r(11),26500)};i();const s=setInterval(i,28e3);return()=>clearInterval(s)},[]),$.useEffect(()=>{const i=Ue.context(()=>{Ue.from(".hero-elem",{y:40,opacity:0,stagger:.1,duration:1,ease:"power3.out",delay:.1}),Ue.to(e.current,{yPercent:20,ease:"none",scrollTrigger:{trigger:t.current,start:"top top",end:"bottom top",scrub:!0}})},t);return()=>i.revert()},[]),d.jsxs("section",{ref:t,className:"relative min-h-[100dvh] w-full flex flex-col justify-center bg-slate-900 overflow-hidden pt-32 pb-20",children:[d.jsxs("div",{className:"absolute inset-0 z-0 overflow-hidden pointer-events-none bg-slate-900",children:[d.jsx("div",{ref:e,className:"absolute top-[-15%] left-[-5%] w-[110%] h-[130%] bg-[url('/hero-bg.png')] bg-cover bg-center bg-no-repeat opacity-80"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-900/95 via-slate-900/70 to-slate-900/40 mix-blend-multiply"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-slate-900/60 to-slate-900"})]}),d.jsx("div",{className:"absolute top-[-20%] left-[-10%] w-[50%] h-[50%] bg-accent/20 rounded-full blur-[100px] pointer-events-none z-0"}),d.jsx("div",{className:"absolute bottom-[-20%] right-[-10%] w-[50%] h-[50%] bg-blue-500/20 rounded-full blur-[100px] pointer-events-none z-0"}),d.jsx(UJ,{step:n}),d.jsxs("div",{className:`relative z-20 px-6 md:px-16 w-full max-w-7xl mx-auto flex flex-col lg:flex-row items-center justify-between gap-16 lg:gap-8 transition-all duration-1000 ${n>=8&&n<=11?"opacity-0 scale-95 blur-[2px] pointer-events-none":"opacity-100 scale-100 blur-0"}`,children:[d.jsxs("div",{className:"flex-1 flex flex-col items-start gap-6 lg:gap-8 z-20",children:[d.jsxs("h1",{className:"flex flex-col gap-2 text-white",children:[d.jsx("span",{className:"hero-elem font-heading font-bold text-5xl md:text-5xl lg:text-6xl tracking-tighter drop-shadow-md",children:"The Revenue Engine"}),d.jsx("span",{className:"hero-elem font-drama italic text-5xl md:text-6xl lg:text-[5.5rem] leading-[0.9] text-accent tracking-tighter pr-4 drop-shadow-md",children:"for Multi-Location DSOs."})]}),d.jsx("p",{className:"hero-elem text-white/90 font-sans max-w-xl text-lg md:text-xl font-medium leading-relaxed drop-shadow",children:"Standardize patient acquisition, automate front-desk conversion, and maximize LTV across every location. SmileFlow is the AI-integrated OS that turns clinical data into predictable EBITDA growth."}),d.jsx("div",{className:"hero-elem pt-4 flex flex-col items-start gap-3",children:d.jsxs(Nt,{to:"/founder-notification",className:"group",children:[d.jsxs($g,{className:"bg-accent text-white px-8 py-4 rounded-full text-lg font-semibold flex items-center gap-3 shadow-xl shadow-accent/20 hover:bg-white hover:text-primary transition-colors",children:["90-Day Zero Cost Pilot ",d.jsx(Gr,{size:20,"aria-hidden":"true"})]}),d.jsx("p",{className:"mt-3 text-[10px] md:text-xs text-white/60 font-medium ml-4 group-hover:text-white transition-colors",children:"Risk-free trial for qualified DSOs and high-growth practices."})]})})]}),d.jsx("div",{className:"flex-1 w-full relative z-10 hero-elem flex justify-center lg:justify-end",children:d.jsx(BJ,{step:n})})]})]})},FJ=()=>{const t=[{name:"Direct Booking",value:"$4,200",width:"w-[85%]",color:"bg-
102accent"},{name:"Organic Search",value:"$2,800",width:"w-[60%]",color:"bg-blue-400"},{name:"Paid Social",value:"$1,500",width:"w-[35%]",color:"bg-orange-400"}];return d.jsxs("div",{className:"h-full flex flex-col gap-4 p-6 bg-white rounded-[2rem] border border-primary/5 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-shadow duration-500",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx("div",{className:"p-2 bg-accent/10 text-accent rounded-xl",children:d.jsx(Rr,{size:18})}),d.jsx("h3",{className:"font-heading font-semibold text-lg text-primary",children:"Portfolio-Wide Visibility"})]}),d.jsx("div",{className:"flex flex-col gap-5 flex-1 justify-center",children:t.map((e,n)=>d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsxs("div",{className:"flex justify-between font-sans text-xs font-medium text-primary/70",children:[d.jsx("span",{children:e.name}),d.jsx("span",{className:"text-primary font-bold",children:e.value})]}),d.jsx("div",{className:"w-full h-2 bg-primary/5 rounded-full overflow-hidden",children:d.jsx("div",{className:`h-full ${e.color} ${e.width} rounded-full opacity-80`})})]},n))})]})},qJ=()=>d.jsxs("div",{className:"h-full flex flex-col p-6 bg-white rounded-[2rem] border border-primary/5 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-shadow duration-500 overflow-hidden relative group",children:[d.jsx("div",{className:"relative z-10 flex items-center justify-between pointer-events-none mb-6",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"p-2 bg-blue-500/10 text-blue-500 rounded-xl",children:d.jsx(Eg,{size:18})}),d.jsx("h3",{className:"font-heading font-semibold text-lg text-primary",children:"Starts vs Acceptance"})]})}),d.jsx("div",{className:"flex-1 flex items-end gap-3 px-2 group-hover:scale-105 transition-transform duration-700 pointer-events-none",children:[40,55,45,70,60,85].map((t,e)=>d.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-1 h-full",children:[d.jsx("div",{className:"w-full bg-accent/80 rounded-t-sm",style:{height:`${t}%`}}),d.jsx("div",{className:"w-full bg-blue-400/80 rounded-t-sm",style:{height:`${t*.75}%`}})]},e))}),d.jsxs("div",{className:"flex items-center justify-center gap-4 mt-4 relative z-10",children:[d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-accent/80"})," ",d.jsx("span",{className:"font-mono text-[8px] uppercase tracking-wider text-primary/70",children:"Starts"})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-400/80"})," ",d.jsx("span",{className:"font-mono text-[8px] uppercase tracking-wider text-primary/70",children:"Accepted"})]})]})]}),HJ=()=>{const t=[{name:"Dallas Metro",value:"$425k",trend:"+12%",color:"bg-blue-100 text-blue-600"},{name:"Austin South",value:"$215k",trend:"+8%",color:"bg-purple-100 text-purple-600"},{name:"Houston West",value:"$95k",trend:"+15%",color:"bg-orange-100 text-orange-600"}];return d.jsxs("div",{className:"h-full flex flex-col gap-4 p-6 bg-white rounded-[2rem] border border-primary/5 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-shadow duration-500",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx("div",{className:"p-2 bg-purple-500/10 text-purple-500 rounded-xl",children:d.jsx(vu,{size:18})}),d.jsx("h3",{className:"font-heading font-semibold text-lg text-primary",children:"Production by Practice"})]}),d.jsx("div",{className:"flex flex-col gap-3 flex-1 justify-center",children:t.map((e,n)=>d.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl hover:bg-primary/[0.02] transition-colors border border-transparent hover:border-primary/5 curs
102or-default",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center font-bold text-sm ${e.color}`,children:e.name.charAt(0)}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"font-sans text-sm font-semibold text-primary",children:e.name}),d.jsxs("span",{className:"font-sans text-xs text-green-500 font-bold",children:[e.trend," MoM"]})]})]}),d.jsx("div",{className:"flex items-center gap-1 bg-green-50 text-green-600 px-2 py-1 rounded-lg border border-green-100",children:d.jsx("span",{className:"font-mono text-xs font-bold",children:e.value})})]},n))})]})},GJ=()=>d.jsxs("div",{className:"h-full flex flex-col p-6 bg-white rounded-[2rem] border border-primary/5 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-shadow duration-500 relative overflow-hidden group",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2 relative z-10 pointer-events-none",children:[d.jsx("div",{className:"p-2 bg-green-500/10 text-green-500 rounded-xl",children:d.jsx(vu,{size:18})}),d.jsx("h3",{className:"font-heading font-semibold text-lg text-primary",children:"Schedule Efficiency"})]}),d.jsx("div",{className:"flex-1 flex items-center justify-center relative z-10 pointer-events-none py-6",children:d.jsxs("div",{className:"relative w-40 h-40 flex items-center justify-center",children:[d.jsxs("svg",{viewBox:"0 0 100 100",className:"w-full h-full -rotate-90 transform",children:[d.jsx("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"currentColor",strokeWidth:"8",className:"text-primary/5"}),d.jsx("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"currentColor",strokeWidth:"8",strokeDasharray:"251",strokeDashoffset:"25",className:"text-green-500 drop-shadow-[0_0_8px_rgba(34,197,94,0.4)] transition-all duration-1000 group-hover:strokeDashoffset-[10]",strokeLinecap:"round"})]}),d.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[d.jsxs("span",{className:"font-heading font-bold text-4xl text-primary mt-2",children:["98",d.jsx("span",{className:"text-xl text-primary/50",children:"%"})]}),d.jsx("span",{className:"font-mono text-[10px] text-green-600 font-semibold tracking-wider uppercase mt-1",children:"Perfect"})]})]})}),d.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_120%,rgba(34,197,94,0.1),transparent_70%)] opacity-0 group-hover:opacity-100 transition-opacity duration-1000"})]}),VJ=()=>d.jsxs("section",{id:"features",className:"py-24 md:py-40 px-6 md:px-16 max-w-7xl mx-auto bg-background relative z-10",children:[d.jsx("div",{className:"mb-16 md:mb-24 flex flex-col md:flex-row md:items-end justify-between gap-8",children:d.jsxs("div",{className:"max-w-2xl",children:[d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-6xl tracking-tight text-primary mb-6 drop-shadow-sm",children:"Everything you need to understand and drive your growth."}),d.jsx("p",{className:"font-sans text-lg md:text-xl text-primary/70 font-medium",children:"From real-time analytics to revenue tracking, get the full picture of how patients interact with your practice."})]})}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 auto-rows-auto",children:[d.jsx("div",{className:"md:col-span-2 lg:col-span-2 h-[22rem]",children:d.jsx(FJ,{})}),d.jsx("div",{className:"md:col-span-1 lg:col-span-1 h-[22rem]",children:d.jsx(HJ,{})}),d.jsx("div",{className:"md:col-span-1 lg:col-span-1 h-[22rem]",children:d.jsx(qJ,{})}),d.jsx("div",{className:"md:col-span-2 lg:col-span-2 h-[22rem]",children:d.jsx(GJ,{})})]})]}),KJ=()=>{const t=$.useRef(null),e=$.useRef(null);return $.useEffect(()=>{const n=Ue.context(()=>{Ue.from(".phil-word",{scrollTrigger:{trigger:e.current,start:"top 75%"},y:40,opacity:0,duration:.8,stagger:.05,ease:"power3.out"})},t);return()=>n.revert()},[]),d.jsx("div",{className:"bg-background px-4 md:px-8 py-8 md:py-16",children:d.jsx("section",{id:"philosophy",ref:t,className:"relative rounded-[2rem] md:rounded-[4rem] py-40 md:py-64 overflow-hidden bg-gradient-to-br from-blue-100 via-purple-100 to-accent/30 bg-[length:400%_400%] animate-gradient border border-primary/10 shadow-inner",children:d.jsxs("div",{ref:e,className:"relative z-10 px-6 md:px-16 max-w-5xl mx-auto flex flex-col gap-8 md:gap-16",children:[d.jsxs("h2",{className:"font-sans text-xl md:text-3xl text-primary/80 tracking-tight font-medium",children:[d.jsx("span",{className:"phil-word inline-block mr-2",children:"Most"}),d.jsx("span",{className:"phil-word inline-block mr-2",children:"growth"}),d.jsx("span",{className:"phil-word inline-block mr-2",children:"tools"}),d.jsx("span",{className:"phil-word inline-block mr-2",children:"focus"}),d.jsx("span",{className:"phil-word inline-block mr-2",children:"on"}),d.jsx("span",{className:"phil-word inline-block mr-2 text-primary font-bold",children:"fragmented metrics."})]}),d.jsxs("h3",{className:"font-drama italic text-6xl md:text-9xl leading-[1.1] tracking-tight text-primary",children:[d.jsx("span",{className:"phil-word inline-block mr-3",children:"We"}),d.jsx("span",{className:"phil-word inline-block mr-3",children:"focus"}),d.jsx("span",{className:"phil-word inline-block mr-3",children:"on"}),d.jsx("span",{className:"phil-word inline-block mr-3 text-accent font-semibold drop-shadow-sm",children:"practice growth"}),d.jsx("span",{className:"phil-word inline-block mr-3",children:"and"}),d.jsx("span",{className:"phil-word inline-block mr-3",children:"new"}),d.jsx("span",{className:"phil-word inline-block mr-3",children:"patient"}),d.jsx("span",{className:"phil-word inline-block",children:"value."})]})]})})})},YJ=()=>{const t=$.useRef(null);$.useEffect(()=>{const n=Ue.context(()=>{Ue.utils.toArray(".protocol-step-reveal").forEach(i=>
102{Ue.fromTo(i,{y:60,opacity:0},{y:0,opacity:1,duration:1.2,ease:"power3.out",scrollTrigger:{trigger:i,start:"top 85%",toggleActions:"play none none none"}})})},t);return()=>n.revert()},[]);const e=[{num:"01",title:"AI OS Core",desc:"The central intelligence powering your entire practice growth engine.",icon:d.jsx(yf,{size:32,className:"text-accent"}),visual:d.jsxs("div",{className:"relative w-full h-full flex items-center justify-center p-8 bg-accent/5 overflow-hidden",children:[d.jsx("div",{className:"relative z-10 w-32 h-32 bg-accent rounded-full flex items-center justify-center shadow-[0_0_50px_rgba(204,88,51,0.5)] animate-pulse",children:d.jsx(yf,{size:64,className:"text-white"})}),d.jsx("div",{className:"absolute w-[80%] h-[80%] border-2 border-accent/20 rounded-full animate-[spin_20s_linear_infinite]"}),d.jsx("div",{className:"absolute w-[60%] h-[60%] border-2 border-accent/10 rounded-full animate-[spin_15s_linear_infinite_reverse]"}),d.jsx("div",{className:"absolute w-[40%] h-[40%] border-2 border-accent/30 rounded-full animate-[spin_10s_linear_infinite]"}),[...Array(20)].map((n,r)=>d.jsx("div",{className:"absolute w-1 h-1 bg-accent rounded-full animate-ping opacity-40",style:{top:`${r*7%100}%`,left:`${r*13%100}%`,animationDelay:`${r*.25%5}s`,animationDuration:`${2+r*.15%3}s`}},r))]})},{num:"02",title:"SmileFlow CRM",desc:"Automated patient acquisition and pipeline management that never sleeps.",link:"/crm",icon:d.jsx(qf,{size:32,className:"text-blue-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-blue-50/10 flex items-center justify-center overflow-hidden",children:d.jsx("div",{className:"w-full max-w-[340px] flex flex-col gap-4",children:[{stage:"NEW LEAD",val:"Sarah Miller",time:"2m ago",active:!0},{stage:"AI QUALIFIED",val:"Interest: Implants",sub:"High Intent",pulse:!0},{stage:"BOOKED",val:"Tue @ 10:30 AM",success:!0}].map((n,r)=>d.jsxs("div",{className:"relative group",children:[r<2&&d.jsx("div",{className:"absolute left-6 top-10 w-0.5 h-8 bg-gradient-to-b from-blue-400 to-transparent z-0 opacity-20"}),d.jsxs("div",{className:`relative z-10 p-4 rounded-2xl border flex items-center gap-4 transition-all duration-700 ${n.pulse?"bg-blue-600 border-blue-400 shadow-2xl scale-[1.05] text-white":n.success?"bg-white border-green-200 shadow-lg":"bg-white border-blue-50 shadow-sm opacity-60"}`,children:[d.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center ${n.pulse?"bg-white/20":n.success?"bg-green-50 text-green-600":"bg-blue-50 text-blue-400"}`,children:n.success?d.jsx(Bi,{size:24}):r===1?d.jsx(yf,{size:24,className:"animate-spin"}):d.jsx(za,{size:24})}),d.jsxs("div",{className:"flex flex-col flex-1",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:`text-[8px] font-black uppercase tracking-widest ${n.pulse?"text-blue-100":"text-blue-500/50"}`,children:[" ",n.stage," "]}),n.active&&d.jsx("span",{className:"text-[8px] font-bold text-blue-400 animate-pulse",children:"LIVE"})]}),d.jsx("span",{className:"text-sm font-black tracking-tight",children:n.val}),n.sub&&d.jsx("span",{className:"text-[10px] opacity-70 font-bold",children:n.sub})]}),n.pulse&&d.jsx("div",{className:"absolute -right-2 -top-2 bg-white text-blue-600 text-[8px] font-black px-2 py-0.5 rounded-full shadow-lg border border-blue-100 animate-bounce",children:"AI PROCESSING"})]}),r<2&&n.active&&d.jsx("div",{className:"absolute left-[22px] top-12 w-2 h-2 bg-blue-400 rounded-full blur-[2px] animate-[ping_1.5s_infinite]"})]},r))})})},{num:"03",title:"Task Tracking",desc:"Automatic delegation ensuring no patient ever falls through the cracks.",icon:d.jsx(Bi,{size:32,className:"text-green-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-green-50/20 flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-[300px] bg-white rounded-3xl shadow-xl border border-green-100 overflow-hidden",children:[d.jsxs("div",{className:"p-4 border-b border-green-50 bg-green-50/50 flex items-center justify-between",children:[d.jsx("span",{className:"text-xs font-bold text-green-600 uppercase tracking-widest",children:"Active Tasks"}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-green-400"}),d.jsx("div",{className:"w-2 h-2 rounded-full bg-green-200"})]})]}),d.jsx("div",{className:"p-4 space-y-3",children:[{label:"Follow up: Sarah J.",status:"Done",done:!0},{label:"AI Assignment: New Lead",status:"In Progress",active:!0},{label:"Optimize Schedule",status:"Pending"}].map((n,r)=>d.jsxs("div",{className:`p-3 rounded-xl border flex items-center justify-between transition-all duration-500 ${n.active?"border-green-400 bg-green-50 shadow-md scale-[1.05] relative z-10":"border-gray-50 bg-white"}`,children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:`w-5 h-5 rounded-full border flex items-center justify-center ${n.done?"bg-green-500 border-green-500 text-white":"border-gray-200 bg-white"}`,children:[n.done&&d.jsx(Bi,{size:12}),n.active&&d.jsx(kr,{size:12,className:"text-green-500 animate-pulse"})]}),d.jsx("span",{className:`text-sm font-bold ${n.done?"text-primary/40 line-through":"text-primary"}`,children:n.label})]}),n.active&&d.jsx("div",{className:"text-[8px] bg-green-500 text-white px-2 py-0.5 rounded-full font-bold animate-bounce",children:"AI-ASSIGNED"})]},r))})]})})},{num:"04",title:"Portfolio-Wide Visibility",desc:"Real-time visibility across 50+ locations to see exactly which marketing dollars are driving production.",link:"/dso-dashboard",icon:d.jsx(Rr,{size:32,className:"text-orange-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-orange-50/10 flex items-center justify-center overflow-hidden",children:d.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",children:[d.jsxs("div",{className:"relative z-10 w-24 h-48 bg-white rounded-3xl shadow-2xl border border-orange-200 flex flex-col items-center justify-end p-2 overflow-hidden",children:[d.jsx("div",{className:"w-full bg-gradient-to-t from-orange-500 to-orange-300 rounded-2xl animate-[height-grow_3s_ease-out_infinite]",style:{height:"75%"}}
102),d.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d.jsx("span",{className:"text-xl font-black text-orange-600 drop-shadow-sm",children:"$92k"})})]}),[{label:"Google Ads",top:"15%",left:"10%",color:"bg-blue-500",roi:"12x"},{label:"Social",top:"25%",right:"10%",color:"bg-pink-500",roi:"8x"},{label:"SEO",bottom:"20%",left:"15%",color:"bg-green-500",roi:"15x"}].map((n,r)=>d.jsxs("div",{className:"absolute flex flex-col items-center gap-2 group transition-transform duration-500 hover:scale-110",style:{top:n.top,left:n.left,right:n.right},children:[d.jsx("div",{className:`${n.color} p-3 rounded-2xl shadow-lg border border-white/20 text-white`,children:d.jsx(qf,{size:20})}),d.jsxs("div",{className:"bg-white/90 backdrop-blur-sm px-2 py-1 rounded-lg border border-orange-100 shadow-sm flex flex-col items-center",children:[d.jsx("span",{className:"text-[8px] font-black text-primary/40 uppercase",children:n.label}),d.jsxs("span",{className:"text-[10px] font-black text-orange-600",children:[n.roi," ROI"]})]}),d.jsx("div",{className:"absolute w-24 h-1 bg-gradient-to-r from-orange-400 to-transparent blur-sm rounded-full opacity-20 animate-pulse origin-left rotate-[-45deg]"})]},r)),[...Array(12)].map((n,r)=>d.jsx("div",{className:"absolute w-2 h-2 bg-orange-400 rounded-full blur-[2px] animate-ping opacity-40",style:{top:`${r*9%100}%`,left:`${r*11%100}%`,animationDelay:`${r*.1%2}s`}},r))]})})},{num:"05",title:"Real-time Monitoring",desc:"Live patient journey tracking throughout your entire practice ecosystem.",icon:d.jsx(vu,{size:32,className:"text-purple-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-purple-50/20 flex items-center justify-center",children:d.jsxs("div",{className:"relative w-full h-[80%] flex items-center justify-center",children:[d.jsx("div",{className:"absolute w-full aspect-square border-2 border-dashed border-purple-200 rounded-full animate-[spin_30s_linear_infinite]"}),d.jsx("div",{className:"absolute w-[70%] aspect-square border-2 border-dashed border-purple-100 rounded-full animate-[spin_20s_linear_infinite_reverse]"}),d.jsx("div",{className:"absolute w-full h-1 bg-gradient-to-r from-transparent via-purple-500 to-transparent opacity-20 animate-[spin_10s_linear_infinite]"}),[{t:"15%",l:"25%",d:"0s"},{t:"65%",l:"75%",d:"1.5s"},{t:"35%",l:"60%",d:"3s"}].map((n,r)=>d.jsx("div",{className:"absolute w-4 h-4 bg-purple-500 rounded-full shadow-[0_0_15px_rgba(168,85,247,0.5)] animate-ping",style:{top:n.t,left:n.l,animationDelay:n.d}},r)),d.jsx(vu,{size:64,className:"text-purple-500 opacity-20"})]})})},{num:"06",title:"Schedule Optimization",desc:"Intelligent gap-filling that prioritizes your most high-value clinical procedures.",icon:d.jsx(Po,{size:32,className:"text-cyan-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-cyan-50/10 flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-[340px] bg-white rounded-3xl shadow-2xl border border-cyan-50 overflow-hidden",children:[d.jsxs("div",{className:"p-4 bg-cyan-500 text-white flex items-center justify-between",children:[d.jsx("span",{className:"font-bold text-sm tracking-tight",children:"Today's Schedule"}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Ci,{size:14,className:"animate-pulse"}),d.jsx("span",{className:"text-[10px] font-bold uppercase",children:"AI Active"})]})]}),d.jsx("div",{className:"p-4 space-y-4",children:[{time:"9:00 AM",label:"Cleaning",h:"8"},{time:"10:30 AM",label:"IMPLANT CASE",high:!0},{time:"1:00 PM",label:"Check-up",h:"8"},{time:"2:30 PM",label:"CROWN & BRIDGE",high:!0}].map((n,r)=>d.jsxs("div",{className:`p-3 rounded-2xl flex items-center justify-between group transition-all duration-700 ${n.high?"bg-cyan-50 border-2 border-cyan-400 shadow-lg scale-[1.02] relative translate-x-2":"bg-gray-50 border border-transparent"}`,children:[d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-[10px] text-cyan-600 font-bold",children:n.time}),d.jsx("span",{className:`text-sm font-black ${n.high?"text-primary":"text-primary/60"}`,children:n.label})]}),n.high&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex gap-0.5",children:[1,2,3].map(i=>
102d.jsx(kr,{size:10,className:"text-cyan-500 animate-pulse"},i))}),d.jsx("span",{className:"text-[10px] font-black text-cyan-600",children:"HIGH VALUE"})]})]},r))})]})})},{num:"07",title:"AI Asset Creation",desc:"Superior agentic social media assets created in seconds at elite quality.",icon:d.jsx(kr,{size:32,className:"text-pink-500"}),visual:d.jsx("div",{className:"w-full h-full p-6 md:p-10 flex items-center justify-center",children:d.jsxs("div",{className:"relative w-full max-w-[320px] aspect-[9/16] rounded-[2.5rem] shadow-2xl overflow-hidden border border-primary/5 flex flex-col group",children:[d.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[d.jsx("img",{src:"/pediatric_dentist_content_1772063296671.png",alt:"Pediatric Dentist",className:"w-full h-full object-cover transition-transform duration-1000 group-hover:scale-105"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"})]}),d.jsxs("div",{className:"relative z-10 p-5 h-full flex flex-col",children:[d.jsxs("div",{className:"bg-white/90 backdrop-blur-md rounded-2xl p-3 shadow-lg border border-white/50 w-full max-w-[200px] mb-auto",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx(kr,{size:10,className:"text-pink-500"}),d.jsx("span",{className:"text-[8px] font-bold text-pink-500 uppercase tracking-wider",children:"SmileFlow AI"})]}),d.jsx("p",{className:"text-[10px] font-bold text-primary leading-tight",children:"+ Create a reel for pediatric anxiety"})]}),d.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex flex-col gap-4",children:[za,Ci,Va,Eg].map((n,r)=>d.jsx("div",{className:"w-8 h-8 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white border border-white/30",children:d.jsx(n,{size:14})},r))}),d.jsxs("div",{className:"mt-auto self-start bg-white rounded-xl p-2.5 shadow-xl border border-primary/5 flex items-center gap-3 animate-bounce translate-y-[-10px]",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/10 flex items-center justify-center text-accent",children:d.jsx(Po,{size:14})}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-[8px] font-bold text-primary/40 uppercase",children:"Action"}),d.jsx("span",{className:"text-[10px] font-bold text-primary",children:"+ Add Booking Link"})]})]}),d.jsx("div",{className:"absolute top-[40%] left-[-10%] w-12 h-12 bg-blue-400 rounded-full blur-2xl opacity-60"}),d.jsx("div",{className:"absolute bottom-[20%] right-[-10%] w-16 h-16 bg-pink-400 rounded-full blur-2xl opacity-60"})]})]})})},{num:"08",title:"AI Websites",desc:"Bespoke, conversion-optimized websites built in minutes, not months.",link:"/website-builder",icon:d.jsx($f,{size:32,className:"text-indigo-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 md:p-12 bg-indigo-50/20 flex items-center justify-center",children:d.jsxs("div",{className:"relative w-full h-full max-h-[300px] border border-primary/5 rounded-3xl bg-white shadow-2xl flex flex-col overflow-hidden group",children:[d.jsxs("div",{className:"h-8 bg-indigo-50/50 border-b border-indigo-100 flex items-center px-4 gap-1.5 flex-shrink-0",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400/60"}),d.jsx("div",{className:"w-2 h-2 rounded-full bg-yellow-400/60"}),d.jsx("div",{className:"w-2 h-2 rounded-full bg-green-400/60"}),d.jsx("div",{className:"ml-4 flex-1 h-4 bg-white/50 rounded-md border border-indigo-100/50 flex items-center px-2",children:d.jsx("div",{className:"w-24 h-1 bg-indigo-200/50 rounded-full"})})]}),d.jsxs("div",{className:"flex-1 relative overflow-hidden",children:[d.jsx("img",{src:"/dental_website_mockup_1772063473251.png",alt:"Dental Website Mockup",className:"w-full h-full object-cover object-top transition-transform duration-[2000ms] group-hover:scale-110 group-hover:translate-y-[-10%]"}),d.jsx("div",{className:"absolute inset-0 bg-indigo-900/10 backdrop-blur-[2px] opacity-0 group-hover:opacity-100 transition-opacity duration-700 flex items-center justify-center",children:d.jsxs("div",{className:"bg-white/90 backdrop-blur-md px-6 py-3 rounded-2xl shadow-2xl flex items-center gap-4 border border-white/50 scale-90 group-hover:scale-100 transition-transform duration-700",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center text-white animate-spin",children:d.jsx(Va,{size:16})}),d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"text-[10px] font-bold text-indigo-500 uppercase tracking-widest leading-none mb-1",children:"SmileFlow AI"}),d.jsx("span",{className:"text-sm font-bold text-primary",children:"Regenerating Sections..."})]})]})})]})]})})},{num:"09",title:"Website Chatbot",desc:"24/7 autonomous engagement to capture and qualify leads instantly.",link:"/website-chatbot",icon:d.jsx(za,{size:32,className:"text-teal-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-teal-50/20 flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-[320px] bg-white rounded-3xl shadow-2xl border border-teal-100 overflow-hidden flex flex-col aspect-square",children:[d.jsxs("div",{className:"p-4 bg-teal-500 text-white flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-white animate-pulse"}),d.jsx("span",{className:"text-xs font-bold uppercase tracking-widest",children:"AI Concierge Live"})]}),d.jsxs("div",{className:"flex-1 p-4 space-y-3 overflow-hidden",children:[d.jsxs("div",{className:"bg-gray-100 rounded-2xl rounded-bl-sm p-3 w-3/4 text-[10px] text-primary space-y-1",children:[d.jsx("div",{className:"w-full h-1.5 bg-gray-200 rounded-full"}),d.jsx("div",{className:"w-2/3 h-1.5 bg-gray-200 rounded-full"})]}),d.jsx("div",{className:"bg-teal-500 rounded-2xl rounded-br-sm p-3 w-3/4 ml-auto text-[10px] text-white font-bold",children:"I'd like to book an implant consultation for Tuesday."}),d.jsxs("div",{className:"bg-white border border-teal-200 rounded-2xl p-4 shadow-lg animate-bounce mt-4 flex flex-col items-center gap-2",children:[d.jsx("div",{className:"p-2 bg-teal-100 rounded-full text-teal-600",children:d.jsx(za,{size:20})}),d.jsx("span",{className:"text-[10px] font-black text-teal-600 uppercase",children:"High Quality Lead Captured"}),d.jsx("div",{className:"w-full flex gap-1 justify-center",children:[1,2,3,4,5].map(n=>
102d.jsx(kr,{size:10,className:"text-teal-400"},n))})]})]})]})})},{num:"10",title:"Omnichannel Marketing",desc:"Coordinated Email and SMS sequences that maximize patient touchpoints.",link:"/omnichannel-marketing",icon:d.jsx(Ci,{size:32,className:"text-yellow-500"}),visual:d.jsx("div",{className:"w-full h-full p-8 bg-yellow-50/10 flex items-center justify-center overflow-hidden",children:d.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",children:[d.jsx("div",{className:"relative z-10 w-24 h-24 bg-white rounded-3xl shadow-2xl border border-yellow-200 flex items-center justify-center",children:d.jsx(Ci,{size:40,className:"text-yellow-500 animate-pulse"})}),[0,120,240].map((n,r)=>d.jsxs("div",{className:"absolute w-full h-1",style:{transform:`rotate(${n}deg)`},children:[d.jsx("div",{className:"absolute right-0 w-1/2 h-full bg-gradient-to-r from-yellow-200 to-transparent"}),d.jsx("div",{className:"absolute right-0 w-4 h-4 bg-yellow-400 rounded-full blur-md animate-[ping_2s_linear_infinite]",style:{animationDelay:`${r*.5}s`}})]},r)),d.jsxs("div",{className:"absolute top-10 flex flex-col items-center gap-1",children:[d.jsx("div",{className:"p-3 bg-white rounded-full shadow-lg border border-yellow-100",children:d.jsx(Ci,{size:20,className:"text-yellow-400"})}),d.jsx("span",{className:"text-[10px] font-bold text-yellow-600 uppercase",children:"SMS"})]}),d.jsxs("div",{className:"absolute bottom-10 left-10 flex flex-col items-center gap-1",children:[d.jsx("div",{className:"p-3 bg-white rounded-full shadow-lg border border-yellow-100",children:d.jsx($f,{size:20,className:"text-yellow-400"})}),d.jsx("span",{className:"text-[10px] font-bold text-yellow-600 uppercase",children:"Web"})]}),d.jsxs("div",{className:"absolute bottom-10 right-10 flex flex-col items-center gap-1",children:[d.jsx("div",{className:"p-3 bg-white rounded-full shadow-lg border border-yellow-100",children:d.jsx(za,{size:20,className:"text-yellow-400"})}),d.jsx("span",{className:"text-[10px] font-bold text-yellow-600 uppercase",children:"Social"})]})]})})},{num:"11",title:"Retention Engine",desc:"Predictive follow-up sequences designed to maximize patient lifetime value.",link:"/retention-engine",icon:d.jsx(Va,{size:32,className:"text-rose-500"}),visual:d.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center p-8 bg-rose-50/10",children:[d.jsxs("div",{className:"relative w-48 h-48",children:[d.jsx("div",{className:"absolute inset-0 border-4 border-dashed border-rose-200 rounded-full animate-[spin_10s_linear_infinite]"}),d.jsx("div",{className:"absolute inset-4 border-4 border-rose-400/20 rounded-full animate-[spin_5s_linear_infinite_reverse]"}),d.jsxs("div",{className:"absolute inset-12 bg-white rounded-full shadow-2xl border border-rose-100 flex flex-col items-center justify-center z-10",children:[d.jsx(Rr,{size:32,className:"text-rose-500 animate-bounce"}),d.jsx("span",{className:"text-[10px] font-black text-rose-600 tracking-tighter mt-1",children:"LTV MAX"})]}),[0,90,180,270].map(n=>d.jsx("div",{className:"absolute inset-0",style:{transform:`rotate(${n}deg)`},children:d.jsx("div",{className:"absolute -top-2 left-1/2 -translate-x-1/2 w-4 h-4 bg-rose-500 rounded-full shadow-[0_0_15px_rgba(244,63,94,0.6)]"})},n))]}),d.jsx("div",{className:"mt-8 flex gap-4",children:d.jsxs("div",{className:"bg-white px-3 py-1.5 rounded-full border border-rose-100 shadow-sm flex items-center gap-2",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-rose-400 animate-pulse"}),d.jsx("span",{className:"text-[10px] font-bold text-rose-600 uppercase",children:"Retention Active"})]})})]})}];return d.jsx("section",{id:"protocol",ref:t,className:"relative bg-background py-32 px-6 md:px-16 overflow-hidden",children:d.jsx("div",{className:"max-w-7xl mx-auto flex flex-col gap-32 md:gap-40",children:e.map((n,r)=>d.jsxs("div",{className:`protocol-step-reveal flex flex-col ${r%2===0?"md:flex-row":"md:flex-row-reverse"} items-center justify-between gap-12 md:gap-24`,children:[d.jsxs("div",{className:"flex-1 flex flex-col gap-6 w-full",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("span",{className:"font-mono text-xl text-accent font-semibold tracking-tighter",children:["[",n.num,"]"]}),d.jsx("div",{className:"p-2.5 bg-white rounded-2xl border border-primary/5 shadow-sm",children:n.icon})]}),d.jsx("h2",{className:"font-heading font-bold text-4xl md:text-5xl lg:text-6xl text-primary tracking-tighter leading-[1.1]",children:n.title}),d.jsx("p",{className:"font-sans text-lg md:text-xl text-primary/70 max-w-md font-medium leading-relaxed",children:n.desc}),n.link&&d.jsxs(Nt,{to:n.link,className:"inline-flex items-center gap-2 text-accent font-bold hover:gap-3 transition-all",children:["Learn More ",d.jsx(Gr,{size:18})]})]}),d.jsx("div",{className:`group flex-1 w-full max-w-xl aspect-square rounded-[3rem] border border-primary/5 flex items-center justify-center relative overflow-hidden ${n.title==="AI Asset Creation"?"bg-transparent border-none shadow-none":"bg-white shadow-2xl hover:shadow-accent/5"} transition-all duration-700`,"aria-hidden":"true",children:n.visual})]},r))})})},WJ=({words:t})=>{const[e,n]=$.useState(0),[r,i]=$.useState(""),[s,o]=$.useState(!1),[c,f]=$.useState(!1),[h,p]=$.useState(!1),g=$.useRef(null);return $.useEffect(()=>{const x=new IntersectionObserver(([v])=>{v.isIntersecting&&(p(!0),x.disconnect())},{threshold:.5});return g.current&&x.observe(g.current),()=>x.disconnect()},[]),$.useEffect(()=>{if(c||!h)return;const x=t[e],_=setTimeout(()=>{s?(i(x.substring(0,r.length-1)),r.length===0&&(o(!1),n(S=>S+1))):(i(x.substring(0,r.length+1)),r.length+1===x.length&&(e===t.length-1?f(!0):setTimeout(()=>
102o(!0),1500)))},s?50:150);return()=>clearTimeout(_)},[r,s,e,t,c,h]),d.jsxs("span",{ref:g,className:"text-accent min-w-[200px] inline-block",children:[r,!c&&d.jsx("span",{className:"animate-pulse",children:"|"})]})},XJ=()=>{const t=["growth","vacation","revolution","SmileFlow"];return d.jsxs("footer",{className:"bg-dark text-white rounded-t-[4rem] relative overflow-hidden mt-20 pt-32 pb-12 px-6 md:px-16 flex flex-col items-center",children:[d.jsxs("div",{className:"text-center max-w-4xl mb-32 flex flex-col items-center gap-8 z-10",children:[d.jsxs("h2",{className:"font-drama italic text-6xl md:text-8xl text-white text-wrap",children:["Begin your ",d.jsx(WJ,{words:t})]}),d.jsxs(Nt,{to:"/founder-notification",className:"flex flex-col items-center group",children:[d.jsxs($g,{className:"bg-accent text-white px-10 py-5 rounded-full text-xl font-semibold flex items-center gap-3 mt-6 hover:bg-primary transition-colors",children:["90-Day Zero Cost Pilot ",d.jsx(Gr,{size:20})]}),d.jsx("p",{className:"mt-4 text-[10px] md:text-sm text-white/60 font-medium group-hover:text-white transition-colors",children:"Risk-free trial for qualified DSOs and high-growth practices."})]})]}),d.jsxs("div",{className:"w-full max-w-7xl grid grid-cols-1 md:grid-cols-5 gap-12 z-10 pt-16 border-t border-white/10",children:[d.jsxs("div",{className:"md:col-span-2 flex flex-col gap-6",children:[d.jsx(Nt,{to:"/",className:"font-heading font-bold text-3xl tracking-tight",children:"SmileFlow"}),d.jsx("p",{className:"font-sans text-white/50 font-medium max-w-sm",children:"An AI-integrated operating system designed to automate dental practice growth."}),d.jsxs("div",{className:"mt-auto pt-4 flex flex-col gap-3",children:[d.jsx("a",{href:"mailto:[email protected]",className:"font-sans text-sm text-white/60 hover:text-white transition-colors",children:"Contact Support: [email protected]"}),d.jsxs("a",{href:"https://app.smileflow.ai/login",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 group/status hover:opacity-80 transition-opacity",children:[d.jsx("span",{className:"w-3 h-3 rounded-full bg-green-500 animate-pulse"}),d.jsx("span",{className:"font-mono text-xs text-white/60 tracking-wider group-hover/status:text-white transition-colors",children:"SYSTEM OPERATIONAL"})]})]})]}),d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx("span",{className:"font-mono text-xs text-white/40 tracking-wider uppercase",children:"Solutions"}),d.jsx(Nt,{to:"/ai-receptionist",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"AI Receptionist"}),d.jsx(Nt,{to:"/website-builder",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Website Builder"}),d.jsx(Nt,{to:"/crm",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"CRM"}),d.jsx(Nt,{to:"/dso-dashboard",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Executive Dashboard"}),d.jsx(Nt,{to:"/website-chatbot",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Website Chatbot"}
102),d.jsx(Nt,{to:"/omnichannel-marketing",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Omnichannel Marketing"}),d.jsx(Nt,{to:"/retention-engine",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Retention Engine"})]}),d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx("span",{className:"font-mono text-xs text-white/40 tracking-wider uppercase",children:"Navigate"}),d.jsx(Nt,{to:"/compare",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Compare"}),d.jsx(Nt,{to:"/plans",className:"font-sans text-sm text-accent font-bold hover:text-white transition-colors",children:"Plans"}),d.jsx(Nt,{to:"/news",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"News"}),d.jsx(Nt,{to:"/meet-the-founder",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Meet the Founder"})]}),d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx("span",{className:"font-mono text-xs text-white/40 tracking-wider uppercase",children:"Legal"}),d.jsx(Nt,{to:"/privacy",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Privacy Policy"}),d.jsx(Nt,{to:"/terms",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Terms of Service"}),d.jsx(Nt,{to:"/accessibility",className:"font-sans text-sm text-white/80 hover:text-accent transition-colors",children:"Accessibility"})]})]}),d.jsxs("div",{className:"w-full max-w-7xl pt-12 mt-16 border-t border-white/5 flex flex-col md:flex-row justify-between items-center gap-6 z-10",children:[d.jsx("p",{className:"font-sans text-[10px] md:text-sm text-primary/60 font-medium",children:"© 2026 SmileFlow AI. All rights reserved. SmileFlow AI is a brand of InTandem, LLC."}),d.jsx("a",{href:"https://elevenlabs.io/startup-grants",target:"_blank",rel:"noopener noreferrer",className:"hover:opacity-80 transition-opacity",children:d.jsx("img",{src:"https://eleven-public-cdn.elevenlabs.io/payloadcms/cy7rxce8uki-IIElevenLabsGrants%201.webp",alt:"ElevenLabs",style:{width:"250px"}})})]})]})},JJ=()=>{const[t,e]=$.useState(!1),[n,r]=$.useState(!1);return $.useEffect(()=>{const i=()=>{window.scrollY>window.innerHeight*.8?e(!0):e(!1)},s=new IntersectionObserver(([c])=>{r(c.isIntersecting)},{threshold:.1}),o=document.querySelector("footer");return o&&s.observe(o),window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i),s.disconnect()}},[]),d.jsx("div",{className:`fixed bottom-6 left-1/2 -translate-x-1/2 z-40 transition-all duration-500 w-11/12 max-w-3xl ${t&&!n?"translate-y-0 opacity-100":"translate-y-20 opacity-0 pointer-events-none"}`,children:d.jsxs("div",{className:"glass-nav bg-white/90 backdrop-blur-md rounded-full px-4 py-3 shadow-2xl border border-primary/10 flex flex-row items-center justify-between gap-4",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"bg-accent/10 px-3 py-1.5 rounded-full flex items-center gap-2",children:[d.jsx(kr,{size:14,className:"text-accent ring-1 ring-accent/20 rounded-full"}),d.jsx("span",{className:"font-mono text-[10px] font-bold text-accent tracking-wider uppercase",children:"Enterprise Pilot"})]}),d.jsxs("span",{className:"font-sans text-sm font-semibold text-primary/80 hidden md:inline-block",children:["Risk-free trial for ",d.jsx("span",{className:"font-bold text-primary",children:"qualified DSOs"})," and high-growth practices."]})]}),d.jsx(Nt,{to:"/founder-notification",className:"flex-shrink-0",children:d.jsxs($g,{className:"px-4 md:px-5 py-2 rounded-full text-xs md:text-sm font-semibold transition-colors bg-accent text-white shadow-lg shadow-accent/20 hover:bg-primary flex items-center gap-2",children:["Apply For Pilot ",d.jsx(Gr,{size:14})]})})]})})},QJ=()=>d.jsxs(d.Fragment,{children:[d.jsx($J,{}),d.jsx(v5,{}),d.jsx(VJ,{}),d.jsx(KJ,{}),d.jsx(YJ,{}),d.jsx(JJ,{})]});function ZJ(){return d.jsxs(iU,{children:[d.jsx(PJ,{}),d.jsxs("div",{className:"relative bg-background min-h-screen",children:[d.jsx(MJ,{}),d.jsx(zJ,{}),d.jsx("main",{id:"main-content",children:d.jsxs(L8,{children:[d.jsx(tr,{path:"/",element:d.jsx(QJ,{})}),d.jsx(tr,{path:"/plans",element:d.jsx(AB,{})}),d.jsx(tr,{path:"/compare",element:d.jsx(CB,{})}),d.jsx(tr,{path:"/privacy",element:d.jsx(DB,{})}),d.jsx(tr,{path:"/terms",element:d.jsx(LB,{})}),d.jsx(tr,{path:"/pms-integrations",element:d.jsx(pq,{})}),d.jsx(tr,{path:"/founder-notification",element:d.jsx(fq,{})}),d.jsx(tr,{path:"/accessibility",element:d.jsx(gq,{})}),d.jsx(tr,{path:"/news",element:d.jsx(MG,{})}),d.jsx(tr,{path:"/news/:slug",element:d.jsx(aJ,{})}),d.jsx(tr,{path:"/meet-the-founder",element:d.jsx(uJ,{})}),d.jsx(tr,{path:"/website-builder",element:d.jsx(fJ,{})}),d.jsx(tr,{path:"/ai-receptionist",element:d.jsx(hJ,{})}),d.jsx(tr,{path:"/crm",element:d.jsx(mJ,{})}),d.jsx(tr,{path:"/dso-dashboard",element:d.jsx(xJ,{})}),d.jsx(tr,{path:"/website-chatbot",element:d.jsx(_J,{})}
102),d.jsx(tr,{path:"/omnichannel-marketing",element:d.jsx(SJ,{})}),d.jsx(tr,{path:"/retention-engine",element:d.jsx(jJ,{})})]})}),d.jsx(XJ,{}),d.jsx(LJ,{})]})]})}yl.init(void 0,{api_host:"https://us.i.posthog.com"});kP.createRoot(document.getElementById("root")).render(d.jsx($.StrictMode,{children:d.jsx(WI,{client:yl,children:d.jsx(ZJ,{})})}));
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.