PageSourceSearch

https://marlorichardson.base44.app/assets/index-B6rHXtqg.js

js marlorichardson.base44.app collected 2026-10-03 03:15:22 UTC 589,800 bytes, 200 lines download raw bytes

vendor: 4,392 bytes, lines 1-9
1var mv=e=>{throw TypeError(e)};var gf=(e,t,n)=>t.has(e)||mv("Cannot "+n);var j=(e,t,n)=>(gf(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?mv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),re=(e,t,n,s)=>(gf(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Oe=(e,t,n)=>(gf(e,t,"access private method"),n);var ec=(e,t,n,s)=>({set _(o){re(e,t,o,n)},get _(){return j(e,t,s)}});function TT(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yf={exports:{}},Ho={},vf={exports:{}},Re={};/**
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 gv;function PT(){if(gv)return Re;gv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function w(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function S(L,W,oe){this.props=L,this.context=W,this.refs=x,this.updater=oe||C}S.prototype.isReactComponent={},S.prototype.setState=function(L,W){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,W,"setState")},S.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function T(){}T.prototype=S.prototype;function k(L,W,oe){this.props=L,this.context=W,this.refs=x,this.updater=oe||C}var P=k.prototype=new T;P.constructor=k,E(P,S.prototype),P.isPureReactComponent=!0;var R=Array.isArray,O=Object.prototype.hasOwnProperty,$={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function D(L,W,oe){var ae,be={},Te=null,Q=null;if(W!=null)for(ae in W.ref!==void 0&&(Q=W.ref),W.key!==void 0&&(Te=""+W.key),W)O.call(W,ae)&&!U.hasOwnProperty(ae)&&(be[ae]=W[ae]);var ge=arguments.length-2;if(ge===1)be.children=oe;else if(1<ge){for(var Ce=Array(ge),Ae=0;Ae<ge;Ae++)Ce[Ae]=arguments[Ae+2];be.children=Ce}if(L&&L.defaultProps)for(ae in ge=L.defaultProps,ge)be[ae]===void 0&&(be[ae]=ge[ae]);return{$$typeof:e,type:L,key:Te,ref:Q,props:be,_owner:$.current}}function Z(L,W){return{$$typeof:e,type:L.type,key:W,ref:L.ref,props:L.props,_owner:L._owner}}function K(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function ie(L){var W={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(oe){return W[oe]})}var me=/\/+/g;function fe(L,W){return typeof L=="object"&&L!==null&&L.key!=null?ie(""+L.key):W.toString(36)}function pe(L,W,oe,ae,be){var Te=typeof L;(Te==="undefined"||Te==="boolean")&&(L=null);var Q=!1;if(L===null)Q=!0;else switch(Te){case"string":case"number":Q=!0;break;case"object":switch(L.$$typeof){case e:case t:Q=!0}}
vendor: 4,207 bytes, line 9
9if(Q)return Q=L,be=be(Q),L=ae===""?"."+fe(Q,0):ae,R(be)?(oe="",L!=null&&(oe=L.replace(me,"$&/")+"/"),pe(be,W,oe,"",function(Ae){return Ae})):be!=null&&(K(be)&&(be=Z(be,oe+(!be.key||Q&&Q.key===be.key?"":(""+be.key).replace(me,"$&/")+"/")+L)),W.push(be)),1;if(Q=0,ae=ae===""?".":ae+":",R(L))for(var ge=0;ge<L.length;ge++){Te=L[ge];var Ce=ae+fe(Te,ge);Q+=pe(Te,W,oe,Ce,be)}else if(Ce=w(L),typeof Ce=="function")for(L=Ce.call(L),ge=0;!(Te=L.next()).done;)Te=Te.value,Ce=ae+fe(Te,ge++),Q+=pe(Te,W,oe,Ce,be);else if(Te==="object")throw W=String(L),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return Q}function Se(L,W,oe){if(L==null)return L;var ae=[],be=0;return pe(L,ae,"","",function(Te){return W.call(oe,Te,be++)}),ae}function te(L){if(L._status===-1){var W=L._result;W=W(),W.then(function(oe){(L._status===0||L._status===-1)&&(L._status=1,L._result=oe)},function(oe){(L._status===0||L._status===-1)&&(L._status=2,L._result=oe)}),L._status===-1&&(L._status=0,L._result=W)}if(L._status===1)return L._result.default;throw L._result}var ee={current:null},I={transition:null},J={ReactCurrentDispatcher:ee,ReactCurrentBatchConfig:I,ReactCurrentOwner:$};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:Se,forEach:function(L,W,oe){Se(L,function(){W.apply(this,arguments)},oe)},count:function(L){var W=0;return Se(L,function(){W++}),W},toArray:function(L){return Se(L,function(W){return W})||[]},only:function(L){if(!K(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Re.Component=S,Re.Fragment=n,Re.Profiler=o,Re.PureComponent=k,Re.StrictMode=s,Re.Suspense=f,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Re.act=Y,Re.cloneElement=function(L,W,oe){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var ae=E({},L.props),be=L.key,Te=L.ref,Q=L._owner;if(W!=null){if(W.ref!==void 0&&(Te=W.ref,Q=$.current),W.key!==void 0&&(be=""+W.key),L.type&&L.type.defaultProps)var ge=L.type.defaultProps;for(Ce in W)O.call(W,Ce)&&!U.hasOwnProperty(Ce)&&(ae[Ce]=W[Ce]===void 0&&ge!==void 0?ge[Ce]:W[Ce])}var Ce=arguments.length-2;if(Ce===1)ae.children=oe;else if(1<Ce){ge=Array(Ce);for(var Ae=0;Ae<Ce;Ae++)ge[Ae]=arguments[Ae+2];ae.children=ge}return{$$typeof:e,type:L.type,key:be,ref:Te,props:ae,_owner:Q}},Re.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},Re.createElement=D,Re.createFactory=function(L){var W=D.bind(null,L);return W.type=L,W},Re.createRef=function(){return{current:null}},Re.forwardRef=function(L){return{$$typeof:u,render:L}},Re.isValidElement=K,Re.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:te}},Re.memo=function(L,W){return{$$typeof:h,type:L,compare:W===void 0?null:W}},Re.startTransition=function(L){var W=I.transition;I.transition={};try{L()}finally{I.transition=W}},Re.unstable_act=Y,Re.useCallback=function(L,W){return ee.current.useCallback(L,W)},Re.useContext=function(L){return ee.current.useContext(L)},Re.useDebugValue=function(){},Re.useDeferredValue=function(L){return ee.current.useDeferredValue(L)},Re.useEffect=function(L,W){return ee.current.useEffect(L,W)},Re.useId=function(){return ee.current.useId()},Re.useImperativeHandle=function(L,W,oe){return ee.current.useImperativeHandle(L,W,oe)},Re.useInsertionEffect=function(L,W){return ee.current.useInsertionEffect(L,W)},Re.useLayoutEffect=function(L,W){return ee.current.useLayoutEffect(L,W)},Re.useMemo=function(L,W){return ee.current.useMemo(L,W)},Re.useReducer=function(L,W,oe){return ee.current.useReducer(L,W,oe)},Re.useRef=function(L){return ee.current.useRef(L)},Re.useState=function(L){return ee.current.useState(L)},Re.useSyncExternalStore=function(L,W,oe){return ee.current.useSyncExternalStore(L,W,oe)},Re.useTransition=function(){return ee.current.useTransition()},Re.version="18.3.1",Re}var yv;
vendor: 1,119 bytes, lines 9-17
9function hp(){return yv||(yv=1,vf.exports=PT()),vf.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 vv;function kT(){if(vv)return Ho;vv=1;var e=hp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,h){var m,g={},w=null,C=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(C=f.ref);for(m in f)s.call(f,m)&&!l.hasOwnProperty(m)&&(g[m]=f[m]);if(u&&u.defaultProps)for(m in f=u.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:u,key:w,ref:C,props:g,_owner:o.current}}return Ho.Fragment=n,Ho.jsx=c,Ho.jsxs=c,Ho}var wv;function RT(){return wv||(wv=1,yf.exports=kT()),yf.exports}var v=RT(),b=hp();const Ir=fp(b),pp=TT({__proto__:null,default:Ir},[b]);var tc={},wf={exports:{}},Vt={},xf={exports:{}},Sf={};
vendor: 25,978 bytes, lines 17-37
17/**
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 xv;function NT(){return xv||(xv=1,(function(e){function t(I,J){var Y=I.length;I.push(J);e:for(;0<Y;){var L=Y-1>>>1,W=I[L];if(0<o(W,J))I[L]=J,I[Y]=W,Y=L;else break e}}function n(I){return I.length===0?null:I[0]}function s(I){if(I.length===0)return null;var J=I[0],Y=I.pop();if(Y!==J){I[0]=Y;e:for(var L=0,W=I.length,oe=W>>>1;L<oe;){var ae=2*(L+1)-1,be=I[ae],Te=ae+1,Q=I[Te];if(0>o(be,Y))Te<W&&0>o(Q,be)?(I[L]=Q,I[Te]=Y,L=Te):(I[L]=be,I[ae]=Y,L=ae);else if(Te<W&&0>o(Q,Y))I[L]=Q,I[Te]=Y,L=Te;else break e}}return J}function o(I,J){var Y=I.sortIndex-J.sortIndex;return Y!==0?Y:I.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],h=[],m=1,g=null,w=3,C=!1,E=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(I){for(var J=n(h);J!==null;){if(J.callback===null)s(h);else if(J.startTime<=I)s(h),J.sortIndex=J.expirationTime,t(f,J);else break;J=n(h)}}function R(I){if(x=!1,P(I),!E)if(n(f)!==null)E=!0,te(O);else{var J=n(h);J!==null&&ee(R,J.startTime-I)}}function O(I,J){E=!1,x&&(x=!1,T(D),D=-1),C=!0;var Y=w;try{for(P(J),g=n(f);g!==null&&(!(g.expirationTime>J)||I&&!ie());){var L=g.callback;if(typeof L=="function"){g.callback=null,w=g.priorityLevel;var W=L(g.expirationTime<=J);J=e.unstable_now(),typeof W=="function"?g.callback=W:g===n(f)&&s(f),P(J)}else s(f);g=n(f)}if(g!==null)var oe=!0;else{var ae=n(h);ae!==null&&ee(R,ae.startTime-J),oe=!1}return oe}finally{g=null,w=Y,C=!1}}var $=!1,U=null,D=-1,Z=5,K=-1;function ie(){return!(e.unstable_now()-K<Z)}function me(){if(U!==null){var I=e.unstable_now();K=I;var J=!0;try{J=U(!0,I)}finally{J?fe():($=!1,U=null)}}else $=!1}var fe;if(typeof k=="function")fe=function(){k(me)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,Se=pe.port2;pe.port1.onmessage=me,fe=function(){Se.postMessage(null)}}else fe=function(){S(me,0)};function te(I){U=I,$||($=!0,fe())}function ee(I,J){D=S(function(){I(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){E||C||(E=!0,te(O))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(I){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var Y=w;w=J;try{return I()}finally{w=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,J){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Y=w;w=I;try{return J()}finally{w=Y}},e.unstable_scheduleCallback=function(I,J,Y){var L=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?L+Y:L):Y=L,I){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Y+W,I={id:m++,callback:J,priorityLevel:I,startTime:Y,expirationTime:W,sortIndex:-1},Y>L?(I.sortIndex=Y,t(h,I),n(f)===null&&I===n(h)&&(x?(T(D),D=-1):x=!0,ee(R,Y-L))):(I.sortIndex=W,t(f,I),E||C||(E=!0,te(O))),I},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(I){var J=w;return function(){var Y=w;w=J;try{return I.apply(this,arguments)}finally{w=Y}}}})(Sf)),Sf}var Sv;function _T(){return Sv||(Sv=1,xf.exports=NT()),xf.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 bv;function OT(){if(bv)return Vt;bv=1;var e=hp(),t=_T();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function l(r,i){c(r,i),c(r+"Capture",i)}function c(r,i){for(o[r]=i,r=0;r<i.length;r++)s.add(i[r])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},g={};function w(r){return f.call(g,r)?!0:f.call(m,r)?!1:h.test(r)?g[r]=!0:(m[r]=!0,!1)}function C(r,i,a,d){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function E(r,i,a,d){if(i===null||typeof i>"u"||C(r,i,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function x(r,i,a,d,p,y,A){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=a,this.propertyName=r,this.type=i,this.sanitizeURL=y,this.removeEmptyString=A}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new x(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];S[i]=new x(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new x(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new x(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){S[r]=new x(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new x(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new x(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new x(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new x(r,5,!1,r.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function k(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 i=r.replace(T,k);S[i]=new x(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(T,k);S[i]=new x(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(T,k);S[i]=new x(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new x(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new x(r,1,!1,r.toLowerCase(),null,!0,!0)});function P(r,i,a,d){var p=S.hasOwnProperty(i)?S[i]:null;(p!==null?p.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(E(i,a,p,d)&&(a=null),d||p===null?w(i)&&(a===null?r.removeAttribute(i):r.setAttribute(i,""+a)):p.mustUseProperty?r[p.propertyName]=a===null?p.type===3?!1:"":a:(i=p.attributeName,d=p.attributeNamespace,a===null?r.removeAttribute(i):(p=p.type,a=p===3||p===4&&a===!0?"":""+a,d?r.setAttributeNS(d,i,a):r.setAttribute(i,a))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),$=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),ie=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),ee=Symbol.for("react.offscreen"),I=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=I&&r[I]||r["@@iterator"],typeof r=="function"?r:null)}var Y=Object.assign,L;function W(r){if(L===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);L=i&&i[1]||""}return`
34`+L+r}var oe=!1;function ae(r,i){if(!r||oe)return"";oe=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(V){var d=V}Reflect.construct(r,[],i)}else{try{i.call()}catch(V){d=V}r.call(i.prototype)}else{try{throw Error()}catch(V){d=V}r()}}catch(V){if(V&&d&&typeof V.stack=="string"){for(var p=V.stack.split(`
35`),y=d.stack.split(`
36`),A=p.length-1,N=y.length-1;1<=A&&0<=N&&p[A]!==y[N];)N--;for(;1<=A&&0<=N;A--,N--)if(p[A]!==y[N]){if(A!==1||N!==1)do if(A--,N--,0>N||p[A]!==y[N]){var _=`
37`+p[A].replace(" at new "," at ");return r.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",r.displayName)),_}while(1<=A&&0<=N);break}}}finally{oe=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?W(r):""}function be(r){switch(r.tag){case 5:return W(r.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return r=ae(r.type,!1),r;case 11:return r=ae(r.type.render,!1),r;case 1:return r=ae(r.type,!0),r;default:return""}}function Te(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 U:return"Fragment";case $:return"Portal";case Z:return"Profiler";case D:return"StrictMode";case fe:return"Suspense";case pe:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case ie:return(r.displayName||"Context")+".Consumer";case K:return(r._context.displayName||"Context")+".Provider";case me:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Se:return i=r.displayName||null,i!==null?i:Te(r.type)||"Memo";case te:i=r._payload,r=r._init;try{return Te(r(i))}catch{}}return null}function Q(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(i);case 8:return i===D?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ge(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ce(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ae(r){var i=Ce(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,y=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(A){d=""+A,y.call(this,A)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(A){d=""+A},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Ne(r){r._valueTracker||(r._valueTracker=Ae(r))}function _e(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return r&&(d=Ce(r)?r.checked?"true":"false":r.value),r=d,r!==a?(i.setValue(r),!0):!1}function ft(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 Mt(r,i){var a=i.checked;return Y({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function hr(r,i){var a=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;a=ge(i.value!=null?i.value:a),r._wrapperState={initialChecked:d,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function pr(r,i){i=i.checked,i!=null&&P(r,"checked",i,!1)}function Kn(r,i){pr(r,i);var a=ge(i.value),d=i.type;if(a!=null)d==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?mr(r,i.type,a):i.hasOwnProperty("defaultValue")&&mr(r,i.type,ge(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Ha(r,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,a||i===r.value||(r.value=i),r.defaultValue=i}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function mr(r,i,a){(i!=="number"||ft(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var io=Array.isArray;function Qs(r,i,a,d){if(r=r.options,i){i={};for(var p=0;p<a.length;p++)i["$"+a[p]]=!0;for(a=0;a<r.length;a++)p=i.hasOwnProperty("$"+r[a].value),r[a].selected!==p&&(r[a].selected=p),p&&d&&(r[a].defaultSelected=!0)}else{for(a=""+ge(a),i=null,p=0;p<r.length;p++){if(r[p].value===a){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function Au(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Am(r,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(io(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}r._wrapperState={initialValue:ge(a)}}function Tm(r,i){var a=ge(i.value),d=ge(i.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),i.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),d!=null&&(r.defaultValue=""+d)}function Pm(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function km(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 Tu(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?km(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var qa,Rm=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,d,p){MSApp.execUnsafeLocalFunction(function(){return r(i,a,d,p)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(qa=qa||document.createElement("div"),qa.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=qa.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function oo(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var ao={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},N1=["Webkit","ms","Moz","O"];Object.keys(ao).forEach(function(r){N1.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),ao[i]=ao[r]})});function Nm(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||ao.hasOwnProperty(r)&&ao[r]?(""+i).trim():i+"px"}function _m(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var d=a.indexOf("--")===0,p=Nm(a,i[a],d);a==="float"&&(a="cssFloat"),d?r.setProperty(a,p):r[a]=p}}var _1=Y({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 Pu(r,i){if(i){if(_1[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function ku(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";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 Ru=null;function Nu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var _u=null,Ys=null,Xs=null;function Om(r){if(r=No(r)){if(typeof _u!="function")throw Error(n(280));var i=r.stateNode;i&&(i=ml(i),_u(r.stateNode,r.type,i))}}function jm(r){Ys?Xs?Xs.push(r):Xs=[r]:Ys=r}function Mm(){if(Ys){var r=Ys,i=Xs;if(Xs=Ys=null,Om(r),i)for(r=0;r<i.length;r++)Om(i[r])}}function Lm(r,i){return r(i)}function Im(){}var Ou=!1;function Dm(r,i,a){if(Ou)return r(i,a);Ou=!0;try{return Lm(r,i,a)}finally{Ou=!1,(Ys!==null||Xs!==null)&&(Im(),Mm())}}function lo(r,i){var a=r.stateNode;if(a===null)return null;var d=ml(a);if(d===null)return null;a=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var ju=!1;if(u)try{var co={};Object.defineProperty(co,"passive",{get:function(){ju=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{ju=!1}function O1(r,i,a,d,p,y,A,N,_){var V=Array.prototype.slice.call(arguments,3);try{i.apply(a,V)}catch(q){this.onError(q)}}var uo=!1,Ka=null,Ga=!1,Mu=null,j1={onError:function(r){uo=!0,Ka=r}};function M1(r,i,a,d,p,y,A,N,_){uo=!1,Ka=null,O1.apply(j1,arguments)}function L1(r,i,a,d,p,y,A,N,_){if(M1.apply(this,arguments),uo){if(uo){var V=Ka;uo=!1,Ka=null}else throw Error(n(198));Ga||(Ga=!0,Mu=V)}}function ls(r){var i=r,a=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(a=i.return),r=i.return;while(r)}return i.tag===3?a:null}function Bm(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Fm(r){if(ls(r)!==r)throw Error(n(188))}function I1(r){var i=r.alternate;if(!i){if(i=ls(r),i===null)throw Error(n(188));return i!==r?null:r}for(var a=r,d=i;;){var p=a.return;if(p===null)break;var y=p.alternate;if(y===null){if(d=p.return,d!==null){a=d;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===a)return Fm(p),r;if(y===d)return Fm(p),i;y=y.sibling}throw Error(n(188))}if(a.return!==d.return)a=p,d=y;else{for(var A=!1,N=p.child;N;){if(N===a){A=!0,a=p,d=y;break}if(N===d){A=!0,d=p,a=y;break}N=N.sibling}if(!A){for(N=y.child;N;){if(N===a){A=!0,a=y,d=p;break}if(N===d){A=!0,d=y,a=p;break}N=N.sibling}if(!A)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:i}function Vm(r){return r=I1(r),r!==null?Um(r):null}function Um(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Um(r);if(i!==null)return i;r=r.sibling}return null}var zm=t.unstable_scheduleCallback,$m=t.unstable_cancelCallback,D1=t.unstable_shouldYield,B1=t.unstable_requestPaint,et=t.unstable_now,F1=t.unstable_getCurrentPriorityLevel,Lu=t.unstable_ImmediatePriority,Wm=t.unstable_UserBlockingPriority,Qa=t.unstable_NormalPriority,V1=t.unstable_LowPriority,Hm=t.unstable_IdlePriority,Ya=null,kn=null;function U1(r){if(kn&&typeof kn.onCommitFiberRoot=="function")try{kn.onCommitFiberRoot(Ya,r,void 0,(r.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:W1,z1=Math.log,$1=Math.LN2;function W1(r){return r>>>=0,r===0?32:31-(z1(r)/$1|0)|0}var Xa=64,Ja=4194304;function fo(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 Za(r,i){var a=r.pendingLanes;if(a===0)return 0;var d=0,p=r.suspendedLanes,y=r.pingedLanes,A=a&268435455;if(A!==0){var N=A&~p;N!==0?d=fo(N):(y&=A,y!==0&&(d=fo(y)))}else A=a&~p,A!==0?d=fo(A):y!==0&&(d=fo(y));if(d===0)return 0;if(i!==0&&i!==d&&(i&p)===0&&(p=d&-d,y=i&-i,p>=y||p===16&&(y&4194240)!==0))return i;if((d&4)!==0&&(d|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0<i;)a=31-hn(i),p=1<<a,d|=r[a],i&=~p;return d}function H1(r,i){switch(r){case 1:case 2:case 4:return i+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 i+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 q1(r,i){for(var a=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes;0<y;){var A=31-hn(y),N=1<<A,_=p[A];_===-1?((N&a)===0||(N&d)!==0)&&(p[A]=H1(N,i)):_<=i&&(r.expiredLanes|=N),y&=~N}}function Iu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function qm(){var r=Xa;return Xa<<=1,(Xa&4194240)===0&&(Xa=64),r}function Du(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function ho(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-hn(i),r[i]=a}function K1(r,i){var a=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<a;){var p=31-hn(a),y=1<<p;i[p]=0,d[p]=-1,r[p]=-1,a&=~y}}function Bu(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var d=31-hn(a),p=1<<d;p&i|r[d]&i&&(r[d]|=i),a&=~p}}var Fe=0;function Km(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Gm,Fu,Qm,Ym,Xm,Vu=!1,el=[],gr=null,yr=null,vr=null,po=new Map,mo=new Map,wr=[],G1="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(" ");
vendor: 2,076 bytes, line 37
37function Jm(r,i){switch(r){case"focusin":case"focusout":gr=null;break;case"dragenter":case"dragleave":yr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":po.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(i.pointerId)}}function go(r,i,a,d,p,y){return r===null||r.nativeEvent!==y?(r={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:y,targetContainers:[p]},i!==null&&(i=No(i),i!==null&&Fu(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function Q1(r,i,a,d,p){switch(i){case"focusin":return gr=go(gr,r,i,a,d,p),!0;case"dragenter":return yr=go(yr,r,i,a,d,p),!0;case"mouseover":return vr=go(vr,r,i,a,d,p),!0;case"pointerover":var y=p.pointerId;return po.set(y,go(po.get(y)||null,r,i,a,d,p)),!0;case"gotpointercapture":return y=p.pointerId,mo.set(y,go(mo.get(y)||null,r,i,a,d,p)),!0}return!1}function Zm(r){var i=cs(r.target);if(i!==null){var a=ls(i);if(a!==null){if(i=a.tag,i===13){if(i=Bm(a),i!==null){r.blockedOn=i,Xm(r.priority,function(){Qm(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function tl(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=zu(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);Ru=d,a.target.dispatchEvent(d),Ru=null}else return i=No(a),i!==null&&Fu(i),r.blockedOn=a,!1;i.shift()}return!0}function eg(r,i,a){tl(r)&&a.delete(i)}function Y1(){Vu=!1,gr!==null&&tl(gr)&&(gr=null),yr!==null&&tl(yr)&&(yr=null),vr!==null&&tl(vr)&&(vr=null),po.forEach(eg),mo.forEach(eg)}function yo(r,i){r.blockedOn===i&&(r.blockedOn=null,Vu||(Vu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Y1)))}function vo(r){function i(p){return yo(p,r)}if(0<el.length){yo(el[0],r);for(var a=1;a<el.length;a++){var d=el[a];d.blockedOn===r&&(d.blockedOn=null)}}for(gr!==null&&yo(gr,r),yr!==null&&yo(yr,r),vr!==null&&yo(vr,r),po.forEac
vendor: 13,748 bytes, line 37
37h(i),mo.forEach(i),a=0;a<wr.length;a++)d=wr[a],d.blockedOn===r&&(d.blockedOn=null);for(;0<wr.length&&(a=wr[0],a.blockedOn===null);)Zm(a),a.blockedOn===null&&wr.shift()}var Js=R.ReactCurrentBatchConfig,nl=!0;function X1(r,i,a,d){var p=Fe,y=Js.transition;Js.transition=null;try{Fe=1,Uu(r,i,a,d)}finally{Fe=p,Js.transition=y}}function J1(r,i,a,d){var p=Fe,y=Js.transition;Js.transition=null;try{Fe=4,Uu(r,i,a,d)}finally{Fe=p,Js.transition=y}}function Uu(r,i,a,d){if(nl){var p=zu(r,i,a,d);if(p===null)id(r,i,d,rl,a),Jm(r,d);else if(Q1(p,r,i,a,d))d.stopPropagation();else if(Jm(r,d),i&4&&-1<G1.indexOf(r)){for(;p!==null;){var y=No(p);if(y!==null&&Gm(y),y=zu(r,i,a,d),y===null&&id(r,i,d,rl,a),y===p)break;p=y}p!==null&&d.stopPropagation()}else id(r,i,d,null,a)}}var rl=null;function zu(r,i,a,d){if(rl=null,r=Nu(d),r=cs(r),r!==null)if(i=ls(r),i===null)r=null;else if(a=i.tag,a===13){if(r=Bm(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return rl=r,null}function tg(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(F1()){case Lu:return 1;case Wm:return 4;case Qa:case V1:return 16;case Hm:return 536870912;default:return 16}default:return 16}}var xr=null,$u=null,sl=null;function ng(){if(sl)return sl;var r,i=$u,a=i.length,d,p="value"in xr?xr.value:xr.textContent,y=p.length;for(r=0;r<a&&i[r]===p[r];r++);var A=a-r;for(d=1;d<=A&&i[a-d]===p[y-d];d++);return sl=p.slice(r,1<d?1-d:void 0)}function il(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function ol(){return!0}function rg(){return!1}function Ht(r){function i(a,d,p,y,A){this._reactName=a,this._targetInst=p,this.type=d,this.nativeEvent=y,this.target=A,this.currentTarget=null;for(var N in r)r.hasOwnProperty(N)&&(a=r[N],this[N]=a?a(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ol:rg,this.isPropagationStopped=rg,this}return Y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ol)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ol)},persist:function(){},isPersistent:ol}),i}var Zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=Ht(Zs),wo=Y({},Zs,{view:0,detail:0}),Z1=Ht(wo),Hu,qu,xo,al=Y({},wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,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!==xo&&(xo&&r.type==="mousemove"?(Hu=r.screenX-xo.screenX,qu=r.screenY-xo.screenY):qu=Hu=0,xo=r),Hu)},movementY:function(r){return"movementY"in r?r.movementY:qu}}),sg=Ht(al),eA=Y({},al,{dataTransfer:0}),tA=Ht(eA),nA=Y({},wo,{relatedTarget:0}),Ku=Ht(nA),rA=Y({},Zs,{animationName:0,elapsedTime:0,pseudoElement:0}),sA=Ht(rA),iA=Y({},Zs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),oA=Ht(iA),aA=Y({},Zs,{data:0}),ig=Ht(aA),lA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cA={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"},uA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dA(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=uA[r])?!!i[r]:!1}function Gu(){return dA}var fA=Y({},wo,{key:function(r){if(r.key){var i=lA[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=il(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?cA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(r){return r.type==="keypress"?il(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?il(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),hA=Ht(fA),pA=Y({},al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),og=Ht(pA),mA=Y({},wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),gA=Ht(mA),yA=Y({},Zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),vA=Ht(yA),wA=Y({},al,{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}),xA=Ht(wA),SA=[9,13,27,32],Qu=u&&"CompositionEvent"in window,So=null;u&&"documentMode"in document&&(So=document.documentMode);var bA=u&&"TextEvent"in window&&!So,ag=u&&(!Qu||So&&8<So&&11>=So),lg=" ",cg=!1;function ug(r,i){switch(r){case"keyup":return SA.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ei=!1;function EA(r,i){switch(r){case"compositionend":return dg(i);case"keypress":return i.which!==32?null:(cg=!0,lg);case"textInput":return r=i.data,r===lg&&cg?null:r;default:return null}}function CA(r,i){if(ei)return r==="compositionend"||!Qu&&ug(r,i)?(r=ng(),sl=$u=xr=null,ei=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ag&&i.locale!=="ko"?null:i.data;default:return null}}var AA={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 fg(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!AA[r.type]:i==="textarea"}function hg(r,i,a,d){jm(d),i=fl(i,"onChange"),0<i.length&&(a=new Wu("onChange","change",null,a,d),r.push({event:a,listeners:i}))}var bo=null,Eo=null;function TA(r){_g(r,0)}function ll(r){var i=ii(r);if(_e(i))return r}function PA(r,i){if(r==="change")return i}var pg=!1;if(u){var Yu;if(u){var Xu="oninput"in document;if(!Xu){var mg=document.createElement("div");mg.setAttribute("oninput","return;"),Xu=typeof mg.oninput=="function"}Yu=Xu}else Yu=!1;pg=Yu&&(!document.documentMode||9<document.documentMode)}function gg(){bo&&(bo.detachEvent("onpropertychange",yg),Eo=bo=null)}function yg(r){if(r.propertyName==="value"&&ll(Eo)){var i=[];hg(i,Eo,r,Nu(r)),Dm(TA,i)}}function kA(r,i,a){r==="focusin"?(gg(),bo=i,Eo=a,bo.attachEvent("onpropertychange",yg)):r==="focusout"&&gg()}function RA(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ll(Eo)}function NA(r,i){if(r==="click")return ll(i)}function _A(r,i){if(r==="input"||r==="change")return ll(i)}function OA(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var pn=typeof Object.is=="function"?Object.is:OA;function Co(r,i){if(pn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),d=Object.keys(i);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var p=a[d];if(!f.call(i,p)||!pn(r[p],i[p]))return!1}return!0}function vg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wg(r,i){var a=vg(r);r=0;for(var d;a;){if(a.nodeType===3){if(d=r+a.textContent.length,r<=i&&d>=i)return{node:a,offset:i-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=vg(a)}}function xg(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?xg(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Sg(){for(var r=window,i=ft();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=ft(r.document)}return i}function Ju(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function jA(r){var i=Sg(),a=r.focusedElem,d=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&xg(a.ownerDocument.documentElement,a)){if(d!==null&&Ju(a)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(r,a.value.length);else if(r=(i=a.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var p=a.textContent.length,y=Math.min(d.start,p);d=d.end===void 0?y:Math.min(d.end,p),!r.extend&&y>d&&(p=d,d=y,y=p),p=wg(a,y);var A=wg(a,d);p&&A&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==A.node||r.focusOffset!==A.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),r.removeAllRanges(),y>d?(r.addRange(i),r.extend(A.node,A.offset)):(i.setEnd(A.node,A.offset),r.addRange(i)))}}for(i=[],r=a;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)r=i[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var MA=u&&"documentMode"in document&&11>=document.documentMode,ti=null,Zu=null,Ao=null,ed=!1;function bg(r,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ed||ti==null||ti!==ft(d)||(d=ti,"selectionStart"in d&&Ju(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ao&&Co(Ao,d)||(Ao=d,d=fl(Zu,"onSelect"),0<d.length&&(i=new Wu("onSelect","select",null,i,a),r.push({event:i,listeners:d}),i.target=ti)))}function cl(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var ni={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionend:cl("Transition","TransitionEnd")},td={},Eg={};u&&(Eg=document.createElement("div").style,"AnimationEvent"in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),"TransitionEvent"in window||delete ni.transitionend.transition);function ul(r){if(td[r])return td[r];if(!ni[r])return r;var i=ni[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in Eg)return td[r]=i[a];return r}var Cg=ul("animationend"),Ag=ul("animationiteration"),Tg=ul("animationstart"),Pg=ul("transitionend"),kg=new Map,Rg="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 Sr(r,i){kg.set(r,i),l(i,[r])}for(var nd=0;nd<Rg.length;nd++){var rd=Rg[nd],LA=rd.toLowerCase(),IA=rd[0].toUpperCase()+rd.slice(1);Sr(LA,"on"+IA)}Sr(Cg,"onAnimationEnd"),Sr(Ag,"onAnimationIteration"),Sr(Tg,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(Pg,"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 focu
37sin 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 To="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(" "),DA=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function Ng(r,i,a){var d=r.type||"unknown-event";r.currentTarget=a,L1(d,i,void 0,r),r.currentTarget=null}function _g(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var d=r[a],p=d.event;d=d.listeners;e:{var y=void 0;if(i)for(var A=d.length-1;0<=A;A--){var N=d[A],_=N.instance,V=N.currentTarget;if(N=N.listener,_!==y&&p.isPropagationStopped())break e;Ng(p,N,V),y=_}else for(A=0;A<d.length;A++){if(N=d[A],_=N.instance,V=N.currentTarget,N=N.listener,_!==y&&p.isPropagationStopped())break e;Ng(p,N,V),y=_}}}if(Ga)throw r=Mu,Ga=!1,Mu=null,r}function We(r,i){var a=i[dd];a===void 0&&(a=i[dd]=new Set);var d=r+"__bubble";a.has(d)||(Og(i,r,2,!1),a.add(d))}function sd(r,i,a){var d=0;i&&(d|=4),Og(a,r,d,i)}var dl="_reactListening"+Math.random().toString(36).slice(2);function Po(r){if(!r[dl]){r[dl]=!0,s.forEach(function(a){a!=="selectionchange"&&(DA.has(a)||sd(a,!1,r),sd(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[dl]||(i[dl]=!0,sd("selectionchange",!1,i))}}function Og(r,i,a,d){switch(tg(i)){case 1:var p=X1;break;case 4:p=J1;break;default:p=Uu}a=p.bind(null,i,a,r),p=void 0,!ju||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(i,a,{capture:!0,passive:p}):r.addEventListener(i,a,!0):p!==void 0?r.addEventListener(i,a,{passive:p}):r.addEventListener(i,a,!1)}function id(r,i,a,d,p){var y=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var A=d.tag;if(A===3||A===4){var N=d.stateNode.containerInfo;if(N===p||N.nodeType===8&&N.parentNode===p)break;if(A===4)for(A=d.return;A!==null;){var _=A.tag;if((_===3||_===4)&&(_=A.stateNode.containerInfo,_===p||_.nodeType===8&&_.parentNode===p))return;A=A.return}for(;N!==null;){if(A=cs(N),A===null)return;if(_=A.tag,_===5||_===6){d=y=A;continue e}N=N.parentNode}}d=d.return}Dm(function(){var V=y,q=Nu(a),G=[];e:{var H=kg.get(r);if(H!==void 0){var ne=Wu,le=r;switch(r){case"keypress":if(il(a)===0)break e;case"keydown":case"keyup":ne=hA;break;case"focusin":le="focus",ne=Ku;break;case"focusout":le="blur",ne=Ku;break;case"beforeblur":case"afterblur":ne=Ku;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=sg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=tA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=gA;break;case Cg:case Ag:case Tg:ne=sA;break;case Pg:ne=vA;break;case"scroll":ne=Z1;break;case"wheel":ne=xA;break;case"copy":case"cut":case"paste":ne=oA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=og}var de=(i&4)!==0,tt=!de&&r==="scroll",B=de?H!==null?H+"Capture":null:H;de=[];for(var M=V,F;M!==null;){F=M;var X=F.stateNode;if(F.tag===5&&X!==null&&(F=X,B!==null&&(X=lo(M,B),X!=null&&de.push(ko(M,X,F)))),tt)break;M=M.return}0<de.length&&(H=new ne(H,le,null,a,q),G.push({event:H,listeners:de}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",ne=r==="mouseout"||r==="pointerout",H&&a!==Ru&&(le=a.relatedTarget||a.fromElement)&&(cs(le)||le[Gn]))break e;if((ne||H)&&(H=q.window===q?q:(H=q.ownerDocument)?H.defaultView||H.parentWindow:window,ne?(le=a.relatedTarget||a.toElement,ne=V,le=le?cs(le):null,le!==null&&(tt=ls(le),le!==tt||le.tag!==5&&le.tag!==6)&&(le=null)):(ne=null,le=V),ne!==le)){if(de=sg,X="onMouseLeave",B="onMouseEnter",M="mouse",(r==="pointerout"||r==="pointerover")&&(de=og,X="onPointerLeave",B="onPointerEnter",M="pointer"),tt=ne==null?H:ii(ne),F=le==null?H:ii(le),H=new de(X,M+"leave",ne,a,q),H.target=tt,H.relatedTarget=F,X=null,cs(q)===V&&(de=new de(B,M+"enter",le,a,q),de.target=F,de.relatedTarget=tt,X=de),tt=X,ne&&le)t:{for(de=ne,B=le,M=0,F=de;F;F=ri(F))M++;for(F=0,X=B;X;X=ri(X))F++;for(;0<M-F;)de=ri(de),M--;for(;0<F-M;)B=ri(B),F--;for(;M--;){if(de===B||B!==null&&de===B.alternate)break t;de=ri(de),B=ri(B)}de=null}else de=null;ne!==null&&jg(G,H,ne,de,!1),le!==null&&tt!==null&&jg(G,tt,le,de,!0)}}
vendor: 4,366 bytes, lines 37-38
37e:{if(H=V?ii(V):window,ne=H.nodeName&&H.nodeName.toLowerCase(),ne==="select"||ne==="input"&&H.type==="file")var he=PA;else if(fg(H))if(pg)he=_A;else{he=RA;var ye=kA}else(ne=H.nodeName)&&ne.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(he=NA);if(he&&(he=he(r,V))){hg(G,he,a,q);break e}ye&&ye(r,H,V),r==="focusout"&&(ye=H._wrapperState)&&ye.controlled&&H.type==="number"&&mr(H,"number",H.value)}switch(ye=V?ii(V):window,r){case"focusin":(fg(ye)||ye.contentEditable==="true")&&(ti=ye,Zu=V,Ao=null);break;case"focusout":Ao=Zu=ti=null;break;case"mousedown":ed=!0;break;case"contextmenu":case"mouseup":case"dragend":ed=!1,bg(G,a,q);break;case"selectionchange":if(MA)break;case"keydown":case"keyup":bg(G,a,q)}var ve;if(Qu)e:{switch(r){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ei?ug(r,a)&&(Ee="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Ee="onCompositionStart");Ee&&(ag&&a.locale!=="ko"&&(ei||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ei&&(ve=ng()):(xr=q,$u="value"in xr?xr.value:xr.textContent,ei=!0)),ye=fl(V,Ee),0<ye.length&&(Ee=new ig(Ee,r,null,a,q),G.push({event:Ee,listeners:ye}),ve?Ee.data=ve:(ve=dg(a),ve!==null&&(Ee.data=ve)))),(ve=bA?EA(r,a):CA(r,a))&&(V=fl(V,"onBeforeInput"),0<V.length&&(q=new ig("onBeforeInput","beforeinput",null,a,q),G.push({event:q,listeners:V}),q.data=ve))}_g(G,i)})}function ko(r,i,a){return{instance:r,listener:i,currentTarget:a}}function fl(r,i){for(var a=i+"Capture",d=[];r!==null;){var p=r,y=p.stateNode;p.tag===5&&y!==null&&(p=y,y=lo(r,a),y!=null&&d.unshift(ko(r,y,p)),y=lo(r,i),y!=null&&d.push(ko(r,y,p))),r=r.return}return d}function ri(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function jg(r,i,a,d,p){for(var y=i._reactName,A=[];a!==null&&a!==d;){var N=a,_=N.alternate,V=N.stateNode;if(_!==null&&_===d)break;N.tag===5&&V!==null&&(N=V,p?(_=lo(a,y),_!=null&&A.unshift(ko(a,_,N))):p||(_=lo(a,y),_!=null&&A.push(ko(a,_,N)))),a=a.return}A.length!==0&&r.push({event:i,listeners:A})}var BA=/\r\n?/g,FA=/\u0000|\uFFFD/g;function Mg(r){return(typeof r=="string"?r:""+r).replace(BA,`
38`).replace(FA,"")}function hl(r,i,a){if(i=Mg(i),Mg(r)!==i&&a)throw Error(n(425))}function pl(){}var od=null,ad=null;function ld(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var cd=typeof setTimeout=="function"?setTimeout:void 0,VA=typeof clearTimeout=="function"?clearTimeout:void 0,Lg=typeof Promise=="function"?Promise:void 0,UA=typeof queueMicrotask=="function"?queueMicrotask:typeof Lg<"u"?function(r){return Lg.resolve(null).then(r).catch(zA)}:cd;function zA(r){setTimeout(function(){throw r})}function ud(r,i){var a=i,d=0;do{var p=a.nextSibling;if(r.removeChild(a),p&&p.nodeType===8)if(a=p.data,a==="/$"){if(d===0){r.removeChild(p),vo(i);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=p}while(a);vo(i)}function br(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function Ig(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return r;i--}else a==="/$"&&i++}r=r.previousSibling}return null}var si=Math.random().toString(36).slice(2),Rn="__reactFiber$"+si,Ro="__reactProps$"+si,Gn="__reactContainer$"+si,dd="__reactEvents$"+si,$A="__reactListeners$"+si,WA="__reactHandles$"+si;function cs(r){var i=r[Rn];if(i)return i;for(var a=r.parentNode;a;){if(i=a[Gn]||a[Rn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=Ig(r);r!==null;){if(a=r[Rn])return a;r=Ig(r)}return i}r=a,a=r.parentNode}return null}function No(r){return r=r[Rn]||r[Gn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function ii(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function ml(r){return r[Ro]||null}var fd=[],oi=-1;function Er(r){return{current:r}}function He(r){0>oi||(r.current=fd[oi],fd[oi]=null,oi--)}function $e(r,i){oi++,fd[oi]=r.current,r.current=i}var Cr={},bt=Er(Cr),Lt=Er(!1),us=Cr;function ai(r,i){var a=r.type.contextTypes;if(!a)return Cr;var d=r.stateNode;
vendor: 9,699 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var p={},y;for(y in a)p[y]=i[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=p),p}function It(r){return r=r.childContextTypes,r!=null}function gl(){He(Lt),He(bt)}function Dg(r,i,a){if(bt.current!==Cr)throw Error(n(168));$e(bt,i),$e(Lt,a)}function Bg(r,i,a){var d=r.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var p in d)if(!(p in i))throw Error(n(108,Q(r)||"Unknown",p));return Y({},a,d)}function yl(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Cr,us=bt.current,$e(bt,r),$e(Lt,Lt.current),!0}function Fg(r,i,a){var d=r.stateNode;if(!d)throw Error(n(169));a?(r=Bg(r,i,us),d.__reactInternalMemoizedMergedChildContext=r,He(Lt),He(bt),$e(bt,r)):He(Lt),$e(Lt,a)}var Qn=null,vl=!1,hd=!1;function Vg(r){Qn===null?Qn=[r]:Qn.push(r)}function HA(r){vl=!0,Vg(r)}function Ar(){if(!hd&&Qn!==null){hd=!0;var r=0,i=Fe;try{var a=Qn;for(Fe=1;r<a.length;r++){var d=a[r];do d=d(!0);while(d!==null)}Qn=null,vl=!1}catch(p){throw Qn!==null&&(Qn=Qn.slice(r+1)),zm(Lu,Ar),p}finally{Fe=i,hd=!1}}return null}var li=[],ci=0,wl=null,xl=0,Zt=[],en=0,ds=null,Yn=1,Xn="";function fs(r,i){li[ci++]=xl,li[ci++]=wl,wl=r,xl=i}function Ug(r,i,a){Zt[en++]=Yn,Zt[en++]=Xn,Zt[en++]=ds,ds=r;var d=Yn;r=Xn;var p=32-hn(d)-1;d&=~(1<<p),a+=1;var y=32-hn(i)+p;if(30<y){var A=p-p%5;y=(d&(1<<A)-1).toString(32),d>>=A,p-=A,Yn=1<<32-hn(i)+p|a<<p|d,Xn=y+r}else Yn=1<<y|a<<p|d,Xn=r}function pd(r){r.return!==null&&(fs(r,1),Ug(r,1,0))}function md(r){for(;r===wl;)wl=li[--ci],li[ci]=null,xl=li[--ci],li[ci]=null;for(;r===ds;)ds=Zt[--en],Zt[en]=null,Xn=Zt[--en],Zt[en]=null,Yn=Zt[--en],Zt[en]=null}var qt=null,Kt=null,Ke=!1,mn=null;function zg(r,i){var a=sn(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=r,i=r.deletions,i===null?(r.deletions=[a],r.flags|=16):i.push(a)}function $g(r,i){switch(r.tag){case 5:var a=r.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,qt=r,Kt=br(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,qt=r,Kt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=ds!==null?{id:Yn,overflow:Xn}:null,r.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=sn(18,null,null,0),a.stateNode=i,a.return=r,r.child=a,qt=r,Kt=null,!0):!1;default:return!1}}function gd(r){return(r.mode&1)!==0&&(r.flags&128)===0}function yd(r){if(Ke){var i=Kt;if(i){var a=i;if(!$g(r,i)){if(gd(r))throw Error(n(418));i=br(a.nextSibling);var d=qt;i&&$g(r,i)?zg(d,a):(r.flags=r.flags&-4097|2,Ke=!1,qt=r)}}else{if(gd(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ke=!1,qt=r}}}function Wg(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;qt=r}function Sl(r){if(r!==qt)return!1;if(!Ke)return Wg(r),Ke=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!ld(r.type,r.memoizedProps)),i&&(i=Kt)){if(gd(r))throw Hg(),Error(n(418));for(;i;)zg(r,i),i=br(i.nextSibling)}if(Wg(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(i===0){Kt=br(r.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}r=r.nextSibling}Kt=null}}else Kt=qt?br(r.stateNode.nextSibling):null;return!0}function Hg(){for(var r=Kt;r;)r=br(r.nextSibling)}function ui(){Kt=qt=null,Ke=!1}function vd(r){mn===null?mn=[r]:mn.push(r)}var qA=R.ReactCurrentBatchConfig;function _o(r,i,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,r));var p=d,y=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===y?i.ref:(i=function(A){var N=p.refs;A===null?delete N[y]:N[y]=A},i._stringRef=y,i)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function bl(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function qg(r){var i=r._init;return i(r._payload)}function Kg(r){function i(B,M){if(r){var F=B.deletions;F===null?(B.deletions=[M],B.flags|=16):F.push(M)}}function a(B,M){if(!r)return null;for(;M!==null;)i(B,M),M=M.sibling;return null}function d(B,M){for(B=new Map;M!==null;)M.key!==null?B.set(M.key,M):B.set(M.index,M),M=M.sibling;return B}function p(B,M){return B=jr(B,M),B.index=0,B.sibling=null,B}function y(B,M,F){return B.index=F,r?(F=B.alternate,F!==null?(F=F.index,F<M?(B.flags|=2,M):F):(B.flags|=2,M)):(B.flags|=1048576,M)}function A(B){return r&&B.alternate===null&&(B.flags|=2),B}function N(B,M,F,X){return M===null||M.tag!==6?(M=uf(F,B.mode,X),M.return=B,M):(M=p(M,F),M.return=B,M)}function _(B,M,F,X){var he=F.type;return he===U?q(B,M,F.props.children,X,F.key):M!==null&&(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===te&&qg(he)===M.type)?(X=p(M,F.props),X.ref=_o(B,M,F),X.return=B,X):(X=ql(F.type,F.key,F.props,null,B.mode,X),X.ref=_o(B,M,F),X.return=B,X)}function V(B,M,F,X){return M===null||M.tag!==4||M.stateNode.containerInfo!==F.containerInfo||M.stateNode.implementation!==F.implementation?(M=df(F,B.mode,X),M.return=B,M):(M=p(M,F.children||[]),M.return=B,M)}function q(B,M,F,X,he){return M===null||M.tag!==7?(M=xs(F,B.mode,X,he),M.return=B,M):(M=p(M,F),M.return=B,M)}function G(B,M,F){if(typeof M=="string"&&M!==""||typeof M=="number")return M=uf(""+M,B.mode,F),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case O:return F=ql(M.type,M.key,M.props,null,B.mode,F),F.ref=_o(B,null,M),F.return=B,F;case $:return M=df(M,B.mode,F),M.return=B,M;case te:var X=M._init;return G(B,X(M._payload),F)}if(io(M)||J(M))return M=xs(M,B.mode,F,null),M.return=B,M;bl(B,M)}return null}function H(B,M,F,X){var he=M!==null?M.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return he!==null?null:N(B,M,""+F,X);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case O:return F.key===he?_(B,M,F,X):null;case $:return F.key===he?V(B,M,F,X):null;case te:return he=F._init,H(B,M,he(F._payload),X)}if(io(F)||J(F))return he!==null?null:q(B,M,F,X,null);bl(B,F)}return null}function ne(B,M,F,X,he){if(typeof X=="string"&&X!==""||typeof X=="number")return B=B.get(F)||null,N(M,B,""+X,he);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case O:return B=B.get(X.key===null?F:X.key)||null,_(M,B,X,he);case $:return B=B.get(X.key===null?F:X.key)||null,V(M,B,X,he);case te:var ye=X._init;return ne(B,M,F,ye(X._payload),he)}if(io(X)||J(X))return B=B.get(F)||null,q(M,B,X,he,null);bl(M,X)}return null}function le(B,M,F,X){for(var he=null,ye=null,ve=M,Ee=M=0,mt=null;ve!==null&&Ee<F.length;Ee++){ve.index>Ee?(mt=ve,ve=null):mt=ve.sibling;var De=H(B,ve,F[Ee],X);if(De===null){ve===null&&(ve=mt);break}r&&ve&&De.alternate===null&&i(B,ve),M=y(De,M,Ee),ye===null?he=De:ye.sibling=De,ye=De,ve=mt}if(Ee===F.length)return a(B,ve),Ke&&fs(B,Ee),he;if(ve===null){for(;Ee<F.length;Ee++)ve=G(B,F[Ee],X),ve!==null&&(M=y(ve,M,Ee),ye===null?he=ve:ye.sibling=ve,ye=ve);return Ke&&fs(B,Ee),he}for(ve=d(B,ve);Ee<F.length;Ee++)mt=ne(ve,B,Ee,F[Ee],X),mt!==null&&(r&&mt.alternate!==null&&ve.delete(mt.key===null?Ee:mt.key),M=y(mt,M,Ee),ye===null?he=mt:ye.sibling=mt,ye=mt);return r&&ve.forEach(function(Mr){return i(B,Mr)}),Ke&&fs(B,Ee),he}function de(B,M,F,X){var he=J(F);if(typeof he!="function")throw Error(n(150));if(F=he.call(F),F==null)throw Error(n(151));for(var ye=he=null,ve=M,Ee=M=0,mt=null,De=F.next();ve!==null&&!De.done;Ee++,De=F.next()){ve.index>Ee?(mt=ve,ve=null):mt=ve.sibling;var Mr=H(B,ve,De.value,X);if(Mr===null){ve===null&&(ve=mt);break}r&&ve&&Mr.alternate===null&&i(B,ve),M=y(Mr,M,Ee),ye===null?he=Mr:ye.sibling=Mr,ye=Mr,ve=mt}if(De.done)return a(B,ve),Ke&&fs(B,Ee),he;if(ve===null){for(;!De.done;Ee++,De=F.next())De=G(B,De.value,X),De!==null&&(M=y(De,M,Ee),ye===null?he=De:ye.sibling=De,ye=De);return Ke&&fs(B,Ee),he}for(ve=d(B,ve);!De.done;Ee++,De=F.next())De=ne(ve,B,Ee,De.value,X),De!==null&&(r&&De.alternate!==null&&ve.delete(De.key===null?Ee:De.key),M=y(De,M,Ee),ye===null?he=De:ye.sibling=De,ye=De);return r&&ve.forEach(function(AT){return i(B,AT)}),Ke&&fs(B,Ee),he}function tt(B,M,F,X){if(typeof F=="object"&&F!==null&&F.type===U&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case O:e:{for(var he=F.key,ye=M;ye!==null;){if(ye.key===he){if(he=F.type,he===U){if(ye.tag===7){a(B,ye.sibling),M=p(ye,F.props.children),M.return=B,B=M;break e}}else if(ye.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===te&&qg(he)===ye.type){a(B,ye.sibling),M=p(ye,F.props),M.ref=_o(B,ye,F),M.return=B,B=M;break e}a(B,ye);break}else i(B,ye);ye=ye.sibling}F.type===U?(M=xs(F.props.children,B.mode,X,F.key),M.return=B,B=M):(X=ql(F.type,F.key,F.props,null,B.mode,X),X.ref=_o(B,M,F),X.return=B,B=X)}return A(B);case $:e:{for(ye=F.key;M!==null;){if(M.key===ye)if(M.tag===4&&M.stateNode.containerInfo===F.containerInfo&&M.stateNode.implementation===F.implementation){a(B,M.sibling),M=p(M,F.children||[]),M.return=B,B=M;break e}else{a(B,M);break}else i(B,M);M=M.sibling}M=df(F,B.mode,X),M.return=B,B=M}return A(B);case te:return ye=F._init,tt(B,M,ye(F._payload),X)}if(io(F))return le(B,M,F,X);if(J(F))return de(B,M,F,X);bl(B,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,M!==null&&M.tag===6?(a(B,M.sibling),M=p(M,F),M.return=B,B=M):(a(B,M),M=uf(F,B.mode,X),M.return=B,B=M),A(B)):a(B,M)}return tt}var di=Kg(!0),Gg=Kg(!1),El=Er(null),Cl=null,fi=null,wd=null;
vendor: 6,189 bytes, line 38
38function xd(){wd=fi=Cl=null}function Sd(r){var i=El.current;He(El),r._currentValue=i}function bd(r,i,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===a)break;r=r.return}}function hi(r,i){Cl=r,wd=fi=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(Dt=!0),r.firstContext=null)}function tn(r){var i=r._currentValue;if(wd!==r)if(r={context:r,memoizedValue:i,next:null},fi===null){if(Cl===null)throw Error(n(308));fi=r,Cl.dependencies={lanes:0,firstContext:r}}else fi=fi.next=r;return i}var hs=null;function Ed(r){hs===null?hs=[r]:hs.push(r)}function Qg(r,i,a,d){var p=i.interleaved;return p===null?(a.next=a,Ed(i)):(a.next=p.next,p.next=a),i.interleaved=a,Jn(r,d)}function Jn(r,i){r.lanes|=i;var a=r.alternate;for(a!==null&&(a.lanes|=i),a=r,r=r.return;r!==null;)r.childLanes|=i,a=r.alternate,a!==null&&(a.childLanes|=i),a=r,r=r.return;return a.tag===3?a.stateNode:null}var Tr=!1;function Cd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yg(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Zn(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Pr(r,i,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Le&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,Jn(r,a)}return p=d.interleaved,p===null?(i.next=i,Ed(d)):(i.next=p.next,p.next=i),d.interleaved=i,Jn(r,a)}function Al(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,Bu(r,a)}}function Xg(r,i){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var p=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var A={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};y===null?p=y=A:y=y.next=A,a=a.next}while(a!==null);y===null?p=y=i:y=y.next=i}else p=y=i;a={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function Tl(r,i,a,d){var p=r.updateQueue;Tr=!1;var y=p.firstBaseUpdate,A=p.lastBaseUpdate,N=p.shared.pending;if(N!==null){p.shared.pending=null;var _=N,V=_.next;_.next=null,A===null?y=V:A.next=V,A=_;var q=r.alternate;q!==null&&(q=q.updateQueue,N=q.lastBaseUpdate,N!==A&&(N===null?q.firstBaseUpdate=V:N.next=V,q.lastBaseUpdate=_))}if(y!==null){var G=p.baseState;A=0,q=V=_=null,N=y;do{var H=N.lane,ne=N.eventTime;if((d&H)===H){q!==null&&(q=q.next={eventTime:ne,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var le=r,de=N;switch(H=i,ne=a,de.tag){case 1:if(le=de.payload,typeof le=="function"){G=le.call(ne,G,H);break e}G=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,H=typeof le=="function"?le.call(ne,G,H):le,H==null)break e;G=Y({},G,H);break e;case 2:Tr=!0}}N.callback!==null&&N.lane!==0&&(r.flags|=64,H=p.effects,H===null?p.effects=[N]:H.push(N))}else ne={eventTime:ne,lane:H,tag:N.tag,payload:N.payload,callback:N.callback,next:null},q===null?(V=q=ne,_=G):q=q.next=ne,A|=H;if(N=N.next,N===null){if(N=p.shared.pending,N===null)break;H=N,N=H.next,H.next=null,p.lastBaseUpdate=H,p.shared.pending=null}}while(!0);if(q===null&&(_=G),p.baseState=_,p.firstBaseUpdate=V,p.lastBaseUpdate=q,i=p.shared.interleaved,i!==null){p=i;do A|=p.lane,p=p.next;while(p!==i)}else y===null&&(p.shared.lanes=0);gs|=A,r.lanes=A,r.memoizedState=G}}function Jg(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var d=r[i],p=d.callback;if(p!==null){if(d.callback=null,d=a,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var Oo={},Nn=Er(Oo),jo=Er(Oo),Mo=Er(Oo);function ps(r){if(r===Oo)throw Error(n(174));return r}function Ad(r,i){switch($e(Mo,i),$e(jo,r),$e(Nn,Oo),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Tu(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Tu(i,r)}He(Nn),$e(Nn,i)}function pi(){He(Nn),He(jo),He(Mo)}function Zg(r){ps(Mo.current);var i=ps(Nn.current),a=Tu(i,r.type);i!==a&&($e(jo,r),$e(Nn,a))}function Td(r){jo.current===r&&(He(Nn),He(jo))}var Ge=Er(0);function Pl(r){for(var i=r;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Pd=[];function kd(){for(var r=0;r<Pd.length;r++)Pd[r]._workInProgressVersionPrimary=null;Pd.length=0}var kl=R.ReactCurrentDispatcher,Rd=R.ReactCurrentBatchConfig,ms=0,Qe=null,lt=null,ht=null,Rl=!1,Lo=!1,Io=0,KA=0;function Et(){throw Error(n(321))}function Nd(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!pn(r[a],i[a]))return!1;return!0}function _d(r,i,a,d,p,y){if(ms=y,Qe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,kl.current=r===null||r.memoizedState===null?XA:JA,r=a(d,p),Lo){y=0;do{if(Lo=!1,Io=0,25<=y)throw Error(n(301));y+=1,ht=lt=null,i.updateQueue=null,kl.current=ZA,r=a(d,p)}while(Lo)}if(kl.current=Ol,i=lt!==null&&lt.next!==null,ms=0,ht=lt=Qe=null,Rl=!1,i)throw Error(n(300));return r}function Od(){var r=Io!==0;return Io=0,r}function _n(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?Qe.memoizedState=ht=r:ht=ht.next=r,ht}function nn(){if(lt===null){var r=Qe.alternate;r=r!==null?r.memoizedState:null}else r=lt.next;var i=ht===null?Qe.memoizedState:ht.next;if(i!==null)ht=i,lt=r;else{if(r===null)throw Error(n(310));lt=r,r={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},ht===null?Qe.memoizedState=ht=r:ht=ht.next=r}return ht}
vendor: 5,849 bytes, line 38
38function Do(r,i){return typeof i=="function"?i(r):i}function jd(r){var i=nn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=lt,p=d.baseQueue,y=a.pending;if(y!==null){if(p!==null){var A=p.next;p.next=y.next,y.next=A}d.baseQueue=p=y,a.pending=null}if(p!==null){y=p.next,d=d.baseState;var N=A=null,_=null,V=y;do{var q=V.lane;if((ms&q)===q)_!==null&&(_=_.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),d=V.hasEagerState?V.eagerState:r(d,V.action);else{var G={lane:q,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};_===null?(N=_=G,A=d):_=_.next=G,Qe.lanes|=q,gs|=q}V=V.next}while(V!==null&&V!==y);_===null?A=d:_.next=N,pn(d,i.memoizedState)||(Dt=!0),i.memoizedState=d,i.baseState=A,i.baseQueue=_,a.lastRenderedState=d}if(r=a.interleaved,r!==null){p=r;do y=p.lane,Qe.lanes|=y,gs|=y,p=p.next;while(p!==r)}else p===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function Md(r){var i=nn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=a.dispatch,p=a.pending,y=i.memoizedState;if(p!==null){a.pending=null;var A=p=p.next;do y=r(y,A.action),A=A.next;while(A!==p);pn(y,i.memoizedState)||(Dt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),a.lastRenderedState=y}return[y,d]}function ey(){}function ty(r,i){var a=Qe,d=nn(),p=i(),y=!pn(d.memoizedState,p);if(y&&(d.memoizedState=p,Dt=!0),d=d.queue,Ld(sy.bind(null,a,d,r),[r]),d.getSnapshot!==i||y||ht!==null&&ht.memoizedState.tag&1){if(a.flags|=2048,Bo(9,ry.bind(null,a,d,p,i),void 0,null),pt===null)throw Error(n(349));(ms&30)!==0||ny(a,i,p)}return p}function ny(r,i,a){r.flags|=16384,r={getSnapshot:i,value:a},i=Qe.updateQueue,i===null?(i={lastEffect:null,stores:null},Qe.updateQueue=i,i.stores=[r]):(a=i.stores,a===null?i.stores=[r]:a.push(r))}function ry(r,i,a,d){i.value=a,i.getSnapshot=d,iy(i)&&oy(r)}function sy(r,i,a){return a(function(){iy(i)&&oy(r)})}function iy(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!pn(r,a)}catch{return!0}}function oy(r){var i=Jn(r,1);i!==null&&wn(i,r,1,-1)}function ay(r){var i=_n();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:r},i.queue=r,r=r.dispatch=YA.bind(null,Qe,r),[i.memoizedState,r]}function Bo(r,i,a,d){return r={tag:r,create:i,destroy:a,deps:d,next:null},i=Qe.updateQueue,i===null?(i={lastEffect:null,stores:null},Qe.updateQueue=i,i.lastEffect=r.next=r):(a=i.lastEffect,a===null?i.lastEffect=r.next=r:(d=a.next,a.next=r,r.next=d,i.lastEffect=r)),r}function ly(){return nn().memoizedState}function Nl(r,i,a,d){var p=_n();Qe.flags|=r,p.memoizedState=Bo(1|i,a,void 0,d===void 0?null:d)}function _l(r,i,a,d){var p=nn();d=d===void 0?null:d;var y=void 0;if(lt!==null){var A=lt.memoizedState;if(y=A.destroy,d!==null&&Nd(d,A.deps)){p.memoizedState=Bo(i,a,y,d);return}}Qe.flags|=r,p.memoizedState=Bo(1|i,a,y,d)}function cy(r,i){return Nl(8390656,8,r,i)}function Ld(r,i){return _l(2048,8,r,i)}function uy(r,i){return _l(4,2,r,i)}function dy(r,i){return _l(4,4,r,i)}function fy(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function hy(r,i,a){return a=a!=null?a.concat([r]):null,_l(4,4,fy.bind(null,i,r),a)}function Id(){}function py(r,i){var a=nn();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Nd(i,d[1])?d[0]:(a.memoizedState=[r,i],r)}function my(r,i){var a=nn();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Nd(i,d[1])?d[0]:(r=r(),a.memoizedState=[r,i],r)}function gy(r,i,a){return(ms&21)===0?(r.baseState&&(r.baseState=!1,Dt=!0),r.memoizedState=a):(pn(a,i)||(a=qm(),Qe.lanes|=a,gs|=a,r.baseState=!0),i)}function GA(r,i){var a=Fe;Fe=a!==0&&4>a?a:4,r(!0);var d=Rd.transition;Rd.transition={};try{r(!1),i()}finally{Fe=a,Rd.transition=d}}function yy(){return nn().memoizedState}function QA(r,i,a){var d=_r(r);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},vy(r))wy(i,a);else if(a=Qg(r,i,a,d),a!==null){var p=_t();wn(a,r,d,p),xy(a,i,d)}}function YA(r,i,a){var d=_r(r),p={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(vy(r))wy(i,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var A=i.lastRenderedState,N=y(A,a);if(p.hasEagerState=!0,p.eagerState=N,pn(N,A)){var _=i.interleaved;_===null?(p.next=p,Ed(i)):(p.next=_.next,_.next=p),i.interleaved=p;return}}catch{}finally{}a=Qg(r,i,p,d),a!==null&&(p=_t(),wn(a,r,d,p),xy(a,i,d))}}function vy(r){var i=r.alternate;return r===Qe||i!==null&&i===Qe}function wy(r,i){Lo=Rl=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function xy(r,i,a){if((a&4194240)!==0){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,Bu(r,a)}}var Ol={readContext:tn,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useInsertionEffect:Et,useLayoutEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useMutableSource:Et,useSyncExternalStore:Et,useId:Et,unstable_isNewReconciler:!1},XA={readContext:tn,useCallback:function(r,i){return _n().memoizedState=[r,i===void 0?null:i],r},useContext:tn,useEffect:cy,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,Nl(4194308,4,fy.bind(null,i,r),a)},useLayoutEffect:function(r,i){return Nl(4194308,4,r,i)},useInsertionEffect:function(r,i){return Nl(4,2,r,i)},useMemo:function(r,i){var a=_n();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var d=_n();return i=a!==void 0?a(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=QA.bind(null,Qe,r),[d.memoizedState,r]}
vendor: 5,240 bytes, lines 38-40
38,useRef:function(r){var i=_n();return r={current:r},i.memoizedState=r},useState:ay,useDebugValue:Id,useDeferredValue:function(r){return _n().memoizedState=r},useTransition:function(){var r=ay(!1),i=r[0];return r=GA.bind(null,r[1]),_n().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var d=Qe,p=_n();if(Ke){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),pt===null)throw Error(n(349));(ms&30)!==0||ny(d,i,a)}p.memoizedState=a;var y={value:a,getSnapshot:i};return p.queue=y,cy(sy.bind(null,d,y,r),[r]),d.flags|=2048,Bo(9,ry.bind(null,d,y,a,i),void 0,null),a},useId:function(){var r=_n(),i=pt.identifierPrefix;if(Ke){var a=Xn,d=Yn;a=(d&~(1<<32-hn(d)-1)).toString(32)+a,i=":"+i+"R"+a,a=Io++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=KA++,i=":"+i+"r"+a.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},JA={readContext:tn,useCallback:py,useContext:tn,useEffect:Ld,useImperativeHandle:hy,useInsertionEffect:uy,useLayoutEffect:dy,useMemo:my,useReducer:jd,useRef:ly,useState:function(){return jd(Do)},useDebugValue:Id,useDeferredValue:function(r){var i=nn();return gy(i,lt.memoizedState,r)},useTransition:function(){var r=jd(Do)[0],i=nn().memoizedState;return[r,i]},useMutableSource:ey,useSyncExternalStore:ty,useId:yy,unstable_isNewReconciler:!1},ZA={readContext:tn,useCallback:py,useContext:tn,useEffect:Ld,useImperativeHandle:hy,useInsertionEffect:uy,useLayoutEffect:dy,useMemo:my,useReducer:Md,useRef:ly,useState:function(){return Md(Do)},useDebugValue:Id,useDeferredValue:function(r){var i=nn();return lt===null?i.memoizedState=r:gy(i,lt.memoizedState,r)},useTransition:function(){var r=Md(Do)[0],i=nn().memoizedState;return[r,i]},useMutableSource:ey,useSyncExternalStore:ty,useId:yy,unstable_isNewReconciler:!1};function gn(r,i){if(r&&r.defaultProps){i=Y({},i),r=r.defaultProps;for(var a in r)i[a]===void 0&&(i[a]=r[a]);return i}return i}function Dd(r,i,a,d){i=r.memoizedState,a=a(d,i),a=a==null?i:Y({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var jl={isMounted:function(r){return(r=r._reactInternals)?ls(r)===r:!1},enqueueSetState:function(r,i,a){r=r._reactInternals;var d=_t(),p=_r(r),y=Zn(d,p);y.payload=i,a!=null&&(y.callback=a),i=Pr(r,y,p),i!==null&&(wn(i,r,p,d),Al(i,r,p))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var d=_t(),p=_r(r),y=Zn(d,p);y.tag=1,y.payload=i,a!=null&&(y.callback=a),i=Pr(r,y,p),i!==null&&(wn(i,r,p,d),Al(i,r,p))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=_t(),d=_r(r),p=Zn(a,d);p.tag=2,i!=null&&(p.callback=i),i=Pr(r,p,d),i!==null&&(wn(i,r,d,a),Al(i,r,d))}};function Sy(r,i,a,d,p,y,A){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,A):i.prototype&&i.prototype.isPureReactComponent?!Co(a,d)||!Co(p,y):!0}function by(r,i,a){var d=!1,p=Cr,y=i.contextType;return typeof y=="object"&&y!==null?y=tn(y):(p=It(i)?us:bt.current,d=i.contextTypes,y=(d=d!=null)?ai(r,p):Cr),i=new i(a,y),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=jl,r.stateNode=i,i._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=y),i}function Ey(r,i,a,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,d),i.state!==r&&jl.enqueueReplaceState(i,i.state,null)}function Bd(r,i,a,d){var p=r.stateNode;p.props=a,p.state=r.memoizedState,p.refs={},Cd(r);var y=i.contextType;typeof y=="object"&&y!==null?p.context=tn(y):(y=It(i)?us:bt.current,p.context=ai(r,y)),p.state=r.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(Dd(r,i,y,a),p.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&jl.enqueueReplaceState(p,p.state,null),Tl(r,a,p,d),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function mi(r,i){try{var a="",d=i;do a+=be(d),d=d.return;while(d);var p=a}catch(y){p=`
39Error generating stack: `+y.message+`
40`+y.stack}return{value:r,source:i,stack:p,digest:null}}function Fd(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function Vd(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var eT=typeof WeakMap=="function"?WeakMap:Map;function Cy(r,i,a){a=Zn(-1,a),a.tag=3,a.payload={element:null};var d=i.value;return a.callback=function(){Vl||(Vl=!0,tf=d),Vd(r,i)},a}function Ay(r,i,a){a=Zn(-1,a),a.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var p=i.value;a.payload=function(){return d(p)},a.callback=function(){Vd(r,i)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(a.callback=function(){Vd(r,i),typeof d!="function"&&(Rr===null?Rr=new Set([this]):Rr.add(this));var A=i.stack;this.componentDidCatch(i.value,{componentStack:A!==null?A:""})}),a}function Ty(r,i,a){var d=r.pingCache;
vendor: 34,429 bytes, line 40
40if(d===null){d=r.pingCache=new eT;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(a)||(p.add(a),r=pT.bind(null,r,i,a),i.then(r,r))}function Py(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function ky(r,i,a,d,p){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=Zn(-1,1),i.tag=2,Pr(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var tT=R.ReactCurrentOwner,Dt=!1;function Nt(r,i,a,d){i.child=r===null?Gg(i,null,a,d):di(i,r.child,a,d)}function Ry(r,i,a,d,p){a=a.render;var y=i.ref;return hi(i,p),d=_d(r,i,a,d,y,p),a=Od(),r!==null&&!Dt?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,er(r,i,p)):(Ke&&a&&pd(i),i.flags|=1,Nt(r,i,d,p),i.child)}function Ny(r,i,a,d,p){if(r===null){var y=a.type;return typeof y=="function"&&!cf(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=y,_y(r,i,y,d,p)):(r=ql(a.type,null,d,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(y=r.child,(r.lanes&p)===0){var A=y.memoizedProps;if(a=a.compare,a=a!==null?a:Co,a(A,d)&&r.ref===i.ref)return er(r,i,p)}return i.flags|=1,r=jr(y,d),r.ref=i.ref,r.return=i,i.child=r}function _y(r,i,a,d,p){if(r!==null){var y=r.memoizedProps;if(Co(y,d)&&r.ref===i.ref)if(Dt=!1,i.pendingProps=d=y,(r.lanes&p)!==0)(r.flags&131072)!==0&&(Dt=!0);else return i.lanes=r.lanes,er(r,i,p)}return Ud(r,i,a,d,p)}function Oy(r,i,a){var d=i.pendingProps,p=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(yi,Gt),Gt|=a;else{if((a&1073741824)===0)return r=y!==null?y.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,$e(yi,Gt),Gt|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:a,$e(yi,Gt),Gt|=d}else y!==null?(d=y.baseLanes|a,i.memoizedState=null):d=a,$e(yi,Gt),Gt|=d;return Nt(r,i,p,a),i.child}function jy(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function Ud(r,i,a,d,p){var y=It(a)?us:bt.current;return y=ai(i,y),hi(i,p),a=_d(r,i,a,d,y,p),d=Od(),r!==null&&!Dt?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,er(r,i,p)):(Ke&&d&&pd(i),i.flags|=1,Nt(r,i,a,p),i.child)}function My(r,i,a,d,p){if(It(a)){var y=!0;yl(i)}else y=!1;if(hi(i,p),i.stateNode===null)Ll(r,i),by(i,a,d),Bd(i,a,d,p),d=!0;else if(r===null){var A=i.stateNode,N=i.memoizedProps;A.props=N;var _=A.context,V=a.contextType;typeof V=="object"&&V!==null?V=tn(V):(V=It(a)?us:bt.current,V=ai(i,V));var q=a.getDerivedStateFromProps,G=typeof q=="function"||typeof A.getSnapshotBeforeUpdate=="function";G||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(N!==d||_!==V)&&Ey(i,A,d,V),Tr=!1;var H=i.memoizedState;A.state=H,Tl(i,d,A,p),_=i.memoizedState,N!==d||H!==_||Lt.current||Tr?(typeof q=="function"&&(Dd(i,a,q,d),_=i.memoizedState),(N=Tr||Sy(i,a,N,d,H,_,V))?(G||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(i.flags|=4194308)):(typeof A.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=_),A.props=d,A.state=_,A.context=V,d=N):(typeof A.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{A=i.stateNode,Yg(r,i),N=i.memoizedProps,V=i.type===i.elementType?N:gn(i.type,N),A.props=V,G=i.pendingProps,H=A.context,_=a.contextType,typeof _=="object"&&_!==null?_=tn(_):(_=It(a)?us:bt.current,_=ai(i,_));var ne=a.getDerivedStateFromProps;(q=typeof ne=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(N!==G||H!==_)&&Ey(i,A,d,_),Tr=!1,H=i.memoizedState,A.state=H,Tl(i,d,A,p);var le=i.memoizedState;N!==G||H!==le||Lt.current||Tr?(typeof ne=="function"&&(Dd(i,a,ne,d),le=i.memoizedState),(V=Tr||Sy(i,a,V,d,H,le,_)||!1)?(q||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(d,le,_),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(d,le,_)),typeof A.componentDidUpdate=="function"&&(i.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof A.componentDidUpdate!="function"||N===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||N===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=le),A.props=d,A.state=le,A.context=_,d=V):(typeof A.componentDidUpdate!="function"||N===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||N===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),d=!1)}return zd(r,i,a,d,y,p)}function zd(r,i,a,d,p,y){jy(r,i);var A=(i.flags&128)!==0;if(!d&&!A)return p&&Fg(i,a,!1),er(r,i,y);d=i.stateNode,tT.current=i;var N=A&&typeof a.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,r!==null&&A?(i.child=di(i,r.child,null,y),i.child=di(i,null,N,y)):Nt(r,i,N,y),i.memoizedState=d.state,p&&Fg(i,a,!0),i.child}function Ly(r){var i=r.stateNode;i.pendingContext?Dg(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Dg(r,i.context,!1),Ad(r,i.containerInfo)}function Iy(r,i,a,d,p){return ui(),vd(p),i.flags|=256,Nt(r,i,a,d),i.child}var $d={dehydrated:null,treeContext:null,retryLane:0};function Wd(r){return{baseLanes:r,cachePool:null,transitions:null}}function Dy(r,i,a){var d=i.pendingProps,p=Ge.current,y=!1,A=(i.flags&128)!==0,N;if((N=A)||(N=r!==null&&r.memoizedState===null?!1:(p&2)!==0),N?(y=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),$e(Ge,p&1),r===null)return yd(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(A=d.children,r=d.fallback,y?(d=i.mode,y=i.child,A={mode:"hidden",children:A},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=A):y=Kl(A,d,0,null),r=xs(r,d,a,null),y.return=i,r.return=i,y.sibling=r,i.child=y,i.child.memoizedState=Wd(a),i.memoizedState=$d,r):Hd(i,A));if(p=r.memoizedState,p!==null&&(N=p.dehydrated,N!==null))return nT(r,i,A,d,N,p,a);if(y){y=d.fallback,A=i.mode,p=r.child,N=p.sibling;var _={mode:"hidden",children:d.children};return(A&1)===0&&i.child!==p?(d=i.child,d.childLanes=0,d.pendingProps=_,i.deletions=null):(d=jr(p,_),d.subtreeFlags=p.subtreeFlags&14680064),N!==null?y=jr(N,y):(y=xs(y,A,a,null),y.flags|=2),y.return=i,d.return=i,d.sibling=y,i.child=d,d=y,y=i.child,A=r.child.memoizedState,A=A===null?Wd(a):{baseLanes:A.baseLanes|a,cachePool:null,transitions:A.transitions},y.memoizedState=A,y.childLanes=r.childLanes&~a,i.memoizedState=$d,d}return y=r.child,r=y.sibling,d=jr(y,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=a),d.return=i,d.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=d,i.memoizedState=null,d}function Hd(r,i){return i=Kl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Ml(r,i,a,d){return d!==null&&vd(d),di(i,r.child,null,a),r=Hd(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function nT(r,i,a,d,p,y,A){if(a)return i.flags&256?(i.flags&=-257,d=Fd(Error(n(422))),Ml(r,i,A,d)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(y=d.fallback,p=i.mode,d=Kl({mode:"visible",children:d.children},p,0,null),y=xs(y,p,A,null),y.flags|=2,d.return=i,y.return=i,d.sibling=y,i.child=d,(i.mode&1)!==0&&di(i,r.child,null,A),i.child.memoizedState=Wd(A),i.memoizedState=$d,y);if((i.mode&1)===0)return Ml(r,i,A,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var N=d.dgst;return d=N,y=Error(n(419)),d=Fd(y,d,void 0),Ml(r,i,A,d)}if(N=(A&r.childLanes)!==0,Dt||N){if(d=pt,d!==null){switch(A&-A){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|A))!==0?0:p,p!==0&&p!==y.retryLane&&(y.retryLane=p,Jn(r,p),wn(d,r,p,-1))}return lf(),d=Fd(Error(n(421))),Ml(r,i,A,d)}return p.data==="$?"?(i.flags|=128,i.child=r.child,i=mT.bind(null,r),p._reactRetry=i,null):(r=y.treeContext,Kt=br(p.nextSibling),qt=i,Ke=!0,mn=null,r!==null&&(Zt[en++]=Yn,Zt[en++]=Xn,Zt[en++]=ds,Yn=r.id,Xn=r.overflow,ds=i),i=Hd(i,d.children),i.flags|=4096,i)}function By(r,i,a){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),bd(r.return,i,a)}function qd(r,i,a,d,p){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:p}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=a,y.tailMode=p)}function Fy(r,i,a){var d=i.pendingProps,p=d.revealOrder,y=d.tail;if(Nt(r,i,d.children,a),d=Ge.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&By(r,a,i);else if(r.tag===19)By(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if($e(Ge,d),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(a=i.child,p=null;a!==null;)r=a.alternate,r!==null&&Pl(r)===null&&(p=a),a=a.sibling;a=p,a===null?(p=i.child,i.child=null):(p=a.sibling,a.sibling=null),qd(i,!1,p,a,y);break;case"backwards":for(a=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&Pl(r)===null){i.child=p;break}r=p.sibling,p.sibling=a,a=p,p=r}qd(i,!0,a,null,y);break;case"together":qd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Ll(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function er(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),gs|=i.lanes,(a&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,a=jr(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=jr(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function rT(r,i,a){switch(i.tag){case 3:Ly(i),ui();break;case 5:Zg(i);break;case 1:It(i.type)&&yl(i);break;case 4:Ad(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,p=i.memoizedProps.value;$e(El,d._currentValue),d._currentValue=p;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?($e(Ge,Ge.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?Dy(r,i,a):($e(Ge,Ge.current&1),r=er(r,i,a),r!==null?r.sibling:null);$e(Ge,Ge.current&1);break;case 19:if(d=(a&i.childLanes)!==0,(r.flags&128)!==0){if(d)return Fy(r,i,a);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),$e(Ge,Ge.current),d)break;return null;case 22:case 23:return i.lanes=0,Oy(r,i,a)}return er(r,i,a)}var Vy,Kd,Uy,zy;Vy=function(r,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Kd=function(){},Uy=function(r,i,a,d){var p=r.memoizedProps;if(p!==d){r=i.stateNode,ps(Nn.current);var y=null;switch(a){case"input":p=Mt(r,p),d=Mt(r,d),y=[];break;case"select":p=Y({},p,{value:void 0}),d=Y({},d,{value:void 0}),y=[];break;case"textarea":p=Au(r,p),d=Au(r,d),y=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=pl)}Pu(a,d);var A;a=null;for(V in p)if(!d.hasOwnProperty(V)&&p.hasOwnProperty(V)&&p[V]!=null)if(V==="style"){var N=p[V];for(A in N)N.hasOwnProperty(A)&&(a||(a={}),a[A]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(o.hasOwnProperty(V)?y||(y=[]):(y=y||[]).push(V,null));for(V in d){var _=d[V];if(N=p!=null?p[V]:void 0,d.hasOwnProperty(V)&&_!==N&&(_!=null||N!=null))if(V==="style")if(N){for(A in N)!N.hasOwnProperty(A)||_&&_.hasOwnProperty(A)||(a||(a={}),a[A]="");for(A in _)_.hasOwnProperty(A)&&N[A]!==_[A]&&(a||(a={}),a[A]=_[A])}else a||(y||(y=[]),y.push(V,a)),a=_;else V==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,N=N?N.__html:void 0,_!=null&&N!==_&&(y=y||[]).push(V,_)):V==="children"?typeof _!="string"&&typeof _!="number"||(y=y||[]).push(V,""+_):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(o.hasOwnProperty(V)?(_!=null&&V==="onScroll"&&We("scroll",r),y||N===_||(y=[])):(y=y||[]).push(V,_))}a&&(y=y||[]).push("style",a);var V=y;(i.updateQueue=V)&&(i.flags|=4)}},zy=function(r,i,a,d){a!==d&&(i.flags|=4)};function Fo(r,i){if(!Ke)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Ct(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,d=0;if(i)for(var p=r.child;p!==null;)a|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)a|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=a,i}function sT(r,i,a){var d=i.pendingProps;switch(md(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(i),null;case 1:return It(i.type)&&gl(),Ct(i),null;case 3:return d=i.stateNode,pi(),He(Lt),He(bt),kd(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(Sl(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,mn!==null&&(sf(mn),mn=null))),Kd(r,i),Ct(i),null;case 5:Td(i);var p=ps(Mo.current);if(a=i.type,r!==null&&i.stateNode!=null)Uy(r,i,a,d,p),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return Ct(i),null}if(r=ps(Nn.current),Sl(i)){d=i.stateNode,a=i.type;var y=i.memoizedProps;switch(d[Rn]=i,d[Ro]=y,r=(i.mode&1)!==0,a){case"dialog":We("cancel",d),We("close",d);break;case"iframe":case"object":case"embed":We("load",d);break;case"video":case"audio":for(p=0;p<To.length;p++)We(To[p],d);break;case"source":We("error",d);break;case"img":case"image":case"link":We("error",d),We("load",d);break;case"details":We("toggle",d);break;case"input":hr(d,y),We("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},We("invalid",d);break;case"textarea":Am(d,y),We("invalid",d)}Pu(a,y),p=null;for(var A in y)if(y.hasOwnProperty(A)){var N=y[A];A==="children"?typeof N=="string"?d.textContent!==N&&(y.suppressHydrationWarning!==!0&&hl(d.textContent,N,r),p=["children",N]):typeof N=="number"&&d.textContent!==""+N&&(y.suppressHydrationWarning!==!0&&hl(d.textContent,N,r),p=["children",""+N]):o.hasOwnProperty(A)&&N!=null&&A==="onScroll"&&We("scroll",d)}switch(a){case"input":Ne(d),Ha(d,y,!0);break;case"textarea":Ne(d),Pm(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=pl)}d=p,i.updateQueue=d,d!==null&&(i.flags|=4)}else{A=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=km(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=A.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=A.createElement(a,{is:d.is}):(r=A.createElement(a),a==="select"&&(A=r,d.multiple?A.multiple=!0:d.size&&(A.size=d.size))):r=A.createElementNS(r,a),r[Rn]=i,r[Ro]=d,Vy(r,i,!1,!1),i.stateNode=r;e:{switch(A=ku(a,d),a){case"dialog":We("cancel",r),We("close",r),p=d;break;case"iframe":case"object":case"embed":We("load",r),p=d;break;case"video":case"audio":for(p=0;p<To.length;p++)We(To[p],r);p=d;break;case"source":We("error",r),p=d;break;case"img":case"image":case"link":We("error",r),We("load",r),p=d;break;case"details":We("toggle",r),p=d;break;case"input":hr(r,d),p=Mt(r,d),We("invalid",r);break;case"option":p=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},p=Y({},d,{value:void 0}),We("invalid",r);break;case"textarea":Am(r,d),p=Au(r,d),We("invalid",r);break;default:p=d}Pu(a,p),N=p;for(y in N)if(N.hasOwnProperty(y)){var _=N[y];y==="style"?_m(r,_):y==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,_!=null&&Rm(r,_)):y==="children"?typeof _=="string"?(a!=="textarea"||_!=="")&&oo(r,_):typeof _=="number"&&oo(r,""+_):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(o.hasOwnProperty(y)?_!=null&&y==="onScroll"&&We("scroll",r):_!=null&&P(r,y,_,A))}switch(a){case"input":Ne(r),Ha(r,d,!1);break;case"textarea":Ne(r),Pm(r);break;case"option":d.value!=null&&r.setAttribute("value",""+ge(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?Qs(r,!!d.multiple,y,!1):d.defaultValue!=null&&Qs(r,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=pl)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Ct(i),null;case 6:if(r&&i.stateNode!=null)zy(r,i,r.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(a=ps(Mo.current),ps(Nn.current),Sl(i)){if(d=i.stateNode,a=i.memoizedProps,d[Rn]=i,(y=d.nodeValue!==a)&&(r=qt,r!==null))switch(r.tag){case 3:hl(d.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&hl(d.nodeValue,a,(r.mode&1)!==0)}y&&(i.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Rn]=i,i.stateNode=d}return Ct(i),null;case 13:if(He(Ge),d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ke&&Kt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Hg(),ui(),i.flags|=98560,y=!1;else if(y=Sl(i),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Rn]=i}else ui(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ct(i),y=!1}else mn!==null&&(sf(mn),mn=null),y=!0;if(!y)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Ge.current&1)!==0?ct===0&&(ct=3):lf())),i.updateQueue!==null&&(i.flags|=4),Ct(i),null);case 4:return pi(),Kd(r,i),r===null&&Po(i.stateNode.containerInfo),Ct(i),null;case 10:return Sd(i.type._context),Ct(i),null;case 17:return It(i.type)&&gl(),Ct(i),null;case 19:if(He(Ge),y=i.memoizedState,y===null)return Ct(i),null;if(d=(i.flags&128)!==0,A=y.rendering,A===null)if(d)Fo(y,!1);else{if(ct!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(A=Pl(r),A!==null){for(i.flags|=128,Fo(y,!1),d=A.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=a,a=i.child;a!==null;)y=a,r=d,y.flags&=14680066,A=y.alternate,A===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=A.childLanes,y.lanes=A.lanes,y.child=A.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=A.memoizedProps,y.memoizedState=A.memoizedState,y.updateQueue=A.updateQueue,y.type=A.type,r=A.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return $e(Ge,Ge.current&1|2),i.child}r=r.sibling}y.tail!==null&&et()>vi&&(i.flags|=128,d=!0,Fo(y,!1),i.lanes=4194304)}else{if(!d)if(r=Pl(A),r!==null){if(i.flags|=128,d=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Fo(y,!0),y.tail===null&&y.tailMode==="hidden"&&!A.alternate&&!Ke)return Ct(i),null}else 2*et()-y.renderingStartTime>vi&&a!==1073741824&&(i.flags|=128,d=!0,Fo(y,!1),i.lanes=4194304);y.isBackwards?(A.sibling=i.child,i.child=A):(a=y.last,a!==null?a.sibling=A:i.child=A,y.last=A)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=et(),i.sibling=null,a=Ge.current,$e(Ge,d?a&1|2:a&1),i):(Ct(i),null);case 22:case 23:return af(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(Gt&1073741824)!==0&&(Ct(i),i.subtreeFlags&6&&(i.flags|=8192)):Ct(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function iT(r,i){switch(md(i),i.tag){case 1:return It(i.type)&&gl(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return pi(),He(Lt),He(bt),kd(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return Td(i),null;case 13:if(He(Ge),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ui()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return He(Ge),null;case 4:return pi(),null;case 10:return Sd(i.type._context),null;case 22:case 23:return af(),null;case 24:return null;default:return null}}var Il=!1,At=!1,oT=typeof WeakSet=="function"?WeakSet:Set,se=null;function gi(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Xe(r,i,d)}else a.current=null}function Gd(r,i,a){try{a()}catch(d){Xe(r,i,d)}}var $y=!1;function aT(r,i){if(od=nl,r=Sg(),Ju(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var p=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var A=0,N=-1,_=-1,V=0,q=0,G=r,H=null;t:for(;;){for(var ne;G!==a||p!==0&&G.nodeType!==3||(N=A+p),G!==y||d!==0&&G.nodeType!==3||(_=A+d),G.nodeType===3&&(A+=G.nodeValue.length),(ne=G.firstChild)!==null;)H=G,G=ne;for(;;){if(G===r)break t;if(H===a&&++V===p&&(N=A),H===y&&++q===d&&(_=A),(ne=G.nextSibling)!==null)break;G=H,H=G.parentNode}G=ne}a=N===-1||_===-1?null:{start:N,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(ad={focusedElem:r,selectionRange:a},nl=!1,se=i;se!==null;)if(i=se,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,se=r;else for(;se!==null;){i=se;try{var le=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(le!==null){var de=le.memoizedProps,tt=le.memoizedState,B=i.stateNode,M=B.getSnapshotBeforeUpdate(i.elementType===i.type?de:gn(i.type,de),tt);B.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var F=i.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(X){Xe(i,i.return,X)}if(r=i.sibling,r!==null){r.return=i.return,se=r;break}se=i.return}return le=$y,$y=!1,le}function Vo(r,i,a){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var y=p.destroy;p.destroy=void 0,y!==void 0&&Gd(i,a,y)}p=p.next}while(p!==d)}}function Dl(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var d=a.create;a.destroy=d()}a=a.next}while(a!==i)}}function Qd(r){var i=r.ref;if(i!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof i=="function"?i(r):i.current=r}}function Wy(r){var i=r.alternate;i!==null&&(r.alternate=null,Wy(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Rn],delete i[Ro],delete i[dd],delete i[$A],delete i[WA])),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 Hy(r){return r.tag===5||r.tag===3||r.tag===4}function qy(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Hy(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 Yd(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=pl));else if(d!==4&&(r=r.child,r!==null))for(Yd(r,i,a),r=r.sibling;r!==null;)Yd(r,i,a),r=r.sibling}function Xd(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(Xd(r,i,a),r=r.sibling;r!==null;)Xd(r,i,a),r=r.sibling}var yt=null,yn=!1;function kr(r,i,a){for(a=a.child;a!==null;)Ky(r,i,a),a=a.sibling}function Ky(r,i,a){if(kn&&typeof kn.onCommitFiberUnmount=="function")try{kn.onCommitFiberUnmount(Ya,a)}catch{}switch(a.tag){case 5:At||gi(a,i);case 6:var d=yt,p=yn;yt=null,kr(r,i,a),yt=d,yn=p,yt!==null&&(yn?(r=yt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):yt.removeChild(a.stateNode));break;case 18:yt!==null&&(yn?(r=yt,a=a.stateNode,r.nodeType===8?ud(r.parentNode,a):r.nodeType===1&&ud(r,a),vo(r)):ud(yt,a.stateNode));break;case 4:d=yt,p=yn,yt=a.stateNode.containerInfo,yn=!0,kr(r,i,a),yt=d,yn=p;break;case 0:case 11:case 14:case 15:if(!At&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var y=p,A=y.destroy;y=y.tag,A!==void 0&&((y&2)!==0||(y&4)!==0)&&Gd(a,i,A),p=p.next}while(p!==d)}kr(r,i,a);break;case 1:if(!At&&(gi(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(N){Xe(a,i,N)}kr(r,i,a);break;case 21:kr(r,i,a);break;case 22:a.mode&1?(At=(d=At)||a.memoizedState!==null,kr(r,i,a),At=d):kr(r,i,a);break;default:kr(r,i,a)}}function Gy(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new oT),i.forEach(function(d){var p=gT.bind(null,r,d);a.has(d)||(a.add(d),d.then(p,p))})}}function vn(r,i){var a=i.deletions;if(a!==null)for(var d=0;d<a.length;d++){var p=a[d];try{var y=r,A=i,N=A;e:for(;N!==null;){switch(N.tag){case 5:yt=N.stateNode,yn=!1;break e;case 3:yt=N.stateNode.containerInfo,yn=!0;break e;case 4:yt=N.stateNode.containerInfo,yn=!0;break e}N=N.return}if(yt===null)throw Error(n(160));Ky(y,A,p),yt=null,yn=!1;var _=p.alternate;_!==null&&(_.return=null),p.return=null}catch(V){Xe(p,i,V)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Qy(i,r),i=i.sibling}function Qy(r,i){var a=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(vn(i,r),On(r),d&4){try{Vo(3,r,r.return),Dl(3,r)}catch(de){Xe(r,r.return,de)}try{Vo(5,r,r.return)}catch(de){Xe(r,r.return,de)}}break;case 1:vn(i,r),On(r),d&512&&a!==null&&gi(a,a.return);break;case 5:if(vn(i,r),On(r),d&512&&a!==null&&gi(a,a.return),r.flags&32){var p=r.stateNode;try{oo(p,"")}catch(de){Xe(r,r.return,de)}}if(d&4&&(p=r.stateNode,p!=null)){var y=r.memoizedProps,A=a!==null?a.memoizedProps:y,N=r.type,_=r.updateQueue;if(r.updateQueue=null,_!==null)try{N==="input"&&y.type==="radio"&&y.name!=null&&pr(p,y),ku(N,A);var V=ku(N,y);for(A=0;A<_.length;A+=2){var q=_[A],G=_[A+1];q==="style"?_m(p,G):q==="dangerouslySetInnerHTML"?Rm(p,G):q==="children"?oo(p,G):P(p,q,G,V)}switch(N){case"input":Kn(p,y);break;case"textarea":Tm(p,y);break;case"select":var H=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!y.multiple;var ne=y.value;ne!=null?Qs(p,!!y.multiple,ne,!1):H!==!!y.multiple&&(y.defaultValue!=null?Qs(p,!!y.multiple,y.defaultValue,!0):Qs(p,!!y.multiple,y.multiple?[]:"",!1))}p[Ro]=y}catch(de){Xe(r,r.return,de)}}break;case 6:if(vn(i,r),On(r),d&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,y=r.memoizedProps;try{p.nodeValue=y}catch(de){Xe(r,r.return,de)}}break;case 3:if(vn(i,r),On(r),d&4&&a!==null&&a.memoizedState.isDehydrated)try{vo(i.containerInfo)}catch(de){Xe(r,r.return,de)}break;case 4:vn(i,r),On(r);break;case 13:vn(i,r),On(r),p=r.child,p.flags&8192&&(y=p.memoizedState!==null,p.stateNode.isHidden=y,!y||p.alternate!==null&&p.alternate.memoizedState!==null||(ef=et())),d&4&&Gy(r);break;case 22:if(q=a!==null&&a.memoizedState!==null,r.mode&1?(At=(V=At)||q,vn(i,r),At=V):vn(i,r),On(r),d&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!q&&(r.mode&1)!==0)for(se=r,q=r.child;q!==null;){for(G=se=q;se!==null;){switch(H=se,ne=H.child,H.tag){case 0:case 11:case 14:case 15:Vo(4,H,H.return);break;case 1:gi(H,H.return);var le=H.stateNode;if(typeof le.componentWillUnmount=="function"){d=H,a=H.return;try{i=d,le.props=i.memoizedProps,le.state=i.memoizedState,le.componentWillUnmount()}catch(de){Xe(d,a,de)}}break;case 5:gi(H,H.return);break;case 22:if(H.memoizedState!==null){Jy(G);continue}}ne!==null?(ne.return=H,se=ne):Jy(G)}q=q.sibling}e:for(q=null,G=r;;){if(G.tag===5){if(q===null){q=G;try{p=G.stateNode,V?(y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(N=G.stateNode,_=G.memoizedProps.style,A=_!=null&&_.hasOwnProperty("display")?_.display:null,N.style.display=Nm("display",A))}catch(de){Xe(r,r.return,de)}}}else if(G.tag===6){if(q===null)try{G.stateNode.nodeValue=V?"":G.memoizedProps}catch(de){Xe(r,r.return,de)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===r)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===r)break e;for(;G.sibling===null;){if(G.return===null||G.return===r)break e;q===G&&(q=null),G=G.return}q===G&&(q=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:vn(i,r),On(r),d&4&&Gy(r);break;case 21:break;default:vn(i,r),On(r)}}function On(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(Hy(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(oo(p,""),d.flags&=-33);var y=qy(r);Xd(r,y,p);break;case 3:case 4:var A=d.stateNode.containerInfo,N=qy(r);Yd(r,N,A);break;default:throw Error(n(161))}}catch(_){Xe(r,r.return,_)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function lT(r,i,a){se=r,Yy(r)}function Yy(r,i,a){for(var d=(r.mode&1)!==0;se!==null;){var p=se,y=p.child;if(p.tag===22&&d){var A=p.memoizedState!==null||Il;if(!A){var N=p.alternate,_=N!==null&&N.memoizedState!==null||At;N=Il;var V=At;if(Il=A,(At=_)&&!V)for(se=p;se!==null;)A=se,_=A.child,A.tag===22&&A.memoizedState!==null?Zy(p):_!==null?(_.return=A,se=_):Zy(p);for(;y!==null;)se=y,Yy(y),y=y.sibling;se=p,Il=N,At=V}Xy(r)}else(p.subtreeFlags&8772)!==0&&y!==null?(y.return=p,se=y):Xy(r)}}function Xy(r){for(;se!==null;){var i=se;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:At||Dl(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!At)if(a===null)d.componentDidMount();else{var p=i.elementType===i.type?a.memoizedProps:gn(i.type,a.memoizedProps);d.componentDidUpdate(p,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=i.updateQueue;y!==null&&Jg(i,y,d);break;case 3:var A=i.updateQueue;if(A!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Jg(i,A,a)}break;case 5:var N=i.stateNode;if(a===null&&i.flags&4){a=N;var _=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":_.autoFocus&&a.focus();break;case"img":_.src&&(a.src=_.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var V=i.alternate;if(V!==null){var q=V.memoizedState;if(q!==null){var G=q.dehydrated;G!==null&&vo(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}At||i.flags&512&&Qd(i)}catch(H){Xe(i,i.return,H)}}if(i===r){se=null;break}if(a=i.sibling,a!==null){a.return=i.return,se=a;break}se=i.return}}function Jy(r){for(;se!==null;){var i=se;if(i===r){se=null;break}var a=i.sibling;if(a!==null){a.return=i.return,se=a;break}se=i.return}}function Zy(r){for(;se!==null;){var i=se;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{Dl(4,i)}catch(_){Xe(i,a,_)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var p=i.return;try{d.componentDidMount()}catch(_){Xe(i,p,_)}}var y=i.return;try{Qd(i)}catch(_){Xe(i,y,_)}break;case 5:var A=i.return;try{Qd(i)}catch(_){Xe(i,A,_)}}}catch(_){Xe(i,i.return,_)}if(i===r){se=null;break}var N=i.sibling;if(N!==null){N.return=i.return,se=N;break}se=i.return}}var cT=Math.ceil,Bl=R.ReactCurrentDispatcher,Jd=R.ReactCurrentOwner,rn=R.ReactCurrentBatchConfig,Le=0,pt=null,st=null,vt=0,Gt=0,yi=Er(0),ct=0,Uo=null,gs=0,Fl=0,Zd=0,zo=null,Bt=null,ef=0,vi=1/0,tr=null,Vl=!1,tf=null,Rr=null,Ul=!1,Nr=null,zl=0,$o=0,nf=null,$l=-1,Wl=0;function _t(){return(Le&6)!==0?et():$l!==-1?$l:$l=et()}function _r(r){return(r.mode&1)===0?1:(Le&2)!==0&&vt!==0?vt&-vt:qA.transition!==null?(Wl===0&&(Wl=qm()),Wl):(r=Fe,r!==0||(r=window.event,r=r===void 0?16:tg(r.type)),r)}function wn(r,i,a,d){if(50<$o)throw $o=0,nf=null,Error(n(185));ho(r,a,d),((Le&2)===0||r!==pt)&&(r===pt&&((Le&2)===0&&(Fl|=a),ct===4&&Or(r,vt)),Ft(r,d),a===1&&Le===0&&(i.mode&1)===0&&(vi=et()+500,vl&&Ar()))}function Ft(r,i){var a=r.callbackNode;q1(r,i);var d=Za(r,r===pt?vt:0);if(d===0)a!==null&&$m(a),r.callbackNode=null,r.callbackPriority=0;else if(i=d&-d,r.callbackPriority!==i){if(a!=null&&$m(a),i===1)r.tag===0?HA(tv.bind(null,r)):Vg(tv.bind(null,r)),UA(function(){(Le&6)===0&&Ar()}),a=null;else{switch(Km(d)){case 1:a=Lu;break;case 4:a=Wm;break;case 16:a=Qa;break;case 536870912:a=Hm;break;default:a=Qa}a=cv(a,ev.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function ev(r,i){if($l=-1,Wl=0,(Le&6)!==0)throw Error(n(327));var a=r.callbackNode;if(wi()&&r.callbackNode!==a)return null;var d=Za(r,r===pt?vt:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||i)i=Hl(r,d);else{i=d;var p=Le;Le|=2;var y=rv();(pt!==r||vt!==i)&&(tr=null,vi=et()+500,vs(r,i));do try{fT();break}catch(N){nv(r,N)}while(!0);xd(),Bl.current=y,Le=p,st!==null?i=0:(pt=null,vt=0,i=ct)}if(i!==0){if(i===2&&(p=Iu(r),p!==0&&(d=p,i=rf(r,p))),i===1)throw a=Uo,vs(r,0),Or(r,d),Ft(r,et()),a;if(i===6)Or(r,d);else{if(p=r.current.alternate,(d&30)===0&&!uT(p)&&(i=Hl(r,d),i===2&&(y=Iu(r),y!==0&&(
vendor: 10,716 bytes, line 40
40d=y,i=rf(r,y))),i===1))throw a=Uo,vs(r,0),Or(r,d),Ft(r,et()),a;switch(r.finishedWork=p,r.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:ws(r,Bt,tr);break;case 3:if(Or(r,d),(d&130023424)===d&&(i=ef+500-et(),10<i)){if(Za(r,0)!==0)break;if(p=r.suspendedLanes,(p&d)!==d){_t(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=cd(ws.bind(null,r,Bt,tr),i);break}ws(r,Bt,tr);break;case 4:if(Or(r,d),(d&4194240)===d)break;for(i=r.eventTimes,p=-1;0<d;){var A=31-hn(d);y=1<<A,A=i[A],A>p&&(p=A),d&=~y}if(d=p,d=et()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*cT(d/1960))-d,10<d){r.timeoutHandle=cd(ws.bind(null,r,Bt,tr),d);break}ws(r,Bt,tr);break;case 5:ws(r,Bt,tr);break;default:throw Error(n(329))}}}return Ft(r,et()),r.callbackNode===a?ev.bind(null,r):null}function rf(r,i){var a=zo;return r.current.memoizedState.isDehydrated&&(vs(r,i).flags|=256),r=Hl(r,i),r!==2&&(i=Bt,Bt=a,i!==null&&sf(i)),r}function sf(r){Bt===null?Bt=r:Bt.push.apply(Bt,r)}function uT(r){for(var i=r;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var p=a[d],y=p.getSnapshot;p=p.value;try{if(!pn(y(),p))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Or(r,i){for(i&=~Zd,i&=~Fl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-hn(i),d=1<<a;r[a]=-1,i&=~d}}function tv(r){if((Le&6)!==0)throw Error(n(327));wi();var i=Za(r,0);if((i&1)===0)return Ft(r,et()),null;var a=Hl(r,i);if(r.tag!==0&&a===2){var d=Iu(r);d!==0&&(i=d,a=rf(r,d))}if(a===1)throw a=Uo,vs(r,0),Or(r,i),Ft(r,et()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,ws(r,Bt,tr),Ft(r,et()),null}function of(r,i){var a=Le;Le|=1;try{return r(i)}finally{Le=a,Le===0&&(vi=et()+500,vl&&Ar())}}function ys(r){Nr!==null&&Nr.tag===0&&(Le&6)===0&&wi();var i=Le;Le|=1;var a=rn.transition,d=Fe;try{if(rn.transition=null,Fe=1,r)return r()}finally{Fe=d,rn.transition=a,Le=i,(Le&6)===0&&Ar()}}function af(){Gt=yi.current,He(yi)}function vs(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,VA(a)),st!==null)for(a=st.return;a!==null;){var d=a;switch(md(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&gl();break;case 3:pi(),He(Lt),He(bt),kd();break;case 5:Td(d);break;case 4:pi();break;case 13:He(Ge);break;case 19:He(Ge);break;case 10:Sd(d.type._context);break;case 22:case 23:af()}a=a.return}if(pt=r,st=r=jr(r.current,null),vt=Gt=i,ct=0,Uo=null,Zd=Fl=gs=0,Bt=zo=null,hs!==null){for(i=0;i<hs.length;i++)if(a=hs[i],d=a.interleaved,d!==null){a.interleaved=null;var p=d.next,y=a.pending;if(y!==null){var A=y.next;y.next=p,d.next=A}a.pending=d}hs=null}return r}function nv(r,i){do{var a=st;try{if(xd(),kl.current=Ol,Rl){for(var d=Qe.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}Rl=!1}if(ms=0,ht=lt=Qe=null,Lo=!1,Io=0,Jd.current=null,a===null||a.return===null){ct=1,Uo=i,st=null;break}e:{var y=r,A=a.return,N=a,_=i;if(i=vt,N.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var V=_,q=N,G=q.tag;if((q.mode&1)===0&&(G===0||G===11||G===15)){var H=q.alternate;H?(q.updateQueue=H.updateQueue,q.memoizedState=H.memoizedState,q.lanes=H.lanes):(q.updateQueue=null,q.memoizedState=null)}var ne=Py(A);if(ne!==null){ne.flags&=-257,ky(ne,A,N,y,i),ne.mode&1&&Ty(y,V,i),i=ne,_=V;var le=i.updateQueue;if(le===null){var de=new Set;de.add(_),i.updateQueue=de}else le.add(_);break e}else{if((i&1)===0){Ty(y,V,i),lf();break e}_=Error(n(426))}}else if(Ke&&N.mode&1){var tt=Py(A);if(tt!==null){(tt.flags&65536)===0&&(tt.flags|=256),ky(tt,A,N,y,i),vd(mi(_,N));break e}}y=_=mi(_,N),ct!==4&&(ct=2),zo===null?zo=[y]:zo.push(y),y=A;do{switch(y.tag){case 3:y.flags|=65536,i&=-i,y.lanes|=i;var B=Cy(y,_,i);Xg(y,B);break e;case 1:N=_;var M=y.type,F=y.stateNode;if((y.flags&128)===0&&(typeof M.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Rr===null||!Rr.has(F)))){y.flags|=65536,i&=-i,y.lanes|=i;var X=Ay(y,N,i);Xg(y,X);break e}}y=y.return}while(y!==null)}iv(a)}catch(he){i=he,st===a&&a!==null&&(st=a=a.return);continue}break}while(!0)}function rv(){var r=Bl.current;return Bl.current=Ol,r===null?Ol:r}function lf(){(ct===0||ct===3||ct===2)&&(ct=4),pt===null||(gs&268435455)===0&&(Fl&268435455)===0||Or(pt,vt)}function Hl(r,i){var a=Le;Le|=2;var d=rv();(pt!==r||vt!==i)&&(tr=null,vs(r,i));do try{dT();break}catch(p){nv(r,p)}while(!0);if(xd(),Le=a,Bl.current=d,st!==null)throw Error(n(261));return pt=null,vt=0,ct}function dT(){for(;st!==null;)sv(st)}function fT(){for(;st!==null&&!D1();)sv(st)}function sv(r){var i=lv(r.alternate,r,Gt);r.memoizedProps=r.pendingProps,i===null?iv(r):st=i,Jd.current=null}function iv(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=sT(a,i,Gt),a!==null){st=a;return}}else{if(a=iT(a,i),a!==null){a.flags&=32767,st=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{ct=6,st=null;return}}if(i=i.sibling,i!==null){st=i;return}st=i=r}while(i!==null);ct===0&&(ct=5)}function ws(r,i,a){var d=Fe,p=rn.transition;try{rn.transition=null,Fe=1,hT(r,i,a,d)}finally{rn.transition=p,Fe=d}return null}function hT(r,i,a,d){do wi();while(Nr!==null);if((Le&6)!==0)throw Error(n(327));a=r.finishedWork;var p=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=a.lanes|a.childLanes;if(K1(r,y),r===pt&&(st=pt=null,vt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Ul||(Ul=!0,cv(Qa,function(){return wi(),null})),y=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||y){y=rn.transition,rn.transition=null;var A=Fe;Fe=1;var N=Le;Le|=4,Jd.current=null,aT(r,a),Qy(a,r),jA(ad),nl=!!od,ad=od=null,r.current=a,lT(a),B1(),Le=N,Fe=A,rn.transition=y}else r.current=a;if(Ul&&(Ul=!1,Nr=r,zl=p),y=r.pendingLanes,y===0&&(Rr=null),U1(a.stateNode),Ft(r,et()),i!==null)for(d=r.onRecoverableError,a=0;a<i.length;a++)p=i[a],d(p.value,{componentStack:p.stack,digest:p.digest});if(Vl)throw Vl=!1,r=tf,tf=null,r;return(zl&1)!==0&&r.tag!==0&&wi(),y=r.pendingLanes,(y&1)!==0?r===nf?$o++:($o=0,nf=r):$o=0,Ar(),null}function wi(){if(Nr!==null){var r=Km(zl),i=rn.transition,a=Fe;try{if(rn.transition=null,Fe=16>r?16:r,Nr===null)var d=!1;else{if(r=Nr,Nr=null,zl=0,(Le&6)!==0)throw Error(n(331));var p=Le;for(Le|=4,se=r.current;se!==null;){var y=se,A=y.child;if((se.flags&16)!==0){var N=y.deletions;if(N!==null){for(var _=0;_<N.length;_++){var V=N[_];for(se=V;se!==null;){var q=se;switch(q.tag){case 0:case 11:case 15:Vo(8,q,y)}var G=q.child;if(G!==null)G.return=q,se=G;else for(;se!==null;){q=se;var H=q.sibling,ne=q.return;if(Wy(q),q===V){se=null;break}if(H!==null){H.return=ne,se=H;break}se=ne}}}var le=y.alternate;if(le!==null){var de=le.child;if(de!==null){le.child=null;do{var tt=de.sibling;de.sibling=null,de=tt}while(de!==null)}}se=y}}if((y.subtreeFlags&2064)!==0&&A!==null)A.return=y,se=A;else e:for(;se!==null;){if(y=se,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Vo(9,y,y.return)}var B=y.sibling;if(B!==null){B.return=y.return,se=B;break e}se=y.return}}var M=r.current;for(se=M;se!==null;){A=se;var F=A.child;if((A.subtreeFlags&2064)!==0&&F!==null)F.return=A,se=F;else e:for(A=M;se!==null;){if(N=se,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:Dl(9,N)}}catch(he){Xe(N,N.return,he)}if(N===A){se=null;break e}var X=N.sibling;if(X!==null){X.return=N.return,se=X;break e}se=N.return}}if(Le=p,Ar(),kn&&typeof kn.onPostCommitFiberRoot=="function")try{kn.onPostCommitFiberRoot(Ya,r)}catch{}d=!0}return d}finally{Fe=a,rn.transition=i}}return!1}function ov(r,i,a){i=mi(a,i),i=Cy(r,i,1),r=Pr(r,i,1),i=_t(),r!==null&&(ho(r,1,i),Ft(r,i))}function Xe(r,i,a){if(r.tag===3)ov(r,r,a);else for(;i!==null;){if(i.tag===3){ov(i,r,a);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Rr===null||!Rr.has(d))){r=mi(a,r),r=Ay(i,r,1),i=Pr(i,r,1),r=_t(),i!==null&&(ho(i,1,r),Ft(i,r));break}}i=i.return}}function pT(r,i,a){var d=r.pingCache;d!==null&&d.delete(i),i=_t(),r.pingedLanes|=r.suspendedLanes&a,pt===r&&(vt&a)===a&&(ct===4||ct===3&&(vt&130023424)===vt&&500>et()-ef?vs(r,0):Zd|=a),Ft(r,i)}function av(r,i){i===0&&((r.mode&1)===0?i=1:(i=Ja,Ja<<=1,(Ja&130023424)===0&&(Ja=4194304)));var a=_t();r=Jn(r,i),r!==null&&(ho(r,i,a),Ft(r,a))}function mT(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),av(r,a)}function gT(r,i){var a=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(a=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),av(r,a)}var lv;lv=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||Lt.current)Dt=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return Dt=!1,rT(r,i,a);Dt=(r.flags&131072)!==0}else Dt=!1,Ke&&(i.flags&1048576)!==0&&Ug(i,xl,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Ll(r,i),r=i.pendingProps;var p=ai(i,bt.current);hi(i,a),p=_d(null,i,d,r,p,a);var y=Od();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,It(d)?(y=!0,yl(i)):y=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Cd(i),p.updater=jl,i.stateNode=p,p._reactInternals=i,Bd(i,d,r,a),i=zd(null,i,d,!0,y,a)):(i.tag=0,Ke&&y&&pd(i),Nt(null,i,p,a),i=i.child),i;case 16:d=i.elementType;e:{switch(Ll(r,i),r=i.pendingProps,p=d._init,d=p(d._payload),i.type=d,p=i.tag=vT(d),r=gn(d,r),p){case 0:i=Ud(null,i,d,r,a);break e;case 1:i=My(null,i,d,r,a);break e;case 11:i=Ry(null,i,d,r,a);break e;case 14:i=Ny(null,i,d,gn(d.type,r),a);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:gn(d,p),Ud(r,i,d,p,a);case 1:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:gn(d,p),My(r,i,d,p,a);case 3:e:{if(Ly(i),r===null)throw Error(n(387));d=i.pendingProps,y=i.memoizedState,p=y.element,Yg(r,i),Tl(i,d,null,a);var A=i.memoizedState;if(d=A.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:A.cache,pendingSuspenseBoundaries:A.pendingSuspenseBoundaries,transitions:A.transitions},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){p=mi(Error(n(423)),i),i=Iy(r,i,d,a,p);break e}else if(d!==p){p=mi(Error(n(424)),i),i=Iy(r,i,d,a,p);break e}else for(Kt=br(i.stateNode.containerInfo.firstChild),qt=i,Ke=!0,mn=null,a=Gg(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ui(),d===p){i=er(r,i,a);break e}Nt(r,i,d,a)}i=i.child}return i;
vendor: 10,730 bytes, line 40
40case 5:return Zg(i),r===null&&yd(i),d=i.type,p=i.pendingProps,y=r!==null?r.memoizedProps:null,A=p.children,ld(d,p)?A=null:y!==null&&ld(d,y)&&(i.flags|=32),jy(r,i),Nt(r,i,A,a),i.child;case 6:return r===null&&yd(i),null;case 13:return Dy(r,i,a);case 4:return Ad(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=di(i,null,d,a):Nt(r,i,d,a),i.child;case 11:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:gn(d,p),Ry(r,i,d,p,a);case 7:return Nt(r,i,i.pendingProps,a),i.child;case 8:return Nt(r,i,i.pendingProps.children,a),i.child;case 12:return Nt(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(d=i.type._context,p=i.pendingProps,y=i.memoizedProps,A=p.value,$e(El,d._currentValue),d._currentValue=A,y!==null)if(pn(y.value,A)){if(y.children===p.children&&!Lt.current){i=er(r,i,a);break e}}else for(y=i.child,y!==null&&(y.return=i);y!==null;){var N=y.dependencies;if(N!==null){A=y.child;for(var _=N.firstContext;_!==null;){if(_.context===d){if(y.tag===1){_=Zn(-1,a&-a),_.tag=2;var V=y.updateQueue;if(V!==null){V=V.shared;var q=V.pending;q===null?_.next=_:(_.next=q.next,q.next=_),V.pending=_}}y.lanes|=a,_=y.alternate,_!==null&&(_.lanes|=a),bd(y.return,a,i),N.lanes|=a;break}_=_.next}}else if(y.tag===10)A=y.type===i.type?null:y.child;else if(y.tag===18){if(A=y.return,A===null)throw Error(n(341));A.lanes|=a,N=A.alternate,N!==null&&(N.lanes|=a),bd(A,a,i),A=y.sibling}else A=y.child;if(A!==null)A.return=y;else for(A=y;A!==null;){if(A===i){A=null;break}if(y=A.sibling,y!==null){y.return=A.return,A=y;break}A=A.return}y=A}Nt(r,i,p.children,a),i=i.child}return i;case 9:return p=i.type,d=i.pendingProps.children,hi(i,a),p=tn(p),d=d(p),i.flags|=1,Nt(r,i,d,a),i.child;case 14:return d=i.type,p=gn(d,i.pendingProps),p=gn(d.type,p),Ny(r,i,d,p,a);case 15:return _y(r,i,i.type,i.pendingProps,a);case 17:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:gn(d,p),Ll(r,i),i.tag=1,It(d)?(r=!0,yl(i)):r=!1,hi(i,a),by(i,d,p),Bd(i,d,p,a),zd(null,i,d,!0,r,a);case 19:return Fy(r,i,a);case 22:return Oy(r,i,a)}throw Error(n(156,i.tag))};function cv(r,i){return zm(r,i)}function yT(r,i,a,d){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(r,i,a,d){return new yT(r,i,a,d)}function cf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function vT(r){if(typeof r=="function")return cf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===me)return 11;if(r===Se)return 14}return 2}function jr(r,i){var a=r.alternate;return a===null?(a=sn(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function ql(r,i,a,d,p,y){var A=2;if(d=r,typeof r=="function")cf(r)&&(A=1);else if(typeof r=="string")A=5;else e:switch(r){case U:return xs(a.children,p,y,i);case D:A=8,p|=8;break;case Z:return r=sn(12,a,i,p|2),r.elementType=Z,r.lanes=y,r;case fe:return r=sn(13,a,i,p),r.elementType=fe,r.lanes=y,r;case pe:return r=sn(19,a,i,p),r.elementType=pe,r.lanes=y,r;case ee:return Kl(a,p,y,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case K:A=10;break e;case ie:A=9;break e;case me:A=11;break e;case Se:A=14;break e;case te:A=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=sn(A,a,i,p),i.elementType=r,i.type=d,i.lanes=y,i}function xs(r,i,a,d){return r=sn(7,r,d,i),r.lanes=a,r}function Kl(r,i,a,d){return r=sn(22,r,d,i),r.elementType=ee,r.lanes=a,r.stateNode={isHidden:!1},r}function uf(r,i,a){return r=sn(6,r,null,i),r.lanes=a,r}function df(r,i,a){return i=sn(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function wT(r,i,a,d,p){this.tag=i,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=Du(0),this.expirationTimes=Du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function ff(r,i,a,d,p,y,A,N,_){return r=new wT(r,i,a,N,_),i===1?(i=1,y===!0&&(i|=8)):i=0,y=sn(3,null,null,i),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cd(y),r}function xT(r,i,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:d==null?null:""+d,children:r,containerInfo:i,implementation:a}}function uv(r){if(!r)return Cr;r=r._reactInternals;e:{if(ls(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(It(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(It(a))return Bg(r,a,i)}return i}function dv(r,i,a,d,p,y,A,N,_){return r=ff(a,d,!0,r,p,y,A,N,_),r.context=uv(null),a=r.current,d=_t(),p=_r(a),y=Zn(d,p),y.callback=i??null,Pr(a,y,p),r.current.lanes=p,ho(r,p,d),Ft(r,d),r}function Gl(r,i,a,d){var p=i.current,y=_t(),A=_r(p);return a=uv(a),i.context===null?i.context=a:i.pendingContext=a,i=Zn(y,A),i.payload={element:r},d=d===void 0?null:d,d!==null&&(i.callback=d),r=Pr(p,i,A),r!==null&&(wn(r,p,A,y),Al(r,p,A)),A}function Ql(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 fv(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function hf(r,i){fv(r,i),(r=r.alternate)&&fv(r,i)}function ST(){return null}var hv=typeof reportError=="function"?reportError:function(r){console.error(r)};function pf(r){this._internalRoot=r}Yl.prototype.render=pf.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Gl(r,i,null,null)},Yl.prototype.unmount=pf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;ys(function(){Gl(null,r,null,null)}),i[Gn]=null}};function Yl(r){this._internalRoot=r}Yl.prototype.unstable_scheduleHydration=function(r){if(r){var i=Ym();r={blockedOn:null,target:r,priority:i};for(var a=0;a<wr.length&&i!==0&&i<wr[a].priority;a++);wr.splice(a,0,r),a===0&&Zm(r)}};function mf(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 pv(){}function bT(r,i,a,d,p){if(p){if(typeof d=="function"){var y=d;d=function(){var V=Ql(A);y.call(V)}}var A=dv(i,d,r,0,null,!1,!1,"",pv);return r._reactRootContainer=A,r[Gn]=A.current,Po(r.nodeType===8?r.parentNode:r),ys(),A}for(;p=r.lastChild;)r.removeChild(p);if(typeof d=="function"){var N=d;d=function(){var V=Ql(_);N.call(V)}}var _=ff(r,0,!1,null,null,!1,!1,"",pv);return r._reactRootContainer=_,r[Gn]=_.current,Po(r.nodeType===8?r.parentNode:r),ys(function(){Gl(i,_,a,d)}),_}function Jl(r,i,a,d,p){var y=a._reactRootContainer;if(y){var A=y;if(typeof p=="function"){var N=p;p=function(){var _=Ql(A);N.call(_)}}Gl(i,A,r,p)}else A=bT(a,i,r,p,d);return Ql(A)}Gm=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=fo(i.pendingLanes);a!==0&&(Bu(i,a|1),Ft(i,et()),(Le&6)===0&&(vi=et()+500,Ar()))}break;case 13:ys(function(){var d=Jn(r,1);if(d!==null){var p=_t();wn(d,r,1,p)}}),hf(r,1)}},Fu=function(r){if(r.tag===13){var i=Jn(r,134217728);if(i!==null){var a=_t();wn(i,r,134217728,a)}hf(r,134217728)}},Qm=function(r){if(r.tag===13){var i=_r(r),a=Jn(r,i);if(a!==null){var d=_t();wn(a,r,i,d)}hf(r,i)}},Ym=function(){return Fe},Xm=function(r,i){var a=Fe;try{return Fe=r,i()}finally{Fe=a}},_u=function(r,i,a){switch(i){case"input":if(Kn(r,a),i=a.name,a.type==="radio"&&i!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var d=a[i];if(d!==r&&d.form===r.form){var p=ml(d);if(!p)throw Error(n(90));_e(d),Kn(d,p)}}}break;case"textarea":Tm(r,a);break;case"select":i=a.value,i!=null&&Qs(r,!!a.multiple,i,!1)}},Lm=of,Im=ys;var ET={usingClientEntryPoint:!1,Events:[No,ii,ml,jm,Mm,of]},Wo={findFiberByHostInstance:cs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},CT={bundleType:Wo.bundleType,version:Wo.version,rendererPackageName:Wo.rendererPackageName,rendererConfig:Wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Vm(r),r===null?null:r.stateNode},findFiberByHostInstance:Wo.findFiberByHostInstance||ST,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 Zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zl.isDisabled&&Zl.supportsFiber)try{Ya=Zl.inject(CT),kn=Zl}catch{}}return Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ET,Vt.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mf(i))throw Error(n(200));return xT(r,i,null,a)},Vt.createRoot=function(r,i){if(!mf(r))throw Error(n(299));var a=!1,d="",p=hv;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=ff(r,1,!1,null,null,a,!1,d,p),r[Gn]=i.current,Po(r.nodeType===8?r.parentNode:r),new pf(i)},Vt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Vm(i),r=r===null?null:r.stateNode,r},Vt.flushSync=function(r){return ys(r)}
40,Vt.hydrate=function(r,i,a){if(!Xl(i))throw Error(n(200));return Jl(null,r,i,!0,a)},Vt.hydrateRoot=function(r,i,a){if(!mf(r))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,p=!1,y="",A=hv;if(a!=null&&(a.unstable_strictMode===!0&&(p=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(A=a.onRecoverableError)),i=dv(i,null,r,1,a??null,p,!1,y,A),r[Gn]=i.current,Po(r),d)for(r=0;r<d.length;r++)a=d[r],p=a._getVersion,p=p(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,p]:i.mutableSourceEagerHydrationData.push(a,p);return new Yl(i)},Vt.render=function(r,i,a){if(!Xl(i))throw Error(n(200));return Jl(null,r,i,!1,a)},Vt.unmountComponentAtNode=function(r){if(!Xl(r))throw Error(n(40));return r._reactRootContainer?(ys(function(){Jl(null,null,r,!1,function(){r._reactRootContainer=null,r[Gn]=null})}),!0):!1},Vt.unstable_batchedUpdates=of,Vt.unstable_renderSubtreeIntoContainer=function(r,i,a,d){if(!Xl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Jl(r,i,a,!1,d)},Vt.version="18.3.1-next-f1338f8080-20240426",Vt}var Ev;function kx(){if(Ev)return wf.exports;Ev=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wf.exports=OT(),wf.exports}var Cv;function jT(){if(Cv)return tc;Cv=1;var e=kx();return tc.createRoot=e.createRoot,tc.hydrateRoot=e.hydrateRoot,tc}var MT=jT();const LT=fp(MT),IT=20,DT=1e6,ar={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let bf=0;function BT(){return bf=(bf+1)%Number.MAX_VALUE,bf.toString()}const Ef=new Map,Av=e=>{if(Ef.has(e))return;const t=setTimeout(()=>{Ef.delete(e),oa({type:ar.REMOVE_TOAST,toastId:e})},DT);Ef.set(e,t)},FT=(e,t)=>{switch(t.type){case ar.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,IT)};case ar.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case ar.DISMISS_TOAST:{const{toastId:n}=t;return n?Av(n):e.toasts.forEach(s=>{Av(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case ar.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},wc=[];let xc={toasts:[]};function oa(e){xc=FT(xc,e),wc.forEach(t=>{t(xc)})}function VT({...e}){const t=BT(),n=o=>oa({type:ar.UPDATE_TOAST,toast:{...o,id:t}}),s=()=>oa({type:ar.DISMISS_TOAST,toastId:t});return oa({type:ar.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||s()}}}),{id:t,dismiss:s,update:n}}function UT(){const[e,t]=b.useState(xc);return b.useEffect(()=>(wc.push(t),()=>{const n=wc.indexOf(t);n>-1&&wc.splice(n,1)}),[e]),{...e,toast:VT,dismiss:n=>oa({type:ar.DISMISS_TOAST,toastId:n})}}function Rx(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Rx(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Nx(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Rx(e))&&(s&&(s+=" "),s+=t);return s}const Tv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Pv=Nx,mp=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Pv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,c=Object.keys(o).map(h=>{const m=n==null?void 0:n[h],g=l==null?void 0:l[h];if(m===null)return null;const w=Tv(m)||Tv(g);return o[h][w]}),u=n&&Object.entries(n).reduce((h,m)=>{let[g,w]=m;return w===void 0||(h[g]=w),h},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((h,m)=>{let{class:g,className:w,...C}=m;return Object.entries(C).every(E=>{let[x,S]=E;return Array.isArray(S)?S.includes({...l,...u}[x]):{...l,...u}[x]===S})?[...h,g,w]:h},[]);return Pv(e,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 zT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_x=(...e)=>
vendor: 4,962 bytes, lines 45-120
45e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===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 $T={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 WT=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:l,iconNode:c,...u},f)=>b.createElement("svg",{ref:f,...$T,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:_x("lucide",o),...u},[...c.map(([h,m])=>b.createElement(h,m)),...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 fn=(e,t)=>{const n=b.forwardRef(({className:s,...o},l)=>b.createElement(WT,{ref:l,iconNode:t,className:_x(`lucide-${zT(e)}`,s),...o}));return n.displayName=`${e}`,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 HT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qT=fn("ArrowRight",HT);/**
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 KT=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],gp=fn("ArrowUpRight",KT);/**
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 GT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ox=fn("Check",GT);/**
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 QT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],jx=fn("ChevronDown",QT);/**
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 YT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],XT=fn("ChevronUp",YT);/**
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 JT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ZT=fn("CircleCheck",JT);/**
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 eP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Mx=fn("Download",eP);/**
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 tP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],kv=fn("FileText",tP);/**
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 nP=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],rP=fn("Image",nP);/**
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 sP=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Lx=fn("LoaderCircle",sP);/**
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 iP=[["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"}]],oP=fn("Menu",iP);/**
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 aP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 7,533 bytes, line 120
120],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yp=fn("X",aP),vp="-",lP=e=>{const t=uP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{const u=c.split(vp);return u[0]===""&&u.length!==1&&u.shift(),Ix(u,t)||cP(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&s[c]?[...f,...s[c]]:f}}},Ix=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),o=s?Ix(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(vp);return(c=t.validators.find(({validator:u})=>u(l)))==null?void 0:c.classGroupId},Rv=/^\[(.+)\]$/,cP=e=>{if(Rv.test(e)){const t=Rv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},uP=e=>{const{theme:t,classGroups:n}=e,s={nextPart:new Map,validators:[]};for(const o in n)ah(n[o],s,o,t);return s},ah=(e,t,n,s)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:Nv(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(dP(o)){ah(o(s),t,n,s);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,c])=>{ah(c,Nv(t,l),n,s)})})},Nv=(e,t)=>{let n=e;return t.split(vp).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},dP=e=>e.isThemeGetter,fP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const o=(l,c)=>{n.set(l,c),t++,t>e&&(t=0,s=n,n=new Map)};return{get(l){let c=n.get(l);if(c!==void 0)return c;if((c=s.get(l))!==void 0)return o(l,c),c},set(l,c){n.has(l)?n.set(l,c):o(l,c)}}},lh="!",ch=":",hP=ch.length,pP=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=o=>{const l=[];let c=0,u=0,f=0,h;for(let E=0;E<o.length;E++){let x=o[E];if(c===0&&u===0){if(x===ch){l.push(o.slice(f,E)),f=E+hP;continue}if(x==="/"){h=E;continue}}x==="["?c++:x==="]"?c--:x==="("?u++:x===")"&&u--}const m=l.length===0?o:o.substring(f),g=mP(m),w=g!==m,C=h&&h>f?h-f:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:g,maybePostfixModifierPosition:C}};if(t){const o=t+ch,l=s;s=c=>c.startsWith(o)?l(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=s;s=l=>n({className:l,parseClassName:o})}return s},mP=e=>e.endsWith(lh)?e.substring(0,e.length-1):e.startsWith(lh)?e.substring(1):e,gP=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let l=[];return s.forEach(c=>{c[0]==="["||t[c]?(o.push(...l.sort(),c),l=[]):l.push(c)}),o.push(...l.sort()),o}},yP=e=>({cache:fP(e.cacheSize),parseClassName:pP(e),sortModifiers:gP(e),...lP(e)}),vP=/\s+/,wP=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:l}=t,c=[],u=e.trim().split(vP);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:g,modifiers:w,hasImportantModifier:C,baseClassName:E,maybePostfixModifierPosition:x}=n(m);if(g){f=m+(f.length>0?" "+f:f);continue}let S=!!x,T=s(S?E.substring(0,x):E);if(!T){if(!S){f=m+(f.length>0?" "+f:f);continue}if(T=s(E),!T){f=m+(f.length>0?" "+f:f);continue}S=!1}const k=l(w).join(":"),P=C?k+lh:k,R=P+T;if(c.includes(R))continue;c.push(R);const O=o(T,S);for(let $=0;$<O.length;++$){const U=O[$];c.push(P+U)}f=m+(f.length>0?" "+f:f)}return f};function xP(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dx(t))&&(s&&(s+=" "),s+=n);return s}const Dx=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Dx(e[s]))&&(n&&(n+=" "),n+=t);return n};function SP(e,...t){let n,s,o,l=c;function c(f){const h=t.reduce((m,g)=>g(m),e());return n=yP(h),s=n.cache.get,o=n.cache.set,l=u,u(f)}function u(f){const h=s(f);if(h)return h;const m=wP(f,n);return o(f,m),m}return function(){return l(xP.apply(null,arguments))}}const ut=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Bx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bP=/^\d+\/\d+$/,EP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CP=/\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$/,AP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,TP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,PP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xi=e=>bP.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>!!e&&Number.isInteger(Number(e)),Cf=e=>e.endsWith("%")&&ke(e.slice(0,-1)),nr=e=>EP.test(e),kP=()=>!0,RP=e=>CP.test(e)&&!AP.test(e),Vx=()=>!1,NP=e=>TP.test(e),_P=e=>PP.test(e),OP=e=>!ce(e)&&!ue(e),jP=e=>Gi(e,$x,Vx),ce=e=>Bx.test(e),Ss=e=>Gi(e,Wx,RP),Af=e=>Gi(e,BP,ke),_v=e=>Gi(e,Ux,Vx),MP=e=>Gi(e,zx,_P),nc=e=>Gi(e,Hx,NP),ue=e=>Fx.test(e),qo=e=>Qi(e,Wx),LP=e=>Qi(e,FP),Ov=e=>Qi(e,Ux),IP=e=>Qi(e,$x),DP=e=>Qi(e,zx),rc=e=>Qi(e,Hx,!0),Gi=(e,t,n)=>{const s=Bx.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Qi=(e,t,n=!1)=>{const s=Fx.exec(e);return s?s[1]?t(s[1]):n:!1},Ux=e=>e==="position"||e==="percentage",zx=e=>e==="image"||e==="url",$x=e=>e==="length"||e==="size"||e==="bg-size",Wx=e=>e==="length",BP=e=>e==="number",FP=e=>e==="family-name",Hx=e=>e==="shadow",VP=()=>{const e=ut("color"),t=ut("font"),n=ut("text"),s=ut("font-weight"),o=ut("tracking"),l=ut("leading"),c=ut("breakpoint"),u=ut("container"),f=ut("spacing"),h=ut("radius"),m=ut("shadow"),g=ut("inset-shadow"),w=ut("text-shadow"),C=ut("drop-shadow"),E=ut("blur"),x=ut("perspective"),S=ut("aspect"),T=ut("ease"),k=ut("animate"),P=()=>["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"],O=()=>[...R(),ue,ce],$=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],D=()=>[ue,ce,f],Z=()=>[xi,"full","auto",...D()],K=()=>[Lr,"none","subgrid",ue,ce],ie=()=>["auto",{span:["full",Lr,ue,ce]},Lr,ue,ce],me=()=>[Lr,"auto",ue,ce],fe=()=>["auto","min","max","fr",ue,ce],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...D()],ee=()=>[xi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],I=()=>[e,ue,ce],J=()=>[...R(),Ov,_v,{position:[ue,ce]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",IP,jP,{size:[ue,ce]}],W=()=>[Cf,qo,Ss],oe=()=>["","none","full",h,ue,ce],ae=()=>["",ke,qo,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"],Q=()=>[ke,Cf,Ov,_v],ge=()=>["","none",E,ue,ce],Ce=()=>["none",ke,ue,ce],Ae=()=>["none",ke,ue,ce],Ne=()=>[ke,ue,ce],_e=()=>[xi,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nr],breakpoint:[nr],color:[kP],container:[nr],"drop-shadow":[nr],ease:["in","out","in-out"],font:[OP],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nr],shadow:[nr],spacing:["px",ke],text:[nr],"text-shadow":[nr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xi,ce,ue,S]}
vendor: 5,651 bytes, line 120
120],container:["container"],columns:[{columns:[ke,ce,ue,u]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:O()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Lr,"auto",ue,ce]}],basis:[{basis:[xi,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,xi,"auto","initial","none",ce]}],grow:[{grow:["",ke,ue,ce]}],shrink:[{shrink:["",ke,ue,ce]}],order:[{order:[Lr,"first","last","none",ue,ce]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[u,"screen",...ee()]}],"min-w":[{"min-w":[u,"screen","none",...ee()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,qo,Ss]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ue,Af]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cf,ce]}],"font-family":[{font:[LP,ce,t]}],"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:[o,ue,ce]}],"line-clamp":[{"line-clamp":[ke,"none",ue,Af]}],leading:[{leading:[l,...D()]}],"list-image":[{"list-image":["none",ue,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ue,Ss]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[ke,"auto",ue,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,ce]}],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",ue,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lr,ue,ce],radial:["",ue,ce],conic:[Lr,ue,ce]},DP,MP]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:W()}
120],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}
vendor: 5,737 bytes, line 120
120],"divide-color":[{divide:I()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ue,ce]}],"outline-w":[{outline:["",ke,qo,Ss]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",m,rc,nc]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",g,rc,nc]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[ke,Ss]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,rc,nc]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[ke,ue,ce]}],"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":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ue,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,ce]}],filter:[{filter:["","none",ue,ce]}],blur:[{blur:ge()}],brightness:[{brightness:[ke,ue,ce]}],contrast:[{contrast:[ke,ue,ce]}],"drop-shadow":[{"drop-shadow":["","none",C,rc,nc]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",ke,ue,ce]}],"hue-rotate":[{"hue-rotate":[ke,ue,ce]}],invert:[{invert:["",ke,ue,ce]}],saturate:[{saturate:[ke,ue,ce]}],sepia:[{sepia:["",ke,ue,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ce]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ue,ce]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ue,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ue,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ue,ce]}],"backdrop-invert":[{"backdrop-invert":["",ke,ue,ce]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ue,ce]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ue,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ue,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ue,ce]}],ease:[{ease:["linear","initial",T,ue,ce]}],delay:[{delay:[ke,ue,ce]}],animate:[{animate:["none",k,ue,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,ue,ce]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[ue,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}
vendor: 6,657 bytes, line 120
120],"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",ue,ce]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",ue,ce]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[ke,qo,Ss,Af]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},UP=SP(VP);function at(...e){return UP(Nx(e))}const qx=b.forwardRef(({...e},t)=>v.jsx("div",{ref:t,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]",...e}));qx.displayName="ToastProvider";const Kx=b.forwardRef(({...e},t)=>v.jsx("div",{ref:t,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]",...e}));Kx.displayName="ToastViewport";const zP=mp("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"}}),Gx=b.forwardRef(({className:e,variant:t,...n},s)=>v.jsx("div",{ref:s,className:at(zP({variant:t}),e),...n}));Gx.displayName="Toast";const $P=b.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:at("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));$P.displayName="ToastAction";const Qx=b.forwardRef(({className:e,...t},n)=>v.jsx("button",{ref:n,className:at("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,808 bytes, line 120
120/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:v.jsx(yp,{className:"h-4 w-4"})}));Qx.displayName="ToastClose";const Yx=b.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:at("text-sm font-semibold",e),...t}));Yx.displayName="ToastTitle";const Xx=b.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:at("text-sm opacity-90",e),...t}));Xx.displayName="ToastDescription";function WP(){const{toasts:e}=UT();return v.jsxs(qx,{children:[e.map(function({id:t,title:n,description:s,action:o,...l}){return v.jsxs(Gx,{...l,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(Yx,{children:n}),s&&v.jsx(Xx,{children:s})]}),o,v.jsx(Qx,{})]},t)}),v.jsx(Kx,{})]})}var Ra=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},HP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ur,dp,vx,qP=(vx=class{constructor(){we(this,Ur,HP);we(this,dp,!1)}setTimeoutProvider(e){re(this,Ur,e)}setTimeout(e,t){return j(this,Ur).setTimeout(e,t)}clearTimeout(e){j(this,Ur).clearTimeout(e)}setInterval(e,t){return j(this,Ur).setInterval(e,t)}clearInterval(e){j(this,Ur).clearInterval(e)}},Ur=new WeakMap,dp=new WeakMap,vx),As=new qP;function KP(e){setTimeout(e,0)}var Vs=typeof window>"u"||"Deno"in globalThis;function zt(){}function GP(e,t){return typeof e=="function"?e(t):e}function uh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xr(e,t){return typeof e=="function"?e(t):e}function un(e,t){return typeof e=="function"?e(t):e}function jv(e,t){const{type:n="all",exact:s,fetchStatus:o,predicate:l,queryKey:c,stale:u}=e;if(c){if(s){if(t.queryHash!==wp(c,t.options))return!1}else if(!ha(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||l&&!l(t))}function Mv(e,t){const{exact:n,status:s,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(fa(t.options.mutationKey)!==fa(l))return!1}else if(!ha(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function wp(e,t){return((t==null?void 0:t.queryKeyHashFn)||fa)(e)}function fa(e){return JSON.stringify(e,(t,n)=>fh(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function ha(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ha(e[n],t[n])):!1}var QP=Object.prototype.hasOwnProperty;function Zx(e,t){if(e===t)return e;const n=Lv(e)&&Lv(t);if(!n&&!(fh(e)&&fh(t)))return t;const o=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,u=n?new Array(c):{};let f=0;for(let h=0;h<c;h++){const m=n?h:l[h],g=e[m],w=t[m];if(g===w){u[m]=g,(n?h<o:QP.call(e,m))&&f++;continue}if(g===null||w===null||typeof g!="object"||typeof w!="object"){u[m]=w;continue}const C=Zx(g,w);u[m]=C,C===g&&f++}return o===c&&f===o?e:u}function dh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Lv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fh(e){if(!Iv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Iv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Iv(e){return Object.prototype.toString.call(e)==="[object Object]"}function YP(e){return new Promise(t=>{As.setTimeout(t,e)})}function hh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Zx(e,t):t}function XP(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function JP(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var xp=Symbol();function eS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ZP(e,t){return typeof e=="function"?e(...t):!!e}var ks,zr,_i,wx,ek=(wx=class extends Ra{constructor(){super();we(this,ks);we(this,zr);we(this,_i);re(this,_i,t=>{if(!Vs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}
vendor: 2,857 bytes, line 120
120onSubscribe(){j(this,zr)||this.setEventListener(j(this,_i))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,zr))==null||t.call(this),re(this,zr,void 0))}setEventListener(t){var n;re(this,_i,t),(n=j(this,zr))==null||n.call(this),re(this,zr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){j(this,ks)!==t&&(re(this,ks,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,ks)=="boolean"?j(this,ks):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ks=new WeakMap,zr=new WeakMap,_i=new WeakMap,wx),Sp=new ek;function ph(){let e,t;const n=new Promise((o,l)=>{e=o,t=l});n.status="pending",n.catch(()=>{});function s(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},n.reject=o=>{s({status:"rejected",reason:o}),t(o)},n}var tk=KP;function nk(){let e=[],t=0,n=u=>{u()},s=u=>{u()},o=tk;const l=u=>{t?e.push(u):o(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&o(()=>{s(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||c()}return f},batchCalls:u=>(...f)=>{l(()=>{u(...f)})},schedule:l,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{s=u},setScheduler:u=>{o=u}}}var St=nk(),Oi,$r,ji,xx,rk=(xx=class extends Ra{constructor(){super();we(this,Oi,!0);we(this,$r);we(this,ji);re(this,ji,t=>{if(!Vs&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){j(this,$r)||this.setEventListener(j(this,ji))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,$r))==null||t.call(this),re(this,$r,void 0))}setEventListener(t){var n;re(this,ji,t),(n=j(this,$r))==null||n.call(this),re(this,$r,t(this.setOnline.bind(this)))}setOnline(t){j(this,Oi)!==t&&(re(this,Oi,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return j(this,Oi)}},Oi=new WeakMap,$r=new WeakMap,ji=new WeakMap,xx),Vc=new rk;function sk(e){return Math.min(1e3*2**e,3e4)}function tS(e){return(e??"online")==="online"?Vc.isOnline():!0}var mh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nS(e){let t=!1,n=0,s;const o=ph(),l=()=>o.status!=="pending",c=x=>{var S;if(!l()){const T=new mh(x);w(T),(S=e.onCancel)==null||S.call(e,T)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>Sp.isFocused()&&(e.networkMode==="always"||Vc.isOnline())&&e.canRun(),m=()=>tS(e.networkMode)&&e.canRun(),g=x=>{l()||(s==null||s(),o.resolve(x))},w=x=>{l()||(s==null||s(),o.reject(x))},C=()=>new Promise(x=>{var S;s=T=>{(l()||h())&&x(T)},(S=e.onPause)==null||S.call(e)}).then(()=>{var x;s=void 0,l()||(x=e.onContinue)==null||x.call(e)}),E=()=>
vendor: 4,376 bytes, line 120
120{if(l())return;let x;const S=n===0?e.initialPromise:void 0;try{x=S??e.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(g).catch(T=>{var $;if(l())return;const k=e.retry??(Vs?0:3),P=e.retryDelay??sk,R=typeof P=="function"?P(n,T):P,O=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,T);if(t||!O){w(T);return}n++,($=e.onFail)==null||$.call(e,n,T),YP(R).then(()=>h()?void 0:C()).then(()=>{t?w(T):E()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(s==null||s(),o),cancelRetry:u,continueRetry:f,canStart:m,start:()=>(m()?E():C().then(E),o)}}var Rs,Sx,rS=(Sx=class{constructor(){we(this,Rs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uh(this.gcTime)&&re(this,Rs,As.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vs?1/0:300*1e3))}clearGcTimeout(){j(this,Rs)&&(As.clearTimeout(j(this,Rs)),re(this,Rs,void 0))}},Rs=new WeakMap,Sx),Ns,Mi,cn,_s,gt,Ca,Os,bn,rr,bx,ik=(bx=class extends rS{constructor(t){super();we(this,bn);we(this,Ns);we(this,Mi);we(this,cn);we(this,_s);we(this,gt);we(this,Ca);we(this,Os);re(this,Os,!1),re(this,Ca,t.defaultOptions),this.setOptions(t.options),this.observers=[],re(this,_s,t.client),re(this,cn,j(this,_s).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,re(this,Ns,Dv(this.options)),this.state=t.state??j(this,Ns),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,gt))==null?void 0:t.promise}setOptions(t){if(this.options={...j(this,Ca),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Dv(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),re(this,Ns,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,cn).remove(this)}setData(t,n){const s=hh(this.state.data,t,this.options);return Oe(this,bn,rr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Oe(this,bn,rr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,o;const n=(s=j(this,gt))==null?void 0:s.promise;return(o=j(this,gt))==null||o.cancel(t),n?n.then(zt).catch(zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Ns))}isActive(){return this.observers.some(t=>un(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Jx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,gt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,gt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,cn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,gt)&&(j(this,Os)?j(this,gt).cancel({revert:!0}):j(this,gt).cancelRetry()),this.scheduleGc()),j(this,cn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,bn,rr).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,m,g,w,C,E,x,S,T,k,P;if(this.state.fetchStatus!=="idle"&&((f=j(this,gt))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,gt))return j(this,gt).continueRetry(),j(this,gt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const R=this.observers.find(O=>O.options.queryFn);R&&this.setOptions(R.options)}const s=new AbortController,o=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(re(this,Os,!0),s.signal)}
120)},l=()=>{const R=eS(this.options,n),$=(()=>{const U={client:j(this,_s),queryKey:this.queryKey,meta:this.meta};return o(U),U})();return re(this,Os,!1),this.options.persister?this.options.persister(R,$,this):R($)},u=(()=>{const R={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,_s),state:this.state,fetchFn:l};return o(R),R})();(h=this.options.behavior)==null||h.onFetch(u,this),re(this,Mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=u.fetchOptions)==null?void 0:m.meta))&&Oe(this,bn,rr).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),re(this,gt,nS({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:R=>{R instanceof mh&&R.revert&&this.setState({...j(this,Mi),fetchStatus:"idle"}),s.abort()},onFail:(R,O)=>{Oe(this,bn,rr).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{Oe(this,bn,rr).call(this,{type:"pause"})},onContinue:()=>{Oe(this,bn,rr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const R=await j(this,gt).start();if(R===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(R),(C=(w=j(this,cn).config).onSuccess)==null||C.call(w,R,this),(x=(E=j(this,cn).config).onSettled)==null||x.call(E,R,this.state.error,this),R}catch(R){if(R instanceof mh){if(R.silent)return j(this,gt).promise;if(R.revert){if(this.state.data===void 0)throw R;return this.state.data}}throw Oe(this,bn,rr).call(this,{type:"error",error:R}),(T=(S=j(this,cn).config).onError)==null||T.call(S,R,this),(P=(k=j(this,cn).config).onSettled)==null||P.call(k,this.state.data,R,this),R}finally{this.scheduleGc()}}},Ns=new WeakMap,Mi=new WeakMap,cn=new WeakMap,_s=new WeakMap,gt=new WeakMap,Ca=new WeakMap,Os=new WeakMap,bn=new WeakSet,rr=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...sS(s.data,this.options),fetchMeta:t.meta??null};case"success":const o={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return re(this,Mi,t.manual?o:void 0),o;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),St.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),j(this,cn).notify({query:this,type:"updated",action:t})})},bx);function sS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Dv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ut,je,Aa,Ot,js,Li,ir,Wr,Ta,Ii,Di,Ms,Ls,Hr,Bi,Be,Jo,gh,yh,vh,wh,xh,Sh,bh,iS,Ex,ok=(Ex=class extends Ra{constructor(t,n){super();we(this,Be);we(this,Ut);we(this,je);we(this,Aa);we(this,Ot);we(this,js);we(this,Li);we(this,ir);we(this,Wr);we(this,Ta);we(this,Ii);we(this,Di);we(this,Ms);we(this,Ls);we(this,Hr);we(this,Bi,new Set);this.options=n,re(this,Ut,t),re(this,Wr,null),re(this,ir,ph()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,je).addObserver(this),Bv(j(this,je),this.options)?Oe(this,Be,Jo).call(this):this.updateResult(),Oe(this,Be,wh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eh(j(this,je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eh(j(this,je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,Be,xh).call(this),Oe(this,Be,Sh).call(this),j(this,je).removeObserver(this)}setOptions(t){const n=this.options,s=j(this,je);if(this.options=j(this,Ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof un(this.options.enabled,j(this,je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Oe(this,Be,bh).call(this),j(this,je).setOptions(this.options),n._defaulted&&!dh(this.options,n)&&j(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,je),observer:this});const o=this.hasListeners();o&&Fv(j(this,je),s,this.options,n)&&Oe(this,Be,Jo).call(this),this.updateResult(),o&&(j(this,je)!==s||un(this.options.enabled,j(this,je))!==un(n.enabled,j(this,je))||Xr(this.options.staleTime,j(this,je))!==Xr(n.staleTime,j(this,je)))&&Oe(this,Be,gh).call(this);const l=Oe(this,Be,yh).call(this);o&&(j(this,je)!==s||un(this.options.enabled,j(this,je))!==un(n.enabled,j(this,je))||l!==j(this,Hr))&&Oe(this,Be,vh).call(this,l)}getOptimisticResult(t){const n=j(this,Ut).getQueryCache().build(j(this,Ut),t),s=this.createResult(n,t);
120return lk(this,s)&&(re(this,Ot,s),re(this,Li,this.options),re(this,js,j(this,je).state)),s}getCurrentResult(){return j(this,Ot)}trackResult(t,n){return new Proxy(t,{get:(s,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&j(this,ir).status==="pending"&&j(this,ir).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,o))})}trackProp(t){j(this,Bi).add(t)}getCurrentQuery(){return j(this,je)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=j(this,Ut).defaultQueryOptions(t),s=j(this,Ut).getQueryCache().build(j(this,Ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return Oe(this,Be,Jo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,Ot)))}createResult(t,n){var Z;const s=j(this,je),o=this.options,l=j(this,Ot),c=j(this,js),u=j(this,Li),h=t!==s?t.state:j(this,Aa),{state:m}=t;let g={...m},w=!1,C;if(n._optimisticResults){const K=this.hasListeners(),ie=!K&&Bv(t,n),me=K&&Fv(t,s,n,o);(ie||me)&&(g={...g,...sS(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:x,status:S}=g;C=g.data;let T=!1;if(n.placeholderData!==void 0&&C===void 0&&S==="pending"){let K;l!=null&&l.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(K=l.data,T=!0):K=typeof n.placeholderData=="function"?n.placeholderData((Z=j(this,Di))==null?void 0:Z.state.data,j(this,Di)):n.placeholderData,K!==void 0&&(S="success",C=hh(l==null?void 0:l.data,K,n),w=!0)}if(n.select&&C!==void 0&&!T)if(l&&C===(c==null?void 0:c.data)&&n.select===j(this,Ta))C=j(this,Ii);else try{re(this,Ta,n.select),C=n.select(C),C=hh(l==null?void 0:l.data,C,n),re(this,Ii,C),re(this,Wr,null)}catch(K){re(this,Wr,K)}j(this,Wr)&&(E=j(this,Wr),C=j(this,Ii),x=Date.now(),S="error");const k=g.fetchStatus==="fetching",P=S==="pending",R=S==="error",O=P&&k,$=C!==void 0,D={status:S,fetchStatus:g.fetchStatus,isPending:P,isSuccess:S==="success",isError:R,isInitialLoading:O,isLoading:O,data:C,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:x,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!P,isLoadingError:R&&!$,isPaused:g.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:R&&$,isStale:bp(t,n),refetch:this.refetch,promise:j(this,ir),isEnabled:un(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const K=fe=>{D.status==="error"?fe.reject(D.error):D.data!==void 0&&fe.resolve(D.data)},ie=()=>{const fe=re(this,ir,D.promise=ph());K(fe)},me=j(this,ir);switch(me.status){case"pending":t.queryHash===s.queryHash&&K(me);break;case"fulfilled":(D.status==="error"||D.data!==me.value)&&ie();break;case"rejected":(D.status!=="error"||D.error!==me.reason)&&ie();break}}return D}updateResult(){const t=j(this,Ot),n=this.createResult(j(this,je),this.options);if(re(this,js,j(this,je).state),re(this,Li,this.options),j(this,js).data!==void 0&&re(this,Di,j(this,je)),dh(n,t))return;re(this,Ot,n);const s=()=>
vendor: 7,110 bytes, line 120
120{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!j(this,Bi).size)return!0;const c=new Set(l??j(this,Bi));return this.options.throwOnError&&c.add("error"),Object.keys(j(this,Ot)).some(u=>{const f=u;return j(this,Ot)[f]!==t[f]&&c.has(f)})};Oe(this,Be,iS).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,Be,wh).call(this)}},Ut=new WeakMap,je=new WeakMap,Aa=new WeakMap,Ot=new WeakMap,js=new WeakMap,Li=new WeakMap,ir=new WeakMap,Wr=new WeakMap,Ta=new WeakMap,Ii=new WeakMap,Di=new WeakMap,Ms=new WeakMap,Ls=new WeakMap,Hr=new WeakMap,Bi=new WeakMap,Be=new WeakSet,Jo=function(t){Oe(this,Be,bh).call(this);let n=j(this,je).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(zt)),n},gh=function(){Oe(this,Be,xh).call(this);const t=Xr(this.options.staleTime,j(this,je));if(Vs||j(this,Ot).isStale||!uh(t))return;const s=Jx(j(this,Ot).dataUpdatedAt,t)+1;re(this,Ms,As.setTimeout(()=>{j(this,Ot).isStale||this.updateResult()},s))},yh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,je)):this.options.refetchInterval)??!1},vh=function(t){Oe(this,Be,Sh).call(this),re(this,Hr,t),!(Vs||un(this.options.enabled,j(this,je))===!1||!uh(j(this,Hr))||j(this,Hr)===0)&&re(this,Ls,As.setInterval(()=>{(this.options.refetchIntervalInBackground||Sp.isFocused())&&Oe(this,Be,Jo).call(this)},j(this,Hr)))},wh=function(){Oe(this,Be,gh).call(this),Oe(this,Be,vh).call(this,Oe(this,Be,yh).call(this))},xh=function(){j(this,Ms)&&(As.clearTimeout(j(this,Ms)),re(this,Ms,void 0))},Sh=function(){j(this,Ls)&&(As.clearInterval(j(this,Ls)),re(this,Ls,void 0))},bh=function(){const t=j(this,Ut).getQueryCache().build(j(this,Ut),this.options);if(t===j(this,je))return;const n=j(this,je);re(this,je,t),re(this,Aa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},iS=function(t){St.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(j(this,Ot))}),j(this,Ut).getQueryCache().notify({query:j(this,je),type:"observerResultsUpdated"})})},Ex);function ak(e,t){return un(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bv(e,t){return ak(e,t)||e.state.data!==void 0&&Eh(e,t,t.refetchOnMount)}function Eh(e,t,n){if(un(t.enabled,e)!==!1&&Xr(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&bp(e,t)}return!1}function Fv(e,t,n,s){return(e!==t||un(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&bp(e,n)}function bp(e,t){return un(t.enabled,e)!==!1&&e.isStaleByTime(Xr(t.staleTime,e))}function lk(e,t){return!dh(e.getCurrentResult(),t)}function Vv(e){return{onFetch:(t,n)=>{var m,g,w,C,E;const s=t.options,o=(w=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,l=((C=t.state.data)==null?void 0:C.pages)||[],c=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let x=!1;const S=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},T=eS(t.options,t.fetchOptions),k=async(P,R,O)=>{if(x)return Promise.reject();if(R==null&&P.pages.length)return Promise.resolve(P);const U=(()=>{const ie={client:t.client,queryKey:t.queryKey,pageParam:R,direction:O?"backward":"forward",meta:t.options.meta};return S(ie),ie})(),D=await T(U),{maxPages:Z}=t.options,K=O?JP:XP;return{pages:K(P.pages,D,Z),pageParams:K(P.pageParams,R,Z)}};if(o&&l.length){const P=o==="backward",R=P?ck:Uv,O={pages:l,pageParams:c},$=R(s,O);u=await k(O,$,P)}else{const P=e??l.length;do{const R=f===0?c[0]??s.initialPageParam:Uv(s,u);if(f>0&&R==null)break;u=await k(u,R),f++}while(f<P)}return u};t.options.persister?t.fetchFn=()=>{var x,S;return(S=(x=t.options).persister)==null?void 0:S.call(x,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function Uv(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function ck(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Pa,Ln,jt,Is,In,Dr,Cx,uk=(Cx=class extends rS{constructor(t){super();we(this,In);we(this,Pa);we(this,Ln);we(this,jt);we(this,Is);re(this,Pa,t.client),this.mutationId=t.mutationId,re(this,jt,t.mutationCache),re(this,Ln,[]),this.state=t.state||dk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Ln).includes(t)||(j(this,Ln).push(t),this.clearGcTimeout(),j(this,jt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){re(this,Ln,j(this,Ln).filter(n=>n!==t)),this.scheduleGc(),j(this,jt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Ln).length||(this.state.status==="pending"?this.scheduleGc():j(this,jt).remove(this))}continue(){var t;return((t=j(this,Is))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,u,f,h,m,g,w,C,E,x,S,T,k,P,R,O,$,U,D,Z;const n=()=>{Oe(this,In,Dr).call(this,{type:"continue"})},s={client:j(this,Pa),meta:this.options.meta,mutationKey:this.options.mutationKey};re(this,Is,nS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(K,ie)=>{Oe(this,In,Dr).call(this,{type:"failed",failureCount:K,error:ie})},onPause:()=>{Oe(this,In,Dr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,jt).canRun(this)}));const o=this.state.status==="pending",l=!j(this,Is).canStart();try{if(o)n();else{Oe(this,In,Dr).call(this,{type:"pending",variables:t,isPaused:l}),await((u=(c=j(this,jt).config).onMutate)==null?void 0:u.call(c,t,this,s));const ie=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,t,s));ie!==this.state.context&&Oe(this,In,Dr).call(this,{type:"pending",context:ie,variables:t,isPaused:l})}const K=await j(this,Is).start();return await((g=(m=j(this,jt).config).onSuccess)==null?void 0:g.call(m,K,t,this.state.context,this,s)),await((C=(w=this.options).onSuccess)==null?void 0:C.call(w,K,t,this.state.context,s)),await((x=(E=j(this,jt).config).onSettled)==null?void 0:x.call(E,K,null,this.state.variables,this.state.context,this,s)),await((T=(S=this.options).onSettled)==null?void 0:T.call(S,K,null,t,this.state.context,s)),Oe(this,In,Dr).call(this,{type:"success",data:K}),K}catch(K){try{throw await((P=(k=j(this,jt).config).onError)==null?void 0:P.call(k,K,t,this.state.context,this,s)),await((O=(R=this.options).onError)==null?void 0:O.call(R,K,t,this.state.context,s)),await((U=($=j(this,jt).config).onSettled)==null?void 0:U.call($,void 0,K,this.state.variables,this.state.context,this,s)),await((Z=(D=this.options).onSettled)==null?void 0:Z.call(D,void 0,K,t,this.state.context,s)),K}finally{Oe(this,In,Dr).call(this,{type:"error",error:K}
120)}}finally{j(this,jt).runNext(this)}}},Pa=new WeakMap,Ln=new WeakMap,jt=new WeakMap,Is=new WeakMap,In=new WeakSet,Dr=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),St.batch(()=>{j(this,Ln).forEach(s=>{s.onMutationUpdate(t)}),j(this,jt).notify({mutation:this,type:"updated",action:t})})},Cx);function dk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var or,En,ka,Ax,fk=(Ax=class extends Ra{constructor(t={}){super();we(this,or);we(this,En);we(this,ka);this.config=t,re(this,or,new Set),re(this,En,new Map),re(this,ka,0)}build(t,n,s){const o=new uk({client:t,mutationCache:this,mutationId:++ec(this,ka)._,options:t.defaultMutationOptions(n),state:s});return this.add(o),o}add(t){j(this,or).add(t);const n=sc(t);if(typeof n=="string"){const s=j(this,En).get(n);s?s.push(t):j(this,En).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,or).delete(t)){const n=sc(t);if(typeof n=="string"){const s=j(this,En).get(n);if(s)if(s.length>1){const o=s.indexOf(t);o!==-1&&s.splice(o,1)}else s[0]===t&&j(this,En).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=sc(t);if(typeof n=="string"){const s=j(this,En).get(n),o=s==null?void 0:s.find(l=>l.state.status==="pending");return!o||o===t}else return!0}runNext(t){var s;const n=sc(t);if(typeof n=="string"){const o=(s=j(this,En).get(n))==null?void 0:s.find(l=>
vendor: 4,791 bytes, line 120
120l!==t&&l.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{j(this,or).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,or).clear(),j(this,En).clear()})}getAll(){return Array.from(j(this,or))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Mv(n,s))}findAll(t={}){return this.getAll().filter(n=>Mv(t,n))}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return St.batch(()=>Promise.all(t.map(n=>n.continue().catch(zt))))}},or=new WeakMap,En=new WeakMap,ka=new WeakMap,Ax);function sc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Dn,Tx,hk=(Tx=class extends Ra{constructor(t={}){super();we(this,Dn);this.config=t,re(this,Dn,new Map)}build(t,n,s){const o=n.queryKey,l=n.queryHash??wp(o,n);let c=this.get(l);return c||(c=new ik({client:t,queryKey:o,queryHash:l,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(c)),c}add(t){j(this,Dn).has(t.queryHash)||(j(this,Dn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,Dn).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,Dn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,Dn).get(t)}getAll(){return[...j(this,Dn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>jv(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>jv(t,s)):n}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dn=new WeakMap,Tx),Je,qr,Kr,Fi,Vi,Gr,Ui,zi,Px,pk=(Px=class{constructor(e={}){we(this,Je);we(this,qr);we(this,Kr);we(this,Fi);we(this,Vi);we(this,Gr);we(this,Ui);we(this,zi);re(this,Je,e.queryCache||new hk),re(this,qr,e.mutationCache||new fk),re(this,Kr,e.defaultOptions||{}),re(this,Fi,new Map),re(this,Vi,new Map),re(this,Gr,0)}mount(){ec(this,Gr)._++,j(this,Gr)===1&&(re(this,Ui,Sp.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Je).onFocus())})),re(this,zi,Vc.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Je).onOnline())})))}unmount(){var e,t;ec(this,Gr)._--,j(this,Gr)===0&&((e=j(this,Ui))==null||e.call(this),re(this,Ui,void 0),(t=j(this,zi))==null||t.call(this),re(this,zi,void 0))}isFetching(e){return j(this,Je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,qr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Je).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,Je).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Xr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return j(this,Je).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),o=j(this,Je).get(s.queryHash),l=o==null?void 0:o.state.data,c=GP(t,l);if(c!==void 0)return j(this,Je).build(this,s).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return St.batch(()=>j(this,Je).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Je).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,Je);St.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,Je);return St.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=St.batch(()=>j(this,Je).findAll(e).map(o=>o.cancel(n)));return Promise.all(s).then(zt).catch(zt)}invalidateQueries(e,t={}){return St.batch(()=>(j(this,Je).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=St.batch(()=>j(this,Je).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(zt)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,Je).build(this,t);return n.isStaleByTime(Xr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(zt).catch(zt)}
120fetchInfiniteQuery(e){return e.behavior=Vv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(zt).catch(zt)}ensureInfiniteQueryData(e){return e.behavior=Vv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vc.isOnline()?j(this,qr).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Je)}getMutationCache(){return j(this,qr)}getDefaultOptions(){return j(this,Kr)}setDefaultOptions(e){re(this,Kr,e)}setQueryDefaults(e,t){j(this,Fi).set(fa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,Fi).values()],n={};return t.forEach(s=>{ha(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){j(this,Vi).set(fa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Vi).values()],n={};return t.forEach(s=>{ha(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Kr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Kr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,Je).clear(),j(this,qr).clear()}},Je=new WeakMap,qr=new WeakMap,Kr=new WeakMap,Fi=new WeakMap,Vi=new WeakMap,Gr=new WeakMap,Ui=new WeakMap,zi=new WeakMap,Px),oS=b.createContext(void 0),mk=e=>{const t=b.useContext(oS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gk=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(oS.Provider,{value:e,children:t})),aS=b.createContext(!1),yk=()=>b.useContext(aS);aS.Provider;function vk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var wk=b.createContext(vk()),xk=()=>b.useContext(wk),Sk=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},bk=e=>{b.useEffect(()=>{e.clearReset()},[e])},Ek=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||ZP(n,[e.error,s])),Ck=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>n(s(...o)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ak=(e,t)=>e.isLoading&&e.isFetching&&!t,Tk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Pk(e,t,n){var g,w,C,E,x;const s=yk(),o=xk(),l=mk(),c=l.defaultQueryOptions(e);(w=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||w.call(g,c),c._optimisticResults=s?"isRestoring":"optimistic",Ck(c),Sk(c,o),bk(o);const u=!l.getQueryCache().get(c.queryHash),[f]=b.useState(()=>new t(l,c)),h=f.getOptimisticResult(c),m=!s&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const T=m?f.subscribe(St.batchCalls(S)):zt;return f.updateResult(),T},[f,m]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),b.useEffect(()=>{f.setOptions(c)},[c,f]),Tk(c,h))throw zv(c,f,o);if(Ek({result:h,errorResetBoundary:o,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw h.error;if((E=(C=l.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||E.call(C,c,h),c.experimental_prefetchInRender&&!Vs&&Ak(h,s)){const S=u?zv(c,f,o):(x=l.getQueryCache().get(c.queryHash))==null?void 0:x.promise;S==null||S.catch(zt).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?h:f.trackResult(h)}function kk(e,t){return Pk(e,ok)}const Rk=new pk({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Na=kx();const Nk=fp(Na);/**
121 * @remix-run/router v1.23.0
122 *
123 * Copyright (c) Remix Software Inc.
124 *
125 * This source code is licensed under the MIT license found in the
126 * LICENSE.md file in the root directory of this source tree.
127 *
128 * @license MIT
129 */function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},pa.apply(this,arguments)}var Qr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qr||(Qr={}));const $v="popstate";function _k(e){e===void 0&&(e={});function t(s,o){let{pathname:l,search:c,hash:u}=s.location;return Ch("",{pathname:l,search:c,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 4,515 bytes, line 129
129function n(s,o){return typeof o=="string"?o:Uc(o)}return jk(t,n,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ok(){return Math.random().toString(36).substr(2,8)}function Wv(e,t){return{usr:e.state,key:e.key,idx:t}}function Ch(e,t,n,s){return n===void 0&&(n=null),pa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yi(t):t,{state:n,key:t&&t.key||s||Ok()})}function Uc(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Yi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function jk(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:l=!1}=s,c=o.history,u=Qr.Pop,f=null,h=m();h==null&&(h=0,c.replaceState(pa({},c.state,{idx:h}),""));function m(){return(c.state||{idx:null}).idx}function g(){u=Qr.Pop;let S=m(),T=S==null?null:S-h;h=S,f&&f({action:u,location:x.location,delta:T})}function w(S,T){u=Qr.Push;let k=Ch(x.location,S,T);h=m()+1;let P=Wv(k,h),R=x.createHref(k);try{c.pushState(P,"",R)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(R)}l&&f&&f({action:u,location:x.location,delta:1})}function C(S,T){u=Qr.Replace;let k=Ch(x.location,S,T);h=m();let P=Wv(k,h),R=x.createHref(k);c.replaceState(P,"",R),l&&f&&f({action:u,location:x.location,delta:0})}function E(S){let T=o.location.origin!=="null"?o.location.origin:o.location.href,k=typeof S=="string"?S:Uc(S);return k=k.replace(/ $/,"%20"),ot(T,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,T)}let x={get action(){return u},get location(){return e(o,c)},listen(S){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener($v,g),f=S,()=>{o.removeEventListener($v,g),f=null}},createHref(S){return t(o,S)},createURL:E,encodeLocation(S){let T=E(S);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:w,replace:C,go(S){return c.go(S)}};return x}var Hv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hv||(Hv={}));function Mk(e,t,n){return n===void 0&&(n="/"),Lk(e,t,n)}function Lk(e,t,n,s){let o=typeof t=="string"?Yi(t):t,l=Ep(o.pathname||"/",n);if(l==null)return null;let c=cS(e);Ik(c);let u=null;for(let f=0;u==null&&f<c.length;++f){let h=Gk(l);u=Hk(c[f],h)}return u}function cS(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(l,c,u)=>{let f={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};f.relativePath.startsWith("/")&&(ot(f.relativePath.startsWith(s),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(s.length));let h=Jr([s,f.relativePath]),m=n.concat(f);l.children&&l.children.length>0&&(ot(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),cS(l.children,t,m,h)),!(l.path==null&&!l.index)&&t.push({path:h,score:$k(h,l.index),routesMeta:m})};return e.forEach((l,c)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))o(l,c);else for(let f of uS(l.path))o(l,c,f)}),t}function uS(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(s.length===0)return o?[l,""]:[l];let c=uS(s.join("/")),u=[];return u.push(...c.map(f=>f===""?l:[l,f].join("/"))),o&&u.push(...c),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function Ik(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Wk(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const Dk=/^:[\w-]+$/,Bk=3,Fk=2,Vk=1,Uk=10,zk=-2,qv=e=>e==="*";function $k(e,t){let n=e.split("/"),s=n.length;return n.some(qv)&&(s+=zk),t&&(s+=Fk),n.filter(o=>!qv(o)).reduce((o,l)=>o+(Dk.test(l)?Bk:l===""?Vk:Uk),s)}function Wk(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function Hk(e,t,n){let{routesMeta:s}=e,o={},l="/",c=[];for(let u=0;u<s.length;++u){let f=s[u],h=u===s.length-1,m=l==="/"?t:t.slice(l.length)||"/",g=qk({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),w=f.route;if(!g)return null;
vendor: 5,937 bytes, lines 129-138
129Object.assign(o,g.params),c.push({params:o,pathname:Jr([l,g.pathname]),pathnameBase:Jk(Jr([l,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(l=Jr([l,g.pathnameBase]))}return c}function qk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=Kk(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],c=l.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:s.reduce((h,m,g)=>{let{paramName:w,isOptional:C}=m;if(w==="*"){let x=u[g]||"";c=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const E=u[g];return C&&!E?h[w]=void 0:h[w]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:c,pattern:e}}function Kk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),lS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,f)=>(s.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function Gk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ep(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function Qk(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?Yi(e):e;return{pathname:n?n.startsWith("/")?n:Yk(n,t):t,search:Zk(s),hash:eR(o)}}function Yk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Tf(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"].  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 Xk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dS(e,t){let n=Xk(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function fS(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=Yi(e):(o=pa({},e),ot(!o.pathname||!o.pathname.includes("?"),Tf("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),Tf("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),Tf("#","search","hash",o)));let l=e===""||o.pathname==="",c=l?"/":o.pathname,u;if(c==null)u=n;else{let g=t.length-1;if(!s&&c.startsWith("..")){let w=c.split("/");for(;w[0]==="..";)w.shift(),g-=1;o.pathname=w.join("/")}u=g>=0?t[g]:"/"}let f=Qk(o,u),h=c&&c!=="/"&&c.endsWith("/"),m=(l||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),Jk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hS=["post","put","patch","delete"];new Set(hS);const nR=["get",...hS];new Set(nR);/**
130 * React Router v6.30.1
131 *
132 * Copyright (c) Remix Software Inc.
133 *
134 * This source code is licensed under the MIT license found in the
135 * LICENSE.md file in the root directory of this source tree.
136 *
137 * @license MIT
138 */function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ma.apply(this,arguments)}const Cp=b.createContext(null),rR=b.createContext(null),Hs=b.createContext(null),nu=b.createContext(null),qs=b.createContext({outlet:null,matches:[],isDataRoute:!1}),pS=b.createContext(null);function sR(e,t){let{relative:n}=t===void 0?{}:t;_a()||ot(!1);let{basename:s,navigator:o}=b.useContext(Hs),{hash:l,pathname:c,search:u}=gS(e,{relative:n}),f=c;return s!=="/"&&(f=c==="/"?s:Jr([s,c])),o.createHref({pathname:f,search:u,hash:l})}function _a(){return b.useContext(nu)!=null}function Ks(){return _a()||ot(!1),b.useContext(nu).location}function mS(e){b.useContext(Hs).static||b.useLayoutEffect(e)}function iR(){let{isDataRoute:e}=b.useContext(qs);return e?vR():oR()}function oR(){_a()||ot(!1);let e=b.useContext(Cp),{basename:t,future:n,navigator:s}=b.useContext(Hs),{matches:o}=b.useContext(qs),{pathname:l}=Ks(),c=JSON.stringify(dS(o,n.v7_relativeSplatPath)),u=b.useRef(!1);return mS(()=>{u.current=!0}),b.useCallback(function(h,m){if(m===void 0&&(m={}),!u.current)return;if(typeof h=="number"){s.go(h);return}let g=fS(h,JSON.parse(c),l,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Jr([t,g.pathname])),(m.replace?s.replace:s.push)(g,m.state,m)},[t,s,c,l,e])}function gS(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=b.useContext(Hs),{matches:o}=b.useContext(qs),{pathname:l}=Ks(),c=JSON.stringify(dS(o,s.v7_relativeSplatPath));return b.useMemo(()=>fS(e,JSON.parse(c),l,n==="path"),[e,c,l,n])}function aR(e,t){return lR(e,t)}function lR(e,t,n,s){_a()||ot(!1);let{navigator:o}=b.useContext(Hs),{matches:l}=b.useContext(qs),c=l[l.length-1],u=c?c.params:{};c&&c.pathname;let f=c?c.pathnameBase:"/";c&&c.route;let h=Ks(),m;if(t){var g;let S=typeof t=="string"?Yi(t):t;f==="/"||(g=S.pathname)!=null&&g.startsWith(f)||ot(!1),m=S}
vendor: 5,119 bytes, line 138
138else m=h;let w=m.pathname||"/",C=w;if(f!=="/"){let S=f.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(S.length).join("/")}let E=Mk(e,{pathname:C}),x=hR(E&&E.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Jr([f,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:Jr([f,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,n,s);return t&&x?b.createElement(nu.Provider,{value:{location:ma({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Qr.Pop}},x):x}function cR(){let e=yR(),t=tR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,null)}const uR=b.createElement(cR,null);class dR extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(qs.Provider,{value:this.props.routeContext},b.createElement(pS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fR(e){let{routeContext:t,match:n,children:s}=e,o=b.useContext(Cp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(qs.Provider,{value:t},s)}function hR(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=s)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let c=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let m=c.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);m>=0||ot(!1),c=c.slice(0,Math.min(c.length,m+1))}let f=!1,h=-1;if(n&&s&&s.v7_partialHydration)for(let m=0;m<c.length;m++){let g=c[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=m),g.route.id){let{loaderData:w,errors:C}=n,E=g.route.loader&&w[g.route.id]===void 0&&(!C||C[g.route.id]===void 0);if(g.route.lazy||E){f=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((m,g,w)=>{let C,E=!1,x=null,S=null;n&&(C=u&&g.route.id?u[g.route.id]:void 0,x=g.route.errorElement||uR,f&&(h<0&&w===0?(wR("route-fallback"),E=!0,S=null):h===w&&(E=!0,S=g.route.hydrateFallbackElement||null)));let T=t.concat(c.slice(0,w+1)),k=()=>{let P;return C?P=x:E?P=S:g.route.Component?P=b.createElement(g.route.Component,null):g.route.element?P=g.route.element:P=m,b.createElement(fR,{match:g,routeContext:{outlet:m,matches:T,isDataRoute:n!=null},children:P})};return n&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?b.createElement(dR,{location:n.location,revalidation:n.revalidation,component:x,error:C,children:k(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):k()},null)}var yS=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(yS||{}),vS=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(vS||{});function pR(e){let t=b.useContext(Cp);return t||ot(!1),t}function mR(e){let t=b.useContext(rR);return t||ot(!1),t}function gR(e){let t=b.useContext(qs);return t||ot(!1),t}function wS(e){let t=gR(),n=t.matches[t.matches.length-1];return n.route.id||ot(!1),n.route.id}function yR(){var e;let t=b.useContext(pS),n=mR(),s=wS();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function vR(){let{router:e}=pR(yS.UseNavigateStable),t=wS(vS.UseNavigateStable),n=b.useRef(!1);return mS(()=>{n.current=!0}),b.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ma({fromRouteId:t},l)))},[e,t])}const Kv={};function wR(e,t,n){Kv[e]||(Kv[e]=!0)}function xR(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Sc(e){ot(!1)}function SR(e){let{basename:t="/",children:n=null,location:s,navigationType:o=Qr.Pop,navigator:l,static:c=!1,future:u}=e;_a()&&ot(!1);let f=t.replace(/^\/*/,"/"),h=b.useMemo(()=>({basename:f,navigator:l,static:c,future:ma({v7_relativeSplatPath:!1},u)}),[f,u,l,c]);typeof s=="string"&&(s=Yi(s));
138let{pathname:m="/",search:g="",hash:w="",state:C=null,key:E="default"}=s,x=b.useMemo(()=>{let S=Ep(m,f);return S==null?null:{location:{pathname:S,search:g,hash:w,state:C,key:E},navigationType:o}},[f,m,g,w,C,E,o]);return x==null?null:b.createElement(Hs.Provider,{value:h},b.createElement(nu.Provider,{children:n,value:x}))}function bR(e){let{children:t,location:n}=e;return aR(Ah(t),n)}new Promise(()=>{});function Ah(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(s,o)=>{if(!b.isValidElement(s))return;let l=[...t,o];if(s.type===b.Fragment){n.push.apply(n,Ah(s.props.children,l));return}s.type!==Sc&&ot(!1),!s.props.index||!s.props.children||ot(!1);let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=Ah(s.props.children,l)),n.push(c)}),n}/**
139 * React Router DOM v6.30.1
140 *
141 * Copyright (c) Remix Software Inc.
142 *
143 * This source code is licensed under the MIT license found in the
144 * LICENSE.md file in the root directory of this source tree.
145 *
146 * @license MIT
147 */function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Th.apply(this,arguments)}function ER(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,l;for(l=0;l<s.length;l++)o=s[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function CR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AR(e,t){return e.button===0&&(!t||t==="_self")&&!CR(e)}const TR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],PR="6";try{window.__reactRouterVersion=PR}catch{}const kR="startTransition",Gv=pp[kR];function RR(e){let{basename:t,children:n,future:s,window:o}=e,l=b.useRef();l.current==null&&(l.current=_k({window:o,v5Compat:!0}));let c=l.current,[u,f]=b.useState({action:c.action,location:c.location}),{v7_startTransition:h}=s||{},m=b.useCallback(g=>{h&&Gv?Gv(()=>f(g)):f(g)},[f,h]);return b.useLayoutEffect(()=>c.listen(m),[c,m]),b.useEffect(()=>xR(s),[s]),b.createElement(SR,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:s})}const NR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_R=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sr=b.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:l,replace:c,state:u,target:f,to:h,preventScrollReset:m,viewTransition:g}=t,w=ER(t,TR),{basename:C}=b.useContext(Hs),E,x=!1;if(typeof h=="string"&&_R.test(h)&&(E=h,NR))try{let P=new URL(window.location.href),R=h.startsWith("//")?new URL(P.protocol+h):new URL(h),O=Ep(R.pathname,C);R.origin===P.origin&&O!=null?h=O+R.search+R.hash:x=!0}catch{}let S=sR(h,{relative:o}),T=OR(h,{replace:c,state:u,target:f,preventScrollReset:m,relative:o,viewTransition:g});function k(P){s&&s(P),P.defaultPrevented||T(P)}return b.createElement("a",Th({},w,{href:E||S,onClick:x||l?s:k,ref:n,target:f}))});var Qv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qv||(Qv={}));var Yv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yv||(Yv={}));function OR(e,t){let{target:n,replace:s,state:o,preventScrollReset:l,relative:c,viewTransition:u}=t===void 0?{}:t,f=iR(),h=Ks(),m=gS(e,{relative:c}
vendor: 4,454 bytes, line 147
147);return b.useCallback(g=>{if(AR(g,n)){g.preventDefault();let w=s!==void 0?s:Uc(h)===Uc(m);f(e,{replace:w,state:o,preventScrollReset:l,relative:c,viewTransition:u})}},[h,f,m,s,o,n,e,l,c,u])}function xS(e,t){return function(){return e.apply(t,arguments)}}const{toString:jR}=Object.prototype,{getPrototypeOf:Ap}=Object,{iterator:ru,toStringTag:SS}=Symbol,su=(e=>t=>{const n=jR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>su(t)===e),iu=e=>t=>typeof t===e,{isArray:Xi}=Array,$i=iu("undefined");function Oa(e){return e!==null&&!$i(e)&&e.constructor!==null&&!$i(e.constructor)&&$t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bS=Pn("ArrayBuffer");function MR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bS(e.buffer),t}const LR=iu("string"),$t=iu("function"),ES=iu("number"),ja=e=>e!==null&&typeof e=="object",IR=e=>e===!0||e===!1,bc=e=>{if(su(e)!=="object")return!1;const t=Ap(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(SS in e)&&!(ru in e)},DR=e=>{if(!ja(e)||Oa(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},BR=Pn("Date"),FR=Pn("File"),VR=Pn("Blob"),UR=Pn("FileList"),zR=e=>ja(e)&&$t(e.pipe),$R=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$t(e.append)&&((t=su(e))==="formdata"||t==="object"&&$t(e.toString)&&e.toString()==="[object FormData]"))},WR=Pn("URLSearchParams"),[HR,qR,KR,GR]=["ReadableStream","Request","Response","Headers"].map(Pn),QR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Xi(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(Oa(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let u;for(s=0;s<c;s++)u=l[s],t.call(null,e[u],u,e)}}function CS(e,t){if(Oa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,AS=e=>!$i(e)&&e!==Ts;function Ph(){const{caseless:e,skipUndefined:t}=AS(this)&&this||{},n={},s=(o,l)=>{const c=e&&CS(n,l)||l;bc(n[c])&&bc(o)?n[c]=Ph(n[c],o):bc(o)?n[c]=Ph({},o):Xi(o)?n[c]=o.slice():(!t||!$i(o))&&(n[c]=o)};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&Ma(arguments[o],s);return n}const YR=(e,t,n,{allOwnKeys:s}={})=>(Ma(t,(o,l)=>{n&&$t(o)?e[l]=xS(o,n):e[l]=o},{allOwnKeys:s}),e),XR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JR=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ZR=(e,t,n,s)=>{let o,l,c;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)c=o[l],(!s||s(c,e,t))&&!u[c]&&(t[c]=e[c],u[c]=!0);e=n!==!1&&Ap(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},eN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},tN=e=>{if(!e)return null;if(Xi(e))return e;let t=e.length;if(!ES(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ap(Uint8Array)),rN=(e,t)=>{const s=(e&&e[ru]).call(e);let o;for(;(o=s.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},sN=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},iN=Pn("HTMLFormElement"),oN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),Xv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),aN=Pn("RegExp"),TS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ma(n,(o,l)=>{let c;(c=t(o,l,e))!==!1&&(s[l]=c||o)}),Object.defineProperties(e,s)},lN=e=>{TS(e,(t,n)=>{if($t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if($t(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cN=(e,t)=>{const n={},s=o=>{o.forEach(l=>{n[l]=!0})};return Xi(e)?s(e):s(String(e).split(t)),n},uN=()=>{},dN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fN(e){return!!(e&&$t(e.append)&&e[SS]==="FormData"&&e[ru])}const hN=e=>{const t=new Array(10),n=(s,o)=>
vendor: 4,242 bytes, line 147
147{if(ja(s)){if(t.indexOf(s)>=0)return;if(Oa(s))return s;if(!("toJSON"in s)){t[o]=s;const l=Xi(s)?[]:{};return Ma(s,(c,u)=>{const f=n(c,o+1);!$i(f)&&(l[u]=f)}),t[o]=void 0,l}}return s};return n(e,0)},pN=Pn("AsyncFunction"),mN=e=>e&&(ja(e)||$t(e))&&$t(e.then)&&$t(e.catch),PS=((e,t)=>e?setImmediate:t?((n,s)=>(Ts.addEventListener("message",({source:o,data:l})=>{o===Ts&&l===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Ts.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$t(Ts.postMessage)),gN=typeof queueMicrotask<"u"?queueMicrotask.bind(Ts):typeof process<"u"&&process.nextTick||PS,yN=e=>e!=null&&$t(e[ru]),z={isArray:Xi,isArrayBuffer:bS,isBuffer:Oa,isFormData:$R,isArrayBufferView:MR,isString:LR,isNumber:ES,isBoolean:IR,isObject:ja,isPlainObject:bc,isEmptyObject:DR,isReadableStream:HR,isRequest:qR,isResponse:KR,isHeaders:GR,isUndefined:$i,isDate:BR,isFile:FR,isBlob:VR,isRegExp:aN,isFunction:$t,isStream:zR,isURLSearchParams:WR,isTypedArray:nN,isFileList:UR,forEach:Ma,merge:Ph,extend:YR,trim:QR,stripBOM:XR,inherits:JR,toFlatObject:ZR,kindOf:su,kindOfTest:Pn,endsWith:eN,toArray:tN,forEachEntry:rN,matchAll:sN,isHTMLForm:iN,hasOwnProperty:Xv,hasOwnProp:Xv,reduceDescriptors:TS,freezeMethods:lN,toObjectSet:cN,toCamelCase:oN,noop:uN,toFiniteNumber:dN,findKey:CS,global:Ts,isContextDefined:AS,isSpecCompliantForm:fN,toJSONObject:hN,isAsyncFn:pN,isThenable:mN,setImmediate:PS,asap:gN,isIterable:yN};function Pe(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(Pe,Error,{toJSON:function(){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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const kS=Pe.prototype,RS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{RS[e]={value:e}});Object.defineProperties(Pe,RS);Object.defineProperty(kS,"isAxiosError",{value:!0});Pe.from=(e,t,n,s,o,l)=>{const c=Object.create(kS);z.toFlatObject(e,c,function(m){return m!==Error.prototype},h=>h!=="isAxiosError");const u=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Pe.call(c,u,f,n,s,o),e&&c.cause==null&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",l&&Object.assign(c,l),c};const vN=null;function kh(e){return z.isPlainObject(e)||z.isArray(e)}function NS(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Jv(e,t,n){return e?e.concat(t).map(function(o,l){return o=NS(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function wN(e){return z.isArray(e)&&!e.some(kh)}const xN=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ou(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,S){return!z.isUndefined(S[x])});const s=n.metaTokens,o=n.visitor||m,l=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if(z.isDate(E))return E.toISOString();if(z.isBoolean(E))return E.toString();if(!f&&z.isBlob(E))throw new Pe("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(E)||z.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function m(E,x,S){let T=E;if(E&&!S&&typeof E=="object"){if(z.endsWith(x,"{}"))x=s?x:x.slice(0,-2),E=JSON.stringify(E);else if(z.isArray(E)&&wN(E)||(z.isFileList(E)||z.endsWith(x,"[]"))&&(T=z.toArray(E)))return x=NS(x),T.forEach(function(P,R){!(z.isUndefined(P)||P===null)&&t.append(c===!0?Jv([x],R,l):c===null?x:x+"[]",h(P))}),!1}return kh(E)?!0:(t.append(Jv(S,x,l),h(E)),!1)}const g=[],w=Object.assign(xN,{defaultVisitor:m,convertValue:h,isVisitable:k
vendor: 4,126 bytes, line 147
147h});function C(E,x){if(!z.isUndefined(E)){if(g.indexOf(E)!==-1)throw Error("Circular reference detected in "+x.join("."));g.push(E),z.forEach(E,function(T,k){(!(z.isUndefined(T)||T===null)&&o.call(t,T,z.isString(k)?k.trim():k,x,w))===!0&&C(T,x?x.concat(k):[k])}),g.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return C(e),t}function Zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Tp(e,t){this._pairs=[],e&&ou(e,this,t)}const _S=Tp.prototype;_S.append=function(t,n){this._pairs.push([t,n])};_S.toString=function(t){const n=t?function(s){return t.call(this,s,Zv)}:Zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function SN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function OS(e,t,n){if(!t)return e;const s=n&&n.encode||SN;z.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let l;if(o?l=o(t,n):l=z.isURLSearchParams(t)?t.toString():new Tp(t,n).toString(s),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class e0{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(s){s!==null&&t(s)})}}const jS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bN=typeof URLSearchParams<"u"?URLSearchParams:Tp,EN=typeof FormData<"u"?FormData:null,CN=typeof Blob<"u"?Blob:null,AN={isBrowser:!0,classes:{URLSearchParams:bN,FormData:EN,Blob:CN},protocols:["http","https","file","blob","url","data"]},Pp=typeof window<"u"&&typeof document<"u",Rh=typeof navigator=="object"&&navigator||void 0,TN=Pp&&(!Rh||["ReactNative","NativeScript","NS"].indexOf(Rh.product)<0),PN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kN=Pp&&window.location.href||"http://localhost",RN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pp,hasStandardBrowserEnv:TN,hasStandardBrowserWebWorkerEnv:PN,navigator:Rh,origin:kN},Symbol.toStringTag,{value:"Module"})),Pt={...RN,...AN};function NN(e,t){return ou(e,new Pt.classes.URLSearchParams,{visitor:function(n,s,o,l){return Pt.isNode&&z.isBuffer(n)?(this.append(s,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function _N(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ON(e){const t={},n=Object.keys(e);let s;const o=n.length;let l;for(s=0;s<o;s++)l=n[s],t[l]=e[l];return t}function MS(e){function t(n,s,o,l){let c=n[l++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),f=l>=n.length;return c=!c&&z.isArray(o)?o.length:c,f?(z.hasOwnProp(o,c)?o[c]=[o[c],s]:o[c]=s,!u):((!o[c]||!z.isObject(o[c]))&&(o[c]=[]),t(n,s,o[c],l)&&z.isArray(o[c])&&(o[c]=ON(o[c])),!u)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(s,o)=>{t(_N(s),o,n,0)}),n}return null}function jN(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const La={transitional:jS,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,l=z.isObject(t);if(l&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return o?JSON.stringify(MS(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(l){if(s.indexOf("application/x-www-form-urlencoded")>-1)return NN(t,this.formSerializer).toString();if((u=z.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ou(u?{"files[]":t}
vendor: 4,258 bytes, lines 147-149
147:t,f&&new f,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),jN(t)):t}],transformResponse:[function(t){const n=this.transitional||La.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(s&&!this.responseType||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(c)throw u.name==="SyntaxError"?Pe.from(u,Pe.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{La.headers[e]={}});const MN=z.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"]),LN=e=>{const t={};let n,s,o;return e&&e.split(`
148`).forEach(function(c){o=c.indexOf(":"),n=c.substring(0,o).trim().toLowerCase(),s=c.substring(o+1).trim(),!(!n||t[n]&&MN[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},t0=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function Ec(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ec):String(e)}function IN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const DN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pf(e,t,n,s,o){if(z.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!z.isString(t)){if(z.isString(s))return t.indexOf(s)!==-1;if(z.isRegExp(s))return s.test(t)}}function BN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function FN(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,l,c){return this[s].call(this,t,o,l,c)},configurable:!0})})}let Wt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function l(u,f,h){const m=Ko(f);if(!m)throw new Error("header name must be a non-empty string");const g=z.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=Ec(u))}const c=(u,f)=>z.forEach(u,(h,m)=>l(h,m,f));if(z.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(z.isString(t)&&(t=t.trim())&&!DN(t))c(LN(t),n);else if(z.isObject(t)&&z.isIterable(t)){let u={},f,h;for(const m of t){if(!z.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[h=m[0]]=(f=u[h])?z.isArray(f)?[...f,m[1]]:[f,m[1]]:m[1]}c(u,n)}else t!=null&&l(n,t,s);return this}get(t,n){if(t=Ko(t),t){const s=z.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return IN(o);if(z.isFunction(n))return n.call(this,o,s);if(z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const s=z.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Pf(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function l(c){if(c=Ko(c),c){const u=z.findKey(s,c);u&&(!n||Pf(s,s[u],u,n))&&(delete s[u],o=!0)}}return z.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const l=n[s];(!t||Pf(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,s={};return z.forEach(this,(o,l)=>{const c=z.findKey(s,l);if(c){n[c]=Ec(o),delete n[l];return}const u=t?BN(l):String(l).trim();u!==l&&delete n[l],n[u]=Ec(o),s[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&z.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
149`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);
vendor: 6,067 bytes, line 149
149return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[t0]=this[t0]={accessors:{}}).accessors,o=this.prototype;function l(c){const u=Ko(c);s[u]||(FN(o,c),s[u]=!0)}return z.isArray(t)?t.forEach(l):l(t),this}};Wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(Wt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});z.freezeMethods(Wt);function kf(e,t){const n=this||La,s=t||n,o=Wt.from(s.headers);let l=s.data;return z.forEach(e,function(u){l=u.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function LS(e){return!!(e&&e.__CANCEL__)}function Ji(e,t,n){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(Ji,Pe,{__CANCEL__:!0});function IS(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Pe("Request failed with status code "+n.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function VN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function UN(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,l=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=s[l];c||(c=h),n[o]=f,s[o]=h;let g=l,w=0;for(;g!==o;)w+=n[g++],g=g%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),h-c<t)return;const C=m&&h-m;return C?Math.round(w*1e3/C):void 0}}function zN(e,t){let n=0,s=1e3/t,o,l;const c=(h,m=Date.now())=>{n=m,o=null,l&&(clearTimeout(l),l=null),e(...h)};return[(...h)=>{const m=Date.now(),g=m-n;g>=s?c(h,m):(o=h,l||(l=setTimeout(()=>{l=null,c(o)},s-g)))},()=>o&&c(o)]}const zc=(e,t,n=3)=>{let s=0;const o=UN(50,250);return zN(l=>{const c=l.loaded,u=l.lengthComputable?l.total:void 0,f=c-s,h=o(f),m=c<=u;s=c;const g={loaded:c,total:u,progress:u?c/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u&&m?(u-c)/h:void 0,event:l,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},n0=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},r0=e=>(...t)=>z.asap(()=>e(...t)),$N=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,WN=Pt.hasStandardBrowserEnv?{write(e,t,n,s,o,l){const c=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),z.isString(s)&&c.push("path="+s),z.isString(o)&&c.push("domain="+o),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function HN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function DS(e,t,n){let s=!HN(t);return e&&(s||n==!1)?qN(e,t):t}const s0=e=>e instanceof Wt?{...e}:e;function Us(e,t){t=t||{};const n={};function s(h,m,g,w){return z.isPlainObject(h)&&z.isPlainObject(m)?z.merge.call({caseless:w},h,m):z.isPlainObject(m)?z.merge({},m):z.isArray(m)?m.slice():m}function o(h,m,g,w){if(z.isUndefined(m)){if(!z.isUndefined(h))return s(void 0,h,g,w)}else return s(h,m,g,w)}function l(h,m){if(!z.isUndefined(m))return s(void 0,m)}function c(h,m){if(z.isUndefined(m)){if(!z.isUndefined(h))return s(void 0,h)}else return s(void 0,m)}function u(h,m,g){if(g in t)return s(h,m);if(g in e)return s(void 0,h)}const f={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,responseEncoding:c,validateStatus:u,headers:(h,m,g)=>o(s0(h),s0(m),g,!0)};return z.forEach(Object.keys({...e,...t}),function(m){const g=f[m]||o,w=g(e[m],t[m],m);z.isUndefined(w)&&g!==u||(n[m]=w)}),n}const BS=e=>{const t=Us({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:l,headers:c,auth:u}=t;if(t.headers=c=Wt.from(c),t.url=OS(DS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),z.isFormData(n)){if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(z.isFunction(n.getHeaders)){const f=n.getHeaders(),h=["content-type","content-length"];Object.entries(f).forEach(([m,g])=>{h.includes(m.toLowerCase())&&c.set(m,g)})}}if(Pt.hasStandardBrowserEnv&&(s&&z.isFunction(s)&&(s=s(t)),s||s!==!1&&$N(t.url))){const f=o&&l&&WN.read(l);f&&c.set(o,f)}return t},KN=typeof XMLHttpRequest<"u",GN=KN&&function(e){return new Promise(function(n,s){const o=BS(e);let l=o.data;const c=Wt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:h}=o,m,g,w,C,E;function x(){C&&C(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function T(){if(!S)return;const P=Wt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),O={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:P,config:e,request:S};IS(function(U){n(U),x()},function(U){s(U),x()},O),S=null}"onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(T)},S.onabort=function(){S&&(s(new Pe("Request aborted",Pe.ECONNABORTED,e,S)),S=null)},S.onerror=function(R){const O=R&&R.message?R.message:"Network Error",$=new Pe(O,Pe.ERR_NETWORK,e,S);$.event=R||null,s($),S=null},S.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||jS;
vendor: 4,846 bytes, line 149
149o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),s(new Pe(R,O.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,S)),S=null},l===void 0&&c.setContentType(null),"setRequestHeader"in S&&z.forEach(c.toJSON(),function(R,O){S.setRequestHeader(O,R)}),z.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),u&&u!=="json"&&(S.responseType=o.responseType),h&&([w,E]=zc(h,!0),S.addEventListener("progress",w)),f&&S.upload&&([g,C]=zc(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",C)),(o.cancelToken||o.signal)&&(m=P=>{S&&(s(!P||P.type?new Ji(null,e,S):P),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const k=VN(o.url);if(k&&Pt.protocols.indexOf(k)===-1){s(new Pe("Unsupported protocol "+k+":",Pe.ERR_BAD_REQUEST,e));return}S.send(l||null)})},QN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const l=function(h){if(!o){o=!0,u();const m=h instanceof Error?h:this.reason;s.abort(m instanceof Pe?m:new Ji(m instanceof Error?m.message:m))}};let c=t&&setTimeout(()=>{c=null,l(new Pe(`timeout ${t} of ms exceeded`,Pe.ETIMEDOUT))},t);const u=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),e=null)};e.forEach(h=>h.addEventListener("abort",l));const{signal:f}=s;return f.unsubscribe=()=>z.asap(u),f}},YN=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},XN=async function*(e,t){for await(const n of JN(e))yield*YN(n,t)},JN=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},i0=(e,t,n,s)=>{const o=XN(e,t);let l=0,c,u=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:m}=await o.next();if(h){u(),f.close();return}let g=m.byteLength;if(n){let w=l+=g;n(w)}f.enqueue(new Uint8Array(m))}catch(h){throw u(h),h}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},o0=64*1024,{isFunction:ic}=z,ZN=(({Request:e,Response:t})=>({Request:e,Response:t}))(z.global),{ReadableStream:a0,TextEncoder:l0}=z.global,c0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},e_=e=>{e=z.merge.call({skipUndefined:!0},ZN,e);const{fetch:t,Request:n,Response:s}=e,o=t?ic(t):typeof fetch=="function",l=ic(n),c=ic(s);if(!o)return!1;const u=o&&ic(a0),f=o&&(typeof l0=="function"?(E=>x=>E.encode(x))(new l0):async E=>new Uint8Array(await new n(E).arrayBuffer())),h=l&&u&&c0(()=>{let E=!1;const x=new n(Pt.origin,{body:new a0,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!x}),m=c&&u&&c0(()=>z.isReadableStream(new s("").body)),g={stream:m&&(E=>E.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!g[E]&&(g[E]=(x,S)=>{let T=x&&x[E];if(T)return T.call(x);throw new Pe(`Response type '${E}' is not supported`,Pe.ERR_NOT_SUPPORT,S)})});const w=async E=>{if(E==null)return 0;if(z.isBlob(E))return E.size;if(z.isSpecCompliantForm(E))return(await new n(Pt.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(z.isArrayBufferView(E)||z.isArrayBuffer(E))return E.byteLength;if(z.isURLSearchParams(E)&&(E=E+""),z.isString(E))return(await f(E)).byteLength},C=async(E,x)=>{const S=z.toFiniteNumber(E.getContentLength());return S??w(x)};return async E=>{let{url:x,method:S,data:T,signal:k,cancelToken:P,timeout:R,onDownloadProgress:O,onUploadProgress:$,responseType:U,headers:D,withCredentials:Z="same-origin",fetchOptions:K}=BS(E),ie=t||fetch;U=U?(U+"").toLowerCase():"text";let me=QN([k,P&&P.toAbortSignal()],R),fe=null;const pe=me&&me.unsubscribe&&(()=>{me.unsubscribe()});let Se;try{if($&&h&&S!=="get"&&S!=="head"&&(Se=await C(D,T))!==0){let L=new n(x,{method:"POST",body:T,duplex:"half"}),W;if(z.isFormData(T)&&(W=L.headers.get("content-type"))&&D.setContentType(W),L.body){const[oe,ae]=n0(Se,zc(r0($)));T=i0(L.body,o0,oe,ae)}}z.isString(Z)||(Z=Z?"include":"omit");const te=l&&"credentials"in n.prototype,ee={...K,signal:me,method:S.toUpperCase(),headers:D.normalize().toJSON(),body:T,duplex:"half",credentials:te?Z:void 0};fe=l&&new n(x,ee);let I=await(l?ie(fe,K):ie(x,ee));const J=m&&(U==="stream"||U==="response");if(m&&(O||J&&pe)){const L={};["status","statusText","headers"].forEach(be=>{L[be]=I[be]});const W=z.toFiniteNumber(I.headers.get("content-length")),[oe,ae]=O&&n0(W,zc(r0(O),!0))||[];I=new s(i0(I.body,o0,oe,()=>{ae&&ae(),pe&&pe()}),L)}U=U||"text";let Y=await g[z.findKey(g,U)||"text"](I,E);return!J&&pe&&pe(),await new Promise((L,W)=>{IS(L,W,{data:Y,headers:Wt.from(I.headers),status:I.status,statusText:I.statusText,config:E,request:fe})})}catch(te){throw pe&&pe(),te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new Pe
vendor: 5,830 bytes, lines 149-152
149("Network Error",Pe.ERR_NETWORK,E,fe),{cause:te.cause||te}):Pe.from(te,te&&te.code,E,fe)}}},t_=new Map,FS=e=>{let t=e?e.env:{};const{fetch:n,Request:s,Response:o}=t,l=[s,o,n];let c=l.length,u=c,f,h,m=t_;for(;u--;)f=l[u],h=m.get(f),h===void 0&&m.set(f,h=u?new Map:e_(t)),m=h;return h};FS();const Nh={http:vN,xhr:GN,fetch:{get:FS}};z.forEach(Nh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const u0=e=>`- ${e}`,n_=e=>z.isFunction(e)||e===null||e===!1,VS={getAdapter:(e,t)=>{e=z.isArray(e)?e:[e];const{length:n}=e;let s,o;const l={};for(let c=0;c<n;c++){s=e[c];let u;if(o=s,!n_(s)&&(o=Nh[(u=String(s)).toLowerCase()],o===void 0))throw new Pe(`Unknown adapter '${u}'`);if(o&&(z.isFunction(o)||(o=o.get(t))))break;l[u||"#"+c]=o}if(!o){const c=Object.entries(l).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?c.length>1?`since :
150`+c.map(u0).join(`
151`):" "+u0(c[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:Nh};function Rf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ji(null,e)}function d0(e){return Rf(e),e.headers=Wt.from(e.headers),e.data=kf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),VS.getAdapter(e.adapter||La.adapter,e)(e).then(function(s){return Rf(e),s.data=kf.call(e,e.transformResponse,s),s.headers=Wt.from(s.headers),s},function(s){return LS(s)||(Rf(e),s&&s.response&&(s.response.data=kf.call(e,e.transformResponse,s.response),s.response.headers=Wt.from(s.response.headers))),Promise.reject(s)})}const US="1.12.2",au={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{au[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const f0={};au.transitional=function(t,n,s){function o(l,c){return"[Axios v"+US+"] Transitional option '"+l+"'"+c+(s?". "+s:"")}return(l,c,u)=>{if(t===!1)throw new Pe(o(c," has been removed"+(n?" in "+n:"")),Pe.ERR_DEPRECATED);return n&&!f0[c]&&(f0[c]=!0,console.warn(o(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,u):!0}};au.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function r_(e,t,n){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const l=s[o],c=t[l];if(c){const u=e[l],f=u===void 0||c(u,l,e);if(f!==!0)throw new Pe("option "+l+" must be "+f,Pe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Pe("Unknown option "+l,Pe.ERR_BAD_OPTION)}}const Cc={assertOptions:r_,validators:au},jn=Cc.validators;let Ds=class{constructor(t){this.defaults=t||{},this.interceptors={request:new e0,response:new e0}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
152`+l):s.stack=l}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Us(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:l}=n;s!==void 0&&Cc.assertOptions(s,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),o!=null&&(z.isFunction(o)?n.paramsSerializer={serialize:o}:Cc.assertOptions(o,{encode:jn.function,serialize:jn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Cc.assertOptions(n,{baseUrl:jn.spelling("baseURL"),withXsrfToken:jn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&z.merge(l.common,l[n.method]);l&&z.forEach(["delete","get","head","post","put","patch","common"],E=>{delete l[E]}),n.headers=Wt.concat(c,l);const u=[];let f=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(f=f&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const h=[];this.interceptors.response.forEach(function(x){h.push(x.fulfilled,x.rejected)});let m,g=0,w;if(!f){const E=[d0.bind(this),void 0];for(E.unshift(...u),E.push(...h),w=E.length,m=Promise.resolve(n);g<w;)m=m.then(E[g++],E[g++]);return m}w=u.length;let C=n;for(;g<w;){const E=u[g++],x=u[g++];try{C=E(C)}catch(S){x.call(this,S);break}}try{m=d0.call(this,C)}catch(E){return Promise.reject(E)}for(g=0,w=h.length;g<w;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=Us(this.defaults,t);const n=DS(t.baseURL,t.url,t.allowAbsoluteUrls);return OS(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Ds.prototype[t]=function(n,s){return this.request(Us(s||{},{method:t,url:n,data:(s||{}).data}))}});z.forEach(["post","put","patch"],function(t){function n(s){return function(l,c,u){return this.request(Us(u||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}Ds.prototype[t]=n(),Ds.prototype[t+"Form"]=n(!0)});let s_=class zS{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const s=this;this.promise.then(o=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](o);s._listeners=null}),this.promise.then=o=>{let l;const c=new Promise(u=>{s.subscribe(u),l=u}).then(o);return c.cancel=function(){s.unsubscribe(l)},c},t(function(l,c,u){s.reason||(s.reason=new Ji(l,c,u),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
152subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new zS(function(o){t=o}),cancel:t}}};function i_(e){return function(n){return e.apply(null,n)}}function o_(e){return z.isObject(e)&&e.isAxiosError===!0}const _h={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};Object.entries(_h).forEach(([e,t])=>{_h[t]=e});function $S(e){const t=new Ds(e),n=xS(Ds.prototype.request,t);return z.extend(n,Ds.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $S(Us(e,o))},n}const rt=$S(La);rt.Axios=Ds;rt.CanceledError=Ji;rt.CancelToken=s_;rt.isCancel=LS;rt.VERSION=US;rt.toFormData=ou;rt.AxiosError=Pe;rt.Cancel=rt.CanceledError;rt.all=function(t){return Promise.all(t)};rt.spread=i_;rt.isAxiosError=o_;rt.mergeConfig=Us;rt.AxiosHeaders=Wt;rt.formToJSON=e=>MS(z.isHTMLForm(e)?new FormData(e):e);rt.getAdapter=VS.getAdapter;rt.HttpStatusCode=_h;rt.default=rt;const{Axios:BV,AxiosError:FV,CanceledError:VV,isCancel:UV,CancelToken:zV,VERSION:$V,all:WV,Cancel:HV,isAxiosError:qV,spread:KV,toFormData:GV,AxiosHeaders:QV,HttpStatusCode:YV,formToJSON:XV,getAdapter:JV,mergeConfig:ZV}=rt,a_=typeof window>"u",h0=!a_&&window.self!==window.top,Nf=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),wt=[];for(let e=0;e<256;++e)wt.push((e+256).toString(16).slice(1));function l_(e,t=0){return(wt[e[t+0]]+wt[e[t+1]]+wt[e[t+2]]+wt[e[t+3]]+"-"+wt[e[t+4]]+wt[e[t+5]]+"-"+wt[e[t+6]]+wt[e[t+7]]+"-"+wt[e[t+8]]+wt[e[t+9]]+"-"+wt[e[t+10]]+wt[e[t+11]]+wt[e[t+12]]+wt[e[t+13]]+wt[e[t+14]]+wt[e[t+15]]).toLowerCase()}let _f;const c_=new Uint8Array(16);function u_(){if(!_f){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_f=crypto.getRandomValues.bind(crypto)}return _f(c_)}const d_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),p0={randomUUID:d_};function f_(e,t,n){var o;e=e||{};const s=e.random??((o=e.rng)==null?void 0:o.call(e))??u_();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,l_(s)}function h_(e,t,n){return p0.randomUUID&&!e?p0.randomUUID():f_(e)}class p_ extends Error{constructor(t,n,s,o,l){super(t),this.name="Base44Error",this.status=n,this.code=s,this.data=o,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Zo({baseURL:e,headers:t={},token:n,interceptResponses:s=!0,onError:o}){const l=rt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(c=>{typeof window<"u"&&c.headers.set("X-Origin-URL",window.location.href);const u=h_();if(c.requestId=u,h0)try{window.parent.postMessage({type:"api-request-start",requestId:u,data:{url:e+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),s&&l.interceptors.response.use(c=>{var u;const f=(u=c.config)===null||u===void 0?void 0:u.requestId;try{h0&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var u,f,h,m,g,w,C,E;const x=((f=(u=c.response)===null||u===void 0?void 0:u.data)===null||f===void 0?void 0:f.message)||((m=(h=c.response)===null||h===void 0?void 0:h.data)===null||m===void 0?void 0:m.detail)||c.message,S=new p_(x,(g=c.response)===null||g===void 0?void 0:g.status,(C=(w=c.response)===null||w===void 0?void 0:w.data)===null||C===void 0?void 0:C.code,(E=c.response)===null||E===void 0?void 0:E.data,c);return o==null||o(S),Promise.reject(S)}),l}function m0(e){const{axios:t,appId:n,getSocket:s}=e;return new Proxy({},{get(o,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return g_(t,n,l,s)}})}function m_(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function g_(e,t,n,s){const o=`/apps/${t}/entities/${n}`;return{async list(l,c,u,f){const h={};return l&&(h.sort=l),c&&(h.limit=c),u&&(h.skip=u),f&&(h.fields=Array.isArray(f)?f.join(","):f),e.get(o,{params:h})},async filter(l,c,u,f,h){const m={q:JSON.stringify(l)};return c&&(m.sort=c),u&&(m.limit=u),f&&(m.skip=f),h&&(m.fields=Array.isArray(h)?h.join(","):h),e.get(o,{params:m})},async get(l){return e.get(`${o}/${l}`)},async create(l){return e.post(o,l)},async update(l,c){return e.put(`${o}/${l}`,c)},async delete(l){return e.delete(`${o}/${l}`)},async deleteMany(l){return e.delete(o,{data:l})},async bulkCreate(l){return e.post(`${o}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),e.post(`${o}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${t}:${n}`;return s().subscribeToRoom(c,{update_model:h=>{const m=m_(h.data);if(m)try{l(m)}catch(g){console.error("[Base44 SDK] Subscription callback error:",g)}}})}}}function y_(e,t){return{async call(n,s,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(s!=null&&s.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...u}=o??{},f={...u,...l&&{path_params:l},...c&&{query_params:c}};return await e.post(`/apps/${t}/integrations/custom/${n}/${s}`,f)}}}function g0(e,t){const n=y_(e,t);return new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async u=>
152{if(typeof u=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${u}`);let f,h;return u instanceof FormData||u&&Object.values(u).some(m=>m instanceof File)?(f=new FormData,Object.keys(u).forEach(m=>{u[m]instanceof File?f.append(m,u[m],u[m].name):typeof u[m]=="object"&&u[m]!==null?f.append(m,JSON.stringify(u[m])):f.append(m,u[m])}),h="multipart/form-data"):(f=u,h="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${c}`,f||u,{headers:{"Content-Type":h}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${c}`,f||u,{headers:{"Content-Type":h}})}}})}})}function v_(e,t,n,s){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(o){return e.put(`/apps/${n}/entities/User/me`,o)},redirectToLogin(o){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=o?new URL(o,window.location.origin).toString():window.location.href,c=`${s.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(o,l="/"){const c=new URL(l,window.location.origin).toString(),u=o==="google"?"":`/${o}`,f=`${s.appBaseUrl}/api/apps/auth${u}/login?app_id=${n}&from_url=${encodeURIComponent(c)}`;window.location.href=f},logout(o){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(u){console.error("Failed to remove token from localStorage:",u)}const l=o||window.location.href,c=`${s.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(o,l=!0){if(o&&(e.defaults.headers.common.Authorization=`Bearer ${o}`,t.defaults.headers.common.Authorization=`Bearer ${o}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",o),window.localStorage.setItem("token",o)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(o,l,c){var u;try{const f=await e.post(`/apps/${n}/auth/login`,{email:o,password:l,...c&&{turnstile_token:c}}),{access_token:h,user:m}=f;return h&&this.setToken(h),{access_token:h,user:m}}catch(f){throw((u=f.response)===null||u===void 0?void 0:u.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(o,l){return e.post(`/apps/${n}/users/invite-user`,{user_email:o,role:l})},register(o){return e.post(`/apps/${n}/auth/register`,o)},verifyOtp({email:o,otpCode:l}){return e.post(`/apps/${n}/auth/verify-otp`,{email:o,otp_code:l})},resendOtp(o){return e.post(`/apps/${n}/auth/resend-otp`,{email:o})},resetPasswordRequest(o){return e.post(`/apps/${n}/auth/reset-password-request`,{email:o})},resetPassword({resetToken:o,newPassword:l}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:o,new_password:l})},changePassword({userId:o,currentPassword:l,newPassword:c}){return e.post(`/apps/${n}/auth/change-password`,{user_id:o,current_password:l,new_password:c})}}}function w_(e,t,n){return{async getAccessToken(s){const o=`/apps/${t}/auth/sso/accesstoken/${s}`,l={};return n&&(l["on-behalf-of"]=`Bearer ${n}`),e.get(o,{headers:l})}}}function x_(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token}}}function kp(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:s=!0,removeFromUrl:o=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(n),l){if(s&&S_(l,{storageKey:t}),o){c.delete(n);const u=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function S_(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(s){return console.error("Error saving token to local storage:",s),!1}}
152function y0(e,t){return{async invoke(n,s){if(typeof s=="string")throw new Error(`Function ${n} must receive an object with named parameters, received: ${s}`);let o,l;return s instanceof FormData||s&&Object.values(s).some(c=>c instanceof File)?(o=new FormData,Object.keys(s).forEach(c=>{s[c]instanceof File?o.append(c,s[c],s[c].name):typeof s[c]=="object"&&s[c]!==null?o.append(c,JSON.stringify(s[c])):o.append(c,s[c])}),l="multipart/form-data"):(o=s,l="application/json"),e.post(`/apps/${t}/functions/${n}`,o||s,{headers:{"Content-Type":l}})}}}function v0({axios:e,getSocket:t,appId:n,serverUrl:s,token:o}){const l=`/apps/${n}/agents`,c={},u=()=>e.get(`${l}/conversations`),f=E=>e.get(`${l}/conversations/${E}`);return{getConversations:u,getConversation:f,listConversations:E=>e.get(`${l}/conversations`,{params:E}),createConversation:E=>e.post(`${l}/conversations`,E),addMessage:async(E,x)=>e.post(`${l}/conversations/v2/${E.id}/messages`,x),subscribeToConversation:(E,x)=>{const S=`/agent-conversations/${E}`,T=t(),k=f(E).then(P=>(c[E]=P,P));return T.subscribeToRoom(S,{connect:()=>{},update_model:async({data:P})=>{const R=JSON.parse(P);if(R._message){await k;const O=R._message,$=c[E];if($){const U=$.messages||[],D=U.findIndex(K=>K.id===O.id),Z=D!==-1?U.map((K,ie)=>ie===D?O:K):[...U,O];c[E]={...$,messages:Z},x==null||x(c[E])}}}})},getWhatsAppConnectURL:E=>{const x=`${s}/api/apps/${n}/agents/${encodeURIComponent(E)}/whatsapp`,S=o??kp();return S?`${x}?token=${S}`:x}}}function w0(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(s){await e.post(`${n}/log-user-in-app/${s}`)},async fetchLogs(s={}){return await e.get(n,{params:s})},async getStats(s={}){return await e.get(`${n}/stats`,{params:s})}}}function b_(e,t){return{async inviteUser(n,s){if(s!=="user"&&s!=="admin")throw new Error(`Invalid role: "${s}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:s})}}}const Wn=Object.create(null);Wn.open="0";Wn.close="1";Wn.ping="2";Wn.pong="3";Wn.message="4";Wn.upgrade="5";Wn.noop="6";const Ac=Object.create(null);Object.keys(Wn).forEach(e=>{Ac[Wn[e]]=e});const Oh={type:"error",data:"parser error"},WS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",HS=typeof ArrayBuffer=="function",qS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Rp=({type:e,data:t},n,s)=>WS&&t instanceof Blob?n?s(t):x0(t,s):HS&&(t instanceof ArrayBuffer||qS(t))?n?s(t):x0(new Blob([t]),s):s(Wn[e]+(t||"")),x0=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+(s||""))},n.readAsDataURL(e)};function S0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Of;function E_(e,t){if(WS&&e.data instanceof Blob)return e.data.arrayBuffer().then(S0).then(t);if(HS&&(e.data instanceof ArrayBuffer||qS(e.data)))return t(S0(e.data));Rp(e,!1,n=>{Of||(Of=new TextEncoder),t(Of.encode(n))})}const b0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ea=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<b0.length;e++)ea[b0.charCodeAt(e)]=e;const C_=e=>{let t=e.length*.75,n=e.length,s,o=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),m=new Uint8Array(h);for(s=0;s<n;s+=4)l=ea[e.charCodeAt(s)],c=ea[e.charCodeAt(s+1)],u=ea[e.charCodeAt(s+2)],f=ea[e.charCodeAt(s+3)],m[o++]=l<<2|c>>4,m[o++]=(c&15)<<4|u>>2,m[o++]=(u&3)<<6|f&63;return h},A_=typeof ArrayBuffer=="function",Np=(e,t)=>{if(typeof e!="string")return{type:"message",data:KS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:T_(e.substring(1),t)}:Ac[n]?e.length>1?{type:Ac[n],data:e.substring(1)}:{type:Ac[n]}:Oh},T_=(e,t)=>{if(A_){const n=C_(e);return KS(n,t)}else return{base64:!0,data:e}},KS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},GS="�",P_=(e,t)=>{const n=e.length,s=new Array(n);let o=0;e.forEach((l,c)=>{Rp(l,!1,u=>{s[c]=u,++o===n&&t(s.join(GS))})})},k_=(e,t)=>{const n=e.split(GS),s=[];for(let o=0;o<n.length;o++){const l=Np(n[o],t);if(s.push(l),l.type==="error")break}return s};function R_(){return new TransformStream({transform(e,t){E_(e,n=>{const s=n.length;let o;if(s<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,s);else if(s<65536){o=new Uint8Array(3);const l=new DataView(o.buffer);l.setUint8(0,126),l.setUint16(1,s)}else{o=new Uint8Array(9);const l=new DataView(o.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let jf;function oc(e){return e.reduce((t,n)=>t+n.length,0)}function ac(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let o=0;o<t;o++)n[o]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function N_(e,t){jf||(jf=new TextDecoder);const n=[];let s=0,o=-1,l=!1;return new TransformStream({transform(c,u){for(n.push(c);;){if(s===0){if(oc(n)<1)break;const f=ac(n,1);l=(f[0]&128)===128,o=f[0]&127,o<126?s=3:o===126?s=1:s=2}else if(s===1){if(oc(n)<2)break;const f=ac(n,2);o=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),s=3}else if(s===2){if(oc(n)<8)break;const f=ac(n,8),h=new DataView(f.buffer,f.byteOffset,f.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){u.enqueue(Oh);break}o=m*Math.pow(2,32)+h.getUint32(4),s=3}else{if(oc(n)<o)break;const f=ac(n,o);u.enqueue(Np(l?f:jf.decode(f),t)),s=0}if(o===0||o>e){u.enqueue(Oh);break}}}})}const QS=4;function it(e){if(e)return __(e)}
vendor: 36,243 bytes, line 152
152function __(e){for(var t in it.prototype)e[t]=it.prototype[t];return e}it.prototype.on=it.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};it.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};it.prototype.off=it.prototype.removeListener=it.prototype.removeAllListeners=it.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,o=0;o<n.length;o++)if(s=n[o],s===t||s.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};it.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,o=n.length;s<o;++s)n[s].apply(this,t)}return this};it.prototype.emitReserved=it.prototype.emit;it.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};it.prototype.hasListeners=function(e){return!!this.listeners(e).length};const lu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),dn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),O_="arraybuffer";function YS(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const j_=dn.setTimeout,M_=dn.clearTimeout;function cu(e,t){t.useNativeTimers?(e.setTimeoutFn=j_.bind(dn),e.clearTimeoutFn=M_.bind(dn)):(e.setTimeoutFn=dn.setTimeout.bind(dn),e.clearTimeoutFn=dn.clearTimeout.bind(dn))}const L_=1.33;function I_(e){return typeof e=="string"?D_(e):Math.ceil((e.byteLength||e.size)*L_)}function D_(e){let t=0,n=0;for(let s=0,o=e.length;s<o;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}function XS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function B_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function F_(e){let t={},n=e.split("&");for(let s=0,o=n.length;s<o;s++){let l=n[s].split("=");t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class V_ extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class _p extends it{constructor(t){super(),this.writable=!1,cu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,s){return super.emitReserved("error",new V_(t,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Np(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=B_(t);return n.length?"?"+n:""}}class U_ extends _p{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};k_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,P_(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=XS()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let JS=!1;try{JS=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const z_=JS;function $_(){}class W_ extends U_{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,n){const s=this.request({method:"POST",data:t});s.on("success",n),s.on("error",(o,l)=>{this.onError("xhr post error",o,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=t}}class Vn extends it{constructor(t,n,s){super(),this.createRequest=t,cu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var t;const n=YS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&s.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var o;s.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Vn.requestsCount++,Vn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$_,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Vn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Vn.requestsCount=0;Vn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",E0);else if(typeof addEventListener=="function"){const e="onpagehide"in dn?"pagehide":"unload";addEventListener(e,E0,!1)}}function E0(){for(let e in Vn.requests)Vn.requests.hasOwnProperty(e)&&Vn.requests[e].abort()}const H_=(function(){const e=ZS({xdomain:!1});return e&&e.responseType!==null})();class q_ extends W_{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=H_&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Vn(ZS,this.uri(),t)}}function ZS(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||z_))return new XMLHttpRequest}catch{}if(!t)try{return new dn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const eb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class K_ extends _p{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,s=eb?{}:YS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,s)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],o=n===t.length-1;Rp(s,this.supportsBinary,l=>{try{this.doWrite(s,l)}catch{}o&&lu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=XS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Mf=dn.WebSocket||dn.MozWebSocket;class G_ extends K_{createSocket(t,n,s){return eb?new Mf(t,n,s):n?new Mf(t,n):new Mf(t)}doWrite(t,n){this.ws.send(n)}}class Q_ extends _p{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=N_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(n).getReader(),o=R_();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const l=()=>{s.read().then(({done:u,value:f})=>{u||(this.onPacket(f),l())}).catch(u=>{})};l();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],o=n===t.length-1;this._writer.write(s).then(()=>{o&&lu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Y_={websocket:G_,webtransport:Q_,polling:q_},X_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,J_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function jh(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");n!=-1&&s!=-1&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let o=X_.exec(e||""),l={},c=14;for(;c--;)l[J_[c]]=o[c]||"";return n!=-1&&s!=-1&&(l.source=t,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=Z_(l,l.path),l.queryKey=eO(l,l.query),l}function Z_(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&s.splice(0,1),t.slice(-1)=="/"&&s.splice(s.length-1,1),s}function eO(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,o,l){o&&(n[o]=l)}),n}const Mh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Tc=[];Mh&&addEventListener("offline",()=>{Tc.forEach(e=>e())},!1);class Zr extends it{constructor(t,n){if(super(),this.binaryType=O_,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const s=jh(t);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=jh(n.host).host);cu(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={},n.transports.forEach(s=>{const o=s.prototype.name;this.transports.push(o),this._transportsByName[o]=s}),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=F_(this.opts.query)),Mh&&(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"})},Tc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=QS,n.transport=t,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Zr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.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",Zr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.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=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){const o=this.writeBuffer[s].data;if(o&&(n+=I_(o)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,lu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,s){return this._sendPacket("message",t,n,s),this}send(t,n,s){return this._sendPacket("message",t,n,s),this}_sendPacket(t,n,s,o){if(typeof n=="function"&&(o=n,n=void 0),typeof s=="function"&&(o=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const l={type:t,data:n,options:s};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},s=()=>{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?s():t()}):this.upgrading?s():t()),this}_onError(t){if(Zr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,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(),Mh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Tc.indexOf(this._offlineEventListener);s!==-1&&Tc.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Zr.protocol=QS;class tO extends Zr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),s=!1;Zr.priorWebsocketSuccess=!1;const o=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!s)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Zr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),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(){s||(s=!0,m(),n.close(),n=null)}const c=g=>{const w=new Error("probe error: "+g);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function u(){c("transport closed")}function f(){c("socket closed")}function h(g){n&&g.name!==n.name&&l()}const m=()=>{n.removeListener("open",o),n.removeListener("error",c),n.removeListener("close",u),this.off("close",f),this.off("upgrading",h)};n.once("open",o),n.once("error",c),n.once("close",u),this.once("close",f),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&n.push(t[s]);return n}}let nO=class extends tO{constructor(t,n={}){const s=typeof t=="object"?t:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(o=>Y_[o]).filter(o=>!!o)),super(t,s)}};function rO(e,t="",n){let s=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),s=jh(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const l=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+l+":"+s.port+t,s.href=s.protocol+"://"+l+(n&&n.port===s.port?"":":"+s.port),s}const sO=typeof ArrayBuffer=="function",iO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,tb=Object.prototype.toString,oO=typeof Blob=="function"||typeof Blob<"u"&&tb.call(Blob)==="[object BlobConstructor]",aO=typeof File=="function"||typeof File<"u"&&tb.call(File)==="[object FileConstructor]";function Op(e){return sO&&(e instanceof ArrayBuffer||iO(e))||oO&&e instanceof Blob||aO&&e instanceof File}function Pc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n++)if(Pc(e[n]))return!0;return!1}if(Op(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Pc(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Pc(e[n]))return!0;return!1}function lO(e){const t=[],n=e.data,s=e;return s.data=Lh(n,t),s.attachments=t.length,{packet:s,buffers:t}}function Lh(e,t){if(!e)return e;if(Op(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=Lh(e[s],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=Lh(e[s],t));return n}return e}function cO(e,t){return e.data=Ih(e.data,t),delete e.attachments,e}function Ih(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ih(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ih(e[n],t));return e}const uO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],dO=5;var Me;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Me||(Me={}));class fO{constructor(t){this.replacer=t}encode(t){return(t.type===Me.EVENT||t.type===Me.ACK)&&Pc(t)?this.encodeAsBinary({type:t.type===Me.EVENT?Me.BINARY_EVENT:Me.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Me.BINARY_EVENT||t.type===Me.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=lO(t),s=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(s),o}}function C0(e){return Object.prototype.toString.call(e)==="[object Object]"}class jp extends it{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const s=n.type===Me.BINARY_EVENT;s||n.type===Me.BINARY_ACK?(n.type=s?Me.EVENT:Me.ACK,this.reconstructor=new hO(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Op(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),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: "+t)}decodeString(t){let n=0;const s={type:Number(t.charAt(0))};if(Me[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Me.BINARY_EVENT||s.type===Me.BINARY_ACK){const l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(l,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");s.attachments=Number(c)}if(t.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););s.nsp=t.substring(l,n)}else s.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const l=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}s.id=Number(t.substring(l,n+1))}if(t.charAt(++n)){const l=this.tryParse(t.substr(n));if(jp.isPayloadValid(s.type,l))s.data=l;else throw new Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Me.CONNECT:return C0(n);case Me.DISCONNECT:return n===void 0;case Me.CONNECT_ERROR:return typeof n=="string"||C0(n);case Me.EVENT:case Me.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&uO.indexOf(n[0])===-1);case Me.ACK:case Me.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class hO{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=cO(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const pO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:jp,Encoder:fO,get PacketType(){return Me},protocol:dO},Symbol.toStringTag,{value:"Module"}));function Cn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const mO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class nb extends it{constructor(t,n,s){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=t,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Cn(t,"open",this.onopen.bind(this)),Cn(t,"packet",this.onpacket.bind(this)),Cn(t,"error",this.onerror.bind(this)),Cn(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var s,o,l;if(mO.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:Me.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,g=n.pop();this._registerAckCallback(m,g),c.id=m}const u=(o=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||o===void 0?void 0:o.writable,f=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!u||(f?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,n){var s;const o=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},o),c=(...u)=>{this.io.clearTimeoutFn(l),n.apply(this,u)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...n){return new Promise((s,o)=>{const l=(c,u)=>c?o(c):s(u);l.withError=!0,n.push(l),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...l)=>s!==this._queue[0]?void 0:(o!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...l)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Me.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Me.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 Me.EVENT:case Me.BINARY_EVENT:this.onevent(t);break;case Me.ACK:case Me.BINARY_ACK:this.onack(t);break;case Me.DISCONNECT:this.ondisconnect();break;case Me.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let s=!1;return function(...o){s||(s=!0,n.packet({type:Me.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Me.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,t.data)}}}function Zi(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Zi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Zi.prototype.reset=function(){this.attempts=0};Zi.prototype.setMin=function(e){this.ms=e};Zi.prototype.setMax=function(e){this.max=e};Zi.prototype.setJitter=function(e){this.jitter=e};class Dh extends it{constructor(t,n){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,cu(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((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Zi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||pO;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new nO(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const o=Cn(n,"open",function(){s.onopen(),t&&t()}),l=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},c=Cn(n,"error",l);if(this._timeout!==!1){const u=this._timeout,f=this.setTimeoutFn(()=>{o(),l(new Error("timeout")),n.close()},u);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(o),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Cn(t,"ping",this.onping.bind(this)),Cn(t,"data",this.ondata.bind(this)),Cn(t,"error",this.onerror.bind(this)),Cn(t,"close",this.onclose.bind(this)),Cn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){lu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new nb(this,t,n),this.nsps[t]=s),s}_destroy(t){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let s=0;s<n.length;s++)this.engine.write(n[s],t.options)}
152cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=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 s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Go={};function kc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=rO(e,t.path||"/socket.io"),s=n.source,o=n.id,l=n.path,c=Go[o]&&l in Go[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let f;return u?f=new Dh(s,t):(Go[o]||(Go[o]=new Dh(s,t)),f=Go[o]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(kc,{Manager:Dh,Socket:nb,io:kc,connect:kc});function A0(e,t){var n;const s=kc(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(n=e.token)!==null&&n!==void 0?n:kp()}});return s.on("connect",async()=>{var o;return console.log("connect",s.id),(o=t.connect)===null||o===void 0?void 0:o.call(t)}),s.on("update_model",async o=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,o)}),s.on("error",async o=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,o)}),s.on("connect_error",async o=>{var l;return console.error("connect_error",o),(l=t.error)===null||l===void 0?void 0:l.call(t,o)}),s}function gO({config:e}){let t={...e};const n={},s={connect:async()=>{const C=[];Object.keys(n).forEach(E=>{f(E);const x=g(E);x==null||x.forEach(({connect:S})=>{const T=async()=>S==null?void 0:S();C.push(T())})}),await Promise.all(C)},update_model:async C=>{const x=g(C.room).map(S=>{var T;return(T=S.update_model)===null||T===void 0?void 0:T.call(S,C)});await Promise.all(x)},error:async C=>{console.error("error",C);const E=Object.values(n).flat().map(x=>{var S;return(S=x.error)===null||S===void 0?void 0:S.call(x,C)});await Promise.all(E)}};let o=A0(e,s);function l(){c()}function c(){o&&o.disconnect()}function u(C){l(),t={...t,...C},o=A0(t,s)}function f(C){o.emit("join",C)}function h(C){o.emit("leave",C)}async function m(C,E){var x;const S=JSON.stringify(E);return(x=s.update_model)===null||x===void 0?void 0:x.call(s,{room:C,data:S})}function g(C){return n[C]}return{socket:o,subscribeToRoom:(C,E)=>(n[C]||(f(C),n[C]=[]),n[C].push(E),()=>{var x,S;n[C]=(S=(x=n[C])===null||x===void 0?void 0:x.filter(T=>T!==E))!==null&&S!==void 0?S:[],n[C].length===0&&h(C)}),updateConfig:u,updateModel:m,disconnect:c}}const Qo=typeof window<"u"?window:{base44SharedInstances:{}};function yO(e,t){return Qo.base44SharedInstances||(Qo.base44SharedInstances={}),Qo.base44SharedInstances[e]||(Qo.base44SharedInstances[e]={instance:t()}),Qo.base44SharedInstances[e].instance}const vO="__user_heartbeat_event__",wO="__initialization_event__",xO="__session_duration_event__",T0="analytics-enable",P0="base44_analytics_session_id",SO={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},bO="analytics",ze=yO(bO,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...SO,...NO()}})),EO=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:s})=>{var o;const{maxQueueSize:l,throttleTime:c,batchSize:u}=ze.config;if(!(!((o=ze.config)===null||o===void 0)&&o.enabled))return{track:()=>{},cleanup:()=>{}};let f;const h=`${t}/api/apps/${n}/analytics/track/batch`,m=async P=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:P}})},g=P=>{try{const R=JSON.stringify({events:P}),O=new Blob([R],{type:"application/json"});return typeof navigator>"u"||R.length>6e4||!navigator.sendBeacon(h,O)}catch{return!1}},w=async(P,R={})=>
152{if(P.length===0)return;const O=await RO(s),$=P.map(kO(O));try{(!R.isBeacon||!g($))&&await m($)}catch{}},C=()=>{R0(w,{throttleTime:c,batchSize:u})},E=P=>{if(ze.requestsQueue.length>=l)return;const R=PO();ze.requestsQueue.push({...P,...R}),C()},x=()=>{R0(w,{throttleTime:c,batchSize:u}),f=N0(E),AO()},S=()=>{k0(),f==null||f(),TO(E);const P=ze.requestsQueue.splice(0);w(P,{isBeacon:!0})},T=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&x())},k=()=>{k0(),f==null||f(),typeof window<"u"&&window.removeEventListener("visibilitychange",T)};return C(),f=N0(E),CO(E),typeof window<"u"&&window.addEventListener("visibilitychange",T),{track:E,cleanup:k}};function k0(){ze.isProcessing=!1}async function R0(e,t){if(ze.isProcessing)return;ze.isProcessing=!0;const{throttleTime:n=1e3,batchSize:s=30}=t??{};for(;ze.isProcessing&&ze.requestsQueue.length>0;){const o=ze.requestsQueue.splice(0,s);o.length&&await e(o),await new Promise(l=>setTimeout(l,n))}ze.isProcessing=!1}function N0(e){var t;if(ze.isHeartBeatProcessing||((t=ze.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};ze.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:vO})},ze.config.heartBeatInterval);return()=>{clearInterval(n),ze.isHeartBeatProcessing=!1}}function CO(e){typeof window>"u"||ze.wasInitializationTracked||(ze.wasInitializationTracked=!0,e({eventName:wO,properties:{referrer:document==null?void 0:document.referrer}}))}function AO(){typeof window>"u"||ze.sessionStartTime!==null||(ze.sessionStartTime=new Date().toISOString())}function TO(e){if(typeof window>"u"||ze.sessionStartTime===null)return;const t=new Date().getTime()-new Date(ze.sessionStartTime).getTime();ze.sessionStartTime=null,e({eventName:xO,properties:{sessionDuration:t}})}function PO(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function kO(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Lf=null;async function RO(e){if(!ze.sessionContext){if(!Lf){const t=_O();Lf=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}ze.sessionContext=await Lf}return ze.sessionContext}function NO(){if(typeof window>"u")return;const t=new URLSearchParams(window.location.search).get(T0);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(T0);const s=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",s),{enabled:t==="true"}}function _O(){if(typeof window>"u")return Nf();try{const e=localStorage.getItem(P0);if(!e){const t=Nf();return localStorage.setItem(P0,t),t}return e}catch{return Nf()}}function OO(e){const{serverUrl:t="https://base44.app",appId:n,token:s,serviceToken:o,requiresAuth:l=!1,appBaseUrl:c,options:u,functionsVersion:f,headers:h}=e,m=typeof c=="string"?c:"",g={serverUrl:t,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:n,token:s};let w=null;const C=()=>(w||(w=gO({config:g})),w),E={...h,"X-App-Id":String(n)},x=f?{...E,"Base44-Functions-Version":f}:E,S=Zo({baseURL:`${t}/api`,headers:E,token:s,onError:u==null?void 0:u.onError}),T=Zo({baseURL:`${t}/api`,headers:x,token:s,interceptResponses:!1,onError:u==null?void 0:u.onError}),k=Zo({baseURL:`${t}/api`,headers:E,token:o,onError:u==null?void 0:u.onError}),P=Zo({baseURL:`${t}/api`,headers:x,token:o,interceptResponses:!1}),R=v_(S,T,n,{appBaseUrl:m}),O={entities:m0({axios:S,appId:n,getSocket:C}),integrations:g0(S,n),auth:R,functions:y0(T,n),agents:v0({axios:S,getSocket:C,appId:n,serverUrl:t,token:s}),appLogs:w0(S,n),users:b_(S,n),analytics:EO({axiosClient:S,serverUrl:t,appId:n,userAuthModule:R}),cleanup:()=>{O.analytics.cleanup(),w&&w.disconnect()}},$={entities:m0({axios:k,appId:n,getSocket:C}),integrations:g0(k,n),sso:w_(k,n,s),connectors:x_(k,n),functions:y0(P,n),agents:v0({axios:k,getSocket:C,appId:n,serverUrl:t,token:s}),appLogs:w0(k,n),cleanup:()=>{w&&w.disconnect()}};if(typeof window<"u"){const D=s||kp();D&&O.auth.setToken(D)}return l&&typeof window<"u"&&setTimeout(async()=>{try{await O.auth.isAuthenticated()||O.auth.redirectToLogin(window.location.href)}catch(D){console.error("Authentication check failed:",D),O.auth.redirectToLogin(window.location.href)}},0),{...O,setToken(D){O.auth.setToken(D),w&&w.updateConfig({token:D}),g.token=D},getConfig(){return{serverUrl:t,appId:n,requiresAuth:l}},get asServiceRole(){if(!o)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return $}}}const rb=typeof window>"u",jO=rb?{localStorage:new Map}:window,aa=jO.localStorage,MO=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Yo=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>
152{if(rb)return t;const s=`base44_${MO(e)}`,o=new URLSearchParams(window.location.search),l=o.get(e);if(n){o.delete(e);const u=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}if(l)return aa.setItem(s,l),l;if(t)return aa.setItem(s,t),t;const c=aa.getItem(s);return c||null},LO=()=>(Yo("clear_access_token")==="true"&&(aa.removeItem("base44_access_token"),aa.removeItem("token")),{appId:Yo("app_id",{defaultValue:"694c7324553e8e705beb27d0"}),token:Yo("access_token",{removeFromUrl:!0}),fromUrl:Yo("from_url",{defaultValue:window.location.href}),functionsVersion:Yo("functions_version",{defaultValue:"prod"})}),ta={...LO()},{appId:IO,token:DO,functionsVersion:BO}=ta,Yr=OO({appId:IO,token:DO,functionsVersion:BO,serverUrl:"",requiresAuth:!1}),sb=b.createContext(),FO=({children:e})=>{const[t,n]=b.useState(null),[s,o]=b.useState(!1),[l,c]=b.useState(!0),[u,f]=b.useState(!0),[h,m]=b.useState(null),[g,w]=b.useState(null);b.useEffect(()=>{C()},[]);const C=async()=>{var T,k;try{f(!0),m(null);const P=Zo({baseURL:"/api/apps/public",headers:{"X-App-Id":ta.appId},token:ta.token,interceptResponses:!0});try{const R=await P.get(`/prod/public-settings/by-id/${ta.appId}`);w(R),ta.token?await E():(c(!1),o(!1)),f(!1)}catch(R){if(console.error("App state check failed:",R),R.status===403&&((k=(T=R.data)==null?void 0:T.extra_data)!=null&&k.reason)){const O=R.data.extra_data.reason;m(O==="auth_required"?{type:"auth_required",message:"Authentication required"}:O==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:O,message:R.message})}else m({type:"unknown",message:R.message||"Failed to load app"});f(!1),c(!1)}}catch(P){console.error("Unexpected error:",P),m({type:"unknown",message:P.message||"An unexpected error occurred"}),f(!1),c(!1)}},E=async()=>{try{c(!0);const T=await Yr.auth.me();n(T),o(!0),c(!1)}catch(T){console.error("User auth check failed:",T),c(!1),o(!1),(T.status===401||T.status===403)&&m({type:"auth_required",message:"Authentication required"})}},x=(T=!0)=>{n(null),o(!1),T?Yr.auth.logout(window.location.href):Yr.auth.logout()},S=()=>{Yr.auth.redirectToLogin(window.location.href)};return v.jsx(sb.Provider,{value:{user:t,isAuthenticated:s,isLoadingAuth:l,isLoadingPublicSettings:u,authError:h,appPublicSettings:g,logout:x,navigateToLogin:S,checkAppState:C},children:e})},ib=()=>{const e=b.useContext(sb);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},uu=b.createContext(null);function Mp(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Lp=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class VO extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function UO({children:e,isPresent:t}){const n=b.useId(),s=b.useRef(null),o=b.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=b.useContext(Lp);return b.useInsertionEffect(()=>{const{width:c,height:u,top:f,left:h}=o.current;if(t||!s.current||!c||!u)return;s.current.dataset.motionPopId=n;const m=document.createElement("style");return l&&(m.nonce=l),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
153          [data-motion-pop-id="${n}"] {
154            position: absolute !important;
155            width: ${c}px !important;
156            height: ${u}px !important;
157            top: ${f}px !important;
158            left: ${h}px !important;
159          }
160        `),()=>{document.head.removeChild(m)}},[t]),v.jsx(VO,{isPresent:t,childRef:s,sizeRef:o,children:b.cloneElement(e,{ref:s})})}const zO=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:l,mode:c})=>{const u=Mp($O),f=b.useId(),h=b.useCallback(g=>{u.set(g,!0);for(const w of u.values())if(!w)return;s&&s()},[u,s]),m=b.useMemo(()=>({id:f,initial:t,isPresent:n,custom:o,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),l?[Math.random(),h]:[n,h]);return b.useMemo(()=>{u.forEach((g,w)=>u.set(w,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),c==="popLayout"&&(e=v.jsx(UO,{isPresent:n,children:e})),v.jsx(uu.Provider,{value:m,children:e})};function $O(){return new Map}const Ip=b.createContext({}),Yt=e=>e;let ob=Yt;function Dp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wi=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},lr=e=>e*1e3,cr=e=>e/1e3,lc=e=>e.key||"";function _0(e){const t=[];
vendor: 9,487 bytes, line 160
160return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Bp=typeof window<"u",ab=Bp?b.useLayoutEffect:b.useEffect,WO=({children:e,exitBeforeEnter:t,custom:n,initial:s=!0,onExitComplete:o,presenceAffectsLayout:l=!0,mode:c="sync"})=>{const u=b.useMemo(()=>_0(e),[e]),f=u.map(lc),h=b.useRef(!0),m=b.useRef(u),g=Mp(()=>new Map),[w,C]=b.useState(u),[E,x]=b.useState(u);ab(()=>{h.current=!1,m.current=u;for(let k=0;k<E.length;k++){const P=lc(E[k]);f.includes(P)?g.delete(P):g.get(P)!==!0&&g.set(P,!1)}},[E,f.length,f.join("-")]);const S=[];if(u!==w){let k=[...u];for(let P=0;P<E.length;P++){const R=E[P],O=lc(R);f.includes(O)||(k.splice(P,0,R),S.push(R))}c==="wait"&&S.length&&(k=S),x(_0(k)),C(u);return}const{forceRender:T}=b.useContext(Ip);return v.jsx(v.Fragment,{children:E.map(k=>{const P=lc(k),R=u===E||f.includes(P),O=()=>{if(g.has(P))g.set(P,!0);else return;let $=!0;g.forEach(U=>{U||($=!1)}),$&&(T==null||T(),x(m.current),o&&o())};return v.jsx(zO,{isPresent:R,initial:!h.current||s?void 0:!1,custom:R?void 0:n,presenceAffectsLayout:l,mode:c,onExitComplete:R?void 0:O,children:k},P)})})},HO={useManualTiming:!1};function qO(e){let t=new Set,n=new Set,s=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function u(h){l.has(h)&&(f.schedule(h),e()),h(c)}const f={schedule:(h,m=!1,g=!1)=>{const C=g&&s?t:n;return m&&l.add(h),C.has(h)||C.add(h),h},cancel:h=>{n.delete(h),l.delete(h)},process:h=>{if(c=h,s){o=!0;return}s=!0,[t,n]=[n,t],t.forEach(u),t.clear(),s=!1,o&&(o=!1,f.process(h))}};return f}const cc=["read","resolveKeyframes","update","preRender","render","postRender"],KO=40;function lb(e,t){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=cc.reduce((T,k)=>(T[k]=qO(l),T),{}),{read:u,resolveKeyframes:f,update:h,preRender:m,render:g,postRender:w}=c,C=()=>{const T=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(T-o.timestamp,KO),1),o.timestamp=T,o.isProcessing=!0,u.process(o),f.process(o),h.process(o),m.process(o),g.process(o),w.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(C))},E=()=>{n=!0,s=!0,o.isProcessing||e(C)};return{schedule:cc.reduce((T,k)=>{const P=c[k];return T[k]=(R,O=!1,$=!1)=>(n||E(),P.schedule(R,O,$)),T},{}),cancel:T=>{for(let k=0;k<cc.length;k++)c[cc[k]].cancel(T)},state:o,steps:c}}const{schedule:qe,cancel:es,state:xt,steps:If}=lb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yt,!0),cb=b.createContext({strict:!1}),O0={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"]},Hi={};for(const e in O0)Hi[e]={isEnabled:t=>O0[e].some(n=>!!t[n])};function GO(e){for(const t in e)Hi[t]={...Hi[t],...e[t]}}const QO=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 $c(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||QO.has(e)}let ub=e=>!$c(e);function YO(e){e&&(ub=t=>t.startsWith("on")?!$c(t):e(t))}try{YO(require("@emotion/is-prop-valid").default)}catch{}function XO(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(ub(o)||n===!0&&$c(o)||!t&&!$c(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function JO(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const du=b.createContext({});function ga(e){return typeof e=="string"||Array.isArray(e)}function fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Fp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vp=["initial",...Fp];function hu(e){return fu(e.animate)||Vp.some(t=>ga(e[t]))}function db(e){return!!(hu(e)||e.variants)}function ZO(e,t){if(hu(e)){const{initial:n,animate:s}=e;return{initial:n===!1||ga(n)?n:void 0,animate:ga(s)?s:void 0}}return e.inherit!==!1?t:{}}function ej(e){const{initial:t,animate:n}=ZO(e,b.useContext(du));return b.useMemo(()=>({initial:t,animate:n}),[j0(t),j0(n)])}function j0(e){return Array.isArray(e)?e.join(" "):e}const tj=Symbol.for("motionComponentSymbol");function Ci(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nj(e,t,n){return b.useCallback(s=>{s&&e.mount&&e.mount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Ci(n)&&(n.current=s))},[t])}const Up=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rj="framerAppearId",fb="data-"+Up(rj),{schedule:zp}=lb(queueMicrotask,!1),hb=b.createContext({});function sj(e,t,n,s,o){var l,c;const{visualElement:u}=b.useContext(du),f=b.useContext(cb),h=b.useContext(uu),m=b.useContext(Lp).reducedMotion,g=b.useRef(null);s=s||f.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:u,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const w=g.current,C=b.useContext(hb);w&&!w.projection&&o&&(w.type==="html"||w.type==="svg")&&ij(g.current,n,o,C);const E=b.useRef(!1);b.useInsertionEffect(()=>{w&&E.current&&w.update(n,h)});const x=n[fb],S=b.useRef(!!x&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,x))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,x)));return ab(()=>{w&&(E.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),zp.render(w.render),S.current&&w.animationState&&w.animationState.animateChanges())}),b.useEffect(()=>{w&&(!S.current&&w.animationState&&w.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)===null||T===void 0||T.call(window,x)}),S.current=!1))}),w}function ij(e,t,n,s){const{layoutId:o,layout:l,drag:c,dragConstraints:u,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:pb(e.parent)),e.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||u&&Ci(u),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:h})}function pb(e){if(e)return e.options.allowProjection!==!1?e.projection:pb(e.parent)}function oj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:o}){var l,c;e&&GO(e);function u(h,m){let g;const w={...b.useContext(Lp),...h,layoutId:aj(h)},{isStatic:C}=w,E=ej(h),x=s(h,C);if(!C&&Bp){lj();const S=cj(w);g=S.MeasureLayout,E.visualElement=sj(o,x,w,t,S.ProjectionNode)}return v.jsxs(du.Provider,{value:E,children:[g&&E.visualElement?v.jsx(g,{visualElement:E.visualElement,...w}):null,n(o,h,nj(x,E.visualElement,m),x,C,E.visualElement)]})}u.displayName=`motion.${typeof o=="string"?o:`create(${(c=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&c!==void 0?c:""})`}`;const f=b.forwardRef(u);return f[tj]=o,f}function aj({layoutId:e}){const t=b.useContext(Ip).id;return t&&e!==void 0?t+"-"+e:e}function lj(e,t){b.useContext(cb).strict}function cj(e){const{drag:t,layout:n}=Hi;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const uj=["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 $p(e){return typeof e!="string"||e.includes("-")?!1:!!(uj.indexOf(e)>-1||/[A-Z]/u.test(e))}function mb(e,{style:t,vars:n},s,o){Object.assign(e.style,t,o&&o.getProjectionStyles(s));for(const l in n)e.style.setProperty(l,n[l])}const gb=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 yb(e,t,n,s){mb(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(gb.has(o)?o:Up(o),t.attrs[o])}const kt=e=>!!(e&&e.getVelocity),Wc={};function dj(e){Object.assign(Wc,e)}const Ia=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gs=new Set(Ia);function vb(e,{layout:t,layoutId:n}){return Gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Wc[e]||e==="opacity")}function Wp(e,t,n){var s;const{style:o}=e,l={};for(const c in o)(kt(o[c])||t.style&&kt(t.style[c])||vb(c,e)||((s=n==null?void 0:n.getValue(c))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(l[c]=o[c]);return l}function wb(e,t,n){const s=Wp(e,t,n);for(const o in e)if(kt(e[o])||kt(t[o])){const l=Ia.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[l]=e[o]}return s}function M0(e){const t=[{},{}];
vendor: 4,296 bytes, line 160
160return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Hp(e,t,n,s){if(typeof t=="function"){const[o,l]=M0(s);t=t(n!==void 0?n:e.custom,o,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,l]=M0(s);t=t(n!==void 0?n:e.custom,o,l)}return t}const Bh=e=>Array.isArray(e),fj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),hj=e=>Bh(e)?e[e.length-1]||0:e;function Rc(e){const t=kt(e)?e.get():e;return fj(t)?t.toValue():t}function pj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},s,o,l){const c={latestValues:mj(s,o,l,e),renderState:t()};return n&&(c.mount=u=>n(s,u,c)),c}const xb=e=>(t,n)=>{const s=b.useContext(du),o=b.useContext(uu),l=()=>pj(e,t,s,o);return n?l():Mp(l)};function mj(e,t,n,s){const o={},l=s(e,{});for(const w in l)o[w]=Rc(l[w]);let{initial:c,animate:u}=e;const f=hu(e),h=db(e);t&&h&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const g=m?u:c;if(g&&typeof g!="boolean"&&!fu(g)){const w=Array.isArray(g)?g:[g];for(let C=0;C<w.length;C++){const E=Hp(e,w[C]);if(E){const{transitionEnd:x,transition:S,...T}=E;for(const k in T){let P=T[k];if(Array.isArray(P)){const R=m?P.length-1:0;P=P[R]}P!==null&&(o[k]=P)}for(const k in x)o[k]=x[k]}}}return o}const qp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Sb=()=>({...qp(),attrs:{}}),bb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ur=(e,t,n)=>n>t?t:n<e?e:n,eo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ya={...eo,transform:e=>ur(0,1,e)},uc={...eo,default:1},Da=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Br=Da("deg"),Un=Da("%"),xe=Da("px"),gj=Da("vh"),yj=Da("vw"),L0={...Un,parse:e=>Un.parse(e)/100,transform:e=>Un.transform(e*100)},vj={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,radius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,backgroundPositionX:xe,backgroundPositionY:xe},wj={rotate:Br,rotateX:Br,rotateY:Br,rotateZ:Br,scale:uc,scaleX:uc,scaleY:uc,scaleZ:uc,skew:Br,skewX:Br,skewY:Br,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ya,originX:L0,originY:L0,originZ:xe},I0={...eo,transform:Math.round},Kp={...vj,...wj,zIndex:I0,size:xe,fillOpacity:ya,strokeOpacity:ya,numOctaves:I0},xj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sj=Ia.length;function bj(e,t,n){let s="",o=!0;for(let l=0;l<Sj;l++){const c=Ia[l],u=e[c];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(c.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const h=bb(u,Kp[c]);if(!f){o=!1;const m=xj[c]||c;s+=`${m}(${h}) `}n&&(t[c]=h)}}return s=s.trim(),n?s=n(t,o?"":s):o&&(s="none"),s}const Eb=e=>t=>typeof t=="string"&&t.startsWith(e),Cb=Eb("--"),Ej=Eb("var(--"),Gp=e=>Ej(e)?Cj.test(e.split("/*")[0].trim()):!1,Cj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Qp(e,t,n){const{style:s,vars:o,transformOrigin:l}=e;let c=!1,u=!1;for(const f in t){const h=t[f];if(Gs.has(f)){c=!0;continue}else if(Cb(f)){o[f]=h;continue}else{const m=bb(h,Kp[f]);f.startsWith("origin")?(u=!0,l[f]=m):s[f]=m}}if(t.transform||(c||n?s.transform=bj(t,e.transform,n):s.transform&&(s.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:m=0}=l;s.transformOrigin=`${f} ${h} ${m}`}}function D0(e,t,n){return typeof e=="string"?e:xe.transform(t+n*e)}function Aj(e,t,n){const s=D0(t,e.x,e.width),o=D0(n,e.y,e.height);return`${s} ${o}`}const Tj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pj={offset:"strokeDashoffset",array:"strokeDasharray"};function kj(e,t,n=1,s=0,o=!0){e.pathLength=1;const l=o?Tj:Pj;e[l.offset]=xe.transform(-s);const c=xe.transform(t),u=xe.transform(n);e[l.array]=`${c} ${u}`}function Yp(e,{attrX:t,attrY:n,attrScale:s,originX:o,originY:l,pathLength:c,pathSpacing:u=1,pathOffset:f=0,...h}
vendor: 47,592 bytes, line 160
160,m,g){if(Qp(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:w,style:C,dimensions:E}=e;w.transform&&(E&&(C.transform=w.transform),delete w.transform),E&&(o!==void 0||l!==void 0||C.transform)&&(C.transformOrigin=Aj(E,o!==void 0?o:.5,l!==void 0?l:.5)),t!==void 0&&(w.x=t),n!==void 0&&(w.y=n),s!==void 0&&(w.scale=s),c!==void 0&&kj(w,c,u,f,!1)}const Xp=e=>typeof e=="string"&&e.toLowerCase()==="svg",Rj={useVisualState:xb({scrapeMotionValuesFromProps:wb,createRenderState:Sb,onMount:(e,t,{renderState:n,latestValues:s})=>{qe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),qe.render(()=>{Yp(n,s,Xp(t.tagName),e.transformTemplate),yb(t,n)})}})},Nj={useVisualState:xb({scrapeMotionValuesFromProps:Wp,createRenderState:qp})};function Ab(e,t,n){for(const s in t)!kt(t[s])&&!vb(s,n)&&(e[s]=t[s])}function _j({transformTemplate:e},t){return b.useMemo(()=>{const n=qp();return Qp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Oj(e,t){const n=e.style||{},s={};return Ab(s,n,e),Object.assign(s,_j(e,t)),s}function jj(e,t){const n={},s=Oj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function Mj(e,t,n,s){const o=b.useMemo(()=>{const l=Sb();return Yp(l,t,Xp(s),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};Ab(l,e.style,e),o.style={...l,...o.style}}return o}function Lj(e=!1){return(n,s,o,{latestValues:l},c)=>{const f=($p(n)?Mj:jj)(s,l,c,n),h=XO(s,typeof n=="string",e),m=n!==b.Fragment?{...h,...f,ref:o}:{},{children:g}=s,w=b.useMemo(()=>kt(g)?g.get():g,[g]);return b.createElement(n,{...m,children:w})}}function Ij(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...$p(s)?Rj:Nj,preloadedFeatures:e,useRender:Lj(o),createVisualElement:t,Component:s};return oj(c)}}function Tb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function pu(e,t,n){const s=e.getProps();return Hp(s,t,n!==void 0?n:s.custom,e)}const Dj=Dp(()=>window.ScrollTimeline!==void 0);class Bj{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(o=>{if(Dj()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{s.forEach((o,l)=>{o&&o(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Fj extends Bj{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Jp(e,t){return e?e[t]||e.default||e:void 0}const Fh=2e4;function Pb(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Fh;)t+=n,s=e.next(t);return t>=Fh?1/0:t}function Zp(e){return typeof e=="function"}function B0(e,t){e.timeline=t,e.onfinish=null}const em=e=>Array.isArray(e)&&typeof e[0]=="number",Vj={linearEasing:void 0};function Uj(e,t){const n=Dp(e);return()=>{var s;return(s=Vj[t])!==null&&s!==void 0?s:n()}}const Hc=Uj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),kb=(e,t,n=10)=>{let s="";const o=Math.max(Math.round(t/n),2);for(let l=0;l<o;l++)s+=e(Wi(0,o-1,l))+", ";return`linear(${s.substring(0,s.length-2)})`};function Rb(e){return!!(typeof e=="function"&&Hc()||!e||typeof e=="string"&&(e in Vh||Hc())||em(e)||Array.isArray(e)&&e.every(Rb))}const na=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Vh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:na([0,.65,.55,1]),circOut:na([.55,0,1,.45]),backIn:na([.31,.01,.66,-.59]),backOut:na([.33,1.53,.69,.99])};function Nb(e,t){if(e)return typeof e=="function"&&Hc()?kb(e,t):em(e)?na(e):Array.isArray(e)?e.map(n=>Nb(n,t)||Vh.easeOut):Vh[e]}const xn={x:!1,y:!1};function _b(){return xn.x||xn.y}function zj(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const l=(s=void 0)!==null&&s!==void 0?s:o.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}function Ob(e,t){const n=zj(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[n,o,()=>s.abort()]}function F0(e){return t=>{t.pointerType==="touch"||_b()||e(t)}}function $j(e,t,n={}){const[s,o,l]=Ob(e,n),c=F0(u=>{const{target:f}=u,h=t(u);if(typeof h!="function"||!f)return;const m=F0(g=>{h(g),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,o)});return s.forEach(u=>{u.addEventListener("pointerenter",c,o)}),l}const jb=(e,t)=>t?e===t?!0:jb(e,t.parentElement):!1,tm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Wj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Hj(e){return Wj.has(e.tagName)||e.tabIndex!==-1}const ra=new WeakSet;function V0(e){return t=>{t.key==="Enter"&&e(t)}}function Df(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const qj=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=V0(()=>{if(ra.has(n))return;Df(n,"down");const o=V0(()=>{Df(n,"up")}),l=()=>Df(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function U0(e){return tm(e)&&!_b()}function Kj(e,t,n={}){const[s,o,l]=Ob(e,n),c=u=>{const f=u.currentTarget;if(!U0(u)||ra.has(f))return;ra.add(f);const h=t(u),m=(C,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",w),!(!U0(C)||!ra.has(f))&&(ra.delete(f),typeof h=="function"&&h(C,{success:E}))},g=C=>{m(C,n.useGlobalTarget||jb(f,C.target))},w=C=>{m(C,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",w,o)};return s.forEach(u=>{!Hj(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",c,o),u.addEventListener("focus",h=>qj(h,o),o)}),l}function Gj(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}let Nc;function Qj(){Nc=void 0}const zn={now:()=>(Nc===void 0&&zn.set(xt.isProcessing||HO.useManualTiming?xt.timestamp:performance.now()),Nc),set:e=>{Nc=e,queueMicrotask(Qj)}};function nm(e,t){e.indexOf(t)===-1&&e.push(t)}function rm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class sm{constructor(){this.subscriptions=[]}add(t){return nm(this.subscriptions,t),()=>rm(this.subscriptions,t)}notify(t,n,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,s);else for(let l=0;l<o;l++){const c=this.subscriptions[l];c&&c(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Mb(e,t){return t?e*(1e3/t):0}const z0=30,Yj=e=>!isNaN(parseFloat(e));class Xj{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const l=zn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new sm);const s=this.events[t].add(n);return t==="change"?()=>{s(),qe.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>z0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,z0);return Mb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function va(e,t){return new Xj(e,t)}function Jj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,va(n))}function Zj(e,t){const n=pu(e,t);let{transitionEnd:s={},transition:o={},...l}=n||{};l={...l,...s};for(const c in l){const u=hj(l[c]);Jj(e,c,u)}}function eM(e){return!!(kt(e)&&e.add)}function Uh(e,t){const n=e.getValue("willChange");if(eM(n))return n.add(t)}function Lb(e){return e.props[fb]}const Ib=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,tM=1e-7,nM=12;function rM(e,t,n,s,o){let l,c,u=0;do c=t+(n-t)/2,l=Ib(c,s,o)-e,l>0?n=c:t=c;while(Math.abs(l)>tM&&++u<nM);return c}function Ba(e,t,n,s){if(e===t&&n===s)return Yt;const o=l=>rM(l,0,1,e,n);return l=>l===0||l===1?l:Ib(o(l),t,s)}const Db=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bb=e=>t=>1-e(1-t),Fb=Ba(.33,1.53,.69,.99),im=Bb(Fb),Vb=Db(im),Ub=e=>(e*=2)<1?.5*im(e):.5*(2-Math.pow(2,-10*(e-1))),om=e=>1-Math.sin(Math.acos(e)),zb=Bb(om),$b=Db(om),Wb=e=>/^0[^.\s]+$/u.test(e);function sM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wb(e):!0}const Hb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),iM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oM(e){const t=iM.exec(e);if(!t)return[,];const[,n,s,o]=t;return[`--${n??s}`,o]}function qb(e,t,n=1){const[s,o]=oM(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return Hb(c)?parseFloat(c):c}return Gp(o)?qb(o,t,n+1):o}const aM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$0=e=>e===eo||e===xe,W0=(e,t)=>parseFloat(e.split(", ")[t]),H0=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return W0(o[1],t);{const l=s.match(/^matrix\((.+)\)$/u);return l?W0(l[1],e):0}},lM=new Set(["x","y","z"]),cM=Ia.filter(e=>!lM.has(e));function uM(e){const t=[];return cM.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:H0(4,13),y:H0(5,14)};qi.translateX=qi.x;qi.translateY=qi.y;const Kb=e=>t=>t.test(e),dM={test:e=>e==="auto",parse:e=>e},Gb=[eo,xe,Un,Br,yj,gj,dM],q0=e=>Gb.find(Kb(e)),Bs=new Set;let zh=!1,$h=!1;function Qb(){if($h){const e=Array.from(Bs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const o=uM(s);o.length&&(n.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=n.get(s);o&&o.forEach(([l,c])=>{var u;(u=s.getValue(l))===null||u===void 0||u.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}$h=!1,zh=!1,Bs.forEach(e=>e.complete()),Bs.clear()}function Yb(){Bs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($h=!0)})}function fM(){Yb(),Qb()}class am{constructor(t,n,s,o,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=o,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bs.add(this),zh||(zh=!0,qe.read(Yb),qe.resolveKeyframes(Qb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:o}=this;for(let l=0;l<t.length;l++)if(t[l]===null)if(l===0){const c=o==null?void 0:o.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(s&&n){const f=s.readValue(n,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}else t[l]=t[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Bs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const la=e=>Math.round(e*1e5)/1e5,lm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hM(e){return e==null}const pM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cm=(e,t)=>n=>!!(typeof n=="string"&&pM.test(n)&&n.startsWith(e)||t&&!hM(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xb=(e,t,n)=>s=>{if(typeof s!="string")return s;const[o,l,c,u]=s.match(lm);return{[e]:parseFloat(o),[t]:parseFloat(l),[n]:parseFloat(c),alpha:u!==void 0?parseFloat(u):1}},mM=e=>ur(0,255,e),Bf={...eo,transform:e=>Math.round(mM(e))},Ps={test:cm("rgb","red"),parse:Xb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Bf.transform(e)+", "+Bf.transform(t)+", "+Bf.transform(n)+", "+la(ya.transform(s))+")"};function gM(e){let t="",n="",s="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Wh={test:cm("#"),parse:gM,transform:Ps.transform},Ai={test:cm("hsl","hue"),parse:Xb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Un.transform(la(t))+", "+Un.transform(la(n))+", "+la(ya.transform(s))+")"},Tt={test:e=>Ps.test(e)||Wh.test(e)||Ai.test(e),parse:e=>Ps.test(e)?Ps.parse(e):Ai.test(e)?Ai.parse(e):Wh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ps.transform(e):Ai.transform(e)},yM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(yM))===null||n===void 0?void 0:n.length)||0)>0}const Jb="number",Zb="color",wM="var",xM="var(",K0="${}",SM=/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 wa(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},o=[];let l=0;const u=t.replace(SM,f=>(Tt.test(f)?(s.color.push(l),o.push(Zb),n.push(Tt.parse(f))):f.startsWith(xM)?(s.var.push(l),o.push(wM),n.push(f)):(s.number.push(l),o.push(Jb),n.push(parseFloat(f))),++l,K0)).split(K0);return{values:n,split:u,indexes:s,types:o}}function eE(e){return wa(e).values}function tE(e){const{split:t,types:n}=wa(e),s=t.length;return o=>{let l="";for(let c=0;c<s;c++)if(l+=t[c],o[c]!==void 0){const u=n[c];u===Jb?l+=la(o[c]):u===Zb?l+=Tt.transform(o[c]):l+=o[c]}return l}}const bM=e=>typeof e=="number"?0:e;function EM(e){const t=eE(e);return tE(e)(t.map(bM))}const ts={test:vM,parse:eE,createTransformer:tE,getAnimatableNone:EM},CM=new Set(["brightness","contrast","saturate","opacity"]);function AM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(lm)||[];if(!s)return e;const o=n.replace(s,"");let l=CM.has(t)?1:0;return s!==n&&(l*=100),t+"("+l+o+")"}const TM=/\b([a-z-]*)\(.*?\)/gu,Hh={...ts,getAnimatableNone:e=>{const t=e.match(TM);return t?t.map(AM).join(" "):e}},PM={...Kp,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Hh,WebkitFilter:Hh},um=e=>PM[e];function nE(e,t){let n=um(e);return n!==Hh&&(n=ts),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kM=new Set(["auto","none","0"]);function RM(e,t,n){let s=0,o;for(;s<e.length&&!o;){const l=e[s];typeof l=="string"&&!kM.has(l)&&wa(l).values.length&&(o=e[s]),s++}if(o&&n)for(const l of t)e[l]=nE(n,o)}class rE extends am{constructor(t,n,s,o,l){super(t,n,s,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Gp(h))){const m=qb(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!aM.has(s)||t.length!==2)return;const[o,l]=t,c=q0(o),u=q0(l);if(c!==u)if($0(c)&&$0(u))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let o=0;o<t.length;o++)sM(t[o])&&s.push(o);s.length&&RM(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qi[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(s,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(s);l&&l.jump(this.measuredOrigin,!1);const c=o.length-1,u=o[c];o[c]=qi[s](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const G0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ts.test(e)||e==="0")&&!e.startsWith("url("));function NM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function _M(e,t,n,s){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=G0(o,t),u=G0(l,t);return!c||!u?!1:NM(e)||(n==="spring"||Zp(n))&&s}const OM=e=>e!==null;function mu(e,{repeat:t,repeatType:n="loop"},s){const o=e.filter(OM),l=t&&n!=="loop"&&t%2===1?0:o.length-1;return!l||s===void 0?o[l]:s}const jM=40;class sE{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:c="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=zn.now(),this.options={autoplay:t,delay:n,type:s,repeat:o,repeatDelay:l,repeatType:c,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>jM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&fM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=zn.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:l,delay:c,onComplete:u,onUpdate:f,isGenerator:h}=this.options;if(!h&&!_M(t,s,o,l))if(c)this.options.duration=0;else{f==null||f(mu(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ye=(e,t,n)=>e+(t-e)*n;function Ff(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function MM({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let o=0,l=0,c=0;if(!t)o=l=c=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;o=Ff(f,u,e+1/3),l=Ff(f,u,e),c=Ff(f,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function qc(e,t){return n=>n>0?t:e}const Vf=(e,t,n)=>{const s=e*e,o=n*(t*t-s)+s;return o<0?0:Math.sqrt(o)},LM=[Wh,Ps,Ai],IM=e=>LM.find(t=>t.test(e));function Q0(e){const t=IM(e);if(!t)return!1;let n=t.parse(e);return t===Ai&&(n=MM(n)),n}const Y0=(e,t)=>{const n=Q0(e),s=Q0(t);if(!n||!s)return qc(e,t);const o={...n};return l=>(o.red=Vf(n.red,s.red,l),o.green=Vf(n.green,s.green,l),o.blue=Vf(n.blue,s.blue,l),o.alpha=Ye(n.alpha,s.alpha,l),Ps.transform(o))},DM=(e,t)=>n=>t(e(n)),Fa=(...e)=>e.reduce(DM),qh=new Set(["none","hidden"]);function BM(e,t){return qh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FM(e,t){return n=>Ye(e,t,n)}function dm(e){return typeof e=="number"?FM:typeof e=="string"?Gp(e)?qc:Tt.test(e)?Y0:zM:Array.isArray(e)?iE:typeof e=="object"?Tt.test(e)?Y0:VM:qc}function iE(e,t){const n=[...e],s=n.length,o=e.map((l,c)=>dm(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)n[c]=o[c](l);return n}}function VM(e,t){const n={...e,...t},s={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(s[o]=dm(e[o])(e[o],t[o]));return o=>{for(const l in s)n[l]=s[l](o);return n}}function UM(e,t){var n;const s=[],o={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const c=t.types[l],u=e.indexes[c][o[c]],f=(n=e.values[u])!==null&&n!==void 0?n:0;s[l]=f,o[c]++}return s}const zM=(e,t)=>{const n=ts.createTransformer(t),s=wa(e),o=wa(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?qh.has(e)&&!o.values.length||qh.has(t)&&!s.values.length?BM(e,t):Fa(iE(UM(s,o),o.values),n):qc(e,t)};function oE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ye(e,t,n):dm(e)(e,t)}const $M=5;function aE(e,t,n){const s=Math.max(t-$M,0);return Mb(n-e(s),t-s)}const Ze={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},Uf=.001;function WM({duration:e=Ze.duration,bounce:t=Ze.bounce,velocity:n=Ze.velocity,mass:s=Ze.mass}){let o,l,c=1-t;c=ur(Ze.minDamping,Ze.maxDamping,c),e=ur(Ze.minDuration,Ze.maxDuration,cr(e)),c<1?(o=h=>{const m=h*c,g=m*e,w=m-n,C=Kh(h,c),E=Math.exp(-g);return Uf-w/C*E},l=h=>{const g=h*c*e,w=g*n+n,C=Math.pow(c,2)*Math.pow(h,2)*e,E=Math.exp(-g),x=Kh(Math.pow(h,2),c);return(-o(h)+Uf>0?-1:1)*((w-C)*E)/x}):(o=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-Uf+m*g},l=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const u=5/e,f=qM(o,l,u);if(e=lr(e),isNaN(f))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:c*2*Math.sqrt(s*h),duration:e}}}const HM=12;function qM(e,t,n){let s=n;for(let o=1;o<HM;o++)s=s-e(s)/t(s);return s}function Kh(e,t){return e*Math.sqrt(1-t*t)}const KM=["duration","bounce"],GM=["stiffness","damping","mass"];function X0(e,t){return t.some(n=>e[n]!==void 0)}function QM(e){let t={velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1,...e};if(!X0(e,GM)&&X0(e,KM))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,l=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ze.mass,stiffness:o,damping:l}}else{const n=WM(e);t={...t,...n,mass:Ze.mass},t.isResolvedFromDuration=!0}return t}function lE(e=Ze.visualDuration,t=Ze.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],u={done:!1,value:l},{stiffness:f,damping:h,mass:m,duration:g,velocity:w,isResolvedFromDuration:C}=QM({...n,velocity:-cr(n.velocity||0)}),E=w||0,x=h/(2*Math.sqrt(f*m)),S=c-l,T=cr(Math.sqrt(f/m)),k=Math.abs(S)<5;s||(s=k?Ze.restSpeed.granular:Ze.restSpeed.default),o||(o=k?Ze.restDelta.granular:Ze.restDelta.default);let P;if(x<1){const O=Kh(T,x);P=$=>{const U=Math.exp(-x*T*$);return c-U*((E+x*T*S)/O*Math.sin(O*$)+S*Math.cos(O*$))}}else if(x===1)P=O=>c-Math.exp(-T*O)*(S+(E+T*S)*O);else{const O=T*Math.sqrt(x*x-1);P=$=>{const U=Math.exp(-x*T*$),D=Math.min(O*$,300);return c-U*((E+x*T*S)*Math.sinh(D)+O*S*Math.cosh(D))/O}}const R={calculatedDuration:C&&g||null,next:O=>{const $=P(O);if(C)u.done=O>=g;else{let U=0;x<1&&(U=O===0?lr(E):aE(P,O,$));const D=Math.abs(U)<=s,Z=Math.abs(c-$)<=o;u.done=D&&Z}return u.value=u.done?c:$,u},toString:()=>{const O=Math.min(Pb(R),Fh),$=kb(U=>R.next(O*U).value,O,30);return O+"ms "+$}};return R}function J0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:c,min:u,max:f,restDelta:h=.5,restSpeed:m}){const g=e[0],w={done:!1,value:g},C=D=>u!==void 0&&D<u||f!==void 0&&D>f,E=D=>u===void 0?f:f===void 0||Math.abs(u-D)<Math.abs(f-D)?u:f;let x=n*t;const S=g+x,T=c===void 0?S:c(S);T!==S&&(x=T-g);const k=D=>-x*Math.exp(-D/s),P=D=>T+k(D),R=D=>{const Z=k(D),K=P(D);w.done=Math.abs(Z)<=h,w.value=w.done?T:K};let O,$;const U=D=>{C(w.value)&&(O=D,$=lE({keyframes:[w.value,E(w.value)],velocity:aE(P,D,w.value),damping:o,stiffness:l,restDelta:h,restSpeed:m}))};return U(0),{calculatedDuration:null,next:D=>{let Z=!1;return!$&&O===void 0&&(Z=!0,R(D),U(D)),O!==void 0&&D>=O?$.next(D-O):(!Z&&R(D),w)}}}const YM=Ba(.42,0,1,1),XM=Ba(0,0,.58,1),cE=Ba(.42,0,.58,1),JM=e=>Array.isArray(e)&&typeof e[0]!="number",ZM={linear:Yt,easeIn:YM,easeInOut:cE,easeOut:XM,circIn:om,circInOut:$b,circOut:zb,backIn:im,backInOut:Vb,backOut:Fb,anticipate:Ub},Z0=e=>{if(em(e)){ob(e.length===4);const[t,n,s,o]=e;return Ba(t,n,s,o)}else if(typeof e=="string")return ZM[e];return e};function e2(e,t,n){const s=[],o=n||oE,l=e.length-1;for(let c=0;c<l;c++){let u=o(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||Yt:t;u=Fa(f,u)}s.push(u)}return s}function t2(e,t,{clamp:n=!0,ease:s,mixer:o}={}){const l=e.length;if(ob(l===t.length),l===1)return()=>t[0];if(l===2&&e[0]===e[1])return()=>t[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=e2(t,s,o),u=c.length,f=h=>{let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Wi(e[m],e[m+1],h);return c[m](g)};return n?h=>f(ur(e[0],e[l-1],h)):f}function n2(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const o=Wi(0,t,s);e.push(Ye(n,1,o))}}function r2(e){const t=[0];return n2(t,e.length-1),t}function s2(e,t){return e.map(n=>n*t)}function i2(e,t){return e.map(()=>t||cE).splice(0,e.length-1)}function Kc({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const o=JM(s)?s.map(Z0):Z0(s),l={done:!1,value:t[0]},c=s2(n&&n.length===t.length?n:r2(t),e),u=t2(c,t,{ease:Array.isArray(o)?o:i2(t,o)});return{calculatedDuration:e,next:f=>(l.value=u(f),l.done=f>=e,l)}}const o2=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>es(t),now:()=>xt.isProcessing?xt.timestamp:zn.now()}},a2={decay:J0,inertia:J0,tween:Kc,keyframes:Kc,spring:lE},l2=e=>e/100;class fm extends sE{constructor(t){super(t),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:s,element:o,keyframes:l}=this.options,c=(o==null?void 0:o.KeyframeResolver)||am,u=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new c(l,u,n,s,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:l,velocity:c=0}=this.options,u=Zp(n)?n:a2[n]||Kc;let f,h;u!==Kc&&typeof t[0]!="number"&&(f=Fa(l2,oE(t[0],t[1])),t=[0,100]);const m=u({...this.options,keyframes:t});l==="mirror"&&(h=u({...this.options,keyframes:[...t].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=Pb(m));const{calculatedDuration:g}=m,w=g+o,C=w*(s+1)-o;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:w,totalDuration:C}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:c,mapPercentToKeyframes:u,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:g}=s;if(this.startTime===null)return l.next(0);const{delay:w,repeat:C,repeatType:E,repeatDelay:x,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const T=this.currentTime-w*(this.speed>=0?1:-1),k=this.speed>=0?T<0:T>m;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let P=this.currentTime,R=l;if(C){const D=Math.min(this.currentTime,m)/g;let Z=Math.floor(D),K=D%1;!K&&D>=1&&(K=1),K===1&&Z--,Z=Math.min(Z,C+1),!!(Z%2)&&(E==="reverse"?(K=1-K,x&&(K-=x/g)):E==="mirror"&&(R=c)),P=ur(0,1,K)*g}const O=k?{done:!1,value:f[0]}:R.next(P);u&&(O.value=u(O.value));let{done:$}=O;!k&&h!==null&&($=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return U&&o!==void 0&&(O.value=mu(f,this.options,o)),S&&S(O.value),U&&this.finish(),O}get duration(){const{resolved:t}=this;return t?cr(t.calculatedDuration):0}get time(){return cr(this.currentTime)}set time(t){t=lr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=cr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=o2,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const c2=new Set(["opacity","clipPath","filter","transform"]);function u2(e,t,n,{delay:s=0,duration:o=300,repeat:l=0,repeatType:c="loop",ease:u="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=Nb(u,o);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:s,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const d2=Dp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gc=10,f2=2e4;function h2(e){return Zp(e.type)||e.type==="spring"||!Rb(e.ease)}function p2(e,t){const n=new fm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const o=[];let l=0;for(;!s.done&&l<f2;)s=n.sample(l),o.push(s.value),l+=Gc;return{times:void 0,keyframes:o,duration:l-Gc,ease:"linear"}}const uE={anticipate:Ub,backInOut:Vb,circInOut:$b};function m2(e){return e in uE}class ew extends sE{constructor(t){super(t);const{name:n,motionValue:s,element:o,keyframes:l}=this.options;this.resolver=new rE(l,(c,u)=>this.onKeyframesResolved(c,u),n,s,o),this.resolver.scheduleResolve()}initPlayback(t,n){var s;let{duration:o=300,times:l,ease:c,type:u,motionValue:f,name:h,startTime:m}=this.options;if(!(!((s=f.owner)===null||s===void 0)&&s.current))return!1;if(typeof c=="string"&&Hc()&&m2(c)&&(c=uE[c]),h2(this.options)){const{onComplete:w,onUpdate:C,motionValue:E,element:x,...S}=this.options,T=p2(t,S);t=T.keyframes,t.length===1&&(t[1]=t[0]),o=T.duration,l=T.times,c=T.ease,u="keyframes"}const g=u2(f.owner.current,h,t,{...this.options,duration:o,times:l,ease:c});return g.startTime=m??this.calcStartTime(),this.pendingTimeline?(B0(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:w}=this.options;f.set(mu(t,this.options,n)),w&&w(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:o,times:l,type:u,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return cr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return cr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=lr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Yt;const{animation:s}=n;B0(s,t)}return Yt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:o,type:l,ease:c,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:g,element:w,...C}=this.options,E=new fm({...C,keyframes:s,duration:o,type:l,ease:c,times:u,isGenerator:!0}),x=lr(this.time);h.setWithVelocity(E.sample(x-Gc).value,E.sample(x).value,Gc)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:o,repeatType:l,damping:c,type:u}=t;return d2()&&s&&c2.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&l!=="mirror"&&c!==0&&u!=="inertia"}}const g2={type:"spring",stiffness:500,damping:25,restSpeed:10},y2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),v2={type:"keyframes",duration:.8},w2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},x2=(e,{keyframes:t})=>t.length>2?v2:Gs.has(e)?e.startsWith("scale")?y2(t[1]):g2:w2;function S2({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:l,repeatType:c,repeatDelay:u,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const hm=(e,t,n,s={},o,l)=>c=>{const u=Jp(s,e)||{},f=u.delay||s.delay||0;let{elapsed:h=0}=s;h=h-lr(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:w=>{t.set(w),u.onUpdate&&u.onUpdate(w)},onComplete:()=>{c(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:l?void 0:o};S2(u)||(m={...m,...x2(e,m)}),m.duration&&(m.duration=lr(m.duration)),m.repeatDelay&&(m.repeatDelay=lr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!l&&t.get()!==void 0){const w=mu(m.keyframes,u);if(w!==void 0)return qe.update(()=>{m.onUpdate(w),m.onComplete()}),new Fj([])}return!l&&ew.supports(m)?new ew(m):new fm(m)};function b2({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function dE(e,t,{delay:n=0,transitionOverride:s,type:o}={}){var l;let{transition:c=e.getDefaultTransition(),transitionEnd:u,...f}=t;s&&(c=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const w=e.getValue(g,(l=e.latestValues[g])!==null&&l!==void 0?l:null),C=f[g];if(C===void 0||m&&b2(m,g))continue;const E={delay:n,...Jp(c||{},g)};let x=!1;if(window.MotionHandoffAnimation){const T=Lb(e);if(T){const k=window.MotionHandoffAnimation(T,g,qe);k!==null&&(E.startTime=k,x=!0)}}Uh(e,g),w.start(hm(g,w,C,e.shouldReduceMotion&&Gs.has(g)?{type:!1}:E,e,x));const S=w.animation;S&&h.push(S)}return u&&Promise.all(h).then(()=>{qe.update(()=>{u&&Zj(e,u)})}),h}function Gh(e,t,n={}){var s;const o=pu(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const c=o?()=>Promise.all(dE(e,o,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:w}=l;return E2(e,t,m+h,g,w,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[h,m]=f==="beforeChildren"?[c,u]:[u,c];return h().then(()=>m())}else return Promise.all([c(),u(n.delay)])}function E2(e,t,n=0,s=0,o=1,l){const c=[],u=(e.variantChildren.size-1)*s,f=o===1?(h=0)=>h*s:(h=0)=>u-h*s;return Array.from(e.variantChildren).sort(C2).forEach((h,m)=>{h.notify("AnimationStart",t),c.push(Gh(h,t,{...l,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(c)}function C2(e,t){return e.sortNodePosition(t)}function A2(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(l=>Gh(e,l,n));s=Promise.all(o)}else if(typeof t=="string")s=Gh(e,t,n);else{const o=typeof t=="function"?pu(e,t,n.custom):t;s=Promise.all(dE(e,o,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const T2=Vp.length;function fE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<T2;n++){const s=Vp[n],o=e.props[s];(ga(o)||o===!1)&&(t[s]=o)}return t}const P2=[...Fp].reverse(),k2=Fp.length;function R2(e){return t=>Promise.all(t.map(({animation:n,options:s})=>A2(e,n,s)))}function N2(e){let t=R2(e),n=tw(),s=!0;const o=f=>(h,m)=>{var g;const w=pu(e,m,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(w){const{transition:C,transitionEnd:E,...x}=w;h={...h,...x,...E}}return h};function l(f){t=f(e)}function c(f){const{props:h}=e,m=fE(e.parent)||{},g=[],w=new Set;let C={},E=1/0;for(let S=0;S<k2;S++){const T=P2[S],k=n[T],P=h[T]!==void 0?h[T]:m[T],R=ga(P),O=T===f?k.isActive:null;O===!1&&(E=S);let $=P===m[T]&&P!==h[T]&&R;if($&&s&&e.manuallyAnimateOnMount&&($=!1),k.protectedKeys={...C},!k.isActive&&O===null||!P&&!k.prevProp||fu(P)||typeof P=="boolean")continue;const U=_2(k.prevProp,P);let D=U||T===f&&k.isActive&&!$&&R||S>E&&R,Z=!1;const K=Array.isArray(P)?P:[P];let ie=K.reduce(o(T),{});O===!1&&(ie={});const{prevResolvedValues:me={}}=k,fe={...me,...ie},pe=ee=>{D=!0,w.has(ee)&&(Z=!0,w.delete(ee)),k.needsAnimating[ee]=!0;const I=e.getValue(ee);I&&(I.liveStyle=!1)};for(const ee in fe){const I=ie[ee],J=me[ee];if(C.hasOwnProperty(ee))continue;let Y=!1;Bh(I)&&Bh(J)?Y=!Tb(I,J):Y=I!==J,Y?I!=null?pe(ee):w.add(ee):I!==void 0&&w.has(ee)?pe(ee):k.protectedKeys[ee]=!0}k.prevProp=P,k.prevResolvedValues=ie,k.isActive&&(C={...C,...ie}),s&&e.blockInitialAnimation&&(D=!1),D&&(!($&&U)||Z)&&g.push(...K.map(ee=>({animation:ee,options:{type:T}})))}if(w.size){const S={};w.forEach(T=>{const k=e.getBaseTarget(T),P=e.getValue(T);P&&(P.liveStyle=!0),S[T]=k??null}),g.push({animation:S})}let x=!!g.length;return s&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(x=!1),s=!1,x?t(g):Promise.resolve()}function u(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(w=>{var C;return(C=w.animationState)===null||C===void 0?void 0:C.setActive(f,h)}),n[f].isActive=h;const g=c(f);for(const w in n)n[w].protectedKeys={};return g}return{animateChanges:c,setActive:u,setAnimateFunction:l,getState:()=>n,reset:()=>{n=tw(),s=!0}}}function _2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tb(t,e):!1}function bs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tw(){return{animate:bs(!0),whileInView:bs(),whileHover:bs(),whileTap:bs(),whileDrag:bs(),whileFocus:bs(),exit:bs()}}class is{constructor(t){this.isMounted=!1,this.node=t}update(){}}class O2 extends is{constructor(t){super(t),t.animationState||(t.animationState=N2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let j2=0;class M2 extends is{constructor(){super(...arguments),this.id=j2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const L2={animation:{Feature:O2},exit:{Feature:M2}};function xa(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Va(e){return{point:{x:e.pageX,y:e.pageY}}}const I2=e=>t=>tm(t)&&e(t,Va(t));function ca(e,t,n,s){return xa(e,t,I2(n),s)}const nw=(e,t)=>Math.abs(e-t);function D2(e,t){const n=nw(e.x,t.x),s=nw(e.y,t.y);return Math.sqrt(n**2+s**2)}class hE{constructor(t,n,{transformPagePoint:s,contextWindow:o,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 g=$f(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,C=D2(g.offset,{x:0,y:0})>=3;if(!w&&!C)return;const{point:E}=g,{timestamp:x}=xt;this.history.push({...E,timestamp:x});const{onStart:S,onMove:T}=this.handlers;w||(S&&S(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,g)},this.handlePointerMove=(g,w)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=zf(w,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(g,w)=>{this.end();const{onEnd:C,onSessionEnd:E,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=$f(g.type==="pointercancel"?this.lastMoveEventInfo:zf(w,this.transformPagePoint),this.history);this.startEvent&&C&&C(g,S),E&&E(g,S)},!tm(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const c=Va(t),u=zf(c,this.transformPagePoint),{point:f}=u,{timestamp:h}=xt;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,$f(u,this.history)),this.removeListeners=Fa(ca(this.contextWindow,"pointermove",this.handlePointerMove),ca(this.contextWindow,"pointerup",this.handlePointerUp),ca(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),es(this.updatePoint)}}function zf(e,t){return t?{point:t(e.point)}:e}function rw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $f({point:e},t){return{point:e,delta:rw(e,pE(t)),offset:rw(e,B2(t)),velocity:F2(t,.1)}}function B2(e){return e[0]}function pE(e){return e[e.length-1]}function F2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=pE(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>lr(t)));)n--;if(!s)return{x:0,y:0};const l=cr(o.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(o.x-s.x)/l,y:(o.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const mE=1e-4,V2=1-mE,U2=1+mE,gE=.01,z2=0-gE,$2=0+gE;function Jt(e){return e.max-e.min}function W2(e,t,n){return Math.abs(e-t)<=n}function sw(e,t,n,s=.5){e.origin=s,e.originPoint=Ye(t.min,t.max,e.origin),e.scale=Jt(n)/Jt(t),e.translate=Ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=V2&&e.scale<=U2||isNaN(e.scale))&&(e.scale=1),(e.translate>=z2&&e.translate<=$2||isNaN(e.translate))&&(e.translate=0)}function ua(e,t,n,s){sw(e.x,t.x,n.x,s?s.originX:void 0),sw(e.y,t.y,n.y,s?s.originY:void 0)}function iw(e,t,n){e.min=n.min+t.min,e.max=e.min+Jt(t)}function H2(e,t,n){iw(e.x,t.x,n.x),iw(e.y,t.y,n.y)}function ow(e,t,n){e.min=t.min-n.min,e.max=e.min+Jt(t)}function da(e,t,n){ow(e.x,t.x,n.x),ow(e.y,t.y,n.y)}function q2(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Ye(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Ye(n,e,s.max):Math.min(e,n)),e}function aw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function K2(e,{top:t,left:n,bottom:s,right:o}){return{x:aw(e.x,n,o),y:aw(e.y,t,s)}}function lw(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function G2(e,t){return{x:lw(e.x,t.x),y:lw(e.y,t.y)}}function Q2(e,t){let n=.5;const s=Jt(e),o=Jt(t);return o>s?n=Wi(t.min,t.max-s,e.min):s>o&&(n=Wi(e.min,e.max-o,t.min)),ur(0,1,n)}function Y2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qh=.35;function X2(e=Qh){return e===!1?e=0:e===!0&&(e=Qh),{x:cw(e,"left","right"),y:cw(e,"to
160p","bottom")}}function cw(e,t,n){return{min:uw(e,t),max:uw(e,n)}}function uw(e,t){return typeof e=="number"?e:e[t]||0}const dw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ti=()=>({x:dw(),y:dw()}),fw=()=>({min:0,max:0}),nt=()=>({x:fw(),y:fw()});function ln(e){return[e("x"),e("y")]}function yE({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function J2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Z2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Wf(e){return e===void 0||e===1}function Yh({scale:e,scaleX:t,scaleY:n}){return!Wf(e)||!Wf(t)||!Wf(n)}function Es(e){return Yh(e)||vE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vE(e){return hw(e.x)||hw(e.y)}function hw(e){return e&&e!=="0%"}function Qc(e,t,n){const s=e-n,o=t*s;return n+o}function pw(e,t,n,s,o){return o!==void 0&&(e=Qc(e,o,s)),Qc(e,n,s)+t}function Xh(e,t=0,n=1,s,o){e.min=pw(e.min,t,n,s,o),e.max=pw(e.max,t,n,s,o)}function wE(e,{x:t,y:n}){Xh(e.x,t.translate,t.scale,t.originPoint),Xh(e.y,n.translate,n.scale,n.originPoint)}const mw=.999999999999,gw=1.0000000000001;function eL(e,t,n,s=!1){const o=n.length;if(!o)return;t.x=t.y=1;let l,c;for(let u=0;u<o;u++){l=n[u],c=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ki(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,wE(e,c)),s&&Es(l.latestValues)&&ki(e,l.latestValues))}t.x<gw&&t.x>mw&&(t.x=1),t.y<gw&&t.y>mw&&(t.y=1)}function Pi(e,t){e.min=e.min+t,e.max=e.max+t}function yw(e,t,n,s,o=.5){const l=Ye(e.min,e.max,o);Xh(e,t,n,l,s)}function ki(e,t){yw(e.x,t.x,t.scaleX,t.scale,t.originX),yw(e.y,t.y,t.scaleY,t.scale,t.originY)}function xE(e,t){return yE(Z2(e.getBoundingClientRect(),t))}function tL(e,t,n){const s=xE(e,n),{scroll:o}=t;return o&&(Pi(s.x,o.offset.x),Pi(s.y,o.offset.y)),s}const SE=({current:e})=>e?e.ownerDocument.defaultView:null,nL=new WeakMap;class rL{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Va(m).point)},l=(m,g)=>{const{drag:w,dragPropagation:C,onDragStart:E}=this.getProps();if(w&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Gj(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),ln(S=>{let T=this.getAxisMotionValue(S).get()||0;if(Un.test(T)){const{projection:k}=this.visualElement;if(k&&k.layout){const P=k.layout.layoutBox[S];P&&(T=Jt(P)*(parseFloat(T)/100))}}this.originPoint[S]=T}),E&&qe.postRender(()=>E(m,g)),Uh(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},c=(m,g)=>{const{dragPropagation:w,dragDirectionLock:C,onDirectionLock:E,onDrag:x}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:S}=g;if(C&&this.currentDirection===null){this.currentDirection=sL(S),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",g.point,S),this.updateAxis("y",g.point,S),this.visualElement.render(),x&&x(m,g)},u=(m,g)=>this.stop(m,g),f=()=>ln(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new hE(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:u,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:SE(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&qe.postRender(()=>l(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:o}=this.getProps();if(!s||!dc(t,o,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=q2(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&Ci(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=K2(o.layoutBox,n):this.constraints=!1,this.elastic=X2(s),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ln(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=Y2(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ci(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=tL(s,o.root,this.visualElement.getTransformPagePoint());let c=G2(o.layout.layoutBox,l);if(n){const u=n(J2(c));this.hasMutatedConstraints=!!u,u&&(c=yE(u))}return c}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=ln(m=>{if(!dc(m,n,this.currentDirection))return;let g=f&&f[m]||{};c&&(g={min:0,max:0});const w=o?200:1e6,C=o?40:1e7,E={type:"inertia",velocity:s?t[m]:0,bounceStiffness:w,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(m,E)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Uh(this.visualElement,t),s.start(hm(t,s,0,n,this.visualElement,!1))}stopAnimation(){ln(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ln(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){ln(n=>
vendor: 45,874 bytes, line 160
160{const{drag:s}=this.getProps();if(!dc(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:u}=o.layout.layoutBox[n];l.set(t[n]-Ye(c,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ci(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ln(c=>{const u=this.getAxisMotionValue(c);if(u&&this.constraints!==!1){const f=u.get();o[c]=Q2({min:f,max:f},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),ln(c=>{if(!dc(c,t,null))return;const u=this.getAxisMotionValue(c),{min:f,max:h}=this.constraints[c];u.set(Ye(f,h,o[c]))})}addListeners(){if(!this.visualElement.current)return;nL.set(this.visualElement,this);const t=this.visualElement.current,n=ca(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();Ci(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),qe.read(s);const c=xa(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(ln(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:c=Qh,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:u}}}function dc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iL extends is{constructor(t){super(t),this.removeGroupControls=Yt,this.removeListeners=Yt,this.controls=new rL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const vw=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class oL extends is{constructor(){super(...arguments),this.removePointerDownListener=Yt}onPointerDown(t){this.session=new hE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:SE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:vw(t),onStart:vw(n),onMove:s,onEnd:(l,c)=>{delete this.session,o&&qe.postRender(()=>o(l,c))}}}mount(){this.removePointerDownListener=ca(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function aL(){const e=b.useContext(uu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:s}=e,o=b.useId();b.useEffect(()=>s(o),[]);const l=b.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,l]:[!0]}const _c={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ww(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Xo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=ww(e,t.target.x),s=ww(e,t.target.y);return`${n}% ${s}%`}},lL={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,o=ts.parse(e);if(o.length>5)return s;const l=ts.createTransformer(e),c=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;o[0+c]/=u,o[1+c]/=f;const h=Ye(u,f,.5);return typeof o[2+c]=="number"&&(o[2+c]/=h),typeof o[3+c]=="number"&&(o[3+c]/=h),l(o)}};class cL extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:l}=t;dj(uL),l&&(n.group&&n.group.add(l),s&&s.register&&o&&s.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),_c.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:l}=this.props,c=s.projection;return c&&(c.isPresent=l,o||t.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||qe.postRender(()=>{const u=c.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),zp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bE(e){const[t,n]=aL(),s=b.useContext(Ip);return v.jsx(cL,{...e,layoutGroup:s,switchLayoutGroup:b.useContext(hb),isPresent:t,safeToRemove:n})}const uL={borderRadius:{...Xo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xo,borderTopRightRadius:Xo,borderBottomLeftRadius:Xo,borderBottomRightRadius:Xo,boxShadow:lL};function dL(e,t,n){const s=kt(e)?e:va(e);return s.start(hm("",s,t,n)),s.animation}function fL(e){return e instanceof SVGElement&&e.tagName!=="svg"}const hL=(e,t)=>e.depth-t.depth;class pL{constructor(){this.children=[],this.isDirty=!1}add(t){nm(this.children,t),this.isDirty=!0}remove(t){rm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hL),this.isDirty=!1,this.children.forEach(t)}}function mL(e,t){const n=zn.now(),s=({timestamp:o})=>{const l=o-n;l>=t&&(es(s),e(l-t))};return qe.read(s,!0),()=>es(s)}const EE=["TopLeft","TopRight","BottomLeft","BottomRight"],gL=EE.length,xw=e=>typeof e=="string"?parseFloat(e):e,Sw=e=>typeof e=="number"||xe.test(e);function yL(e,t,n,s,o,l){o?(e.opacity=Ye(0,n.opacity!==void 0?n.opacity:1,vL(s)),e.opacityExit=Ye(t.opacity!==void 0?t.opacity:1,0,wL(s))):l&&(e.opacity=Ye(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let c=0;c<gL;c++){const u=`border${EE[c]}Radius`;let f=bw(t,u),h=bw(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||Sw(f)===Sw(h)?(e[u]=Math.max(Ye(xw(f),xw(h),s),0),(Un.test(h)||Un.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=Ye(t.rotate||0,n.rotate||0,s))}function bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vL=CE(0,.5,zb),wL=CE(.5,.95,Yt);function CE(e,t,n){return s=>s<e?0:s>t?1:n(Wi(e,t,s))}function Ew(e,t){e.min=t.min,e.max=t.max}function on(e,t){Ew(e.x,t.x),Ew(e.y,t.y)}function Cw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Aw(e,t,n,s,o){return e-=t,e=Qc(e,1/n,s),o!==void 0&&(e=Qc(e,1/o,s)),e}function xL(e,t=0,n=1,s=.5,o,l=e,c=e){if(Un.test(t)&&(t=parseFloat(t),t=Ye(c.min,c.max,t/100)-c.min),typeof t!="number")return;let u=Ye(l.min,l.max,s);e===l&&(u-=t),e.min=Aw(e.min,t,n,u,o),e.max=Aw(e.max,t,n,u,o)}function Tw(e,t,[n,s,o],l,c){xL(e,t[n],t[s],t[o],t.scale,l,c)}const SL=["x","scaleX","originX"],bL=["y","scaleY","originY"];function Pw(e,t,n,s){Tw(e.x,t,SL,n?n.x:void 0,s?s.x:void 0),Tw(e.y,t,bL,n?n.y:void 0,s?s.y:void 0)}function kw(e){return e.translate===0&&e.scale===1}function AE(e){return kw(e.x)&&kw(e.y)}function Rw(e,t){return e.min===t.min&&e.max===t.max}function EL(e,t){return Rw(e.x,t.x)&&Rw(e.y,t.y)}function Nw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function TE(e,t){return Nw(e.x,t.x)&&Nw(e.y,t.y)}function _w(e){return Jt(e.x)/Jt(e.y)}function Ow(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class CL{constructor(){this.members=[]}add(t){nm(this.members,t),t.scheduleRender()}remove(t){if(rm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let s;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){s=l;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AL(e,t,n){let s="";const o=e.x.translate/t.x,l=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((o||l||c)&&(s=`translate3d(${o}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:w,skewX:C,skewY:E}=n;h&&(s=`perspective(${h}px) ${s}`),m&&(s+=`rotate(${m}deg) `),g&&(s+=`rotateX(${g}deg) `),w&&(s+=`rotateY(${w}deg) `),C&&(s+=`skewX(${C}deg) `),E&&(s+=`skewY(${E}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(s+=`scale(${u}, ${f})`),s||"none"}const Cs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sa=typeof window<"u"&&window.MotionDebug!==void 0,Hf=["","X","Y","Z"],TL={visibility:"hidden"},jw=1e3;let PL=0;function qf(e,t,n,s){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function PE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Lb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(o||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&PE(s)}function kE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(c={},u=t==null?void 0:t()){this.id=PL++,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,sa&&(Cs.totalNodes=Cs.resolvedTargetDeltas=Cs.recalculatedProjection=0),this.nodes.forEach(NL),this.nodes.forEach(LL),this.nodes.forEach(IL),this.nodes.forEach(_L),sa&&window.MotionDebug.record(Cs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new pL)}addEventListener(c,u){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new sm),this.eventHandlers.get(c).add(u)}notifyListeners(c,...u){const f=this.eventHandlers.get(c);f&&f.notify(...u)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fL(c),this.instance=c;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(h||f)&&(this.isLayoutDirty=!0),e){let g;const w=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=mL(w,250),_c.hasAnimatedSinceResize&&(_c.hasAnimatedSinceResize=!1,this.nodes.forEach(Lw))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:w,hasRelativeTargetChanged:C,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||m.getDefaultTransition()||UL,{onLayoutAnimationStart:S,onLayoutAnimationComplete:T}=m.getProps(),k=!this.targetLayout||!TE(this.targetLayout,E)||C,P=!w&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||w&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,P);const R={...Jp(x,"layout"),onPlay:S,onComplete:T};(m.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else w||Lw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}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,es(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(DL),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&&PE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mw);return}this.isUpdating||this.nodes.forEach(jL),this.isUpdating=!1,this.nodes.forEach(ML),this.nodes.forEach(kL),this.nodes.forEach(RL),this.clearAllSnapshots();const u=zn.now();xt.delta=ur(0,1e3/60,u-xt.timestamp),xt.timestamp=u,xt.isProcessing=!0,If.update.process(xt),If.preRender.process(xt),If.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OL),this.sharedNodes.forEach(BL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.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=nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(u=!1),u){const f=s(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(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!AE(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;c&&(u||Es(this.latestValues)||m)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return c&&(f=this.removeTransform(f)),zL(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:u}=this.options;if(!u)return nt();const f=u.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some($L))){const{scroll:m}=this.root;m&&(Pi(f.x,m.offset.x),Pi(f.y,m.offset.y))}return f}removeElementScroll(c){var u;const f=nt();if(on(f,c),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:w}=m;m!==this.root&&g&&w.layoutScroll&&(g.wasRoot&&on(f,c),Pi(f.x,g.offset.x),Pi(f.y,g.offset.y))}return f}applyTransform(c,u=!1){const f=nt();on(f,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];!u&&m.options.layoutScroll&&m.scroll&&m!==m.root&&ki(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Es(m.latestValues)&&ki(f,m.latestValues)}return Es(this.latestValues)&&ki(f,this.latestValues),f}removeTransform(c){const u=nt();on(u,c);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Es(h.latestValues))continue;Yh(h.latestValues)&&h.updateSnapshot();const m=nt(),g=h.measurePageBox();on(m,g),Pw(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Es(this.latestValues)&&Pw(u,this.latestValues),u}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!==xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var u;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:w}=this.options;if(!(!this.layout||!(g||w))){if(this.resolvedRelativeTargetAt=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),da(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=nt(),this.targetWithTransforms=nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),H2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),wE(this.target,this.targetDelta)):on(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),da(this.relativeTargetOrigin,this.target,C.target),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sa&&Cs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Yh(this.parent.latestValues)||vE(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 u=this.getLead(),f=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===xt.timestamp&&(h=!1),h)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;on(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,C=this.treeScale.y;eL(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=nt());const{target:E}=u;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Cw(this.prevProjectionDelta.x,this.projectionDelta.x),Cw(this.prevProjectionDelta.y,this.projectionDelta.y)),ua(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==C||!Ow(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ow(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),sa&&Cs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ti(),this.projectionDelta=Ti(),this.projectionDeltaWithTransform=Ti()}setAnimationOrigin(c,u=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},g=Ti();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const w=nt(),C=f?f.source:void 0,E=this.layout?this.layout.source:void 0,x=C!==E,S=this.getStack(),T=!S||S.members.length<=1,k=!!(x&&!T&&this.options.crossfade===!0&&!this.path.some(VL));this.animationProgress=0;let P;this.mixTargetDelta=R=>{const O=R/1e3;Iw(g.x,c.x,O),Iw(g.y,c.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(da(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),FL(this.relativeTarget,this.relativeTargetOrigin,w,O),P&&EL(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=nt()),on(P,this.relativeTarget)),x&&(this.animationValues=m,yL(m,h,this.latestValues,O,k,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},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&&(es(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qe.update(()=>{_c.hasAnimatedSinceResize=!0,this.currentAnimation=dL(0,jw,{...c,onUpdate:u=>{this.mixTargetDelta(u),c.onUpdate&&c.onUpdate(u)},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(jw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:m}=c;if(!(!u||!f||!h)){if(this!==c&&this.layout&&h&&RE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||nt();const g=Jt(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+g;const w=Jt(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+w}on(u,f),ki(u,m),ua(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(c,u){this.sharedNodes.has(c)||this.sharedNodes.set(c,new CL),this.sharedNodes.get(c).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:u}=this.options;return u?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:u}=this.options;return u?(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:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let u=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&qf("z",c,h,this.animationValues);for(let m=0;m<Hf.length;m++)qf(`rotate${Hf[m]}`,c,h,this.animationValues),qf(`skew${Hf[m]}`,c,h,this.animationValues);c.render();for(const m in h)c.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);c.scheduleRender()}getProjectionStyles(c){var u,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return TL;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Rc(c==null?void 0:c.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Rc(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Es(this.latestValues)&&(x.transform=m?m({},""):"none",this.hasProjected=!1),x}const w=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=AL(this.projectionDeltaWithTransform,this.treeScale,w),m&&(h.transform=m(w,h.transform));const{x:C,y:E}=this.projectionDelta;h.transformOrigin=`${C.origin*100}% ${E.origin*100}% 0`,g.animationValues?h.opacity=g===this?(f=(u=w.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:h.opacity=g===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const x in Wc){if(w[x]===void 0)continue;const{correct:S,applyTo:T}=Wc[x],k=h.transform==="none"?w[x]:S(w[x],g);if(T){const P=T.length;for(let R=0;R<P;R++)h[T[R]]=k}else h[x]=k}return this.options.layoutId&&(h.pointerEvents=g===this?Rc(c==null?void 0:c.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var u;return(u=c.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Mw),this.root.sharedNodes.clear()}}}function kL(e){e.updateLayout()}function RL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?ln(g=>{const w=c?n.measuredBox[g]:n.layoutBox[g],C=Jt(w);w.min=s[g].min,w.max=w.min+C}):RE(l,n.layoutBox,s)&&ln(g=>{const w=c?n.measuredBox[g]:n.layoutBox[g],C=Jt(s[g]);w.max=w.min+C,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+C)});const u=Ti();ua(u,s,n.layoutBox);const f=Ti();c?ua(f,e.applyTransform(o,!0),n.measuredBox):ua(f,s,n.layoutBox);const h=!AE(u);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:w,layout:C}=g;if(w&&C){const E=nt();da(E,n.layoutBox,w.layoutBox);const x=nt();da(x,s,C.layoutBox),TE(E,x)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:f,layoutDelta:u,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function NL(e){sa&&Cs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _L(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OL(e){e.clearSnapshot()}function Mw(e){e.clearMeasurements()}function jL(e){e.isLayoutDirty=!1}function ML(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function LL(e){e.resolveTargetDelta()}function IL(e){e.calcProjection()}function DL(e){e.resetSkewAndRotation()}function BL(e){e.removeLeadSnapshot()}function Iw(e,t,n){e.translate=Ye(t.translate,0,n),e.scale=Ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dw(e,t,n,s){e.min=Ye(t.min,n.min,s),e.max=Ye(t.max,n.max,s)}function FL(e,t,n,s){Dw(e.x,t.x,n.x,s),Dw(e.y,t.y,n.y,s)}function VL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const UL={duration:.45,ease:[.4,0,.1,1]},Bw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Fw=Bw("applewebkit/")&&!Bw("chrome/")?Math.round:Yt;function Vw(e){e.min=Fw(e.min),e.max=Fw(e.max)}function zL(e){Vw(e.x),Vw(e.y)}function RE(e,t,n){return e==="position"||e==="preserve-aspect"&&!W2(_w(t),_w(n),.2)}function $L(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const WL=kE({attachResizeListener:(e,t)=>xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kf={current:void 0},NE=kE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kf.current){const e=new WL({});e.mount(window),e.setOptions({layoutScroll:!0}),Kf.current=e}return Kf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HL={pan:{Feature:oL},drag:{Feature:iL,ProjectionNode:NE,MeasureLayout:bE}};function Uw(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=s[o];l&&qe.postRender(()=>l(t,Va(t)))}class qL extends is{mount(){const{current:t}=this.node;t&&(this.unmount=$j(t,n=>(Uw(this.node,n,"Start"),s=>Uw(this.node,s,"End"))))}unmount(){}}class KL extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fa(xa(this.node.current,"focus",()=>this.onFocus()),xa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zw(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=s[o];l&&qe.postRender(()=>l(t,Va(t)))}class GL extends is{mount(){const{current:t}=this.node;t&&(this.unmount=Kj(t,n=>(zw(this.node,n,"Start"),(s,{success:o})=>zw(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Jh=new WeakMap,Gf=new WeakMap,QL=e=>{const t=Jh.get(e.target);t&&t(e)},YL=e=>{e.forEach(QL)};function XL({root:e,...t}){const n=e||document;Gf.has(n)||Gf.set(n,{});const s=Gf.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(YL,{root:e,...t})),s[o]}function JL(e,t,n){const s=XL(t);return Jh.set(e,n),s.observe(e),()=>{Jh.delete(e),s.unobserve(e)}}const ZL={some:0,all:1};class eI extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:ZL[o]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),w=h?m:g;w&&w(f)};return JL(this.node.current,c,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tI(t,n))&&this.startObserver()}unmount(){}}function tI({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nI={inView:{Feature:eI},tap:{Feature:GL},focus:{Feature:KL},hover:{Feature:qL}},rI={layout:{ProjectionNode:NE,MeasureLayout:bE}},Zh={current:null},_E={current:!1};function sI(){if(_E.current=!0,!!Bp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zh.current=e.matches;e.addListener(t),t()}else Zh.current=!1}function iI(e,t,n){for(const s in t){const o=t[s],l=n[s];if(kt(o))e.addValue(s,o);else if(kt(l))e.addValue(s,va(o,{owner:e}));else if(l!==o)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(s);e.addValue(s,va(c!==void 0?c:o,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const $w=new WeakMap,oI=[...Gb,Tt,ts],aI=e=>oI.find(Kb(e)),Ww=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lI{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:l,visualState:c},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=am,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 w=zn.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,qe.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!l,this.isControllingVariants=hu(n),this.isVariantNode=db(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in g){const C=g[w];f[w]!==void 0&&kt(C)&&C.set(f[w],!1)}}mount(t){this.current=t,$w.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),_E.current||sI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$w.delete(this.current),this.projection&&this.projection.unmount(),es(this.notifyUpdate),es(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Gs.has(t),o=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&qe.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),l(),c&&c(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hi){const n=Hi[t];if(!n)continue;const{isEnabled:s,Feature:o}=n;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const l=this.features[t];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):nt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ww.length;s++){const o=Ww[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,c=t[l];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=iI(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=va(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Hb(o)||Wb(o))?o=parseFloat(o):!aI(o)&&ts.test(n)&&(o=nE(t,n)),this.setBaseTarget(t,kt(o)?o.get():o)),kt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const c=Hp(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[t])}if(s&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!kt(l)?l:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new sm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class OE extends lI{constructor(){super(...arguments),this.KeyframeResolver=rE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function cI(e){return window.getComputedStyle(e)}class uI extends OE{constructor(){super(...arguments),this.type="html",this.renderInstance=mb}readValueFromInstance(t,n){if(Gs.has(n)){const s=um(n);return s&&s.default||0}else{const s=cI(t),o=(Cb(n)?s.getPropertyValue(n):s[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xE(t,n)}build(t,n,s){Qp(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Wp(t,n,s)}}class dI extends OE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gs.has(n)){const s=um(n);return s&&s.default||0}return n=gb.has(n)?n:Up(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return wb(t,n,s)}build(t,n,s){Yp(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,o){yb(t,n,s,o)}mount(t){this.isSVGTag=Xp(t.tagName),super.mount(t)}}const fI=(e,t)=>$p(e)?new dI(t):new uI(t,{allowProjection:e!==b.Fragment}),hI=Ij({...L2,...nI,...HL,...rI},fI),Ie=JO(hI);function to({label:e,title:t,description:n}){return v.jsx("section",{className:"pt-32 pb-16 lg:pt-40 lg:pb-24 px-6 lg:px-12 bg-[#FAFAFA] border-b border-[#E5E5E5]",children:v.jsxs(Ie.div,{className:"max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},children:[e&&v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.3em] uppercase mb-6",children:e}),v.jsx("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-light text-[#0A0A0A] leading-tight tracking-tight mb-6",children:t}),n&&v.jsx("p",{className:"text-[#6B6B6B] text-lg md:text-xl font-light leading-relaxed max-w-2xl",children:n})]})})}function Hw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jE(...e){return t=>{let n=!1;const s=e.map(o=>{const l=Hw(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<s.length;o++){const l=s[o];typeof l=="function"?l():Hw(e[o],null)}}}}function dt(...e){return b.useCallback(jE(...e),e)}function Sa(e){const t=mI(e),n=b.forwardRef((s,o)=>{const{children:l,...c}=s,u=b.Children.toArray(l),f=u.find(yI);if(f){const h=f.props.children,m=u.map(g=>g===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:g);return v.jsx(t,{...c,ref:o,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return v.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var pI=Sa("Slot");function mI(e){const t=b.forwardRef((n,s)=>{const{children:o,...l}=n;if(b.isValidElement(o)){const c=wI(o),u=vI(l,o.props);return o.type!==b.Fragment&&(u.ref=s?jE(s,c):c),b.cloneElement(o,u)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gI=Symbol("radix.slottable");function yI(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gI}function vI(e,t){const n={...t};for(const s in t){const o=e[s],l=t[s];/^on[A-Z]/.test(s)?o&&l?n[s]=(...u)=>{const f=l(...u);return o(...u),f}:o&&(n[s]=o):s==="style"?n[s]={...o,...l}
vendor: 39,430 bytes, line 160
160:s==="className"&&(n[s]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function wI(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const xI=mp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ME=b.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...o},l)=>{const c=s?pI:"button";return v.jsx(c,{className:at(xI({variant:t,size:n,className:e})),ref:l,...o})});ME.displayName="Button";const Fr=b.forwardRef(({className:e,type:t,...n},s)=>v.jsx("input",{type:t,className:at("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...n}));Fr.displayName="Input";const LE=b.forwardRef(({className:e,...t},n)=>v.jsx("textarea",{className:at("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));LE.displayName="Textarea";function qw(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ua(e,t=[]){let n=[];function s(l,c){const u=b.createContext(c),f=n.length;n=[...n,c];const h=g=>{var T;const{scope:w,children:C,...E}=g,x=((T=w==null?void 0:w[e])==null?void 0:T[f])||u,S=b.useMemo(()=>E,Object.values(E));return v.jsx(x.Provider,{value:S,children:C})};h.displayName=l+"Provider";function m(g,w){var x;const C=((x=w==null?void 0:w[e])==null?void 0:x[f])||u,E=b.useContext(C);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[h,m]}const o=()=>{const l=n.map(c=>b.createContext(c));return function(u){const f=(u==null?void 0:u[e])||l;return b.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[s,SI(o,...t)]}function SI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const c=s.reduce((u,{useScope:f,scopeName:h})=>{const g=f(l)[`__scope${h}`];return{...u,...g}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function IE(e){const t=e+"CollectionProvider",[n,s]=Ua(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=x=>{const{scope:S,children:T}=x,k=Ir.useRef(null),P=Ir.useRef(new Map).current;return v.jsx(o,{scope:S,itemMap:P,collectionRef:k,children:T})};c.displayName=t;const u=e+"CollectionSlot",f=Sa(u),h=Ir.forwardRef((x,S)=>{const{scope:T,children:k}=x,P=l(u,T),R=dt(S,P.collectionRef);return v.jsx(f,{ref:R,children:k})});h.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",w=Sa(m),C=Ir.forwardRef((x,S)=>{const{scope:T,children:k,...P}=x,R=Ir.useRef(null),O=dt(S,R),$=l(m,T);return Ir.useEffect(()=>($.itemMap.set(R,{ref:R,...P}),()=>void $.itemMap.delete(R))),v.jsx(w,{[g]:"",ref:O,children:k})});C.displayName=m;function E(x){const S=l(e+"CollectionConsumer",x);return Ir.useCallback(()=>{const k=S.collectionRef.current;if(!k)return[];const P=Array.from(k.querySelectorAll(`[${g}]`));return Array.from(S.itemMap.values()).sort(($,U)=>P.indexOf($.ref.current)-P.indexOf(U.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:c,Slot:h,ItemSlot:C},E,s]}var bI=b.createContext(void 0);function pm(e){const t=b.useContext(bI);return e||t||"ltr"}var EI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=EI.reduce((e,t)=>{const n=Sa(`Primitive.${t}`),s=b.forwardRef((o,l)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...u,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function CI(e,t){e&&Na.flushSync(()=>e.dispatchEvent(t))}function ns(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function AI(e,t=globalThis==null?void 0:globalThis.document){const n=ns(e);b.useEffect(()=>{const s=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var TI="DismissableLayer",ep="dismissableLayer.update",PI="dismissableLayer.pointerDownOutside",kI="dismissableLayer.focusOutside",Kw,DE=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),BE=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...f}=e,h=b.useContext(DE),[m,g]=b.useState(null),w=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=b.useState({}),E=dt(t,U=>g(U)),x=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=x.indexOf(S),k=m?x.indexOf(m):-1,P=h.layersWithOutsidePointerEventsDisabled.size>0,R=k>=T,O=_I(U=>{const D=U.target,Z=[...h.branches].some(K=>K.contains(D));!R||Z||(o==null||o(U),c==null||c(U),U.defaultPrevented||u==null||u())},w),$=OI(U=>{const D=U.target;[...h.branches].some(K=>K.contains(D))||(l==null||l(U),c==null||c(U),U.defaultPrevented||u==null||u())},w);return AI(U=>{k===h.layers.size-1&&(s==null||s(U),!U.defaultPrevented&&u&&(U.preventDefault(),u()))},w),b.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Kw=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),Gw(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Kw)}},[m,w,n,h]),b.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),Gw())},[m,h]),b.useEffect(()=>{const U=()=>C({});return document.addEventListener(ep,U),()=>document.removeEventListener(ep,U)},[]),v.jsx(Ue.div,{...f,ref:E,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:Ve(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Ve(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Ve(e.onPointerDownCapture,O.onPointerDownCapture)})});BE.displayName=TI;var RI="DismissableLayerBranch",NI=b.forwardRef((e,t)=>{const n=b.useContext(DE),s=b.useRef(null),o=dt(t,s);return b.useEffect(()=>{const l=s.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),v.jsx(Ue.div,{...e,ref:o})});NI.displayName=RI;function _I(e,t=globalThis==null?void 0:globalThis.document){const n=ns(e),s=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const l=u=>{if(u.target&&!s.current){let f=function(){FE(PI,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);s.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function OI(e,t=globalThis==null?void 0:globalThis.document){const n=ns(e),s=b.useRef(!1);return b.useEffect(()=>{const o=l=>{l.target&&!s.current&&FE(kI,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Gw(){const e=new CustomEvent(ep);document.dispatchEvent(e)}function FE(e,t,n,{discrete:s}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?CI(o,l):o.dispatchEvent(l)}var Qf=0;function jI(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qw()),document.body.insertAdjacentElement("beforeend",e[1]??Qw()),Qf++,()=>{Qf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qf--}},[])}function Qw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Yf="focusScope.autoFocusOnMount",Xf="focusScope.autoFocusOnUnmount",Yw={bubbles:!1,cancelable:!0},MI="FocusScope",VE=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...c}=e,[u,f]=b.useState(null),h=ns(o),m=ns(l),g=b.useRef(null),w=dt(t,x=>f(x)),C=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let x=function(P){if(C.paused||!u)return;const R=P.target;u.contains(R)?g.current=R:Vr(g.current,{select:!0})},S=function(P){if(C.paused||!u)return;const R=P.relatedTarget;R!==null&&(u.contains(R)||Vr(g.current,{select:!0}))},T=function(P){if(document.activeElement===document.body)for(const O of P)O.removedNodes.length>0&&Vr(u)};document.addEventListener("focusin",x),document.addEventListener("focusout",S);const k=new MutationObserver(T);return u&&k.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",S),k.disconnect()}}},[s,u,C.paused]),b.useEffect(()=>{if(u){Jw.add(C);const x=document.activeElement;if(!u.contains(x)){const T=new CustomEvent(Yf,Yw);u.addEventListener(Yf,h),u.dispatchEvent(T),T.defaultPrevented||(LI(VI(UE(u)),{select:!0}),document.activeElement===x&&Vr(u))}return()=>{u.removeEventListener(Yf,h),setTimeout(()=>{const T=new CustomEvent(Xf,Yw);u.addEventListener(Xf,m),u.dispatchEvent(T),T.defaultPrevented||Vr(x??document.body,{select:!0}),u.removeEventListener(Xf,m),Jw.remove(C)},0)}}},[u,h,m,C]);const E=b.useCallback(x=>{if(!n&&!s||C.paused)return;const S=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,T=document.activeElement;if(S&&T){const k=x.currentTarget,[P,R]=II(k);P&&R?!x.shiftKey&&T===R?(x.preventDefault(),n&&Vr(P,{select:!0})):x.shiftKey&&T===P&&(x.preventDefault(),n&&Vr(R,{select:!0})):T===k&&x.preventDefault()}},[n,s,C.paused]);return v.jsx(Ue.div,{tabIndex:-1,...c,ref:w,onKeyDown:E})});VE.displayName=MI;function LI(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Vr(s,{select:t}),document.activeElement!==n)return}function II(e){const t=UE(e),n=Xw(t,e),s=Xw(t.reverse(),e);return[n,s]}function UE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xw(e,t){for(const n of e)if(!DI(n,{upTo:t}))return n}function DI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function BI(e){return e instanceof HTMLInputElement&&"select"in e}function Vr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&BI(e)&&t&&e.select()}}var Jw=FI();function FI(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zw(e,t),e.unshift(t)},remove(t){var n;e=Zw(e,t),(n=e[0])==null||n.resume()}}}function Zw(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function VI(e){return e.filter(t=>t.tagName!=="A")}var Rt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},UI=pp[" useId ".trim().toString()]||(()=>{}),zI=0;function za(e){const[t,n]=b.useState(UI());return Rt(()=>{n(s=>s??String(zI++))},[e]),t?`radix-${t}`:""}const $I=["top","right","bottom","left"],rs=Math.min,Qt=Math.max,Yc=Math.round,fc=Math.floor,$n=e=>({x:e,y:e}),WI={left:"right",right:"left",bottom:"top",top:"bottom"},HI={start:"end",end:"start"};function tp(e,t,n){return Qt(e,rs(t,n))}function dr(e,t){return typeof e=="function"?e(t):e}function fr(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function mm(e){return e==="x"?"y":"x"}function gm(e){return e==="y"?"height":"width"}const qI=new Set(["top","bottom"]);function Fn(e){return qI.has(fr(e))?"y":"x"}function ym(e){return mm(Fn(e))}function KI(e,t,n){n===void 0&&(n=!1);const s=no(e),o=ym(e),l=gm(o);let c=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=Xc(c)),[c,Xc(c)]}function GI(e){const t=Xc(e);return[np(e),t,np(t)]}function np(e){return e.replace(/start|end/g,t=>HI[t])}const ex=["left","right"],tx=["right","left"],QI=["top","bottom"],YI=["bottom","top"];function XI(e,t,n){switch(e){case"top":case"bottom":return n?t?tx:ex:t?ex:tx;case"left":case"right":return t?QI:YI;default:return[]}}function JI(e,t,n,s){const o=no(e);let l=XI(fr(e),n==="start",s);return o&&(l=l.map(c=>c+"-"+o),t&&(l=l.concat(l.map(np)))),l}function Xc(e){return e.replace(/left|right|bottom|top/g,t=>WI[t])}function ZI(e){return{top:0,right:0,bottom:0,left:0,...e}}function zE(e){return typeof e!="number"?ZI(e):{top:e,right:e,bottom:e,left:e}}function Jc(e){const{x:t,y:n,width:s,height:o}=e;return{width:s,height:o,top:n,left:t,right:t+s,bottom:n+o,x:t,y:n}}function nx(e,t,n){let{reference:s,floating:o}=e;const l=Fn(t),c=ym(t),u=gm(c),f=fr(t),h=l==="y",m=s.x+s.width/2-o.width/2,g=s.y+s.height/2-o.height/2,w=s[u]/2-o[u]/2;let C;switch(f){case"top":C={x:m,y:s.y-o.height};break;case"bottom":C={x:m,y:s.y+s.height};break;case"right":C={x:s.x+s.width,y:g};break;case"left":C={x:s.x-o.width,y:g};break;default:C={x:s.x,y:s.y}}switch(no(t)){case"start":C[c]-=w*(n&&h?-1:1);break;case"end":C[c]+=w*(n&&h?-1:1);break}return C}const eD=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:l=[],platform:c}=n,u=l.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=nx(h,s,f),w=s,C={},E=0;for(let x=0;x<u.length;x++){const{name:S,fn:T}=u[x],{x:k,y:P,data:R,reset:O}=await T({x:m,y:g,initialPlacement:s,placement:w,strategy:o,middlewareData:C,rects:h,platform:c,elements:{reference:e,floating:t}});m=k??m,g=P??g,C={...C,[S]:{...C[S],...R}},O&&E<=50&&(E++,typeof O=="object"&&(O.placement&&(w=O.placement),O.rects&&(h=O.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):O.rects),{x:m,y:g}=nx(h,w,f)),x=-1)}return{x:m,y:g,placement:w,strategy:o,middlewareData:C}};async function ba(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:l,rects:c,elements:u,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:w=!1,padding:C=0}=dr(t,e),E=zE(C),S=u[w?g==="floating"?"reference":"floating":g],T=Jc(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(u.floating)),boundary:h,rootBoundary:m,strategy:f})),k=g==="floating"?{x:s,y:o,width:c.floating.width,height:c.floating.height}:c.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u.floating)),R=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},O=Jc(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:k,offsetParent:P,strategy:f}):k);return{top:(T.top-O.top+E.top)/R.y,bottom:(O.bottom-T.bottom+E.bottom)/R.y,left:(T.left-O.left+E.left)/R.x,right:(O.right-T.right+E.right)/R.x}}const tD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:l,platform:c,elements:u,middlewareData:f}=t,{element:h,padding:m=0}=dr(e,t)||{};if(h==null)return{};const g=zE(m),w={x:n,y:s},C=ym(o),E=gm(C),x=await c.getDimensions(h),S=C==="y",T=S?"top":"left",k=S?"bottom":"right",P=S?"clientHeight":"clientWidth",R=l.reference[E]+l.reference[C]-w[C]-l.floating[E],O=w[C]-l.reference[C],$=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let U=$?$[P]:0;(!U||!await(c.isElement==null?void 0:c.isElement($)))&&(U=u.floating[P]||l.floating[E]);const D=R/2-O/2,Z=U/2-x[E]/2-1,K=rs(g[T],Z),ie=rs(g[k],Z),me=K,fe=U-x[E]-ie,pe=U/2-x[E]/2+D,Se=tp(me,pe,fe),te=!f.arrow&&no(o)!=null&&pe!==Se&&l.reference[E]/2-(pe<me?K:ie)-x[E]/2<0,ee=te?pe<me?pe-me:pe-fe:0;return{[C]:w[C]+ee,data:{[C]:Se,centerOffset:pe-Se-ee,...te&&{alignmentOffset:ee}},reset:te}}}),nD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:o,middlewareData:l,rects:c,initialPlacement:u,platform:f,elements:h}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:x=!0,...S}=dr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const T=fr(o),k=Fn(u),P=fr(u)===u,R=await(f.isRTL==null?void 0:f.isRTL(h.floating)),O=w||(P||!x?[Xc(u)]:GI(u)),$=E!=="none";!w&&$&&O.push(...JI(u,x,E,R));const U=[u,...O],D=await ba(t,S),Z=[];let K=((s=l.flip)==null?void 0:s.overflows)||[];if(m&&Z.push(D[T]),g){const pe=KI(o,c,R);Z.push(D[pe[0]],D[pe[1]])}if(K=[...K,{placement:o,overflows:Z}],!Z.every(pe=>pe<=0)){var ie,me;const pe=(((ie=l.flip)==null?void 0:ie.index)||0)+1,Se=U[pe];if(Se&&(!(g==="alignment"?k!==Fn(Se):!1)||K.every(I=>Fn(I.placement)===k?I.overflows[0]>0:!0)))return{data:{index:pe,overflows:K},reset:{placement:Se}};let te=(me=K.filter(ee=>ee.overflows[0]<=0).sort((ee,I)=>ee.overflows[1]-I.overflows[1])[0])==null?void 0:me.placement;if(!te)switch(C){case"bestFit":{var fe;const ee=(fe=K.filter(I=>{if($){const J=Fn(I.placement);return J===k||J==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(J=>J>0).reduce((J,Y)=>J+Y,0)]).sort((I,J)=>I[1]-J[1])[0])==null?void 0:fe[0];ee&&(te=ee);break}case"initialPlacement":te=u;break}if(o!==te)return{reset:{placement:te}}}return{}}}};function rx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sx(e){return $I.some(t=>e[t]>=0)}const rD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...o}=dr(e,t);switch(s){case"referenceHidden":{const l=await ba(t,{...o,elementContext:"reference"}),c=rx(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:sx(c)}}}case"escaped":{const l=await ba(t,{...o,altBoundary:!0}),c=rx(l,n.floating);return{data:{escapedOffsets:c,escaped:sx(c)}}}default:return{}}}}},$E=new Set(["left","top"]);async function sD(e,t){const{placement:n,platform:s,elements:o}=e,l=await(s.isRTL==null?void 0:s.isRTL(o.floating)),c=fr(n),u=no(n),f=Fn(n)==="y",h=$E.has(c)?-1:1,m=l&&f?-1:1,g=dr(t,e);let{mainAxis:w,crossAxis:C,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof E=="number"&&(C=u==="end"?E*-1:E),f?{x:C*m,y:w*h}:{x:w*h,y:C*m}}const iD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:o,y:l,placement:c,middlewareData:u}=t,f=await sD(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(s=u.arrow)!=null&&s.alignmentOffset?{}:{x:o+f.x,y:l+f.y,data:{...f,placement:c}}}}},oD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:u={fn:S=>{let{x:T,y:k}=S;return{x:T,y:k}}},...f}=dr(e,t),h={x:n,y:s},m=await ba(t,f),g=Fn(fr(o)),w=mm(g);let C=h[w],E=h[g];if(l){const S=w==="y"?"top":"left",T=w==="y"?"bottom":"right",k=C+m[S],P=C-m[T];C=tp(k,C,P)}if(c){const S=g==="y"?"top":"left",T=g==="y"?"bottom":"right",k=E+m[S],P=E-m[T];E=tp(k,E,P)}const x=u.fn({...t,[w]:C,[g]:E});return{...x,data:{x:x.x-n,y:x.y-s,enabled:{[w]:l,[g]:c}}}}}},aD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:o,rects:l,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:h=!0}=dr(e,t),m={x:n,y:s},g=Fn(o),w=mm(g);let C=m[w],E=m[g];const x=dr(u,t),S=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){const P=w==="y"?"height":"width",R=l.reference[w]-l.floating[P]+S.mainAxis,O=l.reference[w]+l.reference[P]-S.mainAxis;C<R?C=R:C>O&&(C=O)}if(h){var T,k;const P=w==="y"?"width":"height",R=$E.has(fr(o)),O=l.reference[g]-l.floating[P]+(R&&((T=c.offset)==null?void 0:T[g])||0)+(R?0:S.crossAxis),$=l.reference[g]+l.reference[P]+(R?0:((k=c.offset)==null?void 0:k[g])||0)-(R?S.crossAxis:0);E<O?E=O:E>$&&(E=$)}return{[w]:C,[g]:E}}}},lD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:o,rects:l,platform:c,elements:u}=t,{apply:f=()=>{},...h}=dr(e,t),m=await ba(t,h),g=fr(o),w=no(o),C=Fn(o)==="y",{width:E,height:x}=l.floating;let S,T;g==="top"||g==="bottom"?(S=g,T=w===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(T=g,S=w==="end"?"top":"bottom");const k=x-m.top-m.bottom,P=E-m.left-m.right,R=rs(x-m[S],k),O=rs(E-m[T],P),$=!t.middlewareData.shift;let U=R,D=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=P),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(U=k),$&&!w){const K=Qt(m.left,0),ie=Qt(m.right,0),me=Qt(m.top,0),fe=Qt(m.bottom,0);C?D=E-2*(K!==0||ie!==0?K+ie:Qt(m.left,m.right)):U=x-2*(me!==0||fe!==0?me+fe:Qt(m.top,m.bottom))}await f({...t,availableWidth:D,availableHeight:U});const Z=await c.getDimensions(u.floating);return E!==Z.width||x!==Z.height?{reset:{rects:!0}}:{}}}};function gu(){return typeof window<"u"}function ro(e){return WE(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qn(e){var t;return(t=(WE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WE(e){return gu()?e instanceof Node||e instanceof Xt(e).Node:!1}function An(e){return gu()?e instanceof Element||e instanceof Xt(e).Element:!1}function Hn(e){return gu()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function ix(e){return!gu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}const cD=new Set(["inline","contents"]);function $a(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=Tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!cD.has(o)}const uD=new Set(["table","td","th"]);function dD(e){return uD.has(ro(e))}const fD=[":popover-open",":modal"];function yu(e){return fD.some(t=>{try{return e.matches(t)}catch{return!1}})}const hD=["transform","translate","scale","rotate","perspective"],pD=["transform","translate","scale","rotate","perspective","filter"],mD=["paint","layout","strict","content"];function vm(e){const t=wm(),n=An(e)?Tn(e):e;return hD.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pD.some(s=>(n.willChange||"").includes(s))||mD.some(s=>(n.contain||"").includes(s))}function gD(e){let t=ss(e);for(;Hn(t)&&!Ki(t);){if(vm(t))return t;if(yu(t))return null;t=ss(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yD=new Set(["html","body","#document"]);function Ki(e){return yD.has(ro(e))}function Tn(e){return Xt(e).getComputedStyle(e)}function vu(e){return An(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ss(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ix(e)&&e.host||qn(e);return ix(t)?t.host:t}function HE(e){const t=ss(e);return Ki(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hn(t)&&$a(t)?t:HE(t)}function Ea(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=HE(e),l=o===((s=e.ownerDocument)==null?void 0:s.body),c=Xt(o);if(l){const u=rp(c);return t.concat(c,c.visualViewport||[],$a(o)?o:[],u&&n?Ea(u):[])}return t.concat(o,Ea(o,[],n))}function rp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qE(e){const t=Tn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=Hn(e),l=o?e.offsetWidth:n,c=o?e.offsetHeight:s,u=Yc(n)!==l||Yc(s)!==c;return u&&(n=l,s=c),{width:n,height:s,$:u}}function xm(e){return An(e)?e:e.contextElement}function Ri(e){const t=xm(e);if(!Hn(t))return $n(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:l}=qE(t);let c=(l?Yc(n.width):n.width)/s,u=(l?Yc(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const vD=$n(0);function KE(e){const t=Xt(e);return!wm()||!t.visualViewport?vD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function zs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=xm(e);let c=$n(1);t&&(s?An(s)&&(c=Ri(s)):c=Ri(e));const u=wD(l,n,s)?KE(l):$n(0);let f=(o.left+u.x)/c.x,h=(o.top+u.y)/c.y,m=o.width/c.x,g=o.height/c.y;if(l){const w=Xt(l),C=s&&An(s)?Xt(s):s;let E=w,x=rp(E);for(;x&&s&&C!==E;){const S=Ri(x),T=x.getBoundingClientRect(),k=Tn(x),P=T.left+(x.clientLeft+parseFloat(k.paddingLeft))*S.x,R=T.top+(x.clientTop+parseFloat(k.paddingTop))*S.y;f*=S.x,h*=S.y,m*=S.x,g*=S.y,f+=P,h+=R,E=Xt(x),x=rp(E)}}return Jc({width:m,height:g,x:f,y:h})}function wu(e,t){const n=vu(e).scrollLeft;return t?t.left+n:zs(qn(e)).left+n}function GE(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-wu(e,n),o=n.top+t.scrollTop;return{x:s,y:o}}function xD(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const l=o==="fixed",c=qn(s),u=t?yu(t.floating):!1;if(s===c||u&&l)return n;let f={scrollLeft:0,scrollTop:0},h=$n(1);const m=$n(0),g=Hn(s);if((g||!g&&!l)&&((ro(s)!=="body"||$a(c))&&(f=vu(s)),Hn(s))){const C=zs(s);h=Ri(s),m.x=C.x+s.clientLeft,m.y=C.y+s.clientTop}const w=c&&!g&&!l?GE(c,f):$n(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x+w.x,y:n.y*h.y-f.scrollTop*h.y+m.y+w.y}}function SD(e){return Array.from(e.getClientRects())}function bD(e){const t=qn(e),n=vu(e),s=e.ownerDocument.body,o=Qt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Qt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-n.scrollLeft+wu(e);const u=-n.scrollTop;return Tn(s).direction==="rtl"&&(c+=Qt(t.clientWidth,s.clientWidth)-o),{width:o,height:l,x:c,y:u}}const ox=25;function ED(e,t){const n=Xt(e),s=qn(e),o=n.visualViewport;let l=s.clientWidth,c=s.clientHeight,u=0,f=0;if(o){l=o.width,c=o.height;const m=wm();(!m||m&&t==="fixed")&&(u=o.offsetLeft,f=o.offsetTop)}const h=wu(s);if(h<=0){const m=s.ownerDocument,g=m.body,w=getComputedStyle(g),C=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(s.clientWidth-g.clientWidth-C);E<=ox&&(l-=E)}else h<=ox&&(l+=h);return{width:l,height:c,x:u,y:f}}const CD=new Set(["absolute","fixed"]);function AD(e,t){const n=zs(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,l=Hn(e)?Ri(e):$n(1),c=e.clientWidth*l.x,u=e.clientHeight*l.y,f=o*l.x,h=s*l.y;return{width:c,height:u,x:f,y:h}}function ax(e,t,n){let s;if(t==="viewport")s=ED(e,n);else if(t==="document")s=bD(qn(e));else if(An(t))s=AD(t,n);else{const o=KE(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Jc(s)}function QE(e,t){const n=ss(e);return n===t||!An(n)||Ki(n)?!1:Tn(n).position==="fixed"||QE(n,t)}function TD(e,t){const n=t.get(e);if(n)return n;let s=Ea(e,[],!1).filter(u=>An(u)&&ro(u)!=="body"),o=null;const l=Tn(e).position==="fixed";let c=l?ss(e):e;for(;An(c)&&!Ki(c);){const u=Tn(c),f=vm(c);!f&&u.position==="fixed"&&(o=null),(l?!f&&!o:!f&&u.position==="static"&&!!o&&CD.has(o.position)||$a(c)&&!f&&QE(e,c))?s=s.filter(m=>m!==c):o=u,c=ss(c)}return t.set(e,s),s}function PD(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const c=[...n==="clippingAncestors"?yu(t)?[]:TD(t,this._c):[].concat(n),s],u=c[0],f=c.reduce((h,m)=>{const g=ax(t,m,o);return h.top=Qt(g.top,h.top),h.right=rs(g.right,h.right),h.bottom=rs(g.bottom,h.bottom),h.left=Qt(g.left,h.left),h},ax(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function kD(e){const{width:t,height:n}=qE(e);return{width:t,height:n}}function RD(e,t,n){const s=Hn(t),o=qn(t),l=n==="fixed",c=zs(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const f=$n(0);function h(){f.x=wu(o)}if(s||!s&&!l)if((ro(t)!=="body"||$a(o))&&(u=vu(t)),s){const C=zs(t,!0,l,t);f.x=C.x+t.clientLeft,f.y=C.y+t.clientTop}else o&&h();l&&!s&&o&&h();const m=o&&!s&&!l?GE(o,u):$n(0),g=c.left+u.scrollLeft-f.x-m.x,w=c.top+u.scrollTop-f.y-m.y;return{x:g,y:w,width:c.width,height:c.height}}function Jf(e){return Tn(e).position==="static"}function lx(e,t){if(!Hn(e)||Tn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qn(e)===n&&(n=n.ownerDocument.body),n}function YE(e,t){const n=Xt(e);if(yu(e))return n;if(!Hn(e)){let o=ss(e);for(;o&&!Ki(o);){if(An(o)&&!Jf(o))return o;o=ss(o)}return n}let s=lx(e,t);for(;s&&dD(s)&&Jf(s);)s=lx(s,t);return s&&Ki(s)&&Jf(s)&&!vm(s)?n:s||gD(e)||n}const ND=async function(e){const t=this.getOffsetParent||YE,n=this.getDimensions,s=await n(e.floating);return{reference:RD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function _D(e){return Tn(e).direction==="rtl"}const OD={convertOffsetParentRelativeRectToViewportRelativeRect:xD,getDocumentElement:qn,getClippingRect:PD,getOffsetParent:YE,getElementRects:ND,getClientRects:SD,getDimensions:kD,getScale:Ri,isElement:An,isRTL:_D};function XE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jD(e,t){let n=null,s;const o=qn(e);function l(){var u;clearTimeout(s),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),l();const h=e.getBoundingClientRect(),{left:m,top:g,width:w,height:C}=h;if(u||t(),!w||!C)return;const E=fc(g),x=fc(o.clientWidth-(m+w)),S=fc(o.clientHeight-(g+C)),T=fc(m),P={rootMargin:-E+"px "+-x+"px "+-S+"px "+-T+"px",threshold:Qt(0,rs(1,f))||1};let R=!0;function O($){const U=$[0].intersectionRatio;if(U!==f){if(!R)return c();U?c(!1,U):s=setTimeout(()=>{c(!1,1e-7)},1e3)}U===1&&!XE(h,e.getBoundingClientRect())&&c(),R=!1}try{n=new IntersectionObserver(O,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(O,P)}n.observe(e)}return c(!0),l}function MD(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,h=xm(e),m=o||l?[...h?Ea(h):[],...Ea(t)]:[];m.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),l&&T.addEventListener("resize",n)});const g=h&&u?jD(h,n):null;let w=-1,C=null;c&&(C=new ResizeObserver(T=>{let[k]=T;k&&k.target===h&&C&&(C.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var P;(P=C)==null||P.observe(t)})),n()}),h&&!f&&C.observe(h),C.observe(t));let E,x=f?zs(e):null;f&&S();function S(){const T=zs(e);x&&!XE(x,T)&&n(),x=T,E=requestAnimationFrame(S)}return n(),()=>{var T;m.forEach(k=>{o&&k.removeEventListener("scroll",n),l&&k.removeEventListener("resize",n)}),g==null||g(),(T=C)==null||T.disconnect(),C=null,f&&cancelAnimationFrame(E)}}const LD=iD,ID=oD,DD=nD,BD=lD,FD=rD,cx=tD,VD=aD,UD=(e,t,n)=>{const s=new Map,o={platform:OD,...n},l={...o.platform,_c:s};return eD(e,t,{...o,platform:l})};var zD=typeof document<"u",$D=function(){},Oc=zD?b.useLayoutEffect:$D;function Zc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!Zc(e[s],t[s]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,o[s]))return!1;for(s=n;s--!==0;){const l=o[s];if(!(l==="_owner"&&e.$$typeof)&&!Zc(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function JE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ux(e,t){const n=JE(e);return Math.round(t*n)/n}function Zf(e){const t=b.useRef(e);return Oc(()=>{t.current=e}),t}function WD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:o,elements:{reference:l,floating:c}={},transform:u=!0,whileElementsMounted:f,open:h}=e,[m,g]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,C]=b.useState(s);Zc(w,s)||C(s);const[E,x]=b.useState(null),[S,T]=b.useState(null),k=b.useCallback(I=>{I!==$.current&&($.current=I,x(I))},[]),P=b.useCallback(I=>{I!==U.current&&(U.current=I,T(I))},[]),R=l||E,O=c||S,$=b.useRef(null),U=b.useRef(null),D=b.useRef(m),Z=f!=null,K=Zf(f),ie=Zf(o),me=Zf(h),fe=b.useCallback(()=>{if(!$.current||!U.current)return;const I={placement:t,strategy:n,middleware:w};ie.current&&(I.platform=ie.current),UD($.current,U.current,I).then(J=>{const Y={...J,isPositioned:me.current!==!1};pe.current&&!Zc(D.current,Y)&&(D.current=Y,Na.flushSync(()=>{g(Y)}))})},[w,t,n,ie,me]);Oc(()=>{h===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(I=>({...I,isPositioned:!1})))},[h]);const pe=b.useRef(!1);Oc(()=>(pe.current=!0,()=>{pe.current=!1}),[]),Oc(()=>{if(R&&($.current=R),O&&(U.current=O),R&&O){if(K.current)return K.current(R,O,fe);fe()}},[R,O,fe,K,Z]);const Se=b.useMemo(()=>({reference:$,floating:U,setReference:k,setFloating:P}),[k,P]),te=b.useMemo(()=>({reference:R,floating:O}),[R,O]),ee=b.useMemo(()=>{const I={position:n,left:0,top:0};if(!te.floating)return I;const J=ux(te.floating,m.x),Y=ux(te.floating,m.y);return u?{...I,transform:"translate("+J+"px, "+Y+"px)",...JE(te.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:Y}},[n,u,te.floating,m.x,m.y]);return b.useMemo(()=>({...m,update:fe,refs:Se,elements:te,floatingStyles:ee}),[m,fe,Se,te,ee])}const HD=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:o}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?cx({element:s.current,padding:o}).fn(n):{}:s?cx({element:s,padding:o}).fn(n):{}}}},qD=(e,t)=>({...LD(e),options:[e,t]}),KD=(e,t)=>({...ID(e),options:[e,t]}),GD=(e,t)=>({...VD(e),options:[e,t]}),QD=(e,t)=>({...DD(e),options:[e,t]}),YD=(e,t)=>({...BD(e),options:[e,t]}),XD=(e,t)=>({...FD(e),options:[e,t]}),JD=(e,t)=>({...HD(e),options:[e,t]});var ZD="Arrow",ZE=b.forwardRef((e,t)=>{const{children:n,width:s=10,height:o=5,...l}=e;return v.jsx(Ue.svg,{...l,ref:t,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});ZE.displayName=ZD;var eB=ZE;function tB(e){const[t,n]=b.useState(void 0);return Rt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let c,u;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Sm="Popper",[eC,tC]=Ua(Sm),[nB,nC]=eC(Sm),rC=e=>{const{__scopePopper:t,children:n}=e,[s,o]=b.useState(null);return v.jsx(nB,{scope:t,anchor:s,onAnchorChange:o,children:n})};rC.displayName=Sm;var sC="PopperAnchor",iC=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...o}=e,l=nC(sC,n),c=b.useRef(null),u=dt(t,c),f=b.useRef(null);return b.useEffect(()=>{const h=f.current;f.current=(s==null?void 0:s.current)||c.current,h!==f.current&&l.onAnchorChange(f.current)}),s?null:v.jsx(Ue.div,{...o,ref:u})});iC.displayName=sC;var bm="PopperContent",[rB,sB]=eC(bm),oC=b.forwardRef((e,t)=>{var Q,ge,Ce,Ae,Ne,_e;const{__scopePopper:n,side:s="bottom",sideOffset:o=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,...x}=e,S=nC(bm,n),[T,k]=b.useState(null),P=dt(t,ft=>k(ft)),[R,O]=b.useState(null),$=tB(R),U=($==null?void 0:$.width)??0,D=($==null?void 0:$.height)??0,Z=s+(l!=="center"?"-"+l:""),K=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ie=Array.isArray(h)?h:[h],me=ie.length>0,fe={padding:K,boundary:ie.filter(oB),altBoundary:me},{refs:pe,floatingStyles:Se,placement:te,isPositioned:ee,middlewareData:I}=WD({strategy:"fixed",placement:Z,whileElementsMounted:(...ft)=>MD(...ft,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[qD({mainAxis:o+D,alignmentAxis:c}),f&&KD({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?GD():void 0,...fe}),f&&QD({...fe}),YD({...fe,apply:({elements:ft,rects:Mt,availableWidth:hr,availableHeight:pr})=>{const{width:Kn,height:Ha}=Mt.reference,mr=ft.floating.style;mr.setProperty("--radix-popper-available-width",`${hr}px`),mr.setProperty("--radix-popper-available-height",`${pr}px`),mr.setProperty("--radix-popper-anchor-width",`${Kn}px`),mr.setProperty("--radix-popper-anchor-height",`${Ha}px`)}}),R&&JD({element:R,padding:u}),aB({arrowWidth:U,arrowHeight:D}),w&&XD({strategy:"referenceHidden",...fe})]}),[J,Y]=cC(te),L=ns(E);Rt(()=>{ee&&(L==null||L())},[ee,L]);const W=(Q=I.arrow)==null?void 0:Q.x,oe=(ge=I.arrow)==null?void 0:ge.y,ae=((Ce=I.arrow)==null?void 0:Ce.centerOffset)!==0,[be,Te]=b.useState();return Rt(()=>{T&&Te(window.getComputedStyle(T).zIndex)},[T]),v.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:ee?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[(Ae=I.transformOrigin)==null?void 0:Ae.x,(Ne=I.transformOrigin)==null?void 0:Ne.y].join(" "),...((_e=I.hide)==null?void 0:_e.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(rB,{scope:n,placedSide:J,onArrowChange:O,arrowX:W,arrowY:oe,shouldHideArrow:ae,children:v.jsx(Ue.div,{"data-side":J,"data-align":Y,...x,ref:P,style:{...x.style,animation:ee?void 0:"none"}})})})});oC.displayName=bm;var aC="PopperArrow",iB={top:"bottom",right:"left",bottom:"top",left:"r
160ight"},lC=b.forwardRef(function(t,n){const{__scopePopper:s,...o}=t,l=sB(aC,s),c=iB[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(eB,{...o,ref:n,style:{...o.style,display:"block"}})})});lC.displayName=aC;function oB(e){return e!==null}var aB=e=>({name:"transformOrigin",options:e,fn(t){var S,T,k;const{placement:n,rects:s,middlewareData:o}=t,c=((S=o.arrow)==null?void 0:S.centerOffset)!==0,u=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,m]=cC(n),g={start:"0%",center:"50%",end:"100%"}[m],w=(((T=o.arrow)==null?void 0:T.x)??0)+u/2,C=(((k=o.arrow)==null?void 0:k.y)??0)+f/2;let E="",x="";return h==="bottom"?(E=c?g:`${w}px`,x=`${-f}px`):h==="top"?(E=c?g:`${w}px`,x=`${s.floating.height+f}px`):h==="right"?(E=`${-f}px`,x=c?g:`${C}px`):h==="left"&&(E=`${s.floating.width+f}px`,x=c?g:`${C}px`),{data:{x:E,y:x}}}});function cC(e){const[t,n="center"]=e.split("-");return[t,n]}var lB=rC,cB=iC,uB=oC,dB=lC,fB="Portal",uC=b.forwardRef((e,t)=>{var u;const{container:n,...s}=e,[o,l]=b.useState(!1);Rt(()=>l(!0),[]);const c=n||o&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return c?Nk.createPortal(v.jsx(Ue.div,{...s,ref:t}),c):null});uC.displayName=fB;var hB=pp[" useInsertionEffect ".trim().toString()]||Rt;function eu({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[o,l,c]=pB({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:o;{const m=b.useRef(e!==void 0);b.useEffect(()=>{const g=m.current;g!==u&&console.warn(`${s} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,s])}const h=b.useCallback(m=>{var g;if(u){const w=mB(m)?m(e):m;w!==e&&((g=c.current)==null||g.call(c,w))}else l(m)},[u,e,l,c]);return[f,h]}function pB({defaultProp:e,onChange:t}){const[n,s]=b.useState(e),o=b.useRef(n),l=b.useRef(t);return hB(()=>{l.current=t},[t]),b.useEffect(()=>{var c;o.current!==n&&((c=l.current)==null||c.call(l,n),o.current=n)},[n,o]),[n,s,l]}function mB(e){return typeof e=="function"}function gB(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var dC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yB="VisuallyHidden",vB=b.forwardRef((e,t)=>v.jsx(Ue.span,{...e,ref:t,style:{...dC,...e.style}}));vB.displayName=yB;var wB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Si=new WeakMap,hc=new WeakMap,pc={},eh=0,fC=function(e){return e&&(e.host||fC(e.parentNode))},xB=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=fC(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},SB=function(e,t,n,s){var o=xB(t,Array.isArray(e)?e:[e]);pc[n]||(pc[n]=new WeakMap);var l=pc[n],c=[],u=new Set,f=new Set(o),h=function(g){!g||u.has(g)||(u.add(g),h(g.parentNode))};o.forEach(h);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(w){if(u.has(w))m(w);else try{var C=w.getAttribute(s),E=C!==null&&C!=="false",x=(Si.get(w)||0)+1,S=(l.get(w)||0)+1;Si.set(w,x),l.set(w,S),c.push(w),x===1&&E&&hc.set(w,!0),S===1&&w.setAttribute(n,"true"),E||w.setAttribute(s,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return m(t),u.clear(),eh++,function(){c.forEach(function(g){var w=Si.get(g)-1,C=l.get(g)-1;Si.set(g,w),l.set(g,C),w||(hc.has(g)||g.removeAttribute(s),hc.delete(g)),C||g.removeAttribute(n)}),eh--,eh||(Si=new WeakMap,Si=new WeakMap,hc=new WeakMap,pc={})}},bB=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=wB(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),SB(s,o,n,"aria-hidden")):function(){return null}},Bn=function(){return Bn=Object.assign||function(t){for(var n,s=1,o=arguments.length;s<o;s++){n=arguments[s];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Bn.apply(this,arguments)};function hC(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]]);return n}function EB(e,t,n){if(n||arguments.length===2)for(var s=0,o=t.length,l;s<o;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var jc="right-scroll-bar-position",Mc="width-before-scroll-bar",CB="with-scroll-bars-hidden",AB="--removed-body-scroll-bar-size";function th(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function TB(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var o=n.value;o!==s&&(n.value=s,n.callback(s,o))}}}})[0];return n.callback=t,n.facade}var PB=typeof window<"u"?b.useLayoutEffect:b.useEffect,dx=new WeakMap;function kB(e,t){var n=TB(null,function(s){return e.forEach(function(o){return th(o,s)})});return PB(function(){var s=dx.get(n);
vendor: 4,244 bytes, lines 160-175
160if(s){var o=new Set(s),l=new Set(e),c=n.current;o.forEach(function(u){l.has(u)||th(u,null)}),l.forEach(function(u){o.has(u)||th(u,c)})}dx.set(n,e)},[e]),n}function RB(e){return e}function NB(e,t){t===void 0&&(t=RB);var n=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,s);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(l){for(s=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(u){return l(u)},filter:function(){return n}}},assignMedium:function(l){s=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(l),c=n}var f=function(){var m=c;c=[],m.forEach(l)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(m){c.push(m),h()},filter:function(m){return c=c.filter(m),n}}}};return o}function _B(e){e===void 0&&(e={});var t=NB(null);return t.options=Bn({async:!0,ssr:!1},e),t}var pC=function(e){var t=e.sideCar,n=hC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return b.createElement(s,Bn({},n))};pC.isSideCarExport=!0;function OB(e,t){return e.useMedium(t),pC}var mC=_B(),nh=function(){},xu=b.forwardRef(function(e,t){var n=b.useRef(null),s=b.useState({onScrollCapture:nh,onWheelCapture:nh,onTouchMoveCapture:nh}),o=s[0],l=s[1],c=e.forwardProps,u=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,w=e.sideCar,C=e.noRelative,E=e.noIsolation,x=e.inert,S=e.allowPinchZoom,T=e.as,k=T===void 0?"div":T,P=e.gapMode,R=hC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=w,$=kB([n,t]),U=Bn(Bn({},R),o);return b.createElement(b.Fragment,null,m&&b.createElement(O,{sideCar:mC,removeScrollBar:h,shards:g,noRelative:C,noIsolation:E,inert:x,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:P}),c?b.cloneElement(b.Children.only(u),Bn(Bn({},U),{ref:$})):b.createElement(k,Bn({},U,{className:f,ref:$}),u))});xu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xu.classNames={fullWidth:Mc,zeroRight:jc};var jB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jB();return t&&e.setAttribute("nonce",t),e}function LB(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DB=function(){var e=0,t=null;return{add:function(n){e==0&&(t=MB())&&(LB(t,n),IB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BB=function(){var e=DB();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gC=function(){var e=BB(),t=function(n){var s=n.styles,o=n.dynamic;return e(s,o),null};return t},FB={left:0,top:0,right:0,gap:0},rh=function(e){return parseInt(e||"",10)||0},VB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[rh(n),rh(s),rh(o)]},UB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FB;var t=VB(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},zB=gC(),Ni="data-scroll-locked",$B=function(e,t,n,s){var o=e.left,l=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
161  .`.concat(CB,` {
162   overflow: hidden `).concat(s,`;
163   padding-right: `).concat(u,"px ").concat(s,`;
164  }
165  body[`).concat(Ni,`] {
166    overflow: hidden `).concat(s,`;
167    overscroll-behavior: contain;
168    `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
169    padding-left: `.concat(o,`px;
170    padding-top: `).concat(l,`px;
171    padding-right: `).concat(c,`px;
172    margin-left:0;
173    margin-top:0;
174    margin-right: `).concat(u,"px ").concat(s,`;
175    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(s,";
175")].filter(Boolean).join(""),`
176  }
177  
178  .`).concat(jc,` {
179    right: `).concat(u,"px ").concat(s,`;
180  }
181  
182  .`).concat(Mc,` {
183    margin-right: `).concat(u,"px ").concat(s,`;
184  }
185  
186  .`).concat(jc," .").concat(jc,` {
187    right: 0 `).concat(s,`;
188  }
189  
190  .`).concat(Mc," .").concat(Mc,` {
191    margin-right: 0 `).concat(s,`;
192  }
193  
194  body[`).concat(Ni,`] {
195    `).concat(AB,": ").concat(u,`px;
196  }
197`)},fx=function(){var e=parseInt(document.body.getAttribute(Ni)||"0",10);return isFinite(e)?e:0},WB=function(){b.useEffect(function(){return document.body.setAttribute(Ni,(fx()+1).toString()),function(){var e=fx()-1;e<=0?document.body.removeAttribute(Ni):document.body.setAttribute(Ni,e.toString())}},[])},HB=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,o=s===void 0?"margin":s;WB();var l=b.useMemo(function(){return UB(o)},[o]);return b.createElement(zB,{styles:$B(l,!t,o,n?"":"!important")})},sp=!1;if(typeof window<"u")try{var mc=Object.defineProperty({},"passive",{get:function(){return sp=!0,!0}});window.addEventListener("test",mc,mc),window.removeEventListener("test",mc,mc)}catch{sp=!1}var bi=sp?{passive:!1}:!1,qB=function(e){return e.tagName==="TEXTAREA"},yC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qB(e)&&n[t]==="visible")},KB=function(e){return yC(e,"overflowY")},GB=function(e){return yC(e,"overflowX")},hx=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=vC(e,s);if(o){var l=wC(e,s),c=l[1],u=l[2];if(c>u)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},QB=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},YB=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},vC=function(e,t){return e==="v"?KB(t):GB(t)},wC=function(e,t){return e==="v"?QB(t):YB(t)},XB=function(e,t){return e==="h"&&t==="rtl"?-1:1},JB=function(e,t,n,s,o){var l=XB(e,window.getComputedStyle(t).direction),c=l*s,u=n.target,f=t.contains(u),h=!1,m=c>0,g=0,w=0;do{if(!u)break;var C=wC(e,u),E=C[0],x=C[1],S=C[2],T=x-S-l*E;(E||T)&&vC(e,u)&&(g+=T,w+=E);var k=u.parentNode;u=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(m&&Math.abs(g)<1||!m&&Math.abs(w)<1)&&(h=!0),h},gc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},px=function(e){return[e.deltaX,e.deltaY]},mx=function(e){return e&&"current"in e?e.current:e},ZB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eF=function(e){return`
198  .block-interactivity-`.concat(e,` {pointer-events: none;}
199  .allow-interactivity-`).concat(e,` {pointer-events: all;}
200`)},tF=0,Ei=[];function nF(e){var t=b.useRef([]),n=b.useRef([0,0]),s=b.useRef(),o=b.useState(tF++)[0],l=b.useState(gC)[0],c=b.useRef(e);b.useEffect(function(){c.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=EB([e.lockRef.current],(e.shards||[]).map(mx),!0).filter(Boolean);return x.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=b.useCallback(function(x,S){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!c.current.allowPinchZoom;var T=gc(x),k=n.current,P="deltaX"in x?x.deltaX:k[0]-T[0],R="deltaY"in x?x.deltaY:k[1]-T[1],O,$=x.target,U=Math.abs(P)>Math.abs(R)?"h":"v";if("touches"in x&&U==="h"&&$.type==="range")return!1;var D=hx(U,$);if(!D)return!0;if(D?O=U:(O=U==="v"?"h":"v",D=hx(U,$)),!D)return!1;if(!s.current&&"changedTouches"in x&&(P||R)&&(s.current=O),!O)return!0;var Z=s.current||O;return JB(Z,S,x,Z==="h"?P:R)},[]),f=b.useCallback(function(x){var S=x;if(!(!Ei.length||Ei[Ei.length-1]!==l)){var T="deltaY"in S?px(S):gc(S),k=t.current.filter(function(O){return O.name===S.type&&(O.target===S.target||S.target===O.shadowParent)&&ZB(O.delta,T)})[0];if(k&&k.should){S.cancelable&&S.preventDefault();return}
vendor: 4,241 bytes, line 200
200if(!k){var P=(c.current.shards||[]).map(mx).filter(Boolean).filter(function(O){return O.contains(S.target)}),R=P.length>0?u(S,P[0]):!c.current.noIsolation;R&&S.cancelable&&S.preventDefault()}}},[]),h=b.useCallback(function(x,S,T,k){var P={name:x,delta:S,target:T,should:k,shadowParent:rF(T)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(R){return R!==P})},1)},[]),m=b.useCallback(function(x){n.current=gc(x),s.current=void 0},[]),g=b.useCallback(function(x){h(x.type,px(x),x.target,u(x,e.lockRef.current))},[]),w=b.useCallback(function(x){h(x.type,gc(x),x.target,u(x,e.lockRef.current))},[]);b.useEffect(function(){return Ei.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",f,bi),document.addEventListener("touchmove",f,bi),document.addEventListener("touchstart",m,bi),function(){Ei=Ei.filter(function(x){return x!==l}),document.removeEventListener("wheel",f,bi),document.removeEventListener("touchmove",f,bi),document.removeEventListener("touchstart",m,bi)}},[]);var C=e.removeScrollBar,E=e.inert;return b.createElement(b.Fragment,null,E?b.createElement(l,{styles:eF(o)}):null,C?b.createElement(HB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sF=OB(mC,nF);var xC=b.forwardRef(function(e,t){return b.createElement(xu,Bn({},e,{ref:t,sideCar:sF}))});xC.classNames=xu.classNames;var iF=[" ","Enter","ArrowUp","ArrowDown"],oF=[" ","Enter"],$s="Select",[Su,bu,aF]=IE($s),[so]=Ua($s,[aF,tC]),Eu=tC(),[lF,os]=so($s),[cF,uF]=so($s),SC=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:o,onOpenChange:l,value:c,defaultValue:u,onValueChange:f,dir:h,name:m,autoComplete:g,disabled:w,required:C,form:E}=e,x=Eu(t),[S,T]=b.useState(null),[k,P]=b.useState(null),[R,O]=b.useState(!1),$=pm(h),[U,D]=eu({prop:s,defaultProp:o??!1,onChange:l,caller:$s}),[Z,K]=eu({prop:c,defaultProp:u,onChange:f,caller:$s}),ie=b.useRef(null),me=S?E||!!S.closest("form"):!0,[fe,pe]=b.useState(new Set),Se=Array.from(fe).map(te=>te.props.value).join(";");return v.jsx(lB,{...x,children:v.jsxs(lF,{required:C,scope:t,trigger:S,onTriggerChange:T,valueNode:k,onValueNodeChange:P,valueNodeHasChildren:R,onValueNodeHasChildrenChange:O,contentId:za(),value:Z,onValueChange:K,open:U,onOpenChange:D,dir:$,triggerPointerDownPosRef:ie,disabled:w,children:[v.jsx(Su.Provider,{scope:t,children:v.jsx(cF,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(te=>{pe(ee=>new Set(ee).add(te))},[]),onNativeOptionRemove:b.useCallback(te=>{pe(ee=>{const I=new Set(ee);return I.delete(te),I})},[]),children:n})}),me?v.jsxs(HC,{"aria-hidden":!0,required:C,tabIndex:-1,name:m,autoComplete:g,value:Z,onChange:te=>K(te.target.value),disabled:w,form:E,children:[Z===void 0?v.jsx("option",{value:""}):null,Array.from(fe)]},Se):null]})})};SC.displayName=$s;var bC="SelectTrigger",EC=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...o}=e,l=Eu(n),c=os(bC,n),u=c.disabled||s,f=dt(t,c.onTriggerChange),h=bu(n),m=b.useRef("touch"),[g,w,C]=KC(x=>{const S=h().filter(P=>!P.disabled),T=S.find(P=>P.value===c.value),k=GC(S,x,T);k!==void 0&&c.onValueChange(k.value)}),E=x=>{u||(c.onOpenChange(!0),C()),x&&(c.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return v.jsx(cB,{asChild:!0,...l,children:v.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":qC(c.value)?"":void 0,...o,ref:f,onClick:Ve(o.onClick,x=>{x.currentTarget.focus(),m.current!=="mouse"&&E(x)}),onPointerDown:Ve(o.onPointerDown,x=>{m.current=x.pointerType;const S=x.target;S.hasPointerCapture(x.pointerId)&&S.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(E(x),x.preventDefault())}),onKeyDown:Ve(o.onKeyDown,x=>{const S=g.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&w(x.key),!(S&&x.key===" ")&&iF.includes(x.key)&&(E(),x.preventDefault())})})})});EC.displayName=bC;var CC="SelectValue",AC=b.forwardRef((e,t)=>
vendor: 16,886 bytes, line 200
200{const{__scopeSelect:n,className:s,style:o,children:l,placeholder:c="",...u}=e,f=os(CC,n),{onValueNodeHasChildrenChange:h}=f,m=l!==void 0,g=dt(t,f.onValueNodeChange);return Rt(()=>{h(m)},[h,m]),v.jsx(Ue.span,{...u,ref:g,style:{pointerEvents:"none"},children:qC(f.value)?v.jsx(v.Fragment,{children:c}):l})});AC.displayName=CC;var dF="SelectIcon",TC=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...o}=e;return v.jsx(Ue.span,{"aria-hidden":!0,...o,ref:t,children:s||"▼"})});TC.displayName=dF;var fF="SelectPortal",PC=e=>v.jsx(uC,{asChild:!0,...e});PC.displayName=fF;var Ws="SelectContent",kC=b.forwardRef((e,t)=>{const n=os(Ws,e.__scopeSelect),[s,o]=b.useState();if(Rt(()=>{o(new DocumentFragment)},[]),!n.open){const l=s;return l?Na.createPortal(v.jsx(RC,{scope:e.__scopeSelect,children:v.jsx(Su.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),l):null}return v.jsx(NC,{...e,ref:t})});kC.displayName=Ws;var Sn=10,[RC,as]=so(Ws),hF="SelectContentImpl",pF=Sa("SelectContent.RemoveScroll"),NC=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:c,side:u,sideOffset:f,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:C,sticky:E,hideWhenDetached:x,avoidCollisions:S,...T}=e,k=os(Ws,n),[P,R]=b.useState(null),[O,$]=b.useState(null),U=dt(t,Q=>R(Q)),[D,Z]=b.useState(null),[K,ie]=b.useState(null),me=bu(n),[fe,pe]=b.useState(!1),Se=b.useRef(!1);b.useEffect(()=>{if(P)return bB(P)},[P]),jI();const te=b.useCallback(Q=>{const[ge,...Ce]=me().map(_e=>_e.ref.current),[Ae]=Ce.slice(-1),Ne=document.activeElement;for(const _e of Q)if(_e===Ne||(_e==null||_e.scrollIntoView({block:"nearest"}),_e===ge&&O&&(O.scrollTop=0),_e===Ae&&O&&(O.scrollTop=O.scrollHeight),_e==null||_e.focus(),document.activeElement!==Ne))return},[me,O]),ee=b.useCallback(()=>te([D,P]),[te,D,P]);b.useEffect(()=>{fe&&ee()},[fe,ee]);const{onOpenChange:I,triggerPointerDownPosRef:J}=k;b.useEffect(()=>{if(P){let Q={x:0,y:0};const ge=Ae=>{var Ne,_e;Q={x:Math.abs(Math.round(Ae.pageX)-(((Ne=J.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ae.pageY)-(((_e=J.current)==null?void 0:_e.y)??0))}},Ce=Ae=>{Q.x<=10&&Q.y<=10?Ae.preventDefault():P.contains(Ae.target)||I(!1),document.removeEventListener("pointermove",ge),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[P,I,J]),b.useEffect(()=>{const Q=()=>I(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[I]);const[Y,L]=KC(Q=>{const ge=me().filter(Ne=>!Ne.disabled),Ce=ge.find(Ne=>Ne.ref.current===document.activeElement),Ae=GC(ge,Q,Ce);Ae&&setTimeout(()=>Ae.ref.current.focus())}),W=b.useCallback((Q,ge,Ce)=>{const Ae=!Se.current&&!Ce;(k.value!==void 0&&k.value===ge||Ae)&&(Z(Q),Ae&&(Se.current=!0))},[k.value]),oe=b.useCallback(()=>P==null?void 0:P.focus(),[P]),ae=b.useCallback((Q,ge,Ce)=>{const Ae=!Se.current&&!Ce;(k.value!==void 0&&k.value===ge||Ae)&&ie(Q)},[k.value]),be=s==="popper"?ip:_C,Te=be===ip?{side:u,sideOffset:f,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:C,sticky:E,hideWhenDetached:x,avoidCollisions:S}:{};return v.jsx(RC,{scope:n,content:P,viewport:O,onViewportChange:$,itemRefCallback:W,selectedItem:D,onItemLeave:oe,itemTextRefCallback:ae,focusSelectedItem:ee,selectedItemText:K,position:s,isPositioned:fe,searchRef:Y,children:v.jsx(xC,{as:pF,allowPinchZoom:!0,children:v.jsx(VE,{asChild:!0,trapped:k.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:Ve(o,Q=>{var ge;(ge=k.trigger)==null||ge.focus({preventScroll:!0}),Q.preventDefault()}),children:v.jsx(BE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:v.jsx(be,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:Q=>Q.preventDefault(),...T,...Te,onPlaced:()=>pe(!0),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Ve(T.onKeyDown,Q=>{const ge=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!ge&&Q.key.length===1&&L(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ae=me().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Ne=Q.target,_e=Ae.indexOf(Ne);Ae=Ae.slice(_e+1)}setTimeout(()=>te(Ae)),Q.preventDefault()}})})})})})})});NC.displayName=hF;var mF="SelectItemAlignedPosition",_C=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...o}=e,l=os(Ws,n),c=as(Ws,n),[u,f]=b.useState(null),[h,m]=b.useState(null),g=dt(t,U=>m(U)),w=bu(n),C=b.useRef(!1),E=b.useRef(!0),{viewport:x,selectedItem:S,selectedItemText:T,focusSelectedItem:k}=c,P=b.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&h&&x&&S&&T){const U=l.trigger.getBoundingClientRect(),D=h.getBoundingClientRect(),Z=l.valueNode.getBoundingClientRect(),K=T.getBoundingClientRect();if(l.dir!=="rtl"){const Ne=K.left-D.left,_e=Z.left-Ne,ft=U.left-_e,Mt=U.width+ft,hr=Math.max(Mt,D.width),pr=window.innerWidth-Sn,Kn=qw(_e,[Sn,Math.max(Sn,pr-hr)]);u.style.minWidth=Mt+"px",u.style.left=Kn+"px"}else{const Ne=D.right-K.right,_e=window.innerWidth-Z.right-Ne,ft=window.innerWidth-U.right-_e,Mt=U.width+ft,hr=Math.max(Mt,D.width),pr=window.innerWidth-Sn,Kn=qw(_e,[Sn,Math.max(Sn,pr-hr)]);u.style.minWidth=Mt+"px",u.style.right=Kn+"px"}const ie=w(),me=window.innerHeight-Sn*2,fe=x.scrollHeight,pe=window.getComputedStyle(h),Se=parseInt(pe.borderTopWidth,10),te=parseInt(pe.paddingTop,10),ee=parseInt(pe.borderBottomWidth,10),I=parseInt(pe.paddingBottom,10),J=Se+te+fe+I+ee,Y=Math.min(S.offsetHeight*5,J),L=window.getComputedStyle(x),W=parseInt(L.paddingTop,10),oe=parseInt(L.paddingBottom,10),ae=U.top+U.height/2-Sn,be=me-ae,Te=S.offsetHeight/2,Q=S.offsetTop+Te,ge=Se+te+Q,Ce=J-ge;if(ge<=ae){const Ne=ie.length>0&&S===ie[ie.length-1].ref.current;u.style.bottom="0px";const _e=h.clientHeight-x.offsetTop-x.offsetHeight,ft=Math.max(be,Te+(Ne?oe:0)+_e+ee),Mt=ge+ft;u.style.height=Mt+"px"}else{const Ne=ie.length>0&&S===ie[0].ref.current;u.style.top="0px";const ft=Math.max(ae,Se+x.offsetTop+(Ne?W:0)+Te)+Ce;u.style.height=ft+"px",x.scrollTop=ge-ae+x.offsetTop}u.style.margin=`${Sn}px 0`,u.style.minHeight=Y+"px",u.style.maxHeight=me+"px",s==null||s(),requestAnimationFrame(()=>C.current=!0)}},[w,l.trigger,l.valueNode,u,h,x,S,T,l.dir,s]);Rt(()=>P(),[P]);const[R,O]=b.useState();Rt(()=>{h&&O(window.getComputedStyle(h).zIndex)},[h]);const $=b.useCallback(U=>{U&&E.current===!0&&(P(),k==null||k(),E.current=!1)},[P,k]);return v.jsx(yF,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:C,onScrollButtonChange:$,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:v.jsx(Ue.div,{...o,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});_C.displayName=mF;var gF="SelectPopperPosition",ip=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:o=Sn,...l}=e,c=Eu(n);return v.jsx(uB,{...c,...l,ref:t,align:s,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ip.displayName=gF;var[yF,Em]=so(Ws,{}),op="SelectViewport",OC=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...o}=e,l=as(op,n),c=Em(op,n),u=dt(t,l.onViewportChange),f=b.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),v.jsx(Su.Slot,{scope:n,children:v.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ve(o.onScroll,h=>{const m=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=c;if(w!=null&&w.current&&g){const C=Math.abs(f.current-m.scrollTop);if(C>0){const E=window.innerHeight-Sn*2,x=parseFloat(g.style.minHeight),S=parseFloat(g.style.height),T=Math.max(x,S);if(T<E){const k=T+C,P=Math.min(E,k),R=k-P;g.style.height=P+"px",g.style.bottom==="0px"&&(m.scrollTop=R>0?R:0,g.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});OC.displayName=op;var jC="SelectGroup",[vF,wF]=so(jC),xF=b.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=za();return v.jsx(vF,{scope:n,id:o,children:v.jsx(Ue.div,{role:"group","aria-labelledby":o,...s,ref:t})})});xF.displayName=jC;var MC="SelectLabel",LC=b.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=wF(MC,n);return v.jsx(Ue.div,{id:o.id,...s,ref:t})});LC.displayName=MC;var tu="SelectItem",[SF,IC]=so(tu),DC=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:o=!1,textValue:l,...c}=e,u=os(tu,n),f=as(tu,n),h=u.value===s,[m,g]=b.useState(l??""),[w,C]=b.useState(!1),E=dt(t,k=>{var P;return(P=f.itemRefCallback)==null?void 0:P.call(f,k,s,o)}),x=za(),S=b.useRef("touch"),T=()=>{o||(u.onValueChange(s),u.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(SF,{scope:n,value:s,disabled:o,textId:x,isSelected:h,onItemTextChange:b.useCallback(k=>{g(P=>P||((k==null?void 0:k.textContent)??"").trim())},[]),children:v.jsx(Su.ItemSlot,{scope:n,value:s,disabled:o,textValue:m,children:v.jsx(Ue.div,{role:"option","aria-labelledby":x,"data-highlighted":w?"":void 0,"aria-selected":h&&w,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:E,onFocus:Ve(c.onFocus,()=>C(!0)),onBlur:Ve(c.onBlur,()=>C(!1)),onClick:Ve(c.onClick,()=>{S.current!=="mouse"&&T()}),onPointerUp:Ve(c.onPointerUp,()=>{S.current==="mouse"&&T()}),onPointerDown:Ve(c.onPointerDown,k=>{S.current=k.pointerType}),onPointerMove:Ve(c.onPointerMove,k=>{var P;S.current=k.pointerType,o?(P=f.onItemLeave)==null||P.call(f):S.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ve(c.onPointerLeave,k=>{var P;k.currentTarget===document.activeElement&&((P=f.onItemLeave)==null||P.call(f))}),onKeyDown:Ve(c.onKeyDown,k=>{var R;((R=f.searchRef)==null?void 0:R.current)!==""&&k.key===" "||(oF.includes(k.key)&&T(),k.key===" "&&k.preventDefault())})})})})});DC.displayName=tu;var ia="SelectItemText",BC=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:o,...l}=e,c=os(ia,n),u=as(ia,n),f=IC(ia,n),h=uF(ia,n),[m,g]=b.useState(null),w=dt(t,T=>g(T),f.onItemTextChange,T=>{var k;return(k=u.itemTextRefCallback)==null?void 0:k.call(u,T,f.value,f.disabled)}),C=m==null?void 0:m.textContent,E=b.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:C},f.value),[f.disabled,f.value,C]),{onNativeOptionAdd:x,onNativeOptionRemove:S}=h;return Rt(()=>(x(E),()=>S(E)),[x,S,E]),v.jsxs(v.Fragment,{children:[v.jsx(Ue.span,{id:f.textId,...l,ref:w}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Na.createPortal(l.children,c.valueNode):null]})});BC.displayName=ia;var FC="SelectItemIndicator",VC=b.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return IC(FC,n).isSelected?v.jsx(Ue.span,{"aria-hidden":!0,...s,ref:t}):null});VC.displayName=FC;var ap="SelectScrollUpButton",UC=b.forwardRef((e,t)=>{const n=as(ap,e.__scopeSelect),s=Em(ap,e.__scopeSelect),[o,l]=b.useState(!1),c=dt(t,s.onScrollButtonChange);return Rt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollTop>0;l(h)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?v.jsx($C,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});UC.displayName=ap;var lp="SelectScrollDownButton",zC=b.forwardRef((e,t)=>{const n=as(lp,e.__scopeSelect),s=Em(lp,e.__scopeSelect),[o,l]=b.useState(!1),c=dt(t,s.onScrollButtonChange);return Rt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<h;l(m)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?v.jsx($C,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});zC.displayName=lp;var $C=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...o}=e,l=as("SelectScrollButton",n),c=b.useRef(null),u=bu(n),f=b.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return b.useEffect(()=>()=>f(),[f]),Rt(()=>{var m;const h=u().find(g=>g.ref.current===document.activeElement);(m=h==null?void 0:h.ref.current)==null||m.scrollIntoView({block:"nearest"})},[u]),v.jsx(Ue.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ve(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Ve(o.onPointerMove,()=>{var h;(h=l.onItemLeave)==null||h.call(l),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Ve(o.onPointerLeave,()=>{f()})})}),bF="SelectSeparator",WC=b.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return v.jsx(Ue.div,{"aria-hidden":!0,...s,ref:t})});WC.displayName=bF;var cp="SelectArrow",EF=b.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=Eu(n),l=os(cp,n),c=as(cp,n);return l.open&&c.position==="popper"?v.jsx(dB,{...o,...s,ref:t}):null});EF.displayName=cp;var CF="SelectBubbleInput",HC=b.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const o=b.useRef(null),l=dt(s,o),c=gB(t);return b.useEffect(()=>{const u=o.current;if(!u)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&m){const g=new Event("change",{bubbles:!0});m.call(u,t),u.dispatchEvent(g)}},[c,t]),v.jsx(Ue.select,{...n,style:{...dC,...n.style},ref:l,defaultValue:t})});HC.displayName=CF;function qC(e){return e===""||e===void 0}function KC(e){const t=ns(e),n=b.useRef(""),s=b.useRef(0),o=b.useCallback(c=>{const u=n.current+c;t(u),(function f(h){n.current=h,window.clearTimeout(s.current),h!==""&&(s.current=window.setTimeout(()=>f(""),1e3))})(u)},[t]),l=b.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,o,l]}function GC(e,t,n){const o=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=AF(e,Math.max(l,0));o.length===1&&(c=c.filter(h=>h!==n));const f=c.find(h=>h.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function AF(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var TF=SC,QC=EC,PF=AC,kF=TC,RF=PC,YC=kC,NF=OC,XC=LC,JC=DC,_F=BC,OF=VC,ZC=UC,e1=zC,t1=WC;const sh=TF,ih=PF,Lc=b.forwardRef(({className:e,children:t,...n},s)=>v.jsxs(QC,{ref:s,className:at("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,v.jsx(kF,{asChild:!0,children:v.jsx(jx,{className:"h-4 w-4 opacity-50"})})]}));Lc.displayName=QC.displayName;const n1=b.forwardRef(({className:e,...t},n)=>v.jsx(ZC,{ref:n,className:at("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(XT,{className:"h-4 w-4"})}));n1.displayName=ZC.displayName;const r1=b.forwardRef(({className:e,...t},n)=>v.jsx(e1,{ref:n,className:at("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(jx,{className:"h-4 w-4"})}));r1.displayName=e1.displayName;const Ic=b.forwardRef(({className:e,children:t,position:n="popper",...s},o)=>v.jsx(RF,{children:v.jsxs(YC,{ref:o,className:at("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
200de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[v.jsx(n1,{}),v.jsx(NF,{className:at("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),v.jsx(r1,{})]})}));Ic.displayName=YC.displayName;const jF=b.forwardRef(({className:e,...t},n)=>v.jsx(XC,{ref:n,className:at("px-2 py-1.5 text-sm font-semibold",e),...t}));jF.displayName=XC.displayName;const Dc=b.forwardRef(({className:e,children:t,...n},s)=>v.jsxs(JC,{ref:s,className:at("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[v.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(OF,{children:v.jsx(Ox,{className:"h-4 w-4"})})}),v.jsx(_F,{children:t})]}));Dc.displayName=JC.displayName;const MF=b.forwardRef(({className:e,...t},n)=>v.jsx(t1,{ref:n,className:at("-mx-1 my-1 h-px bg-muted",e),...t}));MF.displayName=t1.displayName;var LF="Label",s1=b.forwardRef((e,t)=>v.jsx(Ue.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));s1.displayName=LF;var i1=s1;const IF=mp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),an=b.forwardRef(({className:e,...t},n)=>v.jsx(i1,{ref:n,className:at(IF(),e),...t}));an.displayName=i1.displayName;const DF=["Under $500K","$500K - $1M","$1M - $5M","$5M - $10M","$10M+","N/A"],BF=["Under $50K","$50K - $250K","$250K - $1M","$1M+","N/A"];function Fs({type:e,showRevenue:t=!1,showInvestment:n=!1,engagementOptions:s=[]}){const[o,l]=b.useState({type:e,name:"",email:"",company:"",title:"",website:"",revenue_range:"",investment_capacity:"",engagement_type:"",timeline:"",details:"",referral_source:""}),[c,u]=b.useState(!1),[f,h]=b.useState(!1),m=async w=>{w.preventDefault(),u(!0),await Yr.entities.Inquiry.create(o),u(!1),h(!0)},g=(w,C)=>{l(E=>({...E,[w]:C}))};return f?v.jsxs("div",{className:"text-center py-16",children:[v.jsx(ZT,{className:"w-12 h-12 text-[#A08B6C] mx-auto mb-6"}),v.jsx("h3",{className:"text-2xl font-light text-[#0A0A0A] mb-4",children:"Inquiry Received"}),v.jsx("p",{className:"text-[#6B6B6B]",children:"Our team will review your submission and respond within 48-72 business hours if there is alignment."})]}):v.jsxs("form",{onSubmit:m,className:"space-y-6",children:[v.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Full Name *"}),v.jsx(Fr,{required:!0,value:o.name,onChange:w=>g("name",w.target.value),className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Email *"}),v.jsx(Fr,{required:!0,type:"email",value:o.email,onChange:w=>g("email",w.target.value),className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]})]}),v.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Company / Organization"}),v.jsx(Fr,{value:o.company,onChange:w=>g("company",w.target.value),className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Title / Role"}),v.jsx(Fr,{value:o.title,onChange:w=>g("title",w.target.value),className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Website"}),v.jsx(Fr,{value:o.website,onChange:w=>g("website",w.target.value),placeholder:"https://",className:"border-[#
200E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]}),t&&v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Annual Revenue Range"}),v.jsxs(sh,{value:o.revenue_range,onValueChange:w=>g("revenue_range",w),children:[v.jsx(Lc,{className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12",children:v.jsx(ih,{placeholder:"Select range"})}),v.jsx(Ic,{children:DF.map(w=>v.jsx(Dc,{value:w,children:w},w))})]})]}),n&&v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Engagement Budget Range"}),v.jsxs(sh,{value:o.investment_capacity,onValueChange:w=>g("investment_capacity",w),children:[v.jsx(Lc,{className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12",children:v.jsx(ih,{placeholder:"Select range"})}),v.jsx(Ic,{children:BF.map(w=>v.jsx(Dc,{value:w,children:w},w))})]})]}),s.length>0&&v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Type of Engagement"}),v.jsxs(sh,{value:o.engagement_type,onValueChange:w=>g("engagement_type",w),children:[v.jsx(Lc,{className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12",children:v.jsx(ih,{placeholder:"Select type"})}),v.jsx(Ic,{children:s.map(w=>v.jsx(Dc,{value:w,children:w},w))})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Timeline"}),v.jsx(Fr,{value:o.timeline,onChange:w=>g("timeline",w.target.value),placeholder:"When are you looking to begin?",className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"Details *"}),v.jsx(LE,{required:!0,value:o.details,onChange:w=>g("details",w.target.value),placeholder:"Please describe your inquiry in detail...",className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none min-h-[150px] resize-none"})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(an,{className:"text-[#0A0A0A] text-sm",children:"How did you hear about Marlo?"}),v.jsx(Fr,{value:o.referral_source,onChange:w=>g("referral_source",w.target.value),className:"border-[#E5E5E5] focus:border-[#A08B6C] focus:ring-[#A08B6C] rounded-none h-12"})]}),v.jsx(ME,{type:"submit",disabled:c,className:"w-full bg-[#0A0A0A] hover:bg-[#1A1A1A] text-white rounded-none h-14 text-sm tracking-wide",children:c?v.jsx(Lx,{className:"w-4 h-4 animate-spin"}):"Submit Inquiry"}),v.jsx("p",{className:"text-xs text-[#6B6B6B] text-center",children:"By submitting, you agree that your information will be reviewed by our team. We respond within 48-72 business hours if there is alignment."})]})}const FF=["Established operators scaling to the next level","Investors seeking deal flow evaluation","Brands requiring strategic positioning","Companies navigating capital raises or exits","High-net-worth individuals building business portfolios"],VF=["Beginners seeking step-by-step guidance","Undercapitalized ventures without traction","Those seeking free advice or mentorship","Lifestyle businesses without growth ambition"],UF=[{title:"Strategic Advisory",description:"Ongoing strategic counsel for operators and executives navigating complex business decisions."},{title:"Deal Structuring",description:"Advisory on partnership structures, investment terms, and transaction strategy."},{title:"Brand Leverage Strategy",description:"Positioning and monetization strategy for personal and corporate brands."},{title:"Capital Introduction",description:"Strategic introductions to vetted capital partners and investors."}];function zF(){return v.jsxs("main",{children:[v.jsx(to,{label:"Advisory & Consulting",title:"Strategic guid
200ance for established operators.",description:"Access is limited. Results are required. This is not coaching. It is execution-level partnership for those ready to move."}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-6xl mx-auto",children:v.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("h2",{className:"text-2xl font-light text-[#0A0A0A] mb-8",children:"This Is For"}),v.jsx("ul",{className:"space-y-4",children:FF.map((e,t)=>v.jsxs("li",{className:"flex items-start gap-4",children:[v.jsx(Ox,{className:"w-5 h-5 text-[#A08B6C] mt-0.5 flex-shrink-0"}),v.jsx("span",{className:"text-[#3A3A3A]",children:e})]},t))})]}),v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},children:[v.jsx("h2",{className:"text-2xl font-light text-[#0A0A0A] mb-8",children:"This Is Not For"}),v.jsx("ul",{className:"space-y-4",children:VF.map((e,t)=>v.jsxs("li",{className:"flex items-start gap-4",children:[v.jsx(yp,{className:"w-5 h-5 text-[#C4C4C4] mt-0.5 flex-shrink-0"}),v.jsx("span",{className:"text-[#6B6B6B]",children:e})]},t))})]})]})})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#FAFAFA] border-y border-[#E5E5E5]",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsx(Ie.p,{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-12",initial:{opacity:0}
vendor: 4,679 bytes, line 200
200,whileInView:{opacity:1},viewport:{once:!0},children:"Engagement Types"}),v.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:UF.map((e,t)=>v.jsxs(Ie.div,{className:"bg-white p-8 border border-[#E5E5E5]",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},children:[v.jsx("h3",{className:"text-xl font-light text-[#0A0A0A] mb-4",children:e.title}),v.jsx("p",{className:"text-[#6B6B6B] leading-relaxed",children:e.description})]},e.title))})]})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#0A0A0A]",children:v.jsx("div",{className:"max-w-4xl mx-auto text-center",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-8",children:"Investment"}),v.jsx("p",{className:"text-white text-2xl md:text-3xl font-light mb-6",children:"Engagements start at five figures."}),v.jsx("p",{className:"text-[#6B6B6B] max-w-xl mx-auto",children:"Final scope and investment are determined after application review and initial consultation. Only qualified applicants will receive a proposal."})]})})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-2xl mx-auto",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("h2",{className:"text-3xl font-light text-[#0A0A0A] mb-4 text-center",children:"Apply for Advisory"}),v.jsx("p",{className:"text-[#6B6B6B] text-center mb-12",children:"Applications are reviewed within 48-72 business hours. Only qualified inquiries will receive a response."}),v.jsx(Fs,{type:"advisory",showRevenue:!0,showInvestment:!0,engagementOptions:["Strategic Advisory","Deal Structuring","Brand Leverage Strategy","Capital Introduction","Other"]})]})})})]})}var oh="rovingFocusGroup.onEntryFocus",$F={bubbles:!1,cancelable:!0},Wa="RovingFocusGroup",[up,o1,WF]=IE(Wa),[HF,a1]=Ua(Wa,[WF]),[qF,KF]=HF(Wa),l1=b.forwardRef((e,t)=>v.jsx(up.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(up.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(GF,{...e,ref:t})})}));l1.displayName=Wa;var GF=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:o=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...g}=e,w=b.useRef(null),C=dt(t,w),E=pm(l),[x,S]=eu({prop:c,defaultProp:u??null,onChange:f,caller:Wa}),[T,k]=b.useState(!1),P=ns(h),R=o1(n),O=b.useRef(!1),[$,U]=b.useState(0);return b.useEffect(()=>{const D=w.current;if(D)return D.addEventListener(oh,P),()=>D.removeEventListener(oh,P)},[P]),v.jsx(qF,{scope:n,orientation:s,dir:E,loop:o,currentTabStopId:x,onItemFocus:b.useCallback(D=>S(D),[S]),onItemShiftTab:b.useCallback(()=>k(!0),[]),onFocusableItemAdd:b.useCallback(()=>U(D=>D+1),[]),onFocusableItemRemove:b.useCallback(()=>U(D=>D-1),[]),children:v.jsx(Ue.div,{tabIndex:T||$===0?-1:0,"data-orientation":s,...g,ref:C,style:{outline:"none",...e.style},onMouseDown:Ve(e.onMouseDown,()=>{O.current=!0}),onFocus:Ve(e.onFocus,D=>{const Z=!O.current;if(D.target===D.currentTarget&&Z&&!T){const K=new CustomEvent(oh,$F);if(D.currentTarget.dispatchEvent(K),!K.defaultPrevented){const ie=R().filter(te=>te.focusable),me=ie.find(te=>te.active),fe=ie.find(te=>te.id===x),Se=[me,fe,...ie].filter(Boolean).map(te=>te.ref.current);d1(Se,m)}}O.current=!1}),onBlur:Ve(e.onBlur,()=>k(!1))})})}),c1="RovingFocusGroupItem",u1=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:o=!1,tabStopId:l,children:c,...u}=e,f=za(),h=l||f,m=KF(c1,n),g=m.currentTabStopId===h,w=o1(n),{onFocusableItemAdd:C,onFocusableItemRemove:E,currentTabStopId:x}=m;return b.useEffect(()=>{if(s)return C(),()=>E()},[s,C,E]),v.jsx(up.ItemSlot,{scope:n,id:h,focusable:s,active:o,children:v.jsx(Ue.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:Ve(e.onMouseDown,S=>{s?m.onItemFocus(h):S.preventDefault()}),onFocus:Ve(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:Ve(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){m.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const T=XF(S,m.orientation,m.dir);if(T!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let P=w().filter(R=>R.focusable).map(R=>R.ref.current);if(T==="last")P.reverse();else if(T==="prev"||T==="next"){T==="prev"&&P.reverse();const R=P.indexOf(S.currentTarget);P=m.loop?JF(P,R+1):P.slice(R+1)}setTimeout(()=>d1(P))}}),children:typeof c=="function"?c({isCurrentTabStop:g,hasTabStop:x!=null}):c}
vendor: 4,167 bytes, line 200
200)})});u1.displayName=c1;var QF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function YF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XF(e,t,n){const s=YF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return QF[s]}function d1(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function JF(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var ZF=l1,eV=u1;function tV(e,t){return b.useReducer((n,s)=>t[n][s]??n,e)}var f1=e=>{const{present:t,children:n}=e,s=nV(t),o=typeof n=="function"?n({present:s.isPresent}):b.Children.only(n),l=dt(s.ref,rV(o));return typeof n=="function"||s.isPresent?b.cloneElement(o,{ref:l}):null};f1.displayName="Presence";function nV(e){const[t,n]=b.useState(),s=b.useRef(null),o=b.useRef(e),l=b.useRef("none"),c=e?"mounted":"unmounted",[u,f]=tV(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const h=yc(s.current);l.current=u==="mounted"?h:"none"},[u]),Rt(()=>{const h=s.current,m=o.current;if(m!==e){const w=l.current,C=yc(h);e?f("MOUNT"):C==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&w!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),Rt(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,g=C=>{const x=yc(s.current).includes(CSS.escape(C.animationName));if(C.target===t&&x&&(f("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},w=C=>{C.target===t&&(l.current=yc(s.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:b.useCallback(h=>{s.current=h?getComputedStyle(h):null,n(h)},[])}}function yc(e){return(e==null?void 0:e.animationName)||"none"}function rV(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cu="Tabs",[sV]=Ua(Cu,[a1]),h1=a1(),[iV,Cm]=sV(Cu),p1=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:o,defaultValue:l,orientation:c="horizontal",dir:u,activationMode:f="automatic",...h}=e,m=pm(u),[g,w]=eu({prop:s,onChange:o,defaultProp:l??"",caller:Cu});return v.jsx(iV,{scope:n,baseId:za(),value:g,onValueChange:w,orientation:c,dir:m,activationMode:f,children:v.jsx(Ue.div,{dir:m,"data-orientation":c,...h,ref:t})})});p1.displayName=Cu;var m1="TabsList",g1=b.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...o}=e,l=Cm(m1,n),c=h1(n);return v.jsx(ZF,{asChild:!0,...c,orientation:l.orientation,dir:l.dir,loop:s,children:v.jsx(Ue.div,{role:"tablist","aria-orientation":l.orientation,...o,ref:t})})});g1.displayName=m1;var y1="TabsTrigger",v1=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:o=!1,...l}=e,c=Cm(y1,n),u=h1(n),f=S1(c.baseId,s),h=b1(c.baseId,s),m=s===c.value;return v.jsx(eV,{asChild:!0,...u,focusable:!o,active:m,children:v.jsx(Ue.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...l,ref:t,onMouseDown:Ve(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?c.onValueChange(s):g.preventDefault()}),onKeyDown:Ve(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&c.onValueChange(s)}),onFocus:Ve(e.onFocus,()=>{const g=c.activationMode!=="manual";!m&&!o&&g&&c.onValueChange(s)})})})});v1.displayName=y1;var w1="TabsContent",x1=b.forwardRef((e,t)=>
200{const{__scopeTabs:n,value:s,forceMount:o,children:l,...c}=e,u=Cm(w1,n),f=S1(u.baseId,s),h=b1(u.baseId,s),m=s===u.value,g=b.useRef(m);return b.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),v.jsx(f1,{present:o||m,children:({present:w})=>v.jsx(Ue.div,{"data-state":m?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!w,id:h,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:w&&l})})});x1.displayName=w1;function S1(e,t){return`${e}-trigger-${t}`}function b1(e,t){return`${e}-content-${t}`}var oV=p1,E1=g1,C1=v1,A1=x1;const aV=oV,T1=b.forwardRef(({className:e,...t},n)=>v.jsx(E1,{ref:n,className:at("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));T1.displayName=E1.displayName;const Bc=b.forwardRef(({className:e,...t},n)=>v.jsx(C1,{ref:n,className:at("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));Bc.displayName=C1.displayName;const Fc=b.forwardRef(({className:e,...t},n)=>v.jsx(A1,{ref:n,className:at("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Fc.displayName=A1.displayName;function lV(){return v.jsxs("main",{children:[v.jsx(to,{label:"Contact",title:"Submit an inquiry.",description:"All access is application-based. Select the appropriate category below and complete the form. Qualified inquiries receive a response within 48-72 business hours."}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-2xl mx-auto",children:v.jsx(Ie.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:v.jsxs(aV,{defaultValue:"advisory",className:"w-full",children:[v.jsxs(T1,{className:"w-full grid grid-cols-3 bg-[#FAFAFA] rounded-none border border-[#E5E5E5] p-1 mb-12",children:[v.jsx(Bc,{value:"advisory",className:"rounded-none data-[state=active]:bg-white data-[state=active]:shadow-sm text-sm",children:"Advisory"}),v.jsx(Bc,{value:"partnership",className:"rounded-none data-[state=active]:bg-white data-[state=active]:shadow-sm text-sm",children:"Partnerships"}),v.jsx(Bc,{value:"media",className:"rounded-none data-[state=active]:bg-white data-[state=active]:shadow-sm text-sm",children:"Media"})]}),v.jsxs(Fc,{value:"advisory",children:[v.jsxs("div",{className:"mb-8",children:[v.jsx("h3",{className:"text-xl font-light text-[#0A0A0A] mb-2",children:"Advisory & Consulting"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm",children:"For strategic advisory, deal structuring, and capital introduction inquiries."})]}),v.jsx(Fs,{type:"advisory",showRevenue:!0,showInvestment:!0,engagementOptions:["Strategic Advisory","Deal Structuring","Brand Leverage Strategy","Capital Introduction","Other"]})]}),v.jsxs(Fc,{value:"partnership",children:[v.jsxs("div",{className:"mb-8",children:[v.jsx("h3",{className:"text-xl font-light text-[#0A0A0A] mb-2",children:"Brand Partnerships"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm",children:"For sponsorship, brand alignment, and corporate partnership opportunities."})]}),v.jsx(Fs,{type:"partnership",showInvestment:!0,engagementOptions:["Brand Advisory","Sponsorship","Content Partnership","Ecosystem Access","Other"]})]}),v.jsxs(Fc,{value:"media",children:[v.jsxs("div",{className:"mb-8",children:[v.jsx("h3",{className:"text-xl font-light text-[#0A0A0A] mb-2",children:"Press & Media"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm",children:"For interview requests, expert commentary, and press inquiries."})]}),v.jsx(Fs,{type:"media",engagementOptions:["Print/Digital Feature","Podcast Interview","Expert Commentary","Video/Documentary","Speaking Inquiry","Other"]})]})]})})})})]})}function Mn(e){return"/"+e.replace(/ /g,"-")}function cV(){return v.jsxs("section",{className:"min-h-[90vh] relative flex items-center justify-center px-6 lg:px-12",children:[v.jsxs("div",{className:"absolute inset-0 z-0",children:[v.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/694c7324553e8e705beb27d0/b420dd67f_headsh
200otBio2.jpg",alt:"Marlo Richardson",className:"w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/85 via-black/70 to-black/50"})]}),v.jsx("div",{className:"max-w-5xl mx-auto text-center relative z-10",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.3em] uppercase mb-6 font-medium",children:"Marlo Richardson"}),v.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-light text-white leading-[1.1] tracking-tight mb-8",children:["Multi-Company Founder.",v.jsx("br",{}),v.jsx("span",{className:"font-normal",children:"Elite Operator."}),v.jsx("br",{}),"Strategic Advisor."]}),v.jsx("p",{className:"text-gray-200 text-lg md:text-xl max-w-2xl mx-auto mb-12 font-light leading-relaxed",children:"Where capital, brands, and execution intersect."}),v.jsx("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:v.jsxs(sr,{to:Mn("Partnerships"),className:"group inline-flex items-center gap-3 border border-white/30 text-white px-8 py-4 text-sm tracking-wide hover:bg-white hover:text-[#0A0A0A] transition-all duration-300 backdrop-blur-sm",children:["Partnership & Media Inquiries",v.jsx(qT,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})]})})]})}function uV(){return v.jsx("section",{className:"py-24 lg:py-32 px-6 lg:px-12 bg-white border-t border-[#E5E5E5]",children:v.jsx(Ie.div,{className:"max-w-4xl mx-auto",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},children:v.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-6",children:"The Operator"}),v.jsx("p",{className:"text-[#0A0A0A] text-xl md:text-2xl font-light leading-relaxed",children:"Marlo Richardson builds, advises, and invests at the intersection of finance, media, and premium brands. With active companies spanning advisory services, publishing, and automotive, her work is defined by execution, not theory."})]}),v.jsxs("div",{className:"space-y-8",children:[v.jsxs("div",{className:"border-l-2 border-[#A08B6C] pl-6",children:[v.jsx("p",{className:"text-3xl font-light text-[#0A0A0A] mb-2",children:"3"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm tracking-wide",children:"Active Portfolio Companies"})]}),v.jsxs("div",{className:"border-l-2 border-[#A08B6C] pl-6",children:[v.jsx("p",{className:"text-3xl font-light text-[#0A0A0A] mb-2",children:"Select"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm tracking-wide",children:"Advisory Engagements Per Year"})]}),v.jsxs("div",{className:"border-l-2 border-[#A08B6C] pl-6",children:[v.jsx("p",{className:"text-3xl font-light text-[#0A0A0A] mb-2",children:"By Application"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm tracking-wide",children:"Access Only"})]})]})]})})})}const dV=[{title:"Advisory & Consulting",description:"Strategic guid
200ance for established operators and investors.",page:"Advisory"},{title:"Brand Partnerships",description:"Alignment opportunities for premium brands and corporations.",page:"Partnerships"},{title:"Speaking",description:"Executive-level insights for corporate and investment audiences.",page:"Speaking"},{title:"Portfolio Companies",description:"Active companies across finance, publishing, and automotive.",page:"Portfolio"},{title:"Press & Media",description:"Expert commentary and media resources.",page:"Press"}];function fV(){return v.jsx("section",{className:"py-24 lg:py-32 px-6 lg:px-12 bg-[#0A0A0A]",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsx(Ie.p,{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-16",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:"Pathways"}),v.jsx("div",{className:"space-y-0",children:dV.map((e,t)=>v.jsx(Ie.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},children:v.jsx(sr,{to:Mn(e.page),className:"group block py-8 border-b border-[#2A2A2A] hover:border-[#A08B6C] transition-colors duration-300",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("h3",{className:"text-white text-2xl md:text-3xl font-light mb-2 group-hover:text-[#A08B6C] transition-colors",children:e.title}),v.jsx("p",{className:"text-[#6B6B6B] text-sm md:text-base",children:e.description})]}),v.jsx(gp,{className:"w-6 h-6 text-[#6B6B6B] group-hover:text-[#A08B6C] group-hover:translate-x-1 group-hover:-translate-y-1 transition-all"})]})})},e.title))})]})})}function hV(){return v.jsxs("main",{children:[v.jsx(cV,{}),v.jsx(uV,{}),v.jsx(fV,{})]})}const pV=[{title:"Brand Advisory",description:"Strategic consulting on positioning, market entry, and executive brand development."},{title:"Sponsorship & Alignment",description:"Integrated partnership opportunities aligned with Marlo's portfolio and audience."},{title:"Content & Media",description:"Co-created content, podcast appearances, and editorial partnerships."},{title:"Ecosystem Access",description:"Entry points to Marlo's network of operators, investors, and high-value audiences."}],mV=["Access to an engaged audience of operators and investors","Alignment with a proven multi-company founder","Integration across portfolio company touchpoints","Executive-level brand credibility transfer"];function gV(){return v.jsxs("main",{children:[v.jsx(to,{label:"Brand Partnerships",title:"Strategic alignment for premium brands.",description:"Partnership opportunities for corporations and brands seeking access to high-value business audiences and executive credibility."}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsx(Ie.p,{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-12",initial:{opacity:0}
200,whileInView:{opacity:1},viewport:{once:!0},children:"Partnership Opportunities"}),v.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:pV.map((e,t)=>v.jsxs(Ie.div,{className:"border-l-2 border-[#E5E5E5] pl-8 py-2 hover:border-[#A08B6C] transition-colors",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},children:[v.jsx("h3",{className:"text-xl font-light text-[#0A0A0A] mb-3",children:e.title}),v.jsx("p",{className:"text-[#6B6B6B] leading-relaxed",children:e.description})]},e.title))})]})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#0A0A0A]",children:v.jsx("div",{className:"max-w-4xl mx-auto",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-8",children:"Partner Value"}),v.jsx("ul",{className:"space-y-6",children:mV.map((e,t)=>v.jsxs("li",{className:"flex items-start gap-4",children:[v.jsx("span",{className:"w-2 h-2 bg-[#A08B6C] mt-3 flex-shrink-0"}),v.jsx("span",{className:"text-white text-xl font-light",children:e})]},t))})]})})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-2xl mx-auto",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("h2",{className:"text-3xl font-light text-[#0A0A0A] mb-4 text-center",children:"Partnership Inquiry"}),v.jsx("p",{className:"text-[#6B6B6B] text-center mb-12",children:"For corporate partnerships, sponsorship opportunities, and media alignment."}),v.jsx(Fs,{type:"partnership",showInvestment:!0,engagementOptions:["Brand Advisory","Sponsorship","Content Partnership","Ecosystem Access","Other"]})]})})})]})}const yV=[{name:"Greenwood Advisors",sector:"Licensed Brokerage & Lending",description:"Licensed brokerage and lending business providing compliant access to capital across real estate, business, and auto financing. Serves individuals, entrepreneurs, and business owners navigating structural barriers within traditional banking systems. Specializes in facilitating capital access through regulated lending frameworks, structuring funding pathways for credit-aware borrowers who generate income or control assets. A foundational component of the capital access and advisory ecosystem.",website:"https://greenwoodadvisors.base44.app"},{name:"Green Blueprint",sector:"Publishing & Media",description:"Premium publishing platform delivering insights on wealth building, business strategy, and financial independence. Content designed for serious operators, not beginners.",website:"#"},{name:"Stage21 Motors",sector:"Automotive",description:"Curated automotive acquisition and consulting for collectors and executives. Specializing in premium and investment-grade vehicles.",website:"#"},{name:"Marlo Nicole Productions",sector:"Media & Production",description:"Full-service creative media and production company specializing in film, video, and podcast production. Serves brands, corporations, and executives seeking premium content that drives business outcomes. From concept development to post-production, delivers script-to-screen solutions across commercials, documentaries, social media content, and executive thought leadership platforms. Strategic media partner for organizations requiring broadcast-quality storytelling and brand elevation.",website:"https://marlonicoleproductions.com"},{name:"Generational Legacy Builders Worldwide",sector:"Nonprofit & Education",description:"IRS-recognized 501(c)(3) nonprofit organization (Tax ID: 99-2520569) dedicated to entrepreneurship education and economic empowerment. Provides structured business training, financial literacy programs, and mentorship to entrepreneurs building sustainable ventures. Programs focus on closing the entrepreneurship education gap and enabling wealth creation through business ownership. Partners with corporations, foundations, and institutional funders committed to economic development and community impact.",website:"https://marlorich17.wixsite.com/generationallegacy"}];function vV(){return v.jsxs("main",{children:[v.jsx(to,{label:"Portfolio Companies",title:"Active companies under executive leadership.",description:"Operating across finance, publishing, and automotive sectors. Each company functions independently with its own team, revenue, and market position."}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-6xl mx-auto",children:v.jsx("div",{className:"space-y-16",children:yV.map((e,t)=>v.jsxs(Ie.div,{className:"grid lg:grid-cols-3 gap-8 pb-16 border-b border-[#
200E5E5E5] last:border-0",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t*.1},children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-4",children:e.sector}),v.jsx("h2",{className:"text-2xl md:text-3xl font-light text-[#0A0A0A]",children:e.name})]}),v.jsxs("div",{className:"lg:col-span-2",children:[v.jsx("p",{className:"text-[#3A3A3A] text-lg leading-relaxed mb-6",children:e.description}),v.jsxs("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-[#0A0A0A] hover:text-[#A08B6C] transition-colors group",children:[v.jsx("span",{className:"text-sm tracking-wide",children:"Visit Website"}),v.jsx(gp,{className:"w-4 h-4 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]})]},e.name))})})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#0A0A0A]",children:v.jsx("div",{className:"max-w-4xl mx-auto text-center",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("p",{className:"text-white text-xl md:text-2xl font-light leading-relaxed",children:'"These are not passion projects or side ventures. Each company represents a deliberate deployment of capital, team, and strategy toward a specific market opportunity."'}),v.jsx("p",{className:"text-[#A08B6C] mt-8 text-sm tracking-[0.2em] uppercase",children:"— Marlo Richardson"})]})})})]})}const wV=[{outlet:"Forbes",outletCategory:"ForbesBLK / Leadership",title:"Marlo Richardson Created An 'Instacart For Cannabis' Through Her Company Just Mary",excerpt:"Meet Marlo Richardson, a cannabis mogul who debuted Just Mary Delivery, a same-day cannabis delivery app. Richardson is one of a handful of Black women who obtained all four required licenses for indoor cultivation, manufacturing, distribution, and retail.",date:"April 2023",url:"https://www.forbes.com/sites/yolandabaruch/2023/04/20/marlo-richardson-created-an-instacart-for-cannabis-through-her-company-just-mary/"},{outlet:"Sheen Magazine",outletCategory:"Top Story",title:"City of Inglewood Recognizes Dr. Marlo Nicole Richardson for Her Exceptional Contributions to Business and Community Empowerment",excerpt:"Mayor James T. Butts and the City of Inglewood celebrated Dr. Richardson in a formal ceremony recognizing her achievements including the Presidential Lifetime Achievement Award, two doctoral degrees, and her appointment as the first Black woman to chair the CA State Licensing Board.",date:"July 2024",url:"https://www.sheenmagazine.com/city-of-inglewood-recognizes-dr-marlo-nicole-richardson-for-her-exceptional-contributions-to-business-and-community-empowerment/"},{outlet:"Voyage LA",outletCategory:"Local Stories",title:"Meet Marlo Richardson of Business Bullish, Just Mary, Greenwood Company & Marlo Nicole Productions",excerpt:"An in-depth profile on Richardson's journey from law enforcement lieutenant to multi-industry entrepreneur spanning real estate, restaurants, cannabis, television, film, and capital access — and her philosophy of never giving anyone control over her livelihood again.",date:"May 2024",url:"https://voyagela.com/interview/meet-marlo-richardson-of-business-bullish-just-mary-greenwood-company-marlo-nicole-productions/"},{outlet:"Disrupt Magazine",outletCategory:"Entrepreneurship",title:"Marlo Richardson: From 9-5 to Serial Entrepreneur",excerpt:"After over 20 years in law enforcement, Richardson left to build a portfolio of businesses across real estate, hospitality, and cannabis. Her story of resilience and reinvention has made her a model for operators building multi-industry enterprises from scratch.",date:"2022",url:"https://disruptmagazine.com/marlo-richardson-from-9-5-to-serial-entrepreneur/"},{outlet:"Snubb3d Magazine",outletCategory:"Lifestyle / Leadership",title:"Inglewood's Own Trailblazer: Dr. Marlo Nicole Richardson Honored",excerpt:"Dr. Richardson's journey from Inglewood native to nationally recognized entrepreneur is chronicled, highlighting her ventures including California Vintage Wine Bistro, Braymar Wines, her collaboration with Big League Hospital
200ity Group at the Intuit Dome, and her youth empowerment initiatives.",date:"July 2024",url:"https://snubb3dmag.com/lifestyle/inglewoods-own-trailblazer-dr-marlo-nicole-richardson-honored/"},{outlet:"Yahoo Finance",outletCategory:"Business",title:"Marlo Richardson Helping People Create Businesses",excerpt:"Richardson has taken an active role in training businessmen and women to create more opportunities and employment for others through Business Bullish, a financial literacy and entrepreneurship platform offering free resources on funding, investing, and team building.",date:"2022",url:"https://finance.yahoo.com/news/marlo-richardson-helping-people-create-081000037.html"}],xV=["Multi-company entrepreneurship","Capital raising and deployment","Business portfolio strategy","Brand monetization","Executive decision-making","Wealth building for operators","Deal structuring and partnerships","Cannabis industry and licensing"],SV=[{title:"Short Bio",description:"100-word executive biography",icon:kv},{title:"Full Bio",description:"500-word comprehensive biography",icon:kv},{title:"Headshots",description:"High-resolution press photos",icon:rP}];function bV(){return v.jsxs("main",{children:[v.jsx(to,{label:"Press & Media",title:"Media resources and expert commentary.",description:"Marlo Richardson is available for expert commentary on business strategy, capital markets, and entrepreneurship. Journalist-ready resources below."}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-6xl mx-auto",children:v.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-6",children:"About"}),v.jsx("p",{className:"text-[#0A0A0A] text-lg leading-relaxed mb-6",children:"Marlo Richardson is a multi-company founder and strategic advisor operating at the intersection of finance, media, and premium brands. Her portfolio includes Greenwood Advisors (finance), Green Blueprint (publishing), and Stage21 Motors (automotive)."}),v.jsx("p",{className:"text-[#6B6B6B] leading-relaxed mb-6",children:"Richardson advises corporations, investors, and established entrepreneurs on capital strategy, brand leverage, and deal structuring. Her work is characterized by a focus on execution over theory, serving clients who require operator-level insight rather than generalist guidance."}),v.jsxs("div",{className:"border-l-2 border-[#A08B6C] pl-4",children:[v.jsx("p",{className:"text-[#0A0A0A] text-sm font-medium",children:"Presidential Lifetime Achievement Award"}),v.jsx("p",{className:"text-[#6B6B6B] text-sm",children:"Awarded by President Joseph Biden, 2024"})]})]}),v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-6",children:"Expert Commentary Topics"}),v.jsx("ul",{className:"space-y-3",children:xV.map((e,t)=>v.jsxs("li",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"w-1.5 h-1.5 bg-[#A08B6C] rounded-full"}),v.jsx("span",{className:"text-[#3A3A3A]",children:e})]},t))})]})]})})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#FAFAFA] border-y border-[#E5E5E5]",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsx(Ie.p,{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-12",initial:{opacity:0}
200,whileInView:{opacity:1},viewport:{once:!0},children:"As Featured In"}),v.jsx("div",{className:"space-y-10",children:wV.map((e,t)=>v.jsxs(Ie.a,{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group grid lg:grid-cols-4 gap-6 pb-10 border-b border-[#E5E5E5] last:border-0 hover:opacity-80 transition-opacity",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.07},children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[#0A0A0A] font-medium text-sm mb-1",children:e.outlet}),v.jsx("p",{className:"text-[#A08B6C] text-xs tracking-wide uppercase",children:e.outletCategory}),v.jsx("p",{className:"text-[#6B6B6B] text-xs mt-2",children:e.date})]}),v.jsxs("div",{className:"lg:col-span-3",children:[v.jsxs("h3",{className:"text-[#0A0A0A] text-lg font-light leading-snug mb-3 group-hover:text-[#A08B6C] transition-colors flex items-start gap-2",children:[e.title,v.jsx(gp,{className:"w-4 h-4 shrink-0 mt-1 opacity-0 group-hover:opacity-100 transition-opacity"})]}),v.jsx("p",{className:"text-[#6B6B6B] text-sm leading-relaxed",children:e.excerpt})]})]},t))})]})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#FAFAFA] border-y border-[#E5E5E5]",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsx(Ie.p,{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-12",initial:{opacity:0}
200,whileInView:{opacity:1},viewport:{once:!0},children:"Press Kit Downloads"}),v.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:SV.map((e,t)=>v.jsxs(Ie.a,{href:"#",className:"bg-white p-8 border border-[#E5E5E5] hover:border-[#A08B6C] transition-colors group",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},children:[v.jsx(e.icon,{className:"w-8 h-8 text-[#C4C4C4] group-hover:text-[#A08B6C] transition-colors mb-6"}),v.jsx("h3",{className:"text-lg font-medium text-[#0A0A0A] mb-2",children:e.title}),v.jsx("p",{className:"text-[#6B6B6B] text-sm mb-6",children:e.description}),v.jsxs("span",{className:"inline-flex items-center gap-2 text-[#0A0A0A] text-sm group-hover:text-[#A08B6C] transition-colors",children:[v.jsx(Mx,{className:"w-4 h-4"}),"Download"]})]},e.title))})]})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-2xl mx-auto",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("h2",{className:"text-3xl font-light text-[#0A0A0A] mb-4 text-center",children:"Media Inquiry"}),v.jsx("p",{className:"text-[#6B6B6B] text-center mb-12",children:"For press inquiries, interview requests, and expert commentary."}),v.jsx(Fs,{type:"media",engagementOptions:["Print/Digital Feature","Podcast Interview","Expert Commentary","Video/Documentary","Other"]})]})})})]})}const EV=[{title:"From Badge to Boardroom: Reinventing Yourself at Any Stage",description:"Drawing from 20+ years in law enforcement, Marlo shares how she made one of the most difficult professional transitions possible: leaving a career with rank, pension, and identity to build a multi-industry empire. A raw, tactical look at how discipline from public service becomes the greatest competitive advantage in business.",credential:"Former Law Enforcement Lieutenant"},{title:"The Multi-Company Blueprint: Operating Across Industries Without Losing Focus",description:"Most entrepreneurs are told to stay in their lane. Marlo built companies in cannabis, real estate, hospitality, media, publishing, automotive, and capital access, simultaneously. She breaks down the systems, team structures, and decision frameworks that allow elite operators to run diverse portfolios without burning out or losing margin.",credential:"Founder of 5+ Active Companies"},{title:"Capital Access for the Credit-Aware: Breaking Barriers in Traditional Finance",description:"As founder of Greenwood Advisors, a licensed brokerage and lending firm, Marlo speaks candidly about how individuals and business owners can access capital outside traditional banking pipelines. A practical talk on deal structuring, alternative lending, and building creditworthiness for operators the system was not designed to serve.",credential:"Licensed Brokerage & Lending Principal"},{title:"First in the Room: Being the Only One and Owning It",description:"Marlo has repeatedly broken barriers as the first Black woman in rooms, industries, and boardrooms, including as the first Black woman appointed to chair the California State Licensing Board. She speaks on the strategy, positioning, and mindset required to not just enter exclusive spaces, but to command them.",credential:"First Black Woman to Chair CA State Licensing Board"},{title:"Financial Literacy as a Business Strategy",description:"Through Business Bullish and Generational Legacy Builders Worldwide, her IRS-recognized 501(c)(3), Marlo has trained thousands of aspiring entrepreneurs in funding, investing, and team building. This talk translates financial literacy from classroom concept to real operator tool for building sustainable, bankable businesses.",credential:"Founder, Generational Legacy Builders Worldwide (501c3)"},{title:"Brand Authority and Media Presence for Executives",description:"With a media production company, publishing platform, and national press placements in Forbes, Yahoo Finance, and Sheen Magazine, Marlo teaches executives how to build a media presence that functions as a business asset: driving deals, credibility, and premium pricing without chasing followers.",credential:"Founder, Marlo Nicole Productions"}],CV=["Corporate leadership teams","Investment conferences","Industry associations","Private equity & venture events","Executive retreats"];function AV(){const[e,t]=b.useState(!1),n=async()=>{t(!0);const s=await Yr.functions.invoke("generateOneSheet",{}),o=new Blob([s.data],{type:"application/pdf"}),l=window.URL.createObjectURL(o),c=document.createElement("a");c.href=l,c.download="Marlo-Richardson-Speaker-One-Sheet.pdf",document.body.appendChild(c),c.click(),window.URL.revokeObjectURL(l),c.remove(),t(!1)};return v.jsxs("main",{children:[v.jsx(to,{label:"Speaking",title:"A speaker built from real experience, not theory.",description:"Dr. Marlo Richardson has stood in rooms most people only read about. As a former law enforcement lieutenant turned multi-industry founder, Presidential Lifetime Achievement Award recipient, and licensed capital access principal, she brings authority that no curriculum can replicate."}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsx(Ie.p,{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-12",initial:{opacity:0}
200,whileInView:{opacity:1},viewport:{once:!0},children:"Speaking Topics"}),v.jsx("div",{className:"space-y-8",children:EV.map((s,o)=>v.jsxs(Ie.div,{className:"border-b border-[#E5E5E5] pb-8",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:o*.1},children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[v.jsx("h3",{className:"text-xl md:text-2xl font-light text-[#0A0A0A]",children:s.title}),v.jsx("span",{className:"text-xs tracking-wide text-[#A08B6C] border border-[#A08B6C] px-2 py-0.5 uppercase whitespace-nowrap",children:s.credential})]}),v.jsx("p",{className:"text-[#6B6B6B] leading-relaxed max-w-3xl",children:s.description})]},s.title))})]})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-[#FAFAFA] border-y border-[#E5E5E5]",children:v.jsx("div",{className:"max-w-6xl mx-auto",children:v.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-8",children:"Ideal Audiences"}),v.jsx("ul",{className:"space-y-4",children:CV.map((s,o)=>v.jsxs("li",{className:"flex items-center gap-4",children:[v.jsx("span",{className:"w-2 h-2 bg-[#A08B6C]"}),v.jsx("span",{className:"text-[#0A0A0A] text-lg",children:s})]},o))})]}),v.jsxs(Ie.div,{className:"bg-white p-10 border border-[#E5E5E5]",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},children:[v.jsx("h3",{className:"text-2xl font-light text-[#0A0A0A] mb-4",children:"Speaker One-Sheet"}),v.jsx("p",{className:"text-[#6B6B6B] mb-8 leading-relaxed",children:"Download comprehensive speaking topics, bio, and booking information."}),v.jsxs("button",{onClick:n,disabled:e,className:"inline-flex items-center gap-3 bg-[#0A0A0A] text-white px-6 py-4 text-sm tracking-wide hover:bg-[#1A1A1A] transition-colors disabled:opacity-60",children:[e?v.jsx(Lx,{className:"w-4 h-4 animate-spin"}):v.jsx(Mx,{className:"w-4 h-4"}),e?"Generating...":"Download One-Sheet (PDF)"]})]})]})})}),v.jsx("section",{className:"py-20 lg:py-28 px-6 lg:px-12 bg-white",children:v.jsx("div",{className:"max-w-2xl mx-auto",children:v.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("h2",{className:"text-3xl font-light text-[#0A0A0A] mb-4 text-center",children:"Speaking Inquiry"}),v.jsx("p",{className:"text-[#6B6B6B] text-center mb-12",children:"For corporate events, conferences, and private engagements."}),v.jsx(Fs,{type:"speaking",engagementOptions:["Keynote Address","Panel Participation","Workshop/Masterclass","Fireside Chat","Private Event","Other"]})]})})})]})}const vc=[{name:"Advisory",page:"Advisory"},{name:"Partnerships",page:"Partnerships"},{name:"Speaking",page:"Speaking"},{name:"Portfolio",page:"Portfolio"},{name:"Press",page:"Press"}];function TV({children:e}){const[t,n]=b.useState(!1),[s,o]=b.useState(!1),l=Ks(),c=l.pathname===Mn("Home")||l.pathname==="/";return b.useEffect(()=>{const u=()=>{o(window.scrollY>50)};return window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)},[]),b.useEffect(()=>{n(!1)},[l]),v.jsxs("div",{className:"min-h-screen bg-[#FAFAFA]",children:[v.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${s?"bg-white/95 backdrop-blur-sm border-b border-[#E5E5E5]":"bg-transparent"}`,children:v.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:v.jsxs("div",{className:"flex items-center justify-between h-20",children:[v.jsx(sr,{to:Mn("Home"),className:`text-lg tracking-tight font-medium transition-colors ${s?"text-[#0A0A0A]":"text-white"}`,children:"Marlo Richardson"}),v.jsxs("nav",{className:"hidden lg:flex items-center gap-10",children:[vc.map(u=>v.jsx(sr,{to:Mn(u.page),className:`text-sm tracking-wide transition-colors ${c?"text-white hover:text-[#A08B6C]":s?"text-[#3A3A3A] hover:text-[#0A0A0A]":"text-white hover:text-[#A08B6C]"}`,children:u.name},u.page)),v.jsx(sr,{to:Mn("Apply"),className:"bg-[#0A0A0A] text-white px-6 py-2.5 text-sm tracking-wide hover:bg-[#1A1A1A] transition-colors",children:"Apply"})]}),v.jsx("button",{className:"lg:hidden p-2",onClick:()=>n(!t),children:t?v.jsx(yp,{className:`w-6 h-6 ${s?"text-[#0A0A0A]":"text-white"}`}):v.jsx(oP,{className:`w-6 h-6 ${s?"text-[#0A0A0A]":"text-white"}`})})]})})}),v.jsx(WO,{children:t&&v.jsx(Ie.div,{initial:{opacity:0}
200,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-40 bg-white lg:hidden",children:v.jsx("div",{className:"pt-24 px-6",children:v.jsxs("nav",{className:"space-y-6",children:[vc.map((u,f)=>v.jsx(Ie.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:f*.05},children:v.jsx(sr,{to:Mn(u.page),className:"block text-2xl text-[#0A0A0A] font-light",children:u.name})},u.page)),v.jsx(Ie.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:vc.length*.05},className:"pt-6",children:v.jsx(sr,{to:Mn("Apply"),className:"inline-block bg-[#0A0A0A] text-white px-8 py-4 text-sm tracking-wide",children:"Apply to Work With Me"})})]})})})}),v.jsx("main",{children:e}),v.jsx("footer",{className:"bg-[#0A0A0A] py-16 lg:py-20 px-6 lg:px-12",children:v.jsxs("div",{className:"max-w-6xl mx-auto",children:[v.jsxs("div",{className:"grid md:grid-cols-3 gap-12 mb-16",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-white text-lg tracking-tight font-medium mb-4",children:"Marlo Richardson"}),v.jsxs("p",{className:"text-[#6B6B6B] text-sm leading-relaxed",children:["Multi-Company Founder.",v.jsx("br",{}),"Elite Operator.",v.jsx("br",{}),"Strategic Advisor."]})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-4",children:"Navigate"}),v.jsx("div",{className:"space-y-3",children:vc.map(u=>v.jsx(sr,{to:Mn(u.page),className:"block text-[#6B6B6B] hover:text-white text-sm transition-colors",children:u.name},u.page))})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[#A08B6C] text-sm tracking-[0.2em] uppercase mb-4",children:"Connect"}),v.jsx(sr,{to:Mn("Apply"),className:"inline-block border border-[#3A3A3A] text-white px-6 py-3 text-sm tracking-wide hover:border-[#A08B6C] transition-colors",children:"Submit an Inquiry"})]})]}),v.jsxs("div",{className:"border-t border-[#2A2A2A] pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[v.jsxs("p",{className:"text-[#6B6B6B] text-xs",children:["© ",new Date().getFullYear()," Marlo Richardson. All rights reserved."]}),v.jsx("p",{className:"text-[#6B6B6B] text-xs",children:"Application-Based Access Only."})]})]})})]})}const PV={Advisory:zF,Apply:lV,Home:hV,Partnerships:gV,Portfolio:vV,Press:bV,Speaking:AV},P1={mainPage:"Home",Pages:PV,Layout:TV};function kV(){const e=Ks(),{isAuthenticated:t}=ib(),{Pages:n,mainPage:s}=P1,o=s;return b.useEffect(()=>{const l=e.pathname;let c;if(l==="/"||l==="")c=o;else{const u=l.replace(/^\//,"").split("/")[0];c=Object.keys(n).find(m=>m.toLowerCase()===u.toLowerCase())||null}t&&c&&Yr.appLogs.logUserInApp(c).catch(()=>{})},[e,t,n,o]),null}function RV({}){var o;const t=Ks().pathname.substring(1),{data:n,isFetched:s}=kk({queryKey:["user"],queryFn:async()=>{try{return{user:await Yr.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return v.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:v.jsx("div",{className:"max-w-md w-full",children:v.jsxs("div",{className:"text-center space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),v.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),v.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",v.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),s&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&v.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:v.jsxs("div",{className:"flex items-start space-x-3",children:[v.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),v.jsxs("div",{className:"text-left space-y-1",children:[v.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),v.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."})]})]})}),v.jsx("div",{className:"pt-6",children:v.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:[v.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.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 NV=()=>v.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:v.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:v.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.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"})})}),v.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),v.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."}),v.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[v.jsx("p",{children:"If you believe this is an error, you can:"}),v.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[v.jsx("li",{children:"Verify you are logged in with the correct account"}),v.jsx("li",{children:"Contact the app administrator for access"}),v.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:k1,Layout:gx,mainPage:_V}=P1,R1=_V,OV=k1[R1],yx=({children:e,currentPageName:t})=>gx?v.jsx(gx,{currentPageName:t,children:e}):v.jsx(v.Fragment,{children:e}),jV=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:s}=ib();if(t||e)return v.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:v.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 v.jsx(NV,{});if(n.type==="auth_required")return s(),null}return v.jsxs(bR,{children:[v.jsx(Sc,{path:"/",element:v.jsx(yx,{currentPageName:R1,children:v.jsx(OV,{})})}),Object.entries(k1).map(([o,l])=>v.jsx(Sc,{path:`/${o}`,element:v.jsx(yx,{currentPageName:o,children:v.jsx(l,{})})},o)),v.jsx(Sc,{path:"*",element:v.jsx(RV,{})})]})};function MV(){return v.jsx(FO,{children:v.jsxs(gk,{client:Rk,children:[v.jsxs(RR,{children:[v.jsx(kV,{}),v.jsx(jV,{})]}),v.jsx(WP,{})]})})}LT.createRoot(document.getElementById("root")).render(v.jsx(MV,{}));

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.