vendor: 6,403 bytes, lines 1-9
1var gk=Object.defineProperty;var Og=t=>{throw TypeError(t)};var yk=(t,e,n)=>e in t?gk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ue=(t,e,n)=>yk(t,typeof e!="symbol"?e+"":e,n),ud=(t,e,n)=>e.has(t)||Og("Cannot "+n);var A=(t,e,n)=>(ud(t,e,"read from private field"),n?n.call(t):e.get(t)),me=(t,e,n)=>e.has(t)?Og("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),te=(t,e,n,i)=>(ud(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Ne=(t,e,n)=>(ud(t,e,"access private method"),n);var Sl=(t,e,n,i)=>({set _(a){te(t,e,a,n)},get _(){return A(t,e,i)}});function vk(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in t)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function Vv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dd={exports:{}},xo={},fd={exports:{}},_e={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Lg;function xk(){if(Lg)return _e;Lg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(L){return L===null||typeof L!="object"?null:(L=v&&L[v]||L["@@iterator"],typeof L=="function"?L:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,E={};function k(L,$,ye){this.props=L,this.context=$,this.refs=E,this.updater=ye||S}k.prototype.isReactComponent={},k.prototype.setState=function(L,$){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,$,"setState")},k.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function b(){}b.prototype=k.prototype;function j(L,$,ye){this.props=L,this.context=$,this.refs=E,this.updater=ye||S}var C=j.prototype=new b;C.constructor=j,T(C,k.prototype),C.isPureReactComponent=!0;var R=Array.isArray,D=Object.prototype.hasOwnProperty,z={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function F(L,$,ye){var ve,pe={},Y=null,be=null;if($!=null)for(ve in $.ref!==void 0&&(be=$.ref),$.key!==void 0&&(Y=""+$.key),$)D.call($,ve)&&!J.hasOwnProperty(ve)&&(pe[ve]=$[ve]);var Te=arguments.length-2;if(Te===1)pe.children=ye;else if(1<Te){for(var we=Array(Te),lt=0;lt<Te;lt++)we[lt]=arguments[lt+2];pe.children=we}if(L&&L.defaultProps)for(ve in Te=L.defaultProps,Te)pe[ve]===void 0&&(pe[ve]=Te[ve]);return{$$typeof:t,type:L,key:Y,ref:be,props:pe,_owner:z.current}}function ee(L,$){return{$$typeof:t,type:L.type,key:$,ref:L.ref,props:L.props,_owner:L._owner}}function ue(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function ke(L){var $={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(ye){return $[ye]})}var Pe=/\/+/g;function Me(L,$){return typeof L=="object"&&L!==null&&L.key!=null?ke(""+L.key):$.toString(36)}function Ce(L,$,ye,ve,pe){var Y=typeof L;(Y==="undefined"||Y==="boolean")&&(L=null);var be=!1;if(L===null)be=!0;else switch(Y){case"string":case"number":be=!0;break;case"object":switch(L.$$typeof){case t:case e:be=!0}}if(be)return be=L,pe=pe(be),L=ve===""?"."+Me(be,0):ve,R(pe)?(ye="",L!=null&&(ye=L.replace(Pe,"$&/")+"/"),Ce(pe,$,ye,"",function(lt){return lt})):pe!=null&&(ue(pe)&&(pe=ee(pe,ye+(!pe.key||be&&be.key===pe.key?"":(""+pe.key).replace(Pe,"$&/")+"/")+L)),$.push(pe)),1;if(be=0,ve=ve===""?".":ve+":",R(L))for(var Te=0;Te<L.length;Te++){Y=L[Te];var we=ve+Me(Y,Te);be+=Ce(Y,$,ye,we,pe)}else if(we=w(L),typeof we=="function")for(L=we.call(L),Te=0;!(Y=L.next()).done;)Y=Y.value,we=ve+Me(Y,Te++),be+=Ce(Y,$,ye,we,pe);else if(Y==="object")throw $=String(L),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return be}function Be(L,$,ye){if(L==null)return L;var ve=[],pe=0;return Ce(L,ve,"","",function(Y){return $.call(ye,Y,pe++)}),ve}function he(L){if(L._status===-1){var $=L._result;$=$(),$.then(function(ye){(L._status===0||L._status===-1)&&(L._status=1,L._result=ye)},function(ye){(L._status===0||L._status===-1)&&(L._status=2,L._result=ye)}),L._status===-1&&(L._status=0,L._result=$)}if(L._status===1)return L._result.default;throw L._result}var ce={current:null},K={transition:null},ie={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:K,ReactCurrentOwner:z};function U(){throw Error("act(...) is not supported in production builds of React.")}return _e.Children={map:Be,forEach:function(L,$,ye){Be(L,function(){$.apply(this,arguments)},ye)},count:function(L){var $=0;return Be(L,function(){$++}),$},toArray:function(L){return Be(L,function($){return $})||[]},only:function(L){if(!ue(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},_e.Component=k,_e.Fragment=n,_e.Profiler=a,_e.PureComponent=j,_e.StrictMode=i,_e.Suspense=f,_e.__SECRET_INT
vendor: 2,337 bytes, line 9
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,_e.act=U,_e.cloneElement=function(L,$,ye){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var ve=T({},L.props),pe=L.key,Y=L.ref,be=L._owner;if($!=null){if($.ref!==void 0&&(Y=$.ref,be=z.current),$.key!==void 0&&(pe=""+$.key),L.type&&L.type.defaultProps)var Te=L.type.defaultProps;for(we in $)D.call($,we)&&!J.hasOwnProperty(we)&&(ve[we]=$[we]===void 0&&Te!==void 0?Te[we]:$[we])}var we=arguments.length-2;if(we===1)ve.children=ye;else if(1<we){Te=Array(we);for(var lt=0;lt<we;lt++)Te[lt]=arguments[lt+2];ve.children=Te}return{$$typeof:t,type:L.type,key:pe,ref:Y,props:ve,_owner:be}},_e.createContext=function(L){return L={$$typeof:c,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:l,_context:L},L.Consumer=L},_e.createElement=F,_e.createFactory=function(L){var $=F.bind(null,L);return $.type=L,$},_e.createRef=function(){return{current:null}},_e.forwardRef=function(L){return{$$typeof:d,render:L}},_e.isValidElement=ue,_e.lazy=function(L){return{$$typeof:y,_payload:{_status:-1,_result:L},_init:he}},_e.memo=function(L,$){return{$$typeof:m,type:L,compare:$===void 0?null:$}},_e.startTransition=function(L){var $=K.transition;K.transition={};try{L()}finally{K.transition=$}},_e.unstable_act=U,_e.useCallback=function(L,$){return ce.current.useCallback(L,$)},_e.useContext=function(L){return ce.current.useContext(L)},_e.useDebugValue=function(){},_e.useDeferredValue=function(L){return ce.current.useDeferredValue(L)},_e.useEffect=function(L,$){return ce.current.useEffect(L,$)},_e.useId=function(){return ce.current.useId()},_e.useImperativeHandle=function(L,$,ye){return ce.current.useImperativeHandle(L,$,ye)},_e.useInsertionEffect=function(L,$){return ce.current.useInsertionEffect(L,$)},_e.useLayoutEffect=function(L,$){return ce.current.useLayoutEffect(L,$)},_e.useMemo=function(L,$){return ce.current.useMemo(L,$)},_e.useReducer=function(L,$,ye){return ce.current.useReducer(L,$,ye)},_e.useRef=function(L){return ce.current.useRef(L)},_e.useState=function(L){return ce.current.useState(L)},_e.useSyncExternalStore=function(L,$,ye){return ce.current.useSyncExternalStore(L,$,ye)},_e.useTransition=function(){return ce.current.useTransition()}
vendor: 7,001 bytes, lines 9-33
9,_e.version="18.3.1",_e}var Mg;function Ff(){return Mg||(Mg=1,fd.exports=xk()),fd.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Ig;function wk(){if(Ig)return xo;Ig=1;var t=Ff(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,m){var y,v={},w=null,S=null;m!==void 0&&(w=""+m),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(S=f.ref);for(y in f)i.call(f,y)&&!l.hasOwnProperty(y)&&(v[y]=f[y]);if(d&&d.defaultProps)for(y in f=d.defaultProps,f)v[y]===void 0&&(v[y]=f[y]);return{$$typeof:e,type:d,key:w,ref:S,props:v,_owner:a.current}}return xo.Fragment=n,xo.jsx=c,xo.jsxs=c,xo}var Dg;function bk(){return Dg||(Dg=1,dd.exports=wk()),dd.exports}var p=bk(),M=Ff();const Sk=Vv(M),kk=vk({__proto__:null,default:Sk},[M]);var kl={},hd={exports:{}},Bt={},pd={exports:{}},md={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Bg;function Ek(){return Bg||(Bg=1,(function(t){function e(K,ie){var U=K.length;K.push(ie);e:for(;0<U;){var L=U-1>>>1,$=K[L];if(0<a($,ie))K[L]=ie,K[U]=$,U=L;else break e}}function n(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var ie=K[0],U=K.pop();if(U!==ie){K[0]=U;e:for(var L=0,$=K.length,ye=$>>>1;L<ye;){var ve=2*(L+1)-1,pe=K[ve],Y=ve+1,be=K[Y];if(0>a(pe,U))Y<$&&0>a(be,pe)?(K[L]=be,K[Y]=U,L=Y):(K[L]=pe,K[ve]=U,L=ve);else if(Y<$&&0>a(be,U))K[L]=be,K[Y]=U,L=Y;else break e}}return ie}function a(K,ie){var U=K.sortIndex-ie.sortIndex;return U!==0?U:K.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var f=[],m=[],y=1,v=null,w=3,S=!1,T=!1,E=!1,k=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(K){for(var ie=n(m);ie!==null;){if(ie.callback===null)i(m);else if(ie.startTime<=K)i(m),ie.sortIndex=ie.expirationTime,e(f,ie);else break;ie=n(m)}}function R(K){if(E=!1,C(K),!T)if(n(f)!==null)T=!0,he(D);else{var ie=n(m);ie!==null&&ce(R,ie.startTime-K)}}function D(K,ie){T=!1,E&&(E=!1,b(F),F=-1),S=!0;var U=w;try{for(C(ie),v=n(f);v!==null&&(!(v.expirationTime>ie)||K&&!ke());){var L=v.callback;if(typeof L=="function"){v.callback=null,w=v.priorityLevel;var $=L(v.expirationTime<=ie);ie=t.unstable_now(),typeof $=="function"?v.callback=$:v===n(f)&&i(f),C(ie)}else i(f);v=n(f)}if(v!==null)var ye=!0;else{var ve=n(m);ve!==null&&ce(R,ve.startTime-ie),ye=!1}return ye}finally{v=null,w=U,S=!1}}var z=!1,J=null,F=-1,ee=5,ue=-1;function ke(){return!(t.unstable_now()-ue<ee)}function Pe(){if(J!==null){var K=t.unstable_now();ue=K;var ie=!0;try{ie=J(!0,K)}finally{ie?Me():(z=!1,J=null)}}else z=!1}var Me;if(typeof j=="function")Me=function(){j(Pe)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Be=Ce.port2;Ce.port1.onmessage=Pe,Me=function(){Be.postMessage(null)}}else Me=function(){k(Pe,0)};function he(K){J=K,z||(z=!0,Me())}function ce(K,ie){F=k(function(){K(t.unstable_now())},ie)}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(K){K.callback=null},t.unstable_continueExecution=function(){T||S||(T=!0,he(D))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(K){switch(w){case 1:case 2:case 3:var ie=3;break;default:ie=w}var U=w;w=ie;try{return K()}finally{w=U}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,ie){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var U=w;w=K;try{return ie()}finally{w=U}},t.unstable_scheduleCallback=function(K,ie,U){var L=t.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?L+U:L):U=L,K){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=U+$,K={id:y++,callback:ie,priorityLevel:K,startTime:U,expirationTime:$,sortIndex:-1},U>L?(K.sortIndex=U,e(m,K),n(f)===null&&K===n(m)&&(E?(b(F),F=-1):E=!0,ce(R,U-L))):(K.sortIndex=$,e(f,K),T||S||(T=!0,he(D))),K},t.unstable_shouldYield=ke,t.unstable_wrapCallback=function(K){var ie=w;return function(){var U=w;w=ie;try{return K.apply(this,arguments)}finally{w=U}}}})(md)),md}var Fg;function _k(){return Fg||(Fg=1,pd.exports=Ek()),pd.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Vg;function Tk(){if(Vg)return Bt;Vg=1;var t=Ff(),e=_k();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(r,s){c(r,s),c(r+"Capture",s)}function c(r,s){for(a[r]=s,r=0;r<s.length;r++)i.add(s[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},v={};function w(r){return f.call(v,r)?!0:f.call(y,r)?!1:m.test(r)?v[r]=!0:(y[r]=!0,!1)}function S(r,s,o,u){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return u?!1:o!==null?!o.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function T(r,s,o,u){if(s===null||typeof s>"u"||S(r,s,o,u))return!0;
vendor: 13,602 bytes, lines 33-37
33if(u)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function E(r,s,o,u,h,g,x){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=u,this.attributeNamespace=h,this.mustUseProperty=o,this.propertyName=r,this.type=s,this.sanitizeURL=g,this.removeEmptyString=x}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){k[r]=new E(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];k[s]=new E(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new E(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new E(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){k[r]=new E(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new E(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new E(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new E(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new E(r,5,!1,r.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function j(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var s=r.replace(b,j);k[s]=new E(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(b,j);k[s]=new E(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(b,j);k[s]=new E(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new E(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new E(r,1,!1,r.toLowerCase(),null,!0,!0)});function C(r,s,o,u){var h=k.hasOwnProperty(s)?k[s]:null;(h!==null?h.type!==0:u||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(T(s,o,h,u)&&(o=null),u||h===null?w(s)&&(o===null?r.removeAttribute(s):r.setAttribute(s,""+o)):h.mustUseProperty?r[h.propertyName]=o===null?h.type===3?!1:"":o:(s=h.attributeName,u=h.attributeNamespace,o===null?r.removeAttribute(s):(h=h.type,o=h===3||h===4&&o===!0?"":""+o,u?r.setAttributeNS(u,s,o):r.setAttribute(s,o))))}var R=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),z=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),ke=Symbol.for("react.context"),Pe=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Ce=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),K=Symbol.iterator;function ie(r){return r===null||typeof r!="object"?null:(r=K&&r[K]||r["@@iterator"],typeof r=="function"?r:null)}var U=Object.assign,L;function $(r){if(L===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);L=s&&s[1]||""}return` 34`+L+r}var ye=!1;function ve(r,s){if(!r||ye)return"";ye=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(V){var u=V}Reflect.construct(r,[],s)}else{try{s.call()}catch(V){u=V}r.call(s.prototype)}else{try{throw Error()}catch(V){u=V}r()}}catch(V){if(V&&u&&typeof V.stack=="string"){for(var h=V.stack.split(` 35`),g=u.stack.split(` 36`),x=h.length-1,_=g.length-1;1<=x&&0<=_&&h[x]!==g[_];)_--;for(;1<=x&&0<=_;x--,_--)if(h[x]!==g[_]){if(x!==1||_!==1)do if(x--,_--,0>_||h[x]!==g[_]){var N=` 37`+h[x].replace(" at new "," at ");return r.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",r.displayName)),N}while(1<=x&&0<=_);break}}}finally{ye=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?$(r):""}function pe(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=ve(r.type,!1),r;case 11:return r=ve(r.type.render,!1),r;case 1:return r=ve(r.type,!0),r;default:return""}}function Y(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case J:return"Fragment";case z:return"Portal";case ee:return"Profiler";case F:return"StrictMode";case Me:return"Suspense";case Ce:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case ke:return(r.displayName||"Context")+".Consumer";case ue:return(r._context.displayName||"Context")+".Provider";case Pe:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Be:return s=r.displayName||null,s!==null?s:Y(r.type)||"Memo";case he:s=r._payload,r=r._init;try{return Y(r(s))}catch{}}return null}function be(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Y(s);case 8:return s===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Te(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function we(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function lt(r){var s=we(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),u=""+r[s];if(!r.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,g=o.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return h.call(this)},set:function(x){u=""+x,g.call(this,x)}}),Object.defineProperty(r,s,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(x){u=""+x},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Gt(r){r._valueTracker||(r._valueTracker=lt(r))}function ht(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),u="";return r&&(u=we(r)?r.checked?"true":"false":r.value),r=u,r!==o?(s.setValue(r),!0):!1}function un(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Qt(r,s){var o=s.checked;return U({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Yt(r,s){var o=s.defaultValue==null?"":s.defaultValue,u=s.checked!=null?s.checked:s.defaultChecked;o=Te(s.value!=null?s.value:o),r._wrapperState={initialChecked:u,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Se(r,s){s=s.checked,s!=null&&C(r,"checked",s,!1)}function pt(r,s){Se(r,s);var o=Te(s.value),u=s.type;if(o!=null)u==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+o):r.value!==""+o&&(r.value=""+o);else if(u==="submit"||u==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?fn(r,s.type,o):s.hasOwnProperty("defaultValue")&&fn(r,s.type,Te(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function dn(r,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var u=s.type;if(!(u!=="submit"&&u!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,o||s===r.value||(r.value=s),r.defaultValue=s}o=r.name,o!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,o!==""&&(r.name=o)}function fn(r,s,o){(s!=="number"||un(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var rr=Array.isArray;function sr(r,s,o,u){if(r=r.options,s){s={};for(var h=0;h<o.length;h++)s["$"+o[h]]=!0;for(o=0;o<r.length;o++)h=s.hasOwnProperty("$"+r[o].value),r[o].selected!==h&&(r[o].selected=h),h&&u&&(r[o].defaultSelected=!0)}else{for(o=""+Te(o),s=null,h=0;h<r.length;h++){if(r[h].value===o){r[h].selected=!0,u&&(r[h].defaultSelected=!0);return}s!==null||r[h].disabled||(s=r[h])}s!==null&&(s.selected=!0)}}function Dn(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function $h(r,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(n(92));if(rr(o)){if(1<o.length)throw Error(n(93));o=o[0]}s=o}s==null&&(s=""),o=s}r._wrapperState={initialValue:Te(o)}}function Wh(r,s){var o=Te(s.value),u=Te(s.defaultValue);o!=null&&(o=""+o,o!==r.value&&(r.value=o),s.defaultValue==null&&r.defaultValue!==o&&(r.defaultValue=o)),u!=null&&(r.defaultValue=""+u)}function Hh(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function qh(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bc(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?qh(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var pa,Kh=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,u,h){MSApp.execUnsafeLocalFunction(function(){return r(s,o,u,h)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(pa=pa||document.createElement("div"),pa.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=pa.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Li(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w1=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(r){w1.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Mi[s]=Mi[r]})});function Gh(r,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||Mi.hasOwnProperty(r)&&Mi[r]?(""+s).trim():s+"px"}function Qh(r,s){r=r.style;for(var o in s)if(s.hasOwnProperty(o)){var u=o.indexOf("--")===0,h=Gh(o,s[o],u);o==="float"&&(o="cssFloat"),u?r.setProperty(o,h):r[o]=h}}var b1=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sc(r,s){if(s){if(b1[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function kc(r,s){if(r.indexOf("-")===-1)return typeof s.is=="str
37ing";switch(r){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 Ec=null;function _c(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Tc=null,Os=null,Ls=null;function Yh(r){if(r=ro(r)){if(typeof Tc!="function")throw Error(n(280));var s=r.stateNode;s&&(s=Da(s),Tc(r.stateNode,r.type,s))}}function Xh(r){Os?Ls?Ls.push(r):Ls=[r]:Os=r}function Jh(){if(Os){var r=Os,s=Ls;if(Ls=Os=null,Yh(r),s)for(r=0;r<s.length;r++)Yh(s[r])}}function Zh(r,s){return r(s)}function ep(){}var Cc=!1;function tp(r,s,o){if(Cc)return r(s,o);Cc=!0;try{return Zh(r,s,o)}finally{Cc=!1,(Os!==null||Ls!==null)&&(ep(),Jh())}}function Ii(r,s){var o=r.stateNode;if(o===null)return null;var u=Da(o);if(u===null)return null;o=u[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(n(231,s,typeof o));return o}var Nc=!1;if(d)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Nc=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Nc=!1}function S1(r,s,o,u,h,g,x,_,N){var V=Array.prototype.slice.call(arguments,3);try{s.apply(o,V)}catch(H){this.onError(H)}}var Bi=!1,ma=null,ga=!1,jc=null,k1={onError:function(r){Bi=!0,ma=r}};function E1(r,s,o,u,h,g,x,_,N){Bi=!1,ma=null,S1.apply(k1,arguments)}function _1(r,s,o,u,h,g,x,_,N){if(E1.apply(this,arguments),Bi){if(Bi){var V=ma;Bi=!1,ma=null}else throw Error(n(198));ga||(ga=!0,jc=V)}}function Hr(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function np(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function rp(r){if(Hr(r)!==r)throw Error(n(188))}function T1(r){var s=r.alternate;if(!s){if(s=Hr(r),s===null)throw Error(n(188));return s!==r?null:r}for(var o=r,u=s;;){var h=o.return;if(h===null)break;var g=h.alternate;if(g===null){if(u=h.return,u!==null){o=u;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===o)return rp(h),r;if(g===u)return rp(h),s;g=g.sibling}throw Error(n(188))}if(o.return!==u.return)o=h,u=g;else{for(var x=!1,_=h.child;_;){if(_===o){x=!0,o=h,u=g;break}if(_===u){x=!0,u=h,o=g;break}_=_.sibling}if(!x){for(_=g.child;_;){if(_===o){x=!0,o=g,u=h;break}if(_===u){x=!0,u=g,o=h;break}_=_.sibling}if(!x)throw Error(n(189))}}if(o.alternate!==u)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?r:s}function sp(r){return r=T1(r),r!==null?ip(r):null}function ip(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=ip(r);if(s!==null)return s;r=r.sibling}return null}var op=e.unstable_scheduleCallback,ap=e.unstable_cancelCallback,C1=e.unstable_shouldYield,N1=e.unstable_requestPaint,Je=e.unstable_now,j1=e.unstable_getCurrentPriorityLevel,Ac=e.unstable_ImmediatePriority,lp=e.unstable_UserBlockingPriority,ya=e.unstable_NormalPriority,A1=e.unstable_LowPriority,cp=e.unstable_IdlePriority,va=null,_n=null;function P1(r){if(_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(va,r,void 0,(r.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:L1,R1=Math.log,O1=Math.LN2;function L1(r){return r>>>=0,r===0?32:31-(R1(r)/O1|0)|0}var xa=64,wa=4194304;function Fi(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function ba(r,s){var o=r.pendingLanes;if(o===0)return 0;var u=0,h=r.suspendedLanes,g=r.pingedLanes,x=o&268435455;if(x!==0){var _=x&~h;_!==0?u=Fi(_):(g&=x,g!==0&&(u=Fi(g)))}else x=o&~h,x!==0?u=Fi(x):g!==0&&(u=Fi(g));if(u===0)return 0;if(s!==0&&s!==u&&(s&h)===0&&(h=u&-u,g=s&-s,h>=g||h===16&&(g&4194240)!==0))return s;if((u&4)!==0&&(u|=o&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=u;0<s;)o=31-hn(s),h=1<<o,u|=r[o],s&=~h;return u}function M1(r,s){switch(r){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function I1(r,s){for(var o=r.suspendedLanes,u=r.pingedLanes,h=r.expirationTimes,g=r.pendingLanes;0<g;){var x=31-hn(g),_=1<<x,N=h[x];N===-1?((_&o)===0||(_&u)!==0)&&(h[x]=M1(_,s)):N<=s&&(r.expiredLanes|=_),g&=~_}}function Pc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function up(){var r=xa;return xa<<=1,(xa&4194240)===0&&(xa=64),r}function Rc(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function Vi(r,s,o){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-hn(s),r[s]=o}function D1(r,s){var o=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var u=r.eventTimes;for(r=r.expirationTimes;0<o;){var h=31-hn(o),g=1<<h;s[h]=0,u[h]=-1,r[h]=-1,o&=~g}}function Oc(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var u=31-hn(o),h=1<<u;h&s|r[u]&s&&(r[u]|=s),o&=~h}}var Fe=0;function dp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var fp,Lc,hp,pp,mp,Mc=!1,Sa=[],ir=null,or=null,ar=null,Ui=new Map,zi=new Map,lr=[],B1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gp(r,s){switch(r){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":or=null;break;case"mouseover":case"mouseout":ar=null;break;case"pointerover":case"pointerout":Ui.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(s.pointerId)}}function $i(r,s,o,u,h,g){return r===null||r.nativeEvent!==g?(r={blockedOn:s,domEventName:o,eventSystemFlags:u,nativeEvent:g,targetContainers:[h]},s!==null&&(s=ro(s),s!==null&&Lc(s)),r):(r.eventSystemFlags|=u,s=r.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),r)}function F1(r,s,o,u,h){switch(s){case"focusin":return ir=$i(ir,r,s,o,u,h),!0;case"dragenter":return or=$i(or,r,s,o,u,h),!0;case"mouseover":return ar=$i(ar,r,s,o,u,h),!0;case"pointerover":var g=h.pointerId;return Ui.set(g,$i(Ui.get(g)||null,r,s,o,u,h)),!0;case"gotpointercapture":return g=h.pointerId,zi.set(g,$i(zi.get(g)||null,r,s,o,u,h)),!0}return!1}function yp(r){var s=qr(r.target);if(s!==null){var o=Hr(s);if(o!==null){if(s=o.tag,s===13){if(s=np(o),s!==null){r.blockedOn=s,mp(r.priority,function(){hp(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ka(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=Dc(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var u=new o.constructor(o.type,o);Ec=u,o.target.dispatchEvent(u),Ec=null}else return s=ro(o),s!==null&&Lc(s),r.blockedOn=o,!1;s.shift()}return!0}function vp(r,s,o){ka(r)&&o.delete(s)}function V1(){Mc=!1,ir!==null&&ka(ir)&&(ir=null),or!==null&&ka(or)&&(or=null),ar!==null&&ka(ar)&&(ar=null),Ui.forEach(vp),zi.forEac
vendor: 25,435 bytes, lines 37-38
37h(vp)}function Wi(r,s){r.blockedOn===s&&(r.blockedOn=null,Mc||(Mc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,V1)))}function Hi(r){function s(h){return Wi(h,r)}if(0<Sa.length){Wi(Sa[0],r);for(var o=1;o<Sa.length;o++){var u=Sa[o];u.blockedOn===r&&(u.blockedOn=null)}}for(ir!==null&&Wi(ir,r),or!==null&&Wi(or,r),ar!==null&&Wi(ar,r),Ui.forEach(s),zi.forEach(s),o=0;o<lr.length;o++)u=lr[o],u.blockedOn===r&&(u.blockedOn=null);for(;0<lr.length&&(o=lr[0],o.blockedOn===null);)yp(o),o.blockedOn===null&&lr.shift()}var Ms=R.ReactCurrentBatchConfig,Ea=!0;function U1(r,s,o,u){var h=Fe,g=Ms.transition;Ms.transition=null;try{Fe=1,Ic(r,s,o,u)}finally{Fe=h,Ms.transition=g}}function z1(r,s,o,u){var h=Fe,g=Ms.transition;Ms.transition=null;try{Fe=4,Ic(r,s,o,u)}finally{Fe=h,Ms.transition=g}}function Ic(r,s,o,u){if(Ea){var h=Dc(r,s,o,u);if(h===null)eu(r,s,u,_a,o),gp(r,u);else if(F1(h,r,s,o,u))u.stopPropagation();else if(gp(r,u),s&4&&-1<B1.indexOf(r)){for(;h!==null;){var g=ro(h);if(g!==null&&fp(g),g=Dc(r,s,o,u),g===null&&eu(r,s,u,_a,o),g===h)break;h=g}h!==null&&u.stopPropagation()}else eu(r,s,u,null,o)}}var _a=null;function Dc(r,s,o,u){if(_a=null,r=_c(u),r=qr(r),r!==null)if(s=Hr(r),s===null)r=null;else if(o=s.tag,o===13){if(r=np(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return _a=r,null}function xp(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(j1()){case Ac:return 1;case lp:return 4;case ya:case A1:return 16;case cp:return 536870912;default:return 16}default:return 16}}var cr=null,Bc=null,Ta=null;function wp(){if(Ta)return Ta;var r,s=Bc,o=s.length,u,h="value"in cr?cr.value:cr.textContent,g=h.length;for(r=0;r<o&&s[r]===h[r];r++);var x=o-r;for(u=1;u<=x&&s[o-u]===h[g-u];u++);return Ta=h.slice(r,1<u?1-u:void 0)}function Ca(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Na(){return!0}function bp(){return!1}function zt(r){function s(o,u,h,g,x){this._reactName=o,this._targetInst=h,this.type=u,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var _ in r)r.hasOwnProperty(_)&&(o=r[_],this[_]=o?o(g):g[_]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Na:bp,this.isPropagationStopped=bp,this}return U(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Na)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Na)},persist:function(){},isPersistent:Na}),s}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fc=zt(Is),qi=U({},Is,{view:0,detail:0}),$1=zt(qi),Vc,Uc,Ki,ja=U({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$c,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ki&&(Ki&&r.type==="mousemove"?(Vc=r.screenX-Ki.screenX,Uc=r.screenY-Ki.screenY):Uc=Vc=0,Ki=r),Vc)},movementY:function(r){return"movementY"in r?r.movementY:Uc}}),Sp=zt(ja),W1=U({},ja,{dataTransfer:0}),H1=zt(W1),q1=U({},qi,{relatedTarget:0}),zc=zt(q1),K1=U({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),G1=zt(K1),Q1=U({},Is,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Y1=zt(Q1),X1=U({},Is,{data:0}),kp=zt(X1),J1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z1={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"},eS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tS(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=eS[r])?!!s[r]:!1}function $c(){return tS}var nS=U({},qi,{key:function(r){if(r.key){var s=J1[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Ca(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Z1[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$c,charCode:function(r){return r.type==="keypress"?Ca(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ca(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),rS=zt(nS),sS=U({},ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ep=zt(sS),iS=U({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$c}),oS=zt(iS),aS=U({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),lS=zt(aS),cS=U({},ja,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),uS=zt(cS),dS=[9,13,27,32],Wc=d&&"CompositionEvent"in window,Gi=null;d&&"documentMode"in document&&(Gi=document.documentMode);var fS=d&&"TextEvent"in window&&!Gi,_p=d&&(!Wc||Gi&&8<Gi&&11>=Gi),Tp=" ",Cp=!1;function Np(r,s){switch(r){case"keyup":return dS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ds=!1;function hS(r,s){switch(r){case"compositionend":return jp(s);case"keypress":return s.which!==32?null:(Cp=!0,Tp);case"textInput":return r=s.data,r===Tp&&Cp?null:r;default:return null}}function pS(r,s){if(Ds)return r==="compositionend"||!Wc&&Np(r,s)?(r=wp(),Ta=Bc=cr=null,Ds=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return _p&&s.locale!=="ko"?null:s.data;default:return null}}var mS={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 Ap(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!mS[r.type]:s==="textarea"}function Pp(r,s,o,u){Xh(u),s=La(s,"onChange"),0<s.length&&(o=new Fc("onChange","change",null,o,u),r.push({event:o,listeners:s}))}var Qi=null,Yi=null;function gS(r){Qp(r,0)}function Aa(r){var s=zs(r);if(ht(s))return r}function yS(r,s){if(r==="change")return s}var Rp=!1;if(d){var Hc;if(d){var qc="oninput"in document;if(!qc){var Op=document.createElement("div");Op.setAttribute("oninput","return;"),qc=typeof Op.oninput=="function"}Hc=qc}else Hc=!1;Rp=Hc&&(!document.documentMode||9<document.documentMode)}function Lp(){Qi&&(Qi.detachEvent("onpropertychange",Mp),Yi=Qi=null)}function Mp(r){if(r.propertyName==="value"&&Aa(Yi)){var s=[];Pp(s,Yi,r,_c(r)),tp(gS,s)}}function vS(r,s,o){r==="focusin"?(Lp(),Qi=s,Yi=o,Qi.attachEvent("onpropertychange",Mp)):r==="focusout"&&Lp()}function xS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Aa(Yi)}function wS(r,s){if(r==="click")return Aa(s)}function bS(r,s){if(r==="input"||r==="change")return Aa(s)}function SS(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var pn=typeof Object.is=="function"?Object.is:SS;function Xi(r,s){if(pn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),u=Object.keys(s);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var h=o[u];if(!f.call(s,h)||!pn(r[h],s[h]))return!1}return!0}function Ip(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Dp(r,s){var o=Ip(r);r=0;for(var u;o;){if(o.nodeType===3){if(u=r+o.textContent.length,r<=s&&u>=s)return{node:o,offset:s-r};r=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Ip(o)}}function Bp(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Bp(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Fp(){for(var r=window,s=un();s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=un(r.document)}return s}function Kc(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function kS(r){var s=Fp(),o=r.focusedElem,u=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&Bp(o.ownerDocument.documentElement,o)){if(u!==null&&Kc(o)){if(s=u.start,r=u.end,r===void 0&&(r=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(r,o.value.length);else if(r=(s=o.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var h=o.textContent.length,g=Math.min(u.start,h);u=u.end===void 0?g:Math.min(u.end,h),!r.extend&&g>u&&(h=u,u=g,g=h),h=Dp(o,g);var x=Dp(o,u);h&&x&&(r.rangeCount!==1||r.anchorNode!==h.node||r.anchorOffset!==h.offset||r.focusNode!==x.node||r.focusOffset!==x.offset)&&(s=s.createRange(),s.setStart(h.node,h.offset),r.removeAllRanges(),g>u?(r.addRange(s),r.extend(x.node,x.offset)):(s.setEnd(x.node,x.offset),r.addRange(s)))}}for(s=[],r=o;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)r=s[o],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var ES=d&&"documentMode"in document&&11>=document.documentMode,Bs=null,Gc=null,Ji=null,Qc=!1;function Vp(r,s,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qc||Bs==null||Bs!==un(u)||(u=Bs,"selectionStart"in u&&Kc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ji&&Xi(Ji,u)||(Ji=u,u=La(Gc,"onSelect"),0<u.length&&(s=new Fc("onSelect","select",null,s,o),r.push({event:s,listeners:u}),s.target=Bs)))}function Pa(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var Fs={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionend:Pa("Transition","TransitionEnd")},Yc={},Up={};d&&(Up=document.createElement("div").style,"AnimationEvent"in window||(delete Fs.animationend.animation,delete Fs.animationiteration.animation,delete Fs.animationstart.animation),"TransitionEvent"in window||delete Fs.transitionend.transition);function Ra(r){if(Yc[r])return Yc[r];if(!Fs[r])return r;var s=Fs[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in Up)return Yc[r]=s[o];return r}var zp=Ra("animationend"),$p=Ra("animationiteration"),Wp=Ra("animationstart"),Hp=Ra("transitionend"),qp=new Map,Kp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ur(r,s){qp.set(r,s),l(s,[r])}for(var Xc=0;Xc<Kp.length;Xc++){var Jc=Kp[Xc],_S=Jc.toLowerCase(),TS=Jc[0].toUpperCase()+Jc.slice(1);ur(_S,"on"+TS)}ur(zp,"onAnimationEnd"),ur($p,"onAnimationIteration"),ur(Wp,"onAnimationStart"),ur("dblclick","onDoubleClick"),ur("focusin","onFocus"),ur("focusout","onBlur"),ur(Hp,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zi="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(" "),CS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zi));function Gp(r,s,o){var u=r.type||"unknown-event";r.currentTarget=o,_1(u,s,void 0,r),r.currentTarget=null}function Qp(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var u=r[o],h=u.event;u=u.listeners;e:{var g=void 0;if(s)for(var x=u.length-1;0<=x;x--){var _=u[x],N=_.instance,V=_.currentTarget;if(_=_.listener,N!==g&&h.isPropagationStopped())break e;Gp(h,_,V),g=N}else for(x=0;x<u.length;x++){if(_=u[x],N=_.instance,V=_.currentTarget,_=_.listener,N!==g&&h.isPropagationStopped())break e;Gp(h,_,V),g=N}}}if(ga)throw r=jc,ga=!1,jc=null,r}function ze(r,s){var o=s[ou];o===void 0&&(o=s[ou]=new Set);var u=r+"__bubble";o.has(u)||(Yp(s,r,2,!1),o.add(u))}function Zc(r,s,o){var u=0;s&&(u|=4),Yp(o,r,u,s)}var Oa="_reactListening"+Math.random().toString(36).slice(2);function eo(r){if(!r[Oa]){r[Oa]=!0,i.forEach(function(o){o!=="selectionchange"&&(CS.has(o)||Zc(o,!1,r),Zc(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Oa]||(s[Oa]=!0,Zc("selectionchange",!1,s))}}function Yp(r,s,o,u){switch(xp(s)){case 1:var h=U1;break;case 4:h=z1;break;default:h=Ic}o=h.bind(null,s,o,r),h=void 0,!Nc||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),u?h!==void 0?r.addEventListener(s,o,{capture:!0,passive:h}):r.addEventListener(s,o,!0):h!==void 0?r.addEventListener(s,o,{passive:h}):r.addEventListener(s,o,!1)}function eu(r,s,o,u,h){var g=u;if((s&1)===0&&(s&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var _=u.stateNode.containerInfo;if(_===h||_.nodeType===8&&_.parentNode===h)break;if(x===4)for(x=u.return;x!==null;){var N=x.tag;if((N===3||N===4)&&(N=x.stateNode.containerInfo,N===h||N.nodeType===8&&N.parentNode===h))return;x=x.return}for(;_!==null;){if(x=qr(_),x===null)return;if(N=x.tag,N===5||N===6){u=g=x;continue e}_=_.parentNode}}u=u.return}tp(function(){var V=g,H=_c(o),q=[];e:{var W=qp.get(r);if(W!==void 0){var Z=Fc,re=r;switch(r){case"keypress":if(Ca(o)===0)break e;case"keydown":case"keyup":Z=rS;break;case"focusin":re="focus",Z=zc;break;case"focusout":re="blur",Z=zc;break;case"beforeblur":case"afterblur":Z=zc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Sp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=H1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=oS;break;case zp:case $p:case Wp:Z=G1;break;case Hp:Z=lS;break;case"scroll":Z=$1;break;case"wheel":Z=uS;break;case"copy":case"cut":case"paste":Z=Y1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Ep}var ae=(s&4)!==0,Ze=!ae&&r==="scroll",I=ae?W!==null?W+"Capture":null:W;ae=[];for(var O=V,B;O!==null;){B=O;var G=B.stateNode;if(B.tag===5&&G!==null&&(B=G,I!==null&&(G=Ii(O,I),G!=null&&ae.push(to(O,G,B)))),Ze)break;O=O.return}0<ae.length&&(W=new Z(W,re,null,o,H),q.push({event:W,listeners:ae}))}}if((s&7)===0){e:{if(W=r==="mouseover"||r==="pointerover",Z=r==="mouseout"||r==="pointerout",W&&o!==Ec&&(re=o.relatedTarget||o.fromElement)&&(qr(re)||re[Bn]))break e;if((Z||W)&&(W=H.window===H?H:(W=H.ownerDocument)?W.defaultView||W.parentWindow:window,Z?(re=o.relatedTarget||o.toElement,Z=V,re=re?qr(re):null,re!==null&&(Ze=Hr(re),re!==Ze||re.tag!==5&&re.tag!==6)&&(re=null)):(Z=null,re=V),Z!==re)){if(ae=Sp,G="onMouseLeave",I="onMouseEnter",O="mouse",(r==="pointerout"||r==="pointerover")&&(ae=Ep,G="onPointerLeave",I="onPointerEnter",O="pointer"),Ze=Z==null?W:zs(Z),B=re==null?W:zs(re),W=new ae(G,O+"leave",Z,o,H),W.target=Ze,W.relatedTarget=B,G=null,qr(H)===V&&(ae=new ae(I,O+"enter",re,o,H),ae.target=B,ae.relatedTarget=Ze,G=ae),Ze=G,Z&&re)t:{for(ae=Z,I=re,O=0,B=ae;B;B=Vs(B))O++;for(B=0,G=I;G;G=Vs(G))B++;for(;0<O-B;)ae=Vs(ae),O--;for(;0<B-O;)I=Vs(I),B--;for(;O--;){if(ae===I||I!==null&&ae===I.alternate)break t;ae=Vs(ae),I=Vs(I)}ae=null}else ae=null;Z!==null&&Xp(q,W,Z,ae,!1),re!==null&&Ze!==null&&Xp(q,Ze,re,ae,!0)}}e:{if(W=V?zs(V):window,Z=W.nodeName&&W.nodeName.toLowerCase(),Z==="select"||Z==="input"&&W.type==="file")var le=yS;else if(Ap(W))if(Rp)le=bS;else{le=xS;var de=vS}else(Z=W.nodeName)&&Z.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(le=wS);if(le&&(le=le(r,V))){Pp(q,le,o,H);break e}de&&de(r,W,V),r==="focusout"&&(de=W._wrapperState)&&de.controlled&&W.type==="number"&&fn(W,"number",W.value)}switch(de=V?zs(V):window,r){case"focusin":(Ap(de)||de.contentEditable==="true")&&(Bs=de,Gc=V,Ji=null);break;case"focusout":Ji=Gc=Bs=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,Vp(q,o,H);break;case"selectionchange":if(ES)break;case"keydown":case"keyup":Vp(q,o,H)}var fe;if(Wc)e:{switch(r){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Ds?Np(r,o)&&(xe="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(xe="onCompositionStart");xe&&(_p&&o.locale!=="ko"&&(Ds||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Ds&&(fe=wp()):(cr=H,Bc="value"in cr?cr.value:cr.textContent,Ds=!0)),de=La(V,xe),0<de.length&&(xe=new kp(xe,r,null,o,H),q.push({event:xe,listeners:de}),fe?xe.data=fe:(fe=jp(o),fe!==null&&(xe.data=fe)))),(fe=fS?hS(r,o):pS(r,o))&&(V=La(V,"onBeforeInput"),0<V.length&&(H=new kp("onBeforeInput","beforeinput",null,o,H),q.push({event:H,listeners:V}),H.data=fe))}Qp(q,s)})}function to(r,s,o){return{instance:r,listener:s,currentTarget:o}}function La(r,s){for(var o=s+"Capture",u=[];r!==null;){var h=r,g=h.stateNode;h.tag===5&&g!==null&&(h=g,g=Ii(r,o),g!=null&&u.unshift(to(r,g,h)),g=Ii(r,s),g!=null&&u.push(to(r,g,h))),r=r.return}return u}function Vs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Xp(r,s,o,u,h){for(var g=s._reactName,x=[];o!==null&&o!==u;){var _=o,N=_.alternate,V=_.stateNode;if(N!==null&&N===u)break;_.tag===5&&V!==null&&(_=V,h?(N=Ii(o,g),N!=null&&x.unshift(to(o,N,_))):h||(N=Ii(o,g),N!=null&&x.push(to(o,N,_)))),o=o.return}x.length!==0&&r.push({event:s,listeners:x})}var NS=/\r\n?/g,jS=/\u0000|\uFFFD/g;function Jp(r){return(typeof r=="string"?r:""+r).replace(NS,` 38`).replace(jS,"")}function Ma(r,s,o){if(s=Jp(s),Jp(r)!==s&&o)throw Error(n(425))}function Ia(){}var tu=null,nu=null;function ru(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var su=typeof setTimeout=="function"?setTimeout:void 0,AS=typeof clearTimeout=="function"?clearTimeout:void 0,Zp=typeof Promise=="function"?Promise:void 0,PS=typeof queueMicrotask=="function"?queueMicrotask:typeof Zp<"u"?function(r){return Zp.resolve(null).then(r).catch(RS)}:su;function RS(r){setTimeout(function(){throw r})}function iu(r,s){var o=s,u=0;do{var h=o.nextSibling;if(r.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"){if(u===0){r.removeChild(h),Hi(s);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=h}while(o);Hi(s)}function dr(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function em(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return r;s--}else o==="/$"&&s++}r=r.previousSibling}return null}var Us=Math.random().toString(36).slice(2),Tn="__reactFiber$"+Us,no="__reactProps$"+Us,Bn="__reactContainer$"+Us,ou="__reactEvents$"+Us,OS="__reactListeners$"+Us,LS="__reactHandles$"+Us;function qr(r){var s=r[Tn];if(s)return s;for(var o=r.parentNode;o;){if(s=o[Bn]||o[Tn]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=em(r);r!==null;){if(o=r[Tn])return o;r=em(r)}return s}r=o,o=r.parentNode}return null}function ro(r){return r=r[Tn]||r[Bn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function zs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Da(r){return r[no]||null}var au=[],$s=-1;function fr(r){return{current:r}}function $e(r){0>$s||(r.current=au[$s],au[$s]=null,$s--)}function Ve(r,s){$s++,au[$s]=r.current,r.current=s}var hr={},bt=fr(hr),Ot=fr(!1),Kr=hr;function Ws(r,s){var o=r.type.contextTypes;if(!o)return hr;var u=r.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===s)return u.__reactInternalMemoizedMaskedChildContext;var h={},g;for(g in o)h[g]=s[g];return u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=h),h}function Lt(r){return r=r.childContextTypes,r!=null}function Ba(){$e(Ot),$e(bt)}function tm(r,s,o){if(bt.current!==hr)throw Error(n(168));Ve(bt,s),Ve(Ot,o)}function nm(r,s,o){var u=r.stateNode;if(s=s.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var h in u)if(!(h in s))throw Error(n(108,be(r)||"Unknown",h));return U({},o,u)}function Fa(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||hr,Kr=bt.current,Ve(bt,r),Ve(Ot,Ot.current),!0}function rm(r,s,o){var u=r.stateNode;if(!u)throw Error(n(169));o?(r=nm(r,s,Kr),u.__reactInternalMemoizedMergedChildContext=r,$e(Ot),$e(bt),Ve(bt,r)):$e(Ot),Ve(Ot,o)}var Fn=null,Va=!1,lu=!1;function sm(r){Fn===null?Fn=[r]:Fn.push(r)}function MS(r){Va=!0,sm(r)}function pr(){if(!lu&&Fn!==null){lu=!0;var r=0,s=Fe;try{var o=Fn;for(Fe=1;r<o.length;r++){var u=o[r];do u=u(!0);while(u!==null)}Fn=null,Va=!1}catch(h){throw Fn!==null&&(Fn=Fn.slice(r+1)),op(Ac,pr),h}finally{Fe=s,lu=!1}}return null}var Hs=[],qs=0,Ua=null,za=0,Xt=[],Jt=0,Gr=null,Vn=1,Un="";function Qr(r,s){Hs[qs++]=za,Hs[qs++]=Ua,Ua=r,za=s}function im(r,s,o){Xt[Jt++]=Vn,Xt[Jt++]=Un,Xt[Jt++]=Gr,Gr=r;var u=Vn;r=Un;var h=32-hn(u)-1;u&=~(1<<h),o+=1;var g=32-hn(s)+h;if(30<g){var x=h-h%5;g=(u&(1<<x)-1).toString(32),u>>=x,h-=x,Vn=1<<32-hn(s)+h|o<<h|u,Un=g+r}else Vn=1<<g|o<<h|u,Un=r}function cu(r){r.return!==null&&(Qr(r,1),im(r,1,0))}function uu(r){for(;r===Ua;)Ua=Hs[--qs],Hs[qs]=null,za=Hs[--qs],Hs[qs]=null;for(;r===Gr;)Gr=Xt[--Jt],Xt[Jt]=null,Un=Xt[--Jt],Xt[Jt]=null,Vn=Xt[--Jt],Xt[Jt]=null}var $t=null,Wt=null,He=!1,mn=null;function om(r,s){var o=nn(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=r,s=r.deletions,s===null?(r.deletions=[o],r.flags|=16):s.push(o)}function am(r,s){switch(r.tag){case 5:var o=r.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,$t=r,Wt=dr(s.firstChild),!0):!1;
vendor: 4,966 bytes, line 38
38case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,$t=r,Wt=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Gr!==null?{id:Vn,overflow:Un}:null,r.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=nn(18,null,null,0),o.stateNode=s,o.return=r,r.child=o,$t=r,Wt=null,!0):!1;default:return!1}}function du(r){return(r.mode&1)!==0&&(r.flags&128)===0}function fu(r){if(He){var s=Wt;if(s){var o=s;if(!am(r,s)){if(du(r))throw Error(n(418));s=dr(o.nextSibling);var u=$t;s&&am(r,s)?om(u,o):(r.flags=r.flags&-4097|2,He=!1,$t=r)}}else{if(du(r))throw Error(n(418));r.flags=r.flags&-4097|2,He=!1,$t=r}}}function lm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;$t=r}function $a(r){if(r!==$t)return!1;if(!He)return lm(r),He=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!ru(r.type,r.memoizedProps)),s&&(s=Wt)){if(du(r))throw cm(),Error(n(418));for(;s;)om(r,s),s=dr(s.nextSibling)}if(lm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"){if(s===0){Wt=dr(r.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}r=r.nextSibling}Wt=null}}else Wt=$t?dr(r.stateNode.nextSibling):null;return!0}function cm(){for(var r=Wt;r;)r=dr(r.nextSibling)}function Ks(){Wt=$t=null,He=!1}function hu(r){mn===null?mn=[r]:mn.push(r)}var IS=R.ReactCurrentBatchConfig;function so(r,s,o){if(r=o.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(n(309));var u=o.stateNode}if(!u)throw Error(n(147,r));var h=u,g=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===g?s.ref:(s=function(x){var _=h.refs;x===null?delete _[g]:_[g]=x},s._stringRef=g,s)}if(typeof r!="string")throw Error(n(284));if(!o._owner)throw Error(n(290,r))}return r}function Wa(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function um(r){var s=r._init;return s(r._payload)}function dm(r){function s(I,O){if(r){var B=I.deletions;B===null?(I.deletions=[O],I.flags|=16):B.push(O)}}function o(I,O){if(!r)return null;for(;O!==null;)s(I,O),O=O.sibling;return null}function u(I,O){for(I=new Map;O!==null;)O.key!==null?I.set(O.key,O):I.set(O.index,O),O=O.sibling;return I}function h(I,O){return I=Sr(I,O),I.index=0,I.sibling=null,I}function g(I,O,B){return I.index=B,r?(B=I.alternate,B!==null?(B=B.index,B<O?(I.flags|=2,O):B):(I.flags|=2,O)):(I.flags|=1048576,O)}function x(I){return r&&I.alternate===null&&(I.flags|=2),I}function _(I,O,B,G){return O===null||O.tag!==6?(O=sd(B,I.mode,G),O.return=I,O):(O=h(O,B),O.return=I,O)}function N(I,O,B,G){var le=B.type;return le===J?H(I,O,B.props.children,G,B.key):O!==null&&(O.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===he&&um(le)===O.type)?(G=h(O,B.props),G.ref=so(I,O,B),G.return=I,G):(G=pl(B.type,B.key,B.props,null,I.mode,G),G.ref=so(I,O,B),G.return=I,G)}function V(I,O,B,G){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=id(B,I.mode,G),O.return=I,O):(O=h(O,B.children||[]),O.return=I,O)}function H(I,O,B,G,le){return O===null||O.tag!==7?(O=rs(B,I.mode,G,le),O.return=I,O):(O=h(O,B),O.return=I,O)}function q(I,O,B){if(typeof O=="string"&&O!==""||typeof O=="number")return O=sd(""+O,I.mode,B),O.return=I,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case D:return B=pl(O.type,O.key,O.props,null,I.mode,B),B.ref=so(I,null,O),B.return=I,B;case z:return O=id(O,I.mode,B),O.return=I,O;case he:var G=O._init;return q(I,G(O._payload),B)}if(rr(O)||ie(O))return O=rs(O,I.mode,B,null),O.return=I,O;Wa(I,O)}return null}function W(I,O,B,G){var le=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return le!==null?null:_(I,O,""+B,G);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case D:return B.key===le?N(I,O,B,G):null;case z:return B.key===le?V(I,O,B,G):null;case he:return le=B._init,W(I,O,le(B._payload),G)}if(rr(B)||ie(B))return le!==null?null:H(I,O,B,G,null);Wa(I,B)}return null}function Z(I,O,B,G,le){if(typeof G=="string"&&G!==""||typeof G=="number")return I=I.get(B)||null,_(O,I,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case D:return I=I.get(G.key===null?B:G.key)||null,N(O,I,G,le);case z:return I=I.get(G.key===null?B:G.key)||null,V(O,I,G,le);case he:var de=G._init;return Z(I,O,B,de(G._payload),le)}if(rr(G)||ie(G))return I=I.get(B)||null,H(O,I,G,le,null);Wa(O,G)}return null}function re(I,O,B,G){for(var le=null,de=null,fe=O,xe=O=0,dt=null;fe!==null&&xe<B.length;xe++){fe.index>xe?(dt=fe,fe=null):dt=fe.sibling;var Le=W(I,fe,B[xe],G);if(Le===null){fe===null&&(fe=dt);break}r&&fe&&Le.alternate===null&&s(I,fe),O=g(Le,O,xe),de===null?le=Le:de.sibling=Le,de=Le,fe=dt}if(xe===B.length)return o(I,fe),He&&Qr(I,xe),le;if(fe===null){for(;
vendor: 77,806 bytes, lines 38-40
38xe<B.length;xe++)fe=q(I,B[xe],G),fe!==null&&(O=g(fe,O,xe),de===null?le=fe:de.sibling=fe,de=fe);return He&&Qr(I,xe),le}for(fe=u(I,fe);xe<B.length;xe++)dt=Z(fe,I,xe,B[xe],G),dt!==null&&(r&&dt.alternate!==null&&fe.delete(dt.key===null?xe:dt.key),O=g(dt,O,xe),de===null?le=dt:de.sibling=dt,de=dt);return r&&fe.forEach(function(kr){return s(I,kr)}),He&&Qr(I,xe),le}function ae(I,O,B,G){var le=ie(B);if(typeof le!="function")throw Error(n(150));if(B=le.call(B),B==null)throw Error(n(151));for(var de=le=null,fe=O,xe=O=0,dt=null,Le=B.next();fe!==null&&!Le.done;xe++,Le=B.next()){fe.index>xe?(dt=fe,fe=null):dt=fe.sibling;var kr=W(I,fe,Le.value,G);if(kr===null){fe===null&&(fe=dt);break}r&&fe&&kr.alternate===null&&s(I,fe),O=g(kr,O,xe),de===null?le=kr:de.sibling=kr,de=kr,fe=dt}if(Le.done)return o(I,fe),He&&Qr(I,xe),le;if(fe===null){for(;!Le.done;xe++,Le=B.next())Le=q(I,Le.value,G),Le!==null&&(O=g(Le,O,xe),de===null?le=Le:de.sibling=Le,de=Le);return He&&Qr(I,xe),le}for(fe=u(I,fe);!Le.done;xe++,Le=B.next())Le=Z(fe,I,xe,Le.value,G),Le!==null&&(r&&Le.alternate!==null&&fe.delete(Le.key===null?xe:Le.key),O=g(Le,O,xe),de===null?le=Le:de.sibling=Le,de=Le);return r&&fe.forEach(function(mk){return s(I,mk)}),He&&Qr(I,xe),le}function Ze(I,O,B,G){if(typeof B=="object"&&B!==null&&B.type===J&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case D:e:{for(var le=B.key,de=O;de!==null;){if(de.key===le){if(le=B.type,le===J){if(de.tag===7){o(I,de.sibling),O=h(de,B.props.children),O.return=I,I=O;break e}}else if(de.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===he&&um(le)===de.type){o(I,de.sibling),O=h(de,B.props),O.ref=so(I,de,B),O.return=I,I=O;break e}o(I,de);break}else s(I,de);de=de.sibling}B.type===J?(O=rs(B.props.children,I.mode,G,B.key),O.return=I,I=O):(G=pl(B.type,B.key,B.props,null,I.mode,G),G.ref=so(I,O,B),G.return=I,I=G)}return x(I);case z:e:{for(de=B.key;O!==null;){if(O.key===de)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){o(I,O.sibling),O=h(O,B.children||[]),O.return=I,I=O;break e}else{o(I,O);break}else s(I,O);O=O.sibling}O=id(B,I.mode,G),O.return=I,I=O}return x(I);case he:return de=B._init,Ze(I,O,de(B._payload),G)}if(rr(B))return re(I,O,B,G);if(ie(B))return ae(I,O,B,G);Wa(I,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,O!==null&&O.tag===6?(o(I,O.sibling),O=h(O,B),O.return=I,I=O):(o(I,O),O=sd(B,I.mode,G),O.return=I,I=O),x(I)):o(I,O)}return Ze}var Gs=dm(!0),fm=dm(!1),Ha=fr(null),qa=null,Qs=null,pu=null;function mu(){pu=Qs=qa=null}function gu(r){var s=Ha.current;$e(Ha),r._currentValue=s}function yu(r,s,o){for(;r!==null;){var u=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),r===o)break;r=r.return}}function Ys(r,s){qa=r,pu=Qs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(Mt=!0),r.firstContext=null)}function Zt(r){var s=r._currentValue;if(pu!==r)if(r={context:r,memoizedValue:s,next:null},Qs===null){if(qa===null)throw Error(n(308));Qs=r,qa.dependencies={lanes:0,firstContext:r}}else Qs=Qs.next=r;return s}var Yr=null;function vu(r){Yr===null?Yr=[r]:Yr.push(r)}function hm(r,s,o,u){var h=s.interleaved;return h===null?(o.next=o,vu(s)):(o.next=h.next,h.next=o),s.interleaved=o,zn(r,u)}function zn(r,s){r.lanes|=s;var o=r.alternate;for(o!==null&&(o.lanes|=s),o=r,r=r.return;r!==null;)r.childLanes|=s,o=r.alternate,o!==null&&(o.childLanes|=s),o=r,r=r.return;return o.tag===3?o.stateNode:null}var mr=!1;function xu(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pm(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function $n(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function gr(r,s,o){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(Re&2)!==0){var h=u.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),u.pending=s,zn(r,o)}return h=u.interleaved,h===null?(s.next=s,vu(u)):(s.next=h.next,h.next=s),u.interleaved=s,zn(r,o)}function Ka(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var u=s.lanes;u&=r.pendingLanes,o|=u,s.lanes=o,Oc(r,o)}}function mm(r,s){var o=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var h=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};g===null?h=g=x:g=g.next=x,o=o.next}while(o!==null);g===null?h=g=s:g=g.next=s}else h=g=s;o={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:u.shared,effects:u.effects},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}function Ga(r,s,o,u){var h=r.updateQueue;mr=!1;var g=h.firstBaseUpdate,x=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var N=_,V=N.next;N.next=null,x===null?g=V:x.next=V,x=N;var H=r.alternate;H!==null&&(H=H.updateQueue,_=H.lastBaseUpdate,_!==x&&(_===null?H.firstBaseUpdate=V:_.next=V,H.lastBaseUpdate=N))}if(g!==null){var q=h.baseState;x=0,H=V=N=null,_=g;do{var W=_.lane,Z=_.eventTime;if((u&W)===W){H!==null&&(H=H.next={eventTime:Z,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var re=r,ae=_;switch(W=s,Z=o,ae.tag){case 1:if(re=ae.payload,typeof re=="function"){q=re.call(Z,q,W);break e}q=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ae.payload,W=typeof re=="function"?re.call(Z,q,W):re,W==null)break e;q=U({},q,W);break e;case 2:mr=!0}}_.callback!==null&&_.lane!==0&&(r.flags|=64,W=h.effects,W===null?h.effects=[_]:W.push(_))}else Z={eventTime:Z,lane:W,tag:_.tag,payload:_.payload,callback:_.callback,next:null},H===null?(V=H=Z,N=q):H=H.next=Z,x|=W;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;W=_,_=W.next,W.next=null,h.lastBaseUpdate=W,h.shared.pending=null}}while(!0);if(H===null&&(N=q),h.baseState=N,h.firstBaseUpdate=V,h.lastBaseUpdate=H,s=h.shared.interleaved,s!==null){h=s;do x|=h.lane,h=h.next;while(h!==s)}else g===null&&(h.shared.lanes=0);Zr|=x,r.lanes=x,r.memoizedState=q}}function gm(r,s,o){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var u=r[s],h=u.callback;if(h!==null){if(u.callback=null,u=o,typeof h!="function")throw Error(n(191,h));h.call(u)}}}var io={},Cn=fr(io),oo=fr(io),ao=fr(io);function Xr(r){if(r===io)throw Error(n(174));return r}function wu(r,s){switch(Ve(ao,s),Ve(oo,r),Ve(Cn,io),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:bc(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=bc(s,r)}$e(Cn),Ve(Cn,s)}function Xs(){$e(Cn),$e(oo),$e(ao)}function ym(r){Xr(ao.current);var s=Xr(Cn.current),o=bc(s,r.type);s!==o&&(Ve(oo,r),Ve(Cn,o))}function bu(r){oo.current===r&&($e(Cn),$e(oo))}var qe=fr(0);function Qa(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Su=[];function ku(){for(var r=0;r<Su.length;r++)Su[r]._workInProgressVersionPrimary=null;Su.length=0}var Ya=R.ReactCurrentDispatcher,Eu=R.ReactCurrentBatchConfig,Jr=0,Ke=null,it=null,ct=null,Xa=!1,lo=!1,co=0,DS=0;function St(){throw Error(n(321))}function _u(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!pn(r[o],s[o]))return!1;return!0}function Tu(r,s,o,u,h,g){if(Jr=g,Ke=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ya.current=r===null||r.memoizedState===null?US:zS,r=o(u,h),lo){g=0;do{if(lo=!1,co=0,25<=g)throw Error(n(301));g+=1,ct=it=null,s.updateQueue=null,Ya.current=$S,r=o(u,h)}while(lo)}if(Ya.current=el,s=it!==null&&it.next!==null,Jr=0,ct=it=Ke=null,Xa=!1,s)throw Error(n(300));return r}function Cu(){var r=co!==0;return co=0,r}function Nn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ke.memoizedState=ct=r:ct=ct.next=r,ct}function en(){if(it===null){var r=Ke.alternate;r=r!==null?r.memoizedState:null}else r=it.next;var s=ct===null?Ke.memoizedState:ct.next;if(s!==null)ct=s,it=r;else{if(r===null)throw Error(n(310));it=r,r={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},ct===null?Ke.memoizedState=ct=r:ct=ct.next=r}return ct}function uo(r,s){return typeof s=="function"?s(r):s}function Nu(r){var s=en(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var u=it,h=u.baseQueue,g=o.pending;if(g!==null){if(h!==null){var x=h.next;h.next=g.next,g.next=x}u.baseQueue=h=g,o.pending=null}if(h!==null){g=h.next,u=u.baseState;var _=x=null,N=null,V=g;do{var H=V.lane;if((Jr&H)===H)N!==null&&(N=N.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),u=V.hasEagerState?V.eagerState:r(u,V.action);else{var q={lane:H,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};N===null?(_=N=q,x=u):N=N.next=q,Ke.lanes|=H,Zr|=H}V=V.next}while(V!==null&&V!==g);N===null?x=u:N.next=_,pn(u,s.memoizedState)||(Mt=!0),s.memoizedState=u,s.baseState=x,s.baseQueue=N,o.lastRenderedState=u}if(r=o.interleaved,r!==null){h=r;do g=h.lane,Ke.lanes|=g,Zr|=g,h=h.next;while(h!==r)}else h===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function ju(r){var s=en(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var u=o.dispatch,h=o.pending,g=s.memoizedState;if(h!==null){o.pending=null;var x=h=h.next;do g=r(g,x.action),x=x.next;while(x!==h);pn(g,s.memoizedState)||(Mt=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),o.lastRenderedState=g}return[g,u]}function vm(){}function xm(r,s){var o=Ke,u=en(),h=s(),g=!pn(u.memoizedState,h);if(g&&(u.memoizedState=h,Mt=!0),u=u.queue,Au(Sm.bind(null,o,u,r),[r]),u.getSnapshot!==s||g||ct!==null&&ct.memoizedState.tag&1){if(o.flags|=2048,fo(9,bm.bind(null,o,u,h,s),void 0,null),ut===null)throw Error(n(349));(Jr&30)!==0||wm(o,s,h)}return h}function wm(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=Ke.updateQueue,s===null?(s={lastEffect:null,stores:null},Ke.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function bm(r,s,o,u){s.value=o,s.getSnapshot=u,km(s)&&Em(r)}function Sm(r,s,o){return o(function(){km(s)&&Em(r)})}function km(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!pn(r,o)}catch{return!0}}function Em(r){var s=zn(r,1);s!==null&&xn(s,r,1,-1)}function _m(r){var s=Nn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:r},s.queue=r,r=r.dispatch=VS.bind(null,Ke,r),[s.memoizedState,r]}function fo(r,s,o,u){return r={tag:r,create:s,destroy:o,deps:u,next:null},s=Ke.updateQueue,s===null?(s={lastEffect:null,stores:null},Ke.updateQueue=s,s.lastEffect=r.next=r):(o=s.lastEffect,o===null?s.lastEffect=r.next=r:(u=o.next,o.next=r,r.next=u,s.lastEffect=r)),r}function Tm(){return en().memoizedState}function Ja(r,s,o,u){var h=Nn();Ke.flags|=r,h.memoizedState=fo(1|s,o,void 0,u===void 0?null:u)}function Za(r,s,o,u){var h=en();u=u===void 0?null:u;var g=void 0;if(it!==null){var x=it.memoizedState;if(g=x.destroy,u!==null&&_u(u,x.deps)){h.memoizedState=fo(s,o,g,u);return}}Ke.flags|=r,h.memoizedState=fo(1|s,o,g,u)}function Cm(r,s){return Ja(8390656,8,r,s)}function Au(r,s){return Za(2048,8,r,s)}function Nm(r,s){return Za(4,2,r,s)}function jm(r,s){return Za(4,4,r,s)}function Am(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Pm(r,s,o){return o=o!=null?o.concat([r]):null,Za(4,4,Am.bind(null,s,r),o)}function Pu(){}function Rm(r,s){var o=en();s=s===void 0?null:s;var u=o.memoizedState;return u!==null&&s!==null&&_u(s,u[1])?u[0]:(o.memoizedState=[r,s],r)}function Om(r,s){var o=en();s=s===void 0?null:s;var u=o.memoizedState;return u!==null&&s!==null&&_u(s,u[1])?u[0]:(r=r(),o.memoizedState=[r,s],r)}function Lm(r,s,o){return(Jr&21)===0?(r.baseState&&(r.baseState=!1,Mt=!0),r.memoizedState=o):(pn(o,s)||(o=up(),Ke.lanes|=o,Zr|=o,r.baseState=!0),s)}function BS(r,s){var o=Fe;Fe=o!==0&&4>o?o:4,r(!0);var u=Eu.transition;Eu.transition={};try{r(!1),s()}finally{Fe=o,Eu.transition=u}}function Mm(){return en().memoizedState}function FS(r,s,o){var u=wr(r);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},Im(r))Dm(s,o);else if(o=hm(r,s,o,u),o!==null){var h=Pt();xn(o,r,u,h),Bm(o,s,u)}}function VS(r,s,o){var u=wr(r),h={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(Im(r))Dm(s,h);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var x=s.lastRenderedState,_=g(x,o);if(h.hasEagerState=!0,h.eagerState=_,pn(_,x)){var N=s.interleaved;N===null?(h.next=h,vu(s)):(h.next=N.next,N.next=h),s.interleaved=h;return}}catch{}finally{}o=hm(r,s,h,u),o!==null&&(h=Pt(),xn(o,r,u,h),Bm(o,s,u))}}function Im(r){var s=r.alternate;return r===Ke||s!==null&&s===Ke}function Dm(r,s){lo=Xa=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function Bm(r,s,o){if((o&4194240)!==0){var u=s.lanes;u&=r.pendingLanes,o|=u,s.lanes=o,Oc(r,o)}}var el={readContext:Zt,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},US={readContext:Zt,useCallback:function(r,s){return Nn().memoizedState=[r,s===void 0?null:s],r},useContext:Zt,useEffect:Cm,useImperativeHandle:function(r,s,o){return o=o!=null?o.concat([r]):null,Ja(4194308,4,Am.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Ja(4194308,4,r,s)},useInsertionEffect:function(r,s){return Ja(4,2,r,s)},useMemo:function(r,s){var o=Nn();return s=s===void 0?null:s,r=r(),o.memoizedState=[r,s],r},useReducer:function(r,s,o){var u=Nn();return s=o!==void 0?o(s):s,u.memoizedState=u.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},u.queue=r,r=r.dispatch=FS.bind(null,Ke,r),[u.memoizedState,r]},useRef:function(r){var s=Nn();return r={current:r},s.memoizedState=r},useState:_m,useDebugValue:Pu,useDeferredValue:function(r){return Nn().memoizedState=r},useTransition:function(){var r=_m(!1),s=r[0];return r=BS.bind(null,r[1]),Nn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,o){var u=Ke,h=Nn();if(He){if(o===void 0)throw Error(n(407));o=o()}else{if(o=s(),ut===null)throw Error(n(349));(Jr&30)!==0||wm(u,s,o)}h.memoizedState=o;var g={value:o,getSnapshot:s};return h.queue=g,Cm(Sm.bind(null,u,g,r),[r]),u.flags|=2048,fo(9,bm.bind(null,u,g,o,s),void 0,null),o},useId:function(){var r=Nn(),s=ut.identifierPrefix;if(He){var o=Un,u=Vn;o=(u&~(1<<32-hn(u)-1)).toString(32)+o,s=":"+s+"R"+o,o=co++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=DS++,s=":"+s+"r"+o.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},zS={readContext:Zt,useCallback:Rm,useContext:Zt,useEffect:Au,useImperativeHandle:Pm,useInsertionEffect:Nm,useLayoutEffect:jm,useMemo:Om,useReducer:Nu,useRef:Tm,useState:function(){return Nu(uo)},useDebugValue:Pu,useDeferredValue:function(r){var s=en();return Lm(s,it.memoizedState,r)},useTransition:function(){var r=Nu(uo)[0],s=en().memoizedState;return[r,s]},useMutableSource:vm,useSyncExternalStore:xm,useId:Mm,unstable_isNewReconciler:!1},$S={readContext:Zt,useCallback:Rm,useContext:Zt,useEffect:Au,useImperativeHandle:Pm,useInsertionEffect:Nm,useLayoutEffect:jm,useMemo:Om,useReducer:ju,useRef:Tm,useState:function(){return ju(uo)},useDebugValue:Pu,useDeferredValue:function(r){var s=en();return it===null?s.memoizedState=r:Lm(s,it.memoizedState,r)},useTransition:function(){var r=ju(uo)[0],s=en().memoizedState;return[r,s]},useMutableSource:vm,useSyncExternalStore:xm,useId:Mm,unstable_isNewReconciler:!1};function gn(r,s){if(r&&r.defaultProps){s=U({},s),r=r.defaultProps;for(var o in r)s[o]===void 0&&(s[o]=r[o]);return s}return s}function Ru(r,s,o,u){s=r.memoizedState,o=o(u,s),o=o==null?s:U({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var tl={isMounted:function(r){return(r=r._reactInternals)?Hr(r)===r:!1},enqueueSetState:function(r,s,o){r=r._reactInternals;var u=Pt(),h=wr(r),g=$n(u,h);g.payload=s,o!=null&&(g.callback=o),s=gr(r,g,h),s!==null&&(xn(s,r,h,u),Ka(s,r,h))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var u=Pt(),h=wr(r),g=$n(u,h);g.tag=1,g.payload=s,o!=null&&(g.callback=o),s=gr(r,g,h),s!==null&&(xn(s,r,h,u),Ka(s,r,h))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=Pt(),u=wr(r),h=$n(o,u);h.tag=2,s!=null&&(h.callback=s),s=gr(r,h,u),s!==null&&(xn(s,r,u,o),Ka(s,r,u))}};function Fm(r,s,o,u,h,g,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,g,x):s.prototype&&s.prototype.isPureReactComponent?!Xi(o,u)||!Xi(h,g):!0}function Vm(r,s,o){var u=!1,h=hr,g=s.contextType;return typeof g=="object"&&g!==null?g=Zt(g):(h=Lt(s)?Kr:bt.current,u=s.contextTypes,g=(u=u!=null)?Ws(r,h):hr),s=new s(o,g),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=tl,r.stateNode=s,s._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=h,r.__reactInternalMemoizedMaskedChildContext=g),s}function Um(r,s,o,u){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,u),s.state!==r&&tl.enqueueReplaceState(s,s.state,null)}function Ou(r,s,o,u){var h=r.stateNode;h.props=o,h.state=r.memoizedState,h.refs={},xu(r);var g=s.contextType;typeof g=="object"&&g!==null?h.context=Zt(g):(g=Lt(s)?Kr:bt.current,h.context=Ws(r,g)),h.state=r.memoizedState,g=s.getDerivedStateFromProps,typeof g=="function"&&(Ru(r,s,g,o),h.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(s=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),s!==h.state&&tl.enqueueReplaceState(h,h.state,null),Ga(r,o,h,u),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308)}function Js(r,s){try{var o="",u=s;do o+=pe(u),u=u.return;while(u);var h=o}catch(g){h=` 39Error generating stack: `+g.message+` 40`+g.stack}return{value:r,source:s,stack:h,digest:null}}function Lu(r,s,o){return{value:r,source:null,stack:o??null,digest:s??null}}function Mu(r,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var WS=typeof WeakMap=="function"?WeakMap:Map;function zm(r,s,o){o=$n(-1,o),o.tag=3,o.payload={element:null};var u=s.value;return o.callback=function(){ll||(ll=!0,Yu=u),Mu(r,s)},o}function $m(r,s,o){o=$n(-1,o),o.tag=3;var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var h=s.value;o.payload=function(){return u(h)},o.callback=function(){Mu(r,s)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(o.callback=function(){Mu(r,s),typeof u!="function"&&(vr===null?vr=new Set([this]):vr.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})}),o}function Wm(r,s,o){var u=r.pingCache;if(u===null){u=r.pingCache=new WS;var h=new Set;u.set(s,h)}else h=u.get(s),h===void 0&&(h=new Set,u.set(s,h));h.has(o)||(h.add(o),r=sk.bind(null,r,s,o),s.then(r,r))}function Hm(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function qm(r,s,o,u,h){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=$n(-1,1),s.tag=2,gr(o,s,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=h,r)}var HS=R.ReactCurrentOwner,Mt=!1;function At(r,s,o,u){s.child=r===null?fm(s,null,o,u):Gs(s,r.child,o,u)}function Km(r,s,o,u,h){o=o.render;var g=s.ref;return Ys(s,h),u=Tu(r,s,o,u,g,h),o=Cu(),r!==null&&!Mt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,Wn(r,s,h)):(He&&o&&cu(s),s.flags|=1,At(r,s,u,h),s.child)}function Gm(r,s,o,u,h){if(r===null){var g=o.type;return typeof g=="function"&&!rd(g)&&g.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=g,Qm(r,s,g,u,h)):(r=pl(o.type,null,u,s,s.mode,h),r.ref=s.ref,r.return=s,s.child=r)}if(g=r.child,(r.lanes&h)===0){var x=g.memoizedProps;if(o=o.compare,o=o!==null?o:Xi,o(x,u)&&r.ref===s.ref)return Wn(r,s,h)}return s.flags|=1,r=Sr(g,u),r.ref=s.ref,r.return=s,s.child=r}function Qm(r,s,o,u,h){if(r!==null){var g=r.memoizedProps;if(Xi(g,u)&&r.ref===s.ref)if(Mt=!1,s.pendingProps=u=g,(r.lanes&h)!==0)(r.flags&131072)!==0&&(Mt=!0);else return s.lanes=r.lanes,Wn(r,s,h)}return Iu(r,s,o,u,h)}function Ym(r,s,o){var u=s.pendingProps,h=u.children,g=r!==null?r.memoizedState:null;if(u.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(ei,Ht),Ht|=o;else{if((o&1073741824)===0)return r=g!==null?g.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Ve(ei,Ht),Ht|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=g!==null?g.baseLanes:o,Ve(ei,Ht),Ht|=u}else g!==null?(u=g.baseLanes|o,s.memoizedState=null):u=o,Ve(ei,Ht),Ht|=u;return At(r,s,h,o),s.child}function Xm(r,s){var o=s.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function Iu(r,s,o,u,h){var g=Lt(o)?Kr:bt.current;return g=Ws(s,g),Ys(s,h),o=Tu(r,s,o,u,g,h),u=Cu(),r!==null&&!Mt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,Wn(r,s,h)):(He&&u&&cu(s),s.flags|=1,At(r,s,o,h),s.child)}function Jm(r,s,o,u,h){if(Lt(o)){var g=!0;Fa(s)}else g=!1;if(Ys(s,h),s.stateNode===null)rl(r,s),Vm(s,o,u),Ou(s,o,u,h),u=!0;else if(r===null){var x=s.stateNode,_=s.memoizedProps;x.props=_;var N=x.context,V=o.contextType;typeof V=="object"&&V!==null?V=Zt(V):(V=Lt(o)?Kr:bt.current,V=Ws(s,V));var H=o.getDerivedStateFromProps,q=typeof H=="function"||typeof x.getSnapshotBeforeUpdate=="function";q||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==u||N!==V)&&Um(s,x,u,V),mr=!1;var W=s.memoizedState;x.state=W,Ga(s,u,x,h),N=s.memoizedState,_!==u||W!==N||Ot.current||mr?(typeof H=="function"&&(Ru(s,o,H,u),N=s.memoizedState),(_=mr||Fm(s,o,_,u,W,N,V))?(q||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=N),x.props=u,x.state=N,x.context=V,u=_):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{x=s.stateNode,pm(r,s),_=s.memoizedProps,V=s.type===s.elementType?_:gn(s.type,_),x.props=V,q=s.pendingProps,W=x.context,N=o.contextType,typeof N=="object"&&N!==null?N=Zt(N):(N=Lt(o)?Kr:bt.current,N=Ws(s,N));var Z=o.getDerivedStateFromProps;(H=typeof Z=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==q||W!==N)&&Um(s,x,u,N),mr=!1,W=s.memoizedState,x.state=W,Ga(s,u,x,h);var re=s.memoizedState;_!==q||W!==re||Ot.current||mr?(typeof Z=="function"&&(Ru(s,o,Z,u),re=s.memoizedState),(V=mr||Fm(s,o,V,u,W,re,N)||!1)?(H||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(u,re,N),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(u,re,N)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=re),x.props=u,x.state=re,x.context=N,u=V):(typeof x.componentDidUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),u=!1)}return Du(r,s,o,u,g,h)}function Du(r,s,o,u,h,g){Xm(r,s);var x=(s.flags&128)!==0;if(!u&&!x)return h&&rm(s,o,!1),Wn(r,s,g);u=s.stateNode,HS.current=s;var _=x&&typeof o.getDerivedStateFromError!="function"?null:u.render();return s.flags|=1,r!==null&&x?(s.child=Gs(s,r.child,null,g),s.child=Gs(s,null,_,g)):At(r,s,_,g),s.memoizedState=u.state,h&&rm(s,o,!0),s.child}function Zm(r){var s=r.stateNode;s.pendingContext?tm(r,s.pendingContext,s.pendingContext!==s.context):s.context&&tm(r,s.context,!1),wu(r,s.containerInfo)}function eg(r,s,o,u,h){return Ks(),hu(h),s.flags|=256,At(r,s,o,u),s.child}var Bu={dehydrated:null,treeContext:null,retryLane:0};function Fu(r){return{baseLanes:r,cachePool:null,transitions:null}}function tg(r,s,o){var u=s.pendingProps,h=qe.current,g=!1,x=(s.flags&128)!==0,_;if((_=x)||(_=r!==null&&r.memoizedState===null?!1:(h&2)!==0),_?(g=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(h|=1),Ve(qe,h&1),r===null)return fu(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(x=u.children,r=u.fallback,g?(u=s.mode,g=s.child,x={mode:"hidden",children:x},(u&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=x):g=ml(x,u,0,null),r=rs(r,u,o,null),g.return=s,r.return=s,g.sibling=r,s.child=g,s.child.memoizedState=Fu(o),s.memoizedState=Bu,r):Vu(s,x));if(h=r.memoizedState,h!==null&&(_=h.dehydrated,_!==null))return qS(r,s,x,u,_,h,o);if(g){g=u.fallback,x=s.mode,h=r.child,_=h.sibling;var N={mode:"hidden",children:u.children};return(x&1)===0&&s.child!==h?(u=s.child,u.childLanes=0,u.pendingProps=N,s.deletions=null):(u=Sr(h,N),u.subtreeFlags=h.subtreeFlags&14680064),_!==null?g=Sr(_,g):(g=rs(g,x,o,null),g.flags|=2),g.return=s,u.return=s,u.sibling=g,s.child=u,u=g,g=s.child,x=r.child.memoizedState,x=x===null?Fu(o):{baseLanes:x.baseLanes|o,cachePool:null,transitions:x.transitions},g.memoizedState=x,g.childLanes=r.childLanes&~o,s.memoizedState=Bu,u}return g=r.child,r=g.sibling,u=Sr(g,{mode:"visible",children:u.children}),(s.mode&1)===0&&(u.lanes=o),u.return=s,u.sibling=null,r!==null&&(o=s.deletions,o===null?(s.deletions=[r],s.flags|=16):o.push(r)),s.child=u,s.memoizedState=null,u}function Vu(r,s){return s=ml({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function nl(r,s,o,u){return u!==null&&hu(u),Gs(s,r.child,null,o),r=Vu(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function qS(r,s,o,u,h,g,x){if(o)return s.flags&256?(s.flags&=-257,u=Lu(Error(n(422))),nl(r,s,x,u)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(g=u.fallback,h=s.mode,u=ml({mode:"visible",children:u.children},h,0,null),g=rs(g,h,x,null),g.flags|=2,u.return=s,g.return=s,u.sibling=g,s.child=u,(s.mode&1)!==0&&Gs(s,r.child,null,x),s.child.memoizedState=Fu(x),s.memoizedState=Bu,g);if((s.mode&1)===0)return nl(r,s,x,null);if(h.data==="$!"){if(u=h.nextSibling&&h.nextSibling.dataset,u)var _=u.dgst;return u=_,g=Error(n(419)),u=Lu(g,u,void 0),nl(r,s,x,u)}if(_=(x&r.childLanes)!==0,Mt||_){if(u=ut,u!==null){switch(x&-x){case 4:h=2;break;case 16:h=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(u.suspendedLanes|x))!==0?0:h,h!==0&&h!==g.retryLane&&(g.retryLane=h,zn(r,h),xn(u,r,h,-1))}return nd(),u=Lu(Error(n(421))),nl(r,s,x,u)}return h.data==="$?"?(s.flags|=128,s.child=r.child,s=ik.bind(null,r),h._reactRetry=s,null):(r=g.treeContext,Wt=dr(h.nextSibling),$t=s,He=!0,mn=null,r!==null&&(Xt[Jt++]=Vn,Xt[Jt++]=Un,Xt[Jt++]=Gr,Vn=r.id,Un=r.overflow,Gr=s),s=Vu(s,u.children),s.flags|=4096,s)}function ng(r,s,o){r.lanes|=s;var u=r.alternate;u!==null&&(u.lanes|=s),yu(r.return,s,o)}function Uu(r,s,o,u,h){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:h}:(g.isBackwards=s,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=o,g.tailMode=h)}function rg(r,s,o){var u=s.pendingProps,h=u.revealOrder,g=u.tail;if(At(r,s,u.children,o),u=qe.current,(u&2)!==0)u=u&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&ng(r,o,s);else if(r.tag===19)ng(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}if(Ve(qe,u),(s.mode&1)===0)s.memoizedState=null;else switch(h){case"forwards":for(o=s.child,h=null;o!==null;)r=o.alternate,r!==null&&Qa(r)===null&&(h=o),o=o.sibling;o=h,o===null?(h=s.child,s.child=null):(h=o.sibling,o.sibling=null),Uu(s,!1,h,o,g);break;case"backwards":for(o=null,h=s.child,s.child=null;h!==null;){if(r=h.alternate,r!==null&&Qa(r)===null){s.child=h;break}r=h.sibling,h.sibling=o,o=h,h=r}Uu(s,!0,o,null,g);break;case"together":Uu(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function rl(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function Wn(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Zr|=s.lanes,(o&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,o=Sr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=Sr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function KS(r,s,o){switch(s.tag){case 3:Zm(s),Ks();break;case 5:ym(s);break;case 1:Lt(s.type)&&Fa(s);break;case 4:wu(s,s.stateNode.containerInfo);break;case 10:var u=s.type._context,h=s.memoizedProps.value;Ve(Ha,u._currentValue),u._currentValue=h;break;case 13:if(u=s.memoizedState,u!==null)return u.dehydrated!==null?(Ve(qe,qe.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?tg(r,s,o):(Ve(qe,qe.current&1),r=Wn(r,s,o),r!==null?r.sibling:null);Ve(qe,qe.current&1);break;case 19:if(u=(o&s.childLanes)!==0,(r.flags&128)!==0){if(u)return rg(r,s,o);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Ve(qe,qe.current),u)break;return null;case 22:case 23:return s.lanes=0,Ym(r,s,o)}return Wn(r,s,o)}var sg,zu,ig,og;sg=function(r,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},zu=function(){},ig=function(r,s,o,u){var h=r.memoizedProps;if(h!==u){r=s.stateNode,Xr(Cn.current);var g=null;switch(o){case"input":h=Qt(r,h),u=Qt(r,u),g=[];break;case"select":h=U({},h,{value:void 0}),u=U({},u,{value:void 0}),g=[];break;case"textarea":h=Dn(r,h),u=Dn(r,u),g=[];break;default:typeof h.onClick!="function"&&typeof u.onClick=="function"&&(r.onclick=Ia)}Sc(o,u);var x;o=null;for(V in h)if(!u.hasOwnProperty(V)&&h.hasOwnProperty(V)&&h[V]!=null)if(V==="style"){var _=h[V];for(x in _)_.hasOwnProperty(x)&&(o||(o={}),o[x]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(a.hasOwnProperty(V)?g||(g=[]):(g=g||[]).push(V,null));for(V in u){var N=u[V];if(_=h!=null?h[V]:void 0,u.hasOwnProperty(V)&&N!==_&&(N!=null||_!=null))if(V==="style")if(_){for(x in _)!_.hasOwnProperty(x)||N&&N.hasOwnProperty(x)||(o||(o={}),o[x]="");for(x in N)N.hasOwnProperty(x)&&_[x]!==N[x]&&(o||(o={}),o[x]=N[x])}else o||(g||(g=[]),g.push(V,o)),o=N;else V==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,_=_?_.__html:void 0,N!=null&&_!==N&&(g=g||[]).push(V,N)):V==="children"?typeof N!="string"&&typeof N!="number"||(g=g||[]).push(V,""+N):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(a.hasOwnProperty(V)?(N!=null&&V==="onScroll"&&ze("scroll",r),g||_===N||(g=[])):(g=g||[]).push(V,N))}o&&(g=g||[]).push("style",o);var V=g;(s.updateQueue=V)&&(s.flags|=4)}},og=function(r,s,o,u){o!==u&&(s.flags|=4)};function ho(r,s){if(!He)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function kt(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,u=0;if(s)for(var h=r.child;h!==null;)o|=h.lanes|h.childLanes,u|=h.subtreeFlags&14680064,u|=h.flags&14680064,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)o|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=u,r.childLanes=o,s}function GS(r,s,o){var u=s.pendingProps;switch(uu(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(s),null;case 1:return Lt(s.type)&&Ba(),kt(s),null;case 3:return u=s.stateNode,Xs(),$e(Ot),$e(bt),ku(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&($a(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,mn!==null&&(Zu(mn),mn=null))),zu(r,s),kt(s),null;case 5:bu(s);var h=Xr(ao.current);if(o=s.type,r!==null&&s.stateNode!=null)ig(r,s,o,u,h),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!u){if(s.stateNode===null)throw Error(n(166));return kt(s),null}if(r=Xr(Cn.current),$a(s)){u=s.stateNode,o=s.type;var g=s.memoizedProps;switch(u[Tn]=s,u[no]=g,r=(s.mode&1)!==0,o){case"dialog":ze("cancel",u),ze("close",u);break;case"iframe":case"object":case"embed":ze("load",u);break;case"video":case"audio":for(h=0;h<Zi.length;h++)ze(Zi[h],u);break;case"source":ze("error",u);break;case"img":case"image":case"link":ze("error",u),ze("load",u);break;case"details":ze("toggle",u);break;case"input":Yt(u,g),ze("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!g.multiple},ze("invalid",u);break;case"textarea":$h(u,g),ze("invalid",u)}Sc(o,g),h=null;for(var x in g)if(g.hasOwnProperty(x)){var _=g[x];x==="children"?typeof _=="string"?u.textContent!==_&&(g.suppressHydrationWarning!==!0&&Ma(u.textContent,_,r),h=["children",_]):typeof _=="number"&&u.textContent!==""+_&&(g.suppressHydrationWarning!==!0&&Ma(u.textContent,_,r),h=["children",""+_]):a.hasOwnProperty(x)&&_!=null&&x==="onScroll"&&ze("scroll",u)}switch(o){case"input":Gt(u),dn(u,g,!0);break;case"textarea":Gt(u),Hh(u);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(u.onclick=Ia)}u=h,s.updateQueue=u,u!==null&&(s.flags|=4)}else{x=h.nodeType===9?h:h.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=qh(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=x.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof u.is=="string"?r=x.createElement(o,{is:u.is}):(r=x.createElement(o),o==="select"&&(x=r,u.multiple?x.multiple=!0:u.size&&(x.size=u.size))):r=x.createElementNS(r,o),r[Tn]=s,r[no]=u,sg(r,s,!1,!1),s.stateNode=r;e:{switch(x=kc(o,u),o){case"dialog":ze("cancel",r),ze("close",r),h=u;break;case"iframe":case"object":case"embed":ze("load",r),h=u;break;case"video":case"audio":for(h=0;h<Zi.length;h++)ze(Zi[h],r);h=u;break;case"source":ze("error",r),h=u;break;case"img":case"image":case"link":ze("error",r),ze("load",r),h=u;break;case"details":ze("toggle",r),h=u;break;case"input":Yt(r,u),h=Qt(r,u),ze("invalid",r);break;case"option":h=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},h=U({},u,{value:void 0}),ze("invalid",r);break;case"textarea":$h(r,u),h=Dn(r,u),ze("invalid",r);break;default:h=u}Sc(o,h),_=h;for(g in _)if(_.hasOwnProperty(g)){var N=_[g];g==="style"?Qh(r,N):g==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,N!=null&&Kh(r,N)):g==="children"?typeof N=="string"?(o!=="textarea"||N!=="")&&Li(r,N):typeof N=="number"&&Li(r,""+N):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(a.hasOwnProperty(g)?N!=null&&g==="onScroll"&&ze("scroll",r):N!=null&&C(r,g,N,x))}switch(o){case"input":Gt(r),dn(r,u,!1);break;case"textarea":Gt(r),Hh(r);break;case"option":u.value!=null&&r.setAttribute("value",""+Te(u.value));break;case"select":r.multiple=!!u.multiple,g=u.value,g!=null?sr(r,!!u.multiple,g,!1):u.defaultValue!=null&&sr(r,!!u.multiple,u.defaultValue,!0);break;default:typeof h.onClick=="function"&&(r.onclick=Ia)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return kt(s),null;case 6:if(r&&s.stateNode!=null)og(r,s,r.memoizedProps,u);else{if(typeof u!="string"&&s.stateNode===null)throw Error(n(166));if(o=Xr(ao.current),Xr(Cn.current),$a(s)){if(u=s.stateNode,o=s.memoizedProps,u[Tn]=s,(g=u.nodeValue!==o)&&(r=$t,r!==null))switch(r.tag){case 3:Ma(u.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Ma(u.nodeValue,o,(r.mode&1)!==0)}g&&(s.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[Tn]=s,s.stateNode=u}return kt(s),null;case 13:if($e(qe),u=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(He&&Wt!==null&&(s.mode&1)!==0&&(s.flags&128)===0)cm(),Ks(),s.flags|=98560,g=!1;else if(g=$a(s),u!==null&&u.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Tn]=s}else Ks(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;kt(s),g=!1}else mn!==null&&(Zu(mn),mn=null),g=!0;if(!g)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(u=u!==null,u!==(r!==null&&r.memoizedState!==null)&&u&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(qe.current&1)!==0?ot===0&&(ot=3):nd())),s.updateQueue!==null&&(s.flags|=4),kt(s),null);case 4:return Xs(),zu(r,s),r===null&&eo(s.stateNode.containerInfo),kt(s),null;case 10:return gu(s.type._context),kt(s),null;case 17:return Lt(s.type)&&Ba(),kt(s),null;case 19:if($e(qe),g=s.memoizedState,g===null)return kt(s),null;if(u=(s.flags&128)!==0,x=g.rendering,x===null)if(u)ho(g,!1);else{if(ot!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(x=Qa(r),x!==null){for(s.flags|=128,ho(g,!1),u=x.updateQueue,u!==null&&(s.updateQueue=u,s.flags|=4),s.subtreeFlags=0,u=o,o=s.child;o!==null;)g=o,r=u,g.flags&=14680066,x=g.alternate,x===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=x.childLanes,g.lanes=x.lanes,g.child=x.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=x.memoizedProps,g.memoizedState=x.memoizedState,g.updateQueue=x.updateQueue,g.type=x.type,r=x.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return Ve(qe,qe.current&1|2),s.child}r=r.sibling}g.tail!==null&&Je()>ti&&(s.flags|=128,u=!0,ho(g,!1),s.lanes=4194304)}else{if(!u)if(r=Qa(x),r!==null){if(s.flags|=128,u=!0,o=r.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),ho(g,!0),g.tail===null&&g.tailMode==="hidden"&&!x.alternate&&!He)return kt(s),null}else 2*Je()-g.renderingStartTime>ti&&o!==1073741824&&(s.flags|=128,u=!0,ho(g,!1),s.lanes=4194304);g.isBackwards?(x.sibling=s.child,s.child=x):(o=g.last,o!==null?o.sibling=x:s.child=x,g.last=x)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=Je(),s.sibling=null,o=qe.current,Ve(qe,u?o&1|2:o&1),s):(kt(s),null);case 22:case 23:return td(),u=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(s.flags|=8192),u&&(s.mode&1)!==0?(Ht&1073741824)!==0&&(kt(s),s.subtreeFlags&6&&(s.flags|=8192)):kt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function QS(r,s){switch(uu(s),s.tag){case 1:return Lt(s.type)&&Ba(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Xs(),$e(Ot),$e(bt),ku(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return bu(s),null;case 13:if($e(qe),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Ks()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return $e(qe),null;case 4:return Xs(),null;case 10:return gu(s.type._context),null;case 22:case 23:return td(),null;case 24:return null;default:return null}}var sl=!1,Et=!1,YS=typeof WeakSet=="function"?WeakSet:Set,ne=null;function Zs(r,s){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){Qe(r,s,u)}else o.current=null}function $u(r,s,o){try{o()}catch(u){Qe(r,s,u)}}var ag=!1;function XS(r,s){if(tu=Ea,r=Fp(),Kc(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var h=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var x=0,_=-1,N=-1,V=0,H=0,q=r,W=null;t:for(;;){for(var Z;q!==o||h!==0&&q.nodeType!==3||(_=x+h),q!==g||u!==0&&q.nodeType!==3||(N=x+u),q.nodeType===3&&(x+=q.nodeValue.length),(Z=q.firstChild)!==null;)W=q,q=Z;for(;;){if(q===r)break t;if(W===o&&++V===h&&(_=x),W===g&&++H===u&&(N=x),(Z=q.nextSibling)!==null)break;q=W,W=q.parentNode}q=Z}o=_===-1||N===-1?null:{start:_,end:N}}else o=null}o=o||{start:0,end:0}}else o=null;for(nu={focusedElem:r,selectionRange:o},Ea=!1,ne=s;ne!==null;)if(s=ne,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,ne=r;else for(;ne!==null;){s=ne;try{var re=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var ae=re.memoizedProps,Ze=re.memoizedState,I=s.stateNode,O=I.getSnapshotBeforeUpdate(s.elementType===s.type?ae:gn(s.type,ae),Ze);I.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var B=s.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(G){Qe(s,s.return,G)}if(r=s.sibling,r!==null){r.return=s.return,ne=r;break}ne=s.return}return re=ag,ag=!1,re}function po(r,s,o){var u=s.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&r)===r){var g=h.destroy;h.destroy=void 0,g!==void 0&&$u(s,o,g)}h=h.next}while(h!==u)}}function il(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&r)===r){var u=o.create;o.destroy=u()}o=o.next}while(o!==s)}}function Wu(r){var s=r.ref;if(s!==null){var o=r.stateNode;switch(r.tag){case 5:r=o;break;default:r=o}typeof s=="function"?s(r):s.current=r}}function lg(r){var s=r.alternate;s!==null&&(r.alternate=null,lg(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[Tn],delete s[no],delete s[ou],delete s[OS],delete s[LS])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function cg(r){return r.tag===5||r.tag===3||r.tag===4}function ug(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||cg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Hu(r,s,o){var u=r.tag;if(u===5||u===6)r=r.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(r,s):o.insertBefore(r,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(r,o)):(s=o,s.appendChild(r)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Ia));else if(u!==4&&(r=r.child,r!==null))for(Hu(r,s,o),r=r.sibling;r!==null;)Hu(r,s,o),r=r.sibling}function qu(r,s,o){var u=r.tag;if(u===5||u===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(u!==4&&(r=r.child,r!==null))for(qu(r,s,o),r=r.sibling;r!==null;)qu(r,s,o),r=r.sibling}var mt=null,yn=!1;function yr(r,s,o){for(o=o.child;o!==null;)dg(r,s,o),o=o.sibling}function dg(r,s,o){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(va,o)}catch{}switch(o.tag){case 5:Et||Zs(o,s);case 6:var u=mt,h=yn;mt=null,yr(r,s,o),mt=u,yn=h,mt!==null&&(yn?(r=mt,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):mt.removeChild(o.stateNode));break;case 18:mt!==null&&(yn?(r=mt,o=o.stateNode,r.nodeType===8?iu(r.parentNode,o):r.nodeType===1&&iu(r,o),Hi(r)):iu(mt,o.stateNode));break;case 4:u=mt,h=yn,mt=o.stateNode.containerInfo,yn=!0,yr(r,s,o),mt=u,yn=h;break;case 0:case 11:case 14:case 15:if(!Et&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){h=u=u.next;do{var g=h,x=g.destroy;g=g.tag,x!==void 0&&((g&2)!==0||(g&4)!==0)&&$u(o,s,x),h=h.next}while(h!==u)}yr(r,s,o);break;case 1:if(!Et&&(Zs(o,s),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(_){Qe(o,s,_)}yr(r,s,o);break;case 21:yr(r,s,o);break;case 22:o.mode&1?(Et=(u=Et)||o.memoizedState!==null,yr(r,s,o),Et=u):yr(r,s,o);break;default:yr(r,s,o)}}function fg(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new YS),s.forEach(function(u){var h=ok.bind(null,r,u);o.has(u)||(o.add(u),u.then(h,h))})}}function vn(r,s){var o=s.deletions;if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];try{var g=r,x=s,_=x;e:for(;_!==null;){switch(_.tag){case 5:mt=_.stateNode,yn=!1;break e;case 3:mt=_.stateNode.containerInfo,yn=!0;break e;case 4:mt=_.stateNode.containerInfo,yn=!0;break e}_=_.return}if(mt===null)throw Error(n(160));dg(g,x,h),mt=null,yn=!1;var N=h.alternate;N!==null&&(N.return=null),h.return=null}catch(V){Qe(h,s,V)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)hg(s,r),s=s.sibling}function hg(r,s){var o=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(vn(s,r),jn(r),u&4){try{po(3,r,r.return),il(3,r)}catch(ae){Qe(r,r.return,ae)}try{po(5,r,r.return)}catch(ae){Qe(r,r.return,ae)}}break;case 1:vn(s,r),jn(r),u&512&&o!==null&&Zs(o,o.return);break;case 5:if(vn(s,r),jn(r),u&512&&o!==null&&Zs(o,o.return),r.flags&32){var h=r.stateNode;try{Li(h,"")}catch(ae){Qe(r,r.return,ae)}}if(u&4&&(h=r.stateNode,h!=null)){var g=r.memoizedProps,x=o!==null?o.memoizedProps:g,_=r.type,N=r.updateQueue;if(r.updateQueue=null,N!==null)try{_==="input"&&g.type==="radio"&&g.name!=null&&Se(h,g),kc(_,x);var V=kc(_,g);for(x=0;x<N.length;x+=2){var H=N[x],q=N[x+1];H==="style"?Qh(h,q):H==="dangerouslySetInnerHTML"?Kh(h,q):H==="children"?Li(h,q):C(h,H,q,V)}switch(_){case"input":pt(h,g);break;case"textarea":Wh(h,g);break;case"select":var W=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!g.multiple;var Z=g.value;Z!=null?sr(h,!!g.multiple,Z,!1):W!==!!g.multiple&&(g.defaultValue!=null?sr(h,!!g.multiple,g.defaultValue,!0):sr(h,!!g.multiple,g.multiple?[]:"",!1))}h[no]=g}catch(ae){Qe(r,r.return,ae)}}break;case 6:if(vn(s,r),jn(r),u&4){if(r.stateNode===null)throw Error(n(162));h=r.stateNode,g=r.memoizedProps;try{h.nodeValue=g}catch(ae){Qe(r,r.return,ae)}}break;case 3:if(vn(s,r),jn(r),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Hi(s.containerInfo)}catch(ae){Qe(r,r.return,ae)}break;case 4:vn(s,r),jn(r);break;case 13:vn(s,r),jn(r),h=r.child,h.flags&8192&&(g=h.memoizedState!==null,h.stateNode.isHidden=g,!g||h.alternate!==null&&h.alternate.memoizedState!==null||(Qu=Je())),u&4&&fg(r);break;case 22:if(H=o!==null&&o.memoizedState!==null,r.mode&1?(Et=(V=Et)||H,vn(s,r),Et=V):vn(s,r),jn(r),u&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!H&&(r.mode&1)!==0)for(ne=r,H=r.child;H!==null;){for(q=ne=H;ne!==null;){switch(W=ne,Z=W.child,W.tag){case 0:case 11:case 14:case 15:po(4,W,W.return);break;case 1:Zs(W,W.return);var re=W.stateNode;if(typeof re.componentWillUnmount=="function"){u=W,o=W.return;try{s=u,re.props=s.memoizedProps,re.state=s.memoizedState,re.componentWillUnmount()}catch(ae){Qe(u,o,ae)}}break;case 5:Zs(W,W.return);break;case 22:if(W.memoizedState!==null){gg(q);continue}}Z!==null?(Z.return=W,ne=Z):gg(q)}H=H.sibling}e:for(H=null,q=r;;){if(q.tag===5){if(H===null){H=q;try{h=q.stateNode,V?(g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(_=q.stateNode,N=q.memoizedProps.style,x=N!=null&&N.hasOwnProperty("display")?N.display:null,_.style.display=Gh("display",x))}catch(ae){Qe(r,r.return,ae)}}}else if(q.tag===6){if(H===null)try{q.stateNode.nodeValue=V?"":q.memoizedProps}catch(ae){Qe(r,r.return,ae)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===r)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===r)break e;for(;q.sibling===null;){if(q.return===null||q.return===r)break e;H===q&&(H=null),q=q.return}H===q&&(H=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:vn(s,r),jn(r),u&4&&fg(r);break;case 21:break;default:vn(s,r),jn(r)}}function jn(r){var s=r.flags;if(s&2){try{e:{for(var o=r.return;o!==null;){if(cg(o)){var u=o;break e}o=o.return}throw Error(n(160))}switch(u.tag){case 5:var h=u.stateNode;u.flags&32&&(Li(h,""),u.flags&=-33);var g=ug(r);qu(r,g,h);break;case 3:case 4:var x=u.stateNode.containerInfo,_=ug(r);Hu(r,_,x);break;default:throw Error(n(161))}}catch(N){Qe(r,r.return,N)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function JS(r,s,o){ne=r,pg(r)}function pg(r,s,o){for(var u=(r.mode&1)!==0;ne!==null;){var h=ne,g=h.child;if(h.tag===22&&u){var x=h.memoizedState!==null||sl;if(!x){var _=h.alternate,N=_!==null&&_.memoizedState!==null||Et;_=sl;var V=Et;if(sl=x,(Et=N)&&!V)for(ne=h;ne!==null;)x=ne,N=x.child,x.tag===22&&x.memoizedState!==null?yg(h):N!==null?(N.return=x,ne=N):yg(h);for(;g!==null;)ne=g,pg(g),g=g.sibling;ne=h,sl=_,Et=V}mg(r)}else(h.subtreeFlags&8772)!==0&&g!==null?(g.return=h,ne=g):mg(r)}}function mg(r){for(;ne!==null;){var s=ne;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Et||il(5,s);break;case 1:var u=s.stateNode;if(s.flags&4&&!Et)if(o===null)u.componentDidMount();else{var h=s.elementType===s.type?o.memoizedProps:gn(s.type,o.memoizedProps);u.componentDidUpdate(h,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var g=s.updateQueue;g!==null&&gm(s,g,u);break;case 3:var x=s.updateQueue;if(x!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}gm(s,x,o)}break;case 5:var _=s.stateNode;if(o===null&&s.flags&4){o=_;var N=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":N.autoFocus&&o.focus();break;case"img":N.src&&(o.src=N.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var V=s.alternate;if(V!==null){var H=V.memoizedState;if(H!==null){var q=H.dehydrated;q!==null&&Hi(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Et||s.flags&512&&Wu(s)}catch(W){Qe(s,s.return,W)}}if(s===r){ne=null;break}if(o=s.sibling,o!==null){o.return=s.return,ne=o;break}ne=s.return}}function gg(r){for(;ne!==null;){var s=ne;if(s===r){ne=null;break}var o=s.sibling;if(o!==null){o.return=s.return,ne=o;break}ne=s.return}}function yg(r){for(;ne!==null;){var s=ne;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{il(4,s)}catch(N){Qe(s,o,N)}break;case 1:var u=s.stateNode;if(typeof u.componentDidMount=="function"){var h=s.return;try{u.componentDidMount()}catch(N){Qe(s,h,N)}}var g=s.return;try{Wu(s)}catch(N){Qe(s,g,N)}break;case 5:var x=s.return;try{Wu(s)}catch(N){Qe(s,x,N)}}}catch(N){Qe(s,s.return,N)}if(s===r){ne=null;break}var _=s.sibling;if(_!==null){_.return=s.return,ne=_;break}ne=s.return}}var ZS=Math.ceil,ol=R.ReactCurrentDispatcher,Ku=R.ReactCurrentOwner,tn=R.ReactCurrentBatchConfig,Re=0,ut=null,nt=null,gt=0,Ht=0,ei=fr(0),ot=0,mo=null,Zr=0,al=0,Gu=0,go=null,It=null,Qu=0,ti=1/0,Hn=null,ll=!1,Yu=null,vr=null,cl=!1,xr=null,ul=0,yo=0,Xu=null,dl=-1,fl=0;function Pt(){return(Re&6)!==0?Je():dl!==-1?dl:dl=Je()}function wr(r){return(r.mode&1)===0?1:(Re&2)!==0&>!==0?gt&-gt:IS.transition!==null?(fl===0&&(fl=up()),fl):(r=Fe,r!==0||(r=window.event,r=r===void 0?16:xp(r.type)),r)}function xn(r,s,o,u){if(50<yo)throw yo=0,Xu=null,Error(n(185));Vi(r,o,u),((Re&2)===0||r!==ut)&&(r===ut&&((Re&2)===0&&(al|=o),ot===4&&br(r,gt)),Dt(r,u),o===1&&Re===0&&(s.mode&1)===0&&(ti=Je()+500,Va&&pr()))}function Dt(r,s){var o=r.callbackNode;I1(r,s);var u=ba(r,r===ut?gt:0);if(u===0)o!==null&&ap(o),r.callbackNode=null,r.callbackPriority=0;else if(s=u&-u,r.callbackPriority!==s){if(o!=null&&ap(o),s===1)r.tag===0?MS(xg.bind(null,r)):sm(xg.bind(null,r)),PS(function(){(Re&6)===0&&pr()}),o=null;else{switch(dp(u)){case 1:o=Ac;break;case 4:o=lp;break;case 16:o=ya;break;case 536870912:o=cp;break;default:o=ya}o=Cg(o,vg.bind(null,r))}r.callbackPriority=s,r.callbackNode=o}}function vg(r,s){if(dl=-1,fl=0,(Re&6)!==0)throw Error(n(327));var o=r.callbackNode;if(ni()&&r.callbackNode!==o)return null;var u=ba(r,r===ut?gt:0);if(u===0)return null;if((u&30)!==0||(u&r.expiredLanes)!==0||s)s=hl(r,u);else{s=u;var h=Re;Re|=2;var g=bg();(ut!==r||gt!==s)&&(Hn=null,ti=Je()+500,ts(r,s));do try{nk();break}catch(_){wg(r,_)}while(!0);mu(),ol.current=g,Re=h,nt!==null?s=0:(ut=null,gt=0,s=ot)}if(s!==0){if(s===2&&(h=Pc(r),h!==0&&(u=h,s=Ju(r,h))),s===1)throw o=mo,ts(r,0),br(r,u),Dt(r,Je()),o;if(s===6)br(r,u);else{if(h=r.current.alternate,(u&30)===0&&!ek(h)&&(s=hl(r,u),s===2&&(g=Pc(r),g!==0&&(u=g,s=Ju(r,g))),s===1))throw o=mo,ts(r,0),br(r,u),Dt(r,Je()),o;switch(r.finishedWork=h,r.finishedLanes=u,s){case 0:case 1:throw Error(n(345));case 2:ns(r,It,Hn);break;case 3:if(br(r,u),(u&130023424)===u&&(s=Qu+500-Je(),10<s)){if(ba(r,0)!==0)break;if(h=r.suspendedLanes,(h&u)!==u){Pt(),r.pingedLanes|=r.suspendedLanes&h;break}r.timeoutHandle=su(ns.bind(null,r,It,Hn),s);break}ns(r,It,Hn);break;case 4:if(br(r,u),(u&4194240)===u)break;for(s=r.eventTimes,h=-1;0<u;){var x=31-hn(u);g=1<<x,x=s[x],x>h&&(h=x),u&=~g}if(u=h,u=Je()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*ZS(u/1960))-u,10<u){r.timeoutHandle=su(ns.bind(null,r,It,Hn),u);break}ns(r,It,Hn);break;case 5:ns(r,It,Hn);break;default:throw Error(n(329))}}}return Dt(r,Je()),r.callbackNode===o?vg.bind(null,r):null}function Ju(r,s){var o=go;return r.current.memoizedState.isDehydrated&&(ts(r,s).flags|=256),r=hl(r,s),r!==2&&(s=It,It=o,s!==null&&Zu(s)),r}function Zu(r){It===null?It=r:It.push.apply(It,r)}function ek(r){for(var s=r;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var h=o[u],g=h.getSnapshot;h=h.value;try{if(!pn(g(),h))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function br(r,s){for(s&=~Gu,s&=~al,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var o=31-hn(s),u=1<<o;r[o]=-1,s&=~u}}function xg(r){if((Re&6)!==0)throw Error(n(327));ni();var s=ba(r,0);if((s&1)===0)return Dt(r,Je()),null;var o=hl(r,s);if(r.tag!==0&&o===2){var u=Pc(r);u!==0&&(s=u,o=Ju(r,u))}if(o===1)throw o=mo,ts(r,0),br(r,s),Dt(r,Je()),o;if(o===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,ns(r,It,Hn),Dt(r,Je()),null}function ed(r,s){var o=Re;Re|=1;try{return r(s)}finally{Re=o,Re===0&&(ti=Je()+500,Va&&pr())}}function es(r){xr!==null&&xr.tag===0&&(Re&6)===0&&ni();var s=Re;Re|=1;var o=tn.transition,u=Fe;try{if(tn.transition=null,Fe=1,r)return r()}finally{Fe=u,tn.transition=o,Re=s,(Re&6)===0&&pr()}}function td(){Ht=ei.current,$e(ei)}function ts(r,s){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,AS(o)),nt!==null)for(o=nt.return;o!==null;){var u=o;switch(uu(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Ba();break;case 3:Xs(),$e(Ot),$e(bt),ku();break;case 5:bu(u);break;case 4:Xs();break;case 13:$e(qe);break;case 19:$e(qe);break;case 10:gu(u.type._context);break;case 22:case 23:td()}o=o.return}if(ut=r,nt=r=Sr(r.current,null),gt=Ht=s,ot=0,mo=null,Gu=al=Zr=0,It=go=null,Yr!==null){for(s=0;s<Yr.length;s++)if(o=Yr[s],u=o.interleaved,u!==null){o.interleaved=null;var h=u.next,g=o.pending;if(g!==null){var x=g.next;g.next=h,u.next=x}o.pending=u}Yr=null}return r}function wg(r,s){do{var o=nt;try{if(mu(),Ya.current=el,Xa){for(var u=Ke.memoizedState;u!==null;){var h=u.queue;h!==null&&(h.pending=null),u=u.next}Xa=!1}if(Jr=0,ct=it=Ke=null,lo=!1,co=0,Ku.current=null,o===null||o.return===null){ot=1,mo=s,nt=null;break}e:{var g=r,x=o.return,_=o,N=s;if(s=gt,_.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){var V=N,H=_,q=H.tag;if((H.mode&1)===0&&(q===0||q===11||q===15)){var W=H.alternate;W?(H.updateQueue=W.updateQueue,H.memoizedState=W.memoizedState,H.lanes=W.lanes):(H.updateQueue=null,H.memoizedState=null)}var Z=Hm(x);if(Z!==null){Z.flags&=-257,qm(Z,x,_,g,s),Z.mode&1&&Wm(g,V,s),s=Z,N=V;var re=s.updateQueue;if(re===null){var ae=new Set;ae.add(N),s.updateQueue=ae}else re.add(N);break e}else{if((s&1)===0){Wm(g,V,s),nd();break e}N=Error(n(426))}}else if(He&&_.mode&1){var Ze=Hm(x);if(Ze!==null){(Ze.flags&65536)===0&&(Ze.flags|=256),qm(Ze,x,_,g,s),hu(Js(N,_));break e}}g=N=Js(N,_),ot!==4&&(ot=2),go===null?go=[g]:go.push(g),g=x;do{switch(g.tag){case 3:g.flags|=65536,s&=-s,g.lanes|=s;var I=zm(g,N,s);mm(g,I);break e;case 1:_=N;var O=g.type,B=g.stateNode;if((g.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(vr===null||!vr.has(B)))){g.flags|=65536,s&=-s,g.lanes|=s;var G=$m(g,_,s);mm(g,G);break e}}g=g.return}while(g!==null)}kg(o)}catch(le){s=le,nt===o&&o!==null&&(nt=o=o.return);continue}break}while(!0)}function bg(){var r=ol.current;return ol.current=el,r===null?el:r}function nd(){(ot===0||ot===3||ot===2)&&(ot=4),ut===null||(Zr&268435455)===0&&(al&268435455)===0||br(ut,gt)}function hl(r,s){var o=Re;Re|=2;var u=bg();(ut!==r||gt!==s)&&(Hn=null,ts(r,s));do try{tk();break}catch(h){wg(r,h)}while(!0);if(mu(),Re=o,ol.current=u,nt!==null)throw Error(n(261));return ut=null,gt=0,ot}function tk(){for(;nt!==null;)Sg(nt)}function nk(){for(;nt!==null&&!C1();)Sg(nt)}function Sg(r){var s=Tg(r.alternate,r,Ht);r.memoizedProps=r.pendingProps,s===null?kg(r):nt=s,Ku.current=null}function kg(r){var s=r;do{var o=s.alternate;if(r=s.return,(s.flags&32768)===0){if(o=GS(o,s,Ht),o!==null){nt=o;return}}else{if(o=QS(o,s),o!==null){o.flags&=32767,nt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{ot=6,nt=null;return}}if(s=s.sibling,s!==null){nt=s;return}nt=s=r}while(s!==null);ot===0&&(ot=5)}function ns(r,s,o){var u=Fe,h=tn.transition;try{tn.transition=null,Fe=1,rk(r,s,o,u)}finally{tn.transition=h,Fe=u}return null}function rk(r,s,o,u){do ni();while(xr!==null);if((Re&6)!==0)throw Error(n(327));o=r.finishedWork;var h=r.finishedLanes;if(o===null)return null;if(r.finishedWork=null,r.finishedLanes=0,o===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var g=o.lanes|o.childLanes;if(D1(r,g),r===ut&&(nt=ut=null,gt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||cl||(cl=!0,Cg(ya,function(){return ni(),null})),g=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||g){g=tn.transition,tn.transition=null;var x=Fe;Fe=1;var _=Re;Re|=4,Ku.current=null,XS(r,o),hg(o,r),kS(nu),Ea=!!tu,nu=tu=null,r.current=o,JS(o),N1(),Re=_,Fe=x,tn.transition=g}else r.current=o;if(cl&&(cl=!1,xr=r,ul=h),g=r.pendingLanes,g===0&&(vr=null),P1(o.stateNode),Dt(r,Je()),s!==null)for(u=r.onRecoverableError,o=0;o<s.length;o++)h=s[o],u(h.value,{componentStack:h.stack,digest:h.digest});if(ll)throw ll=!1,r=Yu,Yu=null,r;return(ul&1)!==0&&r.tag!==0&&ni(),g=r.pendingLanes,(g&1)!==0?r===Xu?yo++:(yo=0,Xu=r):yo=0,pr(),null}function ni(){if(xr!==null){var r=dp(ul),s=tn.transition,o=Fe;try{if(tn.transition=null,Fe=16>r?16:r,xr===null)var u=!1;else{if(r=xr,xr=null,ul=0,(Re&6)!==0)throw Error(n(331));var h=Re;for(Re|=4,ne=r.current;ne!==null;){var g=ne,x=g.child;if((ne.flags&16)!==0){var _=g.deletions;if(_!==null){for(var N=0;N<_.length;N++){var V=_[N];for(ne=V;ne!==null;){var H=ne;switch(H.tag){case 0:case 11:case 15:po(8,H,g)}var q=H.child;if(q!==null)q.return=H,ne=q;else for(;ne!==null;){H=ne;var W=H.sibling,Z=H.return;if(lg(H),H===V){ne=null;break}if(W!==null){W.return=Z,ne=W;break}ne=Z}}}var re=g.alternate;if(re!==null){var ae=re.child;if(ae!==null){re.child=null;do{var Ze=ae.sibling;ae.sibling=null,ae=Ze}while(ae!==null)}}ne=g}}if((g.subtreeFlags&2064)!==0&&x!==null)x.return=g,ne=x;else e:for(;ne!==null;){if(g=ne,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:po(9,g,g.return)}var I=g.sibling;if(I!==null){I.return=g.return,ne=I;break e}ne=g.return}}var O=r.current;for(ne=O;ne!==null;){x=ne;var B=x.child;if((x.subtreeFlags&2064)!==0&&B!==null)B.return=x,ne=B;else e:for(x=O;ne!==null;){if(_=ne,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:il(9,_)}}catch(le){Qe(_,_.return,le)}if(_===x){ne=null;break e}var G=_.sibling;if(G!==null){G.return=_.return,ne=G;break e}ne=_.return}}if(Re=h,pr(),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(va,r)}catch{}u=!0}return u}finally{Fe=o,tn.transition=s}}return!1}function Eg(r,s,o){s=Js(o,s),s=zm(r,s,1),r=gr(r,s,1),s=Pt(),r!==null&&(Vi(r,1,s),Dt(r,s))}function Qe(r,s,o){if(r.tag===3)Eg(r,r,o);else for(;s!==null;){if(s.tag===3){Eg(s,r,o);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(vr===null||!vr.has(u))){r=Js(o,r),r=$m(s,r,1),s=gr(s,r,1),r=Pt(),s!==null&&(Vi(s,1,r),Dt(s,r));break}}s=s.return}}function sk(r,s,o){var u=r.pingCache;u!==null&&u.delete(s),s=Pt(),r.pingedLanes|=r.suspendedLanes&o,ut===r&&(gt&o)===o&&(ot===4||ot===3&&(gt&130023424)===gt&&500>Je()-Qu?ts(r,0):Gu|=o),Dt(r,s)}function _g(r,s){s===0&&((r.mode&1)===0?s=1:(s=wa,wa<<=1,(wa&130023424)===0&&(wa=4194304)));var o=Pt();r=zn(r,s),r!==null&&(Vi(r,s,o),Dt(r,o))}function ik(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),_g(r,o)}function ok(r,s){var o=0;switch(r.tag){case 13:var u=r.stateNode,h=r.memoizedState;h!==null&&(o=h.retryLane);break;case 19:u=r.stateNode;break;default:throw Error(n(314))}u!==null&&u.delete(s),_g(r,o)}var Tg;Tg=function(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps||Ot.current)Mt=!0;else{if((r.lanes&o)===0&&(s.flags&128)===0)return Mt=!1,KS(r,s,o);Mt=(r.flags&131072)!==0}else Mt=!1,He&&(s.flags&1048576)!==0&&im(s,za,s.index);switch(s.lanes=0,s.tag){case 2:var u=s.type;rl(r,s),r=s.pendingProps;var h=Ws(s,bt.current);Ys(s,o),h=Tu(null,s,u,r,h,o);var g=Cu();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Lt(u)?(g=!0,Fa(s)):g=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,xu(s),h.updater=tl,s.stateNode=h,h._reactInternals=s,Ou(s,u,r,o),s=Du(null,s,u,!0,g,o)):(s.tag=0,He&&g&&cu(s),At(null,s,h,o),s=s.child),s;case 16:u=s.elementType;e:{switch(rl(r,s),r=s.pendingProps,h=u._init,u=h(u._payload),s.type=u,h=s.tag=lk(u),r=gn(u,r),h){case 0:s=Iu(null,s,u,r,o);break e;case 1:s=Jm(null,s,u,r,o);break e;case 11:s=Km(null,s,u,r,o);break e;case 14:s=Gm(null,s,u,gn(u.type,r),o);break e}throw Error(n(306,u,""))}return s;case 0:return u=s.type,h=s.pendingProps,h=s.elementType===u?h:gn(u,h),Iu(r,s,u,h,o);case 1:return u=s.type,h=s.pendingProps,h=s.elementType===u?h:gn(u,h),Jm(r,s,u,h,o);case 3:e:{if(Zm(s),r===null)throw Error(n(387));u=s.pendingProps,g=s.memoizedState,h=g.element,pm(r,s),Ga(s,u,null,o);var x=s.memoizedState;if(u=x.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){h=Js(Error(n(423)),s),s=eg(r,s,u,o,h);break e}else if(u!==h){h=Js(Error(n(424)),s),s=eg(r,s,u,o,h);break e}else for(Wt=dr(s.stateNode.containerInfo.firstChild),$t=s,He=!0,mn=null,o=fm(s,null,u,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ks(),u===h){s=Wn(r,s,o);break e}At(r,s,u,o)}s=s.child}return s;case 5:return ym(s),r===null&&fu(s),u=s.type,h=s.pendingProps,g=r!==null?r.memoizedProps:null,x=h.children,ru(u,h)?x=null:g!==null&&ru(u,g)&&(s.flags|=32),Xm(r,s),At(r,s,x,o),s.child;case 6:return r===null&&fu(s),null;case 13:return tg(r,s,o);case 4:return wu(s,s.stateNode.containerInfo),u=s.pendingProps,r===null?s.child=Gs(s,null,u,o):At(r,s,u,o),s.child;case 11:return u=s.type,h=s.pendingProps,h=s.elementType===u?h:gn(u,h),Km(r,s,u,h,o);case 7:return At(r,s,s.pendingProps,o),s.child;case 8:return At(r,s,s.pendingProps.children,o),s.child;case 12:return At(r,s,s.pendingProps.children,o),s.child;case 10:e:{if(u=s.type._context,h=s.pendingProps,g=s.memoizedProps,x=h.value,Ve(Ha,u._currentValue),u._currentValue=x,g!==null)if(pn(g.value,x)){if(g.children===h.children&&!Ot.current){s=Wn(r,s,o);break e}}else for(g=s.child,g!==null&&(g.return=s);g!==null;){var _=g.dependencies;if(_!==null){x=g.child;for(var N=_.firstContext;N!==null;){if(N.context===u){if(g.tag===1){N=$n(-1,o&-o),N.tag=2;var V=g.updateQueue;if(V!==null){V=V.shared;var H=V.pending;H===null?N.next=N:(N.next=H.next,H.next=N),V.pending=N}}g.lanes|=o,N=g.alternate,N!==null&&(N.lanes|=o),yu(g.return,o,s),_.lanes|=o;break}N=N.next}}else if(g.tag===10)x=g.type===s.type?null:g.child;else if(g.tag===18){if(x=g.return,x===null)throw Error(n(341));x.lanes|=o,_=x.alternate,_!==null&&(_.lanes|=o),yu(x,o,s),x=g.sibling}else x=g.child;if(x!==null)x.return=g;else for(x=g;x!==null;){if(x===s){x=null;break}if(g=x.sibling,g!==null){g.return=x.return,x=g;break}x=x.return}g=x}At(r,s,h.children,o),s=s.child}return s;case 9:return h=s.type,u=s.pendingProps.children,Ys(s,o),h=Zt(h),u=u(h),s.flags|=1,At(r,s,u,o),s.child;case 14:return u=s.type,h=gn(u,s.pendingProps),h=gn(u.type,h),Gm(r,s,u,h,o);case 15:return Qm(r,s,s.type,s.pendingProps,o);case 17:return u=s.type,h=s.pendingProps,h=s.elementType===u?h:gn(u,h),rl(r,s),s.tag=1,Lt(u)?(r=!0,Fa(s)):r=!1,Ys(s,o),Vm(s,u,h),Ou(s,u,h,o),Du(null,s,u,!0,r,o);case 19:return rg(r,s,o);case 22:return Ym(r,s,o)}throw Error(n(156,s.tag))};function Cg(r,s){return op(r,s)}function ak(r,s,o,u){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(r,s,o,u){return new ak(r,s,o,u)}function rd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function lk(r){if(typeof r=="function")return rd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Pe)return 11;if(r===Be)return 14}return 2}function Sr(r,s){var o=r.alternate;return o===null?(o=nn(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&14680064,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o}function pl(r,s,o,u,h,g){var x=2;if(u=r,typeof r=="function")rd(r)&&(x=1);else if(typeof r=="string")x=5;else e:switch(r){case J:return rs(o.children,h,g,s);case F:x=8,h|=8;break;case ee:return r=nn(12,o,s,h|2),r.elementType=ee,r.lanes=g,r;case Me:return r=nn(13,o,s,h),r.elementType=Me,r.lanes=g,r;case Ce:return r=nn(19,o,s,h),r.elementType=Ce,r.lanes=g,r;case ce:return ml(o,h,g,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ue:x=10;break e;case ke:x=9;break e;case Pe:x=11;break e;case Be:x=14;break e;case he:x=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=nn(x,o,s,h),s.elementType=r,s.type=u,s.lanes=g,s}function rs(r,s,o,u){return r=nn(7,r,u,s),r.lanes=o,r}function ml(r,s,o,u){return r=nn(22,r,u,s),r.elementType=ce,r.lanes=o,r.stateNode={isHidden:!1},r}function sd(r,s,o){return r=nn(6,r,null,s),r.lanes=o,r}function id(r,s,o){return s=nn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function ck(r,s,o,u,h){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rc(0),this.expirationTimes=Rc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rc(0),this.identifierPrefix=u,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function od(r,s,o,u,h,g,x,_,N){return r=new ck(r,s,o,_,N),s===1?(s=1,g===!0&&(s|=8)):s=0,g=nn(3,null,null,s),r.current=g,g.stateNode=r,g.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},xu(g),r}function uk(r,s,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:u==null?null:""+u,children:r,containerInfo:s,implementation:o}}function Ng(r){if(!r)return hr;r=r._reactInternals;e:{if(Hr(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Lt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var o=r.type;if(Lt(o))return nm(r,o,s)}return s}function jg(r,s,o,u,h,g,x,_,N){return r=od(o,u,!0,r,h,g,x,_,N),r.context=Ng(null),o=r.current,u=Pt(),h=wr(o),g=$n(u,h),g.callback=s??null,gr(o,g,h),r.current.lanes=h,Vi(r,h,u),Dt(r,u),r}function gl(r,s,o,u){var h=s.current,g=Pt(),x=wr(h);return o=Ng(o),s.context===null?s.context=o:s.pendingContext=o,s=$n(g,x),s.payload={element:r},u=u===void 0?null:u,u!==null&&(s.callback=u),r=gr(h,s,x),r!==null&&(xn(r,h,x,g),Ka(r,h,x)),x}function yl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Ag(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function ad(r,s){Ag(r,s),(r=r.alternate)&&Ag(r,s)}function dk(){return null}var Pg=typeof reportError=="function"?reportError:function(r){console.error(r)};function ld(r){this._internalRoot=r}vl.prototype.render=ld.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));gl(r,s,null,null)},vl.prototype.unmount=ld.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;es(function(){gl(null,r,null,null)}),s[Bn]=null}};function vl(r){this._internalRoot=r}vl.prototype.unstable_scheduleHydration=function(r){if(r){var s=pp();r={blockedOn:null,target:r,priority:s};for(var o=0;o<lr.length&&s!==0&&s<lr[o].priority;o++);lr.splice(o,0,r),o===0&&yp(r)}};function cd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function xl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Rg(){}function fk(r,s,o,u,h){if(h){if(typeof u=="function"){var g=u;u=function(){var V=yl(x);g.call(V)}}var x=jg(s,u,r,0,null,!1,!1,"",Rg);return r._reactRootContainer=x,r[Bn]=x.current,eo(r.nodeType===8?r.parentNode:r),es(),x}for(;h=r.lastChild;)r.removeChild(h);if(typeof u=="function"){var _=u;u=function(){var V=yl(N);_.call(V)}}var N=od(r,0,!1,null,null,!1,!1,"",Rg);return r._reactRootContainer=N,r[Bn]=N.current,eo(r.nodeType===8?r.parentNode:r),es(function(){gl(s,N,o,u)}),N}function wl(r,s,o,u,h){var g=o._reactRootContainer;if(g){var x=g;if(typeof h=="function"){var _=h;h=function(){var N=yl(x);_.call(N)}}gl(s,x,r,h)}else x=fk(o,s,r,h,u);return yl(x)}fp=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var o=Fi(s.pendingLanes);o!==0&&(Oc(s,o|1),Dt(s,Je()),(Re&6)===0&&(ti=Je()+500,pr()))}break;case 13:es(function(){var u=zn(r,1);if(u!==null){var h=Pt();xn(u,r,1,h)}}),ad(r,1)}},Lc=function(r){if(r.tag===13){var s=zn(r,134217728);if(s!==null){var o=Pt();xn(s,r,134217728,o)}ad(r,134217728)}},hp=function(r){if(r.tag===13){var s=wr(r),o=zn(r,s);if(o!==null){var u=Pt();xn(o,r,s,u)}ad(r,s)}},pp=function(){return Fe},mp=function(r,s){var o=Fe;try{return Fe=r,s()}finally{Fe=o}},Tc=function(r,s,o){switch(s){case"input":if(pt(r,o),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var u=o[s];if(u!==r&&u.form===r.form){var h=Da(u);if(!h)throw Error(n(90));ht(u),pt(u,h)}}}break;case"textarea":Wh(r,o);break;case"select":s=o.value,s!=null&&sr(r,!!o.multiple,s,!1)}},Zh=ed,ep=es;var hk={usingClientEntryPoint:!1,Events:[ro,zs,Da,Xh,Jh,ed]},vo={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pk={bundleType:vo.bundleType,version:vo.version,rendererPackageName:vo.rendererPackageName,rendererConfig:vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=sp(r),r===null?null:r.stateNode},findFiberByHostInstance:vo.findFiberByHostInstance||dk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bl.isDisabled&&bl.supportsFiber)try{va=bl.inject(pk),_n=bl}catch{}}return Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hk,Bt.createPortal=function(r,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cd(s))throw Error(n(200));return uk(r,s,null,o)},Bt.createRoot=function(r,s){if(!cd(r))throw Error(n(299));var o=!1,u="",h=Pg;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onRecoverableError!==void 0&&(h=s.onRecoverableError)),s=od(r,1,!1,null,null,o,!1,u,h),r[Bn]=s.current,eo(r.nodeType===8?r.parentNode:r),new ld(s)},Bt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=sp(s),r=r===null?null:r.stateNode,r},Bt.flushSync=function(r){return es(r)},Bt.hydrate=function(r,s,o){if(!xl(s))throw Error(n(200));return wl(null,r,s,!0,o)},Bt.hydrateRoot=function(r,s,o){if(!cd(r))throw Error(n(405));var u=o!=null&&o.hydratedSources||null,h=!1,g="",x=Pg;if(o!=null&&(o.unstable_strictMode===!0&&(h=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),s=jg(s,null,r,1,o??null,h,!1,g,x),r[Bn]=s.current,eo(r),u)for(r=0;r<u.length;r++)o=u[r],h=o._getVersion,h=h(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,h]:s.mutableSourceEagerHydrationData.push(o,h);return new vl(s)},Bt.render=function(r,s,o){if(!xl(s))throw Error(n(200));return wl(null,r,s,!1,o)},Bt.unmountComponentAtNode=function(r){if(!xl(r))throw Error(n(40));return r._reactRootContainer?(es(function(){wl(null,null,r,!1,function(){r._reactRootContainer=null,r[Bn]=null})}),!0):!1},Bt.unstable_batchedUpdates=ed,Bt.unstable_renderSubtreeIntoContainer=function(r,s,o,u){if(!xl(o))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return wl(r,s,o,!1,u)},Bt.version="18.3.1-next-f1338f8080-20240426",Bt}var Ug;function Uv(){if(Ug)return hd.exports;Ug=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(),hd.exports=Tk(),hd.exports}var zg;function Ck(){if(zg)return kl;zg=1;var t=Uv();return kl.createRoot=t.createRoot,kl.hydrateRoot=t.hydrateRoot,kl}var Nk=Ck();const jk=Vv(Nk),Ak=20,Pk=1e6,Xn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let gd=0;function Rk(){return gd=(gd+1)%Number.MAX_VALUE,gd.toString()}const yd=new Map,$g=t=>{if(yd.has(t))return;const e=setTimeout(()=>{yd.delete(t),Oo({type:Xn.REMOVE_TOAST,toastId:t})},Pk);yd.set(t,e)},Ok=(t,e)=>{switch(e.type){case Xn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,Ak)};case Xn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case Xn.DISMISS_TOAST:{const{toastId:n}=e;
40return n?$g(n):t.toasts.forEach(i=>{$g(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case Xn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Ml=[];let Il={toasts:[]};function Oo(t){Il=Ok(Il,t),Ml.forEach(e=>{e(Il)})}function Lk({...t}){const e=Rk(),n=a=>Oo({type:Xn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>Oo({type:Xn.DISMISS_TOAST,toastId:e});return Oo({type:Xn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:n}}function Mk(){const[t,e]=M.useState(Il);return M.useEffect(()=>(Ml.push(e),()=>{const n=Ml.indexOf(e);n>-1&&Ml.splice(n,1)}),[t]),{...t,toast:Lk,dismiss:n=>Oo({type:Xn.DISMISS_TOAST,toastId:n})}}function zv(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=zv(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function $v(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=zv(t))&&(i&&(i+=" "),i+=e);return i}const Wg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Hg=$v,Ik=(t,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return Hg(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:l}=e,c=Object.keys(a).map(m=>{const y=n==null?void 0:n[m],v=l==null?void 0:l[m];if(y===null)return null;const w=Wg(y)||Wg(v);return a[m][w]}),d=n&&Object.entries(n).reduce((m,y)=>{let[v,w]=y;return w===void 0||(m[v]=w),m},{}),f=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((m,y)=>{let{class:v,className:w,...S}=y;return Object.entries(S).every(T=>{let[E,k]=T;return Array.isArray(k)?k.includes({...l,...d}[E]):{...l,...d}[E]===k})?[...m,v,w]:m},[]);return Hg(t,c,f,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const Dk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wv=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var Bk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const Fk=M.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:c,...d},f)=>M.createElement("svg",{ref:f,...Bk,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:Wv("lucide",a),...d},[...c.map(([m,y])=>M.createElement(m,y)),...Array.isArray(l)?l:[l]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Oe=(t,e)=>{const n=M.forwardRef(({className:i,...a},l)=>M.createElement(Fk,{ref:l,iconNode:e,className:Wv(`lucide-${Dk(t)}`,i),...a}));return n.displayName=`${t}`,n};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Vk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Uk=Oe("ArrowRight",Vk);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const zk=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Hv=Oe("Award",zk);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const $k=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
75],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Wk=Oe("Building2",$k);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const Hk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ea=Oe("ChevronDown",Hk);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const qk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],qv=Oe("ChevronLeft",qk);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const Kk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Kv=Oe("ChevronRight",Kk);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Gk=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Gv=Oe("CreditCard",Gk);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const Qk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],Yk=Oe("Crosshair",Qk);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const Xk=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],Jk=Oe("Crown",Xk);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const Zk=[["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"}]],e2=Oe("ExternalLink",Zk);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const t2=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Qv=Oe("Facebook",t2);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const n2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Yv=Oe("Film",n2);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const r2=[["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"}]],Xv=Oe("Globe",r2);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const s2=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],i2=Oe("House",s2);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const o2=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Jv=Oe("Instagram",o2);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const a2=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Zv=Oe("Mail",a2);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const l2=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],c2=Oe("Menu",l2);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const u2=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],d2=Oe("Mic",u2);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const f2=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]],ex=Oe("PhoneCall",f2);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const h2=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],qd=Oe("Play",h2);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const p2=[["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"}]],Vf=Oe("Quote",p2);
165/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const m2=[["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"}]],g2=Oe("RefreshCw",m2);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const y2=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],v2=Oe("Rocket",y2);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const x2=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],tx=Oe("Sparkles",x2);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const w2=[["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"}]],b2=Oe("Target",w2);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const S2=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],k2=Oe("Timer",S2);/** 191 * @license lucide-react v0.475.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const E2=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],_2=Oe("TrendingUp",E2);/** 196 * @license lucide-react v0.475.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const T2=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],nx=Oe("Trophy",T2);/** 201 * @license lucide-react v0.475.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const C2=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],N2=Oe("Users",C2);/** 206 * @license lucide-react v0.475.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const j2=[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]],A2=Oe("Warehouse",j2);/** 211 * @license lucide-react v0.475.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const P2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,240 bytes, lines 215-225
215],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ac=Oe("X",P2);/** 216 * @license lucide-react v0.475.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const R2=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],rx=Oe("Youtube",R2);/** 221 * @license lucide-react v0.475.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const O2=[["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"}]],L2=Oe("Zap",O2),M2=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},I2=(t,e)=>({classGroupId:t,validator:e}),sx=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Kl="-",qg=[],D2="arbitrary..",B2=t=>{const e=V2(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return F2(c);const d=c.split(Kl),f=d[0]===""&&d.length>1?1:0;return ix(d,f,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=i[c],m=n[c];return f?m?M2(m,f):f:m||qg}return n[c]||qg}}},ix=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const m=ix(t,e+1,l);if(m)return m}const c=n.validators;if(c===null)return;const d=e===0?t.join(Kl):t.slice(e).join(Kl),f=c.length;for(let m=0;m<f;m++){const y=c[m];if(y.validator(d))return y.classGroupId}},F2=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?D2+i:void 0})(),V2=t=>{const{theme:e,classGroups:n}=t;return U2(n,e)},U2=(t,e)=>{const n=sx();for(const i in t){const a=t[i];Uf(a,n,i,e)}return n},Uf=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const c=t[l];z2(c,e,n,i)}},z2=(t,e,n,i)=>{if(typeof t=="string"){$2(t,e,n);return}if(typeof t=="function"){W2(t,e,n,i);return}H2(t,e,n,i)},$2=(t,e,n)=>{const i=t===""?e:ox(e,t);i.classGroupId=n},W2=(t,e,n,i)=>{if(q2(t)){Uf(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(I2(n,t))},H2=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let c=0;c<l;c++){const[d,f]=a[c];Uf(f,ox(e,d),n,i)}},ox=(t,e)=>{let n=t;const i=e.split(Kl),a=i.length;for(let l=0;l<a;l++){const c=i[l];let d=n.nextPart.get(c);d||(d=sx(),n.nextPart.set(c,d)),n=d}return n},q2=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,K2=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const a=(l,c)=>{n[l]=c,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return a(l,c),c},set(l,c){l in n?n[l]=c:a(l,c)}}},Kd="!",Kg=":",G2=[],Gg=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Q2=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const l=[];let c=0,d=0,f=0,m;const y=a.length;for(let E=0;E<y;E++){const k=a[E];if(c===0&&d===0){if(k===Kg){l.push(a.slice(f,E)),f=E+1;continue}if(k==="/"){m=E;continue}}k==="["?c++:k==="]"?c--:k==="("?d++:k===")"&&d--}const v=l.length===0?a:a.slice(f);let w=v,S=!1;v.endsWith(Kd)?(w=v.slice(0,-1),S=!0):v.startsWith(Kd)&&(w=v.slice(1),S=!0);const T=m&&m>f?m-f:void 0;return Gg(l,S,w,T)};if(e){const a=e+Kg,l=i;i=c=>c.startsWith(a)?l(c.slice(a.length)):Gg(G2,!1,c,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},Y2=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const c=n[l],d=c[0]==="[",f=e.has(c);d||f?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(c)):a.push(c)}return a.length>0&&(a.sort(),i.push(...a)),i}},X2=t=>({cache:K2(t.cacheSize),parseClassName:Q2(t),sortModifiers:Y2(t),...B2(t)}),J2=/\s+/,Z2=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,c=[],d=t.trim().split(J2);let f="";for(let m=d.length-1;m>=0;m-=1){const y=d[m],{isExternal:v,modifiers:w,hasImportantModifier:S,baseClassName:T,maybePostfixModifierPosition:E}=n(y);if(v){f=y+(f.length>0?" "+f:f);continue}let k=!!E,b=i(k?T.substring(0,E):T);if(!b){if(!k){f=y+(f.length>0?" "+f:f);continue}if(b=i(T),!b){f=y+(f.length>0?" "+f:f);continue}k=!1}const j=w.length===0?"":w.length===1?w[0]:l(w).join(":"),C=S?j+Kd:j,R=C+b;if(c.indexOf(R)>-1)continue;c.push(R);const D=a(b,k);for(let z=0;z<D.length;++z){const J=D[z];c.push(C+J)}f=y+(f.length>0?" "+f:f)}return f},eE=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=ax(n))&&(a&&(a+=" "),a+=i);return a},ax=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=ax(t[i]))&&(n&&(n+=" "),n+=e);return n},tE=(t,...e)=>{let n,i,a,l;const c=f=>{const m=e.reduce((y,v)=>v(y),t());return n=X2(m),i=n.cache.get,a=n.cache.set,l=d,d(f)},d=f=>{const m=i(f);if(m)return m;const y=Z2(f,n);return a(f,y),y};return l=c,(...f)=>l(eE(...f))},nE=[],at=t=>{const e=n=>n[t]||nE;return e.isThemeGetter=!0,e},lx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,sE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Er=t=>rE.test(t),Ee=t=>!!t&&!Number.isNaN(Number(t)),_r=t=>!!t&&Number.isInteger(Number(t)),vd=t=>t.endsWith("%")&&Ee(t.slice(0,-1)),qn=t=>sE.test(t),ux=()=>!0,cE=t=>iE.test(t)&&!oE.test(t),zf=()=>!1,uE=t=>aE.test(t),dE=t=>lE.test(t),fE=t=>!se(t)&&!oe(t),hE=t=>$r(t,hx,zf),se=t=>lx.test(t),ss=t=>$r(t,px,cE),Qg=t=>$r(t,bE,Ee),pE=t=>$r(t,gx,ux),mE=t=>$r(t,mx,zf),Yg=t=>$r(t,dx,zf),gE=t=>$r(t,fx,dE),El=t=>$r(t,yx,uE),oe=t=>cx.test(t),wo=t=>js(t,px),yE=t=>js(t,mx),Xg=t=>js(t,dx),vE=t=>js(t,hx),xE=t=>js(t,fx),_l=t=>js(t,yx,!0),wE=t=>js(t,gx,!0),$r=(t,e,n)=>{const i=lx.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},js=(t,e,n=!1)=>{const i=cx.exec(t);return i?i[1]?e(i[1]):n:!1},dx=t=>t==="position"||t==="percentage",fx=t=>t==="image"||t==="url",hx=t=>t==="length"||t==="size"||t==="bg-size",px=t=>t==="length",bE=t=>t==="number",mx=t=>t==="family-name",gx=t=>t==="number"||t==="weight",yx=t=>t==="shadow",SE=()=>{const t=at("color"),e=at("font"),n=at("text"),i=at("font-weight"),a=at("tracking"),l=at("leading"),c=at("breakpoint"),d=at("container"),f=at("spacing"),m=at("radius"),y=at("shadow"),v=at("inset-shadow"),w=at("text-shadow"),S=at("drop-shadow"),T=at("blur"),E=at("perspective"),k=at("aspect"),b=at("ease"),j=at("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...R(),oe,se],z=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],F=()=>[oe,se,f],ee=()=>[Er,"full","auto",...F()],ue=()=>[_r,"none","subgrid",oe,se],ke=()=>["auto",{span:["full",_r,oe,se]},_r,oe,se],Pe=()=>[_r,"auto",oe,se],Me=()=>["auto","min","max","fr",oe,se],Ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Be=()=>["start","end","center","stretch","center-safe","end-safe"],he=()=>["auto",...F()],ce=()=>[Er,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],K=()=>[Er,"screen","full","dvw","lvw","svw","min","max","fit",...F()],ie=()=>[Er,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],U=()=>[t,oe,se],L=()=>[...R(),Xg,Yg,{position:[oe,se]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",vE,hE,{size:[oe,se]}],ve=()=>[vd,wo,ss],pe=()=>["","none","full",m,oe,se],Y=()=>["",Ee,wo,ss],be=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Ee,vd,Xg,Yg],lt=()=>["","none",T,oe,se],Gt=()=>["none",Ee,oe,se],ht=()=>["none",Ee,oe,se],un=()=>[Ee,oe,se],Qt=()=>[Er,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qn],breakpoint:[qn],color:[ux],container:[qn],"drop-shadow":[qn],ease:["in","out","in-out"],font:[fE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qn],shadow:[qn],spacing:["px",Ee],text:[qn],"text-shadow":[qn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Er,se,oe,k]}
vendor: 6,146 bytes, line 225
225],container:["container"],columns:[{columns:[Ee,se,oe,d]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[_r,"auto",oe,se]}],basis:[{basis:[Er,"full","auto",d,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,Er,"auto","initial","none",se]}],grow:[{grow:["",Ee,oe,se]}],shrink:[{shrink:["",Ee,oe,se]}],order:[{order:[_r,"first","last","none",oe,se]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Me()}],"auto-rows":[{"auto-rows":Me()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...Ce(),"normal"]}],"justify-items":[{"justify-items":[...Be(),"normal"]}],"justify-self":[{"justify-self":["auto",...Be()]}],"align-content":[{content:["normal",...Ce()]}],"align-items":[{items:[...Be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Be(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ce()}],"place-items":[{"place-items":[...Be(),"baseline"]}],"place-self":[{"place-self":["auto",...Be()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:he()}],mx:[{mx:he()}],my:[{my:he()}],ms:[{ms:he()}],me:[{me:he()}],mbs:[{mbs:he()}],mbe:[{mbe:he()}],mt:[{mt:he()}],mr:[{mr:he()}],mb:[{mb:he()}],ml:[{ml:he()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[d,"screen",...ce()]}],"min-w":[{"min-w":[d,"screen","none",...ce()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",n,wo,ss]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,wE,pE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vd,se]}],"font-family":[{font:[yE,mE,e]}],"font-features":[{"font-features":[se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,oe,se]}],"line-clamp":[{"line-clamp":[Ee,"none",oe,Qg]}],leading:[{leading:[l,...F()]}],"list-image":[{"list-image":["none",oe,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",oe,ss]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[Ee,"auto",oe,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_r,oe,se],radial:["",oe,se],conic:[_r,oe,se]},xE,gE]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:ve()}
vendor: 7,388 bytes, line 225
225],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-bs":[{"border-bs":Y()}],"border-w-be":[{"border-be":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-bs":[{"border-bs":U()}],"border-color-be":[{"border-be":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,oe,se]}],"outline-w":[{outline:["",Ee,wo,ss]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",y,_l,El]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",v,_l,El]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[Ee,ss]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",w,_l,El]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[Ee,oe,se]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[oe,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,se]}],filter:[{filter:["","none",oe,se]}],blur:[{blur:lt()}],brightness:[{brightness:[Ee,oe,se]}],contrast:[{contrast:[Ee,oe,se]}],"drop-shadow":[{"drop-shadow":["","none",S,_l,El]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",Ee,oe,se]}],"hue-rotate":[{"hue-rotate":[Ee,oe,se]}],invert:[{invert:["",Ee,oe,se]}],saturate:[{saturate:[Ee,oe,se]}],sepia:[{sepia:["",Ee,oe,se]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,se]}],"backdrop-blur":[{"backdrop-blur":lt()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,oe,se]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,oe,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,oe,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,oe,se]}],"backdrop-invert":[{"backdrop-invert":["",Ee,oe,se]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,oe,se]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,oe,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,oe,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",oe,se]}],ease:[{ease:["linear","initial",b,oe,se]}],delay:[{delay:[Ee,oe,se]}],animate:[{animate:["none",j,oe,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,oe,se]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Gt()}],"rotate-x":[{"rotate-x":Gt()}],"rotate-y":[{"rotate-y":Gt()}],"rotate-z":[{"rotate-z":Gt()}],scale:[{scale:ht()}],"scale-x":[{"scale-x":ht()}],"scale-y":[{"scale-y":ht()}],"scale-z":[{"scale-z":ht()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[oe,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qt()}],"translate-x":[{"translate-x":Qt()}],"translate-y":[{"translate-y":Qt()}],"translate-z":[{"translate-z":Qt()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}
vendor: 4,722 bytes, line 225
225],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe,se]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[Ee,wo,ss,Qg]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}
225,kE=tE(SE);function ta(...t){return kE($v(t))}const vx=M.forwardRef(({...t},e)=>p.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));vx.displayName="ToastProvider";const xx=M.forwardRef(({...t},e)=>p.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));xx.displayName="ToastViewport";const EE=Ik("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),wx=M.forwardRef(({className:t,variant:e,...n},i)=>p.jsx("div",{ref:i,className:ta(EE({variant:e}),t),...n}));wx.displayName="Toast";const _E=M.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:ta("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));_E.displayName="ToastAction";const bx=M.forwardRef(({className:t,...e},n)=>p.jsx("button",{ref:n,className:ta("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:p.jsx(ac,{className:"h-4 w-4"})}));bx.displayName="ToastClose";const Sx=M.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:ta("text-sm font-semibold",t),...e}));Sx.displayName="ToastTitle";const kx=M.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:ta("text-sm opacity-90",t),...e}));kx.displayName="ToastDescription";function TE(){const{toasts:t}=Mk();return p.jsxs(vx,{children:[t.map(function({id:e,title:n,description:i,action:a,...l}){return p.jsxs(wx,{...l,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(Sx,{children:n}),i&&p.jsx(kx,{children:i})]}),a,p.jsx(bx,{})]},e)}),p.jsx(xx,{})]})}var na=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},CE={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Nr,Bf,jv,NE=(jv=class{constructor(){me(this,Nr,CE);me(this,Bf,!1)}setTimeoutProvider(t){te(this,Nr,t)}setTimeout(t,e){return A(this,Nr).setTimeout(t,e)}clearTimeout(t){A(this,Nr).clearTimeout(t)}setInterval(t,e){return A(this,Nr).setInterval(t,e)}clearInterval(t){A(this,Nr).clearInterval(t)}},Nr=new WeakMap,Bf=new WeakMap,jv),ds=new NE;function jE(t){setTimeout(t,0)}var _s=typeof window>"u"||"Deno"in globalThis;function Vt(){}function AE(t,e){return typeof t=="function"?t(e):t}function Gd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ex(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Br(t,e){return typeof t=="function"?t(e):t}function an(t,e){return typeof t=="function"?t(e):t}function Jg(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:c,stale:d}=t;if(c){if(i){if(e.queryHash!==$f(c,e.options))return!1}else if(!Vo(e.queryKey,c))return!1}if(n!=="all"){const f=e.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||a&&a!==e.state.fetchStatus||l&&!l(e))}function Zg(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Fo(e.options.mutationKey)!==Fo(l))return!1}else if(!Vo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function $f(t,e){return((e==null?void 0:e.queryKeyHashFn)||Fo)(t)}function Fo(t){return JSON.stringify(t,(e,n)=>Yd(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function Vo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Vo(t[n],e[n])):!1}var PE=Object.prototype.hasOwnProperty;function _x(t,e,n=0){if(t===e)return t;if(n>500)return e;const i=ey(t)&&ey(e);if(!i&&!(Yd(t)&&Yd(e)))return e;const l=(i?t:Object.keys(t)).length,c=i?e:Object.keys(e),d=c.length,f=i?new Array(d):{};let m=0;for(let y=0;y<d;y++){const v=i?y:c[y],w=t[v],S=e[v];
225if(w===S){f[v]=w,(i?y<l:PE.call(t,v))&&m++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){f[v]=S;continue}const T=_x(w,S,n+1);f[v]=T,T===w&&m++}return l===d&&m===l?t:f}function Qd(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function ey(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Yd(t){if(!ty(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!ty(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function ty(t){return Object.prototype.toString.call(t)==="[object Object]"}function RE(t){return new Promise(e=>{ds.setTimeout(e,t)})}function Xd(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?_x(t,e):e}function OE(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function LE(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var Wf=Symbol();function Tx(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Wf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Cx(t,e){return typeof t=="function"?t(...e):!!t}function ME(t,e,n){let i=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),i||(i=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),t}var ps,jr,fi,Av,IE=(Av=class extends na{constructor(){super();me(this,ps);me(this,jr);me(this,fi);te(this,fi,e=>{if(!_s&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,jr)||this.setEventListener(A(this,fi))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,jr))==null||e.call(this),te(this,jr,void 0))}setEventListener(e){var n;te(this,fi,e),(n=A(this,jr))==null||n.call(this),te(this,jr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){A(this,ps)!==e&&(te(this,ps,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof A(this,ps)=="boolean"?A(this,ps):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ps=new WeakMap,jr=new WeakMap,fi=new WeakMap,Av),Hf=new IE;function Jd(){let t,e;const n=new Promise((a,l)=>{t=a,e=l});n.status="pending",n.catch(()=>{});function i(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},n.reject=a=>{i({status:"rejected",reason:a}),e(a)},n}var DE=jE;function BE(){let t=[],e=0,n=d=>{d()},i=d=>{d()},a=DE;const l=d=>{e?t.push(d):a(()=>{n(d)})},c=()=>{const d=t;t=[],d.length&&a(()=>{i(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;e++;try{f=d()}finally{e--,e||c()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var xt=BE(),hi,Ar,pi,Pv,FE=(Pv=class extends na{constructor(){super();me(this,hi,!0);me(this,Ar);me(this,pi);te(this,pi,e=>{if(!_s&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){A(this,Ar)||this.setEventListener(A(this,pi))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Ar))==null||e.call(this),te(this,Ar,void 0))}setEventListener(e){var n;te(this,pi,e),(n=A(this,Ar))==null||n.call(this),te(this,Ar,e(this.setOnline.bind(this)))}setOnline(e){A(this,hi)!==e&&(te(this,hi,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return A(this,hi)}},hi=new WeakMap,Ar=new WeakMap,pi=new WeakMap,Pv),Gl=new FE;function VE(t){return Math.min(1e3*2**t,3e4)}function Nx(t){return(t??"online")==="online"?Gl.isOnline():!0}var Zd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function jx(t){let e=!1,n=0,i;const a=Jd(),l=()=>a.status!=="pending",c=E=>{var k;if(!l()){const b=new Zd(E);w(b),(k=t.onCancel)==null||k.call(t,b)}},d=()=>{e=!0},f=()=>{e=!1},m=()=>Hf.isFocused()&&(t.networkMode==="always"||Gl.isOnline())&&t.canRun(),y=()=>Nx(t.networkMode)&&t.canRun(),v=E=>{l()||(i==null||i(),a.resolve(E))},w=E=>{l()||(i==null||i(),a.reject(E))},S=()=>new Promise(E=>{var k;i=b=>{(l()||m())&&E(b)},(k=t.onPause)==null||k.call(t)}).then(()=>{var E;i=void 0,l()||(E=t.onContinue)==null||E.call(t)}),T=()=>{if(l())return;let E;const k=n===0?t.initialPromise:void 0;try{E=k??t.fn()}catch(b){E=Promise.reject(b)}Promise.resolve(E).then(v).catch(b=>{var z;if(l())return;const j=t.retry??(_s?0:3),C=t.retryDelay??VE,R=typeof C=="function"?C(n,b):C,D=j===!0||typeof j=="number"&&n<j||typeof j=="function"&&j(n,b);
225if(e||!D){w(b);return}n++,(z=t.onFail)==null||z.call(t,n,b),RE(R).then(()=>m()?void 0:S()).then(()=>{e?w(b):T()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:f,canStart:y,start:()=>(y()?T():S().then(T),a)}}var ms,Rv,Ax=(Rv=class{constructor(){me(this,ms)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gd(this.gcTime)&&te(this,ms,ds.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(_s?1/0:300*1e3))}clearGcTimeout(){A(this,ms)&&(ds.clearTimeout(A(this,ms)),te(this,ms,void 0))}},ms=new WeakMap,Rv),gs,mi,on,ys,ft,Qo,vs,Sn,Gn,Ov,UE=(Ov=class extends Ax{constructor(e){super();me(this,Sn);me(this,gs);me(this,mi);me(this,on);me(this,ys);me(this,ft);me(this,Qo);me(this,vs);te(this,vs,!1),te(this,Qo,e.defaultOptions),this.setOptions(e.options),this.observers=[],te(this,ys,e.client),te(this,on,A(this,ys).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,te(this,gs,ry(this.options)),this.state=e.state??A(this,gs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=A(this,ft))==null?void 0:e.promise}setOptions(e){if(this.options={...A(this,Qo),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ry(this.options);n.data!==void 0&&(this.setState(ny(n.data,n.dataUpdatedAt)),te(this,gs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,on).remove(this)}setData(e,n){const i=Xd(this.state.data,e,this.options);return Ne(this,Sn,Gn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){Ne(this,Sn,Gn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=A(this,ft))==null?void 0:i.promise;return(a=A(this,ft))==null||a.cancel(e),n?n.then(Vt).catch(Vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,gs))}isActive(){return this.observers.some(e=>an(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Br(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ex(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,ft))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,ft))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,on).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(A(this,ft)&&(A(this,vs)?A(this,ft).cancel({revert:!0}):A(this,ft).cancelRetry()),this.scheduleGc()),A(this,on).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,Sn,Gn).call(this,{type:"invalidate"})}async fetch(e,n){var f,m,y,v,w,S,T,E,k,b,j,C;if(this.state.fetchStatus!=="idle"&&((f=A(this,ft))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,ft))return A(this,ft).continueRetry(),A(this,ft).promise}if(e&&this.setOptions(e),!this.options.queryFn){const R=this.observers.find(D=>D.options.queryFn);R&&this.setOptions(R.options)}const i=new AbortController,a=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(te(this,vs,!0),i.signal)})},l=()=>{const R=Tx(this.options,n),z=(()=>{const J={client:A(this,ys),queryKey:this.queryKey,meta:this.meta};return a(J),J})();return te(this,vs,!1),this.options.persister?this.options.persister(R,z,this):R(z)},d=(()=>{const R={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,ys),state:this.state,fetchFn:l};return a(R),R})();(m=this.options.behavior)==null||m.onFetch(d,this),te(this,mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&Ne(this,Sn,Gn).call(this,{type:"fetch",meta:(v=d.fetchOptions)==null?void 0:v.meta}),te(this,ft,jx({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:R=>{R instanceof Zd&&R.revert&&this.setState({...A(this,mi),fetchStatus:"idle"}),i.abort()},onFail:(R,D)=>{Ne(this,Sn,Gn).call(this,{type:"failed",failureCount:R,error:D})},onPause:()=>{Ne(this,Sn,Gn).call(this,{type:"pause"})},onContinue:()=>{Ne(this,Sn,Gn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const R=await A(this,ft).start();if(R===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(R),(S=(w=A(this,on).config).onSuccess)==null||S.call(w,R,this),(E=(T=A(this,on).config).onSettled)==null||E.call(T,R,this.state.error,this),R}catch(R){if(R instanceof Zd){if(R.silent)return A(this,ft).promise;
225if(R.revert){if(this.state.data===void 0)throw R;return this.state.data}}throw Ne(this,Sn,Gn).call(this,{type:"error",error:R}),(b=(k=A(this,on).config).onError)==null||b.call(k,R,this),(C=(j=A(this,on).config).onSettled)==null||C.call(j,this.state.data,R,this),R}finally{this.scheduleGc()}}},gs=new WeakMap,mi=new WeakMap,on=new WeakMap,ys=new WeakMap,ft=new WeakMap,Qo=new WeakMap,vs=new WeakMap,Sn=new WeakSet,Gn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Px(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...ny(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,mi,e.manual?a:void 0),a;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),xt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,on).notify({query:this,type:"updated",action:e})})},Ov);function Px(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nx(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ny(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ry(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ft,je,Yo,Rt,xs,gi,Qn,Pr,Xo,yi,vi,ws,bs,Rr,xi,De,_o,ef,tf,nf,rf,sf,of,af,Rx,Lv,zE=(Lv=class extends na{constructor(e,n){super();me(this,De);me(this,Ft);me(this,je);me(this,Yo);me(this,Rt);me(this,xs);me(this,gi);me(this,Qn);me(this,Pr);me(this,Xo);me(this,yi);me(this,vi);me(this,ws);me(this,bs);me(this,Rr);me(this,xi,new Set);this.options=n,te(this,Ft,e),te(this,Pr,null),te(this,Qn,Jd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,je).addObserver(this),sy(A(this,je),this.options)?Ne(this,De,_o).call(this):this.updateResult(),Ne(this,De,rf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lf(A(this,je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lf(A(this,je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ne(this,De,sf).call(this),Ne(this,De,of).call(this),A(this,je).removeObserver(this)}setOptions(e){const n=this.options,i=A(this,je);if(this.options=A(this,Ft).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof an(this.options.enabled,A(this,je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ne(this,De,af).call(this),A(this,je).setOptions(this.options),n._defaulted&&!Qd(this.options,n)&&A(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,je),observer:this});const a=this.hasListeners();a&&iy(A(this,je),i,this.options,n)&&Ne(this,De,_o).call(this),this.updateResult(),a&&(A(this,je)!==i||an(this.options.enabled,A(this,je))!==an(n.enabled,A(this,je))||Br(this.options.staleTime,A(this,je))!==Br(n.staleTime,A(this,je)))&&Ne(this,De,ef).call(this);const l=Ne(this,De,tf).call(this);a&&(A(this,je)!==i||an(this.options.enabled,A(this,je))!==an(n.enabled,A(this,je))||l!==A(this,Rr))&&Ne(this,De,nf).call(this,l)}getOptimisticResult(e){const n=A(this,Ft).getQueryCache().build(A(this,Ft),e),i=this.createResult(n,e);return WE(this,i)&&(te(this,Rt,i),te(this,gi,this.options),te(this,xs,A(this,je).state)),i}getCurrentResult(){return A(this,Rt)}trackResult(e,n){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&A(this,Qn).status==="pending"&&A(this,Qn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){A(this,xi).add(e)}getCurrentQuery(){return A(this,je)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=A(this,Ft).defaultQueryOptions(e),i=A(this,Ft).getQueryCache().build(A(this,Ft),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return Ne(this,De,_o).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,Rt)))}createResult(e,n){var ee;const i=A(this,je),a=this.options,l=A(this,Rt),c=A(this,xs),d=A(this,gi),m=e!==i?e.state:A(this,Yo),{state:y}=e;let v={...y},w=!1,S;if(n._optimisticResults){const ue=this.hasListeners(),ke=!ue&&sy(e,n),Pe=ue&&iy(e,i,n,a);(ke||Pe)&&(v={...v,...Px(y.data,e.options)}),n._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:T,errorUpdatedAt:E,status:k}=v;S=v.data;let b=!1;if(n.placeholderData!==void 0&&S===void 0&&k==="pending"){let ue;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(ue=l.data,b=!0):ue=typeof n.placeholderData=="function"?n.placeholderData((ee=A(this,vi))==null?void 0:ee.state.data,A(this,vi)):n.placeholderData,ue!==void 0&&(k="success",S=Xd(l==null?void 0:l.data,ue,n),w=!0)}if(n.select&&S!==void 0&&!b)if(l&&S===(c==null?void 0:c.data)&&n.select===A(this,Xo))S=A(this,yi);else try{te(this,Xo,n.select),S=n.select(S),S=Xd(l==null?void 0:l.data,S,n),te(this,yi,S),te(this,Pr,null)}catch(ue){te(this,Pr,ue)}A(this,Pr)&&(T=A(this,Pr),S=A(this,yi),E=Date.now(),k="error");const j=v.fetchStatus==="fetching",C=k==="pending",R=k==="error",D=C&&j,z=S!==void 0,F={status:k,fetchStatus:v.fetchStatus,isPending:C,isSuccess:k==="success",isError:R,isInitialLoading:D,isLoading:D,data:S,dataUpdatedAt:v.dataUpdatedAt,error:T,errorUpdatedAt:E,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdate
225Count:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:j,isRefetching:j&&!C,isLoadingError:R&&!z,isPaused:v.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:R&&z,isStale:qf(e,n),refetch:this.refetch,promise:A(this,Qn),isEnabled:an(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ue=F.data!==void 0,ke=F.status==="error"&&!ue,Pe=Be=>{ke?Be.reject(F.error):ue&&Be.resolve(F.data)},Me=()=>{const Be=te(this,Qn,F.promise=Jd());Pe(Be)},Ce=A(this,Qn);switch(Ce.status){case"pending":e.queryHash===i.queryHash&&Pe(Ce);break;case"fulfilled":(ke||F.data!==Ce.value)&&Me();break;case"rejected":(!ke||F.error!==Ce.reason)&&Me();break}}return F}updateResult(){const e=A(this,Rt),n=this.createResult(A(this,je),this.options);if(te(this,xs,A(this,je).state),te(this,gi,this.options),A(this,xs).data!==void 0&&te(this,vi,A(this,je)),Qd(n,e))return;te(this,Rt,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!A(this,xi).size)return!0;const c=new Set(l??A(this,xi));return this.options.throwOnError&&c.add("error"),Object.keys(A(this,Rt)).some(d=>{const f=d;return A(this,Rt)[f]!==e[f]&&c.has(f)})};Ne(this,De,Rx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ne(this,De,rf).call(this)}},Ft=new WeakMap,je=new WeakMap,Yo=new WeakMap,Rt=new WeakMap,xs=new WeakMap,gi=new WeakMap,Qn=new WeakMap,Pr=new WeakMap,Xo=new WeakMap,yi=new WeakMap,vi=new WeakMap,ws=new WeakMap,bs=new WeakMap,Rr=new WeakMap,xi=new WeakMap,De=new WeakSet,_o=function(e){Ne(this,De,af).call(this);let n=A(this,je).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Vt)),n},ef=function(){Ne(this,De,sf).call(this);const e=Br(this.options.staleTime,A(this,je));if(_s||A(this,Rt).isStale||!Gd(e))return;const i=Ex(A(this,Rt).dataUpdatedAt,e)+1;te(this,ws,ds.setTimeout(()=>{A(this,Rt).isStale||this.updateResult()},i))},tf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,je)):this.options.refetchInterval)??!1}
225,nf=function(e){Ne(this,De,of).call(this),te(this,Rr,e),!(_s||an(this.options.enabled,A(this,je))===!1||!Gd(A(this,Rr))||A(this,Rr)===0)&&te(this,bs,ds.setInterval(()=>{(this.options.refetchIntervalInBackground||Hf.isFocused())&&Ne(this,De,_o).call(this)},A(this,Rr)))},rf=function(){Ne(this,De,ef).call(this),Ne(this,De,nf).call(this,Ne(this,De,tf).call(this))},sf=function(){A(this,ws)&&(ds.clearTimeout(A(this,ws)),te(this,ws,void 0))},of=function(){A(this,bs)&&(ds.clearInterval(A(this,bs)),te(this,bs,void 0))},af=function(){const e=A(this,Ft).getQueryCache().build(A(this,Ft),this.options);if(e===A(this,je))return;const n=A(this,je);te(this,je,e),te(this,Yo,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Rx=function(e){xt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(A(this,Rt))}),A(this,Ft).getQueryCache().notify({query:A(this,je),type:"observerResultsUpdated"})})},Lv);function $E(t,e){return an(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function sy(t,e){return $E(t,e)||t.state.data!==void 0&&lf(t,e,e.refetchOnMount)}function lf(t,e,n){if(an(e.enabled,t)!==!1&&Br(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&qf(t,e)}return!1}function iy(t,e,n,i){return(t!==e||an(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&qf(t,n)}function qf(t,e){return an(e.enabled,t)!==!1&&t.isStaleByTime(Br(e.staleTime,t))}function WE(t,e){return!Qd(t.getCurrentResult(),e)}function oy(t){return{onFetch:(e,n)=>{var y,v,w,S,T;const i=e.options,a=(w=(v=(y=e.fetchOptions)==null?void 0:y.meta)==null?void 0:v.fetchMore)==null?void 0:w.direction,l=((S=e.state.data)==null?void 0:S.pages)||[],c=((T=e.state.data)==null?void 0:T.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const m=async()=>{let E=!1;const k=C=>{ME(C,()=>e.signal,()=>E=!0)},b=Tx(e.options,e.fetchOptions),j=async(C,R,D)=>{if(E)return Promise.reject();if(R==null&&C.pages.length)return Promise.resolve(C);const J=(()=>{const ke={client:e.client,queryKey:e.queryKey,pageParam:R,direction:D?"backward":"forward",meta:e.options.meta};return k(ke),ke})(),F=await b(J),{maxPages:ee}=e.options,ue=D?LE:OE;return{pages:ue(C.pages,F,ee),pageParams:ue(C.pageParams,R,ee)}};if(a&&l.length){const C=a==="backward",R=C?HE:ay,D={pages:l,pageParams:c},z=R(i,D);d=await j(D,z,C)}else{const C=t??l.length;do{const R=f===0?c[0]??i.initialPageParam:ay(i,d);if(f>0&&R==null)break;d=await j(d,R),f++}while(f<C)}return d};e.options.persister?e.fetchFn=()=>{var E,k;return(k=(E=e.options).persister)==null?void 0:k.call(E,m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=m}}}function ay(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function HE(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var Jo,An,Tt,Ss,Pn,Tr,Mv,qE=(Mv=class extends Ax{constructor(e){super();me(this,Pn);me(this,Jo);me(this,An);me(this,Tt);me(this,Ss);te(this,Jo,e.client),this.mutationId=e.mutationId,te(this,Tt,e.mutationCache),te(this,An,[]),this.state=e.state||KE(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){A(this,An).includes(e)||(A(this,An).push(e),this.clearGcTimeout(),A(this,Tt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){te(this,An,A(this,An).filter(n=>n!==e)),this.scheduleGc(),A(this,Tt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,An).length||(this.state.status==="pending"?this.scheduleGc():A(this,Tt).remove(this))}continue(){var e;return((e=A(this,Ss))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var c,d,f,m,y,v,w,S,T,E,k,b,j,C,R,D,z,J;const n=()=>{Ne(this,Pn,Tr).call(this,{type:"continue"})},i={client:A(this,Jo),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,Ss,jx({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(F,ee)=>{Ne(this,Pn,Tr).call(this,{type:"failed",failureCount:F,error:ee})},onPause:()=>{Ne(this,Pn,Tr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,Tt).canRun(this)}));const a=this.state.status==="pending",l=!A(this,Ss).canStart();try{if(a)n();else{Ne(this,Pn,Tr).call(this,{type:"pending",variables:e,isPaused:l}),A(this,Tt).config.onMutate&&await A(this,Tt).config.onMutate(e,this,i);const ee=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,e,i));ee!==this.state.context&&Ne(this,Pn,Tr).call(this,{type:"pending",context:ee,variables:e,isPaused:l})}const F=await A(this,Ss).start();return await((m=(f=A(this,Tt).config).onSuccess)==null?void 0:m.call(f,F,e,this.state.context,this,i)),await((v=(y=this.options).onSuccess)==null?void 0:v.call(y,F,e,this.state.context,i)),await((S=(w=A(this,Tt).config).onSettled)==null?void 0:S.call(w,F,null,this.state.variables,this.state.context,this,i)),await((E=(T=this.options).onSettled)==null?void 0:E.
225call(T,F,null,e,this.state.context,i)),Ne(this,Pn,Tr).call(this,{type:"success",data:F}),F}catch(F){try{await((b=(k=A(this,Tt).config).onError)==null?void 0:b.call(k,F,e,this.state.context,this,i))}catch(ee){Promise.reject(ee)}try{await((C=(j=this.options).onError)==null?void 0:C.call(j,F,e,this.state.context,i))}catch(ee){Promise.reject(ee)}try{await((D=(R=A(this,Tt).config).onSettled)==null?void 0:D.call(R,void 0,F,this.state.variables,this.state.context,this,i))}catch(ee){Promise.reject(ee)}try{await((J=(z=this.options).onSettled)==null?void 0:J.call(z,void 0,F,e,this.state.context,i))}catch(ee){Promise.reject(ee)}throw Ne(this,Pn,Tr).call(this,{type:"error",error:F}),F}finally{A(this,Tt).runNext(this)}}},Jo=new WeakMap,An=new WeakMap,Tt=new WeakMap,Ss=new WeakMap,Pn=new WeakSet,Tr=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{A(this,An).forEach(i=>{i.onMutationUpdate(e)}),A(this,Tt).notify({mutation:this,type:"updated",action:e})})},Mv);function KE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yn,kn,Zo,Iv,GE=(Iv=class extends na{constructor(e={}){super();me(this,Yn);me(this,kn);me(this,Zo);this.config=e,te(this,Yn,new Set),te(this,kn,new Map),te(this,Zo,0)}build(e,n,i){const a=new qE({client:e,mutationCache:this,mutationId:++Sl(this,Zo)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){A(this,Yn).add(e);const n=Tl(e);if(typeof n=="string"){const i=A(this,kn).get(n);i?i.push(e):A(this,kn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(A(this,Yn).delete(e)){const n=Tl(e);if(typeof n=="string"){const i=A(this,kn).get(n);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&A(this,kn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Tl(e);if(typeof n=="string"){const i=A(this,kn).get(n),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const n=Tl(e);if(typeof n=="string"){const a=(i=A(this,kn).get(n))==null?void 0:i.find(l=>
225l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{A(this,Yn).forEach(e=>{this.notify({type:"removed",mutation:e})}),A(this,Yn).clear(),A(this,kn).clear()})}getAll(){return Array.from(A(this,Yn))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Zg(n,i))}findAll(e={}){return this.getAll().filter(n=>Zg(e,n))}notify(e){xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Vt))))}},Yn=new WeakMap,kn=new WeakMap,Zo=new WeakMap,Iv);function Tl(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Rn,Dv,QE=(Dv=class extends na{constructor(e={}){super();me(this,Rn);this.config=e,te(this,Rn,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??$f(a,n);let c=this.get(l);return c||(c=new UE({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(c)),c}add(e){A(this,Rn).has(e.queryHash)||(A(this,Rn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=A(this,Rn).get(e.queryHash);n&&(e.destroy(),n===e&&A(this,Rn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return A(this,Rn).get(e)}getAll(){return[...A(this,Rn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Jg(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Jg(e,i)):n}notify(e){xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Rn=new WeakMap,Dv),Ye,Or,Lr,wi,bi,Mr,Si,ki,Bv,YE=(Bv=class{constructor(t={}){me(this,Ye);me(this,Or);me(this,Lr);me(this,wi);me(this,bi);me(this,Mr);me(this,Si);me(this,ki);te(this,Ye,t.queryCache||new QE),te(this,Or,t.mutationCache||new GE),te(this,Lr,t.defaultOptions||{}),te(this,wi,new Map),te(this,bi,new Map),te(this,Mr,0)}mount(){Sl(this,Mr)._++,A(this,Mr)===1&&(te(this,Si,Hf.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,Ye).onFocus())})),te(this,ki,Gl.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,Ye).onOnline())})))}unmount(){var t,e;Sl(this,Mr)._--,A(this,Mr)===0&&((t=A(this,Si))==null||t.call(this),te(this,Si,void 0),(e=A(this,ki))==null||e.call(this),te(this,ki,void 0))}isFetching(t){return A(this,Ye).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return A(this,Or).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,Ye).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=A(this,Ye).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Br(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return A(this,Ye).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),a=A(this,Ye).get(i.queryHash),l=a==null?void 0:a.state.data,c=AE(e,l);if(c!==void 0)return A(this,Ye).build(this,i).setData(c,{...n,manual:!0})}setQueriesData(t,e,n){return xt.batch(()=>A(this,Ye).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,Ye).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,Ye);xt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,Ye);return xt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=xt.batch(()=>A(this,Ye).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(Vt).catch(Vt)}invalidateQueries(t,e={}){return xt.batch(()=>(A(this,Ye).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=xt.batch(()=>A(this,Ye).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Vt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Vt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,Ye).build(this,e);return n.isStaleByTime(Br(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Vt).catch(Vt)}fetchInfiniteQuery(t){return t.behavior=oy(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Vt).catch(Vt)}ensureInfiniteQueryData(t){return t.behavior=oy(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Gl.isOnline()?A(this,Or).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,Ye)}getMutationCache(){return A(this,Or)}getDefaultOptions(){return A(this,Lr)}setDefaultOptions(t){te(this,Lr,t)}setQueryDefaults(t,e){A(this,wi).set(Fo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,wi).values()],n={};return e.forEach(i=>
225{Vo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){A(this,bi).set(Fo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,bi).values()],n={};return e.forEach(i=>{Vo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...A(this,Lr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=$f(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Wf&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...A(this,Lr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){A(this,Ye).clear(),A(this,Or).clear()}},Ye=new WeakMap,Or=new WeakMap,Lr=new WeakMap,wi=new WeakMap,bi=new WeakMap,Mr=new WeakMap,Si=new WeakMap,ki=new WeakMap,Bv),Ox=M.createContext(void 0),XE=t=>{const e=M.useContext(Ox);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},JE=({client:t,children:e})=>(M.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),p.jsx(Ox.Provider,{value:t,children:e})),Lx=M.createContext(!1),ZE=()=>M.useContext(Lx);Lx.Provider;function e_(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var t_=M.createContext(e_()),n_=()=>M.useContext(t_),r_=(t,e,n)=>{const i=n!=null&&n.state.error&&typeof t.throwOnError=="function"?Cx(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},s_=t=>{M.useEffect(()=>{t.clearReset()},[t])},i_=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||Cx(n,[t.error,i])),o_=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>n(i(...a)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},a_=(t,e)=>t.isLoading&&t.isFetching&&!e,l_=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ly=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function c_(t,e,n){var w,S,T,E;const i=ZE(),a=n_(),l=XE(),c=l.defaultQueryOptions(t);(S=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||S.call(w,c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=i?"isRestoring":"optimistic",o_(c),r_(c,a,d),s_(a);const f=!l.getQueryCache().get(c.queryHash),[m]=M.useState(()=>new e(l,c)),y=m.getOptimisticResult(c),v=!i&&t.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(k=>{const b=v?m.subscribe(xt.batchCalls(k)):Vt;return m.updateResult(),b},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),M.useEffect(()=>{m.setOptions(c)},[c,m]),l_(c,y))throw ly(c,m,a);if(i_({result:y,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw y.error;if((E=(T=l.getDefaultOptions().queries)==null?void 0:T._experimental_afterQuery)==null||E.call(T,c,y),c.experimental_prefetchInRender&&!_s&&a_(y,i)){const k=f?ly(c,m,a):d==null?void 0:d.promise;k==null||k.catch(Vt).finally(()=>{m.updateResult()})}return c.notifyOnChangeProps?y:m.trackResult(y)}function u_(t,e){return c_(t,zE)}const d_=new YE({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var f_=Uv();/** 226 * @remix-run/router v1.23.2 227 * 228 * Copyright (c) Remix Software Inc. 229 * 230 * This source code is licensed under the MIT license found in the 231 * LICENSE.md file in the root directory of this source tree. 232 * 233 * @license MIT 234 */function Uo(){return Uo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Uo.apply(this,arguments)}var Ir;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Ir||(Ir={}));const cy="popstate";function h_(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:c,hash:d}=i.location;return cf("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
234function n(i,a){return typeof a=="string"?a:Ql(a)}return m_(e,n,null,t)}function st(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Kf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function p_(){return Math.random().toString(36).substr(2,8)}function uy(t,e){return{usr:t.state,key:t.key,idx:e}}function cf(t,e,n,i){return n===void 0&&(n=null),Uo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ni(e):e,{state:n,key:e&&e.key||i||p_()})}function Ql(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Ni(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function m_(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,c=a.history,d=Ir.Pop,f=null,m=y();m==null&&(m=0,c.replaceState(Uo({},c.state,{idx:m}),""));function y(){return(c.state||{idx:null}).idx}function v(){d=Ir.Pop;let k=y(),b=k==null?null:k-m;m=k,f&&f({action:d,location:E.location,delta:b})}function w(k,b){d=Ir.Push;let j=cf(E.location,k,b);m=y()+1;let C=uy(j,m),R=E.createHref(j);try{c.pushState(C,"",R)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;a.location.assign(R)}l&&f&&f({action:d,location:E.location,delta:1})}function S(k,b){d=Ir.Replace;let j=cf(E.location,k,b);m=y();let C=uy(j,m),R=E.createHref(j);c.replaceState(C,"",R),l&&f&&f({action:d,location:E.location,delta:0})}function T(k){let b=a.location.origin!=="null"?a.location.origin:a.location.href,j=typeof k=="string"?k:Ql(k);return j=j.replace(/ $/,"%20"),st(b,"No window.location.(origin|href) available to create URL for href: "+j),new URL(j,b)}let E={get action(){return d},get location(){return t(a,c)},listen(k){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(cy,v),f=k,()=>{a.removeEventListener(cy,v),f=null}},createHref(k){return e(a,k)},createURL:T,encodeLocation(k){let b=T(k);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:w,replace:S,go(k){return c.go(k)}};return E}var dy;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(dy||(dy={}));function g_(t,e,n){return n===void 0&&(n="/"),y_(t,e,n)}function y_(t,e,n,i){let a=typeof e=="string"?Ni(e):e,l=Gf(a.pathname||"/",n);if(l==null)return null;let c=Mx(t);v_(c);let d=null;for(let f=0;d==null&&f<c.length;++f){let m=A_(l);d=C_(c[f],m)}return d}function Mx(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let a=(l,c,d)=>{let f={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};f.relativePath.startsWith("/")&&(st(f.relativePath.startsWith(i),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(i.length));let m=Fr([i,f.relativePath]),y=n.concat(f);l.children&&l.children.length>0&&(st(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),Mx(l.children,e,y,m)),!(l.path==null&&!l.index)&&e.push({path:m,score:__(m,l.index),routesMeta:y})};return t.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,c);else for(let f of Ix(l.path))a(l,c,f)}),e}function Ix(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let c=Ix(i.join("/")),d=[];return d.push(...c.map(f=>f===""?l:[l,f].join("/"))),a&&d.push(...c),d.map(f=>t.startsWith("/")&&f===""?"/":f)}function v_(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:T_(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const x_=/^:[\w-]+$/,w_=3,b_=2,S_=1,k_=10,E_=-2,fy=t=>t==="*";function __(t,e){let n=t.split("/"),i=n.length;return n.some(fy)&&(i+=E_),e&&(i+=b_),n.filter(a=>!fy(a)).reduce((a,l)=>a+(x_.test(l)?w_:l===""?S_:k_),i)}function T_(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function C_(t,e,n){let{routesMeta:i}=t,a={},l="/",c=[];for(let d=0;d<i.length;++d){let f=i[d],m=d===i.length-1,y=l==="/"?e:e.slice(l.length)||"/",v=N_({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},y),w=f.route;if(!v)return null;
234Object.assign(a,v.params),c.push({params:a,pathname:Fr([l,v.pathname]),pathnameBase:M_(Fr([l,v.pathnameBase])),route:w}),v.pathnameBase!=="/"&&(l=Fr([l,v.pathnameBase]))}return c}function N_(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=j_(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((m,y,v)=>{let{paramName:w,isOptional:S}=y;if(w==="*"){let E=d[v]||"";c=l.slice(0,l.length-E.length).replace(/(.)\/+$/,"$1")}const T=d[v];return S&&!T?m[w]=void 0:m[w]=(T||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:t}}function j_(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Kf(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 i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,f)=>(i.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function A_(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Kf(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Gf(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}const P_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,R_=t=>P_.test(t);function O_(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:a=""}=typeof t=="string"?Ni(t):t,l;if(n)if(R_(n))l=n;else{if(n.includes("//")){let c=n;n=n.replace(/\/\/+/g,"/"),Kf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+n))}n.startsWith("/")?l=hy(n.substring(1),"/"):l=hy(n,e)}else l=e;return{pathname:l,search:I_(i),hash:D_(a)}}function hy(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function xd(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. 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 L_(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Dx(t,e){let n=L_(t);return e?n.map((i,a)=>a===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Bx(t,e,n,i){i===void 0&&(i=!1);let a;typeof t=="string"?a=Ni(t):(a=Uo({},t),st(!a.pathname||!a.pathname.includes("?"),xd("?","pathname","search",a)),st(!a.pathname||!a.pathname.includes("#"),xd("#","pathname","hash",a)),st(!a.search||!a.search.includes("#"),xd("#","search","hash",a)));let l=t===""||a.pathname==="",c=l?"/":a.pathname,d;if(c==null)d=n;else{let v=e.length-1;if(!i&&c.startsWith("..")){let w=c.split("/");for(;w[0]==="..";)w.shift(),v-=1;a.pathname=w.join("/")}d=v>=0?e[v]:"/"}let f=O_(a,d),m=c&&c!=="/"&&c.endsWith("/"),y=(l||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(m||y)&&(f.pathname+="/"),f}const Fr=t=>t.join("/").replace(/\/\/+/g,"/"),M_=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),I_=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,D_=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function B_(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Fx=["post","put","patch","delete"];new Set(Fx);const F_=["get",...Fx];new Set(F_);/** 235 * React Router v6.30.3 236 * 237 * Copyright (c) Remix Software Inc. 238 * 239 * This source code is licensed under the MIT license found in the 240 * LICENSE.md file in the root directory of this source tree. 241 * 242 * @license MIT 243 */function zo(){return zo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},zo.apply(this,arguments)}const Qf=M.createContext(null),V_=M.createContext(null),As=M.createContext(null),lc=M.createContext(null),Ps=M.createContext({outlet:null,matches:[],isDataRoute:!1}),Vx=M.createContext(null);function U_(t,e){let{relative:n}=e===void 0?{}:e;ra()||st(!1);let{basename:i,navigator:a}=M.useContext(As),{hash:l,pathname:c,search:d}=zx(t,{relative:n}),f=c;return i!=="/"&&(f=c==="/"?i:Fr([i,c])),a.createHref({pathname:f,search:d,hash:l})}function ra(){return M.useContext(lc)!=null}function sa(){return ra()||st(!1),M.useContext(lc).location}function Ux(t){M.useContext(As).static||M.useLayoutEffect(t)}function z_(){let{isDataRoute:t}=M.useContext(Ps);
243return t?tT():$_()}function $_(){ra()||st(!1);let t=M.useContext(Qf),{basename:e,future:n,navigator:i}=M.useContext(As),{matches:a}=M.useContext(Ps),{pathname:l}=sa(),c=JSON.stringify(Dx(a,n.v7_relativeSplatPath)),d=M.useRef(!1);return Ux(()=>{d.current=!0}),M.useCallback(function(m,y){if(y===void 0&&(y={}),!d.current)return;if(typeof m=="number"){i.go(m);return}let v=Bx(m,JSON.parse(c),l,y.relative==="path");t==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Fr([e,v.pathname])),(y.replace?i.replace:i.push)(v,y.state,y)},[e,i,c,l,t])}function zx(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=M.useContext(As),{matches:a}=M.useContext(Ps),{pathname:l}=sa(),c=JSON.stringify(Dx(a,i.v7_relativeSplatPath));return M.useMemo(()=>Bx(t,JSON.parse(c),l,n==="path"),[t,c,l,n])}function W_(t,e){return H_(t,e)}function H_(t,e,n,i){ra()||st(!1);let{navigator:a}=M.useContext(As),{matches:l}=M.useContext(Ps),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let f=c?c.pathnameBase:"/";c&&c.route;let m=sa(),y;if(e){var v;let k=typeof e=="string"?Ni(e):e;f==="/"||(v=k.pathname)!=null&&v.startsWith(f)||st(!1),y=k}else y=m;let w=y.pathname||"/",S=w;if(f!=="/"){let k=f.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(k.length).join("/")}let T=g_(t,{pathname:S}),E=Y_(T&&T.map(k=>Object.assign({},k,{params:Object.assign({},d,k.params),pathname:Fr([f,a.encodeLocation?a.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:Fr([f,a.encodeLocation?a.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,i);return e&&E?M.createElement(lc.Provider,{value:{location:zo({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Ir.Pop}},E):E}function q_(){let t=eT(),e=B_(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},e),n?M.createElement("pre",{style:a},n):null,null)}const K_=M.createElement(q_,null);class G_ extends M.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?M.createElement(Ps.Provider,{value:this.props.routeContext},M.createElement(Vx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Q_(t){let{routeContext:e,match:n,children:i}=t,a=M.useContext(Qf);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(Ps.Provider,{value:e},i)}function Y_(t,e,n,i){var a;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var l;if(!n)return null;if(n.errors)t=n.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let c=t,d=(a=n)==null?void 0:a.errors;if(d!=null){let y=c.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);y>=0||st(!1),c=c.slice(0,Math.min(c.length,y+1))}let f=!1,m=-1;if(n&&i&&i.v7_partialHydration)for(let y=0;y<c.length;y++){let v=c[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=y),v.route.id){let{loaderData:w,errors:S}=n,T=v.route.loader&&w[v.route.id]===void 0&&(!S||S[v.route.id]===void 0);if(v.route.lazy||T){f=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((y,v,w)=>{let S,T=!1,E=null,k=null;n&&(S=d&&v.route.id?d[v.route.id]:void 0,E=v.route.errorElement||K_,f&&(m<0&&w===0?(nT("route-fallback"),T=!0,k=null):m===w&&(T=!0,k=v.route.hydrateFallbackElement||null)));let b=e.concat(c.slice(0,w+1)),j=()=>{let C;return S?C=E:T?C=k:v.route.Component?C=M.createElement(v.route.Component,null):v.route.element?C=v.route.element:C=y,M.createElement(Q_,{match:v,routeContext:{outlet:y,matches:b,isDataRoute:n!=null},children:C})};return n&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?M.createElement(G_,{location:n.location,revalidation:n.revalidation,component:E,error:S,children:j(),routeC
243ontext:{outlet:null,matches:b,isDataRoute:!0}}):j()},null)}var $x=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})($x||{}),Wx=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(Wx||{});function X_(t){let e=M.useContext(Qf);return e||st(!1),e}function J_(t){let e=M.useContext(V_);return e||st(!1),e}function Z_(t){let e=M.useContext(Ps);return e||st(!1),e}function Hx(t){let e=Z_(),n=e.matches[e.matches.length-1];return n.route.id||st(!1),n.route.id}function eT(){var t;let e=M.useContext(Vx),n=J_(),i=Hx();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function tT(){let{router:t}=X_($x.UseNavigateStable),e=Hx(Wx.UseNavigateStable),n=M.useRef(!1);return Ux(()=>{n.current=!0}),M.useCallback(function(a,l){l===void 0&&(l={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,zo({fromRouteId:e},l)))},[t,e])}const py={};function nT(t,e,n){py[t]||(py[t]=!0)}function rT(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function wn(t){st(!1)}function sT(t){let{basename:e="/",children:n=null,location:i,navigationType:a=Ir.Pop,navigator:l,static:c=!1,future:d}=t;ra()&&st(!1);let f=e.replace(/^\/*/,"/"),m=M.useMemo(()=>({basename:f,navigator:l,static:c,future:zo({v7_relativeSplatPath:!1},d)}),[f,d,l,c]);typeof i=="string"&&(i=Ni(i));let{pathname:y="/",search:v="",hash:w="",state:S=null,key:T="default"}=i,E=M.useMemo(()=>{let k=Gf(y,f);return k==null?null:{location:{pathname:k,search:v,hash:w,state:S,key:T},navigationType:a}},[f,y,v,w,S,T,a]);return E==null?null:M.createElement(As.Provider,{value:m},M.createElement(lc.Provider,{children:n,value:E}))}function iT(t){let{children:e,location:n}=t;return W_(uf(e),n)}new Promise(()=>{});function uf(t,e){e===void 0&&(e=[]);let n=[];return M.Children.forEach(t,(i,a)=>{if(!M.isValidElement(i))return;let l=[...e,a];if(i.type===M.Fragment){n.push.apply(n,uf(i.props.children,l));return}i.type!==wn&&st(!1),!i.props.index||!i.props.children||st(!1);let c={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=uf(i.props.children,l)),n.push(c)}),n}/** 244 * React Router DOM v6.30.3 245 * 246 * Copyright (c) Remix Software Inc. 247 * 248 * This source code is licensed under the MIT license found in the 249 * LICENSE.md file in the root directory of this source tree. 250 * 251 * @license MIT 252 */function df(){return df=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},df.apply(this,arguments)}function oT(t,e){if(t==null)return{};var n={},i=Object.keys(t),a,l;for(l=0;l<i.length;l++)a=i[l],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function aT(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function lT(t,e){return t.button===0&&(!e||e==="_self")&&!aT(t)}const cT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uT="6";try{window.__reactRouterVersion=uT}catch{}const dT="startTransition",my=kk[dT];function fT(t){let{basename:e,children:n,future:i,window:a}=t,l=M.useRef();l.current==null&&(l.current=h_({window:a,v5Compat:!0}));let c=l.current,[d,f]=M.useState({action:c.action,location:c.location}),{v7_startTransition:m}=i||{},y=M.useCallback(v=>{m&&my?my(()=>f(v)):f(v)},[f,m]);return M.useLayoutEffect(()=>c.listen(y),[c,y]),M.useEffect(()=>rT(i),[i]),M.createElement(sT,{basename:e,children:n,location:d.location,navigationType:d.action,navigator:c,future:i})}const hT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pT=
252/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ii=M.forwardRef(function(e,n){let{onClick:i,relative:a,reloadDocument:l,replace:c,state:d,target:f,to:m,preventScrollReset:y,viewTransition:v}=e,w=oT(e,cT),{basename:S}=M.useContext(As),T,E=!1;if(typeof m=="string"&&pT.test(m)&&(T=m,hT))try{let C=new URL(window.location.href),R=m.startsWith("//")?new URL(C.protocol+m):new URL(m),D=Gf(R.pathname,S);R.origin===C.origin&&D!=null?m=D+R.search+R.hash:E=!0}catch{}let k=U_(m,{relative:a}),b=mT(m,{replace:c,state:d,target:f,preventScrollReset:y,relative:a,viewTransition:v});function j(C){i&&i(C),C.defaultPrevented||b(C)}return M.createElement("a",df({},w,{href:T||k,onClick:E||l?i:j,ref:n,target:f}))});var gy;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(gy||(gy={}));var yy;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(yy||(yy={}));function mT(t,e){let{target:n,replace:i,state:a,preventScrollReset:l,relative:c,viewTransition:d}=e===void 0?{}:e,f=z_(),m=sa(),y=zx(t,{relative:c}
vendor: 6,308 bytes, line 252
252);return M.useCallback(v=>{if(lT(v,n)){v.preventDefault();let w=i!==void 0?i:Ql(m)===Ql(y);f(t,{replace:w,state:a,preventScrollReset:l,relative:c,viewTransition:d})}},[m,f,y,i,a,n,t,l,c,d])}function qx(t,e){return function(){return t.apply(e,arguments)}}const{toString:gT}=Object.prototype,{getPrototypeOf:Ei}=Object,{iterator:ia,toStringTag:Kx}=Symbol,Yl=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),$o=(t,e)=>{let n=t;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),Yl(n,e))return!0;n=Ei(n)}return!1},yT=(t,e)=>t!=null&&$o(t,e)?t[e]:void 0,Yf=(t=>e=>{const n=gT.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),cn=t=>(t=t.toLowerCase(),e=>Yf(e)===t),cc=t=>e=>typeof e===t,{isArray:Ts}=Array,Cs=cc("undefined");function ji(t){return t!==null&&!Cs(t)&&t.constructor!==null&&!Cs(t.constructor)&&Ut(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Gx=cn("ArrayBuffer");function vT(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Gx(t.buffer),e}const xT=cc("string"),Ut=cc("function"),Qx=cc("number"),Ai=t=>t!==null&&typeof t=="object",wT=t=>t===!0||t===!1,Dl=t=>{if(!Ai(t))return!1;const e=Ei(t);return(e===null||e===Object.prototype||Ei(e)===null)&&!$o(t,Kx)&&!$o(t,ia)},bT=t=>{if(!Ai(t)||ji(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},ST=cn("Date"),kT=cn("File"),ET=t=>!!(t&&typeof t.uri<"u"),_T=t=>t&&typeof t.getParts<"u",TT=cn("Blob"),CT=cn("FileList"),NT=cn("Set"),jT=t=>Ai(t)&&Ut(t.pipe);function AT(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const vy=AT(),xy=typeof vy.FormData<"u"?vy.FormData:void 0,PT=t=>{if(!t)return!1;if(xy&&t instanceof xy)return!0;const e=Ei(t);if(!e||e===Object.prototype||!Ut(t.append))return!1;const n=Yf(t);return n==="formdata"||n==="object"&&Ut(t.toString)&&t.toString()==="[object FormData]"},RT=cn("URLSearchParams"),[OT,LT,MT,IT]=["ReadableStream","Request","Response","Headers"].map(cn),DT=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oa(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),Ts(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(ji(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),c=l.length;let d;for(i=0;i<c;i++)d=l[i],e.call(null,t[d],d,t)}}function Yx(t,e){if(ji(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,a;for(;i-- >0;)if(a=n[i],e===a.toLowerCase())return a;return null}const fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xx=t=>!Cs(t)&&t!==fs;function ff(...t){const{caseless:e,skipUndefined:n}=Xx(this)&&this||{},i={},a=(l,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=e&&typeof c=="string"&&Yx(i,c)||c,f=Yl(i,d)?i[d]:void 0;Dl(f)&&Dl(l)?i[d]=ff(f,l):Dl(l)?i[d]=ff({},l):Ts(l)?i[d]=l.slice():(!n||!Cs(l))&&(i[d]=l)};for(let l=0,c=t.length;l<c;l++){const d=t[l];if(!d||ji(d)||(oa(d,a),typeof d!="object"||Ts(d)))continue;const f=Object.getOwnPropertySymbols(d);for(let m=0;m<f.length;m++){const y=f[m];QT.call(d,y)&&a(d[y],y)}}return i}const BT=(t,e,n,{allOwnKeys:i}={})=>(oa(e,(a,l)=>{n&&Ut(a)?Object.defineProperty(t,l,{__proto__:null,value:qx(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),FT=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),VT=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},UT=(t,e,n,i)=>{let a,l,c;const d={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)c=a[l],(!i||i(c,t,e))&&!d[c]&&(e[c]=t[c],d[c]=!0);t=n!==!1&&Ei(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zT=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},$T=t=>{if(!t)return null;if(Ts(t))return t;let e=t.length;if(!Qx(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},WT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ei(Uint8Array)),HT=(t,e)=>{const i=(t&&t[ia]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},qT=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},KT=cn("HTMLFormElement"),GT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:QT}=Object.prototype,YT=cn("RegExp"),Jx=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};oa(n,(a,l)=>{let c;(c=e(a,l,t))!==!1&&(i[l]=c||a)}),Object.defineProperties(t,i)},XT=t=>{Jx(t,(e,n)=>{if(Ut(t)&&["arguments","caller","callee"].includes(n))return!1;const i=t[n];if(Ut(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JT=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return Ts(t)?i(t):i(String(t).split(e)),n},ZT=()=>{},eC=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function tC(t){return!!(t&&Ut(t.append)&&t[Kx]==="FormData"&&t[ia])}const nC=t=>{const e=new WeakSet,n=i=>{if(Ai(i)){if(e.has(i))return;if(ji(i))return i;if(!("toJSON"in i)){e.add(i);let a;if(NT(i)){a=[];for(const l of i){const c=n(l);!Cs(c)&&a.push(c)}}else a=Ts(i)?[]:{},oa(i,(l,c)=>{const d=n(l);!Cs(d)&&(a[c]=d)});return e.delete(i),a}}return i};return n(t)},rC=cn("AsyncFunction"),sC=t=>t&&(Ai(t)||Ut(t))&&Ut(t.then)&&Ut(t.catch),Zx=((t,e)=>t?setImmediate:e?((n,i)=>(fs.addEventListener("message",({source:a,data:l})=>{a===fs&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),fs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ut(fs.postMessage)),iC=typeof queueMicrotask<"u"?queueMicrotask.bind(fs):typeof process<"u"&&process.nextTick||Zx,ew=t=>t!=null&&Ut(t[ia]),oC=t=>t!=null&&$o(t,ia)&&ew(t),P={isArray:Ts,isArrayBuffer:Gx,isBuffer:ji,isFormData:PT,isArrayBufferView:vT,isString:xT,isNumber:Q
252x,isBoolean:wT,isObject:Ai,isPlainObject:Dl,isEmptyObject:bT,isReadableStream:OT,isRequest:LT,isResponse:MT,isHeaders:IT,isUndefined:Cs,isDate:ST,isFile:kT,isReactNativeBlob:ET,isReactNative:_T,isBlob:TT,isRegExp:YT,isFunction:Ut,isStream:jT,isURLSearchParams:RT,isTypedArray:WT,isFileList:CT,forEach:oa,merge:ff,extend:BT,trim:DT,stripBOM:FT,inherits:VT,toFlatObject:UT,kindOf:Yf,kindOfTest:cn,endsWith:zT,toArray:$T,forEachEntry:HT,matchAll:qT,isHTMLForm:KT,hasOwnProperty:Yl,hasOwnProp:Yl,hasOwnInPrototypeChain:$o,getSafeProp:yT,reduceDescriptors:Jx,freezeMethods:XT,toObjectSet:JT,toCamelCase:GT,noop:ZT,toFiniteNumber:eC,findKey:Yx,global:fs,isContextDefined:Xx,isSpecCompliantForm:tC,toJSONObject:nC,isAsyncFn:rC,isThenable:sC,setImmediate:Zx,asap:iC,isIterable:ew,isSafeIterable:oC},aC=P.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"]),lC=t=>{const e={};let n,i,a;return t&&t.split(` 253`).forEach(function(c){a=c.indexOf(":"),n=c.substring(0,a).trim().toLowerCase(),i=c.substring(a+1).trim();const d=P.hasOwnProp(e,n);!n||d&&P.hasOwnProp(aC,n)||(n==="set-cookie"?d?e[n].push(i):e[n]=[i]:e[n]=d?e[n]+", "+i:i)}),e};function cC(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const uC=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),dC=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Xf(t,e){return P.isArray(t)?t.map(n=>Xf(n,e)):cC(String(t).replace(e,""))}const fC=t=>Xf(t,uC),hC=t=>Xf(t,dC);function tw(t){const e=Object.create(null);return P.forEach(t.toJSON(),(n,i)=>{e[i]=hC(n)}),e}const wy=Symbol("internals");function bo(t){return t&&String(t).trim().toLowerCase()}function Bl(t){return t===!1||t==null?t:P.isArray(t)?t.map(Bl):fC(String(t))}function pC(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const mC=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function wd(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}function gC(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let i=1;i<e;i++){const a=t.charCodeAt(i);if(a===34||a===92&&(i+=1,i>=e))return t;n+=t[i]}return n}function yC(t){const e=Object.create(null),n=String(t);let i=0,a=!1,l=!1;function c(d){const f=wd(n.slice(i,d)),m=f.indexOf("=");if(m<1)return;const y=wd(f.slice(0,m));if(!mC.test(y))return;const v=y.toLowerCase();if(v==="__proto__"||v==="constructor"||v==="prototype")return;const w=wd(f.slice(m+1));e[v]=gC(w)}for(let d=0;d<n.length;d++){const f=n.charCodeAt(d);a?l?l=!1:f===92?l=!0:f===34&&(a=!1):f===34?a=!0:(f===44||f===59)&&(c(d),i=d+1)}return c(n.length),e}const vC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bd(t,e,n,i,a){if(P.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!P.isString(e)){if(P.isString(i))return e.indexOf(i)!==-1;if(P.isRegExp(i))return i.test(e)}}function xC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function wC(t,e){const n=P.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{__proto__:null,value:function(a,l,c){return this[i].call(this,e,a,l,c)},configurable:!0})})}let jt=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(d,f,m){const y=bo(f);if(!y)return;const v=P.findKey(a,y);(!v||a[v]===void 0||m===!0||m===void 0&&a[v]!==!1)&&(a[v||f]=Bl(d))}const c=(d,f)=>P.forEach(d,(m,y)=>l(m,y,f));if(P.isPlainObject(e)||e instanceof this.constructor)c(e,n);else if(P.isString(e)&&(e=e.trim())&&!vC(e))c(lC(e),n);else if(P.isObject(e)&&P.isSafeIterable(e)){let d=Object.create(null),f,m;for(const y of e){if(!P.isArray(y))throw new TypeError("Object iterator must return a key-value pair");m=y[0],P.hasOwnProp(d,m)?(f=d[m],d[m]=P.isArray(f)?[...f,y[1]]:[f,y[1]]):d[m]=y[1]}c(d,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=bo(e),e){const i=P.findKey(this,e);if(i){const a=this[i];if(!n)return a;
vendor: 17,485 bytes, lines 253-254
253if(n===!0)return pC(a);if(P.isFunction(n))return n.call(this,a,i);if(P.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=bo(e),e){const i=P.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||bd(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(c){if(c=bo(c),c){const d=P.findKey(i,c);d&&(!n||bd(i,i[d],d,n))&&(delete i[d],a=!0)}}return P.isArray(e)?e.forEach(l):l(e),a}clear(e){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const l=n[i];(!e||bd(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return P.forEach(this,(a,l)=>{const c=P.findKey(i,l);if(c){n[c]=Bl(a),delete n[l];return}const d=e?xC(l):String(l).trim();d!==l&&delete n[l],n[d]=Bl(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return P.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&P.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 254`)}getSetCookie(){const e=this.get("set-cookie");return P.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return yC(e)}static concat(e,...n){const i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[wy]=this[wy]={accessors:{}}).accessors,a=this.prototype;function l(c){const d=bo(c);i[d]||(wC(a,c),i[d]=!0)}return P.isArray(e)?e.forEach(l):l(e),this}};jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(jt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});P.freezeMethods(jt);const Xl="[REDACTED ****]";function bC(t){if(P.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(P.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function SC(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),i=[],a=l=>{if(l===null||typeof l!="object"||P.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof jt&&(l=l.toJSON()),i.push(l);let c;if(P.isArray(l))c=[],l.forEach((d,f)=>{const m=a(d);P.isUndefined(m)||(c[f]=m)});else{if(!P.isPlainObject(l)&&bC(l))return i.pop(),l;c=Object.create(null);for(const[d,f]of Object.entries(l)){const m=n.has(d.toLowerCase())?Xl:a(f);P.isUndefined(m)||(c[d]=m)}}return i.pop(),c};return a(t)}function by(t){try{return String(t)}catch{return""}}function kC(t){return t.errors.map(n=>{try{return n&&n.message?by(n.message):by(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}let X=class nw extends Error{static from(e,n,i,a,l,c){let d=e.message;!d&&P.isArray(e.errors)&&e.errors.length&&(d=kC(e));const f=new nw(d,n||e.code,i,a,l);return Object.defineProperty(f,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),f.name=e.name,e.status!=null&&f.status==null&&(f.status=e.status),c&&Object.assign(f,c),f}constructor(e,n,i,a,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&P.hasOwnProp(e,"redact")?e.redact:void 0,i=P.isArray(n)&&n.length>0?SC(e,n):P.toJSONObject(e);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:i,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";X.ERR_BAD_OPTION="ERR_BAD_OPTION";X.ECONNABORTED="ECONNABORTED";X.ETIMEDOUT="ETIMEDOUT";X.ECONNREFUSED="ECONNREFUSED";X.ERR_NETWORK="ERR_NETWORK";X.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";X.ERR_DEPRECATED="ERR_DEPRECATED";X.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";X.ERR_BAD_REQUEST="ERR_BAD_REQUEST";X.ERR_CANCELED="ERR_CANCELED";X.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";X.ERR_INVALID_URL="ERR_INVALID_URL";X.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const EC=null,rw=100;function hf(t){return P.isPlainObject(t)||P.isArray(t)}function sw(t){return P.endsWith(t,"[]")?t.slice(0,-2):t}function Sd(t,e,n){return t?t.concat(e).map(function(a,l){return a=sw(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function _C(t){return P.isArray(t)&&!t.some(hf)}const TC=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function uc(t,e,n){if(!P.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,C){return!P.isUndefined(C[j])});const i=n.metaTokens,a=n.visitor||T,l=n.dots,c=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?rw:n.maxDepth,m=d&&P.isSpecCompliantForm(e),y=[];if(!P.isFunction(a))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(P.isDate(b))return b.toISOString();if(P.isBoolean(b))return b.toString();if(!m&&P.isBlob(b))throw new X("Blob is not supported. Use a Buffer instead.");if(P.isArrayBuffer(b)||P.isTypedArray(b)){if(m&&typeof d=="function")return new d([b]);throw new X("Blob is not supported. Use a Buffer instead.",X.ERR_NOT_SUPPORT)}return b}function w(b){if(b>f)throw new X("Object is too deeply nested ("+b+" levels). Max depth: "+f,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function S(b,j){if(f===1/0)return JSON.stringify(b);const C=[];return JSON.stringify(b,function(D,z){if(!P.isObject(z))return z;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(z),w(j+C.length-1),z})}function T(b,j,C){let R=b;if(P.isReactNative(e)&&P.isReactNativeBlob(b))return e.append(Sd(C,j,l),v(b)),!1;if(b&&!C&&typeof b=="object"){if(P.endsWith(j,"{}"))j=i?j:j.slice(0,-2),b=S(b,1);else if(P.isArray(b)&&_C(b)||(P.isFileList(b)||P.endsWith(j,"[]"))&&(R=P.toArray(b)))return j=sw(j),R.forEach(function(z,J){!(P.isUndefined(z)||z===null)&&e.append(c===!0?Sd([j],J,l):c===null?j:j+"[]",v(z))}),!1}return hf(b)?!0:(e.append(Sd(C,j,l),v(b)),!1)}const E=Object.assign(TC,{defaultVisitor:T,convertValue:v,isVisitable:hf});function k(b,j,C=0){if(!P.isUndefined(b)){if(w(C),y.indexOf(b)!==-1)throw new Error("Circular reference detected in "+j.join("."));y.push(b),P.forEach(b,function(D,z){(!(P.isUndefined(D)||D===null)&&a.call(e,D,P.isString(z)?z.trim():z,j,E))===!0&&k(D,j?j.concat(z):[z],C+1)}),y.pop()}}if(!P.isObject(t))throw new TypeError("data must be an object");return k(t),e}function Sy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Jf(t,e){this._pairs=[],t&&uc(t,this,e)}const iw=Jf.prototype;iw.append=function(e,n){this._pairs.push([e,n])};iw.toString=function(e){const n=e?i=>e.call(this,i,Sy):Sy;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function CC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ow(t,e,n){if(!e)return t;t=t||"";const i=P.isFunction(n)?{serialize:n}:n,a=P.getSafeProp(i,"encode")||CC,l=P.getSafeProp(i,"serialize");let c;if(l?c=l(e,i):c=P.isURLSearchParams(e)?e.toString():new Jf(e,i).toString(a),c){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class ky{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){P.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Zf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},NC=typeof URLSearchParams<"u"?URLSearchParams:Jf,jC=typeof FormData<"u"?FormData:null,AC=typeof Blob<"u"?Blob:null,PC={isBrowser:!0,classes:{URLSearchParams:NC,FormData:jC,Blob:AC},protocols:["http","https","file","blob","url","data"]},eh=typeof window<"u"&&typeof document<"u",pf=typeof navigator=="object"&&navigator||void 0,RC=eh&&(!pf||["ReactNative","NativeScript","NS"].indexOf(pf.product)<0),OC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",LC=eh&&window.location.href||"http://localhost",MC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eh,hasStandardBrowserEnv:RC,hasStandardBrowserWebWorkerEnv:OC,navigator:pf,origin:LC},Symbol.toStringTag,{value:"Module"})),wt={...MC,...PC};function IC(t,e){return uc(t,new wt.classes.URLSearchParams,{visitor:function(n,i,a,l){return wt.isNode&&P.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const Ey=rw;function aw(t){if(t>Ey)throw new X("FormData field is too deeply nested ("+t+" levels). Max depth: "+Ey,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function DC(t){const e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let i;for(;(i=n.exec(t))!==null;)aw(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function BC(t){const e={},n=Object.keys(t);let i;const a=n.length;let l;for(i=0;i<a;i++)l=n[i],e[l]=t[l];return e}function lw(t){function e(n,i,a,l){aw(l);let c=n[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=l>=n.length;return c=!c&&P.isArray(a)?a.length:c,f?(P.hasOwnProp(a,c)?a[c]=P.isArray(a[c])?a[c].concat(i):[a[c],i]:a[c]=i,!d):((!P.hasOwnProp(a,c)||!P.isObject(a[c]))&&(a[c]=[]),e(n,i,a[c],l)&&P.isArray(a[c])&&(a[c]=BC(a[c])),!d)}if(P.isFormData(t)&&P.isFunction(t.entries)){const n={};return P.forEachEntry(t,(i,a)=>{e(DC(i),a,n,0)}),n}return null}const ri=(t,e)=>t!=null&&P.hasOwnProp(t,e)?t[e]:void 0;function FC(t,e,n){if(P.isString(t))try{return(e||JSON.parse)(t),P.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const aa={transitional:Zf,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=P.isObject(e);if(l&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return a?JSON.stringify(lw(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(l){const f=ri(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return IC(e,f).toString();if((d=P.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=ri(this,"env"),y=m&&m.FormData;return uc(d?{"files[]":e}:e,y&&new y,f)}}return l||a?(n.setContentType("application/json",!1),FC(e)):e}],transformResponse:[function(e){const n=ri(this,"transitional")||aa.transitional,i=n&&n.forcedJSONParsing,a=ri(this,"responseType"),l=a==="json";if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(i&&!a||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,ri(this,"parseReviver"))}catch(f){if(d)throw f.name==="SyntaxError"?X.from(f,X.ERR_BAD_RESPONSE,this,null,ri(this,"response")):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],t=>{aa.headers[t]={}});function kd(t,e){const n=this||aa,i=e||n,a=jt.from(i.headers);let l=i.data;return P.forEach(t,function(d){l=d.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function cw(t){return!!(t&&t.__CANCEL__)}let la=class extends X{constructor(e,n,i){super(e??"canceled",X.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function uw(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new X("Request failed with status code "+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}function VC(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function UC(t,e){t=t||10;const n=new Array(t),i=new Array(t);let a=0,l=0,c;return e=e!==void 0?e:1e3,function(f){const m=Date.now(),y=i[l];c||(c=m),n[a]=f,i[a]=m;let v=l,w=0;for(;v!==a;)w+=n[v++],v=v%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),m-c<e)return;const S=y&&m-y;return S?Math.round(w*1e3/S):void 0}}function zC(t,e){let n=0,i=1e3/e,a,l;const c=(m,y=Date.now())=>{n=y,a=null,l&&(clearTimeout(l),l=null),t(...m)};return[(...m)=>{const y=Date.now(),v=y-n;v>=i?c(m,y):(a=m,l||(l=setTimeout(()=>{l=null,c(a)},i-v)))},()=>a&&c(a)]}const Jl=(t,e,n=3)=>{let i=0;const a=UC(50,250);return zC(l=>{if(!l||typeof l.loaded!="number")return;const c=l.loaded,d=l.lengthComputable?l.total:void 0,f=Math.max(0,d!=null?Math.min(c,d):c),m=Math.max(0,f-i),y=a(m);i=Math.max(i,f);const v={loaded:f,total:d,progress:d?f/d:void 0,bytes:m,rate:y||void 0,estimated:y&&d?(d-f)/y:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(v)},n)},_y=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},Ty=(t,e=P.asap)=>(...n)=>e(()=>t(...n)),$C=wt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,wt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,WC=wt.hasStandardBrowserEnv?{write(t,e,n,i,a,l,c){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];P.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),P.isString(i)&&d.push(`path=${i}`),P.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),P.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const i=e[n].replace(/^\s+/,""),a=i.indexOf("=");if(a!==-1&&i.slice(0,a)===t)try{return decodeURIComponent(i.slice(a+1))}catch{return i.slice(a+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function HC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function qC(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}const KC=/^https?:(?!\/\/)/i,GC=/[\t\n\r]/g;function QC(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function YC(t){return QC(t).replace(GC,"")}function XC(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,n,i="")=>`${n}${i}${Xl}`)}function JC(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Xl}@`),n=e.indexOf("#"),a=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Xl}`);return n===-1?a:`${a}#${XC(e.slice(n+1))}`}function Cy(t,e){if(typeof t=="string"){const n=YC(t);if(KC.test(n))throw new X(`Invalid URL ${JSON.stringify(JC(n))}: missing "//" after protocol`,X.ERR_INVALID_URL,e)}}function dw(t,e,n,i){Cy(e,i);let a=!HC(e);return t&&(a||n===!1)?(Cy(t,i),qC(t,e)):e}const Ny=t=>t instanceof jt?{...t}:t,ZC=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function Ns(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(y,v,w,S){return P.isPlainObject(y)&&P.isPlainObject(v)?P.merge.call({caseless:S},y,v):P.isPlainObject(v)?P.merge({},v):P.isArray(v)?v.slice():v}function a(y,v,w,S){if(P.isUndefined(v)){if(!P.isUndefined(y))return i(void 0,y,w,S)}else return i(y,v,w,S)}function l(y,v){if(!P.isUndefined(v))return i(void 0,v)}function c(y,v){if(P.isUndefined(v)){if(!P.isUndefined(y))return i(void 0,y)}else return i(void 0,v)}function d(y){const v=P.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!P.isUndefined(v))if(P.isPlainObject(v)){if(P.hasOwnProp(v,y))return v[y]}else return;const w=P.hasOwnProp(t,"transitional")?t.transitional:void 0;if(P.isPlainObject(w)&&P.hasOwnProp(w,y))return w[y]}function f(y,v,w){if(P.hasOwnProp(e,w))return i(y,v);if(P.hasOwnProp(t,w))return i(void 0,y)}const m={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:f,headers:(y,v,w)=>a(Ny(y),Ny(v),w,!0)};return P.forEach(ZC({...t,...e}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const w=P.hasOwnProp(m,v)?m[v]:a,S=P.hasOwnProp(t,v)?t[v]:void 0,T=P.hasOwnProp(e,v)?e[v]:void 0,E=w(S,T,v);P.isUndefined(E)&&w!==f||(n[v]=E)}),P.hasOwnProp(e,"validateStatus")&&P.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(P.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.val
254idateStatus),n}const eN=["content-type","content-length"];function tN(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{eN.includes(i.toLowerCase())&&t.set(i,a)})}const nN=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function fw(t){const e=Ns({},t),n=w=>P.hasOwnProp(e,w)?e[w]:void 0,i=n("data");let a=n("withXSRFToken");const l=n("xsrfHeaderName"),c=n("xsrfCookieName");let d=n("headers");const f=n("auth"),m=n("baseURL"),y=n("allowAbsoluteUrls"),v=n("url");if(e.headers=d=jt.from(d),e.url=ow(dw(m,v,y,e),n("params"),n("paramsSerializer")),f){const w=P.getSafeProp(f,"username")||"",S=P.getSafeProp(f,"password")||"";try{d.set("Authorization","Basic "+btoa(w+":"+(S?nN(S):"")))}catch(T){throw X.from(T,X.ERR_BAD_OPTION_VALUE,t)}}if(P.isFormData(i)&&(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv||P.isReactNative(i)?d.setContentType(void 0):P.isFunction(i.getHeaders)&&tN(d,i.getHeaders(),n("formDataHeaderPolicy"))),wt.hasStandardBrowserEnv&&(P.isFunction(a)&&(a=a(e)),a===!0||a==null&&$C(e.url))){const S=l&&c&&WC.read(c);S&&d.set(l,S)}return e}const rN=typeof XMLHttpRequest<"u",sN=rN&&function(t){return new Promise(function(n,i){const a=fw(t);let l=a.data;const c=jt.from(a.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:m}=a,y,v,w,S,T;function E(){S&&S(),T&&T(),a.cancelToken&&a.cancelToken.unsubscribe(y),a.signal&&a.signal.removeEventListener("abort",y)}let k=new XMLHttpRequest;k.open(a.method.toUpperCase(),a.url,!0),k.timeout=a.timeout;function b(){if(!k)return;const C=jt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),D={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:C,config:t,request:k};uw(function(J){n(J),E()},function(J){i(J),E()},D),k=null}"onloadend"in k?k.onloadend=b:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.startsWith("file:"))||setTimeout(b)},k.onabort=function(){k&&(i(new X("Request aborted",X.ECONNABORTED,t,k)),E(),k=null)},k.onerror=function(R){const D=R&&R.message?R.message:"Network Error",z=new X(D,X.ERR_NETWORK,t,k);z.event=R||null,i(z),E(),k=null},k.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const D=a.transitional||Zf;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),i(new X(R,D.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,k)),E(),k=null},l===void 0&&c.setContentType(null),"setRequestHeader"in k&&P.forEach(tw(c),function(R,D){k.setRequestHeader(D,R)}),P.isUndefined(a.withCredentials)||(k.withCredentials=!!a.withCredentials),d&&d!=="json"&&(k.responseType=a.responseType),m&&([w,T]=Jl(m,!0),k.addEventListener("progress",w)),f&&k.upload&&([v,S]=Jl(f),k.upload.addEventListener("progress",v),k.upload.addEventListener("loadend",S)),(a.cancelToken||a.signal)&&(y=C=>{k&&(i(!C||C.type?new la(null,t,k):C),k.abort(),E(),k=null)},a.cancelToken&&a.cancelToken.subscribe(y),a.signal&&(a.signal.aborted?y():a.signal.addEventListener("abort",y)));const j=VC(a.url);if(j&&!wt.protocols.includes(j)){i(new X("Unsupported protocol "+j+":",X.ERR_BAD_REQUEST,t)),E();return}k.send(l||null)})},iN=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let i=!1;const a=function(f){if(!i){i=!0,c();const m=f instanceof Error?f:this.reason;n.abort(m instanceof X?m:new la(m instanceof Error?m.message:m))}};let l=e&&setTimeout(()=>{l=null,a(new X(`timeout of ${e}ms exceeded`,X.ETIMEDOUT))},e);const c=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),t=null)};t.forEach(f=>{if(!i){if(f.aborted){a.call(f);return}f.addEventListener("abort",a,{once:!0})}});const{signal:d}=n;return d.unsubscribe=()=>P.asap(c),d},oN=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,a;for(;i<n;)a=i+e,yield t.slice(i,a),i=a},aN=async function*(t,e){for await(const n of lN(t))yield*oN(n,e)},lN=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},jy=(t,e,n,i)=>{const a=aN(t,e);let l=0,c,d=f=>{c||(c=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:m,value:y}=await a.next();if(m){d(),f.close();return}let v=y.byteLength;if(n){let w=l+=v;n(w)}f.enqueue(new Uint8Array(y))}catch(m){throw d(m),m}},cancel(f){return d(f),a.return()}},{highWaterMark:2})},Ay=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,hw=(t,e,n)=>e+2<n&&Ay(t.charCodeAt(e+1))&&Ay(t.charCodeAt(e+2)),Py=t=>t<=57?t-48:(t&223)-55,cN=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,uN=t=>t===9||t===10||t===12||t===13||t===32,dN=t=>{const e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},fN=t=>{const e=t.length;let n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},hN=t=>{const e=t.length;let n=0,i=0,a=!1;for(let l=0;l<e;l++){let c=t.charCodeAt(l);if(c===37&&hw(t,l,e)&&(c=Py(t.charCodeAt(l+1))*16+Py(t.charCodeAt(l+2)),l+=2),!uN(c)){if(c===61){i++;continue}if(!cN(c)||i>0){a=!0;continue}n++}}return a||i>2||i>0&&(n+i)%4!==0||n%4===1?fN(t):dN(n)},pN=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const n=t.indexOf(",");if(n<0)return 0;const i=t.slice(5,n),a=t.slice(n+1);if(/;base64/i.test(i))return e(a);let c=0;for(let d=0,f=a.length;d<f;
vendor: 5,646 bytes, line 254
254d++){const m=a.charCodeAt(d);if(m===37&&hw(a,d,f))c+=1,d+=2;else if(m<128)c+=1;else if(m<2048)c+=2;else if(m>=55296&&m<=56319&&d+1<f){const y=a.charCodeAt(d+1);y>=56320&&y<=57343?(c+=4,d++):c+=3}else c+=3}return c};function mN(t){const e=typeof t=="string"?t.indexOf("#"):-1;return pN(e===-1?t:t.slice(0,e),hN)}const th="1.19.0",Ry=64*1024,{isFunction:Cl}=P,gN=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Oy=t=>{if(!P.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Ly=(t,...e)=>{try{return!!t(...e)}catch{return!1}},yN=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},vN=t=>{const e=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=P.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:a,Request:l,Response:c}=t,d=a?Cl(a):typeof fetch=="function",f=Cl(l),m=Cl(c);if(!d)return!1;const y=d&&Cl(n),v=d&&(typeof i=="function"?(b=>j=>b.encode(j))(new i):async b=>new Uint8Array(await new l(b).arrayBuffer())),w=f&&y&&Ly(()=>{let b=!1;const j=new l(wt.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),C=j.headers.has("Content-Type");return j.body!=null&&j.body.cancel(),b&&!C}),S=m&&y&&Ly(()=>P.isReadableStream(new c("").body)),T={stream:S&&(b=>b.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!T[b]&&(T[b]=(j,C)=>{let R=j&&j[b];if(R)return R.call(j);throw new X(`Response type '${b}' is not supported`,X.ERR_NOT_SUPPORT,C)})});const E=async b=>{if(b==null)return 0;if(P.isBlob(b))return b.size;if(P.isSpecCompliantForm(b))return(await new l(wt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(P.isArrayBufferView(b)||P.isArrayBuffer(b))return b.byteLength;if(P.isURLSearchParams(b)&&(b=b+""),P.isString(b))return(await v(b)).byteLength},k=async(b,j)=>{const C=P.toFiniteNumber(b.getContentLength());return C??E(j)};return async b=>{let{url:j,method:C,data:R,signal:D,cancelToken:z,timeout:J,onDownloadProgress:F,onUploadProgress:ee,responseType:ue,headers:ke,withCredentials:Pe="same-origin",fetchOptions:Me,maxContentLength:Ce,maxBodyLength:Be}=fw(b);const he=P.isNumber(Ce)&&Ce>-1,ce=P.isNumber(Be)&&Be>-1,K=Y=>P.hasOwnProp(b,Y)?b[Y]:void 0;let ie=a||fetch;ue=ue?(ue+"").toLowerCase():"text";let U=iN([D,z&&z.toAbortSignal()],J),L=null;const $=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let ye,ve=null;const pe=()=>new X("Request body larger than maxBodyLength limit",X.ERR_BAD_REQUEST,b,L);try{let Y;const be=K("auth");if(be){const Se=P.getSafeProp(be,"username")||"",pt=P.getSafeProp(be,"password")||"";Y={username:Se,password:pt}}if(yN(j)){const Se=new URL(j,wt.origin);if(!Y&&(Se.username||Se.password)){const pt=Oy(Se.username),dn=Oy(Se.password);Y={username:pt,password:dn}}(Se.username||Se.password)&&(Se.username="",Se.password="",j=Se.href)}if(Y&&(ke.delete("authorization"),ke.set("Authorization","Basic "+btoa(gN((Y.username||"")+":"+(Y.password||""))))),he&&typeof j=="string"&&j.startsWith("data:")&&mN(j)>Ce)throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,b,L);if(ce&&C!=="get"&&C!=="head"){const Se=await E(R);if(typeof Se=="number"&&isFinite(Se)&&(ye=Se,Se>Be))throw pe()}const Te=ce&&(P.isReadableStream(R)||P.isStream(R)),we=(Se,pt,dn)=>jy(Se,Ry,fn=>{if(ce&&fn>Be)throw ve=pe();pt&&pt(fn)},dn);if(w&&C!=="get"&&C!=="head"&&(ee||Te)){if(ye=ye??await k(ke,R),ye!==0||Te){let Se=new l(j,{method:"POST",body:R,duplex:"half"}),pt;if(P.isFormData(R)&&(pt=Se.headers.get("content-type"))&&ke.setContentType(pt),Se.body){const[dn,fn]=ee&&_y(ye,Jl(Ty(ee)))||[];R=we(Se.body,dn,fn)}}}else if(Te&&!f&&y&&C!=="get"&&C!=="head")R=we(R);else if(Te&&f&&!w&&C!=="get"&&C!=="head")throw new X("Stream request bodies are not supported by the current fetch implementation",X.ERR_NOT_SUPPORT,b,L);P.isString(Pe)||(Pe=Pe?"include":"omit");const lt=f&&"credentials"in l.prototype;if(P.isFormData(R)){const Se=ke.getContentType();Se&&/^multipart\/form-data/i.test(Se)&&!/boundary=/i.test(Se)&&ke.delete("content-type")}ke.set("User-Agent","axios/"+th,!1);const Gt={...Me,signal:U,method:C.toUpperCase(),headers:tw(ke.normalize()),body:R,duplex:"half",credentials:lt?Pe:void 0};L=f&&new l(j,Gt);let ht=await(f?ie(L,Me):ie(j,Gt));const un=jt.from(ht.headers);if(he){const Se=P.toFiniteNumber(un.getContentLength());if(Se!=null&&Se>Ce)throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,b,L)}const Qt=S&&(ue==="stream"||ue==="response");if(S&&ht.body&&(F||he||Qt&&$)){const Se={};["status","statusText","headers"].forEach(Dn=>{Se[Dn]=ht[Dn]});const pt=P.toFiniteNumber(un.getContentLength()),[dn,fn]=F&&_y(pt,Jl(Ty(F),!0))||[];let rr=0;const sr=Dn=>{if(he&&(rr=Dn,rr>Ce))throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,b,L);dn&&dn(Dn)};ht=new c(jy(ht.body,Ry,sr,()=>{fn&&fn(),$&&$()}),Se)}ue=ue||"text";let Yt=await T[P.findKey(T,ue)||"text"](ht,b);if(he&&!S&&!Qt){let Se;if(Yt!=null&&(typeof Yt.byteLength=="number"?Se=Yt.byteLength:typeof Yt.size=="number"?Se=Yt.size:typeof Yt=="string"&&(Se=typeof i=="function"?new i().encode(Yt).byteLength:Yt.length)),typeof Se=="number"&&Se>Ce)throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,b,L)}return!Qt&&$&&$(),await new Promise((Se,pt)=>{uw(Se,pt,{data:Yt,headers:jt.from(ht.headers),status:ht.status,statusText:ht.statusText,config:b,request:L})})}catch(Y){if($&&$(),U&&U.aborted&&U.reason instanceof X){const be=U.reason;throw be.config=b,L&&(be.request=L),Y!==be&&Object.defineProperty(be,"cause",{__proto__:null,value:Y,writable:!0,enumerable:!1,
254configurable:!0}),be}if(ve)throw L&&!ve.request&&(ve.request=L),ve;if(Y instanceof X)throw L&&!Y.request&&(Y.request=L),Y;if(Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)){const be=new X("Network Error",X.ERR_NETWORK,b,L,Y&&Y.response);throw Object.defineProperty(be,"cause",{__proto__:null,value:Y.cause||Y,writable:!0,enumerable:!1,configurable:!0}),be}throw X.from(Y,Y&&Y.code,b,L,Y&&Y.response)}}},xN=new Map,pw=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:a}=e,l=[i,a,n];let c=l.length,d=c,f,m,y=xN;for(;d--;)f=l[d],m=y.get(f),m===void 0&&y.set(f,m=d?new Map:vN(e)),y=m;return m};pw();const nh={http:EC,xhr:sN,fetch:{get:pw}};P.forEach(nh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const My=t=>`- ${t}`,wN=t=>P.isFunction(t)||t===null||t===!1;function bN(t,e){t=P.isArray(t)?t:[t];const{length:n}=t;let i,a;const l={};for(let c=0;c<n;c++){i=t[c];let d;if(a=i,!wN(i)&&(a=nh[(d=String(i)).toLowerCase()],a===void 0))throw new X(`Unknown adapter '${d}'`);
vendor: 8,303 bytes, lines 254-260
254if(a&&(P.isFunction(a)||(a=a.get(e))))break;l[d||"#"+c]=a}if(!a){const c=Object.entries(l).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since : 255`+c.map(My).join(` 256`):" "+My(c[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+d,X.ERR_NOT_SUPPORT)}return a}const mw={getAdapter:bN,adapters:nh};function Ed(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new la(null,t)}function _d(t){return Ed(t),t.headers=jt.from(t.headers),t.data=kd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),mw.getAdapter(t.adapter||aa.adapter,t)(t).then(function(i){Ed(t),t.response=i;try{i.data=kd.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=jt.from(i.headers),i},function(i){if(!cw(i)&&(Ed(t),i&&i.response)){t.response=i.response;try{i.response.data=kd.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=jt.from(i.response.headers)}return Promise.reject(i)})}const dc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{dc[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Iy={};dc.transitional=function(e,n,i){function a(l,c){return"[Axios v"+th+"] Transitional option '"+l+"'"+c+(i?". "+i:"")}return(l,c,d)=>{if(e===!1)throw new X(a(c," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Iy[c]&&(Iy[c]=!0,console.warn(a(c," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,c,d):!0}};dc.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function SN(t,e,n){if(typeof t!="object"||t===null)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],c=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(c){const d=t[l],f=d===void 0||c(d,l,t);if(f!==!0)throw new X("option "+l+" must be "+f,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+l,X.ERR_BAD_OPTION)}}const Fl={assertOptions:SN,validators:dc},_t=Fl.validators;let ks=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ky,response:new ky}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=(()=>{if(!a.stack)return"";const c=a.stack.indexOf(` 257`);return c===-1?"":a.stack.slice(c+1)})();try{if(!i.stack)i.stack=l;else if(l){const c=l.indexOf(` 258`),d=c===-1?-1:l.indexOf(` 259`,c+1),f=d===-1?"":l.slice(d+1);String(i.stack).endsWith(f)||(i.stack+=` 260`+l)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ns(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&Fl.assertOptions(i,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean),legacyInterceptorReqResOrdering:_t.transitional(_t.boolean),advertiseZstdAcceptEncoding:_t.transitional(_t.boolean),validateStatusUndefinedResolves:_t.transitional(_t.boolean)},!1),a!=null&&(P.isFunction(a)?n.paramsSerializer={serialize:a}:Fl.assertOptions(a,{encode:_t.function,serialize:_t.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fl.assertOptions(n,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&P.merge(l.common,l[n.method]);l&&P.forEach(["delete","get","head","post","put","patch","query","common"],T=>{delete l[T]}),n.headers=jt.concat(c,l);const d=[];let f=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(n)===!1)return;f=f&&E.synchronous;const k=n.transitional||Zf;k&&k.legacyInterceptorReqResOrdering?d.unshift(E.fulfilled,E.rejected):d.push(E.fulfilled,E.rejected)});const m=[];this.interceptors.response.forEach(function(E){m.push(E.fulfilled,E.rejected)});let y,v=0,w;if(!f){const T=[_d.bind(this),void 0];for(T.unshift(...d),T.push(...m),w=T.length,y=Promise.resolve(n);v<w;)y=y.then(T[v++],T[v++]);return y}w=d.length;let S=n;for(;v<w;){const T=d[v++],E=d[v++];try{S=T?T(S):S}catch(k){if(!E){y=Promise.reject(k);break}try{const b=E.call(this,k);P.isThenable(b)&&(y=Promise.resolve(b).then(()=>_d.call(this,S)))}catch(b){y=Promise.reject(b)}break}}if(!y)try{y=_d.call(this,S)}catch(T){y=Promise.reject(T)}for(v=0,w=m.length;v<w;)y=y.then(m[v++],m[v++]);return y}getUri(e){e=Ns(this.defaults,e);const n=dw(e.baseURL,e.url,e.allowAbsoluteUrls,e);return ow(n,e.params,e.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(e){ks.prototype[e]=function(n,i){return this.request(Ns(i||{},{method:e,url:n,data:i&&P.hasOwnProp(i,"data")?i.data:void 0}))}});P.forEach(["post","put","patch","query"],function(e){function n(i){return function(l,c,d){return this.request(Ns(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}ks.prototype[e]=n(),e!=="query"&&(ks.prototype[e+"Form"]=n(!0))});let kN=class gw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(d=>{i.subscribe(d),l=d}).then(a);return c.cancel=function(){i.unsubscribe(l)},c},e(function(l,c,d){i.reason||(i.reason=new la(l,c,d),n(i.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=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new gw(function(a){e=a}),cancel:e}}};function EN(t){return function(n){return t.apply(null,n)}}function _N(t){return P.isObject(t)&&t.isAxiosError===!0}const mf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mf).forEach(([t,e])=>{mf[e]=t});function yw(t){const e=new ks(t),n=qx(ks.prototype.request,e);return P.extend(n,ks.prototype,e,{allOwnKeys:!0}),P.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return yw(Ns(t,a))},n}const tt=yw(aa);tt.Axios=ks;tt.CanceledError=la;tt.CancelToken=kN;tt.isCancel=cw;tt.VERSION=th;tt.toFormData=uc;tt.AxiosError=X;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=EN;tt.isAxiosError=_N;tt.mergeConfig=Ns;tt.AxiosHeaders=jt;tt.formToJSON=t=>
260lw(P.isHTMLForm(t)?new FormData(t):t);tt.getAdapter=mw.getAdapter;tt.HttpStatusCode=mf;tt.default=tt;const{Axios:a5,AxiosError:l5,CanceledError:c5,isCancel:u5,CancelToken:d5,VERSION:f5,all:h5,Cancel:p5,isAxiosError:m5,spread:g5,toFormData:y5,AxiosHeaders:v5,HttpStatusCode:x5,formToJSON:w5,getAdapter:b5,mergeConfig:S5,create:k5}=tt,vw=typeof window>"u",Dy=!vw&&window.self!==window.top,TN=!vw&&typeof document>"u",xw=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),yt=[];for(let t=0;t<256;++t)yt.push((t+256).toString(16).slice(1));function CN(t,e=0){return(yt[t[e+0]]+yt[t[e+1]]+yt[t[e+2]]+yt[t[e+3]]+"-"+yt[t[e+4]]+yt[t[e+5]]+"-"+yt[t[e+6]]+yt[t[e+7]]+"-"+yt[t[e+8]]+yt[t[e+9]]+"-"+yt[t[e+10]]+yt[t[e+11]]+yt[t[e+12]]+yt[t[e+13]]+yt[t[e+14]]+yt[t[e+15]]).toLowerCase()}let Td;const NN=new Uint8Array(16);function jN(){if(!Td){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Td=crypto.getRandomValues.bind(crypto)}return Td(NN)}const AN=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),By={randomUUID:AN};function PN(t,e,n){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??jN();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,CN(i)}function RN(t,e,n){return By.randomUUID&&!t?By.randomUUID():PN(t)}const So=typeof window<"u"?window:{base44SharedInstances:{}};function ON(t,e){return So.base44SharedInstances||(So.base44SharedInstances={}),So.base44SharedInstances[t]||(So.base44SharedInstances[t]={instance:e()}),So.base44SharedInstances[t].instance}const LN="__user_heartbeat_event__",MN="__initialization_event__",IN="__session_duration_event__",Fy="analytics-enable",Vy="base44_analytics_session_id",DN={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},BN="analytics",Ie=ON(BN,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...DN,...qN()}})),FN=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:i,enabled:a})=>{var l;const{maxQueueSize:c,throttleTime:d,batchSize:f}=Ie.config;if(!a||!(!((l=Ie.config)===null||l===void 0)&&l.enabled)||TN)return{track:()=>{},cleanup:()=>{}};let m;const y=`${e}/api/apps/${n}/analytics/track/batch`,v=async R=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:R}})},w=R=>{try{const D=JSON.stringify({events:R}),z=new Blob([D],{type:"application/json"});return typeof navigator>"u"||D.length>6e4||!navigator.sendBeacon(y,z)}catch{return!1}},S=async(R,D={})=>{if(R.length===0)return;const z=await HN(i),J=R.map(WN(z));try{(!D.isBeacon||!w(J))&&await v(J)}catch{}},T=()=>{zy(S,{throttleTime:d,batchSize:f})},E=R=>{if(Ie.requestsQueue.length>=c)return;const D=$N();Ie.requestsQueue.push({...R,...D}),T()},k=()=>{zy(S,{throttleTime:d,batchSize:f}),m=$y(E),UN()},b=()=>{Uy(),m==null||m(),zN(E);const R=Ie.requestsQueue.splice(0);S(R,{isBeacon:!0})},j=()=>{typeof window>"u"||(document.visibilityState==="hidden"?b():document.visibilityState==="visible"&&k())},C=()=>{Uy(),m==null||m(),typeof window<"u"&&window.removeEventListener("visibilitychange",j)};return T(),m=$y(E),VN(E),typeof window<"u"&&window.addEventListener("visibilitychange",j),{track:E,cleanup:C}};function Uy(){Ie.isProcessing=!1}async function zy(t,e){if(Ie.isProcessing)return;Ie.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=e??{};for(;Ie.isProcessing&&Ie.requestsQueue.length>0;){const a=Ie.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,n))}Ie.isProcessing=!1}function $y(t){var e;if(typeof window>"u"||Ie.isHeartBeatProcessing||((e=Ie.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Ie.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:LN})},Ie.config.heartBeatInterval);return()=>{clearInterval(n),Ie.isHeartBeatProcessing=!1}}function VN(t){typeof window>"u"||Ie.wasInitializationTracked||(Ie.wasInitializationTracked=!0,t({eventName:MN,properties:{referrer:document==null?void 0:document.referrer}}))}function UN(){typeof window>"u"||Ie.sessionStartTime!==null||(Ie.sessionStartTime=new Date().toISOString())}function zN(t){if(typeof window>"u"||Ie.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Ie.sessionStartTime).getTime();Ie.sessionStartTime=null,t({eventName:IN,properties:{sessionDuration:e}})}function $N(){var t,e;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(e=(t=window.location)===null||t===void 0?void 0:t.pathname)!==null&&e!==void 0?e:null}}function WN(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let To=null;function Wy(){Ie.sessionContext=null,To=null}async function HN(t){if(!Ie.sessionContext){if(!t.hasToken())return{user_id:null,
260session_id:Zl()};if(!To){const i=Zl();To=t.me().then(a=>({user_id:a.id,session_id:i})).catch(()=>({user_id:null,session_id:i}))}const e=To,n=await e;return To===e&&(Ie.sessionContext=n),n}return Ie.sessionContext}function qN(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(Fy);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(Fy);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function Hy(){var t;return(t=Ie.fallbackSessionId)!==null&&t!==void 0?t:Ie.fallbackSessionId=xw()}function Zl(){if(typeof window>"u")return Hy();try{const t=localStorage.getItem(Vy);if(!t){const e=xw();return localStorage.setItem(Vy,e),e}return t}catch{return Hy()}}class KN extends Error{constructor(e,n,i,a,l){super(e),this.name="Base44Error",this.status=n,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function oi({baseURL:t,headers:e={},token:n,interceptResponses:i=!0,onError:a}){const l=tt.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(c=>{typeof window<"u"&&(window.location&&c.headers.set("X-Origin-URL",window.location.href),c.headers.get("Authorization")||c.headers.set("X-Base44-Anonymous-Id",Zl()));const d=RN();if(c.requestId=d,Dy)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),i&&l.interceptors.response.use(c=>{var d;const f=(d=c.config)===null||d===void 0?void 0:d.requestId;try{Dy&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,f,m,y,v,w,S,T,E,k,b,j;const C=(d=c.response)===null||d===void 0?void 0:d.data,R=((f=C==null?void 0:C.error)===null||f===void 0?void 0:f.message)||(C==null?void 0:C.message)||(C==null?void 0:C.detail)||c.message,D=new KN(R,(m=c.response)===null||m===void 0?void 0:m.status,(k=(w=(v=(y=C==null?void 0:C.error)===null||y===void 0?void 0:y.code)!==null&&v!==void 0?v:C==null?void 0:C.code)!==null&&w!==void 0?w:(E=(T=(S=c.response)===null||S===void 0?void 0:S.headers)===null||T===void 0?void 0:T.get)===null||E===void 0?void 0:E.call(T,"x-base44-connector-error"))!==null&&k!==void 0?k:(j=(b=c.response)===null||b===void 0?void 0:b.headers)===null||j===void 0?void 0:j["x-base44-connector-error"],C,c);return a==null||a(D),Promise.reject(D)}),l}function qy(t){const{axios:e,appId:n,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return YN(e,n,l,i)}})}function GN(t){var e;try{const n=JSON.parse(t);return{type:n.type,data:n.data,id:n.id||((e=n.data)===null||e===void 0?void 0:e.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const QN=100;function Ky(t){return typeof t=="object"&&t!==null}function YN(t,e,n,i){const a=`/apps/${e}/entities/${n}`,l=f=>Array.isArray(f)?f.join(","):f,c=(f,m,y,v,w)=>{const S={};return w&&(S.q=JSON.stringify(w)),f&&(S.sort=f),m&&(S.limit=m),y&&(S.skip=y),v&&(S.fields=l(v)),t.get(a,{params:S})},d=(f,m)=>{const y={};return m&&(y.q=JSON.stringify(m)),y.limit=f.limit||QN,f.cursor&&(y.cursor=f.cursor),"distinct"in f?y.distinct=f.distinct:(f.sort&&(y.sort=f.sort),f.fields&&(y.fields=l(f.fields))),t.get(`${a}/v2/list`,{params:y})};return{async list(...f){const[m,y,v,w]=f;return Ky(m)?d(m):c(m,y,v,w)},async filter(f,...m){const[y,v,w,S]=m;return Ky(y)?d(y,f):c(y,v,w,S,f)},async get(f){return t.get(`${a}/${f}`)},async create(f){return t.post(a,f)},async update(f,m){return t.put(`${a}/${f}`,m)},async delete(f){return t.delete(`${a}/${f}`)},async deleteMany(f){return t.delete(a,{data:f})},async bulkCreate(f){return t.post(`${a}/bulk`,f)},async updateMany(f,m){return t.patch(`${a}/update-many`,{query:f,data:m})},async count(f){const m={};return f&&(m.q=JSON.stringify(f)),(await t.get(`${a}/count`,{params:m})).count},async aggregate(f){return t.post(`${a}/aggregate`,f)},async upsert(f,m){return t.post(`${a}/upsert`,{records:f,key:m.key})},async bulkUpdate(f){return t.put(`${a}/bulk`,f)},async importEntities(f){const m=new FormData;return m.append("file",f,f.name),t.post(`${a}/import`,m,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(f){const m=`entities:${e}:${n}`;return i().subscribeToRoom(m,{update_model:w=>{var S;const T=GN(w.data);if(T){T.type!=="delete"&&(!((S=T.data)===null||S===void 0)&&S._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${T.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${T.id}")\` to fetch the full record.`);try{f(T)}catch(E){console.error("[Base44 SDK] Subscription callback error:",E)}}}})}}}function XN(t,e){return{async call(n,i,a){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...d}=a??{},f={...d,...l&&{path_params:l},...c&&{query_params:c}};return await t.post(`/apps/${e}/integrations/custom/${n}/${i}`,f)}}}function Gy(t,e){const n=XN(t,e);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?n:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async d=>
260{if(typeof d=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${d}`);let f,m;return d instanceof FormData||d&&Object.values(d).some(y=>y instanceof File)?(f=new FormData,Object.keys(d).forEach(y=>{d[y]instanceof File?f.append(y,d[y],d[y].name):typeof d[y]=="object"&&d[y]!==null?f.append(y,JSON.stringify(d[y])):f.append(y,d[y])}),m="multipart/form-data"):(f=d,m="application/json"),a==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${c}`,f||d,{headers:{"Content-Type":m}}):t.post(`/apps/${e}/integration-endpoints/installable/${a}/integration-endpoints/${c}`,f||d,{headers:{"Content-Type":m}})}}})}})}function JN(){return typeof window>"u"?!1:window!==window.parent}function ZN(t,e,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),c=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${c},resizable=yes,scrollbars=yes`);if(!d)return;const f=()=>{window.removeEventListener("message",m),clearInterval(y),d.closed||d.close()},m=v=>{var w;if(v.origin!==n||v.source!==d||!(!((w=v.data)===null||w===void 0)&&w.access_token))return;f();const S=new URL(e),{access_token:T,is_new_user:E}=v.data;S.searchParams.set("access_token",T),E!=null&&S.searchParams.set("is_new_user",String(E)),window.location.href=S.toString()},y=setInterval(()=>{d.closed&&f()},500);window.addEventListener("message",m)}function ej(t,e,n,i){let a=null;const l=()=>{a=null};let c=!!i.token;return{hasToken(){return c},async me(){const d=a??t.get(`/apps/${n}/entities/User/me`).finally(()=>{a===d&&(a=null)});return a=d,d},async updateMe(d){return t.put(`/apps/${n}/entities/User/me`,d)},redirectToLogin(d){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const f=d?new URL(d,window.location.origin).toString():window.location.href,m=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(f)}`;window.location.href=m},loginWithProvider(d,f="/"){const m=new URL(f,window.location.origin).toString(),y=`app_id=${n}&from_url=${encodeURIComponent(m)}`;let v;d==="sso"?v=`/apps/${n}/auth/sso/login`:v=`/apps/auth${d==="google"?"":`/${d}`}/login`;const w=`${i.appBaseUrl}/api${v}?${y}`;if(JN()){const S=`${w}&popup_origin=${encodeURIComponent(window.location.origin)}`;return ZN(S,m,window.location.origin)}window.location.href=w},logout(d){if(delete t.defaults.headers.common.Authorization,l(),Wy(),c=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(y){console.error("Failed to remove token from localStorage:",y)}const f=d||window.location.href,m=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(f)}`;window.location.href=m}},setToken(d,f=!0){if(d&&(l(),Wy(),c=!0,t.defaults.headers.common.Authorization=`Bearer ${d}`,e.defaults.headers.common.Authorization=`Bearer ${d}`,f&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",d),window.localStorage.setItem("token",d)}catch(m){console.error("Failed to save token to localStorage:",m)}},async loginViaEmailPassword(d,f,m){var y;try{const v=await t.post(`/apps/${n}/auth/login`,{email:d,password:f,...m&&{turnstile_token:m}}),{access_token:w,user:S}=v;return w&&this.setToken(w),{access_token:w,user:S}}catch(v){throw((y=v.response)===null||y===void 0?void 0:y.status)===401&&await this.logout(),v}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(d,f){return t.post(`/apps/${n}/users/invite-user`,{user_email:d,role:f})},register(d){return t.post(`/apps/${n}/auth/register`,d)},verifyOtp({email:d,otpCode:f}){return t.post(`/apps/${n}/auth/verify-otp`,{email:d,otp_code:f})},resendOtp(d){return t.post(`/apps/${n}/auth/resend-otp`,{email:d})},resetPasswordRequest(d){return t.post(`/apps/${n}/auth/reset-password-request`,{email:d})},resetPassword({resetToken:d,newPassword:f}){return t.post(`/apps/${n}/auth/reset-password`,{reset_token:d,new_password:f})},changePassword({userId:d,currentPassword:f,newPassword:m}){return t.post(`/apps/${n}/auth/change-password`,{user_id:d,current_password:f,new_password:m})}}}function tj(t,e){return{async getAccessToken(n){const i=`/apps/${e}/auth/sso/accesstoken/${n}`;return t.get(i)},async getIdToken(n){const i=`/apps/${e}/auth/sso/idtoken/${n}`;return t.get(i)}}}const nj=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
260function rj(t,e){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var i;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async callApi(n,i){return ww(n,"Integration type"),sj(t,`/apps/${e}/connectors/${encodeURIComponent(n)}/call`,i)}}}function ww(t,e){if(!t||typeof t!="string")throw new Error(`${e} is required and must be a string`)}async function sj(t,e,n){var i,a,l,c,d,f,m,y,v;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");ww(n.path,"Request path");const w=(i=n.method)!==null&&i!==void 0?i:"GET";if(!nj.has(w))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const T=await t.post(e,{method:w,...n.host==null?{}:{host:n.host},path:n.path,query:(a=n.query)!==null&&a!==void 0?a:{},headers:(l=n.headers)!==null&&l!==void 0?l:{},body:(c=n.body)!==null&&c!==void 0?c:null});return{success:T.success,phase:T.phase,status:(d=T.status_code)!==null&&d!==void 0?d:null,data:T.data,dataBase64:(f=T.data_base64)!==null&&f!==void 0?f:null,contentType:(m=T.content_type)!==null&&m!==void 0?m:null,headers:(y=T.headers)!==null&&y!==void 0?y:{},creditsCharged:(v=T.credits_charged)!==null&&v!==void 0?v:0}}function ij(t,e){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Dr(t={}){const{storageKey:e="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(n),l){if(i&&oj(l,{storageKey:e}),a){c.delete(n);const d=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function oj(t,e){const{storageKey:n="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(n,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function aj({axios:t,serviceRoleAxios:e,appId:n,serverUrl:i,functionsVersion:a,platformHeaders:l}){const c=new Headers(l),d=f=>{const m=f.defaults.headers.common.Authorization;return typeof m=="string"&&m.startsWith("Bearer ")?m:null};return async function(m,y={}){lj(m);const{fetch:v=fetch,...w}=y,S=new Headers(y.headers),T=(E,k)=>{k&&!S.has(E)&&S.set(E,k)};return T("Authorization",d(t)),T("Base44-Service-Authorization",d(e)),T("Base44-App-Id",n),T("Base44-Api-Url",i),T("Base44-Functions-Version",a),T("Base44-State",c.get("Base44-State")),T("X-Data-Env",c.get("X-Data-Env")),v(m,{...w,headers:S})}}function lj(t){if(typeof t!="string"||t==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const e=t.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${t}" is not a path on it â pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function Qy(t,e,n){const i=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,a=l=>{const c=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();
260Object.entries(d).forEach(([f,m])=>{m!=null&&c.set(f,String(m))})}return l&&new Headers(l).forEach((d,f)=>{c.set(f,d)}),c};return{async invoke(l,c){if(typeof c=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${c}`);let d,f;return c instanceof FormData||c&&Object.values(c).some(m=>m instanceof File)?(d=new FormData,Object.keys(c).forEach(m=>{c[m]instanceof File?d.append(m,c[m],c[m].name):typeof c[m]=="object"&&c[m]!==null?d.append(m,JSON.stringify(c[m])):d.append(m,c[m])}),f="multipart/form-data"):(d=c,f="application/json"),t.post(`/apps/${e}/functions/${l}`,d||c,{headers:{"Content-Type":f}})},async fetch(l,c={}){const f=`/functions${l.startsWith("/")?l:`/${l}`}`,m=a(c.headers),y={...c,headers:m};return await fetch(i(n==null?void 0:n.baseURL,f),y)}}}function Yy({axios:t,getSocket:e,appId:n,serverUrl:i,token:a}){const l=`/apps/${n}/agents`,c={},d=()=>t.get(`${l}/conversations`),f=E=>t.get(`${l}/conversations/${E}`);return{getConversations:d,getConversation:f,listConversations:E=>t.get(`${l}/conversations`,{params:E}),createConversation:E=>t.post(`${l}/conversations`,E),addMessage:async(E,k)=>t.post(`${l}/conversations/v2/${E.id}/messages`,k),subscribeToConversation:(E,k)=>{const b=`/agent-conversations/${E}`,j=e(),C=f(E).then(R=>(c[E]=R,R));return j.subscribeToRoom(b,{connect:()=>{},update_model:async({data:R})=>{const D=JSON.parse(R);if(D._message){await C;const z=D._message,J=c[E];if(J){const F=J.messages||[],ee=F.findIndex(ke=>ke.id===z.id),ue=ee!==-1?F.map((ke,Pe)=>Pe===ee?z:ke):[...F,z];c[E]={...J,messages:ue},k==null||k(c[E])}}}})},getWhatsAppConnectURL:E=>{const k=`${i}/api/apps/${n}/agents/${encodeURIComponent(E)}/whatsapp`,b=a??Dr();return b?`${k}?token=${b}`:k},getTelegramConnectURL:E=>{const k=`${i}/api/apps/${n}/agents/${encodeURIComponent(E)}/telegram`,b=a??Dr();return b?`${k}?token=${b}`:k}}}const Xy={openai:"openai",typesafe:"typesafe"};function Jy({serverUrl:t,token:e,appId:n}){return{connection:({provider:a="openai"}={})=>{var l;if(!Object.prototype.hasOwnProperty.call(Xy,a))throw new Error(`Unsupported AI Gateway provider: ${a}`);const c=Xy[a];return{baseURL:`${t}/api/apps/${n}/ai/${c}/v1`,token:(l=e??Dr())!==null&&l!==void 0?l:""}}}}function Zy(t,e){const n=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(n,{params:i})},async getStats(i={}){return await t.get(`${n}/stats`,{params:i})}}}function cj(t,e){return{async getPublicSettings(){return t.get(`/apps/public/prod/public-settings/by-id/${e}`)}}}function uj(t,e){return{async inviteUser(n,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:n,role:i})}}}const In=Object.create(null);In.open="0";In.close="1";In.ping="2";In.pong="3";In.message="4";In.upgrade="5";In.noop="6";const Vl=Object.create(null);Object.keys(In).forEach(t=>{Vl[In[t]]=t});const gf={type:"error",data:"parser error"},bw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Sw=typeof ArrayBuffer=="function",kw=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,rh=({type:t,data:e},n,i)=>bw&&e instanceof Blob?n?i(e):e0(e,i):Sw&&(e instanceof ArrayBuffer||kw(e))?n?i(e):e0(new Blob([e]),i):i(In[t]+(e||"")),e0=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function t0(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Cd;function dj(t,e){if(bw&&t.data instanceof Blob)return t.data.arrayBuffer().then(t0).then(e);if(Sw&&(t.data instanceof ArrayBuffer||kw(t.data)))return e(t0(t.data));rh(t,!1,n=>{Cd||(Cd=new TextEncoder),e(Cd.encode(n))})}const n0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Co=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<n0.length;t++)Co[n0.charCodeAt(t)]=t;const fj=t=>{let e=t.length*.75,n=t.length,i,a=0,l,c,d,f;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const m=new ArrayBuffer(e),y=new Uint8Array(m);for(i=0;i<n;i+=4)l=Co[t.charCodeAt(i)],c=Co[t.charCodeAt(i+1)],d=Co[t.charCodeAt(i+2)],f=Co[t.charCodeAt(i+3)],y[a++]=l<<2|c>>4,y[a++]=(c&15)<<4|d>>2,y[a++]=(d&3)<<6|f&63;return m},hj=typeof ArrayBuffer=="function",sh=(t,e)=>{if(typeof t!="string")return{type:"message",data:Ew(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:pj(t.substring(1),e)}:Vl[n]?t.length>1?{type:Vl[n],data:t.substring(1)}:{type:Vl[n]}:gf},pj=(t,e)=>{if(hj){const n=fj(t);return Ew(n,e)}else return{base64:!0,data:t}},Ew=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},_w="�",mj=(t,e)=>{const n=t.length,i=new Array(n);let a=0;t.forEach((l,c)=>{rh(l,!1,d=>{i[c]=d,++a===n&&e(i.join(_w))})})},gj=(t,e)=>{const n=t.split(_w),i=[];for(let a=0;a<n.length;a++){const l=sh(n[a],e);if(i.push(l),l.type==="error")break}return i};function yj(){return new TransformStream({transform(t,e){dj(t,n=>{const i=n.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(n)})}})}let Nd;function Nl(t){return t.reduce((e,n)=>e+n.length,0)}function jl(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let i=0;for(let a=0;a<e;a++)n[a]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),n}function vj(t,e){Nd||(Nd=new TextDecoder);const n=[];let i=0,a=-1,l=!1;return new TransformStream({transform(c,d){for(n.push(c);;){if(i===0){if(Nl(n)<1)break;const f=jl(n,1);l=(f[0]&128)===128,a=f[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(Nl(n)<2)break;const f=jl(n,2);a=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),i=3}else if(i===2){if(Nl(n)<8)break;const f=jl(n,8),m=new DataView(f.buffer,f.byteOffset,f.length),y=m.getUint32(0);if(y>Math.pow(2,21)-1){d.enqueue(gf);break}a=y*Math.pow(2,32)+m.getUint32(4),i=3}else{if(Nl(n)<a)break;const f=jl(n,a);d.enqueue(sh(l?f:Nd.decode(f),e)),i=0}if(a===0||a>t){d.enqueue(gf);break}}}})}const Tw=4;function rt(t){if(t)return xj(t)}function xj(t){for(var e in rt.prototype)t[e]=rt.prototype[e];return t}rt.prototype.on=rt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};rt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};rt.prototype.off=rt.prototype.removeListener=rt.prototype.removeAllListeners=rt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];
260if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,a=0;a<n.length;a++)if(i=n[a],i===e||i.fn===e){n.splice(a,1);break}return n.length===0&&delete this._callbacks["$"+t],this};rt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,a=n.length;i<a;++i)n[i].apply(this,e)}return this};rt.prototype.emitReserved=rt.prototype.emit;rt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};rt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const fc=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ln=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),wj="arraybuffer";function Cw(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const bj=ln.setTimeout,Sj=ln.clearTimeout;function hc(t,e){e.useNativeTimers?(t.setTimeoutFn=bj.bind(ln),t.clearTimeoutFn=Sj.bind(ln)):(t.setTimeoutFn=ln.setTimeout.bind(ln),t.clearTimeoutFn=ln.clearTimeout.bind(ln))}const kj=1.33;function Ej(t){return typeof t=="string"?_j(t):Math.ceil((t.byteLength||t.size)*kj)}function _j(t){let e=0,n=0;for(let i=0,a=t.length;i<a;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}function Nw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Tj(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function Cj(t){let e={},n=t.split("&");for(let i=0,a=n.length;i<a;i++){let l=n[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}
260class Nj extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class ih extends rt{constructor(e){super(),this.writable=!1,hc(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,i){return super.emitReserved("error",new Nj(e,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=sh(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=Tj(e);return n.length?"?"+n:""}}class jj extends ih{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};gj(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,mj(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Nw()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let jw=!1;try{jw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Aj=jw;function Pj(){}class Rj extends jj{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,n){const i=this.request({method:"POST",data:e});i.on("success",n),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=e}}class On extends rt{constructor(e,n,i){super(),this.createRequest=e,hc(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const n=Cw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=On.requestsCount++,On.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Pj,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete On.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}On.requestsCount=0;On.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",r0);else if(typeof addEventListener=="function"){const t="onpagehide"in ln?"pagehide":"unload";addEventListener(t,r0,!1)}}function r0(){for(let t in On.requests)On.requests.hasOwnProperty(t)&&On.requests[t].abort()}
260const Oj=(function(){const t=Aw({xdomain:!1});return t&&t.responseType!==null})();class Lj extends Rj{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=Oj&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new On(Aw,this.uri(),e)}}function Aw(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Aj))return new XMLHttpRequest}catch{}if(!e)try{return new ln[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Pw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Mj extends ih{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,i=Pw?{}:Cw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;rh(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&fc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Nw()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const jd=ln.WebSocket||ln.MozWebSocket;class Ij extends Mj{createSocket(e,n,i){return Pw?new jd(e,n,i):n?new jd(e,n):new jd(e)}doWrite(e,n){this.ws.send(n)}}class Dj extends ih{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const n=vj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),a=yj();a.readable.pipeTo(e.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:d,value:f})=>{d||(this.onPacket(f),l())}).catch(d=>{})};l();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;this._writer.write(i).then(()=>{a&&fc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Bj={websocket:Ij,webtransport:Dj,polling:Lj},Fj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function yf(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let a=Fj.exec(t||""),l={},c=14;for(;c--;)l[Vj[c]]=a[c]||"";return n!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=Uj(l,l.path),l.queryKey=zj(l,l.query),l}function Uj(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function zj(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(n[a]=l)}),n}const vf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ul=[];vf&&addEventListener("offline",()=>{Ul.forEach(t=>t())},!1);class Vr extends rt{constructor(e,n){if(super(),this.binaryType=wj,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const i=yf(e);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=yf(n.host).host);hc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={}
260,n.transports.forEach(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Cj(this.opts.query)),vf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ul.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Tw,n.transport=e,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Vr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Vr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=e.data,this._onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(n+=Ej(a)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,fc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,i){return this._sendPacket("message",e,n,i),this}send(e,n,i){return this._sendPacket("message",e,n,i),this}_sendPacket(e,n,i,a){if(typeof n=="function"&&(a=n,n=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Vr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),vf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ul.indexOf(this._offlineEventListener);i!==-1&&Ul.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Vr.protocol=Tw;class $j extends Vr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let n=this.createTransport(e),i=!1;Vr.priorWebsocketSuccess=!1;const a=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",v=>{if(!i)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Vr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(y(),this.setTransport(n),n.send([{type:"upgrade"}
260]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,y(),n.close(),n=null)}const c=v=>{const w=new Error("probe error: "+v);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function d(){c("transport closed")}function f(){c("socket closed")}function m(v){n&&v.name!==n.name&&l()}const y=()=>{n.removeListener("open",a),n.removeListener("error",c),n.removeListener("close",d),this.off("close",f),this.off("upgrading",m)};n.once("open",a),n.once("error",c),n.once("close",d),this.once("close",f),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&n.push(e[i]);return n}}let Wj=class extends $j{constructor(e,n={}){const i=typeof e=="object"?e:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>Bj[a]).filter(a=>!!a)),super(e,i)}};function Hj(t,e="",n){let i=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),i=yf(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}const qj=typeof ArrayBuffer=="function",Kj=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Rw=Object.prototype.toString,Gj=typeof Blob=="function"||typeof Blob<"u"&&Rw.call(Blob)==="[object BlobConstructor]",Qj=typeof File=="function"||typeof File<"u"&&Rw.call(File)==="[object FileConstructor]";function oh(t){return qj&&(t instanceof ArrayBuffer||Kj(t))||Gj&&t instanceof Blob||Qj&&t instanceof File}function zl(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(zl(t[n]))return!0;return!1}if(oh(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return zl(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&zl(t[n]))return!0;return!1}function Yj(t){const e=[],n=t.data,i=t;return i.data=xf(n,e),i.attachments=e.length,{packet:i,buffers:e}}function xf(t,e){if(!t)return t;if(oh(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=xf(t[i],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=xf(t[i],e));return n}return t}function Xj(t,e){return t.data=wf(t.data,e),delete t.attachments,t}function wf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=wf(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=wf(t[n],e));return t}const Jj=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ae;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ae||(Ae={}));class Zj{constructor(e){this.replacer=e}encode(e){return(e.type===Ae.EVENT||e.type===Ae.ACK)&&zl(e)?this.encodeAsBinary({type:e.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Ae.BINARY_EVENT||e.type===Ae.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=Yj(e),i=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(i),a}}class ah extends rt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const i=n.type===Ae.BINARY_EVENT;i||n.type===Ae.BINARY_ACK?(n.type=i?Ae.EVENT:Ae.ACK,this.reconstructor=new eA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(oh(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const i={type:Number(e.charAt(0))};if(Ae[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Ae.BINARY_EVENT||i.type===Ae.BINARY_ACK){const l=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const c=e.substring(l,n);if(c!=Number(c)||e.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(c)}if(e.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););i.nsp=e.substring(l,n)}else i.nsp="/";const a=e.charAt(n+1);if(a!==""&&Number(a)==a){const l=n+1;for(;++n;){const c=e.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===e.length)break}i.id=Number(e.substring(l,n+1))}if(e.charAt(++n)){const l=this.tryParse(e.substr(n));if(ah.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Ae.CONNECT:return s0(n);case Ae.DISCONNECT:return n===void 0;case Ae.CONNECT_ERROR:return typeof n=="string"||s0(n);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Jj.indexOf(n[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eA{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=Xj(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function s0(t){return Object.prototype.toString.call(t)==="[object Object]"}const tA=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ah,Encoder:Zj,get PacketType(){return Ae}},Symbol.toStringTag,{value:"Module"}));function En(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const nA=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ow extends rt{constructor(e,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[En(e,"open",this.onopen.bind(this)),En(e,"packet",this.onpacket.b
260ind(this)),En(e,"error",this.onerror.bind(this)),En(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){var i,a,l;if(nA.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:Ae.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const y=this.ids++,v=n.pop();this._registerAckCallback(y,v),c.id=y}const d=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,f=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(f?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(e,n){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[e]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},a),c=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};c.withError=!0,this.acks[e]=c}emitWithAck(e,...n){return new Promise((i,a)=>{const l=(c,d)=>c?a(c):i(d);l.withError=!0,n.push(l),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ae.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
vendor: 7,087 bytes, line 260
260_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ae.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(e);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(e);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let i=!1;return function(...a){i||(i=!0,n.packet({type:Ae.ACK,id:e,data:a}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ae.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,e.data)}}}function Pi(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Pi.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Pi.prototype.reset=function(){this.attempts=0};Pi.prototype.setMin=function(t){this.ms=t};Pi.prototype.setMax=function(t){this.max=t};Pi.prototype.setJitter=function(t){this.jitter=t};class bf extends rt{constructor(e,n){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,hc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Pi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const a=n.parser||tA;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Wj(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=En(n,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},c=En(n,"error",l);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(a),this.subs.push(c),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(En(e,"ping",this.onping.bind(this)),En(e,"data",this.ondata.bind(this)),En(e,"error",this.onerror.bind(this)),En(e,"close",this.onclose.bind(this)),En(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){fc(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new Ow(this,e,n),this.nsps[e]=i),i}_destroy(e){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let i=0;i<n.length;i++)this.engine.write(n[i],e.options)}
260cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ko={};function $l(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Hj(t,e.path||"/socket.io"),i=n.source,a=n.id,l=n.path,c=ko[a]&&l in ko[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||c;let f;return d?f=new bf(i,e):(ko[a]||(ko[a]=new bf(i,e)),f=ko[a]),n.query&&!e.query&&(e.query=n.queryKey),f.socket(n.path,e)}Object.assign($l,{Manager:bf,Socket:Ow,io:$l,connect:$l});const rA=250;function i0(t,e){var n;const i=(n=t.token)!==null&&n!==void 0?n:Dr(),a={app_id:t.appId,token:i};i||(a.anonymous_id=Zl());const l=$l(t.serverUrl,{path:t.mountPath,transports:t.transports,query:a});return l.on("connect",async()=>{var c;return console.log("connect",l.id),(c=e.connect)===null||c===void 0?void 0:c.call(e)}),l.on("update_model",async c=>{var d;return(d=e.update_model)===null||d===void 0?void 0:d.call(e,c)}),l.on("error",async c=>{var d;return(d=e.error)===null||d===void 0?void 0:d.call(e,c)}),l.on("connect_error",async c=>{var d;return console.error("connect_error",c),(d=e.error)===null||d===void 0?void 0:d.call(e,c)}),l}function sA({config:t}){let e={...t};const n={},i={},a={connect:async()=>{const b=[];Object.keys(n).forEach(j=>{const C=w(j);C.length!==0&&(m(j),C.forEach(({connect:R})=>{const D=async()=>R==null?void 0:R();b.push(D())}))}),await Promise.all(b)},update_model:async b=>{const C=w(b.room).map(R=>{var D;return(D=R.update_model)===null||D===void 0?void 0:D.call(R,b)});await Promise.all(C)},error:async b=>{console.error("error",b);const j=Object.values(n).flat().map(C=>{var R;return(R=C.error)===null||R===void 0?void 0:R.call(C,b)});await Promise.all(j)}};let l=i0(t,a);function c(){d()}function d(){T(),l&&l.disconnect()}function f(b){c(),e={...e,...b},l=i0(e,a)}function m(b){l.emit("join",b)}function y(b){l.emit("leave",b)}async function v(b,j){var C;const R=JSON.stringify(j);return(C=a.update_model)===null||C===void 0?void 0:C.call(a,{room:b,data:R})}function w(b){var j;return(j=n[b])!==null&&j!==void 0?j:[]}function S(b){const j=i[b];j&&(clearTimeout(j),delete i[b])}
260function T(){Object.keys(i).forEach(b=>{var j,C;clearTimeout(i[b]),delete i[b],((C=(j=n[b])===null||j===void 0?void 0:j.length)!==null&&C!==void 0?C:0)===0&&delete n[b]})}function E(b){S(b),i[b]=setTimeout(()=>{var j,C;delete i[b],!(((C=(j=n[b])===null||j===void 0?void 0:j.length)!==null&&C!==void 0?C:0)>0)&&(y(b),delete n[b])},rA)}return{socket:l,subscribeToRoom:(b,j)=>{n[b]?S(b):(m(b),n[b]=[]),n[b].push(j);let C=!1;return()=>{var R,D;C||(C=!0,n[b]=(D=(R=n[b])===null||R===void 0?void 0:R.filter(z=>z!==j))!==null&&D!==void 0?D:[],n[b].length===0&&E(b))}},updateConfig:f,updateModel:v,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 261 PartySocket requires a global 'EventTarget' class to be available! 262 You can polyfill this global by adding this to your code before any partysocket imports: 263 264 \`\`\` 265 import 'partysocket/event-target-polyfill'; 266 \`\`\` 267 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 268`);var Lw=class extends Event{constructor(e,n){super("error",n);Ue(this,"message");Ue(this,"error");this.message=e.message,this.error=e}},Mw=class extends Event{constructor(e=1e3,n="",i){super("close",i);Ue(this,"code");Ue(this,"reason");Ue(this,"wasClean",!0);this.code=e,this.reason=n}},Ad={Event,ErrorEvent:Lw,CloseEvent:Mw};function iA(t,e){if(!t)throw new Error(e)}function oA(t){return new t.constructor(t.type,t)}function aA(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new Mw(t.code||1999,t.reason||"unknown reason",t):"error"in t?new Lw(t.error,t):new Event(t.type,t)}var Fv,lA=typeof process<"u"&&typeof((Fv=process.versions)==null?void 0:Fv.node)<"u"&&typeof document>"u",Al=lA?aA:oA,is={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},o0=!1,cA=class ls extends EventTarget{constructor(n,i,a={}){super();Ue(this,"_ws");Ue(this,"_retryCount",-1);Ue(this,"_uptimeTimeout");Ue(this,"_connectTimeout");Ue(this,"_shouldReconnect",!0);Ue(this,"_connectLock",!1);Ue(this,"_binaryType","blob");Ue(this,"_closeCalled",!1);Ue(this,"_messageQueue",[]);Ue(this,"_url");Ue(this,"_protocols");Ue(this,"_options");Ue(this,"onclose",null);Ue(this,"onerror",null);Ue(this,"onmessage",null);Ue(this,"onopen",null);Ue(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=is.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),iA(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(a=>{var l;return(l=this._ws)==null?void 0:l.send(a)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Al(n))});Ue(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Al(n))});Ue(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Al(n)),this._connect()});Ue(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Al(n))});this._url=n,this._protocols=i,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return ls.CONNECTING}get OPEN(){return ls.OPEN}get CLOSING(){return ls.CLOSING}get CLOSED(){return ls.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((i,a)=>(typeof a=="string"?i+=a.length:a instanceof Blob?i+=a.size:i+=a.byteLength,i),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?ls.CLOSED:ls.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,i){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,i)}reconnect(n,i){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,i),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:i=is.maxEnqueuedMessages}=this._options;this._messageQueue.length<i&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=is.reconnectionDelayGrowFactor,minReconnectionDelay:i=is.minReconnectionDelay,maxReconnectionDelay:a=is.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const i=n();if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(i.then)return i}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const i=n();if(typeof i=="string")return Promise.resolve(i);if(i.then)return i}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
268const{maxRetries:n=is.maxRetries,connectionTimeout:i=is.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([a,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!o0&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 269 270For example, if you're using node.js, run \`npm install ws\`, and then in your code: 271 272import PartySocket from 'partysocket'; 273import WS from 'ws'; 274 275const partysocket = new PartySocket({ 276 host: "127.0.0.1:1999", 277 room: "test-room", 278 WebSocket: WS 279}); 280 281`),o0=!0);const c=this._options.WebSocket||WebSocket;this._debug("connect",{url:a,protocols:l}),this._ws=l?new c(a,l):new c(a),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),i)}).catch(a=>{this._connectLock=!1,this._handleError(new Ad.ErrorEvent(Error(a.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Ad.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new Ad.CloseEvent(n,i,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 282 * Reconnecting WebSocket 283 * by Pedro Ladaria <[email protected]> 284 * https://github.com/pladaria/reconnecting-websocket 285 * License MIT 286 */const uA=1e3,dA=3e3,fA=new Set([405,409,422,503]),hA=new Set([400,403,404]);function pA(t){const e=t&&typeof t=="object"?t.status:void 0;return typeof e=="number"?e:void 0}function mA(t){return t instanceof Error?t:new Error(String(t))}class gA{constructor(e,n,i,a,l){var c;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:crypto.randomUUID();let d=i.transport==="proxy";const f=async()=>{var w;if(this.closed)throw new Error("Actor connection is closed");if(!d)try{const{websocket_url:S,token:T}=await i.mintConnectionToken(e,n,this.id),E=S.includes("?")?"&":"?";return`${S}${E}token=${encodeURIComponent(T)}`}catch(S){const T=pA(S);if(!(i.transport!=="direct"&&T!==void 0&&fA.has(T))){T!==void 0&&hA.has(T)&&this.close();try{(w=i.onMintError)===null||w===void 0||w.call(i,mA(S))}catch{}throw S}d=!0}return vA(i.host,e,n,this.id,i.appId,i.getAuthToken(),i.functionsVersion)},m=new cA(f);this.ws=m;let y=Date.now();const v=()=>{y=Date.now()};m.addEventListener("open",v),m.addEventListener("message",w=>{v();let S;try{S=JSON.parse(w.data)}catch{return}if((S&&typeof S=="object"?S.type:void 0)!=="__pong")for(const E of this.listeners)E(S)}),this.heartbeat=setInterval(()=>{if(Date.now()-y>dA){v(),m.readyState===m.OPEN&&m.reconnect();return}try{m.send(JSON.stringify({type:"__ping"}))}catch{}},uA)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.closed||this.ws.send(JSON.stringify(e))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function yA(t,e,n,i){let a=null;return{connect(l){if(a)return a;const c=new gA(t,e,n,l,()=>{i.delete(c),a===c&&(a=null)});return a=c,i.add(c),c}}}function vA(t,e,n,i,a,l,c){let d=t.replace(/^(http|https|ws|wss):\/\//,"");d.endsWith("/")&&(d=d.slice(0,-1));const f=d.startsWith("localhost:")||d.startsWith("127.0.0.1:")||d.startsWith("192.168.")||d.startsWith("10.")||d.startsWith("172.")&&d.split(".")[1]>="16"&&d.split(".")[1]<="31"||d.startsWith("[::ffff:7f00:1]:"),m=new URLSearchParams([["_pk",i],["app_id",a],["handler",e]]);return l&&m.append("token",l),c&&m.append("fv",c),`${f?"ws":"wss"}://${d}
286/parties/${e}/${n}?${m}`}function xA(t,e){return t&&!t.startsWith("/")?t:e??t}function wA(t){const e=new Set;return{module:new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"))return l=>yA(a,l,t,e)}}),closeAll:()=>{for(const i of[...e])i.close()}}}function bA(t){var e,n,i,a;const{serverUrl:l="https://base44.app",appId:c,analytics:d,token:f,serviceToken:m,requiresAuth:y=!1,appBaseUrl:v,options:w,functionsVersion:S,headers:T}=t,E=typeof v=="string"?v:"",k={serverUrl:l,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:c,token:f};let b=null;const j=()=>(b||(b=sA({config:k})),b),C={...T,"X-App-Id":String(c)},R=S?{...C,"Base44-Functions-Version":S}:C,D=oi({baseURL:`${l}/api`,headers:C,token:f,onError:w==null?void 0:w.onError}),z=oi({baseURL:`${l}/api`,headers:R,token:f,interceptResponses:!1,onError:w==null?void 0:w.onError}),J={...C,...f?{"on-behalf-of":`Bearer ${f}`}:{}},F=oi({baseURL:`${l}/api`,headers:J,token:m,onError:w==null?void 0:w.onError}),ee=oi({baseURL:`${l}/api`,headers:R,token:m,interceptResponses:!1}),ue=oi({baseURL:`${l}/api`,headers:C}),ke=ej(D,z,c,{appBaseUrl:E,token:f});if(typeof window<"u"){const he=f||Dr();he&&ke.setToken(he)}const Pe=wA({appId:c,host:xA(l,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:S,getAuthToken:()=>f||Dr(),mintConnectionToken:async(he,ce,K)=>{const ie=f||Dr();return await ue.post(`/apps/${c}/actors/${encodeURIComponent(he)}/connection-token`,{room:ce,connection_id:K},{headers:{...ie?{Authorization:`Bearer ${ie}`}:{},...S?{"Base44-Functions-Version":S}:{}}})},transport:w==null?void 0:w.actorsTransport,onMintError:w==null?void 0:w.onError}),Me={entities:qy({axios:D,appId:c,getSocket:j}),integrations:Gy(D,c),connectors:ij(D,c),auth:ke,functions:Qy(z,c,{getAuthHeaders:()=>{const he={},ce=f||Dr();return ce&&(he.Authorization=`Bearer ${ce}`),he},baseURL:(n=z.defaults)===null||n===void 0?void 0:n.baseURL}),agents:Yy({axios:D,getSocket:j,appId:c,serverUrl:l,token:f}),aiGateway:Jy({serverUrl:l,token:f,appId:c}),appLogs:Zy(D,c),app:cj(D,c),users:uj(D,c),analytics:FN({axiosClient:D,serverUrl:l,appId:c,userAuthModule:ke,enabled:(i=d==null?void 0:d.enabled)!==null&&i!==void 0?i:!0}),actors:Pe.module,cleanup:()=>{Me.analytics.cleanup(),Pe.closeAll(),b&&b.disconnect()}},Ce={entities:qy({axios:F,appId:c,getSocket:j}),integrations:Gy(F,c),sso:tj(F,c),connectors:rj(F,c),functions:Qy(ee,c,{getAuthHeaders:()=>{const he={};return m&&(he.Authorization=`Bearer ${m}`),he},baseURL:(a=ee.defaults)===null||a===void 0?void 0:a.baseURL}),agents:Yy({axios:F,getSocket:j,appId:c,serverUrl:l,token:f}),aiGateway:Jy({serverUrl:l,token:m,appId:c}),appLogs:Zy(F,c),cleanup:()=>{b&&b.disconnect()}};return y&&typeof window<"u"&&setTimeout(async()=>{try{await Me.auth.isAuthenticated()||Me.auth.redirectToLogin(window.location.href)}catch(he){console.error("Authentication check failed:",he),Me.auth.redirectToLogin(window.location.href)}},0),{...Me,fetchWithAuth:aj({axios:D,serviceRoleAxios:F,appId:String(c),serverUrl:l,functionsVersion:S,platformHeaders:T}),setToken(he){Me.auth.setToken(he),b&&b.updateConfig({token:he}),k.token=he},getConfig(){return{serverUrl:l,appId:c,requiresAuth:y}},get asServiceRole(){if(!m)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Ce}}}const Iw=typeof window>"u",SA=Iw?{localStorage:new Map}:window,Lo=SA.localStorage,kA=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),si=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>{if(Iw)return e;const i=`base44_${kA(t)}`,a=new URLSearchParams(window.location.search),l=a.get(t);if(n){a.delete(t);const d=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Lo.setItem(i,l),l;if(e)return Lo.setItem(i,e),e;const c=Lo.getItem(i);return c||null},EA=()=>(si("clear_access_token")==="true"&&(Lo.removeItem("base44_access_token"),Lo.removeItem("token")),{appId:si("app_id",{defaultValue:"6a06535d26910c3d85c9a7ab"}),token:si("access_token",{removeFromUrl:!0}),fromUrl:si("from_url",{defaultValue:window.location.href}),functionsVersion:si("functions_version",{defaultValue:"prod"}),appBaseUrl:si("app_base_url",{defaultValue:void 0})}),No={...EA()},{appId:_A,token:TA,functionsVersion:CA,appBaseUrl:NA}=No,jo=bA({appId:_A,token:TA,functionsVersion:CA,serverUrl:"",requiresAuth:!1,appBaseUrl:NA});function jA({}){var a;const e=sa().pathname.substring(1),{data:n,isFetched:i}=u_({queryKey:["user"],queryFn:async()=>{try{return{user:await jo.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return p.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:p.jsx("div",{className:"max-w-md w-full",children:p.jsxs("div",{className:"text-center space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),p.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),p.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",p.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((a=n.user)==null?void 0:a.role)==="admin"&&p.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:p.jsxs("div",{className:"flex items-start space-x-3",children:[p.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:p.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),p.jsxs("div",{className:"text-left space-y-1",children:[p.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),p.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),p.jsx("div",{className:"pt-6",children:p.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[p.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Dw=M.createContext(),AA=({children:t})=>{const[e,n]=M.useState(null),[i,a]=M.useState(!1),[l,c]=M.useState(!0),[d,f]=M.use
286State(!0),[m,y]=M.useState(null),[v,w]=M.useState(!1),[S,T]=M.useState(null);M.useEffect(()=>{E()},[]);const E=async()=>{var C,R;try{f(!0),y(null);const D=oi({baseURL:"/api/apps/public",headers:{"X-App-Id":No.appId},token:No.token,interceptResponses:!0});try{const z=await D.get(`/prod/public-settings/by-id/${No.appId}`);T(z),No.token?await k():(c(!1),a(!1),w(!0)),f(!1)}catch(z){if(console.error("App state check failed:",z),z.status===403&&((R=(C=z.data)==null?void 0:C.extra_data)!=null&&R.reason)){const J=z.data.extra_data.reason;y(J==="auth_required"?{type:"auth_required",message:"Authentication required"}:J==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:J,message:z.message})}else y({type:"unknown",message:z.message||"Failed to load app"});f(!1),c(!1)}}catch(D){console.error("Unexpected error:",D),y({type:"unknown",message:D.message||"An unexpected error occurred"}),f(!1),c(!1)}},k=async()=>{try{c(!0);const C=await jo.auth.me();n(C),a(!0),c(!1),w(!0)}catch(C){console.error("User auth check failed:",C),c(!1),a(!1),w(!0),(C.status===401||C.status===403)&&y({type:"auth_required",message:"Authentication required"})}},b=(C=!0)=>{n(null),a(!1),C?jo.auth.logout(window.location.href):jo.auth.logout()},j=()=>{jo.auth.redirectToLogin(window.location.href)};return p.jsx(Dw.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:m,appPublicSettings:S,authChecked:v,logout:b,navigateToLogin:j,checkUserAuth:k,checkAppState:E},children:t})},PA=()=>{const t=M.useContext(Dw);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},RA=()=>p.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:p.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:p.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),p.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),p.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),p.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[p.jsx("p",{children:"If you believe this is an error, you can:"}),p.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[p.jsx("li",{children:"Verify you are logged in with the correct account"}),p.jsx("li",{children:"Contact the app administrator for access"}),p.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),lh=M.createContext({});function ch(t){const e=M.useRef(null);return e.current===null&&(e.current=t()),e.current}const pc=M.createContext(null),uh=M.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class OA extends M.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function LA({children:t,isPresent:e}){const n=M.useId(),i=M.useRef(null),a=M.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=M.useContext(uh);return M.useInsertionEffect(()=>{const{width:c,height:d,top:f,left:m}=a.current;if(e||!i.current||!c||!d)return;i.current.dataset.motionPopId=n;const y=document.createElement("style");return l&&(y.nonce=l),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` 287 [data-motion-pop-id="${n}"] { 288 position: absolute !important; 289 width: ${c}px !important; 290 height: ${d}px !important; 291 top: ${f}px !important; 292 left: ${m}px !important; 293 } 294 `),()=>{document.head.removeChild(y)}},[e]),p.jsx(OA,{isPresent:e,childRef:i,sizeRef:a,children:M.cloneElement(t,{ref:i})})}const MA=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:c})=>{const d=ch(IA),f=M.useId(),m=M.useCallback(v=>{d.set(v,!0);for(const w of d.values())if(!w)return;i&&i()},[d,i]),y=M.useMemo(()=>({id:f,initial:e,isPresent:n,custom:a,onExitComplete:m,register:v=>(d.set(v,!1),()=>d.delete(v))}),l?[Math.random(),m]:[n,m]);return M.useMemo(()=>{d.forEach((v,w)=>d.set(w,!1))},[n]),M.useEffect(()=>{!n&&!d.size&&i&&i()},[n]),c==="popLayout"&&(t=p.jsx(LA,{isPresent:n,children:t})),p.jsx(pc.Provider,{value:y,children:t})};function IA(){return new Map}function Bw(t=!0){const e=M.useContext(pc);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=M.useId();M.useEffect(()=>{t&&a(l)},[t]);const c=M.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,c]:[!0]}const Pl=t=>t.key||"";function a0(t){const e=[];
vendor: 114,234 bytes, line 294
294return M.Children.forEach(t,n=>{M.isValidElement(n)&&e.push(n)}),e}const dh=typeof window<"u",Fw=dh?M.useLayoutEffect:M.useEffect,Vw=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync",propagate:c=!1})=>{const[d,f]=Bw(c),m=M.useMemo(()=>a0(t),[t]),y=c&&!d?[]:m.map(Pl),v=M.useRef(!0),w=M.useRef(m),S=ch(()=>new Map),[T,E]=M.useState(m),[k,b]=M.useState(m);Fw(()=>{v.current=!1,w.current=m;for(let R=0;R<k.length;R++){const D=Pl(k[R]);y.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[k,y.length,y.join("-")]);const j=[];if(m!==T){let R=[...m];for(let D=0;D<k.length;D++){const z=k[D],J=Pl(z);y.includes(J)||(R.splice(D,0,z),j.push(z))}l==="wait"&&j.length&&(R=j),b(a0(R)),E(m);return}const{forceRender:C}=M.useContext(lh);return p.jsx(p.Fragment,{children:k.map(R=>{const D=Pl(R),z=c&&!d?!1:m===k||y.includes(D),J=()=>{if(S.has(D))S.set(D,!0);else return;let F=!0;S.forEach(ee=>{ee||(F=!1)}),F&&(C==null||C(),b(w.current),c&&(f==null||f()),i&&i())};return p.jsx(MA,{isPresent:z,initial:!v.current||n?void 0:!1,custom:z?void 0:e,presenceAffectsLayout:a,mode:l,onExitComplete:z?void 0:J,children:R},D)})})},qt=t=>t;let Uw=qt;function fh(t){let e;return()=>(e===void 0&&(e=t()),e)}const _i=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Jn=t=>t*1e3,Zn=t=>t/1e3,DA={useManualTiming:!1};function BA(t){let e=new Set,n=new Set,i=!1,a=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(f.schedule(m),t()),m(c)}const f={schedule:(m,y=!1,v=!1)=>{const S=v&&i?e:n;return y&&l.add(m),S.has(m)||S.add(m),m},cancel:m=>{n.delete(m),l.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[e,n]=[n,e],e.forEach(d),e.clear(),i=!1,a&&(a=!1,f.process(m))}};return f}const Rl=["read","resolveKeyframes","update","preRender","render","postRender"],FA=40;function zw(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=Rl.reduce((b,j)=>(b[j]=BA(l),b),{}),{read:d,resolveKeyframes:f,update:m,preRender:y,render:v,postRender:w}=c,S=()=>{const b=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(b-a.timestamp,FA),1),a.timestamp=b,a.isProcessing=!0,d.process(a),f.process(a),m.process(a),y.process(a),v.process(a),w.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(S))},T=()=>{n=!0,i=!0,a.isProcessing||t(S)};return{schedule:Rl.reduce((b,j)=>{const C=c[j];return b[j]=(R,D=!1,z=!1)=>(n||T(),C.schedule(R,D,z)),b},{}),cancel:b=>{for(let j=0;j<Rl.length;j++)c[Rl[j]].cancel(b)},state:a,steps:c}}const{schedule:We,cancel:Ur,state:vt,steps:Pd}=zw(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0),$w=M.createContext({strict:!1}),l0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ti={};for(const t in l0)Ti[t]={isEnabled:e=>l0[t].some(n=>!!e[n])};function VA(t){for(const e in t)Ti[e]={...Ti[e],...t[e]}}const UA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ec(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||UA.has(t)}let Ww=t=>!ec(t);function zA(t){t&&(Ww=e=>e.startsWith("on")?!ec(e):t(e))}try{zA(require("@emotion/is-prop-valid").default)}catch{}function $A(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(Ww(a)||n===!0&&ec(a)||!e&&!ec(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function WA(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const mc=M.createContext({});function Wo(t){return typeof t=="string"||Array.isArray(t)}function gc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const hh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ph=["initial",...hh];function yc(t){return gc(t.animate)||ph.some(e=>Wo(t[e]))}function Hw(t){return!!(yc(t)||t.variants)}function HA(t,e){if(yc(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Wo(n)?n:void 0,animate:Wo(i)?i:void 0}}return t.inherit!==!1?e:{}}function qA(t){const{initial:e,animate:n}=HA(t,M.useContext(mc));return M.useMemo(()=>({initial:e,animate:n}),[c0(e),c0(n)])}function c0(t){return Array.isArray(t)?t.join(" "):t}const KA=Symbol.for("motionComponentSymbol");function ai(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function GA(t,e,n){return M.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ai(n)&&(n.current=i))},[e])}const mh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),QA="framerAppearId",qw="data-"+mh(QA),{schedule:gh}=zw(queueMicrotask,!1),Kw=M.createContext({});function YA(t,e,n,i,a){var l,c;const{visualElement:d}=M.useContext(mc),f=M.useContext($w),m=M.useContext(pc),y=M.useContext(uh).reducedMotion,v=M.useRef(null);i=i||f.renderer,!v.current&&i&&(v.current=i(t,{visualState:e,parent:d,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y}));const w=v.current,S=M.useContext(Kw);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&XA(v.current,n,a,S);const T=M.useRef(!1);M.useInsertionEffect(()=>{w&&T.current&&w.update(n,m)});const E=n[qw],k=M.useRef(!!E&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,E))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,E)));return Fw(()=>{w&&(T.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),gh.render(w.render),k.current&&w.animationState&&w.animationState.animateChanges())}),M.useEffect(()=>{w&&(!k.current&&w.animationState&&w.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,E)}),k.current=!1))}),w}function XA(t,e,n,i){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:m}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Gw(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&ai(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:m})}function Gw(t){if(t)return t.options.allowProjection!==!1?t.projection:Gw(t.parent)}function JA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:a}){var l,c;t&&VA(t);function d(m,y){let v;const w={...M.useContext(uh),...m,layoutId:ZA(m)},{isStatic:S}=w,T=qA(m),E=i(m,S);if(!S&&dh){eP();const k=tP(w);v=k.MeasureLayout,T.visualElement=YA(a,E,w,e,k.ProjectionNode)}return p.jsxs(mc.Provider,{value:T,children:[v&&T.visualElement?p.jsx(v,{visualElement:T.visualElement,...w}):null,n(a,m,GA(E,T.visualElement,y),E,S,T.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(c=(l=a.displayName)!==null&&l!==void 0?l:a.name)!==null&&c!==void 0?c:""})`}`;const f=M.forwardRef(d);return f[KA]=a,f}function ZA({layoutId:t}){const e=M.useContext(lh).id;return e&&t!==void 0?e+"-"+t:t}function eP(t,e){M.useContext($w).strict}function tP(t){const{drag:e,layout:n}=Ti;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const nP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function yh(t){return typeof t!="string"||t.includes("-")?!1:!!(nP.indexOf(t)>-1||/[A-Z]/u.test(t))}function u0(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function vh(t,e,n,i){if(typeof e=="function"){const[a,l]=u0(i);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=u0(i);e=e(n!==void 0?n:t.custom,a,l)}return e}const Sf=t=>Array.isArray(t),rP=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),sP=t=>Sf(t)?t[t.length-1]||0:t,Nt=t=>!!(t&&t.getVelocity);function Wl(t){const e=Nt(t)?t.get():t;return rP(e)?e.toValue():e}function iP({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,a,l){const c={latestValues:oP(i,a,l,t),renderState:e()};return n&&(c.onMount=d=>n({props:i,current:d,...c}),c.onUpdate=d=>n(d)),c}const Qw=t=>(e,n)=>{const i=M.useContext(mc),a=M.useContext(pc),l=()=>iP(t,e,i,a);return n?l():ch(l)};function oP(t,e,n,i){const a={},l=i(t,{});for(const w in l)a[w]=Wl(l[w]);let{initial:c,animate:d}=t;const f=yc(t),m=Hw(t);e&&m&&!f&&t.inherit!==!1&&(c===void 0&&(c=e.initial),d===void 0&&(d=e.animate));let y=n?n.initial===!1:!1;y=y||c===!1;const v=y?d:c;if(v&&typeof v!="boolean"&&!gc(v)){const w=Array.isArray(v)?v:[v];for(let S=0;S<w.length;S++){const T=vh(t,w[S]);if(T){const{transitionEnd:E,transition:k,...b}=T;for(const j in b){let C=b[j];if(Array.isArray(C)){const R=y?C.length-1:0;C=C[R]}C!==null&&(a[j]=C)}for(const j in E)a[j]=E[j]}}}return a}const Ri=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rs=new Set(Ri),Yw=t=>e=>typeof e=="string"&&e.startsWith(t),Xw=Yw("--"),aP=Yw("var(--"),xh=t=>aP(t)?lP.test(t.split("/*")[0].trim()):!1,lP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Jw=(t,e)=>e&&typeof t=="number"?e.transform(t):t,er=(t,e,n)=>n>e?e:n<t?t:n,Oi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ho={...Oi,transform:t=>er(0,1,t)},Ol={...Oi,default:1},ca=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Cr=ca("deg"),Ln=ca("%"),ge=ca("px"),cP=ca("vh"),uP=ca("vw"),d0={...Ln,parse:t=>Ln.parse(t)/100,transform:t=>Ln.transform(t*100)},dP={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,radius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,backgroundPositionX:ge,backgroundPositionY:ge},fP={rotate:Cr,rotateX:Cr,rotateY:Cr,rotateZ:Cr,scale:Ol,scaleX:Ol,scaleY:Ol,scaleZ:Ol,skew:Cr,skewX:Cr,skewY:Cr,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:Ho,originX:d0,originY:d0,originZ:ge},f0={...Oi,transform:Math.round},wh={...dP,...fP,zIndex:f0,size:ge,fillOpacity:Ho,strokeOpacity:Ho,numOctaves:f0},hP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pP=Ri.length;function mP(t,e,n){let i="",a=!0;for(let l=0;l<pP;l++){const c=Ri[l],d=t[c];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(c.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const m=Jw(d,wh[c]);if(!f){a=!1;const y=hP[c]||c;i+=`${y}(${m}) `}n&&(e[c]=m)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function bh(t,e,n){const{style:i,vars:a,transformOrigin:l}=t;let c=!1,d=!1;for(const f in e){const m=e[f];if(Rs.has(f)){c=!0;continue}else if(Xw(f)){a[f]=m;continue}else{const y=Jw(m,wh[f]);f.startsWith("origin")?(d=!0,l[f]=y):i[f]=y}}if(e.transform||(c||n?i.transform=mP(e,t.transform,n):i.transform&&(i.transform="none")),d){const{originX:f="50%",originY:m="50%",originZ:y=0}=l;i.transformOrigin=`${f} ${m} ${y}`}}const gP={offset:"stroke-dashoffset",array:"stroke-dasharray"},yP={offset:"strokeDashoffset",array:"strokeDasharray"};function vP(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?gP:yP;t[l.offset]=ge.transform(-i);const c=ge.transform(e),d=ge.transform(n);t[l.array]=`${c} ${d}`}function h0(t,e,n){return typeof t=="string"?t:ge.transform(e+n*t)}function xP(t,e,n){const i=h0(e,t.x,t.width),a=h0(n,t.y,t.height);return`${i} ${a}`}function Sh(t,{attrX:e,attrY:n,attrScale:i,originX:a,originY:l,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,v){if(bh(t,m,v),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:S,dimensions:T}=t;w.transform&&(T&&(S.transform=w.transform),delete w.transform),T&&(a!==void 0||l!==void 0||S.transform)&&(S.transformOrigin=xP(T,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),n!==void 0&&(w.y=n),i!==void 0&&(w.scale=i),c!==void 0&&vP(w,c,d,f,!1)}const kh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Zw=()=>({...kh(),attrs:{}}),Eh=t=>typeof t=="string"&&t.toLowerCase()==="svg";function eb(t,{style:e,vars:n},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const tb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nb(t,e,n,i){eb(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(tb.has(a)?a:mh(a),e.attrs[a])}const tc={};function wP(t){Object.assign(tc,t)}function rb(t,{layout:e,layoutId:n}){return Rs.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tc[t]||t==="opacity")}function _h(t,e,n){var i;const{style:a}=t,l={};for(const c in a)(Nt(a[c])||e.style&&Nt(e.style[c])||rb(c,t)||((i=n==null?void 0:n.getValue(c))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[c]=a[c]);return l}function sb(t,e,n){const i=_h(t,e,n);for(const a in t)if(Nt(t[a])||Nt(e[a])){const l=Ri.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function bP(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const p0=["x","y","width","height","cx","cy","r"],SP={useVisualState:Qw({scrapeMotionValuesFromProps:sb,createRenderState:Zw,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:a})=>{if(!n)return;let l=!!t.drag;if(!l){for(const d in a)if(Rs.has(d)){l=!0;break}}if(!l)return;let c=!e;if(e)for(let d=0;d<p0.length;d++){const f=p0[d];t[f]!==e[f]&&(c=!0)}c&&We.read(()=>{bP(n,i),We.render(()=>{Sh(i,a,Eh(n.tagName),t.transformTemplate),nb(n,i)})})}})},kP={useVisualState:Qw({scrapeMotionValuesFromProps:_h,createRenderState:kh})};function ib(t,e,n){for(const i in e)!Nt(e[i])&&!rb(i,n)&&(t[i]=e[i])}function EP({transformTemplate:t},e){return M.useMemo(()=>{const n=kh();return bh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function _P(t,e){const n=t.style||{},i={};return ib(i,n,t),Object.assign(i,EP(t,e)),i}function TP(t,e){const n={},i=_P(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function CP(t,e,n,i){const a=M.useMemo(()=>{const l=Zw();return Sh(l,e,Eh(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};ib(l,t.style,t),a.style={...l,...a.style}}return a}function NP(t=!1){return(n,i,a,{latestValues:l},c)=>{const f=(yh(n)?CP:TP)(i,l,c,n),m=$A(i,typeof n=="string",t),y=n!==M.Fragment?{...m,...f,ref:a}:{},{children:v}=i,w=M.useMemo(()=>Nt(v)?v.get():v,[v]);return M.createElement(n,{...y,children:w})}}function jP(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...yh(i)?SP:kP,preloadedFeatures:t,useRender:NP(a),createVisualElement:e,Component:i};return JA(c)}}function ob(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function vc(t,e,n){const i=t.getProps();return vh(i,e,n!==void 0?n:i.custom,t)}const AP=fh(()=>window.ScrollTimeline!==void 0);class PP{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(a=>{if(AP()&&a.attachTimeline)return a.attachTimeline(e);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,l)=>{a&&a(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class RP extends PP{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Th(t,e){return t?t[e]||t.default||t:void 0}const kf=2e4;function ab(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<kf;)e+=n,i=t.next(e);return e>=kf?1/0:e}function Ch(t){return typeof t=="function"}function m0(t,e){t.timeline=e,t.onfinish=null}const Nh=t=>Array.isArray(t)&&typeof t[0]=="number",OP={linearEasing:void 0};function LP(t,e){const n=fh(t);return()=>{var i;return(i=OP[e])!==null&&i!==void 0?i:n()}}const nc=LP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lb=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=t(_i(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function cb(t){return!!(typeof t=="function"&&nc()||!t||typeof t=="string"&&(t in Ef||nc())||Nh(t)||Array.isArray(t)&&t.every(cb))}const Ao=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Ef={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ao([0,.65,.55,1]),circOut:Ao([.55,0,1,.45]),backIn:Ao([.31,.01,.66,-.59]),backOut:Ao([.33,1.53,.69,.99])};function ub(t,e){if(t)return typeof t=="function"&&nc()?lb(t,e):Nh(t)?Ao(t):Array.isArray(t)?t.map(n=>ub(n,e)||Ef.easeOut):Ef[t]}const bn={x:!1,y:!1};function db(){return bn.x||bn.y}function MP(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let a=document;const l=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function fb(t,e){const n=MP(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function g0(t){return e=>{e.pointerType==="touch"||db()||t(e)}}function IP(t,e,n={}){const[i,a,l]=fb(t,n),c=g0(d=>{const{target:f}=d,m=e(d);if(typeof m!="function"||!f)return;const y=g0(v=>{m(v),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,a)});return i.forEach(d=>{d.addEventListener("pointerenter",c,a)}),l}const hb=(t,e)=>e?t===e?!0:hb(t,e.parentElement):!1,jh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,DP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function BP(t){return DP.has(t.tagName)||t.tabIndex!==-1}const Po=new WeakSet;function y0(t){return e=>{e.key==="Enter"&&t(e)}}function Rd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const FP=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=y0(()=>{if(Po.has(n))return;Rd(n,"down");const a=y0(()=>{Rd(n,"up")}),l=()=>Rd(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function v0(t){return jh(t)&&!db()}function VP(t,e,n={}){const[i,a,l]=fb(t,n),c=d=>{const f=d.currentTarget;if(!v0(d)||Po.has(f))return;Po.add(f);const m=e(d),y=(S,T)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),!(!v0(S)||!Po.has(f))&&(Po.delete(f),typeof m=="function"&&m(S,{success:T}))},v=S=>{y(S,n.useGlobalTarget||hb(f,S.target))},w=S=>{y(S,!1)};window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{!BP(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),d.addEventListener("focus",m=>FP(m,a),a)}),l}function UP(t){return t==="x"||t==="y"?bn[t]?null:(bn[t]=!0,()=>{bn[t]=!1}):bn.x||bn.y?null:(bn.x=bn.y=!0,()=>{bn.x=bn.y=!1})}const pb=new Set(["width","height","top","left","right","bottom",...Ri]);let Hl;function zP(){Hl=void 0}const Mn={now:()=>(Hl===void 0&&Mn.set(vt.isProcessing||DA.useManualTiming?vt.timestamp:performance.now()),Hl),set:t=>{Hl=t,queueMicrotask(zP)}};function Ah(t,e){t.indexOf(e)===-1&&t.push(e)}function Ph(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Rh{constructor(){this.subscriptions=[]}add(e){return Ah(this.subscriptions,e),()=>Ph(this.subscriptions,e)}notify(e,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,i);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function mb(t,e){return e?t*(1e3/e):0}const x0=30,$P=t=>!isNaN(parseFloat(t));class WP{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=Mn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$P(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Rh);const i=this.events[e].add(n);return e==="change"?()=>{i(),We.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>x0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,x0);return mb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qo(t,e){return new WP(t,e)}function HP(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qo(n))}function qP(t,e){const n=vc(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const c in l){const d=sP(l[c]);HP(t,c,d)}}function KP(t){return!!(Nt(t)&&t.add)}function _f(t,e){const n=t.getValue("willChange");if(KP(n))return n.add(e)}function gb(t){return t.props[qw]}const yb=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,GP=1e-7,QP=12;function YP(t,e,n,i,a){let l,c,d=0;do c=e+(n-e)/2,l=yb(c,i,a)-t,l>0?n=c:e=c;while(Math.abs(l)>GP&&++d<QP);return c}function ua(t,e,n,i){if(t===e&&n===i)return qt;const a=l=>YP(l,0,1,t,n);return l=>l===0||l===1?l:yb(a(l),e,i)}const vb=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,xb=t=>e=>1-t(1-e),wb=ua(.33,1.53,.69,.99),Oh=xb(wb),bb=vb(Oh),Sb=t=>(t*=2)<1?.5*Oh(t):.5*(2-Math.pow(2,-10*(t-1))),Lh=t=>1-Math.sin(Math.acos(t)),kb=xb(Lh),Eb=vb(Lh),_b=t=>/^0[^.\s]+$/u.test(t);function XP(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||_b(t):!0}const Mo=t=>Math.round(t*1e5)/1e5,Mh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JP(t){return t==null}const ZP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ih=(t,e)=>n=>!!(typeof n=="string"&&ZP.test(n)&&n.startsWith(t)||e&&!JP(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tb=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,c,d]=i.match(Mh);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},eR=t=>er(0,255,t),Od={...Oi,transform:t=>Math.round(eR(t))},hs={test:Ih("rgb","red"),parse:Tb("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Od.transform(t)+", "+Od.transform(e)+", "+Od.transform(n)+", "+Mo(Ho.transform(i))+")"};function tR(t){let e="",n="",i="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const Tf={test:Ih("#"),parse:tR,transform:hs.transform},li={test:Ih("hsl","hue"),parse:Tb("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Ln.transform(Mo(e))+", "+Ln.transform(Mo(n))+", "+Mo(Ho.transform(i))+")"},Ct={test:t=>hs.test(t)||Tf.test(t)||li.test(t),parse:t=>hs.test(t)?hs.parse(t):li.test(t)?li.parse(t):Tf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?hs.transform(t):li.transform(t)},nR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rR(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Mh))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(nR))===null||n===void 0?void 0:n.length)||0)>0}const Cb="number",Nb="color",sR="var",iR="var(",w0="${}",oR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ko(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(oR,f=>(Ct.test(f)?(i.color.push(l),a.push(Nb),n.push(Ct.parse(f))):f.startsWith(iR)?(i.var.push(l),a.push(sR),n.push(f)):(i.number.push(l),a.push(Cb),n.push(parseFloat(f))),++l,w0)).split(w0);return{values:n,split:d,indexes:i,types:a}}function jb(t){return Ko(t).values}function Ab(t){const{split:e,types:n}=Ko(t),i=e.length;return a=>{let l="";for(let c=0;c<i;c++)if(l+=e[c],a[c]!==void 0){const d=n[c];d===Cb?l+=Mo(a[c]):d===Nb?l+=Ct.transform(a[c]):l+=a[c]}return l}}const aR=t=>typeof t=="number"?0:t;function lR(t){const e=jb(t);return Ab(t)(e.map(aR))}const zr={test:rR,parse:jb,createTransformer:Ab,getAnimatableNone:lR},cR=new Set(["brightness","contrast","saturate","opacity"]);function uR(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Mh)||[];if(!i)return t;const a=n.replace(i,"");let l=cR.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const dR=/\b([a-z-]*)\(.*?\)/gu,Cf={...zr,getAnimatableNone:t=>{const e=t.match(dR);return e?e.map(uR).join(" "):t}},fR={...wh,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Cf,WebkitFilter:Cf},Dh=t=>fR[t];function Pb(t,e){let n=Dh(t);return n!==Cf&&(n=zr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const hR=new Set(["auto","none","0"]);function pR(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!hR.has(l)&&Ko(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=Pb(n,a)}const b0=t=>t===Oi||t===ge,S0=(t,e)=>parseFloat(t.split(", ")[e]),k0=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return S0(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?S0(l[1],t):0}},mR=new Set(["x","y","z"]),gR=Ri.filter(t=>!mR.has(t));function yR(t){const e=[];return gR.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const Ci={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:k0(4,13),y:k0(5,14)};Ci.translateX=Ci.x;Ci.translateY=Ci.y;const Es=new Set;let Nf=!1,jf=!1;function Rb(){if(jf){const t=Array.from(Es).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const a=yR(i);a.length&&(n.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,c])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(c)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}jf=!1,Nf=!1,Es.forEach(t=>t.complete()),Es.clear()}function Ob(){Es.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(jf=!0)})}function vR(){Ob(),Rb()}class Bh{constructor(e,n,i,a,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Es.add(this),Nf||(Nf=!0,We.read(Ob),We.resolveKeyframes(Rb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:a}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const c=a==null?void 0:a.get(),d=e[e.length-1];if(c!==void 0)e[0]=c;else if(i&&n){const f=i.readValue(n,d);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=d),a&&c===void 0&&a.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Lb=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),xR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wR(t){const e=xR.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function Mb(t,e,n=1){const[i,a]=wR(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const c=l.trim();return Lb(c)?parseFloat(c):c}return xh(a)?Mb(a,e,n+1):a}const Ib=t=>e=>e.test(t),bR={test:t=>t==="auto",parse:t=>t},Db=[Oi,ge,Ln,Cr,uP,cP,bR],E0=t=>Db.find(Ib(t));class Bb extends Bh{constructor(e,n,i,a,l){super(e,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let m=e[f];if(typeof m=="string"&&(m=m.trim(),xh(m))){const y=Mb(m,n.current);y!==void 0&&(e[f]=y),f===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!pb.has(i)||e.length!==2)return;const[a,l]=e,c=E0(a),d=E0(l);if(c!==d)if(b0(c)&&b0(d))for(let f=0;f<e.length;f++){const m=e[f];typeof m=="string"&&(e[f]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let a=0;a<e.length;a++)XP(e[a])&&i.push(a);i.length&&pR(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ci[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const c=a.length-1,d=a[c];a[c]=Ci[i](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,m])=>{n.getValue(f).set(m)}),this.resolveNoneKeyframes()}}const _0=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(zr.test(t)||t==="0")&&!t.startsWith("url("));function SR(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function kR(t,e,n,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],c=_0(a,e),d=_0(l,e);return!c||!d?!1:SR(t)||(n==="spring"||Ch(n))&&i}const ER=t=>t!==null;function xc(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(ER),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const _R=40;class Fb{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:e,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>_R?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&vR(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:c,onComplete:d,onUpdate:f,isGenerator:m}=this.options;if(!m&&!kR(e,i,a,l))if(c)this.options.duration=0;else{f&&f(xc(e,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ge=(t,e,n)=>t+(e-t)*n;function Ld(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function TR({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,l=0,c=0;if(!e)a=l=c=n;else{const d=n<.5?n*(1+e):n+e-n*e,f=2*n-d;a=Ld(f,d,t+1/3),l=Ld(f,d,t),c=Ld(f,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:i}}function rc(t,e){return n=>n>0?e:t}const Md=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},CR=[Tf,hs,li],NR=t=>CR.find(e=>e.test(t));function T0(t){const e=NR(t);if(!e)return!1;let n=e.parse(t);return e===li&&(n=TR(n)),n}const C0=(t,e)=>{const n=T0(t),i=T0(e);if(!n||!i)return rc(t,e);const a={...n};return l=>(a.red=Md(n.red,i.red,l),a.green=Md(n.green,i.green,l),a.blue=Md(n.blue,i.blue,l),a.alpha=Ge(n.alpha,i.alpha,l),hs.transform(a))},jR=(t,e)=>n=>e(t(n)),da=(...t)=>t.reduce(jR),Af=new Set(["none","hidden"]);function AR(t,e){return Af.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function PR(t,e){return n=>Ge(t,e,n)}function Fh(t){return typeof t=="number"?PR:typeof t=="string"?xh(t)?rc:Ct.test(t)?C0:LR:Array.isArray(t)?Vb:typeof t=="object"?Ct.test(t)?C0:RR:rc}function Vb(t,e){const n=[...t],i=n.length,a=t.map((l,c)=>Fh(l)(l,e[c]));return l=>{for(let c=0;c<i;c++)n[c]=a[c](l);return n}}function RR(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=Fh(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function OR(t,e){var n;const i=[],a={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const c=e.types[l],d=t.indexes[c][a[c]],f=(n=t.values[d])!==null&&n!==void 0?n:0;i[l]=f,a[c]++}return i}const LR=(t,e)=>{const n=zr.createTransformer(e),i=Ko(t),a=Ko(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Af.has(t)&&!a.values.length||Af.has(e)&&!i.values.length?AR(t,e):da(Vb(OR(i,a),a.values),n):rc(t,e)};function Ub(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Ge(t,e,n):Fh(t)(t,e)}const MR=5;function zb(t,e,n){const i=Math.max(e-MR,0);return mb(n-t(i),e-i)}const Xe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Id=.001;function IR({duration:t=Xe.duration,bounce:e=Xe.bounce,velocity:n=Xe.velocity,mass:i=Xe.mass}){let a,l,c=1-e;c=er(Xe.minDamping,Xe.maxDamping,c),t=er(Xe.minDuration,Xe.maxDuration,Zn(t)),c<1?(a=m=>{const y=m*c,v=y*t,w=y-n,S=Pf(m,c),T=Math.exp(-v);return Id-w/S*T},l=m=>{const v=m*c*t,w=v*n+n,S=Math.pow(c,2)*Math.pow(m,2)*t,T=Math.exp(-v),E=Pf(Math.pow(m,2),c);return(-a(m)+Id>0?-1:1)*((w-S)*T)/E}):(a=m=>{const y=Math.exp(-m*t),v=(m-n)*t+1;return-Id+y*v},l=m=>{const y=Math.exp(-m*t),v=(n-m)*(t*t);return y*v});const d=5/t,f=BR(a,l,d);if(t=Jn(t),isNaN(f))return{stiffness:Xe.stiffness,damping:Xe.damping,duration:t};{const m=Math.pow(f,2)*i;return{stiffness:m,damping:c*2*Math.sqrt(i*m),duration:t}}}const DR=12;function BR(t,e,n){let i=n;for(let a=1;a<DR;a++)i=i-t(i)/e(i);return i}function Pf(t,e){return t*Math.sqrt(1-e*e)}const FR=["duration","bounce"],VR=["stiffness","damping","mass"];function N0(t,e){return e.some(n=>t[n]!==void 0)}function UR(t){let e={velocity:Xe.velocity,stiffness:Xe.stiffness,damping:Xe.damping,mass:Xe.mass,isResolvedFromDuration:!1,...t};if(!N0(t,VR)&&N0(t,FR))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*er(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Xe.mass,stiffness:a,damping:l}}else{const n=IR(t);e={...e,...n,mass:Xe.mass},e.isResolvedFromDuration=!0}return e}function $b(t=Xe.visualDuration,e=Xe.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:m,mass:y,duration:v,velocity:w,isResolvedFromDuration:S}=UR({...n,velocity:-Zn(n.velocity||0)}),T=w||0,E=m/(2*Math.sqrt(f*y)),k=c-l,b=Zn(Math.sqrt(f/y)),j=Math.abs(k)<5;i||(i=j?Xe.restSpeed.granular:Xe.restSpeed.default),a||(a=j?Xe.restDelta.granular:Xe.restDelta.default);let C;if(E<1){const D=Pf(b,E);C=z=>{const J=Math.exp(-E*b*z);return c-J*((T+E*b*k)/D*Math.sin(D*z)+k*Math.cos(D*z))}}else if(E===1)C=D=>c-Math.exp(-b*D)*(k+(T+b*k)*D);else{const D=b*Math.sqrt(E*E-1);C=z=>{const J=Math.exp(-E*b*z),F=Math.min(D*z,300);return c-J*((T+E*b*k)*Math.sinh(F)+D*k*Math.cosh(F))/D}}const R={calculatedDuration:S&&v||null,next:D=>{const z=C(D);if(S)d.done=D>=v;else{let J=0;E<1&&(J=D===0?Jn(T):zb(C,D,z));const F=Math.abs(J)<=i,ee=Math.abs(c-z)<=a;d.done=F&&ee}return d.value=d.done?c:z,d},toString:()=>{const D=Math.min(ab(R),kf),z=lb(J=>R.next(D*J).value,D,30);return D+"ms "+z}};return R}function j0({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:f,restDelta:m=.5,restSpeed:y}){const v=t[0],w={done:!1,value:v},S=F=>d!==void 0&&F<d||f!==void 0&&F>f,T=F=>d===void 0?f:f===void 0||Math.abs(d-F)<Math.abs(f-F)?d:f;let E=n*e;const k=v+E,b=c===void 0?k:c(k);b!==k&&(E=b-v);const j=F=>-E*Math.exp(-F/i),C=F=>b+j(F),R=F=>{const ee=j(F),ue=C(F);w.done=Math.abs(ee)<=m,w.value=w.done?b:ue};let D,z;const J=F=>{S(w.value)&&(D=F,z=$b({keyframes:[w.value,T(w.value)],velocity:zb(C,F,w.value),damping:a,stiffness:l,restDelta:m,restSpeed:y}))};return J(0),{calculatedDuration:null,next:F=>{let ee=!1;return!z&&D===void 0&&(ee=!0,R(F),J(F)),D!==void 0&&F>=D?z.next(F-D):(!ee&&R(F),w)}}}const zR=ua(.42,0,1,1),$R=ua(0,0,.58,1),Wb=ua(.42,0,.58,1),WR=t=>Array.isArray(t)&&typeof t[0]!="number",HR={linear:qt,easeIn:zR,easeInOut:Wb,easeOut:$R,circIn:Lh,circInOut:Eb,circOut:kb,backIn:Oh,backInOut:bb,backOut:wb,anticipate:Sb},A0=t=>{if(Nh(t)){Uw(t.length===4);const[e,n,i,a]=t;return ua(e,n,i,a)}else if(typeof t=="string")return HR[t];return t};function qR(t,e,n){const i=[],a=n||Ub,l=t.length-1;for(let c=0;c<l;c++){let d=a(t[c],t[c+1]);if(e){const f=Array.isArray(e)?e[c]||qt:e;d=da(f,d)}i.push(d)}return i}function KR(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(Uw(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const c=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=qR(e,i,a),f=d.length,m=y=>{if(c&&y<t[0])return e[0];let v=0;if(f>1)for(;v<t.length-2&&!(y<t[v+1]);v++);const w=_i(t[v],t[v+1],y);return d[v](w)};return n?y=>m(er(t[0],t[l-1],y)):m}function GR(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=_i(0,e,i);t.push(Ge(n,1,a))}}function QR(t){const e=[0];return GR(e,t.length-1),e}function YR(t,e){return t.map(n=>n*e)}function XR(t,e){return t.map(()=>e||Wb).splice(0,t.length-1)}function sc({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=WR(i)?i.map(A0):A0(i),l={done:!1,value:e[0]},c=YR(n&&n.length===e.length?n:QR(e),t),d=KR(c,e,{ease:Array.isArray(a)?a:XR(e,a)});return{calculatedDuration:t,next:f=>(l.value=d(f),l.done=f>=t,l)}}const JR=t=>{const e=({timestamp:n})=>t(n);return{start:()=>We.update(e,!0),stop:()=>Ur(e),now:()=>vt.isProcessing?vt.timestamp:Mn.now()}},ZR={decay:j0,inertia:j0,tween:sc,keyframes:sc,spring:$b},eO=t=>t/100;class Vh extends Fb{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:i,element:a,keyframes:l}=this.options,c=(a==null?void 0:a.KeyframeResolver)||Bh,d=(f,m)=>this.onKeyframesResolved(f,m);this.resolver=new c(l,d,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=this.options,d=Ch(n)?n:ZR[n]||sc;let f,m;d!==sc&&typeof e[0]!="number"&&(f=da(eO,Ub(e[0],e[1])),e=[0,100]);const y=d({...this.options,keyframes:e});l==="mirror"&&(m=d({...this.options,keyframes:[...e].reverse(),velocity:-c})),y.calculatedDuration===null&&(y.calculatedDuration=ab(y));const{calculatedDuration:v}=y,w=v+a,S=w*(i+1)-a;return{generator:y,mirroredGenerator:m,mapPercentToKeyframes:f,calculatedDuration:v,resolvedDuration:w,totalDuration:S}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:a,generator:l,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:m,totalDuration:y,resolvedDuration:v}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:S,repeatType:T,repeatDelay:E,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const b=this.currentTime-w*(this.speed>=0?1:-1),j=this.speed>=0?b<0:b>y;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let C=this.currentTime,R=l;if(S){const F=Math.min(this.currentTime,y)/v;let ee=Math.floor(F),ue=F%1;!ue&&F>=1&&(ue=1),ue===1&&ee--,ee=Math.min(ee,S+1),!!(ee%2)&&(T==="reverse"?(ue=1-ue,E&&(ue-=E/v)):T==="mirror"&&(R=c)),C=er(0,1,ue)*v}const D=j?{done:!1,value:f[0]}:R.next(C);d&&(D.value=d(D.value));let{done:z}=D;!j&&m!==null&&(z=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return J&&a!==void 0&&(D.value=xc(f,this.options,a)),k&&k(D.value),J&&this.finish(),D}get duration(){const{resolved:e}=this;return e?Zn(e.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(e){e=Jn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=JR,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const tO=new Set(["opacity","clipPath","filter","transform"]);function nO(t,e,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeInOut",times:f}={}){const m={[e]:n};f&&(m.offset=f);const y=ub(d,a);return Array.isArray(y)&&(m.easing=y),t.animate(m,{delay:i,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const rO=fh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ic=10,sO=2e4;function iO(t){return Ch(t.type)||t.type==="spring"||!cb(t.ease)}function oO(t,e){const n=new Vh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const a=[];let l=0;for(;!i.done&&l<sO;)i=n.sample(l),a.push(i.value),l+=ic;return{times:void 0,keyframes:a,duration:l-ic,ease:"linear"}}const Hb={anticipate:Sb,backInOut:bb,circInOut:Eb};function aO(t){return t in Hb}class P0 extends Fb{constructor(e){super(e);const{name:n,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new Bb(l,(c,d)=>this.onKeyframesResolved(c,d),n,i,a),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:a,ease:l,type:c,motionValue:d,name:f,startTime:m}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&nc()&&aO(l)&&(l=Hb[l]),iO(this.options)){const{onComplete:v,onUpdate:w,motionValue:S,element:T,...E}=this.options,k=oO(e,E);e=k.keyframes,e.length===1&&(e[1]=e[0]),i=k.duration,a=k.times,l=k.ease,c="keyframes"}const y=nO(d.owner.current,f,e,{...this.options,duration:i,times:a,ease:l});return y.startTime=m??this.calcStartTime(),this.pendingTimeline?(m0(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:v}=this.options;d.set(xc(e,this.options,n)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:i,times:a,type:c,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Zn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Zn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Jn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return qt;const{animation:i}=n;m0(i,e)}return qt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:a,type:l,ease:c,times:d}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:y,onComplete:v,element:w,...S}=this.options,T=new Vh({...S,keyframes:i,duration:a,type:l,ease:c,times:d,isGenerator:!0}),E=Jn(this.time);m.setWithVelocity(T.sample(E-ic).value,T.sample(E).value,ic)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:a,repeatType:l,damping:c,type:d}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:m}=n.owner.getProps();return rO()&&i&&tO.has(i)&&!f&&!m&&!a&&l!=="mirror"&&c!==0&&d!=="inertia"}}const lO={type:"spring",stiffness:500,damping:25,restSpeed:10},cO=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),uO={type:"keyframes",duration:.8},dO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fO=(t,{keyframes:e})=>e.length>2?uO:Rs.has(t)?t.startsWith("scale")?cO(e[1]):lO:dO;function hO({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:c,repeatDelay:d,from:f,elapsed:m,...y}){return!!Object.keys(y).length}const Uh=(t,e,n,i={},a,l)=>c=>{const d=Th(i,t)||{},f=d.delay||i.delay||0;let{elapsed:m=0}=i;m=m-Jn(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-m,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};hO(d)||(y={...y,...fO(t,y)}),y.duration&&(y.duration=Jn(y.duration)),y.repeatDelay&&(y.repeatDelay=Jn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(v=!0)),v&&!l&&e.get()!==void 0){const w=xc(y.keyframes,d);if(w!==void 0)return We.update(()=>{y.onUpdate(w),y.onComplete()}),new RP([])}return!l&&P0.supports(y)?new P0(y):new Vh(y)};function pO({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function qb(t,e,{delay:n=0,transitionOverride:i,type:a}={}){var l;let{transition:c=t.getDefaultTransition(),transitionEnd:d,...f}=e;i&&(c=i);const m=[],y=a&&t.animationState&&t.animationState.getState()[a];for(const v in f){const w=t.getValue(v,(l=t.latestValues[v])!==null&&l!==void 0?l:null),S=f[v];if(S===void 0||y&&pO(y,v))continue;const T={delay:n,...Th(c||{},v)};let E=!1;if(window.MotionHandoffAnimation){const b=gb(t);if(b){const j=window.MotionHandoffAnimation(b,v,We);j!==null&&(T.startTime=j,E=!0)}}_f(t,v),w.start(Uh(v,w,S,t.shouldReduceMotion&&pb.has(v)?{type:!1}:T,t,E));const k=w.animation;k&&m.push(k)}return d&&Promise.all(m).then(()=>{We.update(()=>{d&&qP(t,d)})}),m}function Rf(t,e,n={}){var i;const a=vc(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(l=n.transitionOverride);const c=a?()=>Promise.all(qb(t,a,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:w}=l;return mO(t,e,y+m,v,w,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[m,y]=f==="beforeChildren"?[c,d]:[d,c];return m().then(()=>y())}else return Promise.all([c(),d(n.delay)])}function mO(t,e,n=0,i=0,a=1,l){const c=[],d=(t.variantChildren.size-1)*i,f=a===1?(m=0)=>m*i:(m=0)=>d-m*i;return Array.from(t.variantChildren).sort(gO).forEach((m,y)=>{m.notify("AnimationStart",e),c.push(Rf(m,e,{...l,delay:n+f(y)}).then(()=>m.notify("AnimationComplete",e)))}),Promise.all(c)}function gO(t,e){return t.sortNodePosition(e)}function yO(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>Rf(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=Rf(t,e,n);else{const a=typeof e=="function"?vc(t,e,n.custom):e;i=Promise.all(qb(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const vO=ph.length;function Kb(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Kb(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<vO;n++){const i=ph[n],a=t.props[i];(Wo(a)||a===!1)&&(e[i]=a)}return e}const xO=[...hh].reverse(),wO=hh.length;function bO(t){return e=>Promise.all(e.map(({animation:n,options:i})=>yO(t,n,i)))}function SO(t){let e=bO(t),n=R0(),i=!0;const a=f=>(m,y)=>{var v;const w=vc(t,y,f==="exit"?(v=t.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(w){const{transition:S,transitionEnd:T,...E}=w;m={...m,...E,...T}}return m};function l(f){e=f(t)}function c(f){const{props:m}=t,y=Kb(t.parent)||{},v=[],w=new Set;let S={},T=1/0;for(let k=0;k<wO;k++){const b=xO[k],j=n[b],C=m[b]!==void 0?m[b]:y[b],R=Wo(C),D=b===f?j.isActive:null;D===!1&&(T=k);let z=C===y[b]&&C!==m[b]&&R;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),j.protectedKeys={...S},!j.isActive&&D===null||!C&&!j.prevProp||gc(C)||typeof C=="boolean")continue;const J=kO(j.prevProp,C);let F=J||b===f&&j.isActive&&!z&&R||k>T&&R,ee=!1;const ue=Array.isArray(C)?C:[C];let ke=ue.reduce(a(b),{});D===!1&&(ke={});const{prevResolvedValues:Pe={}}=j,Me={...Pe,...ke},Ce=ce=>{F=!0,w.has(ce)&&(ee=!0,w.delete(ce)),j.needsAnimating[ce]=!0;const K=t.getValue(ce);K&&(K.liveStyle=!1)};for(const ce in Me){const K=ke[ce],ie=Pe[ce];if(S.hasOwnProperty(ce))continue;let U=!1;Sf(K)&&Sf(ie)?U=!ob(K,ie):U=K!==ie,U?K!=null?Ce(ce):w.add(ce):K!==void 0&&w.has(ce)?Ce(ce):j.protectedKeys[ce]=!0}j.prevProp=C,j.prevResolvedValues=ke,j.isActive&&(S={...S,...ke}),i&&t.blockInitialAnimation&&(F=!1),F&&(!(z&&J)||ee)&&v.push(...ue.map(ce=>({animation:ce,options:{type:b}})))}if(w.size){const k={};w.forEach(b=>{const j=t.getBaseTarget(b),C=t.getValue(b);C&&(C.liveStyle=!0),k[b]=j??null}),v.push({animation:k})}let E=!!v.length;return i&&(m.initial===!1||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(E=!1),i=!1,E?e(v):Promise.resolve()}function d(f,m){var y;if(n[f].isActive===m)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(w=>{var S;return(S=w.animationState)===null||S===void 0?void 0:S.setActive(f,m)}),n[f].isActive=m;const v=c(f);for(const w in n)n[w].protectedKeys={};return v}return{animateChanges:c,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=R0(),i=!0}}}function kO(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ob(e,t):!1}function os(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function R0(){return{animate:os(!0),whileInView:os(),whileHover:os(),whileTap:os(),whileDrag:os(),whileFocus:os(),exit:os()}}class Wr{constructor(e){this.isMounted=!1,this.node=e}update(){}}class EO extends Wr{constructor(e){super(e),e.animationState||(e.animationState=SO(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();gc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let _O=0;class TO extends Wr{constructor(){super(...arguments),this.id=_O++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const CO={animation:{Feature:EO},exit:{Feature:TO}};function Go(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function fa(t){return{point:{x:t.pageX,y:t.pageY}}}const NO=t=>e=>jh(e)&&t(e,fa(e));function Io(t,e,n,i){return Go(t,e,NO(n),i)}const O0=(t,e)=>Math.abs(t-e);function jO(t,e){const n=O0(t.x,e.x),i=O0(t.y,e.y);return Math.sqrt(n**2+i**2)}class Gb{constructor(e,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Bd(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,S=jO(v.offset,{x:0,y:0})>=3;if(!w&&!S)return;const{point:T}=v,{timestamp:E}=vt;this.history.push({...T,timestamp:E});const{onStart:k,onMove:b}=this.handlers;w||(k&&k(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,v)},this.handlePointerMove=(v,w)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Dd(w,this.transformPagePoint),We.update(this.updatePoint,!0)},this.handlePointerUp=(v,w)=>{this.end();const{onEnd:S,onSessionEnd:T,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Bd(v.type==="pointercancel"?this.lastMoveEventInfo:Dd(w,this.transformPagePoint),this.history);this.startEvent&&S&&S(v,k),T&&T(v,k)},!jh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const c=fa(e),d=Dd(c,this.transformPagePoint),{point:f}=d,{timestamp:m}=vt;this.history=[{...f,timestamp:m}];const{onSessionStart:y}=n;y&&y(e,Bd(d,this.history)),this.removeListeners=da(Io(this.contextWindow,"pointermove",this.handlePointerMove),Io(this.contextWindow,"pointerup",this.handlePointerUp),Io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ur(this.updatePoint)}}function Dd(t,e){return e?{point:e(t.point)}:t}function L0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Bd({point:t},e){return{point:t,delta:L0(t,Qb(e)),offset:L0(t,AO(e)),velocity:PO(e,.1)}}function AO(t){return t[0]}function Qb(t){return t[t.length-1]}function PO(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=Qb(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>Jn(e)));)n--;if(!i)return{x:0,y:0};const l=Zn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const Yb=1e-4,RO=1-Yb,OO=1+Yb,Xb=.01,LO=0-Xb,MO=0+Xb;function Kt(t){return t.max-t.min}function IO(t,e,n){return Math.abs(t-e)<=n}function M0(t,e,n,i=.5){t.origin=i,t.originPoint=Ge(e.min,e.max,t.origin),t.scale=Kt(n)/Kt(e),t.translate=Ge(n.min,n.max,t.origin)-t.originPoint,(t.scale>=RO&&t.scale<=OO||isNaN(t.scale))&&(t.scale=1),(t.translate>=LO&&t.translate<=MO||isNaN(t.translate))&&(t.translate=0)}function Do(t,e,n,i){M0(t.x,e.x,n.x,i?i.originX:void 0),M0(t.y,e.y,n.y,i?i.originY:void 0)}function I0(t,e,n){t.min=n.min+e.min,t.max=t.min+Kt(e)}function DO(t,e,n){I0(t.x,e.x,n.x),I0(t.y,e.y,n.y)}function D0(t,e,n){t.min=e.min-n.min,t.max=t.min+Kt(e)}function Bo(t,e,n){D0(t.x,e.x,n.x),D0(t.y,e.y,n.y)}function BO(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?Ge(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?Ge(n,t,i.max):Math.min(t,n)),t}function B0(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function FO(t,{top:e,left:n,bottom:i,right:a}){return{x:B0(t.x,n,a),y:B0(t.y,e,i)}}function F0(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function VO(t,e){return{x:F0(t.x,e.x),y:F0(t.y,e.y)}}function UO(t,e){let n=.5;const i=Kt(t),a=Kt(e);return a>i?n=_i(e.min,e.max-i,t.min):i>a&&(n=_i(t.min,t.max-a,e.min)),er(0,1,n)}function zO(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Of=.35;function $O(t=Of){return t===!1?t=0:t===!0&&(t=Of),{x:V0(t,"left","right"),y:V0(t,"top","bottom")}}function V0(t,e,n){return{min:U0(t,e),max:U0(t,n)}}function U0(t,e){return typeof t=="number"?t:t[e]||0}const z0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ci=()=>({x:z0(),y:z0()}),$0=()=>({min:0,max:0}),et=()=>({x:$0(),y:$0()});function sn(t){return[t("x"),t("y")]}function Jb({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function WO({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function HO(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Fd(t){return t===void 0||t===1}function Lf({scale:t,scaleX:e,scaleY:n}){return!Fd(t)||!Fd(e)||!Fd(n)}function cs(t){return Lf(t)||Zb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Zb(t){return W0(t.x)||W0(t.y)}function W0(t){return t&&t!=="0%"}function oc(t,e,n){const i=t-n,a=e*i;return n+a}function H0(t,e,n,i,a){return a!==void 0&&(t=oc(t,a,i)),oc(t,n,i)+e}function Mf(t,e=0,n=1,i,a){t.min=H0(t.min,e,n,i,a),t.max=H0(t.max,e,n,i,a)}function e1(t,{x:e,y:n}){Mf(t.x,e.translate,e.scale,e.originPoint),Mf(t.y,n.translate,n.scale,n.originPoint)}const q0=.999999999999,K0=1.0000000000001;function qO(t,e,n,i=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,c;for(let d=0;d<a;d++){l=n[d],c=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&di(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,e1(t,c)),i&&cs(l.latestValues)&&di(t,l.latestValues))}e.x<K0&&e.x>q0&&(e.x=1),e.y<K0&&e.y>q0&&(e.y=1)}function ui(t,e){t.min=t.min+e,t.max=t.max+e}function G0(t,e,n,i,a=.5){const l=Ge(t.min,t.max,a);Mf(t,e,n,l,i)}function di(t,e){G0(t.x,e.x,e.scaleX,e.scale,e.originX),G0(t.y,e.y,e.scaleY,e.scale,e.originY)}function t1(t,e){return Jb(HO(t.getBoundingClientRect(),e))}function KO(t,e,n){const i=t1(t,n),{scroll:a}=e;return a&&(ui(i.x,a.offset.x),ui(i.y,a.offset.y)),i}const n1=({current:t})=>t?t.ownerDocument.defaultView:null,GO=new WeakMap;class QO{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fa(y).point)},l=(y,v)=>{const{drag:w,dragPropagation:S,onDragStart:T}=this.getProps();if(w&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UP(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sn(k=>{let b=this.getAxisMotionValue(k).get()||0;if(Ln.test(b)){const{projection:j}=this.visualElement;if(j&&j.layout){const C=j.layout.layoutBox[k];C&&(b=Kt(C)*(parseFloat(b)/100))}}this.originPoint[k]=b}),T&&We.postRender(()=>T(y,v)),_f(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},c=(y,v)=>{const{dragPropagation:w,dragDirectionLock:S,onDirectionLock:T,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:k}=v;if(S&&this.currentDirection===null){this.currentDirection=YO(k),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",v.point,k),this.updateAxis("y",v.point,k),this.visualElement.render(),E&&E(y,v)},d=(y,v)=>this.stop(y,v),f=()=>sn(y=>{var v;return this.getAnimationState(y)==="paused"&&((v=this.getAxisMotionValue(y).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Gb(e,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:n1(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&We.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:a}=this.getProps();if(!i||!Ll(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let c=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(c=BO(c,this.constraints[e],this.elastic[e])),l.set(c)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&ai(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=FO(a.layoutBox,n):this.constraints=!1,this.elastic=$O(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&sn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=zO(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ai(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=KO(i,a.root,this.visualElement.getTransformPagePoint());let c=VO(a.layout.layoutBox,l);if(n){const d=n(WO(c));this.hasMutatedConstraints=!!d,d&&(c=Jb(d))}return c}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},m=sn(y=>{if(!Ll(y,n,this.currentDirection))return;let v=f&&f[y]||{};c&&(v={min:0,max:0});const w=a?200:1e6,S=a?40:1e7,T={type:"inertia",velocity:i?e[y]:0,bounceStiffness:w,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...l,...v};return this.startAxisValueAnimation(y,T)});return Promise.all(m).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return _f(this.visualElement,e),i.start(Uh(e,i,0,n,this.visualElement,!1))}stopAnimation(){sn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){sn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){sn(n=>{const{drag:i}=this.getProps();if(!Ll(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[n];l.set(e[n]-Ge(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ai(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};sn(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const f=d.get();a[c]=UO({min:f,max:f},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sn(c=>{if(!Ll(c,e,null))return;const d=this.getAxisMotionValue(c),{min:f,max:m}=this.constraints[c];d.set(Ge(f,m,a[c]))})}addListeners(){if(!this.visualElement.current)return;GO.set(this.visualElement,this);const e=this.visualElement.current,n=Io(e,"pointerdown",f=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();ai(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),We.read(i);const c=Go(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(sn(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=f[y].translate,v.set(v.get()+f[y].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=Of,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function Ll(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function YO(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class XO extends Wr{constructor(e){super(e),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new QO(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Q0=t=>(e,n)=>{t&&We.postRender(()=>t(e,n))};class JO extends Wr{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(e){this.session=new Gb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n1(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:Q0(e),onStart:Q0(n),onMove:i,onEnd:(l,c)=>{delete this.session,a&&We.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=Io(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ql={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Y0(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Eo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ge.test(t))t=parseFloat(t);else return t;const n=Y0(t,e.target.x),i=Y0(t,e.target.y);return`${n}% ${i}%`}},ZO={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=zr.parse(t);if(a.length>5)return i;const l=zr.createTransformer(t),c=typeof a[0]!="number"?1:0,d=n.x.scale*e.x,f=n.y.scale*e.y;a[0+c]/=d,a[1+c]/=f;const m=Ge(d,f,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),l(a)}};class e4 extends M.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;wP(t4),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),ql.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,c=i.projection;return c&&(c.isPresent=l,a||e.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?c.promote():c.relegate()||We.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),gh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r1(t){const[e,n]=Bw(),i=M.useContext(lh);return p.jsx(e4,{...t,layoutGroup:i,switchLayoutGroup:M.useContext(Kw),isPresent:e,safeToRemove:n})}const t4={borderRadius:{...Eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Eo,borderTopRightRadius:Eo,borderBottomLeftRadius:Eo,borderBottomRightRadius:Eo,boxShadow:ZO};function n4(t,e,n){const i=Nt(t)?t:qo(t);return i.start(Uh("",i,e,n)),i.animation}function r4(t){return t instanceof SVGElement&&t.tagName!=="svg"}const s4=(t,e)=>t.depth-e.depth;class i4{constructor(){this.children=[],this.isDirty=!1}add(e){Ah(this.children,e),this.isDirty=!0}remove(e){Ph(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(s4),this.isDirty=!1,this.children.forEach(e)}}function o4(t,e){const n=Mn.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(Ur(i),t(l-e))};return We.read(i,!0),()=>Ur(i)}const s1=["TopLeft","TopRight","BottomLeft","BottomRight"],a4=s1.length,X0=t=>typeof t=="string"?parseFloat(t):t,J0=t=>typeof t=="number"||ge.test(t);function l4(t,e,n,i,a,l){a?(t.opacity=Ge(0,n.opacity!==void 0?n.opacity:1,c4(i)),t.opacityExit=Ge(e.opacity!==void 0?e.opacity:1,0,u4(i))):l&&(t.opacity=Ge(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let c=0;c<a4;c++){const d=`border${s1[c]}Radius`;let f=Z0(e,d),m=Z0(n,d);if(f===void 0&&m===void 0)continue;f||(f=0),m||(m=0),f===0||m===0||J0(f)===J0(m)?(t[d]=Math.max(Ge(X0(f),X0(m),i),0),(Ln.test(m)||Ln.test(f))&&(t[d]+="%")):t[d]=m}(e.rotate||n.rotate)&&(t.rotate=Ge(e.rotate||0,n.rotate||0,i))}function Z0(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const c4=i1(0,.5,kb),u4=i1(.5,.95,qt);function i1(t,e,n){return i=>i<t?0:i>e?1:n(_i(t,e,i))}function ev(t,e){t.min=e.min,t.max=e.max}function rn(t,e){ev(t.x,e.x),ev(t.y,e.y)}function tv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nv(t,e,n,i,a){return t-=e,t=oc(t,1/n,i),a!==void 0&&(t=oc(t,1/a,i)),t}function d4(t,e=0,n=1,i=.5,a,l=t,c=t){if(Ln.test(e)&&(e=parseFloat(e),e=Ge(c.min,c.max,e/100)-c.min),typeof e!="number")return;let d=Ge(l.min,l.max,i);t===l&&(d-=e),t.min=nv(t.min,e,n,d,a),t.max=nv(t.max,e,n,d,a)}function rv(t,e,[n,i,a],l,c){d4(t,e[n],e[i],e[a],e.scale,l,c)}const f4=["x","scaleX","originX"],h4=["y","scaleY","originY"];function sv(t,e,n,i){rv(t.x,e,f4,n?n.x:void 0,i?i.x:void 0),rv(t.y,e,h4,n?n.y:void 0,i?i.y:void 0)}function iv(t){return t.translate===0&&t.scale===1}function o1(t){return iv(t.x)&&iv(t.y)}function ov(t,e){return t.min===e.min&&t.max===e.max}function p4(t,e){return ov(t.x,e.x)&&ov(t.y,e.y)}function av(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function a1(t,e){return av(t.x,e.x)&&av(t.y,e.y)}function lv(t){return Kt(t.x)/Kt(t.y)}function cv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class m4{constructor(){this.members=[]}add(e){Ah(this.members,e),e.scheduleRender()}remove(e){if(Ph(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function g4(t,e,n){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,c=(n==null?void 0:n.z)||0;if((a||l||c)&&(i=`translate3d(${a}px, ${l}px, ${c}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:w,skewX:S,skewY:T}=n;m&&(i=`perspective(${m}px) ${i}`),y&&(i+=`rotate(${y}deg) `),v&&(i+=`rotateX(${v}deg) `),w&&(i+=`rotateY(${w}deg) `),S&&(i+=`skewX(${S}deg) `),T&&(i+=`skewY(${T}deg) `)}const d=t.x.scale*e.x,f=t.y.scale*e.y;return(d!==1||f!==1)&&(i+=`scale(${d}, ${f})`),i||"none"}const us={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ro=typeof window<"u"&&window.MotionDebug!==void 0,Vd=["","X","Y","Z"],y4={visibility:"hidden"},uv=1e3;let v4=0;function Ud(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function l1(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=gb(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",We,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&l1(i)}function c1({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(c={},d=e==null?void 0:e()){this.id=v4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ro&&(us.totalNodes=us.resolvedTargetDeltas=us.recalculatedProjection=0),this.nodes.forEach(b4),this.nodes.forEach(T4),this.nodes.forEach(C4),this.nodes.forEach(S4),Ro&&window.MotionDebug.record(us)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new i4)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Rh),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const f=this.eventHandlers.get(c);f&&f.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=r4(c),this.instance=c;const{layoutId:f,layout:m,visualElement:y}=this.options;if(y&&!y.current&&y.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||f)&&(this.isLayoutDirty=!0),t){let v;const w=()=>this.root.updateBlockedByResize=!1;t(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=o4(w,250),ql.hasAnimatedSinceResize&&(ql.hasAnimatedSinceResize=!1,this.nodes.forEach(fv))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:w,hasRelativeTargetChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||y.getDefaultTransition()||R4,{onLayoutAnimationStart:k,onLayoutAnimationComplete:b}=y.getProps(),j=!this.targetLayout||!a1(this.targetLayout,T)||S,C=!w&&S;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||w&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,C);const R={...Th(E,"layout"),onPlay:k,onComplete:b};(y.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else w||fv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ur(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(N4),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&l1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(dv);return}this.isUpdating||this.nodes.forEach(E4),this.isUpdating=!1,this.nodes.forEach(_4),this.nodes.forEach(x4),this.nodes.forEach(w4),this.clearAllSnapshots();const d=Mn.now();vt.delta=er(0,1e3/60,d-vt.timestamp),vt.timestamp=d,vt.isProcessing=!0,Pd.update.process(vt),Pd.preRender.process(vt),Pd.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(k4),this.sharedNodes.forEach(j4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,We.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){We.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!o1(this.projectionDelta),f=this.getTransformTemplate(),m=f?f(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;c&&(d||cs(this.latestValues)||y)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return c&&(f=this.removeTransform(f)),O4(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return et();const f=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(L4))){const{scroll:y}=this.root;y&&(ui(f.x,y.offset.x),ui(f.y,y.offset.y))}return f}removeElementScroll(c){var d;const f=et();if(rn(f,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:v,options:w}=y;y!==this.root&&v&&w.layoutScroll&&(v.wasRoot&&rn(f,c),ui(f.x,v.offset.x),ui(f.y,v.offset.y))}return f}applyTransform(c,d=!1){const f=et();rn(f,c);for(let m=0;m<this.path.length;m++){const y=this.path[m];!d&&y.options.layoutScroll&&y.scroll&&y!==y.root&&di(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),cs(y.latestValues)&&di(f,y.latestValues)}return cs(this.latestValues)&&di(f,this.latestValues),f}removeTransform(c){const d=et();rn(d,c);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!m.instance||!cs(m.latestValues))continue;Lf(m.latestValues)&&m.updateSnapshot();const y=et(),v=m.measurePageBox();rn(y,v),sv(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return cs(this.latestValues)&&sv(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:w}=this.options;if(!(!this.layout||!(v||w))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),Bo(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),DO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rn(this.target,this.layout.layoutBox),e1(this.target,this.targetDelta)):rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),Bo(this.relativeTargetOrigin,this.target,S.target),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ro&&us.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Lf(this.parent.latestValues)||Zb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(m=!1),m)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;rn(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,S=this.treeScale.y;qO(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=et());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tv(this.prevProjectionDelta.x,this.projectionDelta.x),tv(this.prevProjectionDelta.y,this.projectionDelta.y)),Do(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==S||!cv(this.projectionDelta.x,this.prevProjectionDelta.x)||!cv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T)),Ro&&us.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ci(),this.projectionDelta=ci(),this.projectionDeltaWithTransform=ci()}setAnimationOrigin(c,d=!1){const f=this.snapshot,m=f?f.latestValues:{},y={...this.latestValues},v=ci();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=et(),S=f?f.source:void 0,T=this.layout?this.layout.source:void 0,E=S!==T,k=this.getStack(),b=!k||k.members.length<=1,j=!!(E&&!b&&this.options.crossfade===!0&&!this.path.some(P4));this.animationProgress=0;let C;this.mixTargetDelta=R=>{const D=R/1e3;hv(v.x,c.x,D),hv(v.y,c.y,D),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),A4(this.relativeTarget,this.relativeTargetOrigin,w,D),C&&p4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=et()),rn(C,this.relativeTarget)),E&&(this.animationValues=y,l4(y,m,this.latestValues,D,j,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ur(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update(()=>{ql.hasAnimatedSinceResize=!0,this.currentAnimation=n4(0,uv,{...c,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:f,layout:m,latestValues:y}=c;if(!(!d||!f||!m)){if(this!==c&&this.layout&&m&&u1(this.options.animationType,this.layout.layoutBox,m.layoutBox)){f=this.target||et();const v=Kt(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+v;const w=Kt(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+w}rn(d,f),di(d,y),Do(this.projectionDeltaWithTransform,this.layoutCorrected,d,y)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new m4),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:d}=this.options;return d?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:d}=this.options;return d?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:f}={}){const m=this.getStack();m&&m.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const m={};f.z&&Ud("z",c,m,this.animationValues);for(let y=0;y<Vd.length;y++)Ud(`rotate${Vd[y]}`,c,m,this.animationValues),Ud(`skew${Vd[y]}`,c,m,this.animationValues);c.render();for(const y in m)c.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);c.scheduleRender()}getProjectionStyles(c){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return y4;const m={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Wl(c==null?void 0:c.pointerEvents)||"",m.transform=y?y(this.latestValues,""):"none",m;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=Wl(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!cs(this.latestValues)&&(E.transform=y?y({},""):"none",this.hasProjected=!1),E}const w=v.animationValues||v.latestValues;this.applyTransformsToTarget(),m.transform=g4(this.projectionDeltaWithTransform,this.treeScale,w),y&&(m.transform=y(w,m.transform));const{x:S,y:T}=this.projectionDelta;m.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,v.animationValues?m.opacity=v===this?(f=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:m.opacity=v===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const E in tc){if(w[E]===void 0)continue;const{correct:k,applyTo:b}=tc[E],j=m.transform==="none"?w[E]:k(w[E],v);if(b){const C=b.length;for(let R=0;R<C;R++)m[b[R]]=j}else m[E]=j}return this.options.layoutId&&(m.pointerEvents=v===this?Wl(c==null?void 0:c.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(dv),this.root.sharedNodes.clear()}}}function x4(t){t.updateLayout()}function w4(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,c=n.source!==t.layout.source;l==="size"?sn(v=>{const w=c?n.measuredBox[v]:n.layoutBox[v],S=Kt(w);w.min=i[v].min,w.max=w.min+S}):u1(l,n.layoutBox,i)&&sn(v=>{const w=c?n.measuredBox[v]:n.layoutBox[v],S=Kt(i[v]);w.max=w.min+S,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+S)});const d=ci();Do(d,i,n.layoutBox);const f=ci();c?Do(f,t.applyTransform(a,!0),n.measuredBox):Do(f,i,n.layoutBox);const m=!o1(d);let y=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:w,layout:S}=v;if(w&&S){const T=et();Bo(T,n.layoutBox,w.layoutBox);const E=et();Bo(E,i,S.layoutBox),a1(T,E)||(y=!0),v.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=T,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function b4(t){Ro&&us.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function S4(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function k4(t){t.clearSnapshot()}function dv(t){t.clearMeasurements()}function E4(t){t.isLayoutDirty=!1}function _4(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function fv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function T4(t){t.resolveTargetDelta()}function C4(t){t.calcProjection()}function N4(t){t.resetSkewAndRotation()}function j4(t){t.removeLeadSnapshot()}function hv(t,e,n){t.translate=Ge(e.translate,0,n),t.scale=Ge(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function pv(t,e,n,i){t.min=Ge(e.min,n.min,i),t.max=Ge(e.max,n.max,i)}function A4(t,e,n,i){pv(t.x,e.x,n.x,i),pv(t.y,e.y,n.y,i)}function P4(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const R4={duration:.45,ease:[.4,0,.1,1]},mv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),gv=mv("applewebkit/")&&!mv("chrome/")?Math.round:qt;function yv(t){t.min=gv(t.min),t.max=gv(t.max)}function O4(t){yv(t.x),yv(t.y)}function u1(t,e,n){return t==="position"||t==="preserve-aspect"&&!IO(lv(e),lv(n),.2)}function L4(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const M4=c1({attachResizeListener:(t,e)=>Go(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zd={current:void 0},d1=c1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!zd.current){const t=new M4({});t.mount(window),t.setOptions({layoutScroll:!0}),zd.current=t}return zd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),I4={pan:{Feature:JO},drag:{Feature:XO,ProjectionNode:d1,MeasureLayout:r1}};function vv(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&We.postRender(()=>l(e,fa(e)))}class D4 extends Wr{mount(){const{current:e}=this.node;e&&(this.unmount=IP(e,n=>(vv(this.node,n,"Start"),i=>vv(this.node,i,"End"))))}unmount(){}}class B4 extends Wr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=da(Go(this.node.current,"focus",()=>this.onFocus()),Go(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xv(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&We.postRender(()=>l(e,fa(e)))}class F4 extends Wr{mount(){const{current:e}=this.node;e&&(this.unmount=VP(e,n=>(xv(this.node,n,"Start"),(i,{success:a})=>xv(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const If=new WeakMap,$d=new WeakMap,V4=t=>{const e=If.get(t.target);e&&e(t)},U4=t=>{t.forEach(V4)};function z4({root:t,...e}){const n=t||document;$d.has(n)||$d.set(n,{});const i=$d.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(U4,{root:t,...e})),i[a]}function $4(t,e,n){const i=z4(e);return If.set(t,n),i.observe(t),()=>{If.delete(t),i.unobserve(t)}}const W4={some:0,all:1};class H4 extends Wr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=e,c={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:W4[a]},d=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),w=m?y:v;w&&w(f)};return $4(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(q4(e,n))&&this.startObserver()}unmount(){}}function q4({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const K4={inView:{Feature:H4},tap:{Feature:F4},focus:{Feature:B4},hover:{Feature:D4}},G4={layout:{ProjectionNode:d1,MeasureLayout:r1}},Df={current:null},f1={current:!1};function Q4(){if(f1.current=!0,!!dh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Df.current=t.matches;t.addListener(e),e()}else Df.current=!1}const Y4=[...Db,Ct,zr],X4=t=>Y4.find(Ib(t)),wv=new WeakMap;function J4(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Nt(a))t.addValue(i,a);else if(Nt(l))t.addValue(i,qo(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const c=t.getValue(i);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=t.getStaticValue(i);t.addValue(i,qo(c!==void 0?c:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const bv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Z4{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=Mn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,We.render(this.render,!1,!0))};const{latestValues:f,renderState:m,onUpdate:y}=c;this.onUpdate=y,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=yc(n),this.isVariantNode=Hw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:v,...w}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in w){const T=w[S];f[S]!==void 0&&Nt(T)&&T.set(f[S],!1)}}mount(e){this.current=e,wv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),f1.current||Q4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Df.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wv.delete(this.current),this.projection&&this.projection.unmount(),Ur(this.notifyUpdate),Ur(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Rs.has(e),a=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&We.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l(),c&&c(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ti){const n=Ti[e];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<bv.length;i++){const a=bv[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=e[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=J4(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=qo(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(Lb(a)||_b(a))?a=parseFloat(a):!X4(a)&&zr.test(n)&&(a=Pb(e,n)),this.setBaseTarget(e,Nt(a)?a.get():a)),Nt(a)?a.get():a}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const c=vh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(a=c[e])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Nt(l)?l:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Rh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class h1 extends Z4{constructor(){super(...arguments),this.KeyframeResolver=Bb}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Nt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function e3(t){return window.getComputedStyle(t)}class t3 extends h1{constructor(){super(...arguments),this.type="html",this.renderInstance=eb}readValueFromInstance(e,n){if(Rs.has(n)){const i=Dh(n);return i&&i.default||0}else{const i=e3(e),a=(Xw(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:n}){return t1(e,n)}build(e,n,i){bh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return _h(e,n,i)}}class n3 extends h1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rs.has(n)){const i=Dh(n);return i&&i.default||0}return n=tb.has(n)?n:mh(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return sb(e,n,i)}build(e,n,i){Sh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,a){nb(e,n,i,a)}mount(e){this.isSVGTag=Eh(e.tagName),super.mount(e)}}const r3=(t,e)=>yh(t)?new n3(e):new t3(e,{allowProjection:t!==M.Fragment}),s3=jP({...CO,...K4,...I4,...G4},r3),Q=WA(s3);function zh(){return p.jsx("div",{style:{width:"100%",minHeight:"798px"},children:p.jsx("iframe",{src:"https://team.benkjar.com/widget/form/EMF0p9G413YaB0q5c4q1",style:{width:"100%",height:"100%",border:"none",borderRadius:"8px",minHeight:"798px"},id:"inline-EMF0p9G413YaB0q5c4q1","data-layout":"{'id':'INLINE'}","data-trigger-type":"alwaysShow","data-trigger-value":"","data-activation-type":"alwaysActivated","data-activation-value":"","data-deactivation-type":"neverDeactivate","data-deactivation-value":"","data-form-name":"Ben Kjar","data-height":"798","data-layout-iframe-id":"inline-EMF0p9G413YaB0q5c4q1","data-form-id":"EMF0p9G413YaB0q5c4q1",title:"Ben Kjar"})})}function i3({open:t,onClose:e}){return M.useEffect(()=>{if(!t)return;const n=i=>i.key==="Escape"&&e();return window.addEventListener("keydown",n),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",n),document.body.style.overflow=""}},[t,e]),f_.createPortal(p.jsxs("div",{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 transition-opacity duration-200 ${t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"}`,onClick:t?e:void 0,children:[p.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-md"}),p.jsxs("div",{className:`relative z-10 w-full max-w-2xl bg-card border border-primary/40 rounded-lg shadow-2xl overflow-hidden transition-transform duration-200 ${t?"scale-100":"scale-95"}`,onClick:n=>n.stopPropagation(),children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border/30",children:[p.jsxs("h3",{className:"font-heading text-2xl text-foreground",children:["BOOK THE ",p.jsx("span",{className:"text-primary",children:"STANDOUT"})," EXPERIENCE"]}
294),p.jsx("button",{onClick:e,className:"text-foreground/60 hover:text-primary transition-colors p-1 rounded","aria-label":"Close",children:p.jsx(ac,{className:"w-6 h-6"})})]}),p.jsx("div",{className:"p-3 max-h-[80vh] overflow-y-auto",style:{minHeight:"680px"},children:t&&p.jsx(zh,{})})]})]}),document.body)}function o3({className:t}){return p.jsx("svg",{className:t,viewBox:"3 1 19 21",fill:"currentColor",children:p.jsx("path",{d:"M16.6 5.82c-.94-.94-1.5-2.2-1.62-3.57h-3.1v12.4c0 1.4-1.14 2.53-2.53 2.53-1.4 0-2.53-1.13-2.53-2.53 0-1.4 1.13-2.53 2.53-2.53.28 0 .54.04.79.12V8.7c-.26-.03-.52-.05-.79-.05a5.64 5.64 0 1 0 5.64 5.64V9.01a6.7 6.7 0 0 0 3.88 1.23V7.15c-.8 0-1.55-.25-2.18-.67l-.09-.66z"})})}const Sv=[{label:"Film",href:"https://standoutfilm.com/"},{label:"Store",href:"https://victorgear.com/"},{label:"Tools",href:"https://3xsc.com/"}],kv=[{label:"Corporate",to:"/speaking---corporate"},{label:"Real Estate",to:"/speaking---real-estate"},{label:"Education",to:"/speaking---education"},{label:"Athletics",to:"/speaking---athletics"}];function tr(){const[t,e]=M.useState(!1),[n,i]=M.useState(!1),[a,l]=M.useState(!1);return M.useEffect(()=>{const c=()=>e(window.scrollY>50);return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),p.jsxs(Q.nav,{initial:{y:-100},animate:{y:0},transition:{duration:.6},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${t?"bg-background/95 backdrop-blur-md border-b border-border/30":"bg-background/80 backdrop-blur-md border-b border-border/20"}`,children:[p.jsxs("div",{className:"max-w-7xl mx-auto px-6 flex items-center justify-between h-16 md:h-20 relative",children:[p.jsx(ii,{to:"/",className:"flex items-center font-heading text-2xl md:text-3xl italic tracking-wide",children:p.jsx("img",{src:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/de1983e30_Screenshot2026-07-03at35320PM.png",alt:"Ben Kjar logo",className:"h-[1.6em] w-auto object-contain"})}),p.jsxs("div",{className:"hidden md:flex items-center gap-8 absolute left-1/2 -translate-x-1/2",children:[p.jsxs("div",{className:"relative group",children:[p.jsxs(ii,{to:"/speaking",className:"font-body text-xs tracking-[0.2em] uppercase text-foreground hover:text-primary transition-colors duration-300 flex items-center gap-1",children:["Speaking",p.jsx(ea,{className:"w-3 h-3"})]}),p.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-3 opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto transition-all duration-200",children:p.jsx("div",{className:"bg-background/98 backdrop-blur-md border border-border/30 rounded-sm min-w-[180px] py-2 shadow-xl",children:kv.map(c=>p.jsx(ii,{to:c.to,className:"block px-4 py-2 font-body text-xs tracking-[0.15em] uppercase text-foreground/70 hover:text-primary hover:bg-card/50 transition-colors",children:c.label},c.to))})})]}),Sv.map(c=>p.jsx("a",{href:c.href,className:"font-body text-xs tracking-[0.2em] uppercase text-foreground hover:text-primary transition-colors duration-300",children:c.label},c.label)),p.jsx("button",{onClick:()=>l(!0),className:"font-body text-xs tracking-[0.2em] uppercase bg-primary text-primary-foreground px-6 py-2.5 rounded-sm hover:bg-primary/90 transition-all",children:"Contact"})]}),p.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[p.jsx("a",{href:"https://www.instagram.com/benkjar/",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/80 hover:text-primary transition-colors",children:p.jsx(Jv,{className:"w-5 h-5",strokeWidth:2})}),p.jsx("a",{href:"https://www.youtube.com/@benkjar2609",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/80 hover:text-primary transition-colors",children:p.jsx(rx,{className:"w-5 h-5",strokeWidth:2})}),p.jsx("a",{href:"https://www.facebook.com/ben.kjar.9",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/80 hover:text-primary transition-colors",children:p.jsx(Qv,{className:"w-5 h-5",strokeWidth:2})}),p.jsx("a",{href:"https://www.tiktok.com/@benkjar",target:"_blank",rel:"noopener noreferrer",className:"text-foreground
294/80 hover:text-primary transition-colors",children:p.jsx(o3,{className:"w-5 h-5"})})]}),p.jsx("button",{className:"md:hidden text-foreground",onClick:()=>i(!n),children:n?p.jsx(ac,{className:"w-6 h-6"}):p.jsx(c2,{className:"w-6 h-6"})})]}),n&&p.jsx(Q.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"md:hidden bg-background/98 backdrop-blur-lg border-b border-border/30",children:p.jsxs("div",{className:"flex flex-col px-6 py-6 gap-4",children:[Sv.map(c=>p.jsx("a",{href:c.href,onClick:()=>i(!1),className:"font-body text-sm tracking-[0.15em] uppercase text-foreground/70 hover:text-primary transition-colors",children:c.label},c.label)),p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsx(ii,{to:"/speaking",onClick:()=>i(!1),className:"font-body text-sm tracking-[0.15em] uppercase text-foreground/70 hover:text-primary transition-colors",children:"Speaking"}),p.jsx("div",{className:"flex flex-col pl-4 gap-2 border-l border-border/30",children:kv.map(c=>p.jsx(ii,{to:c.to,onClick:()=>i(!1),className:"font-body text-xs tracking-[0.15em] uppercase text-foreground/50 hover:text-primary transition-colors",children:c.label},c.to))})]}),p.jsx("button",{onClick:()=>{i(!1),l(!0)},className:"font-body text-sm tracking-[0.15em] uppercase bg-primary text-primary-foreground px-6 py-3 rounded-sm text-center mt-2",children:"Contact"})]})}),p.jsx(i3,{open:a,onClose:()=>l(!1)})]})}function a3({videoSrc:t="https://player.vimeo.com/video/1229068932?badge=0&autopause=0&player_id=0&app_id=58479"}){const[e,n]=M.useState(!1);return M.useEffect(()=>{if(e){document.body.style.overflow="hidden";const i=a=>{a.key==="Escape"&&n(!1)};return window.addEventListener("keydown",i),()=>{document.body.style.overflow="",window.removeEventListener("keydown",i)}}else document.body.style.overflow=""},[e]),p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:()=>n(!0),className:"inline-flex items-center justify-center gap-3 bg-primary text-primary-foreground font-body font-semibold tracking-wider uppercase text-base md:text-lg px-14 py-5 rounded-sm hover:bg-primary/90 transition-all duration-300",children:[p.jsx(qd,{className:"w-5 h-5 fill-current"}),"Watch Video"]}),p.jsx(Vw,{children:e&&p.jsxs(Q.div,{initial:{opacity:0}
294,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-[100] bg-black flex items-center justify-center",onClick:()=>n(!1),children:[p.jsx("button",{onClick:()=>n(!1),className:"absolute top-4 right-4 md:top-6 md:right-6 w-10 h-10 md:w-12 md:h-12 flex items-center justify-center rounded-full bg-black/30 backdrop-blur-sm border border-white/20 text-white/80 hover:text-white hover:bg-black/50 hover:border-white/40 transition-all duration-300 z-10","aria-label":"Close video",children:p.jsx(ac,{className:"w-5 h-5 md:w-6 md:h-6",strokeWidth:1.75})}),p.jsx(Q.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.3},className:"relative w-full max-w-5xl aspect-video px-4",onClick:i=>i.stopPropagation(),children:p.jsx("iframe",{src:`${t}&autoplay=1&muted=0`,frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share",referrerPolicy:"strict-origin-when-cross-origin",className:"absolute inset-0 w-full h-full",title:"Ben Kjar â Standout Experience"})})]})})]})}function l3({heroImage:t}){return p.jsxs("section",{className:"relative flex items-center justify-center overflow-hidden h-screen",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,poster:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-poster-00001.jpg",className:"w-full h-full object-cover object-center md:object-top",children:[p.jsx("source",{src:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.webm",type:"video/webm"}),p.jsx("source",{src:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.mp4",type:"video/mp4"})]}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/40 via-transparent to-background"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-transparent to-transparent"})]}),p.jsxs("div",{className:"relative z-10 text-center px-4 sm:px-6 max-w-5xl mx-auto pt-20 md:pt-24",children:[p.jsxs(Q.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,delay:.4},className:"font-heading text-[clamp(2.5rem,12vw,4rem)] sm:text-7xl md:text-8xl lg:text-9xl leading-[0.95] tracking-wide text-foreground mb-6",children:["BEN KJAR'S",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"STANDOUT EXPERIENCE"})]}),p.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"font-body font-bold tracking-[0.1em] sm:tracking-[0.15em] uppercase text-sm sm:text-base md:text-lg text-foreground max-w-3xl mx-auto mb-10",children:"Create your organization's most focused year yet"}),p.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:1.1},className:"flex justify-center",children:p.jsx(a3,{})}),p.jsx(Q.div,{initial:{opacity:0}
294,animate:{opacity:1},transition:{delay:1.8},className:"flex justify-center mt-6",children:p.jsx(Q.div,{animate:{y:[0,10,0]},transition:{repeat:1/0,duration:2},children:p.jsx("a",{href:"#method",children:p.jsx(ea,{className:"w-6 h-6 text-primary/70"})})})})]})]})}const c3=[{icon:nx,label:"World Champion",sub:"Greco-Roman Wrestling, Greece"},{icon:Xv,label:"International Speaker",sub:"Audiences of 10,000+"},{icon:Yv,label:"Award-Winning Film",sub:"Standout: The Ben Kjar Story"},{icon:Hv,label:"NCAA All-American",sub:"First in UVU History"}];function u3({aboutImage:t,standoutPoster:e}){return p.jsx("section",{id:"about",className:"relative py-20 md:py-28 overflow-hidden bg-white",children:p.jsx("div",{className:"max-w-7xl mx-auto px-6",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 md:gap-16 items-center",children:[p.jsxs(Q.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"relative",children:[p.jsxs("div",{className:"relative aspect-[4/5] rounded-sm overflow-hidden",children:[p.jsx("img",{src:t,alt:"Ben Kjar presenting at a corporate keynote event",className:"w-full h-full object-cover object-center"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent"})]}),p.jsx(Q.div,{initial:{opacity:0,scale:.8,x:20},whileInView:{opacity:1,scale:1,x:0},viewport:{once:!0},transition:{delay:.5},className:"absolute -bottom-8 -right-4 md:-right-6 w-32 md:w-48 shadow-2xl border-2 border-primary/40 rounded-sm overflow-hidden",children:p.jsx("a",{href:"https://standoutfilm.com/where-to-watch/",target:"_blank",rel:"noopener noreferrer",children:p.jsx("img",{src:e,alt:"Standout: The Ben Kjar Story, award-winning film",className:"w-full h-full object-cover"})})}),p.jsx("div",{className:"absolute -top-4 -left-4 w-20 h-20 md:w-24 md:h-24 border border-primary/30 rounded-sm"})]}),p.jsxs(Q.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-5",children:"Meet Ben Kjar"}),p.jsx("h2",{className:"font-heading text-5xl sm:text-6xl md:text-7xl leading-[0.95] text-zinc-900 mb-6",children:"DISOBEY AVERAGE"}),p.jsxs("div",{className:"space-y-4 font-body text-zinc-600 leading-relaxed",children:[p.jsx("p",{children:"Born with Crouzon Syndrome, a rare craniofacial condition, Ben was told he would live a different kind of life, and he chose to prove them right in the most extraordinary way possible."}),p.jsxs("p",{children:["He became Utah Valley University's first-ever NCAA Division I Wrestling All-American. At age 40, he represented the United States at the World Championships in Greece, becoming a ",p.jsx("strong",{className:"text-zinc-900",children:"Greco-Roman World Champion"})," and earning a silver medal in Freestyle Wrestling."]}),p.jsx("p",{children:'Today, Ben inspires organizations worldwide through his powerful "Call Your Shot" message, helping teams set bold goals, build accountability, and achieve what once seemed impossible. His story is now an award-winning film.'})]}),p.jsx("div",{className:"grid grid-cols-2 gap-3 md:gap-4 mt-8 md:mt-10",children:c3.map((n,i)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4+i*.1},className:"p-4 bg-zinc-50 rounded-sm border border-zinc-200 hover:border-primary/40 transition-colors",children:[p.jsx(n.icon,{className:"w-5 h-5 text-primary mb-2"}),p.jsx("p",{className:"font-body font-semibold text-zinc-900 text-sm",children:n.label}),p.jsx("p",{className:"font-body text-zinc-500 text-xs",children:n.sub})]},n.label))}),p.jsx(Q.div,{initial:{opacity:0}
294,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.8},className:"mt-8",children:p.jsx("a",{href:"https://standoutfilm.com/where-to-watch/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary font-body text-sm font-semibold tracking-wider uppercase hover:gap-4 transition-all duration-300",children:"Watch Ben's Movie â"})})]})]})})})}const d3=[{icon:Yk,number:"01",title:"Call Your Shot",description:"Get crystal clear on the one goal that will change everything. Be bold. Be specific. Commit publicly. Writing down your goal and speaking it aloud rewires your identity and your future."},{icon:N2,number:"02",title:"Shot Callers",description:"Enlist 3 to 5 people who will hold you accountable by actively supporting you in your goal. Surround yourself with people who refuse to let you quit."},{icon:k2,number:"03",title:"Shot Clock",description:"Set your deadline. An expiration date creates urgency. Urgency creates action. Watch the countdown and stay locked in until the buzzer sounds."}];function f3({methodImage:t}){return p.jsxs("section",{id:"method",className:"relative py-24 md:py-32 overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 bg-fixed bg-center bg-cover",style:{backgroundImage:"url('https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/67b30a32e_Screenshot2026-07-07at92006AM.png')"}}),p.jsx("div",{className:"absolute inset-0 bg-background/85"}),p.jsx("div",{className:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/30 to-transparent"}),p.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-6",children:"The Framework"}),p.jsxs("h2",{className:"font-heading text-5xl sm:text-6xl md:text-7xl lg:text-8xl leading-[0.95] text-foreground mb-6",children:["CREATE YOUR",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"BREAKTHROUGH YEAR"})]}),p.jsx("p",{className:"font-body font-bold tracking-[0.1em] sm:tracking-[0.15em] uppercase text-sm sm:text-base md:text-lg text-foreground max-w-3xl mx-auto",children:"The Standout Experience brings conviction and courage into a room, and transforms it into a year of energy and measurable growth."})]}),p.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:d3.map((e,n)=>p.jsxs(Q.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.2},className:"relative group",children:[p.jsxs("div",{className:"p-8 bg-card/90 backdrop-blur-sm border-2 border-primary/30 rounded-sm h-full hover:border-primary/70 hover:shadow-lg hover:shadow-primary/10 transition-all duration-500",children:[p.jsx("span",{className:"font-heading text-7xl text-primary/10 absolute top-4 right-6 group-hover:text-primary/20 transition-colors duration-500",children:e.number}),p.jsx(e.icon,{className:"w-8 h-8 text-primary mb-6"}),p.jsx("h3",{className:"font-heading text-3xl text-foreground mb-4",children:e.title}),p.jsx("p",{className:"font-body text-foreground/75 leading-relaxed text-base font-medium",children:e.description})]}),p.jsx("div",{className:"h-[2px] bg-gradient-to-r from-transparent via-primary/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]},e.number))})]})]})}const h3=[{icon:b2,number:"01",title:"Executive Strategy & KPI Alignment",description:"We work with your executive team to understand the key goals, priorities, and measurable KPIs for each department, making sure the program is directly connected to what your organization already wants to accomplish."}
294,{icon:L2,number:"02",title:"Challenge Design Using the 3XSC Method",description:"Once the KPIs are clear, we turn those goals into a simple, energizing challenge structure that employees can understand, participate in, and rally around."},{icon:v2,number:"03",title:"Conference Launch Moment",description:"Your conference becomes the official launch of the Standout Experience. Rather than simply delivering inspiration from stage, we use that moment to create commitment, clarity, and momentum for the year ahead."},{icon:g2,number:"04",title:"Year-Round Accountability",description:"We schedule key touchpoints throughout the year to reconnect with your team, keep the mission alive, and make sure people don't drift back into anonymity. Training, motivation, accountability, and recommitment."},{icon:Jk,number:"05",title:"Recognition, Rewards & Final Ceremony",description:"The program culminates in a final recognition ceremony where the Standouts are celebrated and awarded with the recognition, jacket, and rewards they earned throughout the year."}];function p3({experienceImage:t}){return p.jsx("section",{id:"experience",className:"relative pt-20 md:pt-28 pb-20 md:pb-28 bg-white",children:p.jsx("div",{className:"max-w-7xl mx-auto px-6",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 md:gap-16 items-start",children:[p.jsxs("div",{children:[p.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-10 md:mb-12",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-5",children:"The Program"}),p.jsxs("h2",{className:"font-heading text-5xl sm:text-6xl md:text-7xl leading-[0.95] text-zinc-900 mb-5",children:["MEASURABLE",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"IMPACT"})]}),p.jsx("p",{className:"font-body text-zinc-600 leading-relaxed max-w-md",children:"While most keynotes are a moment of excitement and emotion, Ben uses the 3XSC and Standout Experience to create clarity, accountability and energy to have the most focused year of your organization."})]}),p.jsx("div",{className:"space-y-4",children:h3.map((e,n)=>p.jsxs(Q.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:n*.1},className:"group flex items-start gap-5 p-6 bg-white border-2 border-zinc-200 rounded-md hover:border-primary hover:shadow-xl hover:-translate-y-1 transition-all duration-500",children:[p.jsx("div",{className:"flex-shrink-0 w-12 h-12 flex items-center justify-center bg-primary/15 rounded-md group-hover:bg-primary group-hover:scale-110 transition-all duration-500",children:p.jsx(e.icon,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground"})}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[p.jsx("span",{className:"font-heading text-2xl text-primary/70",children:e.number}),p.jsx("h3",{className:"font-heading text-xl md:text-2xl text-zinc-900 font-bold",children:e.title})]}),p.jsx("p",{className:"font-body text-zinc-600 leading-relaxed text-sm font-medium",children:e.description})]})]},e.number))})]}),p.jsx(Q.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"lg:sticky lg:top-24",children:p.jsxs("div",{className:"relative aspect-[4/5] rounded-sm overflow-hidden",children:[p.jsx("img",{src:t,alt:"Ben Kjar delivering a corporate keynote presentation",className:"w-full h-full object-cover object-center"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"})]})})]})})})}const as=[{quote:"The ROI on bringing Ben in was staggering.",name:"Brian Clark",title:"President, AgileOne"},{quote:"Ben's story is Phenomenal. We've had some awesome speakers through the years⦠Some really good ones: seals, business people, etc. I would argue Ben is the best speaker we've ever had!",name:"Will Ticoras",title:"President, KLS Martin North America"},{quote:"He came with the energy. He came with the heat. It was so cool to have him come and just ignite the entire room⦠and to be able to stand out and call your shots.",name:"Dan Gardner",title:"Chief Sales Officer, Bucked Up"},{quote:"We set goals that we thought were maybe unachievable before, and I've witnessed as many of these goals have been achieved.",name:"Trevor Farnes",title:"Founder/CEO, Mountain Ops"},{quote:"His story of overcoming adversity, living with intention and choosing greatness was a powerful reminder that resilience isn't just about getting through. It's about rising up and showing up as your whole self. Ben didn't just speak to us, he moved us.",name:"Andrea Barre",title:"Vice President of RPO, AgileOne"},{quote:"It was practical. It had things that you could put into place and really move our company forward.",name:"Oliver Young",title:"COO, Young Automotive Group"},{quote:"Ben Kjar is one of the most talented speakers I've ever heard.",name:"Dan Posner",title:"Executive Vice President, Big Leap"}];function m3({bgImage:t,standoutPoster:e}){const[n,i]=M.useState(0),a=()=>i(c=>(c+1)%as.length),l=()=>i(c=>(c-1+as.length)%as.length);return p.jsxs("section",{id:"testimonials",className:"relative pt-32 md:pt-44 pb-28 md:pb-40 overflow-hidden bg-background",children:[p.jsx("div",{className:"absolute inset-0 bg-fixed bg-center bg-cover",style:{backgroundImage:"url('https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/8bd7d67ac_ChatGPTImageJun5202604_33_17PM.png')"}}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/55 to-background/90"}),p.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-6 text-center",children:[p.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-10",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-6",children:"What People Are Saying"}),p.jsxs("h2",{className:"font-heading text-5xl sm:text-6xl md:text-7xl leading-[0.95] text-foreground",children:["REAL RESULTS.",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"REAL WORDS."})]})]}),p.jsx("div",{className:"relative min-h-[220px] flex items-center justify-center",children:p.jsx(Vw,{mode:"wait",children:p.jsxs(Q.div,{initial:{opacity:0,y:20}
294,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"w-full",children:[p.jsx(Vf,{className:"w-10 h-10 text-primary/60 mx-auto mb-6"}),p.jsxs("p",{className:"font-accent italic text-xl md:text-2xl lg:text-3xl text-foreground leading-relaxed mb-8 max-w-3xl mx-auto",children:['"',as[n].quote,'"']}),p.jsxs("div",{className:"flex items-center justify-center gap-3",children:[p.jsx("div",{className:"w-8 h-[2px] bg-primary"}),p.jsxs("div",{className:"text-center",children:[p.jsx("p",{className:"font-body font-semibold text-primary",children:as[n].name}),p.jsx("p",{className:"font-body text-muted-foreground text-sm",children:as[n].title})]}),p.jsx("div",{className:"w-8 h-[2px] bg-primary"})]})]},n)})}),p.jsxs("div",{className:"flex items-center justify-center gap-6 mt-10",children:[p.jsx("button",{onClick:l,className:"w-10 h-10 flex items-center justify-center border border-border/50 rounded-full text-foreground hover:border-primary hover:text-primary transition-all duration-300","aria-label":"Previous testimonial",children:p.jsx(qv,{className:"w-4 h-4"})}),p.jsx("div",{className:"flex gap-2",children:as.map((c,d)=>p.jsx("button",{onClick:()=>i(d),"aria-label":`Go to testimonial ${d+1}`,className:`h-1.5 rounded-full transition-all duration-300 ${d===n?"bg-primary w-6":"bg-foreground
294/30 w-1.5"}`},d))}),p.jsx("button",{onClick:a,className:"w-10 h-10 flex items-center justify-center border border-border/50 rounded-full text-foreground hover:border-primary hover:text-primary transition-all duration-300","aria-label":"Next testimonial",children:p.jsx(Kv,{className:"w-4 h-4"})})]})]})]})}function p1({image:t}){return p.jsxs("section",{id:"contact",className:"relative bg-background overflow-hidden border-t border-border/50",children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/30 to-transparent"}),p.jsxs("div",{className:"grid md:grid-cols-2 max-w-7xl mx-auto",children:[p.jsxs(Q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"relative min-h-[320px] md:min-h-[640px]",children:[p.jsx("img",{src:t,alt:"Ben Kjar inviting you to book the Standout Experience",className:"absolute inset-0 w-full h-full object-cover object-center"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t md:bg-gradient-to-r from-background via-background/30 to-transparent"}),p.jsxs("div",{className:"absolute bottom-0 left-0 p-8 md:p-12 max-w-sm",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-4",children:"Ready to Transform Your Culture?"}),p.jsxs("h2",{className:"font-heading text-4xl sm:text-5xl md:text-6xl leading-[0.95] text-foreground",children:["BOOK THE",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"STANDOUT"})," EXPERIENCE"]})]})]}),p.jsx(Q.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"flex items-center px-6 py-12 md:px-12 md:py-16",children:p.jsxs("div",{className:"w-full max-w-md mx-auto",children:[p.jsx("h3",{className:"font-heading text-3xl md:text-4xl text-foreground mb-2",children:"REQUEST SPEAKING INFO"}),p.jsx("p",{className:"font-body text-foreground/80 text-sm mb-8",children:"Tell us about your event. We'll be in touch shortly."}),p.jsx(zh,{})]})})]})]})}function g3({className:t}){return p.jsx("svg",{className:t,viewBox:"3 1 19 21",fill:"currentColor",children:p.jsx("path",{d:"M16.6 5.82c-.94-.94-1.5-2.2-1.62-3.57h-3.1v12.4c0 1.4-1.14 2.53-2.53 2.53-1.4 0-2.53-1.13-2.53-2.53 0-1.4 1.13-2.53 2.53-2.53.28 0 .54.04.79.12V8.7c-.26-.03-.52-.05-.79-.05a5.64 5.64 0 1 0 5.64 5.64V9.01a6.7 6.7 0 0 0 3.88 1.23V7.15c-.8 0-1.55-.25-2.18-.67l-.09-.66z"})})}function nr(){return p.jsx("footer",{className:"relative py-12 border-t border-border/30",children:p.jsx("div",{className:"max-w-7xl mx-auto px-6",children:p.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[p.jsxs("div",{className:"text-center md:text-left",children:[p.jsx("img",{src:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/de1983e30_Screenshot2026-07-03at35320PM.png",alt:"Ben Kjar logo",className:"h-8 md:h-9 w-auto object-contain"}),p.jsx("p",{className:"font-body text-xs text-muted-foreground mt-1",children:"The Standout Experience by Ben Kjar"})]}),p.jsxs("div",{className:"flex flex-col items-center gap-3",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.2em] uppercase text-xs font-medium",children:"Connect with Ben"}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx("a",{href:"https://www.instagram.com/benkjar/",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/70 hover:text-primary transition-colors",children:p.jsx(Jv,{className:"w-6 h-6",strokeWidth:2.5})}),p.jsx("a",{href:"https://www.youtube.com/@benkjar2609",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/70 hover:text-primary transition-colors",children:p.jsx(rx,{className:"w-6 h-6",strokeWidth:2.5})}),p.jsx("a",{href:"https://www.facebook.com/ben.kjar.9",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/70 hover:text-primary transition-colors",children:p.jsx(Qv,{className:"w-6 h-6",strokeWidth:2.5})}),p.jsx("a",{href:"https://www.tiktok.com/@benkjar",target:"_blank",rel:"noopener noreferrer",className:"text-foreground/70 hover:text-primary transition-colors",children:p.jsx(g3,{className:"w-6 h-6"})})]})]}),p.jsxs("div",{className:"text-center md:text-right",children:[p.jsxs("p",{className:"font-body text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," Ben Kjar. All rights reserved."]}),p.jsx("a",{href:"http://www.jumpmanual.life",target:"_blank",rel:"noopener noreferrer",className:"font-body text-[10px] text-muted-foreground
294/50 hover:text-primary/70 transition-colors",children:"Created by Jacob Hiller"})]})]})})})}const y3=[{name:"Vivint",style:"font-bold tracking-tight text-base md:text-lg"},{name:"ClickFunnels",style:"font-bold italic text-base md:text-lg"},{name:"BUCKED UP",style:"font-extrabold uppercase tracking-wider text-sm md:text-base"},{name:"MTN OPS",style:"font-bold uppercase tracking-[0.15em] text-sm md:text-base"},{name:"American Cleft Palate Association",style:"font-semibold tracking-tight text-[0.6rem] md:text-[0.7rem] leading-tight text-center max-w-[7rem]"},{name:"Young Automotive",style:"font-bold tracking-tight text-sm md:text-base"},{name:"Utah Valley University",style:"font-bold tracking-wide text-xs md:text-sm"},{name:"Salt Lake Community College",style:"font-semibold tracking-wide text-[0.65rem] md:text-[0.75rem] leading-tight text-center max-w-[8rem]"},{name:"HAWX Pest Control",style:"font-extrabold uppercase tracking-wide text-sm md:text-base"},{name:"AgileOne",style:"font-bold tracking-tight text-base md:text-lg"},{name:"Soligo Solar",style:"font-semibold tracking-wide text-sm md:text-base"},{name:"AMBA",style:"font-extrabold tracking-[0.2em] text-base md:text-lg"},{name:"KLS Martin",style:"font-bold tracking-wide text-sm md:text-base"},{name:"National Association of Realtors",style:"font-semibold tracking-wide text-[0.6rem] md:text-[0.7rem] leading-tight text-center max-w-[8rem]"}];function v3(){const t=M.useRef(null),e=n=>{t.current&&t.current.scrollBy({left:n*280,behavior:"smooth"})};return p.jsx("section",{className:"bg-white py-10 md:py-14 border-t border-border/30",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 flex items-center gap-3 md:gap-4",children:[p.jsx("button",{onClick:()=>e(-1),className:"flex-shrink-0 w-9 h-9 md:w-10 md:h-10 flex items-center justify-center border border-gray-200 rounded-full text-gray-400 hover:text-primary hover:border-primary transition-colors","aria-label":"Scroll left",children:p.jsx(qv,{className:"w-5 h-5"})}),p.jsx("div",{ref:t,className:"flex-1 flex items-center gap-8 md:gap-12 overflow-x-auto scroll-smooth no-scrollbar snap-x",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:y3.map(n=>p.jsx("div",{className:"h-10 md:h-12 flex items-center justify-center text-center flex-shrink-0 snap-center",children:p.jsx("span",{className:`text-gray-500 select-none ${n.style}`,children:n.name})},n.name))}),p.jsx("button",{onClick:()=>e(1),className:"flex-shrink-0 w-9 h-9 md:w-10 md:h-10 flex items-center justify-center border border-gray-200 rounded-full text-gray-400 hover:text-primary hover:border-primary transition-colors","aria-label":"Scroll right",children:p.jsx(Kv,{className:"w-5 h-5"})})]})})}const x3=({className:t=""})=>p.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,"aria-hidden":"true",children:p.jsx("path",{d:"M17.05 12.04c-.03-2.6 2.12-3.85 2.22-3.91-1.21-1.77-3.09-2.01-3.76-2.04-1.6-.16-3.12.94-3.93.94-.81 0-2.05-.92-3.38-.89-1.73.03-3.33 1.01-4.22 2.56-1.8 3.13-.46 7.76 1.29 10.3.85 1.24 1.86 2.63 3.18 2.58 1.28-.05 1.76-.83 3.31-.83 1.55 0 1.98.83 3.33.81 1.37-.03 2.24-1.26 3.08-2.51.97-1.43 1.37-2.81 1.39-2.88-.03-.01-2.67-1.02-2.7-4.04zM14.5 4.5c.71-.86 1.19-2.06 1.06-3.25-1.02.04-2.26.68-2.99 1.54-.66.76-1.23 1.98-1.08 3.15 1.14.09 2.3-.58 3.01-1.44z"})}),w3=({className:t=""})=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[p.jsx("path",{d:"M5 8.5c0-1.4 1.6-2.5 3.8-2.5 1.4 0 2.6.5 3.4 1.4"}),p.jsx("path",{d:"M4.5 15.5c1.6 1.2 3.6 1.8 5.5 1.8 1.4 0 2.9-.4 4-1.2"}),p.jsx("path",{d:"M5 8.5v7"}),p.jsx("path",{d:"M16.5 7.5l1.2-.8c.4-.3.4-.9-.1-1.1-1.6-.7-3.4-1.1-5.2-1.1"}),p.jsx("path",{d:"M3 14.5c3.5 2.8 8.5 3.8 13 2.6"}),p.jsx("path",{d:"M13.2 17.4l2.8-.3-1.6-2.3"}),p.jsx("path",{d:"M18.5 8.5c.3 1.8.2 3.7-.3 5.5"})]}),b3=[{label:"Amazon",Icon:w3,href:"https://www.amazon.com/Standout-Kjar-Story-Tanner-Christensen/dp/B0GX1KQW1F/ref=sr_1_1?crid=8E8FQGAL399M&dib=eyJ2IjoiMSJ9.mSxcjAHwoV4GQ9qUZFVnlDE4xZ6eg-YHL2O_cDCW_eSeJjUCUSr6CuLLivNc_yQJXcDXurZ1sqoWuTEZNm36xnO6LM9r-Dy5u9e2Rpef96Ac8N1JTbP-0oJv3jFEYs2niAcFeak2IIaHzel9qwwYkl2WpfqTbuLU_BR0D-6ycScne0vxta2Tg9z6jJGrt_wUI8q7o7-uohhBfE2Ovsa6865E6spyARoWmNYvLpAgB7Y.cNV0FQRupv2fPNPXDAPxrPmznw5pC4_kZMNdsdtNMfk&dib_tag=se&keywords=standout&qid=1783120348&s=movies-tv&sprefix=standout%2Cmovies-tv%2C161&sr=1-1"},{label:"Apple TV",Icon:x3,href:"https://tv.apple.com/us/movie/standout-the-ben-kjar-story/umc.cmc.1uuy6t7ps8nowt3uje8ucszvj"}],Ev="https://www.youtube.com/watch?v=igpGWHMZMiM";function S3({poster:t}){return p.jsxs("section",{id:"film",className:"relative pt-20 md:pt-28 pb-28 md:pb-40 bg-background overflow-hidden",children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/30 to-transparent"}),p.jsx("div",{className:"relative z-10 max-w-6xl mx-auto px-6",children:p.jsxs("div",{className:"grid md:grid-cols-2 gap-12 md:gap-16 items-center",children:[p.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-5",children:"Now Streaming"}),p.jsxs("h2",{className:"font-heading text-4xl sm:text-5xl md:text-6xl leading-[0.95] text-foreground mb-6",children:["STANDOUT:",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"THE BEN KJAR STORY"})]}
294),p.jsx("p",{className:"font-body text-foreground/70 leading-relaxed max-w-md mb-3",children:`The award-winning documentary chronicling Ben's journey from a boy told he'd live a "different" life to a Greco-Roman World Champion and culture-shifting keynote speaker.`}),p.jsx("p",{className:"font-body text-foreground/80 text-sm leading-relaxed max-w-md mb-8",children:"Watch the full film on Amazon and Apple TV, or preview the trailer below."}),p.jsx("div",{className:"flex flex-wrap items-center gap-3 mb-8",children:b3.map(e=>p.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 px-5 py-3 border border-border/60 rounded-sm font-body text-sm tracking-wider uppercase text-foreground hover:border-primary hover:text-primary transition-all duration-300",children:[p.jsx(e.Icon,{className:"w-5 h-5 flex-shrink-0"}),p.jsx("span",{children:e.label}),p.jsx(e2,{className:"w-3 h-3 opacity-50"})]},e.label))}),p.jsxs("a",{href:Ev,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground font-body font-semibold tracking-wider uppercase text-sm md:text-base px-8 py-4 rounded-sm hover:bg-primary/90 transition-all duration-300",children:[p.jsx(qd,{className:"w-4 h-4 fill-current"}),"Watch Preview"]})]}),p.jsxs(Q.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.2},className:"relative mx-auto max-w-sm w-full",children:[p.jsx("div",{className:"absolute -inset-3 border border-primary/20 rounded-sm"}),p.jsxs("div",{className:"relative aspect-[2/3] rounded-sm overflow-hidden shadow-2xl",children:[p.jsx("img",{src:t,alt:"Standout: The Ben Kjar Story movie poster",className:"w-full h-full object-cover"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"}),p.jsx("a",{href:Ev,target:"_blank",rel:"noopener noreferrer",className:"absolute inset-0 flex items-center justify-center group","aria-label":"Play preview",children:p.jsx("span",{className:"w-16 h-16 rounded-full bg-primary/90 flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:p.jsx(qd,{className:"w-7 h-7 text-primary-foreground fill-current ml-1"})})})]})]})]})})]})}const Kn={hero:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/9553031f8_image.png",crowdWide:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/a29d455c0_Screenshot2026-06-05at35549PM.png",about:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/1aaf0febe_image.png",standoutPoster:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/873cb0319_circusfreak.jpg",experience:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/8dcf83117_image.png",contactForm:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/d7b5a55f9_Screenshot2026-07-07at91412AM.png"};function k3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsx(l3,{heroImage:Kn.hero}),p.jsx(v3,{}),p.jsx(f3,{methodImage:Kn.hero}),p.jsx(u3,{aboutImage:Kn.about,standoutPoster:Kn.standoutPoster}),p.jsx(S3,{poster:Kn.standoutPoster}),p.jsx(m3,{bgImage:Kn.crowdWide,standoutPoster:Kn.standoutPoster}),p.jsx(p3,{experienceImage:Kn.experience}),p.jsx(p1,{image:Kn.contactForm}),p.jsx(nr,{})]})}function m1(){return p.jsx(zh,{})}const E3=[{icon:Zv,number:"01",title:"REACH OUT",description:"Start by reaching out to Ben's team by filling out the contact form. We will be in touch shortly after your request to go over availability, pricing options, and what to look forward to."},{icon:ex,number:"02",title:"CONSULTATION",description:"Ben will meet with your team over the phone or via FaceTime, Skype or Zoom. This discussion will help him gain insight regarding your organization, event theme, and meeting topics."},{icon:Gv,number:"03",title:"PAYMENT",description:"We want to make things easy for you so we accept several forms of payment. The final price will be the one discussed in the consultation with Ben. Once complete, Ben and his team will make the rest of the magic happen."},{icon:tx,number:"04",title:"IT'S TIME",description:"It's as easy as 1, 2, 3, 4. Now you're ready! During the day of the event, Ben and his team will show up early to verify everything is ready to go."}];function _3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsxs("section",{id:"contact",className:"relative pt-28 md:pt-36 pb-20 md:pb-28 overflow-hidden bg-background",children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/30 to-transparent"}),p.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:30}
294,animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center mb-14 md:mb-20",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-6",children:"How It Works"}),p.jsxs("h2",{className:"font-heading text-5xl sm:text-6xl md:text-7xl lg:text-8xl leading-[0.95] text-foreground",children:["BOOKING WITH",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"BEN"})]})]}),p.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 md:gap-14 items-start",children:[p.jsx("div",{className:"flex flex-col gap-5",children:E3.map((t,e)=>p.jsx(Q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:e*.1},className:"relative group",children:p.jsxs("div",{className:"p-6 md:p-7 bg-card/80 backdrop-blur-sm border border-border/50 rounded-sm hover:border-primary/40 transition-all duration-500",children:[p.jsx("span",{className:"font-heading text-6xl text-primary/10 absolute top-2 right-5 group-hover:text-primary/20 transition-colors duration-500",children:t.number}),p.jsx(t.icon,{className:"w-7 h-7 text-primary mb-4"}),p.jsx("h3",{className:"font-heading text-2xl text-foreground mb-3",children:t.title}),p.jsx("p",{className:"font-body text-foreground/60 leading-relaxed text-sm",children:t.description})]})},t.number))}),p.jsxs(Q.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"lg:sticky lg:top-28",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-4",children:"Get In Touch"}),p.jsxs("h3",{className:"font-heading text-3xl md:text-4xl leading-[0.95] text-foreground",children:["CONTACT TEAM",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"BEN KJAR"})]})]}),p.jsx(m1,{})]})]})]})]}),p.jsx(nr,{})]})}const T3=["Ben never lost a home dual match during his entire wrestling career","Ben is the first-ever NCAA Wrestling All-American and a Hall of Fame athlete at Utah Valley University.","At age 40 Ben became the Masters Level Greco-Roman World Champion."],C3=[{quote:"An absolute life changing experience for not only the kids, but for me and the rest of the coaching staff as well.",author:"Copper Hills High School",role:"Head Wrestling Coach"},{quote:"Ben helps these kids understand that they're not in this by themselves. If you're thinking of having Ben at your next practice, just do it, he's worth it.",author:"Lone Peak High School",role:"Head Wrestling Coach"},{quote:"Ben is a life changer. I will forever be in debt and grateful to him!",author:"Millard High School",role:"Head Wrestling Coach"}],N3="https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/47f162302_image.png";function g1(){return p.jsxs(p.Fragment,{children:[p.jsx("section",{id:"athletics",className:"py-24 md:py-32 bg-white relative",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-base font-medium mb-4",children:"Speaking â Athletics"}),p.jsx("h2",{className:"font-heading text-5xl md:text-7xl text-zinc-900",children:"ATHLETICS"})]}),p.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[p.jsxs(Q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[p.jsx("p",{className:"font-body text-zinc-600 leading-relaxed text-base md:text-lg mb-6",children:"From childhood Ben was told he couldn't do contact sports. Ben wrote his own story and became a pioneer and trailblazer of whatever he decided to set his mind and heart towards."}),p.jsx("div",{className:"border-l-2 border-primary/60 pl-4",children:p.jsx("p",{className:"font-accent italic text-zinc-700 text-base md:text-lg leading-relaxed",children:`"It's important for coaches to realize that the real reason the kids are coming to practice are to become better human beings and learn timeless principles and values."`})})]}),p.jsx(Q.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-sm overflow-hidden",children:p.jsx("img",{src:N3,alt:"Ben speaking to athletes",className:"w-full h-72 object-cover"})})]})]})}),p.jsxs("section",{className:"py-24 md:py-32 bg-background relative",children:[p.jsx("div",{className:"absolute bottom-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/40 to-transparent"}),p.jsx("div",{className:"max-w-7xl mx-auto px-6",children:p.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:T3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"p-6 bg-card border border-border/50 rounded-sm text-center",children:[p.jsxs("span",{className:"font-heading text-5xl text-primary/40 block mb-2",children:["0",e+1]}
294),p.jsx("p",{className:"font-body text-foreground/70 text-base leading-relaxed",children:t})]},e))})})]}),p.jsx("section",{className:"py-14 md:py-20 bg-white relative",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsx("p",{className:"font-heading text-4xl md:text-5xl tracking-[0.05em] uppercase text-primary mb-8 text-center",children:"What Coaches Are Saying"}),p.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:C3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"p-6 bg-zinc-50 border border-zinc-200 rounded-sm",children:[p.jsx(Vf,{className:"w-6 h-6 text-primary/50 mb-3"}),p.jsx("p",{className:"font-body text-zinc-700 text-base italic leading-relaxed mb-4",children:t.quote}),p.jsx("p",{className:"font-body text-sm text-zinc-900 font-semibold tracking-wide",children:t.author}),p.jsx("p",{className:"font-body text-sm text-zinc-500",children:t.role})]},e))})]})})]})}const j3=["Anti-Bullying & Suicide Prevention","Self-Love, Kindness, & Connection","Leadership","Anti-Drug & Social Media","Different > Normal"],A3=[{quote:"An absolute life changing experience for not only the kids, but for me and the rest of the coaching staff as well.",author:"Copper Hills High School",role:"Head Wrestling Coach"},{quote:"Ben helps these kids understand that they're not in this by themselves. If you're thinking of having Ben at your next practice, just do it, he's worth it.",author:"Lone Peak High School",role:"Head Wrestling Coach"},{quote:"Ben is a life changer. I will forever be in debt and grateful to him!",author:"Millard High School",role:"Head Wrestling Coach"}],P3="https://cdn.prod.website-files.com/66c4d45aefdce4b89ef22d7b/66cc2d5f72c2b246ee2d5b8d_Screenshot%202024-08-26%20at%201.23.05%E2%80%AFAM.png";function y1(){return p.jsxs(p.Fragment,{children:[p.jsx("section",{id:"education",className:"py-24 md:py-32 bg-white relative",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-base font-medium mb-4",children:"Speaking â Education"}),p.jsx("h2",{className:"font-heading text-5xl md:text-7xl text-zinc-900",children:"EDUCATION"})]}),p.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[p.jsx(Q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-sm overflow-hidden order-2 md:order-1",children:p.jsx("img",{src:P3,alt:"Ben speaking in education",className:"w-full h-72 object-cover"})}),p.jsxs(Q.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"order-1 md:order-2",children:[p.jsx("p",{className:"font-body text-zinc-600 leading-relaxed text-base md:text-lg mb-6",children:"Ben is an international youth speaker that has spoke from stadiums to small groups. Ben enjoys speaking to elementaries, middle schools, high schools, and colleges. Ben has a gift for connecting and speaking to the youth. Ben quickly builds rapport and keeps them engaged by telling them thought provoking stories and experiences that stir the soul."}),p.jsx("p",{className:"font-body text-primary tracking-[0.2em] uppercase text-sm font-medium mb-4",children:"Ben's Key Speaking Points to Students"}),p.jsx("ul",{className:"space-y-3",children:j3.map((t,e)=>p.jsxs("li",{className:"flex items-start gap-3",children:[p.jsxs("span",{className:"font-heading text-xl text-primary/60 flex-shrink-0",children:["0",e+1]}),p.jsx("span",{className:"font-body text-zinc-700 text-base",children:t})]},e))})]})]})]})}),p.jsxs("section",{className:"py-14 md:py-20 bg-background relative",children:[p.jsx("div",{className:"absolute bottom-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/40 to-transparent"}),p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsx("p",{className:"font-heading text-4xl md:text-5xl tracking-[0.05em] uppercase text-primary mb-8 text-center",children:"What Coaches Are Saying"}),p.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:A3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"p-6 bg-card border border-border/50 rounded-sm",children:[p.jsx(Vf,{className:"w-6 h-6 text-primary/40 mb-3"}
294),p.jsx("p",{className:"font-body text-foreground/70 text-base italic leading-relaxed mb-4",children:t.quote}),p.jsx("p",{className:"font-body text-sm text-foreground font-semibold tracking-wide",children:t.author}),p.jsx("p",{className:"font-body text-sm text-muted-foreground",children:t.role})]},e))})]})]})]})}const R3=[{option:"Option 1",title:"CALL YOUR SHOT",description:`In this deeply moving and unforgettable keynote, Ben Kjar invites audiences into the raw, defining moments of his life where impossible dreams collided with brutal realityâand where a decision had to be made. "Call Your Shot" is not about wishful thinking; it's about standing in the face of doubt, fear, setbacks, and even humiliation, and boldly declaring what you will become anyway. Through emotional storytelling, hard-won lessons, and powerful audience engagement, Ben shows how clarity changes everythingâhow writing down your goal, speaking it aloud, and attaching it to a deadline rewires your identity and your future. This keynote doesn't just inspire; it confronts. It challenges every person in the room to stop playing small, stop hedging their bets, and stop waiting for permission. By the end, people aren't just wiping away tearsâthey're making decisions. They leave with a clear shot called, a clock set, and the courage to change the trajectory of their lives.`},{option:"Option 2",title:"DISOBEY AVERAGE",description:`In "Disobey Average," Ben Kjar shares a gripping and emotional journey of choosing resilience over resentment and responsibility over excuses. Faced with circumstances that could have justified bitterness or retreat, Ben made a different choice: to own his story instead of letting it own him. Through powerful, vulnerable storytelling, he reveals how the shift from victim thinking to victor mindset is the defining difference between those who stay stuck and those who rise. This keynote doesn't minimize painâit honors it. But it also refuses to let pain become identity. Audiences are moved as they see how setbacks can become fuel, how adversity can sharpen purpose, and how personal responsibility unlocks freedom. Ben equips every person in the room with the mindset and practical tools to reclaim control, rewrite their narrative, and pursue their goals with grit and conviction. They leave not just inspiredâbut empowered to choose victory in their own lives.`}],O3=[{num:"01",text:"Positive Self Talk | Crown Code | Time Blocking | Winning the Morning | Connection with Clients"},{num:"02",text:"Being Fans of other Employees | Victory Mentality | Doing More | Goal Setting"},{num:"03",text:"Break Throughs | What's your WHY | Proposal Sales Approach"}],L3=[{quote:"The ROI on bringing Ben in was staggering.",author:"Brian Clark",role:"President of AgileOne"},{quote:"He came with the energy. He came with the heat. It was so cool to have him come and just ignite the entire room⦠and to be able to stand out and call your shots.",author:"Dan Gardner",role:"Chief Sales Officer at Bucked Up"},{quote:"We set goals that we thought were maybe unachievable before, and I've witnessed as many of these goals have been achieved.",author:"Trevor Farnes",role:"Mountain Ops Founder/CEO"},{quote:"His story of overcoming adversity, living with intention and choosing greatness was a powerful reminder that resilience isn't just about getting through. It's about rising up and showing up as your whole self. Ben didn't just speak to us, he moved us.",author:"Andrea Barre",role:"Vice President of RPO at AgileOne"},{quote:"It was practical. It had things that you could put into place and really moveâ¦our company forward.",author:"Oliver Young",role:"CEO of Young Automotive Group"},{quote:"Ben Kjar is one of the most talented speakers I've ever heard.",author:"Dan Posner",role:"Executive Vice President of Big Leap"}];function v1(){return p.jsxs(p.Fragment,{children:[p.jsx("section",{className:"py-24 md:py-32 bg-white relative",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-base font-medium mb-4",children:"Speaking â Corporate"}),p.jsx("h2",{className:"font-heading text-5xl md:text-7xl text-zinc-900",children:"CORPORATE"})]}),p.jsx("p",{className:"font-body text-primary tracking-[0.2em] uppercase text-sm font-medium mb-8 text-center",children:"Ben's Key Speaking Points for Corporate Keynotes"}),p.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:R3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"p-8 bg-zinc-50 border border-zinc-200 rounded-sm",children:[p.jsx("span",{className:"font-body text-xs tracking-[0.2em] uppercase text-primary/70 mb-2 block",children:t.option}),p.jsx("h3",{className:"font-heading text-2xl md:text-3xl text-zinc-900 mb-4",children:t.title}),p.jsx("p",{className:"font-body text-zinc-600 text-base leading-relaxed",children:t.description})]},e))})]})}),p.jsxs("section",{className:"py-24 md:py-32 bg-background relative",children:[p.jsx("div",{className:"absolute bottom-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/40 to-transparent"}),p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.2em] uppercase text-sm font-medium mb-6 text-center",children:"Ben's Key Speaking Points for Corporate Trainings"}),p.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:O3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"p-6 bg-card border border-border/50 rounded-sm text-center",children:[p.jsx("span",{className:"font-heading text-4xl text-primary/40 block mb-2",children:t.num}
294),p.jsx("p",{className:"font-body text-foreground/70 text-sm leading-relaxed",children:t.text})]},e))})]})]}),p.jsx("section",{className:"py-14 md:py-20 bg-white relative",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsx("p",{className:"font-heading text-4xl md:text-5xl tracking-[0.05em] uppercase text-primary mb-8 text-center",children:"What People are Saying"}),p.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8",children:L3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.08},className:"p-6 bg-zinc-50 border border-zinc-200 rounded-sm",children:[p.jsxs("p",{className:"font-body text-zinc-700 text-base italic leading-relaxed mb-4",children:['"',t.quote,'"']}),p.jsx("p",{className:"font-body text-sm text-primary font-semibold tracking-wide",children:t.author}),p.jsx("p",{className:"font-body text-sm text-zinc-500",children:t.role})]},e))}),p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center py-10 px-6 border-t border-zinc-200",children:[p.jsx("p",{className:"font-heading text-2xl md:text-3xl text-primary mb-4",children:`"Ben is the best speaker we've ever had!"`}),p.jsx("p",{className:"font-body text-base text-zinc-600 italic",children:`"Ben's story is Phenomenal. We've had some awesome speakers through the years⦠Some really good ones: seals, business people, etc. I would argue Ben is the best speaker we've ever had!"`}),p.jsx("p",{className:"font-body text-sm text-zinc-900 font-semibold tracking-wide mt-3",children:"Will Ticoras"}),p.jsx("p",{className:"font-body text-sm text-zinc-500",children:"President, KLS Martin North America"})]})]})})]})}const M3=["Getting Clarity in Focus","Winning In Dark Times","Proposal Approach and Presentation","Growing & Scaling & Investing in YOU","Follow up and Accountability","Squeeze the Juice (maximize the opportunity)"],I3="https://cdn.prod.website-files.com/66c4d45aefdce4b89ef22d7b/66cc313703a541fda193cf92_Screenshot%202024-08-26%20at%201.39.28%E2%80%AFAM.png";function x1(){return p.jsxs(p.Fragment,{children:[p.jsx("section",{id:"real-estate",className:"py-24 md:py-32 bg-white relative",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-base font-medium mb-4",children:"Speaking â Real Estate"}),p.jsx("h2",{className:"font-heading text-5xl md:text-7xl text-zinc-900",children:"REAL ESTATE"})]}),p.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[p.jsxs(Q.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[p.jsx("p",{className:"font-body text-zinc-600 leading-relaxed text-base md:text-lg mb-6",children:"Ben has been around real estate investing his entire life. As a kid, Ben's dad often checked him out of elementary school to do some demo and learn how to make money work for him."}),p.jsx("p",{className:"font-body text-zinc-600 leading-relaxed text-base md:text-lg",children:"Years later, Ben took his elementary demo skills and started renovating his own properties. At one point, Ben was flipping 40 different properties around the country at the same time."})]}),p.jsx(Q.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-sm overflow-hidden",children:p.jsx("img",{src:I3,alt:"Ben speaking on real estate",className:"w-full h-72 object-cover"})})]})]})}),p.jsxs("section",{className:"py-24 md:py-32 bg-background relative",children:[p.jsx("div",{className:"absolute bottom-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/40 to-transparent"}),p.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.2em] uppercase text-sm font-medium mb-10 text-center",children:"Ben's Key Speaking Points to Real Estate Professionals"}),p.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:M3.map((t,e)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.08},className:"p-6 bg-card border border-border/50 rounded-sm",children:[p.jsxs("span",{className:"font-heading text-4xl text-primary/40 block mb-2",children:["0",e+1]}
294),p.jsx("p",{className:"font-body text-foreground/70 text-base",children:t})]},e))})]})]})]})}function D3(){return p.jsxs("section",{id:"podcasts",className:"py-20 md:py-28 bg-card relative",children:[p.jsx("div",{className:"absolute bottom-0 left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-primary/40 to-transparent"}),p.jsx("div",{className:"max-w-4xl mx-auto px-6 text-center",children:p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[p.jsx("div",{className:"flex justify-center mb-6",children:p.jsx("div",{className:"w-16 h-16 rounded-full border-2 border-primary/40 flex items-center justify-center",children:p.jsx(d2,{className:"w-7 h-7 text-primary"})})}),p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm font-medium mb-4",children:"Guest"}),p.jsx("h2",{className:"font-heading text-4xl md:text-6xl text-foreground mb-6",children:"PODCASTS"}),p.jsx("p",{className:"font-body text-foreground/70 leading-relaxed text-sm md:text-base max-w-2xl mx-auto mb-8",children:"Have Ben as a guest on your next podcast episode. Ben brings raw storytelling, hard-won lessons, and contagious energy to every conversationâleaving your listeners inspired to call their shot."}),p.jsxs("a",{href:"/contact",className:"inline-flex items-center gap-2 bg-primary text-primary-foreground font-body text-xs tracking-[0.2em] uppercase px-8 py-3 rounded-sm hover:bg-primary/90 transition-all",children:["Book Ben for Your Podcast",p.jsx(Uk,{className:"w-4 h-4"})]})]})})]})}const B3=[{icon:Zv,number:"01",title:"REACH OUT",description:"Start by reaching out to Ben's team by filling out the contact form below. We will be in touch shortly after your request to go over availability, pricing options, and what to look forward to."},{icon:ex,number:"02",title:"CONSULTATION",description:"Ben will meet with your team over the phone or via FaceTime, Skype or Zoom. This discussion will help him gain insight regarding your organization, event theme, and meeting topics."},{icon:Gv,number:"03",title:"PAYMENT",description:"We want to make things easy for you so we accept several forms of payment. The final price will be the one discussed in the consultation with Ben. Once complete, Ben and his team will make the rest of the magic happen."},{icon:tx,number:"04",title:"IT'S TIME",description:"It's as easy as 1, 2, 3, 4. Now you're ready! During the day of the event, Ben and his team will show up early to verify everything is ready to go."}];function F3(){return p.jsxs("section",{className:"relative py-24 md:py-32 overflow-hidden bg-background",children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/30 to-transparent"}),p.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-6",children:"How It Works"}),p.jsxs("h2",{className:"font-heading text-5xl sm:text-6xl md:text-7xl lg:text-8xl leading-[0.95] text-foreground mb-6",children:["BOOKING WITH",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"BEN"})]})]}),p.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:B3.map((t,e)=>p.jsx(Q.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.15},className:"relative group",children:p.jsxs("div",{className:"p-8 bg-card/80 backdrop-blur-sm border border-border/50 rounded-sm h-full hover:border-primary/40 transition-all duration-500",children:[p.jsx("span",{className:"font-heading text-7xl text-primary/10 absolute top-4 right-6 group-hover:text-primary/20 transition-colors duration-500",children:t.number}),p.jsx(t.icon,{className:"w-8 h-8 text-primary mb-6"}),p.jsx("h3",{className:"font-heading text-2xl text-foreground mb-4",children:t.title}),p.jsx("p",{className:"font-body text-foreground/60 leading-relaxed text-sm",children:t.description})]})},t.number))})]})]})}function V3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsxs("section",{className:"relative flex items-center justify-center overflow-hidden h-screen",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
294ine:!0,poster:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-poster-00001.jpg",className:"w-full h-full object-cover object-center md:object-top",children:[p.jsx("source",{src:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.webm",type:"video/webm"}),p.jsx("source",{src:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.mp4",type:"video/mp4"})]}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/40 via-transparent to-background"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-transparent to-transparent"})]}),p.jsxs("div",{className:"relative z-10 text-center px-4 sm:px-6 max-w-5xl mx-auto pt-20 md:pt-24",children:[p.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-6",children:"An Empowering, Motivating Speaker"}),p.jsx(Q.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"font-heading text-[clamp(2.5rem,12vw,4rem)] sm:text-7xl md:text-8xl lg:text-9xl leading-[0.95] tracking-wide text-foreground",children:"SPEAKING"}),p.jsx(Q.div,{initial:{opacity:0}
294,animate:{opacity:1},transition:{delay:1.4},className:"flex justify-center mt-8",children:p.jsx(Q.div,{animate:{y:[0,10,0]},transition:{repeat:1/0,duration:2},children:p.jsx("a",{href:"#contact",children:p.jsx(ea,{className:"w-6 h-6 text-primary/70"})})})})]})]}),p.jsx(g1,{}),p.jsx(y1,{}),p.jsx(v1,{}),p.jsx(x1,{}),p.jsx(D3,{}),p.jsx(F3,{}),p.jsxs("section",{id:"contact",className:"relative py-24 md:py-32 bg-background border-t border-border/50",children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/30 to-transparent"}),p.jsxs("div",{className:"relative z-10 max-w-2xl mx-auto px-6",children:[p.jsxs(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.25em] uppercase text-sm md:text-base font-medium mb-6",children:"Book Ben"}),p.jsxs("h2",{className:"font-heading text-4xl sm:text-5xl md:text-6xl leading-[0.95] text-foreground",children:["READY TO CALL",p.jsx("br",{}),p.jsx("span",{className:"text-primary",children:"YOUR SHOT?"})]}),p.jsx("p",{className:"font-body text-muted-foreground text-sm mt-4",children:"Fill out the form below to book Ben."})]}),p.jsx(Q.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},children:p.jsx(m1,{})})]})]}),p.jsx(nr,{})]})}const Wd={webm:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.webm",mp4:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.mp4",poster:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-poster-00001.jpg"};function wc({label:t,title:e,image:n}){return p.jsxs("section",{className:"relative flex items-center justify-center overflow-hidden h-screen pt-16",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,poster:Wd.poster,className:"w-full h-full object-cover object-center md:object-top",children:[p.jsx("source",{src:Wd.webm,type:"video/webm"}),p.jsx("source",{src:Wd.mp4,type:"video/mp4"})]}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/50 via-background/30 to-background"}),p.jsx("div",{className:"absolute inset-0 bg-black/30"})]}),p.jsxs("div",{className:"relative z-10 text-center px-4 sm:px-6 max-w-5xl mx-auto pt-20 md:pt-24",children:[t&&p.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"font-body text-primary tracking-[0.3em] sm:tracking-[0.4em] uppercase text-base md:text-2xl font-bold mb-6",children:t}),p.jsx(Q.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.9,delay:.3},className:"font-heading text-[clamp(4rem,18vw,7rem)] sm:text-8xl md:text-9xl lg:text-[10rem] leading-[0.85] tracking-wide text-foreground mb-8 drop-shadow-2xl",children:e}),t&&p.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"font-body font-bold tracking-[0.15em] sm:tracking-[0.2em] uppercase text-base sm:text-lg md:text-2xl text-foreground max-w-3xl mx-auto",children:"Have Ben speak to your team"}),p.jsx(Q.div,{initial:{opacity:0}
294,animate:{opacity:1},transition:{delay:1.4},className:"flex justify-center mt-10",children:p.jsx(Q.div,{animate:{y:[0,10,0]},transition:{repeat:1/0,duration:2},children:p.jsx(ea,{className:"w-7 h-7 text-primary/70"})})})]})]})}function ha({image:t}){return p.jsx(p1,{image:t})}const _v="https://cdn.prod.website-files.com/66c4d45aefdce4b89ef22d7b/66ca3edeb170c5eccef11977_Screenshot%202024-06-09%20at%2012.32.42%E2%80%AFAM.png";function U3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsx(wc,{label:"Athletics",title:"ATHLETICS",image:_v}),p.jsx(g1,{}),p.jsx(ha,{image:_v}),p.jsx(nr,{})]})}const Tv="https://cdn.prod.website-files.com/66c4d45aefdce4b89ef22d7b/66cc2d5f72c2b246ee2d5b8d_Screenshot%202024-08-26%20at%201.23.05%E2%80%AFAM.png";function z3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsx(wc,{label:"Education",title:"EDUCATION",image:Tv}),p.jsx(y1,{}),p.jsx(ha,{image:Tv}),p.jsx(nr,{})]})}const Cv="https://cdn.prod.website-files.com/66c4d45aefdce4b89ef22d7b/66ca3edcb170c5eccef1178e_Screenshot%202024-06-08%20at%208.33.49%E2%80%AFPM.png";function $3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsx(wc,{label:"Corporate",title:"CORPORATE",image:Cv}),p.jsx(v1,{}),p.jsx(ha,{image:Cv}),p.jsx(nr,{})]})}const Nv="https://cdn.prod.website-files.com/66c4d45aefdce4b89ef22d7b/66cc313703a541fda193cf92_Screenshot%202024-08-26%20at%201.39.28%E2%80%AFAM.png";function W3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsx(wc,{label:"Real Estate",title:"REAL ESTATE",image:Nv}),p.jsx(x1,{}),p.jsx(ha,{image:Nv}),p.jsx(nr,{})]})}const Hd={webm:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.webm",mp4:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-transcode.mp4",poster:"https://cdn.prod.website-files.com/666364d84912d512e9c5d5a2/669f4103fb70bc843dfd9242_Ben%20Kjar%20x%20Agentcy%C2%AE%20Deck%20%283%29-poster-00001.jpg"};function H3(){return p.jsxs("section",{className:"relative flex items-center justify-center overflow-hidden h-screen pt-16",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,poster:Hd.poster,className:"w-full h-full object-cover object-center md:object-top",children:[p.jsx("source",{src:Hd.webm,type:"video/webm"}),p.jsx("source",{src:Hd.mp4,type:"video/mp4"})]}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/50 via-background/30 to-background"}),p.jsx("div",{className:"absolute inset-0 bg-black/30"})]}),p.jsxs("div",{className:"relative z-10 text-center px-4 sm:px-6 max-w-5xl mx-auto pt-20 md:pt-24",children:[p.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"font-body text-primary tracking-[0.3em] sm:tracking-[0.4em] uppercase text-base md:text-2xl font-bold mb-6",children:"Meet Ben"}),p.jsx(Q.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.9,delay:.3},className:"font-heading text-[clamp(4rem,18vw,7rem)] sm:text-8xl md:text-9xl lg:text-[10rem] leading-[0.85] tracking-wide text-foreground mb-8 drop-shadow-2xl",children:"ABOUT BEN"}),p.jsx(Q.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"font-body font-bold tracking-[0.15em] sm:tracking-[0.2em] uppercase text-base sm:text-lg md:text-2xl text-foreground max-w-3xl mx-auto",children:"Victor, Not Victim"}),p.jsx(Q.div,{initial:{opacity:0}
294,animate:{opacity:1},transition:{delay:1.4},className:"flex justify-center mt-10",children:p.jsx(Q.div,{animate:{y:[0,10,0]},transition:{repeat:1/0,duration:2},children:p.jsx(ea,{className:"w-7 h-7 text-primary/70"})})})]})]})}const q3=[{icon:nx,label:"World Champion",sub:"Greco-Roman Wrestling, Greece"},{icon:Xv,label:"International Speaker",sub:"Audiences of 10,000+"},{icon:Yv,label:"Award-Winning Film",sub:"Standout: The Ben Kjar Story"},{icon:Hv,label:"NCAA All-American",sub:"First in UVU History"}];function K3({aboutImage:t,standoutPoster:e}){return p.jsx("section",{id:"story",className:"relative py-28 md:py-40 overflow-hidden bg-background",children:p.jsx("div",{className:"max-w-7xl mx-auto px-6",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 md:gap-24 items-center",children:[p.jsxs(Q.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:1},className:"relative",children:[p.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden",children:[p.jsx("img",{src:t,alt:"Ben Kjar presenting at a corporate keynote event",className:"w-full h-full object-cover object-center"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent"})]}),p.jsx(Q.div,{initial:{opacity:0,scale:.8,x:20},whileInView:{opacity:1,scale:1,x:0},viewport:{once:!0},transition:{delay:.5},className:"absolute -bottom-8 -right-4 md:-right-8 w-32 md:w-48 shadow-2xl border-2 border-primary/40 overflow-hidden",children:p.jsx("a",{href:"https://standoutfilm.com/where-to-watch/",target:"_blank",rel:"noopener noreferrer",children:p.jsx("img",{src:e,alt:"Standout: The Ben Kjar Story, award-winning film",className:"w-full h-full object-cover"})})})]}),p.jsxs(Q.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:[p.jsx("p",{className:"font-body text-primary tracking-[0.3em] uppercase text-sm md:text-base font-medium mb-6",children:"The Story"}),p.jsx("h2",{className:"font-heading text-6xl sm:text-7xl md:text-8xl leading-[0.9] text-foreground mb-8",children:"DISOBEY AVERAGE"}),p.jsxs("div",{className:"space-y-5 font-body text-foreground/60 leading-relaxed text-base md:text-lg",children:[p.jsxs("p",{children:["Ben Kjar was born with Crouzon Syndrome, a rare craniofacial condition. As a young boy, doctors told him he would live a different kind of life⦠and they were right. Ben chose to rise above every challenge and"," ",p.jsx("strong",{className:"text-primary",children:"become a victor, not a victim"}),"."]}),p.jsxs("p",{children:["He became Utah Valley University's first-ever NCAA Division I Wrestling All-American. At age 40, he represented the United States at the World Championships in Greece, where he became a"," ",p.jsx("strong",{className:"text-foreground",children:"Greco-Roman World Champion"})," ","and earned a silver medal in Freestyle Wrestling."]}),p.jsxs("p",{children:["Today, Ben is an international professional speaker and thought leader, inspiring people and organizations around the world to set bold goals and achieve what once seemed impossible. Through his message of"," ",p.jsx("em",{className:"text-primary",children:'"Call Your Shot,"'})," Ben helps individuals and teams clearly define their goals, surround themselves with accountability, and create timelines that drive real results."]}),p.jsxs("p",{children:["The award-winning film"," ",p.jsx("em",{className:"text-foreground",children:"Standout: The Ben Kjar Story"})," toured the film festival circuit and received prestigious awards at every festival it entered. The film has played in select theaters nationwide and continues to rank among top-rated releases."]})]}),p.jsx("div",{className:"grid grid-cols-2 gap-4 md:gap-6 mt-10 md:mt-12",children:q3.map((n,i)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4+i*.1},className:"p-5 md:p-6 bg-secondary/30 border-l-2 border-primary/50 hover:border-primary transition-colors duration-300",children:[p.jsx(n.icon,{className:"w-6 h-6 text-primary mb-3"}),p.jsx("p",{className:"font-heading text-xl md:text-2xl text-foreground",children:n.label}),p.jsx("p",{className:"font-body text-muted-foreground text-xs md:text-sm",children:n.sub})]},n.label))}),p.jsx(Q.div,{initial:{opacity:0}
294,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.8},className:"mt-10",children:p.jsx("a",{href:"https://standoutfilm.com/where-to-watch/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary font-body text-sm font-semibold tracking-wider uppercase hover:gap-4 transition-all duration-300",children:"Watch Ben's Movie â"})})]})]})})})}function G3({familyImage:t}){return p.jsxs("section",{id:"family",className:"relative py-28 md:py-40 overflow-hidden bg-secondary/40",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsx("img",{src:t,alt:"",className:"w-full h-full object-cover object-center opacity-20"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/80 to-background"})]}),p.jsx("div",{className:"relative max-w-7xl mx-auto px-6",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 md:gap-24 items-center",children:[p.jsx(Q.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"relative",children:p.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden border-2 border-primary/30 shadow-2xl",children:[p.jsx("img",{src:t,alt:"The Kjar family â Ben, LaCol, and their three adopted children",className:"w-full h-full object-cover object-center"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"})]})}),p.jsxs(Q.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:[p.jsx("p",{className:"font-body text-primary tracking-[0.3em] uppercase text-sm md:text-base font-medium mb-6",children:"The Kjar Family"}),p.jsx("h2",{className:"font-heading text-6xl sm:text-7xl md:text-8xl leading-[0.9] text-foreground mb-8",children:"FAMILY FIRST"}),p.jsxs("div",{className:"space-y-5 font-body text-foreground/60 leading-relaxed text-base md:text-lg",children:[p.jsx("p",{children:"After 10 years of marriage, Ben and his wonderful wife, LaCol, tried over and over to raise a family of their own without success. Eventually they went the IVF route â four unsuccessful rounds â and then turned to adoption."}),p.jsx("p",{children:"After two failed adoptions, they finally got the opportunity to start their family. Through perseverance and an unbreakable mindset, Ben and LaCol were able to start the family of their dreams."}),p.jsx("p",{children:"Ben and LaCol are the proud parents of three beautiful adopted children, all age 7 and under. Ben believes the truest form of wealth isn't found in money, but in experiences, culture, and connection with people around the world. When you connect with mankind, you live a truly rich life."})]})]})]})})]})}function Q3(){return p.jsx("section",{id:"adoption-story",className:"relative py-28 md:py-40 overflow-hidden bg-background",children:p.jsxs("div",{className:"relative max-w-5xl mx-auto px-6 text-center",children:[p.jsx(Q.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"font-body text-primary tracking-[0.3em] uppercase text-sm md:text-base font-medium mb-6",children:"A Story of Perseverance"}),p.jsxs(Q.h2,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"font-heading text-6xl sm:text-7xl md:text-8xl leading-[0.9] text-foreground mb-8",children:["THE ",p.jsx("span",{className:"text-primary",children:"ADOPTION"})," STORY"]}),p.jsx(Q.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"font-body text-foreground/50 text-base md:text-lg max-w-2xl mx-auto mb-16",children:"Watch the incredible, heart-wrenching story of how â through perseverance and an unbreakable mindset â Ben and LaCol were able to start the family of their dreams."}),p.jsx(Q.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8,delay:.3},className:"relative",children:p.jsx("div",{className:"relative aspect-video overflow-hidden border-2 border-primary/40 shadow-2xl bg-background",children:p.jsx("iframe",{src:"https://www.youtube.com/embed/WBgz7vq-mTI?rel=0",title:"SURPRISE TWIN ADOPTION REVEAL - Kjar Adoption Story",className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})})}const Y3=[{icon:i2,label:"200+",sub:"Properties Flipped"},{icon:Wk,label:"100+",sub:"Multi-Family Rentals"},{icon:A2,label:"Multiple",sub:"Storage Unit Complexes"},{icon:_2,label:"6 Years",sub:"Of Real Estate Growth"}];function X3({image:t}){return p.jsxs("section",{id:"realestate",className:"relative py-28 md:py-40 overflow-hidden bg-secondary/40",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsx("img",{src:t,alt:"",className:"w-full h-full object-cover object-center opacity-20"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/80 to-background"})]}),p.jsx("div",{className:"relative max-w-7xl mx-auto px-6",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 md:gap-24 items-center",children:[p.jsxs(Q.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"order-2 lg:order-1",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.3em] uppercase text-sm md:text-base font-medium mb-6",children:"Beyond The Stage"}),p.jsx("h2",{className:"font-heading text-6xl sm:text-7xl md:text-8xl leading-[0.9] text-foreground mb-8",children:"BUILDING WEALTH"}
294),p.jsxs("div",{className:"space-y-5 font-body text-foreground/60 leading-relaxed text-base md:text-lg",children:[p.jsx("p",{children:"In the past 6 years, Ben has flipped nearly 200 properties and compiled a rental portfolio of almost 100 multi-family rentals and multiple storage unit complexes."}),p.jsx("p",{children:"Ben believes the real way to become truly wealthy is to travel and experience culture and its people. If you can connect with mankind, you will have a rich life."})]}),p.jsx("div",{className:"grid grid-cols-2 gap-4 md:gap-6 mt-10 md:mt-12",children:Y3.map((e,n)=>p.jsxs(Q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4+n*.1},className:"p-5 md:p-6 bg-secondary/30 border-l-2 border-primary/50 hover:border-primary transition-colors duration-300",children:[p.jsx(e.icon,{className:"w-6 h-6 text-primary mb-3"}),p.jsx("p",{className:"font-heading text-xl md:text-2xl text-foreground",children:e.label}),p.jsx("p",{className:"font-body text-muted-foreground text-xs md:text-sm",children:e.sub})]},e.label))})]}),p.jsx(Q.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"relative order-1 lg:order-2",children:p.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden border-2 border-primary/30 shadow-2xl",children:[p.jsx("img",{src:t,alt:"Ben Kjar speaking and inspiring an audie
294nce",className:"w-full h-full object-cover object-[25%_center]"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-transparent to-transparent"})]})})]})})]})}function J3(){return p.jsxs("div",{className:"bg-background min-h-screen font-body",children:[p.jsx(tr,{}),p.jsx(H3,{}),p.jsx(K3,{aboutImage:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/8f684f2b6_image.png",standoutPoster:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/873cb0319_circusfreak.jpg"}),p.jsx(G3,{familyImage:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/fb1ae166b_image.png"}),p.jsx(Q3,{}),p.jsx(X3,{image:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/841a945b2_image.png"}),p.jsx(ha,{image:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/d7b5a55f9_Screenshot2026-07-07at91412AM.png"}),p.jsx(nr,{})]})}const Z3=[{base:"NOW I ",highlight:"CHOOSE",tail:" ME"},{base:"I ",highlight:"CALL",tail:" MY SHOT"},{base:"I ",highlight:"MAKE",tail:" A DIFFERENCE"},{base:"I ",highlight:"FIGHT",tail:" FOR LIGHT"},{base:"I ",highlight:"IGNITE",tail:" EXTRAORDINARY"},{base:"NOW ",highlight:"WATCH",tail:" ME"},{base:"",highlight:"DISOBEY AVERAGE",tail:""},{base:"I AM A ",highlight:"VICTOR",tail:""},{base:"I WAS BORN TO ",highlight:"STANDOUT",tail:""},{base:"",highlight:"STANDOUT",tail:""},{base:"",highlight:"STANDOUT",tail:""}];function e5(){return p.jsxs("div",{className:"min-h-screen bg-background font-body relative overflow-hidden",children:[p.jsx(tr,{}),p.jsxs("div",{className:"flex flex-col items-center px-6 py-32 md:py-40 relative overflow-hidden",children:[p.jsxs("div",{className:"absolute inset-0 opacity-20 pointer-events-none",children:[p.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 rounded-full bg-primary/10 blur-3xl"}),p.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 rounded-full bg-primary/10 blur-3xl"})]}),p.jsx("section",{id:"victors-chant",className:"relative z-10 w-full max-w-5xl mb-24 md:mb-32",children:p.jsxs("div",{className:"flex flex-row items-start gap-4 md:gap-16",children:[p.jsx("div",{className:"flex-1 flex flex-col gap-2 md:gap-3",children:Z3.map((t,e)=>p.jsxs(Q.p,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.2+e*.1,duration:.5},className:"font-heading tracking-wide text-2xl md:text-4xl leading-tight text-foreground text-left",children:[t.base&&p.jsx("span",{children:t.base}),t.highlight&&p.jsx("span",{className:"text-primary font-bold",children:t.highlight}),t.tail&&p.jsx("span",{children:t.tail})]},e))}),p.jsx(Q.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},className:"flex-shrink-0",children:p.jsxs("div",{className:"bg-black border-2 border-[#A6A6A6] px-5 py-4 md:px-12 md:py-10 flex flex-col items-center justify-center",children:[p.jsx("p",{className:"font-heading text-xl md:text-5xl tracking-[0.1em] text-white leading-none text-center",children:"VICTORY"}),p.jsx("p",{className:"font-heading text-xl md:text-5xl tracking-[0.1em] text-white leading-none text-center mt-2 md:mt-3",children:"CHANT"})]})})]})}),p.jsx("div",{className:"relative z-10 w-full max-w-3xl h-px bg-border/40 my-8"}),p.jsxs("section",{id:"crown-code",className:"relative z-10 w-full max-w-5xl flex flex-col items-center mb-16",children:[p.jsxs(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"w-full text-center mb-10",children:[p.jsx("p",{className:"font-body text-primary tracking-[0.3em] uppercase text-xs font-medium mb-3",children:"Section Two"}),p.jsx("h2",{className:"font-heading text-4xl md:text-6xl tracking-wide text-foreground",children:"THE CROWN CODE"}),p.jsx("div",{className:"mx-auto mt-6 h-px w-24 bg-gradient-to-r from-transparent via-primary to-transparent"})]}),p.jsx(Q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.8},className:"w-full max-w-3xl",children:p.jsx("img",{src:"https://media.base44.com/images/public/6a06535d26910c3d85c9a7ab/131a814a0_Crown-Code-scaled.png",alt:"The Crown Code",className:"w-full h-auto rounded-lg"})})]}),p.jsx(ii,{to:"/",className:"relative z-10 mt-8 font-body text-xs tracking-[0.2em] uppercase text-foreground
294/50 hover:text-primary transition-colors",children:"â Back to Home"})]}),p.jsx(nr,{})]})}const t5=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:i}=PA();if(e||t)return p.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:p.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return p.jsx(RA,{});if(n.type==="auth_required")return i(),null}return p.jsxs(iT,{children:[p.jsx(wn,{path:"/",element:p.jsx(k3,{})}),p.jsx(wn,{path:"/contact",element:p.jsx(_3,{})}),p.jsx(wn,{path:"/speaking",element:p.jsx(V3,{})}),p.jsx(wn,{path:"/speaking---athletics",element:p.jsx(U3,{})}),p.jsx(wn,{path:"/speaking---education",element:p.jsx(z3,{})}),p.jsx(wn,{path:"/speaking---corporate",element:p.jsx($3,{})}),p.jsx(wn,{path:"/speaking---real-estate",element:p.jsx(W3,{})}),p.jsx(wn,{path:"/about",element:p.jsx(J3,{})}),p.jsx(wn,{path:"/victorvault",element:p.jsx(e5,{})}),p.jsx(wn,{path:"*",element:p.jsx(jA,{})})]})};function n5(){return p.jsx(AA,{children:p.jsxs(JE,{client:d_,children:[p.jsx(fT,{children:p.jsx(t5,{})}),p.jsx(TE,{})]})})}jk.createRoot(document.getElementById("root")).render(p.jsx(n5,{}));
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.