vendor: 6,416 bytes, lines 1-9
1var OE=Object.defineProperty;var Jg=e=>{throw TypeError(e)};var DE=(e,t,n)=>t in e?OE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Be=(e,t,n)=>DE(e,typeof t!="symbol"?t+"":t,n),Td=(e,t,n)=>t.has(e)||Jg("Cannot "+n);var j=(e,t,n)=>(Td(e,t,"read from private field"),n?n.call(e):t.get(e)),ve=(e,t,n)=>t.has(e)?Jg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Z=(e,t,n,s)=>(Td(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Pe=(e,t,n)=>(Td(e,t,"access private method"),n);var Dl=(e,t,n,s)=>({set _(o){Z(e,t,o,n)},get _(){return j(e,t,s)}});function ME(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 u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).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 Jv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd={exports:{}},Po={},Pd={exports:{}},Te={};/** 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 Zg;function LE(){if(Zg)return Te;Zg=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"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,C={};function E(M,$,le){this.props=M,this.context=$,this.refs=C,this.updater=le||S}E.prototype.isReactComponent={},E.prototype.setState=function(M,$){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,$,"setState")},E.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function b(){}b.prototype=E.prototype;function A(M,$,le){this.props=M,this.context=$,this.refs=C,this.updater=le||S}var N=A.prototype=new b;N.constructor=A,k(N,E.prototype),N.isPureReactComponent=!0;var P=Array.isArray,I=Object.prototype.hasOwnProperty,z={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function U(M,$,le){var he,Ce={},ne=null,fe=null;if($!=null)for(he in $.ref!==void 0&&(fe=$.ref),$.key!==void 0&&(ne=""+$.key),$)I.call($,he)&&!Q.hasOwnProperty(he)&&(Ce[he]=$[he]);var Ne=arguments.length-2;if(Ne===1)Ce.children=le;else if(1<Ne){for(var Oe=Array(Ne),tt=0;tt<Ne;tt++)Oe[tt]=arguments[tt+2];Ce.children=Oe}if(M&&M.defaultProps)for(he in Ne=M.defaultProps,Ne)Ce[he]===void 0&&(Ce[he]=Ne[he]);return{$$typeof:e,type:M,key:ne,ref:fe,props:Ce,_owner:z.current}}function me(M,$){return{$$typeof:e,type:M.type,key:$,ref:M.ref,props:M.props,_owner:M._owner}}function Y(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function oe(M){var $={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(le){return $[le]})}var Se=/\/+/g;function Ee(M,$){return typeof M=="object"&&M!==null&&M.key!=null?oe(""+M.key):$.toString(36)}function Re(M,$,le,he,Ce){var ne=typeof M;(ne==="undefined"||ne==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(ne){case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case t:fe=!0}}if(fe)return fe=M,Ce=Ce(fe),M=he===""?"."+Ee(fe,0):he,P(Ce)?(le="",M!=null&&(le=M.replace(Se,"$&/")+"/"),Re(Ce,$,le,"",function(tt){return tt})):Ce!=null&&(Y(Ce)&&(Ce=me(Ce,le+(!Ce.key||fe&&fe.key===Ce.key?"":(""+Ce.key).replace(Se,"$&/")+"/")+M)),$.push(Ce)),1;if(fe=0,he=he===""?".":he+":",P(M))for(var Ne=0;Ne<M.length;Ne++){ne=M[Ne];var Oe=he+Ee(ne,Ne);fe+=Re(ne,$,le,Oe,Ce)}else if(Oe=x(M),typeof Oe=="function")for(M=Oe.call(M),Ne=0;!(ne=M.next()).done;)ne=ne.value,Oe=he+Ee(ne,Ne++),fe+=Re(ne,$,le,Oe,Ce);else if(ne==="object")throw $=String(M),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return fe}function Fe(M,$,le){if(M==null)return M;var he=[],Ce=0;return Re(M,he,"","",function(ne){return $.call(le,ne,Ce++)}),he}function pe(M){if(M._status===-1){var $=M._result;$=$(),$.then(function(le){(M._status===0||M._status===-1)&&(M._status=1,M._result=le)},function(le){(M._status===0||M._status===-1)&&(M._status=2,M._result=le)}),M._status===-1&&(M._status=0,M._result=$)}if(M._status===1)return M._result.default;throw M._result}var ae={current:null},B={transition:null},te={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:B,ReactCurrentOwner:z};function G(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Fe,forEach:function(M,$,le){Fe(M,function(){$.apply(this,arguments)},le)},count:function(M){var $=0;return Fe(M,function(){$++}),$},toArray:function(M){return Fe(M,function($){return $})||[]},only:function(M){if(!Y(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Te.Component=E,Te.Fragment=n,Te.Profiler=o,Te.PureComponent=A,Te.StrictMode=s,Te.Suspense=f,Te.__SECRET_INT
vendor: 6,287 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Te.act=G,Te.cloneElement=function(M,$,le){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var he=k({},M.props),Ce=M.key,ne=M.ref,fe=M._owner;if($!=null){if($.ref!==void 0&&(ne=$.ref,fe=z.current),$.key!==void 0&&(Ce=""+$.key),M.type&&M.type.defaultProps)var Ne=M.type.defaultProps;for(Oe in $)I.call($,Oe)&&!Q.hasOwnProperty(Oe)&&(he[Oe]=$[Oe]===void 0&&Ne!==void 0?Ne[Oe]:$[Oe])}var Oe=arguments.length-2;if(Oe===1)he.children=le;else if(1<Oe){Ne=Array(Oe);for(var tt=0;tt<Oe;tt++)Ne[tt]=arguments[tt+2];he.children=Ne}return{$$typeof:e,type:M.type,key:Ce,ref:ne,props:he,_owner:fe}},Te.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:l,_context:M},M.Consumer=M},Te.createElement=U,Te.createFactory=function(M){var $=U.bind(null,M);return $.type=M,$},Te.createRef=function(){return{current:null}},Te.forwardRef=function(M){return{$$typeof:d,render:M}},Te.isValidElement=Y,Te.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:pe}},Te.memo=function(M,$){return{$$typeof:m,type:M,compare:$===void 0?null:$}},Te.startTransition=function(M){var $=B.transition;B.transition={};try{M()}finally{B.transition=$}},Te.unstable_act=G,Te.useCallback=function(M,$){return ae.current.useCallback(M,$)},Te.useContext=function(M){return ae.current.useContext(M)},Te.useDebugValue=function(){},Te.useDeferredValue=function(M){return ae.current.useDeferredValue(M)},Te.useEffect=function(M,$){return ae.current.useEffect(M,$)},Te.useId=function(){return ae.current.useId()},Te.useImperativeHandle=function(M,$,le){return ae.current.useImperativeHandle(M,$,le)},Te.useInsertionEffect=function(M,$){return ae.current.useInsertionEffect(M,$)},Te.useLayoutEffect=function(M,$){return ae.current.useLayoutEffect(M,$)},Te.useMemo=function(M,$){return ae.current.useMemo(M,$)},Te.useReducer=function(M,$,le){return ae.current.useReducer(M,$,le)},Te.useRef=function(M){return ae.current.useRef(M)},Te.useState=function(M){return ae.current.useState(M)},Te.useSyncExternalStore=function(M,$,le){return ae.current.useSyncExternalStore(M,$,le)},Te.useTransition=function(){return ae.current.useTransition()},Te.version="18.3.1",Te}var ey;function ah(){return ey||(ey=1,Pd.exports=LE()),Pd.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 ty;function IE(){if(ty)return Po;ty=1;var e=ah(),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 u(d,f,m){var y,v={},x=null,S=null;m!==void 0&&(x=""+m),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(S=f.ref);for(y in f)s.call(f,y)&&!l.hasOwnProperty(y)&&(v[y]=f[y]);if(d&&d.defaultProps)for(y in f=d.defaultProps,f)v[y]===void 0&&(v[y]=f[y]);return{$$typeof:t,type:d,key:x,ref:S,props:v,_owner:o.current}}return Po.Fragment=n,Po.jsx=u,Po.jsxs=u,Po}var ny;function FE(){return ny||(ny=1,Nd.exports=IE()),Nd.exports}var p=FE(),_=ah();const Tr=Jv(_),Zv=ME({__proto__:null,default:Tr},[_]);var Ml={},Ad={exports:{}},Bt={},Rd={exports:{}},jd={};/** 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 ry;function VE(){return ry||(ry=1,(function(e){function t(B,te){var G=B.length;B.push(te);e:for(;0<G;){var M=G-1>>>1,$=B[M];if(0<o($,te))B[M]=te,B[G]=$,G=M;else break e}}function n(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var te=B[0],G=B.pop();if(G!==te){B[0]=G;e:for(var M=0,$=B.length,le=$>>>1;M<le;){var he=2*(M+1)-1,Ce=B[he],ne=he+1,fe=B[ne];if(0>o(Ce,G))ne<$&&0>o(fe,Ce)?(B[M]=fe,B[ne]=G,M=ne):(B[M]=Ce,B[he]=G,M=he);else if(ne<$&&0>o(fe,G))B[M]=fe,B[ne]=G,M=ne;else break e}}return te}function o(B,te){var G=B.sortIndex-te.sortIndex;return G!==0?G:B.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],m=[],y=1,v=null,x=3,S=!1,k=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(B){for(var te=n(m);te!==null;){if(te.callback===null)s(m);else if(te.startTime<=B)s(m),te.sortIndex=te.expirationTime,t(f,te);else break;te=n(m)}}function P(B){if(C=!1,N(B),!k)if(n(f)!==null)k=!0,pe(I);else{var te=n(m);te!==null&&ae(P,te.startTime-B)}}function I(B,te){k=!1,C&&(C=!1,b(U),U=-1),S=!0;var G=x;try{for(N(te),v=n(f);v!==null&&(!(v.expirationTime>te)||B&&!oe());){var M=v.callback;if(typeof M=="function"){v.callback=null,x=v.priorityLevel;var $=M(v.expirationTime<=te);te=e.unstable_now(),typeof $=="function"?v.callback=$:v===n(f)&&s(f),N(te)}else s(f);v=n(f)}if(v!==null)var le=!0;else{var he=n(m);he!==null&&ae(P,he.startTime-te),le=!1}return le}finally{v=null,x=G,S=!1}}var z=!1,Q=null,U=-1,me=5,Y=-1;function oe(){return!(e.unstable_now()-Y<me)}function Se(){if(Q!==null){var B=e.unstable_now();Y=B;var te=!0;try{te=Q(!0,B)}finally{te?Ee():(z=!1,Q=null)}}else z=!1}var Ee;if(typeof A=="function")Ee=function(){A(Se)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,Fe=Re.port2;Re.port1.onmessage=Se,Ee=function(){Fe.postMessage(null)}}else Ee=function(){E(Se,0)};function pe(B){Q=B,z||(z=!0,Ee())}function ae(B,te){U=E(function(){B(e.unstable_now())},te)}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(B){B.
vendor: 4,217 bytes, lines 25-33
25callback=null},e.unstable_continueExecution=function(){k||S||(k=!0,pe(I))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var G=x;x=te;try{return B()}finally{x=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,te){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var G=x;x=B;try{return te()}finally{x=G}},e.unstable_scheduleCallback=function(B,te,G){var M=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?M+G:M):G=M,B){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=G+$,B={id:y++,callback:te,priorityLevel:B,startTime:G,expirationTime:$,sortIndex:-1},G>M?(B.sortIndex=G,t(m,B),n(f)===null&&B===n(m)&&(C?(b(U),U=-1):C=!0,ae(P,G-M))):(B.sortIndex=$,t(f,B),k||S||(k=!0,pe(I))),B},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(B){var te=x;return function(){var G=x;x=te;try{return B.apply(this,arguments)}finally{x=G}}}})(jd)),jd}var sy;function BE(){return sy||(sy=1,Rd.exports=VE()),Rd.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 iy;function UE(){if(iy)return Bt;iy=1;var e=ah(),t=BE();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){u(r,i),u(r+"Capture",i)}function u(r,i){for(o[r]=i,r=0;r<i.length;r++)s.add(i[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},v={};function x(r){return f.call(v,r)?!0:f.call(y,r)?!1:m.test(r)?v[r]=!0:(y[r]=!0,!1)}function S(r,i,a,c){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function k(r,i,a,c){if(i===null||typeof i>"u"||S(r,i,a,c))return!0;if(c)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 C(r,i,a,c,h,g,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=r,this.type=i,this.sanitizeURL=g,this.removeEmptyString=w}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){E[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];E[i]=new C(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){E[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){E[r]=new C(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInl
33ine readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){E[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){E[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){E[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){E[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){E[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function A(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(b,A);E[i]=new C(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(b,A);E[i]=new C(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(b,A);E[i]=new C(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){E[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),E.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){E[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function N(r,i,a,c){var h=E.hasOwnProperty(i)?E[i]:null;(h!==null?h.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(k(i,a,h,c)&&(a=null),c||h===null?x(i)&&(a===null?r.removeAttribute(i):r.setAttribute(i,""+a)):h.mustUseProperty?r[h.propertyName]=a===null?h.type===3?!1:"":a:(i=h.attributeName,c=h.attributeNamespace,a===null?r.removeAttribute(i):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,c?r.setAttributeNS(c,i,a):r.setAttribute(i,a))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),z=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),oe=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),B=Symbol.iterator;function te(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var G=Object.assign,M;function $(r){if(M===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return` 34`+M+r}var le=!1;function he(r,i){if(!r||le)return"";le=!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 c=V}Reflect.construct(r,[],i)}else{try{i.call()}catch(V){c=V}r.call(i.prototype)}else{try{throw Error()}catch(V){c=V}r()}}catch(V){if(V&&c&&typeof V.stack=="string"){for(var h=V.stack.split(` 35`),g=c.stack.split(` 36`),w=h.length-1,T=g.length-1;1<=w&&0<=T&&h[w]!==g[T];)T--;for(;1<=w&&0<=T;w--,T--)if(h[w]!==g[T]){if(w!==1||T!==1)do if(w--,T--,0>T||h[w]!==g[T]){var R=` 37`+h[w].replace(" at new "," at ");return r.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",r.displayName)),R}while(1<=w&&0<=T);break}}}finally{le=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?$(r):""}function Ce(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=he(r.type,!1),r;case 11:return r=he(r.type.render,!1),r;case 1:return r=he(r.type,!0),r;default:return""}}function ne(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 Q:return"Fragment";case z:return"Portal";case me:return"Profiler";case U:return"StrictMode";case Ee:return"Suspense";case Re:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case oe:return(r.displayName||"Context")+".Consumer";case Y:return(r._context.displayName||"Context")+".Provider";case Se:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;
vendor: 39,082 bytes, lines 37-38
37case Fe:return i=r.displayName||null,i!==null?i:ne(r.type)||"Memo";case pe:i=r._payload,r=r._init;try{return ne(r(i))}catch{}}return null}function fe(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 ne(i);case 8:return i===U?"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 Ne(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Oe(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function tt(r){var i=Oe(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),c=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,g=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return h.call(this)},set:function(w){c=""+w,g.call(this,w)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function hn(r){r._valueTracker||(r._valueTracker=tt(r))}function ht(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),c="";return r&&(c=Oe(r)?r.checked?"true":"false":r.value),r=c,r!==a?(i.setValue(r),!0):!1}function qr(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 Kr(r,i){var a=i.checked;return G({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function Jt(r,i){var a=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;a=Ne(i.value!=null?i.value:a),r._wrapperState={initialChecked:c,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function be(r,i){i=i.checked,i!=null&&N(r,"checked",i,!1)}function pt(r,i){be(r,i);var a=Ne(i.value),c=i.type;if(a!=null)c==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?mn(r,i.type,a):i.hasOwnProperty("defaultValue")&&mn(r,i.type,Ne(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function pn(r,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="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 mn(r,i,a){(i!=="number"||qr(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var ir=Array.isArray;function or(r,i,a,c){if(r=r.options,i){i={};for(var h=0;h<a.length;h++)i["$"+a[h]]=!0;for(a=0;a<r.length;a++)h=i.hasOwnProperty("$"+r[a].value),r[a].selected!==h&&(r[a].selected=h),h&&c&&(r[a].defaultSelected=!0)}else{for(a=""+Ne(a),i=null,h=0;h<r.length;h++){if(r[h].value===a){r[h].selected=!0,c&&(r[h].defaultSelected=!0);return}i!==null||r[h].disabled||(i=r[h])}i!==null&&(i.selected=!0)}}function Vn(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return G({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function lp(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(ir(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}r._wrapperState={initialValue:Ne(a)}}function up(r,i){var a=Ne(i.value),c=Ne(i.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),i.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),c!=null&&(r.defaultValue=""+c)}function cp(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function dp(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 Fu(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?dp(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ka,fp=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,c,h){MSApp.execUnsafeLocalFunction(function(){return r(i,a,c,h)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(ka=ka||document.createElement("div"),ka.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ka.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Hi(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var Wi={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},I1=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(r){I1.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Wi[i]=Wi[r]})});function hp(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||Wi.hasOwnProperty(r)&&Wi[r]?(""+i).trim():i+"px"}function pp(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var c=a.indexOf("--")===0,h=hp(a,i[a],c);a==="float"&&(a="cssFloat"),c?r.setProperty(a,h):r[a]=h}}var F1=G({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 Vu(r,i){if(i){if(F1[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 Bu(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 Uu=null;function zu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var $u=null,Fs=null,Vs=null;function mp(r){if(r=po(r)){if(typeof $u!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Qa(i),$u(r.stateNode,r.type,i))}}function gp(r){Fs?Vs?Vs.push(r):Vs=[r]:Fs=r}function yp(){if(Fs){var r=Fs,i=Vs;if(Vs=Fs=null,mp(r),i)for(r=0;r<i.length;r++)mp(i[r])}}function vp(r,i){return r(i)}function xp(){}var Hu=!1;function wp(r,i,a){if(Hu)return r(i,a);Hu=!0;try{return vp(r,i,a)}finally{Hu=!1,(Fs!==null||Vs!==null)&&(xp(),yp())}}function qi(r,i){var a=r.stateNode;if(a===null)return null;var c=Qa(a);if(c===null)return null;a=c[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":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var Wu=!1;if(d)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{Wu=!1}function V1(r,i,a,c,h,g,w,T,R){var V=Array.prototype.slice.call(arguments,3);try{i.apply(a,V)}catch(W){this.onError(W)}}var Gi=!1,Ta=null,Na=!1,qu=null,B1={onError:function(r){Gi=!0,Ta=r}};function U1(r,i,a,c,h,g,w,T,R){Gi=!1,Ta=null,V1.apply(B1,arguments)}function z1(r,i,a,c,h,g,w,T,R){if(U1.apply(this,arguments),Gi){if(Gi){var V=Ta;Gi=!1,Ta=null}else throw Error(n(198));Na||(Na=!0,qu=V)}}function Gr(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 bp(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 Sp(r){if(Gr(r)!==r)throw Error(n(188))}function $1(r){var i=r.alternate;if(!i){if(i=Gr(r),i===null)throw Error(n(188));return i!==r?null:r}for(var a=r,c=i;;){var h=a.return;if(h===null)break;var g=h.alternate;if(g===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===a)return Sp(h),r;if(g===c)return Sp(h),i;g=g.sibling}throw Error(n(188))}if(a.return!==c.return)a=h,c=g;else{for(var w=!1,T=h.child;T;){if(T===a){w=!0,a=h,c=g;break}if(T===c){w=!0,c=h,a=g;break}T=T.sibling}if(!w){for(T=g.child;T;){if(T===a){w=!0,a=g,c=h;break}if(T===c){w=!0,c=g,a=h;break}T=T.sibling}if(!w)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:i}function Ep(r){return r=$1(r),r!==null?Cp(r):null}function Cp(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Cp(r);if(i!==null)return i;r=r.sibling}return null}var _p=t.unstable_scheduleCallback,kp=t.unstable_cancelCallback,H1=t.unstable_shouldYield,W1=t.unstable_requestPaint,Xe=t.unstable_now,q1=t.unstable_getCurrentPriorityLevel,Ku=t.unstable_ImmediatePriority,Tp=t.unstable_UserBlockingPriority,Pa=t.unstable_NormalPriority,K1=t.unstable_LowPriority,Np=t.unstable_IdlePriority,Aa=null,Tn=null;function G1(r){if(Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(Aa,r,void 0,(r.current.flags&128)===128)}catch{}}var gn=Math.clz32?Math.clz32:X1,Q1=Math.log,Y1=Math.LN2;function X1(r){return r>>>=0,r===0?32:31-(Q1(r)/Y1|0)|0}var Ra=64,ja=4194304;function Qi(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 Oa(r,i){var a=r.pendingLanes;if(a===0)return 0;var c=0,h=r.suspendedLanes,g=r.pingedLanes,w=a&268435455;if(w!==0){var T=w&~h;T!==0?c=Qi(T):(g&=w,g!==0&&(c=Qi(g)))}else w=a&~h,w!==0?c=Qi(w):g!==0&&(c=Qi(g));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,g=i&-i,h>=g||h===16&&(g&4194240)!==0))return i;if((c&4)!==0&&(c|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=c;0<i;)a=31-gn(i),h=1<<a,c|=r[a],i&=~h;return c}function J1(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 Z1(r,i){for(var a=r.suspendedLanes,c=r.pingedLanes,h=r.expirationTimes,g=r.pendingLanes;0<g;){var w=31-gn(g),T=1<<w,R=h[w];R===-1?((T&a)===0||(T&c)!==0)&&(h[w]=J1(T,i)):R<=i&&(r.expiredLanes|=T),g&=~T}}function Gu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Pp(){var r=Ra;return Ra<<=1,(Ra&4194240)===0&&(Ra=64),r}function Qu(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function Yi(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-gn(i),r[i]=a}function eS(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 c=r.eventTimes;for(r=r.expirationTimes;0<a;){var h=31-gn(a),g=1<<h;i[h]=0,c[h]=-1,r[h]=-1,a&=~g}}function Yu(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var c=31-gn(a),h=1<<c;h&i|r[c]&i&&(r[c]|=i),a&=~h}}var Ie=0;function Ap(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Rp,Xu,jp,Op,Dp,Ju=!1,Da=[],ar=null,lr=null,ur=null,Xi=new Map,Ji=new Map,cr=[],tS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mp(r,i){switch(r){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":Xi.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(i.pointerId)}}function Zi(r,i,a,c,h,g){return r===null||r.nativeEvent!==g?(r={blockedOn:i,domEventName:a,eventSystemFlags:c,nativeEvent:g,targetContainers:[h]},i!==null&&(i=po(i),i!==null&&Xu(i)),r):(r.eventSystemFlags|=c,i=r.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),r)}function nS(r,i,a,c,h){switch(i){case"focusin":return ar=Zi(ar,r,i,a,c,h),!0;case"dragenter":return lr=Zi(lr,r,i,a,c,h),!0;case"mouseover":return ur=Zi(ur,r,i,a,c,h),!0;case"pointerover":var g=h.pointerId;return Xi.set(g,Zi(Xi.get(g)||null,r,i,a,c,h)),!0;case"gotpointercapture":return g=h.pointerId,Ji.set(g,Zi(Ji.get(g)||null,r,i,a,c,h)),!0}return!1}function Lp(r){var i=Qr(r.target);if(i!==null){var a=Gr(i);if(a!==null){if(i=a.tag,i===13){if(i=bp(a),i!==null){r.blockedOn=i,Dp(r.priority,function(){jp(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 Ma(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=ec(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var c=new a.constructor(a.type,a);Uu=c,a.target.dispatchEvent(c),Uu=null}else return i=po(a),i!==null&&Xu(i),r.blockedOn=a,!1;i.shift()}return!0}function Ip(r,i,a){Ma(r)&&a.delete(i)}function rS(){Ju=!1,ar!==null&&Ma(ar)&&(ar=null),lr!==null&&Ma(lr)&&(lr=null),ur!==null&&Ma(ur)&&(ur=null),Xi.forEach(Ip),Ji.forEach(Ip)}function eo(r,i){r.blockedOn===i&&(r.blockedOn=null,Ju||(Ju=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,rS)))}function to(r){function i(h){return eo(h,r)}if(0<Da.length){eo(Da[0],r);for(var a=1;a<Da.length;a++){var c=Da[a];c.blockedOn===r&&(c.blockedOn=null)}}for(ar!==null&&eo(ar,r),lr!==null&&eo(lr,r),ur!==null&&eo(ur,r),Xi.forEach(i),Ji.forEach(i),a=0;a<cr.length;a++)c=cr[a],c.blockedOn===r&&(c.blockedOn=null);for(;0<cr.length&&(a=cr[0],a.blockedOn===null);)Lp(a),a.blockedOn===null&&cr.shift()}var Bs=P.ReactCurrentBatchConfig,La=!0;function sS(r,i,a,c){var h=Ie,g=Bs.transition;Bs.transition=null;try{Ie=1,Zu(r,i,a,c)}finally{Ie=h,Bs.transition=g}}function iS(r,i,a,c){var h=Ie,g=Bs.transition;Bs.transition=null;try{Ie=4,Zu(r,i,a,c)}finally{Ie=h,Bs.transition=g}}function Zu(r,i,a,c){if(La){var h=ec(r,i,a,c);if(h===null)yc(r,i,c,Ia,a),Mp(r,c);else if(nS(h,r,i,a,c))c.stopPropagation();else if(Mp(r,c),i&4&&-1<tS.indexOf(r)){for(;h!==null;){var g=po(h);if(g!==null&&Rp(g),g=ec(r,i,a,c),g===null&&yc(r,i,c,Ia,a),g===h)break;h=g}h!==null&&c.stopPropagation()}else yc(r,i,c,null,a)}}var Ia=null;function ec(r,i,a,c){if(Ia=null,r=zu(c),r=Qr(r),r!==null)if(i=Gr(r),i===null)r=null;else if(a=i.tag,a===13){if(r=bp(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 Ia=r,null}function Fp(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(q1()){case Ku:return 1;case Tp:return 4;case Pa:case K1:return 16;case Np:return 536870912;default:return 16}default:return 16}}var dr=null,tc=null,Fa=null;function Vp(){if(Fa)return Fa;var r,i=tc,a=i.length,c,h="value"in dr?dr.value:dr.textContent,g=h.length;for(r=0;r<a&&i[r]===h[r];r++);var w=a-r;for(c=1;c<=w&&i[a-c]===h[g-c];c++);return Fa=h.slice(r,1<c?1-c:void 0)}function Va(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 Ba(){return!0}function Bp(){return!1}function Wt(r){function i(a,c,h,g,w){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(a=r[T],this[T]=a?a(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ba:Bp,this.isPropagationStopped=Bp,this}return G(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=Ba)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ba)},persist:function(){},isPersistent:Ba}),i}var Us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nc=Wt(Us),no=G({},Us,{view:0,detail:0}),oS=Wt(no),rc,sc,ro,Ua=G({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,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!==ro&&(ro&&r.type==="mousemove"?(rc=r.screenX-ro.screenX,sc=r.screenY-ro.screenY):sc=rc=0,ro=r),rc)},movementY:function(r){return"movementY"in r?r.movementY:sc}}),Up=Wt(Ua),aS=G({},Ua,{dataTransfer:0}),lS=Wt(aS),uS=G({},no,{relatedTarget:0}),ic=Wt(uS),cS=G({},Us,{animationName:0,elapsedTime:0,pseudoElement:0}),dS=Wt(cS),fS=G({},Us,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),hS=Wt(fS),pS=G({},Us,{data:0}),zp=Wt(pS),mS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gS={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"},yS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vS(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=yS[r])?!!i[r]:!1}function oc(){return vS}var xS=G({},no,{key:function(r){if(r.key){var i=mS[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Va(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?gS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(r){return r.type==="keypress"?Va(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Va(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),wS=Wt(xS),bS=G({},Ua,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$p=Wt(bS),SS=G({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),ES=Wt(SS),CS=G({},Us,{propertyName:0,elapsedTime:0,pseudoElement:0}),_S=Wt(CS),kS=G({},Ua,{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}),TS=Wt(kS),NS=[9,13,27,32],ac=d&&"CompositionEvent"in window,so=null;d&&"documentMode"in document&&(so=document.documentMode);var PS=d&&"TextEvent"in window&&!so,Hp=d&&(!ac||so&&8<so&&11>=so),Wp=" ",qp=!1;function Kp(r,i){switch(r){case"keyup":return NS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var zs=!1;function AS(r,i){switch(r){case"compositionend":return Gp(i);case"keypress":return i.which!==32?null:(qp=!0,Wp);case"textInput":return r=i.data,r===Wp&&qp?null:r;default:return null}}function RS(r,i){if(zs)return r==="compositionend"||!ac&&Kp(r,i)?(r=Vp(),Fa=tc=dr=null,zs=!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 Hp&&i.locale!=="ko"?null:i.data;default:return null}}var jS={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 Qp(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!jS[r.type]:i==="textarea"}function Yp(r,i,a,c){gp(c),i=qa(i,"onChange"),0<i.length&&(a=new nc("onChange","change",null,a,c),r.push({event:a,listeners:i}))}var io=null,oo=null;function OS(r){pm(r,0)}function za(r){var i=Ks(r);if(ht(i))return r}function DS(r,i){if(r==="change")return i}var Xp=!1;if(d){var lc;if(d){var uc="oninput"in document;if(!uc){var Jp=document.createElement("div");Jp.setAttribute("oninput","return;"),uc=typeof Jp.oninput=="function"}lc=uc}else lc=!1;Xp=lc&&(!document.documentMode||9<document.documentMode)}function Zp(){io&&(io.detachEvent("onpropertychange",em),oo=io=null)}function em(r){if(r.propertyName==="value"&&za(oo)){var i=[];Yp(i,oo,r,zu(r)),wp(OS,i)}}function MS(r,i,a){r==="focusin"?(Zp(),io=i,oo=a,io.attachEvent("onpropertychange",em)):r==="focusout"&&Zp()}function LS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return za(oo)}function IS(r,i){if(r==="click")return za(i)}function FS(r,i){if(r==="input"||r==="change")return za(i)}function VS(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var yn=typeof Object.is=="function"?Object.is:VS;function ao(r,i){if(yn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),c=Object.keys(i);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!f.call(i,h)||!yn(r[h],i[h]))return!1}return!0}function tm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function nm(r,i){var a=tm(r);r=0;for(var c;a;){if(a.nodeType===3){if(c=r+a.textContent.length,r<=i&&c>=i)return{node:a,offset:i-r};r=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=tm(a)}}function rm(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?rm(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function sm(){for(var r=window,i=qr();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=qr(r.document)}return i}function cc(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 BS(r){var i=sm(),a=r.focusedElem,c=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&rm(a.ownerDocument.documentElement,a)){if(c!==null&&cc(a)){if(i=c.start,r=c.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 h=a.textContent.length,g=Math.min(c.start,h);c=c.end===void 0?g:Math.min(c.end,h),!r.extend&&g>c&&(h=c,c=g,g=h),h=nm(a,g);var w=nm(a,c);h&&w&&(r.rangeCount!==1||r.anchorNode!==h.node||r.anchorOffset!==h.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),r.removeAllRanges(),g>c?(r.addRange(i),r.extend(w.node,w.offset)):(i.setEnd(w.node,w.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 US=d&&"documentMode"in document&&11>=document.documentMode,$s=null,dc=null,lo=null,fc=!1;function im(r,i,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fc||$s==null||$s!==qr(c)||(c=$s,"selectionStart"in c&&cc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),lo&&ao(lo,c)||(lo=c,c=qa(dc,"onSelect"),0<c.length&&(i=new nc("onSelect","select",null,i,a),r.push({event:i,listeners:c}),i.target=$s)))}function $a(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var Hs={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionend:$a("Transition","TransitionEnd")},hc={},om={};d&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete Hs.animationend.animation,delete Hs.animationiteration.animation,delete Hs.animationstart.animation),"TransitionEvent"in window||delete Hs.transitionend.transition);function Ha(r){if(hc[r])return hc[r];if(!Hs[r])return r;var i=Hs[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in om)return hc[r]=i[a];return r}var am=Ha("animationend"),lm=Ha("animationiteration"),um=Ha("animationstart"),cm=Ha("transitionend"),dm=new Map,fm="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 fr(r,i){dm.set(r,i),l(i,[r])}for(var pc=0;pc<fm.length;pc++){var mc=fm[pc],zS=mc.toLowerCase(),$S=mc[0].toUpperCase()+mc.slice(1);fr(zS,"on"+$S)}fr(am,"onAnimationEnd"),fr(lm,"onAnimationIteration"),fr(um,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(cm,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uo="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(" "),HS=new Set("cancel close invalid load scroll toggle".split(" ").concat(uo));function hm(r,i,a){var c=r.type||"unknown-event";r.currentTarget=a,z1(c,i,void 0,r),r.currentTarget=null}function pm(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var c=r[a],h=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var w=c.length-1;0<=w;w--){var T=c[w],R=T.instance,V=T.currentTarget;if(T=T.listener,R!==g&&h.isPropagationStopped())break e;hm(h,T,V),g=R}else for(w=0;w<c.length;w++){if(T=c[w],R=T.instance,V=T.currentTarget,T=T.listener,R!==g&&h.isPropagationStopped())break e;hm(h,T,V),g=R}}}if(Na)throw r=qu,Na=!1,qu=null,r}function ze(r,i){var a=i[Ec];a===void 0&&(a=i[Ec]=new Set);var c=r+"__bubble";a.has(c)||(mm(i,r,2,!1),a.add(c))}function gc(r,i,a){var c=0;i&&(c|=4),mm(a,r,c,i)}var Wa="_reactListening"+Math.random().toString(36).slice(2);function co(r){if(!r[Wa]){r[Wa]=!0,s.forEach(function(a){a!=="selectionchange"&&(HS.has(a)||gc(a,!1,r),gc(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Wa]||(i[Wa]=!0,gc("selectionchange",!1,i))}}function mm(r,i,a,c){switch(Fp(i)){case 1:var h=sS;break;case 4:h=iS;break;default:h=Zu}a=h.bind(null,i,a,r),h=void 0,!Wu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?r.addEventListener(i,a,{capture:!0,passive:h}):r.addEventListener(i,a,!0):h!==void 0?r.addEventListener(i,a,{passive:h}):r.addEventListener(i,a,!1)}function yc(r,i,a,c,h){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var T=c.stateNode.containerInfo;if(T===h||T.nodeType===8&&T.parentNode===h)break;if(w===4)for(w=c.return;w!==null;){var R=w.tag;if((R===3||R===4)&&(R=w.stateNode.containerInfo,R===h||R.nodeType===8&&R.parentNode===h))return;w=w.return}for(;T!==null;){if(w=Qr(T),w===null)return;if(R=w.tag,R===5||R===6){c=g=w;continue e}T=T.parentNode}}c=c.return}wp(function(){var V=g,W=zu(a),q=[];e:{var H=dm.get(r);if(H!==void 0){var J=nc,re=r;switch(r){case"keypress":if(Va(a)===0)break e;case"keydown":case"keyup":J=wS;break;case"focusin":re="focus",J=ic;break;case"focusout":re="blur",J=ic;break;case"beforeblur":case"afterblur":J=ic;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":J=Up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=lS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=ES;break;case am:case lm:case um:J=dS;break;case cm:J=_S;break;case"scroll":J=oS;break;case"wheel":J=TS;break;case"copy":case"cut":case"paste":J=hS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=$p}var ue=(i&4)!==0,Je=!ue&&r==="scroll",L=ue?H!==null?H+"Capture":null:H;ue=[];for(var D=V,F;D!==null;){F=D;var K=F.stateNode;if(F.tag===5&&K!==null&&(F=K,L!==null&&(K=qi(D,L),K!=null&&ue.push(fo(D,K,F)))),Je)break;D=D.return}0<ue.length&&(H=new J(H,re,null,a,W),q.push({event:H,listeners:ue}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",H&&a!==Uu&&(re=a.relatedTarget||a.fromElement)&&(Qr(re)||re[Bn]))break e;if((J||H)&&(H=W.window===W?W:(H=W.ownerDocument)?H.defaultView||H.parentWindow:window,J?(re=a.relatedTarget||a.toElement,J=V,re=re?Qr(re):null,re!==null&&(Je=Gr(re),re!==Je||re.tag!==5&&re.tag!==6)&&(re=null)):(J=null,re=V),J!==re)){if(ue=Up,K="onMouseLeave",L="onMouseEnter",D="mouse",(r==="pointerout"||r==="pointerover")&&(ue=$p,K="onPointerLeave",L="onPointerEnter",D="pointer"),Je=J==null?H:Ks(J),F=re==null?H:Ks(re),H=new ue(K,D+"leave",J,a,W),H.target=Je,H.relatedTarget=F,K=null,Qr(W)===V&&(ue=new ue(L,D+"enter",re,a,W),ue.target=F,ue.relatedTarget=Je,K=ue),Je=K,J&&re)t:{for(ue=J,L=re,D=0,F=ue;F;F=Ws(F))D++;for(F=0,K=L;K;K=Ws(K))F++;for(;0<D-F;)ue=Ws(ue),D--;for(;0<F-D;)L=Ws(L),F--;for(;D--;){if(ue===L||L!==null&&ue===L.alternate)break t;ue=Ws(ue),L=Ws(L)}ue=null}else ue=null;J!==null&&gm(q,H,J,ue,!1),re!==null&&Je!==null&&gm(q,Je,re,ue,!0)}}e:{if(H=V?Ks(V):window,J=H.nodeName&&H.nodeName.toLowerCase(),J==="select"||J==="input"&&H.type==="file")var de=DS;else if(Qp(H))if(Xp)de=FS;else{de=LS;var ge=MS}else(J=H.nodeName)&&J.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(de=IS);if(de&&(de=de(r,V))){Yp(q,de,a,W);break e}ge&&ge(r,H,V),r==="focusout"&&(ge=H._wrapperState)&&ge.controlled&&H.type==="number"&&mn(H,"number",H.value)}switch(ge=V?Ks(V):window,r){case"focusin":(Qp(ge)||ge.contentEditable==="true")&&($s=ge,dc=V,lo=null);break;case"focusout":lo=dc=$s=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,im(q,a,W);break;case"selectionchange":if(US)break;case"keydown":case"keyup":im(q,a,W)}var ye;if(ac)e:{switch(r){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else zs?Kp(r,a)&&(we="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(we="onCompositionStart");we&&(Hp&&a.locale!=="ko"&&(zs||we!=="onCompositionStart"?we==="onCompositionEnd"&&zs&&(ye=Vp()):(dr=W,tc="value"in dr?dr.value:dr.textContent,zs=!0)),ge=qa(V,we),0<ge.length&&(we=new zp(we,r,null,a,W),q.push({event:we,listeners:ge}),ye?we.data=ye:(ye=Gp(a),ye!==null&&(we.data=ye)))),(ye=PS?AS(r,a):RS(r,a))&&(V=qa(V,"onBeforeInput"),0<V.length&&(W=new zp("onBeforeInput","beforeinput",null,a,W),q.push({event:W,listeners:V}),W.data=ye))}pm(q,i)})}function fo(r,i,a){return{instance:r,listener:i,currentTarget:a}}function qa(r,i){for(var a=i+"Capture",c=[];r!==null;){var h=r,g=h.stateNode;h.tag===5&&g!==null&&(h=g,g=qi(r,a),g!=null&&c.unshift(fo(r,g,h)),g=qi(r,i),g!=null&&c.push(fo(r,g,h))),r=r.return}return c}function Ws(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function gm(r,i,a,c,h){for(var g=i._reactName,w=[];a!==null&&a!==c;){var T=a,R=T.alternate,V=T.stateNode;if(R!==null&&R===c)break;T.tag===5&&V!==null&&(T=V,h?(R=qi(a,g),R!=null&&w.unshift(fo(a,R,T))):h||(R=qi(a,g),R!=null&&w.push(fo(a,R,T)))),a=a.return}w.length!==0&&r.push({event:i,listeners:w})}var WS=/\r\n?/g,qS=/\u0000|\uFFFD/g;function ym(r){return(typeof r=="string"?r:""+r).replace(WS,` 38`).replace(qS,"")}function Ka(r,i,a){if(i=ym(i),ym(r)!==i&&a)throw Error(n(425))}function Ga(){}var vc=null,xc=null;function wc(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 bc=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,GS=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(r){return vm.resolve(null).then(r).catch(QS)}:bc;function QS(r){setTimeout(function(){throw r})}function Sc(r,i){var a=i,c=0;do{var h=a.nextSibling;if(r.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(c===0){r.removeChild(h),to(i);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=h}while(a);to(i)}function hr(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 xm(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 qs=Math.random().toString(36).slice(2),Nn="__reactFiber$"+qs,ho="__reactProps$"+qs,Bn="__reactContainer$"+qs,Ec="__reactEvents$"+qs,YS="__reactListeners$"+qs,XS="__reactHandles$"+qs;function Qr(r){var i=r[Nn];if(i)return i;for(var a=r.parentNode;a;){if(i=a[Bn]||a[Nn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=xm(r);r!==null;){if(a=r[Nn])return a;r=xm(r)}return i}r=a,a=r.parentNode}return null}function po(r){return r=r[Nn]||r[Bn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ks(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Qa(r){return r[ho]||null}var Cc=[],Gs=-1;function pr(r){return{current:r}}function $e(r){0>Gs||(r.current=Cc[Gs],Cc[Gs]=null,Gs--)}function Ve(r,i){Gs++,Cc[Gs]=r.current,r.current=i}var mr={},bt=pr(mr),Mt=pr(!1),Yr=mr;function Qs(r,i){var a=r.type.contextTypes;if(!a)return mr;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},g;for(g in a)h[g]=i[g];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=h),h}function Lt(r){return r=r.childContextTypes,r!=null}function Ya(){$e(Mt),$e(bt)}function wm(r,i,a){if(bt.current!==mr)throw Error(n(168));
vendor: 4,258 bytes, line 38
38Ve(bt,i),Ve(Mt,a)}function bm(r,i,a){var c=r.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(n(108,fe(r)||"Unknown",h));return G({},a,c)}function Xa(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||mr,Yr=bt.current,Ve(bt,r),Ve(Mt,Mt.current),!0}function Sm(r,i,a){var c=r.stateNode;if(!c)throw Error(n(169));a?(r=bm(r,i,Yr),c.__reactInternalMemoizedMergedChildContext=r,$e(Mt),$e(bt),Ve(bt,r)):$e(Mt),Ve(Mt,a)}var Un=null,Ja=!1,_c=!1;function Em(r){Un===null?Un=[r]:Un.push(r)}function JS(r){Ja=!0,Em(r)}function gr(){if(!_c&&Un!==null){_c=!0;var r=0,i=Ie;try{var a=Un;for(Ie=1;r<a.length;r++){var c=a[r];do c=c(!0);while(c!==null)}Un=null,Ja=!1}catch(h){throw Un!==null&&(Un=Un.slice(r+1)),_p(Ku,gr),h}finally{Ie=i,_c=!1}}return null}var Ys=[],Xs=0,Za=null,el=0,Zt=[],en=0,Xr=null,zn=1,$n="";function Jr(r,i){Ys[Xs++]=el,Ys[Xs++]=Za,Za=r,el=i}function Cm(r,i,a){Zt[en++]=zn,Zt[en++]=$n,Zt[en++]=Xr,Xr=r;var c=zn;r=$n;var h=32-gn(c)-1;c&=~(1<<h),a+=1;var g=32-gn(i)+h;if(30<g){var w=h-h%5;g=(c&(1<<w)-1).toString(32),c>>=w,h-=w,zn=1<<32-gn(i)+h|a<<h|c,$n=g+r}else zn=1<<g|a<<h|c,$n=r}function kc(r){r.return!==null&&(Jr(r,1),Cm(r,1,0))}function Tc(r){for(;r===Za;)Za=Ys[--Xs],Ys[Xs]=null,el=Ys[--Xs],Ys[Xs]=null;for(;r===Xr;)Xr=Zt[--en],Zt[en]=null,$n=Zt[--en],Zt[en]=null,zn=Zt[--en],Zt[en]=null}var qt=null,Kt=null,He=!1,vn=null;function _m(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 km(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=hr(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=Xr!==null?{id:zn,overflow:$n}: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 Nc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Pc(r){if(He){var i=Kt;if(i){var a=i;if(!km(r,i)){if(Nc(r))throw Error(n(418));i=hr(a.nextSibling);var c=qt;i&&km(r,i)?_m(c,a):(r.flags=r.flags&-4097|2,He=!1,qt=r)}}else{if(Nc(r))throw Error(n(418));r.flags=r.flags&-4097|2,He=!1,qt=r}}}function Tm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;qt=r}function tl(r){if(r!==qt)return!1;if(!He)return Tm(r),He=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!wc(r.type,r.memoizedProps)),i&&(i=Kt)){if(Nc(r))throw Nm(),Error(n(418));for(;i;)_m(r,i),i=hr(i.nextSibling)}if(Tm(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=hr(r.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}r=r.nextSibling}Kt=null}}else Kt=qt?hr(r.stateNode.nextSibling):null;return!0}function Nm(){for(var r=Kt;r;)r=hr(r.nextSibling)}function Js(){Kt=qt=null,He=!1}function Ac(r){vn===null?vn=[r]:vn.push(r)}var ZS=P.ReactCurrentBatchConfig;function mo(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 c=a.stateNode}if(!c)throw Error(n(147,r));var h=c,g=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(w){var T=h.refs;w===null?delete T[g]:T[g]=w},i._stringRef=g,i)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function nl(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Pm(r){var i=r._init;return i(r._payload)}function Am(r){function i(L,D){if(r){var F=L.deletions;F===null?(L.deletions=[D],L.flags|=16):F.push(D)}}function a(L,D){if(!r)return null;for(;D!==null;)i(L,D),D=D.sibling;return null}function c(L,D){for(L=new Map;D!==null;)D.key!==null?L.set(D.key,D):L.set(D.index,D),D=D.sibling;return L}function h(L,D){return L=Cr(L,D),L.index=0,L.sibling=null,L}
vendor: 10,309 bytes, line 38
38function g(L,D,F){return L.index=F,r?(F=L.alternate,F!==null?(F=F.index,F<D?(L.flags|=2,D):F):(L.flags|=2,D)):(L.flags|=1048576,D)}function w(L){return r&&L.alternate===null&&(L.flags|=2),L}function T(L,D,F,K){return D===null||D.tag!==6?(D=bd(F,L.mode,K),D.return=L,D):(D=h(D,F),D.return=L,D)}function R(L,D,F,K){var de=F.type;return de===Q?W(L,D,F.props.children,K,F.key):D!==null&&(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===pe&&Pm(de)===D.type)?(K=h(D,F.props),K.ref=mo(L,D,F),K.return=L,K):(K=kl(F.type,F.key,F.props,null,L.mode,K),K.ref=mo(L,D,F),K.return=L,K)}function V(L,D,F,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==F.containerInfo||D.stateNode.implementation!==F.implementation?(D=Sd(F,L.mode,K),D.return=L,D):(D=h(D,F.children||[]),D.return=L,D)}function W(L,D,F,K,de){return D===null||D.tag!==7?(D=os(F,L.mode,K,de),D.return=L,D):(D=h(D,F),D.return=L,D)}function q(L,D,F){if(typeof D=="string"&&D!==""||typeof D=="number")return D=bd(""+D,L.mode,F),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case I:return F=kl(D.type,D.key,D.props,null,L.mode,F),F.ref=mo(L,null,D),F.return=L,F;case z:return D=Sd(D,L.mode,F),D.return=L,D;case pe:var K=D._init;return q(L,K(D._payload),F)}if(ir(D)||te(D))return D=os(D,L.mode,F,null),D.return=L,D;nl(L,D)}return null}function H(L,D,F,K){var de=D!==null?D.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return de!==null?null:T(L,D,""+F,K);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case I:return F.key===de?R(L,D,F,K):null;case z:return F.key===de?V(L,D,F,K):null;case pe:return de=F._init,H(L,D,de(F._payload),K)}if(ir(F)||te(F))return de!==null?null:W(L,D,F,K,null);nl(L,F)}return null}function J(L,D,F,K,de){if(typeof K=="string"&&K!==""||typeof K=="number")return L=L.get(F)||null,T(D,L,""+K,de);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case I:return L=L.get(K.key===null?F:K.key)||null,R(D,L,K,de);case z:return L=L.get(K.key===null?F:K.key)||null,V(D,L,K,de);case pe:var ge=K._init;return J(L,D,F,ge(K._payload),de)}if(ir(K)||te(K))return L=L.get(F)||null,W(D,L,K,de,null);nl(D,K)}return null}function re(L,D,F,K){for(var de=null,ge=null,ye=D,we=D=0,ct=null;ye!==null&&we<F.length;we++){ye.index>we?(ct=ye,ye=null):ct=ye.sibling;var De=H(L,ye,F[we],K);if(De===null){ye===null&&(ye=ct);break}r&&ye&&De.alternate===null&&i(L,ye),D=g(De,D,we),ge===null?de=De:ge.sibling=De,ge=De,ye=ct}if(we===F.length)return a(L,ye),He&&Jr(L,we),de;if(ye===null){for(;we<F.length;we++)ye=q(L,F[we],K),ye!==null&&(D=g(ye,D,we),ge===null?de=ye:ge.sibling=ye,ge=ye);return He&&Jr(L,we),de}for(ye=c(L,ye);we<F.length;we++)ct=J(ye,L,we,F[we],K),ct!==null&&(r&&ct.alternate!==null&&ye.delete(ct.key===null?we:ct.key),D=g(ct,D,we),ge===null?de=ct:ge.sibling=ct,ge=ct);return r&&ye.forEach(function(_r){return i(L,_r)}),He&&Jr(L,we),de}function ue(L,D,F,K){var de=te(F);if(typeof de!="function")throw Error(n(150));if(F=de.call(F),F==null)throw Error(n(151));for(var ge=de=null,ye=D,we=D=0,ct=null,De=F.next();ye!==null&&!De.done;we++,De=F.next()){ye.index>we?(ct=ye,ye=null):ct=ye.sibling;var _r=H(L,ye,De.value,K);if(_r===null){ye===null&&(ye=ct);break}r&&ye&&_r.alternate===null&&i(L,ye),D=g(_r,D,we),ge===null?de=_r:ge.sibling=_r,ge=_r,ye=ct}if(De.done)return a(L,ye),He&&Jr(L,we),de;if(ye===null){for(;!De.done;we++,De=F.next())De=q(L,De.value,K),De!==null&&(D=g(De,D,we),ge===null?de=De:ge.sibling=De,ge=De);return He&&Jr(L,we),de}for(ye=c(L,ye);!De.done;we++,De=F.next())De=J(ye,L,we,De.value,K),De!==null&&(r&&De.alternate!==null&&ye.delete(De.key===null?we:De.key),D=g(De,D,we),ge===null?de=De:ge.sibling=De,ge=De);return r&&ye.forEach(function(jE){return i(L,jE)}),He&&Jr(L,we),de}function Je(L,D,F,K){if(typeof F=="object"&&F!==null&&F.type===Q&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case I:e:{for(var de=F.key,ge=D;ge!==null;){if(ge.key===de){if(de=F.type,de===Q){if(ge.tag===7){a(L,ge.sibling),D=h(ge,F.props.children),D.return=L,L=D;break e}}else if(ge.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===pe&&Pm(de)===ge.type){a(L,ge.sibling),D=h(ge,F.props),D.ref=mo(L,ge,F),D.return=L,L=D;break e}a(L,ge);break}else i(L,ge);ge=ge.sibling}F.type===Q?(D=os(F.props.children,L.mode,K,F.key),D.return=L,L=D):(K=kl(F.type,F.key,F.props,null,L.mode,K),K.ref=mo(L,D,F),K.return=L,L=K)}return w(L);case z:e:{for(ge=F.key;D!==null;){if(D.key===ge)if(D.tag===4&&D.stateNode.containerInfo===F.containerInfo&&D.stateNode.implementation===F.implementation){a(L,D.sibling),D=h(D,F.children||[]),D.return=L,L=D;break e}else{a(L,D);break}else i(L,D);D=D.sibling}D=Sd(F,L.mode,K),D.return=L,L=D}return w(L);case pe:return ge=F._init,Je(L,D,ge(F._payload),K)}if(ir(F))return re(L,D,F,K);if(te(F))return ue(L,D,F,K);nl(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,D!==null&&D.tag===6?(a(L,D.sibling),D=h(D,F),D.return=L,L=D):(a(L,D),D=bd(F,L.mode,K),D.return=L,L=D),w(L)):a(L,D)}return Je}var Zs=Am(!0),Rm=Am(!1),rl=pr(null),sl=null,ei=null,Rc=null;function jc(){Rc=ei=sl=null}function Oc(r){var i=rl.current;$e(rl),r._currentValue=i}function Dc(r,i,a){for(;r!==null;){var c=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),r===a)break;r=r.return}}function ti(r,i){sl=r,Rc=ei=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(It=!0),r.firstContext=null)}function tn(r){var i=r._currentValue;if(Rc!==r)if(r={context:r,memoizedValue:i,next:null},ei===null){if(sl===null)throw Error(n(308));ei=r,sl.dependencies={lanes:0,firstContext:r}}else ei=ei.next=r;return i}var Zr=null;function Mc(r){Zr===null?Zr=[r]:Zr.push(r)}function jm(r,i,a,c){var h=i.interleaved;return h===null?(a.next=a,Mc(i)):(a.next=h.next,h.next=a),i.interleaved=a,Hn(r,c)}function Hn(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 yr=!1;function Lc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Om(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 Wn(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function vr(r,i,a){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(je&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,Hn(r,a)}return h=c.interleaved,h===null?(i.next=i,Mc(c)):(i.next=h.next,h.next=i),c.interleaved=i,Hn(r,a)}function il(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var c=i.lanes;c&=r.pendingLanes,a|=c,i.lanes=a,Yu(r,a)}}function Dm(r,i){var a=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var w={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?h=g=w:g=g.next=w,a=a.next}while(a!==null);g===null?h=g=i:g=g.next=i}else h=g=i;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:c.shared,effects:c.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function ol(r,i,a,c){var h=r.updateQueue;yr=!1;var g=h.firstBaseUpdate,w=h.lastBaseUpdate,T=h.shared.pending;if(T!==null){h.shared.pending=null;var R=T,V=R.next;R.next=null,w===null?g=V:w.next=V,w=R;var W=r.alternate;W!==null&&(W=W.updateQueue,T=W.lastBaseUpdate,T!==w&&(T===null?W.firstBaseUpdate=V:T.next=V,W.lastBaseUpdate=R))}if(g!==null){var q=h.baseState;w=0,W=V=R=null,T=g;do{var H=T.lane,J=T.eventTime;if((c&H)===H){W!==null&&(W=W.next={eventTime:J,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var re=r,ue=T;switch(H=i,J=a,ue.tag){case 1:if(re=ue.payload,typeof re=="function"){q=re.call(J,q,H);break e}q=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ue.payload,H=typeof re=="function"?re.call(J,q,H):re,H==null)break e;q=G({},q,H);break e;case 2:yr=!0}}T.callback!==null&&T.lane!==0&&(r.flags|=64,H=h.effects,H===null?h.effects=[T]:H.push(T))}else J={eventTime:J,lane:H,tag:T.tag,payload:T.payload,callback:T.callback,next:null},W===null?(V=W=J,R=q):W=W.next=J,w|=H;if(T=T.next,T===null){if(T=h.shared.pending,T===null)break;H=T,T=H.next,H.next=null,h.lastBaseUpdate=H,h.shared.pending=null}}while(!0);if(W===null&&(R=q),h.baseState=R,h.firstBaseUpdate=V,h.lastBaseUpdate=W,i=h.shared.interleaved,i!==null){h=i;do w|=h.lane,h=h.next;while(h!==i)}else g===null&&(h.shared.lanes=0);ns|=w,r.lanes=w,r.memoizedState=q}}function Mm(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var c=r[i],h=c.callback;if(h!==null){if(c.callback=null,c=a,typeof h!="function")throw Error(n(191,h));h.call(c)}}}var go={},Pn=pr(go),yo=pr(go),vo=pr(go);function es(r){if(r===go)throw Error(n(174));return r}function Ic(r,i){switch(Ve(vo,i),Ve(yo,r),Ve(Pn,go),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Fu(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Fu(i,r)}$e(Pn),Ve(Pn,i)}function ni(){$e(Pn),$e(yo),$e(vo)}function Lm(r){es(vo.current);var i=es(Pn.current),a=Fu(i,r.type);i!==a&&(Ve(yo,r),Ve(Pn,a))}function Fc(r){yo.current===r&&($e(Pn),$e(yo))}var We=pr(0);function al(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 Vc=[];function Bc(){for(var r=0;r<Vc.length;r++)Vc[r]._workInProgressVersionPrimary=null;Vc.length=0}var ll=P.ReactCurrentDispatcher,Uc=P.ReactCurrentBatchConfig,ts=0,qe=null,it=null,lt=null,ul=!1,xo=!1,wo=0,eE=0;function St(){throw Error(n(321))}function zc(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!yn(r[a],i[a]))return!1;return!0}
vendor: 4,678 bytes, line 38
38function $c(r,i,a,c,h,g){if(ts=g,qe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ll.current=r===null||r.memoizedState===null?sE:iE,r=a(c,h),xo){g=0;do{if(xo=!1,wo=0,25<=g)throw Error(n(301));g+=1,lt=it=null,i.updateQueue=null,ll.current=oE,r=a(c,h)}while(xo)}if(ll.current=fl,i=it!==null&&it.next!==null,ts=0,lt=it=qe=null,ul=!1,i)throw Error(n(300));return r}function Hc(){var r=wo!==0;return wo=0,r}function An(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?qe.memoizedState=lt=r:lt=lt.next=r,lt}function nn(){if(it===null){var r=qe.alternate;r=r!==null?r.memoizedState:null}else r=it.next;var i=lt===null?qe.memoizedState:lt.next;if(i!==null)lt=i,it=r;else{if(r===null)throw Error(n(310));it=r,r={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},lt===null?qe.memoizedState=lt=r:lt=lt.next=r}return lt}function bo(r,i){return typeof i=="function"?i(r):i}function Wc(r){var i=nn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=it,h=c.baseQueue,g=a.pending;if(g!==null){if(h!==null){var w=h.next;h.next=g.next,g.next=w}c.baseQueue=h=g,a.pending=null}if(h!==null){g=h.next,c=c.baseState;var T=w=null,R=null,V=g;do{var W=V.lane;if((ts&W)===W)R!==null&&(R=R.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),c=V.hasEagerState?V.eagerState:r(c,V.action);else{var q={lane:W,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};R===null?(T=R=q,w=c):R=R.next=q,qe.lanes|=W,ns|=W}V=V.next}while(V!==null&&V!==g);R===null?w=c:R.next=T,yn(c,i.memoizedState)||(It=!0),i.memoizedState=c,i.baseState=w,i.baseQueue=R,a.lastRenderedState=c}if(r=a.interleaved,r!==null){h=r;do g=h.lane,qe.lanes|=g,ns|=g,h=h.next;while(h!==r)}else h===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function qc(r){var i=nn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=a.dispatch,h=a.pending,g=i.memoizedState;if(h!==null){a.pending=null;var w=h=h.next;do g=r(g,w.action),w=w.next;while(w!==h);yn(g,i.memoizedState)||(It=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),a.lastRenderedState=g}return[g,c]}function Im(){}function Fm(r,i){var a=qe,c=nn(),h=i(),g=!yn(c.memoizedState,h);if(g&&(c.memoizedState=h,It=!0),c=c.queue,Kc(Um.bind(null,a,c,r),[r]),c.getSnapshot!==i||g||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,So(9,Bm.bind(null,a,c,h,i),void 0,null),ut===null)throw Error(n(349));(ts&30)!==0||Vm(a,i,h)}return h}function Vm(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 Bm(r,i,a,c){i.value=a,i.getSnapshot=c,zm(i)&&$m(r)}function Um(r,i,a){return a(function(){zm(i)&&$m(r)})}function zm(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!yn(r,a)}catch{return!0}}function $m(r){var i=Hn(r,1);i!==null&&Sn(i,r,1,-1)}function Hm(r){var i=An();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:r},i.queue=r,r=r.dispatch=rE.bind(null,qe,r),[i.memoizedState,r]}function So(r,i,a,c){return r={tag:r,create:i,destroy:a,deps:c,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:(c=a.next,a.next=r,r.next=c,i.lastEffect=r)),r}function Wm(){return nn().memoizedState}function cl(r,i,a,c){var h=An();qe.flags|=r,h.memoizedState=So(1|i,a,void 0,c===void 0?null:c)}function dl(r,i,a,c){var h=nn();c=c===void 0?null:c;var g=void 0;if(it!==null){var w=it.memoizedState;if(g=w.destroy,c!==null&&zc(c,w.deps)){h.memoizedState=So(i,a,g,c);return}}qe.flags|=r,h.memoizedState=So(1|i,a,g,c)}function qm(r,i){return cl(8390656,8,r,i)}function Kc(r,i){return dl(2048,8,r,i)}function Km(r,i){return dl(4,2,r,i)}function Gm(r,i){return dl(4,4,r,i)}function Qm(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 Ym(r,i,a){return a=a!=null?a.concat([r]):null,dl(4,4,Qm.bind(null,i,r),a)}function Gc(){}function Xm(r,i){var a=nn();i=i===void 0?null:i;var c=a.memoizedState;return c!==null&&i!==null&&zc(i,c[1])?c[0]:(a.memoizedState=[r,i],r)}function Jm(r,i){var a=nn();i=i===void 0?null:i;var c=a.memoizedState;return c!==null&&i!==null&&zc(i,c[1])?c[0]:(r=r(),a.memoizedState=[r,i],r)}function Zm(r,i,a){return(ts&21)===0?(r.baseState&&(r.baseState=!1,It=!0),r.memoizedState=a):(yn(a,i)||(a=Pp(),qe.lanes|=a,ns|
vendor: 5,007 bytes, line 38
38=a,r.baseState=!0),i)}function tE(r,i){var a=Ie;Ie=a!==0&&4>a?a:4,r(!0);var c=Uc.transition;Uc.transition={};try{r(!1),i()}finally{Ie=a,Uc.transition=c}}function eg(){return nn().memoizedState}function nE(r,i,a){var c=Sr(r);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},tg(r))ng(i,a);else if(a=jm(r,i,a,c),a!==null){var h=Rt();Sn(a,r,c,h),rg(a,i,c)}}function rE(r,i,a){var c=Sr(r),h={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(tg(r))ng(i,h);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var w=i.lastRenderedState,T=g(w,a);if(h.hasEagerState=!0,h.eagerState=T,yn(T,w)){var R=i.interleaved;R===null?(h.next=h,Mc(i)):(h.next=R.next,R.next=h),i.interleaved=h;return}}catch{}finally{}a=jm(r,i,h,c),a!==null&&(h=Rt(),Sn(a,r,c,h),rg(a,i,c))}}function tg(r){var i=r.alternate;return r===qe||i!==null&&i===qe}function ng(r,i){xo=ul=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function rg(r,i,a){if((a&4194240)!==0){var c=i.lanes;c&=r.pendingLanes,a|=c,i.lanes=a,Yu(r,a)}}var fl={readContext:tn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},sE={readContext:tn,useCallback:function(r,i){return An().memoizedState=[r,i===void 0?null:i],r},useContext:tn,useEffect:qm,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,cl(4194308,4,Qm.bind(null,i,r),a)},useLayoutEffect:function(r,i){return cl(4194308,4,r,i)},useInsertionEffect:function(r,i){return cl(4,2,r,i)},useMemo:function(r,i){var a=An();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var c=An();return i=a!==void 0?a(i):i,c.memoizedState=c.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},c.queue=r,r=r.dispatch=nE.bind(null,qe,r),[c.memoizedState,r]},useRef:function(r){var i=An();return r={current:r},i.memoizedState=r},useState:Hm,useDebugValue:Gc,useDeferredValue:function(r){return An().memoizedState=r},useTransition:function(){var r=Hm(!1),i=r[0];return r=tE.bind(null,r[1]),An().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var c=qe,h=An();if(He){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),ut===null)throw Error(n(349));(ts&30)!==0||Vm(c,i,a)}h.memoizedState=a;var g={value:a,getSnapshot:i};return h.queue=g,qm(Um.bind(null,c,g,r),[r]),c.flags|=2048,So(9,Bm.bind(null,c,g,a,i),void 0,null),a},useId:function(){var r=An(),i=ut.identifierPrefix;if(He){var a=$n,c=zn;a=(c&~(1<<32-gn(c)-1)).toString(32)+a,i=":"+i+"R"+a,a=wo++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=eE++,i=":"+i+"r"+a.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},iE={readContext:tn,useCallback:Xm,useContext:tn,useEffect:Kc,useImperativeHandle:Ym,useInsertionEffect:Km,useLayoutEffect:Gm,useMemo:Jm,useReducer:Wc,useRef:Wm,useState:function(){return Wc(bo)},useDebugValue:Gc,useDeferredValue:function(r){var i=nn();return Zm(i,it.memoizedState,r)},useTransition:function(){var r=Wc(bo)[0],i=nn().memoizedState;return[r,i]},useMutableSource:Im,useSyncExternalStore:Fm,useId:eg,unstable_isNewReconciler:!1},oE={readContext:tn,useCallback:Xm,useContext:tn,useEffect:Kc,useImperativeHandle:Ym,useInsertionEffect:Km,useLayoutEffect:Gm,useMemo:Jm,useReducer:qc,useRef:Wm,useState:function(){return qc(bo)},useDebugValue:Gc,useDeferredValue:function(r){var i=nn();return it===null?i.memoizedState=r:Zm(i,it.memoizedState,r)},useTransition:function(){var r=qc(bo)[0],i=nn().memoizedState;return[r,i]},useMutableSource:Im,useSyncExternalStore:Fm,useId:eg,unstable_isNewReconciler:!1};function xn(r,i){if(r&&r.defaultProps){i=G({},i),r=r.defaultProps;for(var a in r)i[a]===void 0&&(i[a]=r[a]);return i}return i}function Qc(r,i,a,c){i=r.memoizedState,a=a(c,i),a=a==null?i:G({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var hl={isMounted:function(r){return(r=r._reactInternals)?Gr(r)===r:!1},enqueueSetState:function(r,i,a){r=r._reactInternals;var c=Rt(),h=Sr(r),g=Wn(c,h);g.payload=i,a!=null&&(g.callback=a),i=vr(r,g,h),i!==null&&(Sn(i,r,h,c),il(i,r,h))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var c=Rt(),h=Sr(r),g=Wn(c,h);g.tag=1,g.payload=i,a!=null&&(g.callback=a),i=vr(r,g,h),i!==null&&(Sn(i,r,h,c),il(i,r,h))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=Rt(),c=Sr(r),h=Wn(a,c);h.tag=2,i!=null&&(h.callback=i),i=vr(r,h,c),i!==null&&(Sn(i,r,c,a),il(i,r,c))}};function sg(r,i,a,c,h,g,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,w):i.prototype&&i.prototype.isPureReactComponent?!ao(a,c)||!ao(h,g):!0}function ig(r,i,a){var c=!1,h=mr,g=i.contextType;return typeof g=="object"&&g!==null?g=tn(g):(h=Lt(i)?Yr:bt.current,c=i.
vendor: 4,533 bytes, lines 38-40
38contextTypes,g=(c=c!=null)?Qs(r,h):mr),i=new i(a,g),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=hl,r.stateNode=i,i._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=h,r.__reactInternalMemoizedMaskedChildContext=g),i}function og(r,i,a,c){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,c),i.state!==r&&hl.enqueueReplaceState(i,i.state,null)}function Yc(r,i,a,c){var h=r.stateNode;h.props=a,h.state=r.memoizedState,h.refs={},Lc(r);var g=i.contextType;typeof g=="object"&&g!==null?h.context=tn(g):(g=Lt(i)?Yr:bt.current,h.context=Qs(r,g)),h.state=r.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Qc(r,i,g,a),h.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&hl.enqueueReplaceState(h,h.state,null),ol(r,a,h,c),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308)}function ri(r,i){try{var a="",c=i;do a+=Ce(c),c=c.return;while(c);var h=a}catch(g){h=` 39Error generating stack: `+g.message+` 40`+g.stack}return{value:r,source:i,stack:h,digest:null}}function Xc(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function Jc(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var aE=typeof WeakMap=="function"?WeakMap:Map;function ag(r,i,a){a=Wn(-1,a),a.tag=3,a.payload={element:null};var c=i.value;return a.callback=function(){wl||(wl=!0,hd=c),Jc(r,i)},a}function lg(r,i,a){a=Wn(-1,a),a.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;a.payload=function(){return c(h)},a.callback=function(){Jc(r,i)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(a.callback=function(){Jc(r,i),typeof c!="function"&&(wr===null?wr=new Set([this]):wr.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),a}function ug(r,i,a){var c=r.pingCache;if(c===null){c=r.pingCache=new aE;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(a)||(h.add(a),r=bE.bind(null,r,i,a),i.then(r,r))}function cg(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 dg(r,i,a,c,h){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=Wn(-1,1),i.tag=2,vr(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=h,r)}var lE=P.ReactCurrentOwner,It=!1;function At(r,i,a,c){i.child=r===null?Rm(i,null,a,c):Zs(i,r.child,a,c)}function fg(r,i,a,c,h){a=a.render;var g=i.ref;return ti(i,h),c=$c(r,i,a,c,g,h),a=Hc(),r!==null&&!It?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~h,qn(r,i,h)):(He&&a&&kc(i),i.flags|=1,At(r,i,c,h),i.child)}function hg(r,i,a,c,h){if(r===null){var g=a.type;return typeof g=="function"&&!wd(g)&&g.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=g,pg(r,i,g,c,h)):(r=kl(a.type,null,c,i,i.mode,h),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,(r.lanes&h)===0){var w=g.memoizedProps;if(a=a.compare,a=a!==null?a:ao,a(w,c)&&r.ref===i.ref)return qn(r,i,h)}return i.flags|=1,r=Cr(g,c),r.ref=i.ref,r.return=i,i.child=r}function pg(r,i,a,c,h){if(r!==null){var g=r.memoizedProps;if(ao(g,c)&&r.ref===i.ref)if(It=!1,i.pendingProps=c=g,(r.lanes&h)!==0)(r.flags&131072)!==0&&(It=!0);else return i.lanes=r.lanes,qn(r,i,h)}return Zc(r,i,a,c,h)}function mg(r,i,a){var c=i.pendingProps,h=c.children,g=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(ii,Gt),Gt|=a;else{if((a&1073741824)===0)return r=g!==null?g.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,Ve(ii,Gt),Gt|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:a,Ve(ii,Gt),Gt|=c}else g!==null?(c=g.baseLanes|a,i.memoizedState=null):c=a,Ve(ii,Gt),Gt|=c;return At(r,i,h,a),i.child}function gg(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}
vendor: 13,698 bytes, line 40
40function Zc(r,i,a,c,h){var g=Lt(a)?Yr:bt.current;return g=Qs(i,g),ti(i,h),a=$c(r,i,a,c,g,h),c=Hc(),r!==null&&!It?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~h,qn(r,i,h)):(He&&c&&kc(i),i.flags|=1,At(r,i,a,h),i.child)}function yg(r,i,a,c,h){if(Lt(a)){var g=!0;Xa(i)}else g=!1;if(ti(i,h),i.stateNode===null)ml(r,i),ig(i,a,c),Yc(i,a,c,h),c=!0;else if(r===null){var w=i.stateNode,T=i.memoizedProps;w.props=T;var R=w.context,V=a.contextType;typeof V=="object"&&V!==null?V=tn(V):(V=Lt(a)?Yr:bt.current,V=Qs(i,V));var W=a.getDerivedStateFromProps,q=typeof W=="function"||typeof w.getSnapshotBeforeUpdate=="function";q||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(T!==c||R!==V)&&og(i,w,c,V),yr=!1;var H=i.memoizedState;w.state=H,ol(i,c,w,h),R=i.memoizedState,T!==c||H!==R||Mt.current||yr?(typeof W=="function"&&(Qc(i,a,W,c),R=i.memoizedState),(T=yr||sg(i,a,T,c,H,R,V))?(q||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=R),w.props=c,w.state=R,w.context=V,c=T):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{w=i.stateNode,Om(r,i),T=i.memoizedProps,V=i.type===i.elementType?T:xn(i.type,T),w.props=V,q=i.pendingProps,H=w.context,R=a.contextType,typeof R=="object"&&R!==null?R=tn(R):(R=Lt(a)?Yr:bt.current,R=Qs(i,R));var J=a.getDerivedStateFromProps;(W=typeof J=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(T!==q||H!==R)&&og(i,w,c,R),yr=!1,H=i.memoizedState,w.state=H,ol(i,c,w,h);var re=i.memoizedState;T!==q||H!==re||Mt.current||yr?(typeof J=="function"&&(Qc(i,a,J,c),re=i.memoizedState),(V=yr||sg(i,a,V,c,H,re,R)||!1)?(W||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,re,R),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,re,R)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||T===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=re),w.props=c,w.state=re,w.context=R,c=V):(typeof w.componentDidUpdate!="function"||T===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),c=!1)}return ed(r,i,a,c,g,h)}function ed(r,i,a,c,h,g){gg(r,i);var w=(i.flags&128)!==0;if(!c&&!w)return h&&Sm(i,a,!1),qn(r,i,g);c=i.stateNode,lE.current=i;var T=w&&typeof a.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,r!==null&&w?(i.child=Zs(i,r.child,null,g),i.child=Zs(i,null,T,g)):At(r,i,T,g),i.memoizedState=c.state,h&&Sm(i,a,!0),i.child}function vg(r){var i=r.stateNode;i.pendingContext?wm(r,i.pendingContext,i.pendingContext!==i.context):i.context&&wm(r,i.context,!1),Ic(r,i.containerInfo)}function xg(r,i,a,c,h){return Js(),Ac(h),i.flags|=256,At(r,i,a,c),i.child}var td={dehydrated:null,treeContext:null,retryLane:0};function nd(r){return{baseLanes:r,cachePool:null,transitions:null}}function wg(r,i,a){var c=i.pendingProps,h=We.current,g=!1,w=(i.flags&128)!==0,T;if((T=w)||(T=r!==null&&r.memoizedState===null?!1:(h&2)!==0),T?(g=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(h|=1),Ve(We,h&1),r===null)return Pc(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):(w=c.children,r=c.fallback,g?(c=i.mode,g=i.child,w={mode:"hidden",children:w},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=Tl(w,c,0,null),r=os(r,c,a,null),g.return=i,r.return=i,g.sibling=r,i.child=g,i.child.memoizedState=nd(a),i.memoizedState=td,r):rd(i,w));if(h=r.memoizedState,h!==null&&(T=h.dehydrated,T!==null))return uE(r,i,w,c,T,h,a);if(g){g=c.fallback,w=i.mode,h=r.child,T=h.sibling;var R={mode:"hidden",children:c.children};return(w&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=R,i.deletions=null):(c=Cr(h,R),c.subtreeFlags=h.subtreeFlags&14680064),T!==null?g=Cr(T,g):(g=os(g,w,a,null),g.flags|=2),g.return=i,c.return=i,c.sibling=g,i.child=c,c=g,g=i.child,w=r.child.memoizedState,w=w===null?nd(a):{baseLanes:w.baseLanes|a,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=r.childLanes&~a,i.memoizedState=td,c}return g=r.child,r=g.sibling,c=Cr(g,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=a),c.return=i,c.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=c,i.memoizedState=null,c}function rd(r,i){return i=Tl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function pl(r,i,a,c){return c!==null&&Ac(c),Zs(i,r.child,null,a),r=rd(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function uE(r,i,a,c,h,g,w){if(a)return i.flags&256?(i.flags&=-257,c=Xc(Error(n(422))),pl(r,i,w,c)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(g=c.fallback,h=i.mode,c=Tl({mode:"visible",children:c.children},h,0,null),g=os(g,h,w,null),g.flags|=2,c.return=i,g.return=i,c.sibling=g,i.child=c,(i.mode&1)!==0&&Zs(i,r.child,null,w),i.child.memoizedState=nd(w),i.memoizedState=td,g);if((i.mode&1)===0)return pl(r,i,w,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var T=c.dgst;return c=T,g=Error(n(419)),c=Xc(g,c,void 0),pl(r,i,w,c)}if(T=(w&r.childLanes)!==0,It||T){if(c=ut,c!==null){switch(w&-w){case 4:h=2;break;case 16:h=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|w))!==0?0:h,h!==0&&h!==g.retryLane&&(g.retryLane=h,Hn(r,h),Sn(c,r,h,-1))}return xd(),c=Xc(Error(n(421))),pl(r,i,w,c)}return h.data==="$?"?(i.flags|=128,i.child=r.child,i=SE.bind(null,r),h._reactRetry=i,null):(r=g.treeContext,Kt=hr(h.nextSibling),qt=i,He=!0,vn=null,r!==null&&(Zt[en++]=zn,Zt[en++]=$n,Zt[en++]=Xr,zn=r.id,$n=r.overflow,Xr=i),i=rd(i,c.children),i.flags|=4096,i)}function bg(r,i,a){r.lanes|=i;var c=r.alternate;c!==null&&(c.lanes|=i),Dc(r.return,i,a)}function sd(r,i,a,c,h){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=a,g.tailMode=h)}function Sg(r,i,a){var c=i.pendingProps,h=c.revealOrder,g=c.tail;if(At(r,i,c.children,a),c=We.current,(c&2)!==0)c=c&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&&bg(r,a,i);else if(r.tag===19)bg(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}c&=1}if(Ve(We,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(a=i.child,h=null;a!==null;)r=a.alternate,r!==null&&al(r)===null&&(h=a),a=a.sibling;a=h,a===null?(h=i.child,i.child=null):(h=a.sibling,a.sibling=null),sd(i,!1,h,a,g);break;case"backwards":for(a=null,h=i.child,i.child=null;h!==null;){if(r=h.alternate,r!==null&&al(r)===null){i.child=h;break}r=h.sibling,h.sibling=a,a=h,h=r}sd(i,!0,a,null,g);break;case"together":sd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ml(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function qn(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),ns|=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=Cr(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=Cr(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function cE(r,i,a){switch(i.tag){case 3:vg(i),Js();break;case 5:Lm(i);break;case 1:Lt(i.type)&&Xa(i);break;case 4:Ic(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;Ve(rl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(Ve(We,We.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?wg(r,i,a):(Ve(We,We.current&1),r=qn(r,i,a),r!==null?r.sibling:null);Ve(We,We.current&1);break;case 19:if(c=(a&i.childLanes)!==0,(r.flags&128)!==0){if(c)return Sg(r,i,a);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Ve(We,We.current),c)break;return null;case 22:case 23:return i.lanes=0,mg(r,i,a)}return qn(r,i,a)}var Eg,id,Cg,_g;Eg=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}},id=function(){},Cg=function(r,i,a,c){var h=r.memoizedProps;if(h!==c){r=i.stateNode,es(Pn.current);var g=null;switch(a){case"input":h=Kr(r,h),c=Kr(r,c),g=[];break;case"select":h=G({},h,{value:void 0}),c=G({},c,{value:void 0}),g=[];break;case"textarea":h=Vn(r,h),c=Vn(r,c),g=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Ga)}Vu(a,c);var w;a=null;for(V in h)if(!c.hasOwnProperty(V)&&h.hasOwnProperty(V)&&h[V]!=null)if(V==="style"){var T=h[V];for(w in T)T.hasOwnProperty(w)&&(a||(a={}),a[w]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(o.hasOwnProperty(V)?g||(g=[]):(g=g||[]).push(V,null));for(V in c){var R=c[V];if(T=h!=null?h[V]:void 0,c.hasOwnProperty(V)&&R!==T&&(R!=null||T!=null))if(V==="style")if(T){for(w in T)!T.hasOwnProperty(w)||R&&R.hasOwnProperty(w)||(a||(a={}),a[w]="");for(w in R)R.hasOwnProperty(w)&&T[w]!==R[w]&&(a||(a={}),a[w]=R[w])}else a||(g||(g=[]),g.push(V,a)),a=R;else V==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,T=T?T.__html:void 0,R!=null&&T!==R&&(g=g||[]).push(V,R)):V==="children"?typeof R!="string"&&typeof R!="number"||(g=g||[]).push(V,""+R):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(o.hasOwnProperty(V)?(R!=null&&V==="onScroll"&&ze("scroll",r),g||T===R||(g=[])):(g=g||[]).push(V,R))}a&&(g=g||[]).push("style",a);var V=g;(i.updateQueue=V)&&(i.flags|=4)}},_g=function(r,i,a,c){a!==c&&(i.flags|=4)};function Eo(r,i){if(!He)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 c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function Et(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,c=0;if(i)for(var h=r.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=c,r.childLanes=a,i}function dE(r,i,a){var c=i.pendingProps;switch(Tc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(i),null;case 1:return Lt(i.type)&&Ya(),Et(i),null;case 3:return c=i.stateNode,ni(),$e(Mt),$e(bt),Bc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(tl(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,vn!==null&&(gd(vn),vn=null))),id(r,i),Et(i),null;case 5:Fc(i);var h=es(vo.current);if(a=i.type,r!==null&&i.stateNode!=null)Cg(r,i,a,c,h),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(n(166));return Et(i),null}if(r=es(Pn.current),tl(i)){c=i.stateNode,a=i.type;var g=i.memoizedProps;switch(c[Nn]=i,c[ho]=g,r=(i.mode&1)!==0,a){case"dialog":ze("cancel",c),ze("close",c);break;case"iframe":case"object":case"embed":ze("load",c);break;case"video":case"audio":for(h=0;h<uo.length;h++)ze(uo[h],c);break;case"source":ze("error",c);break;case"img":case"image":case"link":ze("error",c),ze("load",c);break;case"details":ze("toggle",c);break;case"input":Jt(c,g),ze("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!g.multiple},ze("invalid",c);break;case"textarea":lp(c,g),ze("invalid",c)}Vu(a,g),h=null;for(var w in g)if(g.hasOwnProperty(w)){var T=g[w];w==="children"?typeof T=="string"?c.textContent!==T&&(g.suppressHydrationWarning!==!0&&Ka(c.textContent,T,r),h=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(g.suppressHydrationWarning!==!0&&Ka(c.textContent,T,r),h=["children",""+T]):o.hasOwnProperty(w)&&T!=null&&w==="onScroll"&&ze("scroll",c)}switch(a){case"input":hn(c),pn(c,g,!0);break;case"textarea":hn(c),cp(c);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(c.onclick=Ga)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{w=h.nodeType===9?h:h.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=dp(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>
40",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(a,{is:c.is}):(r=w.createElement(a),a==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,a),r[Nn]=i,r[ho]=c,Eg(r,i,!1,!1),i.stateNode=r;e:{switch(w=Bu(a,c),a){case"dialog":ze("cancel",r),ze("close",r),h=c;break;case"iframe":case"object":case"embed":ze("load",r),h=c;break;case"video":case"audio":for(h=0;h<uo.length;h++)ze(uo[h],r);h=c;break;case"source":ze("error",r),h=c;break;case"img":case"image":case"link":ze("error",r),ze("load",r),h=c;break;case"details":ze("toggle",r),h=c;break;case"input":Jt(r,c),h=Kr(r,c),ze("invalid",r);break;case"option":h=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},h=G({},c,{value:void 0}),ze("invalid",r);break;case"textarea":lp(r,c),h=Vn(r,c),ze("invalid",r);break;default:h=c}Vu(a,h),T=h;for(g in T)if(T.hasOwnProperty(g)){var R=T[g];g==="style"?pp(r,R):g==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&fp(r,R)):g==="children"?typeof R=="string"?(a!=="textarea"||R!=="")&&Hi(r,R):typeof R=="number"&&Hi(r,""+R):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?R!=null&&g==="onScroll"&&ze("scroll",r):R!=null&&N(r,g,R,w))}switch(a){case"input":hn(r),pn(r,c,!1);break;case"textarea":hn(r),cp(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Ne(c.value));break;case"select":r.multiple=!!c.multiple,g=c.value,g!=null?or(r,!!c.multiple,g,!1):c.defaultValue!=null&&or(r,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(r.onclick=Ga)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Et(i),null;case 6:if(r&&i.stateNode!=null)_g(r,i,r.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(n(166));if(a=es(vo.current),es(Pn.current),tl(i)){if(c=i.stateNode,a=i.memoizedProps,c[Nn]=i,(g=c.nodeValue!==a)&&(r=qt,r!==null))switch(r.tag){case 3:Ka(c.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Ka(c.nodeValue,a,(r.mode&1)!==0)}g&&(i.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[Nn]=i,i.stateNode=c}return Et(i),null;case 13:if($e(We),c=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(He&&Kt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Nm(),Js(),i.flags|=98560,g=!1;else if(g=tl(i),c!==null&&c.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Nn]=i}else Js(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Et(i),g=!1}else vn!==null&&(gd(vn),vn=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(We.current&1)!==0?ot===0&&(ot=3):xd())),i.updateQueue!==null&&(i.flags|=4),Et(i),null);case 4:return ni(),id(r,i),r===null&&co(i.stateNode.containerInfo),Et(i),null;case 10:return Oc(i.type._context),Et(i),null;case 17:return Lt(i.type)&&Ya(),Et(i),null;case 19:if($e(We),g=i.memoizedState,g===null)return Et(i),null;if(c=(i.flags&128)!==0,w=g.rendering,w===null)if(c)Eo(g,!1);else{if(ot!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(w=al(r),w!==null){for(i.flags|=128,Eo(g,!1),c=w.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=a,a=i.child;a!==null;)g=a,r=c,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,r=w.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Ve(We,We.current&1|2),i.child}r=r.sibling}g.tail!==null&&Xe()>oi&&(i.flags|=128,c=!0,Eo(g,!1),i.lanes=4194304)}else{if(!c)if(r=al(w),r!==null){if(i.flags|=128,c=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Eo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!He)return Et(i),null}else 2*Xe()-g.renderingStartTime>oi&&a!==1073741824&&(i.flags|=128,c=!0,Eo(g,!1),i.lanes=4194304);g.isBackwards?(w.sibling=i.child,i.child=w):(a=g.last,a!==null?a.sibling=w:i.child=w,g.last=w)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=Xe(),i.sibling=null,a=We.current,Ve(We,c?a&1|2:a&1),i):(Et(i),null);case 22:case 23:return vd(),c=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(Gt&1073741824)!==0&&(Et(i),i.subtreeFlags&6&&(i.flags|=8192)):Et(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function fE(r,i){switch(Tc(i),i.tag){case 1:return Lt(i.type)&&Ya(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return ni(),$e(Mt),$e(bt),Bc(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return Fc(i),null;case 13:if($e(We),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Js()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return $e(We),null;case 4:return ni(),null;case 10:return Oc(i.type._context),null;case 22:case 23:return vd(),null;case 24:return null;default:return null}}var gl=!1,Ct=!1,hE=typeof WeakSet=="function"?WeakSet:Set,ee=null;function si(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){Ge(r,i,c)}else a.current=null}
vendor: 18,727 bytes, line 40
40function od(r,i,a){try{a()}catch(c){Ge(r,i,c)}}var kg=!1;function pE(r,i){if(vc=La,r=sm(),cc(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var w=0,T=-1,R=-1,V=0,W=0,q=r,H=null;t:for(;;){for(var J;q!==a||h!==0&&q.nodeType!==3||(T=w+h),q!==g||c!==0&&q.nodeType!==3||(R=w+c),q.nodeType===3&&(w+=q.nodeValue.length),(J=q.firstChild)!==null;)H=q,q=J;for(;;){if(q===r)break t;if(H===a&&++V===h&&(T=w),H===g&&++W===c&&(R=w),(J=q.nextSibling)!==null)break;q=H,H=q.parentNode}q=J}a=T===-1||R===-1?null:{start:T,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(xc={focusedElem:r,selectionRange:a},La=!1,ee=i;ee!==null;)if(i=ee,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ee=r;else for(;ee!==null;){i=ee;try{var re=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var ue=re.memoizedProps,Je=re.memoizedState,L=i.stateNode,D=L.getSnapshotBeforeUpdate(i.elementType===i.type?ue:xn(i.type,ue),Je);L.__reactInternalSnapshotBeforeUpdate=D}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(K){Ge(i,i.return,K)}if(r=i.sibling,r!==null){r.return=i.return,ee=r;break}ee=i.return}return re=kg,kg=!1,re}function Co(r,i,a){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&r)===r){var g=h.destroy;h.destroy=void 0,g!==void 0&&od(i,a,g)}h=h.next}while(h!==c)}}function yl(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 c=a.create;a.destroy=c()}a=a.next}while(a!==i)}}function ad(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 Tg(r){var i=r.alternate;i!==null&&(r.alternate=null,Tg(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Nn],delete i[ho],delete i[Ec],delete i[YS],delete i[XS])),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 Ng(r){return r.tag===5||r.tag===3||r.tag===4}function Pg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ng(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 ld(r,i,a){var c=r.tag;if(c===5||c===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=Ga));else if(c!==4&&(r=r.child,r!==null))for(ld(r,i,a),r=r.sibling;r!==null;)ld(r,i,a),r=r.sibling}function ud(r,i,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(ud(r,i,a),r=r.sibling;r!==null;)ud(r,i,a),r=r.sibling}var mt=null,wn=!1;function xr(r,i,a){for(a=a.child;a!==null;)Ag(r,i,a),a=a.sibling}function Ag(r,i,a){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(Aa,a)}catch{}switch(a.tag){case 5:Ct||si(a,i);case 6:var c=mt,h=wn;mt=null,xr(r,i,a),mt=c,wn=h,mt!==null&&(wn?(r=mt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):mt.removeChild(a.stateNode));break;case 18:mt!==null&&(wn?(r=mt,a=a.stateNode,r.nodeType===8?Sc(r.parentNode,a):r.nodeType===1&&Sc(r,a),to(r)):Sc(mt,a.stateNode));break;case 4:c=mt,h=wn,mt=a.stateNode.containerInfo,wn=!0,xr(r,i,a),mt=c,wn=h;break;case 0:case 11:case 14:case 15:if(!Ct&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var g=h,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&od(a,i,w),h=h.next}while(h!==c)}xr(r,i,a);break;case 1:if(!Ct&&(si(a,i),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(T){Ge(a,i,T)}xr(r,i,a);break;case 21:xr(r,i,a);break;case 22:a.mode&1?(Ct=(c=Ct)||a.memoizedState!==null,xr(r,i,a),Ct=c):xr(r,i,a);break;default:xr(r,i,a)}}function Rg(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new hE),i.forEach(function(c){var h=EE.bind(null,r,c);a.has(c)||(a.add(c),c.then(h,h))})}}function bn(r,i){var a=i.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];try{var g=r,w=i,T=w;e:for(;T!==null;){switch(T.tag){case 5:mt=T.stateNode,wn=!1;break e;case 3:mt=T.stateNode.containerInfo,wn=!0;break e;case 4:mt=T.stateNode.containerInfo,wn=!0;break e}T=T.return}if(mt===null)throw Error(n(160));Ag(g,w,h),mt=null,wn=!1;var R=h.alternate;R!==null&&(R.return=null),h.return=null}catch(V){Ge(h,i,V)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)jg(i,r),i=i.sibling}function jg(r,i){var a=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(bn(i,r),Rn(r),c&4){try{Co(3,r,r.return),yl(3,r)}catch(ue){Ge(r,r.return,ue)}try{Co(5,r,r.return)}catch(ue){Ge(r,r.return,ue)}}break;case 1:bn(i,r),Rn(r),c&512&&a!==null&&si(a,a.return);break;case 5:if(bn(i,r),Rn(r),c&512&&a!==null&&si(a,a.return),r.flags&32){var h=r.stateNode;try{Hi(h,"")}catch(ue){Ge(r,r.return,ue)}}if(c&4&&(h=r.stateNode,h!=null)){var g=r.memoizedProps,w=a!==null?a.memoizedProps:g,T=r.type,R=r.updateQueue;if(r.updateQueue=null,R!==null)try{T==="input"&&g.type==="radio"&&g.name!=null&&be(h,g),Bu(T,w);var V=Bu(T,g);for(w=0;w<R.length;w+=2){var W=R[w],q=R[w+1];W==="style"?pp(h,q):W==="dangerouslySetInnerHTML"?fp(h,q):W==="children"?Hi(h,q):N(h,W,q,V)}switch(T){case"input":pt(h,g);break;case"textarea":up(h,g);break;case"select":var H=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!g.multiple;var J=g.value;J!=null?or(h,!!g.multiple,J,!1):H!==!!g.multiple&&(g.defaultValue!=null?or(h,!!g.multiple,g.defaultValue,!0):or(h,!!g.multiple,g.multiple?[]:"",!1))}h[ho]=g}catch(ue){Ge(r,r.return,ue)}}break;case 6:if(bn(i,r),Rn(r),c&4){if(r.stateNode===null)throw Error(n(162));h=r.stateNode,g=r.memoizedProps;try{h.nodeValue=g}catch(ue){Ge(r,r.return,ue)}}break;case 3:if(bn(i,r),Rn(r),c&4&&a!==null&&a.memoizedState.isDehydrated)try{to(i.containerInfo)}catch(ue){Ge(r,r.return,ue)}break;case 4:bn(i,r),Rn(r);break;case 13:bn(i,r),Rn(r),h=r.child,h.flags&8192&&(g=h.memoizedState!==null,h.stateNode.isHidden=g,!g||h.alternate!==null&&h.alternate.memoizedState!==null||(fd=Xe())),c&4&&Rg(r);break;case 22:if(W=a!==null&&a.memoizedState!==null,r.mode&1?(Ct=(V=Ct)||W,bn(i,r),Ct=V):bn(i,r),Rn(r),c&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!W&&(r.mode&1)!==0)for(ee=r,W=r.child;W!==null;){for(q=ee=W;ee!==null;){switch(H=ee,J=H.child,H.tag){case 0:case 11:case 14:case 15:Co(4,H,H.return);break;case 1:si(H,H.return);var re=H.stateNode;if(typeof re.componentWillUnmount=="function"){c=H,a=H.return;try{i=c,re.props=i.memoizedProps,re.state=i.memoizedState,re.componentWillUnmount()}catch(ue){Ge(c,a,ue)}}break;case 5:si(H,H.return);break;case 22:if(H.memoizedState!==null){Mg(q);continue}}J!==null?(J.return=H,ee=J):Mg(q)}W=W.sibling}e:for(W=null,q=r;;){if(q.tag===5){if(W===null){W=q;try{h=q.stateNode,V?(g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(T=q.stateNode,R=q.memoizedProps.style,w=R!=null&&R.hasOwnProperty("display")?R.display:null,T.style.display=hp("display",w))}catch(ue){Ge(r,r.return,ue)}}}else if(q.tag===6){if(W===null)try{q.stateNode.nodeValue=V?"":q.memoizedProps}catch(ue){Ge(r,r.return,ue)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===r)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===r)break e;for(;q.sibling===null;){if(q.return===null||q.return===r)break e;W===q&&(W=null),q=q.return}W===q&&(W=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:bn(i,r),Rn(r),c&4&&Rg(r);break;case 21:break;default:bn(i,r),Rn(r)}}function Rn(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(Ng(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Hi(h,""),c.flags&=-33);var g=Pg(r);ud(r,g,h);break;case 3:case 4:var w=c.stateNode.containerInfo,T=Pg(r);ld(r,T,w);break;default:throw Error(n(161))}}catch(R){Ge(r,r.return,R)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function mE(r,i,a){ee=r,Og(r)}function Og(r,i,a){for(var c=(r.mode&1)!==0;ee!==null;){var h=ee,g=h.child;if(h.tag===22&&c){var w=h.memoizedState!==null||gl;if(!w){var T=h.alternate,R=T!==null&&T.memoizedState!==null||Ct;T=gl;var V=Ct;if(gl=w,(Ct=R)&&!V)for(ee=h;ee!==null;)w=ee,R=w.child,w.tag===22&&w.memoizedState!==null?Lg(h):R!==null?(R.return=w,ee=R):Lg(h);for(;g!==null;)ee=g,Og(g),g=g.sibling;ee=h,gl=T,Ct=V}Dg(r)}else(h.subtreeFlags&8772)!==0&&g!==null?(g.return=h,ee=g):Dg(r)}}function Dg(r){for(;ee!==null;){var i=ee;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Ct||yl(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Ct)if(a===null)c.componentDidMount();else{var h=i.elementType===i.type?a.memoizedProps:xn(i.type,a.memoizedProps);c.componentDidUpdate(h,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Mm(i,g,c);break;case 3:var w=i.updateQueue;if(w!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Mm(i,w,a)}break;case 5:var T=i.stateNode;if(a===null&&i.flags&4){a=T;var R=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&a.focus();break;case"img":R.src&&(a.src=R.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 W=V.memoizedState;if(W!==null){var q=W.dehydrated;q!==null&&to(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ct||i.flags&512&&ad(i)}catch(H){Ge(i,i.return,H)}}if(i===r){ee=null;break}if(a=i.sibling,a!==null){a.return=i.return,ee=a;break}ee=i.return}}function Mg(r){for(;ee!==null;){var i=ee;if(i===r){ee=null;break}var a=i.sibling;if(a!==null){a.return=i.return,ee=a;break}ee=i.return}}function Lg(r){for(;ee!==null;){var i=ee;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{yl(4,i)}catch(R){Ge(i,a,R)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch(R){Ge(i,h,R)}}var g=i.return;try{ad(i)}catch(R){Ge(i,g,R)}break;case 5:var w=i.return;try{ad(i)}catch(R){Ge(i,w,R)}}}catch(R){Ge(i,i.return,R)}if(i===r){ee=null;break}var T=i.sibling;if(T!==null){T.return=i.return,ee=T;break}ee=i.return}}var gE=Math.ceil,vl=P.ReactCurrentDispatcher,cd=P.ReactCurrentOwner,rn=P.ReactCurrentBatchConfig,je=0,ut=null,nt=null,gt=0,Gt=0,ii=pr(0),ot=0,_o=null,ns=0,xl=0,dd=0,ko=null,Ft=null,fd=0,oi=1/0,Kn=null,wl=!1,hd=null,wr=null,bl=!1,br=null,Sl=0,To=0,pd=null,El=-1,Cl=0;function Rt(){return(je&6)!==0?Xe():El!==-1?El:El=Xe()}function Sr(r){return(r.mode&1)===0?1:(je&2)!==0&>!==0?gt&-gt:ZS.transition!==null?(Cl===0&&(Cl=Pp()),Cl):(r=Ie,r!==0||(r=window.event,r=r===void 0?16:Fp(r.type)),r)}function Sn(r,i,a,c){if(50<To)throw To=0,pd=null,Error(n(185));Yi(r,a,c),((je&2)===0||r!==ut)&&(r===ut&&((je&2)===0&&(xl|=a),ot===4&&Er(r,gt)),Vt(r,c),a===1&&je===0&&(i.mode&1)===0&&(oi=Xe()+500,Ja&&gr()))}function Vt(r,i){var a=r.callbackNode;Z1(r,i);var c=Oa(r,r===ut?gt:0);if(c===0)a!==null&&kp(a),r.callbackNode=null,r.callbackPriority=0;else if(i=c&-c,r.callbackPriority!==i){if(a!=null&&kp(a),i===1)r.tag===0?JS(Fg.bind(null,r)):Em(Fg.bind(null,r)),GS(function(){(je&6)===0&&gr()}),a=null;else{switch(Ap(c)){case 1:a=Ku;break;case 4:a=Tp;break;case 16:a=Pa;break;case 536870912:a=Np;break;default:a=Pa}a=qg(a,Ig.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function Ig(r,i){if(El=-1,Cl=0,(je&6)!==0)throw Error(n(327));var a=r.callbackNode;if(ai()&&r.callbackNode!==a)return null;var c=Oa(r,r===ut?gt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||i)i=_l(r,c);else{i=c;var h=je;je|=2;var g=Bg();(ut!==r||gt!==i)&&(Kn=null,oi=Xe()+500,ss(r,i));do try{xE();break}catch(T){Vg(r,T)}while(!0);jc(),vl.current=g,je=h,nt!==null?i=0:(ut=null,gt=0,i=ot)}if(i!==0){if(i===2&&(h=Gu(r),h!==0&&(c=h,i=md(r,h))),i===1)throw a=_o,ss(r,0),Er(r,c),Vt(r,Xe()),a;if(i===6)Er(r,c);else{if(h=r.current.alternate,(c&30)===0&&!yE(h)&&(i=_l(r,c),i===2&&(g=Gu(r),g!==0&&(c=g,i=md(r,g))),i===1))throw a=_o,ss(r,0),Er(r,c),Vt(r,Xe()),a;switch(r.finishedWork=h,r.finishedLanes=c,i){case 0:case 1:throw Error(n(345));case 2:is(r,Ft,Kn);break;case 3:if(Er(r,c),(c&130023424)===c&&(i=fd+500-Xe(),10<i)){if(Oa(r,0)!==0)break;if(h=r.suspendedLanes,(h&c)!==c){Rt(),r.pingedLanes|=r.suspendedLanes&h;break}r.timeoutHandle=bc(is.bind(null,r,Ft,Kn),i);break}is(r,Ft,Kn);break;case 4:if(Er(r,c),(c&4194240)===c)break;for(i=r.eventTimes,h=-1;0<c;){var w=31-gn(c);g=1<<w,w=i[w],w>h&&(h=w),c&=~g}if(c=h,c=Xe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*gE(c/1960))-c,10<c){r.timeoutHandle=bc(is.bind(null,r,Ft,Kn),c);break}is(r,Ft,Kn);break;case 5:is(r,Ft,Kn);break;default:throw Error(n(329))}}}return Vt(r,Xe()),r.callbackNode===a?Ig.bind(null,r):null}function md(r,i){var a=ko;return r.current.memoizedState.isDehydrated&&(ss(r,i).flags|=256),r=_l(r,i),r!==2&&(i=Ft,Ft=a,i!==null&&gd(i)),r}function gd(r){Ft===null?Ft=r:Ft.push.apply(Ft,r)}function yE(r){for(var i=r;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var h=a[c],g=h.getSnapshot;h=h.value;try{if(!yn(g(),h))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 Er(r,i){for(i&=~dd,i&=~xl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-gn(i),c=1<<a;r[a]=-1,i&=~c}}function Fg(r){if((je&6)!==0)throw Error(n(327));ai();var i=Oa(r,0);if((i&1)===0)return Vt(r,Xe()),null;var a=_l(r,i);if(r.tag!==0&&a===2){var c=Gu(r);c!==0&&(i=c,a=md(r,c))}if(a===1)throw a=_o,ss(r,0),Er(r,i),Vt(r,Xe()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,is(r,Ft,Kn),Vt(r,Xe()),null}function yd(r,i){var a=je;je|=1;try{return r(i)}finally{je=a,je===0&&(oi=Xe()+500,Ja&&gr())}}function rs(r){br!==null&&br.tag===0&&(je&6)===0&&ai();var i=je;je|=1;var a=rn.transition,c=Ie;try{if(rn.transition=null,Ie=1,r)return r()}finally{Ie=c,rn.transition=a,je=i,(je&6)===0&&gr()}}function vd(){Gt=ii.current,$e(ii)}function ss(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,KS(a)),nt!==null)for(a=nt.return;a!==null;){var c=a;switch(Tc(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ya();break;case 3:ni(),$e(Mt),$e(bt),Bc();break;case 5:Fc(c);break;case 4:ni();break;case 13:$e(We);break;case 19:$e(We);break;case 10:Oc(c.type._context);break;case 22:case 23:vd()}a=a.return}if(ut=r,nt=r=Cr(r.current,null),gt=Gt=i,ot=0,_o=null,dd=xl=ns=0,Ft=ko=null,Zr!==null){for(i=0;i<Zr.length;i++)if(a=Zr[i],c=a.interleaved,c!==null){a.interleaved=null;var h=c.next,g=a.pending;if(g!==null){var w=g.next;g.next=h,c.next=w}a.pending=c}Zr=null}return r}function Vg(r,i){do{var a=nt;try{if(jc(),ll.current=fl,ul){for(var c=qe.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}ul=!1}if(ts=0,lt=it=qe=null,xo=!1,wo=0,cd.current=null,a===null||a.return===null){ot=1,_o=i,nt=null;break}e:{var g=r,w=a.return,T=a,R=i;if(i=gt,T.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var V=R,W=T,q=W.tag;if((W.mode&1)===0&&(q===0||q===11||q===15)){var H=W.alternate;H?(W.updateQueue=H.updateQueue,W.memoizedState=H.memoizedState,W.lanes=H.lanes):(W.updateQueue=null,W.memoizedState=null)}var J=cg(w);if(J!==null){J.flags&=-257,dg(J,w,T,g,i),J.mode&1&&ug(g,V,i),i=J,R=V;var re=i.updateQueue;if(re===null){var ue=new Set;ue.add(R),i.updateQueue=ue}else re.add(R);break e}else{if((i&1)===0){ug(g,V,i),xd();break e}R=Error(n(426))}}else if(He&&T.mode&1){var Je=cg(w);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),dg(Je,w,T,g,i),Ac(ri(R,T));break e}}g=R=ri(R,T),ot!==4&&(ot=2),ko===null?ko=[g]:ko.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var L=ag(g,R,i);Dm(g,L);break e;case 1:T=R;var D=g.type,F=g.stateNode;if((g.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(wr===null||!wr.has(F)))){g.flags|=65536,i&=-i,g.lanes|=i;var K=lg(g,T,i);Dm(g,K);break e}}g=g.return}while(g!==null)}zg(a)}catch(de){i=de,nt===a&&a!==null&&(nt=a=a.return);continue}break}while(!0)}function Bg(){var r=vl.current;return vl.current=fl,r===null?fl:r}function xd(){(ot===0||ot===3||ot===2)&&(ot=4),ut===null||(ns&268435455)===0&&(xl&268435455)===0||Er(ut,gt)}function _l(r,i){var a=je;je|=2;var c=Bg();(ut!==r||gt!==i)&&(Kn=null,ss(r,i));do try{vE();break}catch(h){Vg(r,h)}while(!0);if(jc(),je=a,vl.current=c,nt!==null)throw Error(n(261));return ut=null,gt=0,ot}function vE(){for(;nt!==null;)Ug(nt)}function xE(){for(;nt!==null&&!H1();)Ug(nt)}function Ug(r){var i=Wg(r.alternate,r,Gt);r.memoizedProps=r.pendingProps,i===null?zg(r):nt=i,cd.current=null}function zg(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=dE(a,i,Gt),a!==null){nt=a;return}}else{if(a=fE(a,i),a!==null){a.flags&=32767,nt=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{ot=6,nt=null;return}}if(i=i.sibling,i!==null){nt=i;return}nt=i=r}while(i!==null);ot===0&&(ot=5)}function is(r,i,a){var c=Ie,h=rn.transition;try{rn.transition=null,Ie=1,wE(r,i,a,c)}finally{rn.transition=h,Ie=c}return null}function wE(r,i,a,c){do ai();while(br!==null);if((je&6)!==0)throw Error(n(327));a=r.finishedWork;var h=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 g=a.lanes|a.childLanes;if(eS(r,g),r===ut&&(nt=ut=null,gt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||bl||(bl=!0,qg(Pa,function(){return ai(),null})),g=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||g){g=rn.transition,rn.transition=null;var w=Ie;Ie=1;var T=je;je|=4,cd.current=null,pE(r,a),jg(a,r),BS(xc),La=!!vc,xc=vc=null,r.current=a,mE(a),W1(),je=T,Ie
vendor: 6,921 bytes, line 40
40=w,rn.transition=g}else r.current=a;if(bl&&(bl=!1,br=r,Sl=h),g=r.pendingLanes,g===0&&(wr=null),G1(a.stateNode),Vt(r,Xe()),i!==null)for(c=r.onRecoverableError,a=0;a<i.length;a++)h=i[a],c(h.value,{componentStack:h.stack,digest:h.digest});if(wl)throw wl=!1,r=hd,hd=null,r;return(Sl&1)!==0&&r.tag!==0&&ai(),g=r.pendingLanes,(g&1)!==0?r===pd?To++:(To=0,pd=r):To=0,gr(),null}function ai(){if(br!==null){var r=Ap(Sl),i=rn.transition,a=Ie;try{if(rn.transition=null,Ie=16>r?16:r,br===null)var c=!1;else{if(r=br,br=null,Sl=0,(je&6)!==0)throw Error(n(331));var h=je;for(je|=4,ee=r.current;ee!==null;){var g=ee,w=g.child;if((ee.flags&16)!==0){var T=g.deletions;if(T!==null){for(var R=0;R<T.length;R++){var V=T[R];for(ee=V;ee!==null;){var W=ee;switch(W.tag){case 0:case 11:case 15:Co(8,W,g)}var q=W.child;if(q!==null)q.return=W,ee=q;else for(;ee!==null;){W=ee;var H=W.sibling,J=W.return;if(Tg(W),W===V){ee=null;break}if(H!==null){H.return=J,ee=H;break}ee=J}}}var re=g.alternate;if(re!==null){var ue=re.child;if(ue!==null){re.child=null;do{var Je=ue.sibling;ue.sibling=null,ue=Je}while(ue!==null)}}ee=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,ee=w;else e:for(;ee!==null;){if(g=ee,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Co(9,g,g.return)}var L=g.sibling;if(L!==null){L.return=g.return,ee=L;break e}ee=g.return}}var D=r.current;for(ee=D;ee!==null;){w=ee;var F=w.child;if((w.subtreeFlags&2064)!==0&&F!==null)F.return=w,ee=F;else e:for(w=D;ee!==null;){if(T=ee,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:yl(9,T)}}catch(de){Ge(T,T.return,de)}if(T===w){ee=null;break e}var K=T.sibling;if(K!==null){K.return=T.return,ee=K;break e}ee=T.return}}if(je=h,gr(),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Aa,r)}catch{}c=!0}return c}finally{Ie=a,rn.transition=i}}return!1}function $g(r,i,a){i=ri(a,i),i=ag(r,i,1),r=vr(r,i,1),i=Rt(),r!==null&&(Yi(r,1,i),Vt(r,i))}function Ge(r,i,a){if(r.tag===3)$g(r,r,a);else for(;i!==null;){if(i.tag===3){$g(i,r,a);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(wr===null||!wr.has(c))){r=ri(a,r),r=lg(i,r,1),i=vr(i,r,1),r=Rt(),i!==null&&(Yi(i,1,r),Vt(i,r));break}}i=i.return}}function bE(r,i,a){var c=r.pingCache;c!==null&&c.delete(i),i=Rt(),r.pingedLanes|=r.suspendedLanes&a,ut===r&&(gt&a)===a&&(ot===4||ot===3&&(gt&130023424)===gt&&500>Xe()-fd?ss(r,0):dd|=a),Vt(r,i)}function Hg(r,i){i===0&&((r.mode&1)===0?i=1:(i=ja,ja<<=1,(ja&130023424)===0&&(ja=4194304)));var a=Rt();r=Hn(r,i),r!==null&&(Yi(r,i,a),Vt(r,a))}function SE(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),Hg(r,a)}function EE(r,i){var a=0;switch(r.tag){case 13:var c=r.stateNode,h=r.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(i),Hg(r,a)}var Wg;Wg=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||Mt.current)It=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return It=!1,cE(r,i,a);It=(r.flags&131072)!==0}else It=!1,He&&(i.flags&1048576)!==0&&Cm(i,el,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;ml(r,i),r=i.pendingProps;var h=Qs(i,bt.current);ti(i,a),h=$c(null,i,c,r,h,a);var g=Hc();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Lt(c)?(g=!0,Xa(i)):g=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,Lc(i),h.updater=hl,i.stateNode=h,h._reactInternals=i,Yc(i,c,r,a),i=ed(null,i,c,!0,g,a)):(i.tag=0,He&&g&&kc(i),At(null,i,h,a),i=i.child),i;case 16:c=i.elementType;e:{switch(ml(r,i),r=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=_E(c),r=xn(c,r),h){case 0:i=Zc(null,i,c,r,a);break e;case 1:i=yg(null,i,c,r,a);break e;case 11:i=fg(null,i,c,r,a);break e;case 14:i=hg(null,i,c,xn(c.type,r),a);break e}throw Error(n(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:xn(c,h),Zc(r,i,c,h,a);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:xn(c,h),yg(r,i,c,h,a);case 3:e:{if(vg(i),r===null)throw Error(n(387));c=i.pendingProps,g=i.memoizedState,h=g.element,Om(r,i),ol(i,c,null,a);var w=i.memoizedState;if(c=w.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){h=ri(Error(n(423)),i),i=xg(r,i,c,a,h);break e}else if(c!==h){h=ri(Error(n(424)),i),i=xg(r,i,c,a,h);break e}else for(Kt=hr(i.stateNode.containerInfo.firstChild),qt=i,He=!0,vn=null,a=Rm(i,null,c,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Js(),c===h){i=qn(r,i,a);break e}At(r,i,c,a)}i=i.child}return i;case 5:return Lm(i),r===null&&Pc(i),c=i.type,h=i.pendingProps,g=r!==null?r.memoizedProps:null,w=h.children,wc(c,h)?w=null:g!==null&&wc(c,g)&&(i.flags|=32),gg(r,i),At(r,i,w,a),i.child;case 6:return r===null&&Pc(i),null;case 13:return wg(r,i,a);case 4:return Ic(i,i.stateNode.containerInfo),c=i.pendingProps,r===null?i.child=Zs(i,null,c,a):At(r,i,c,a),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:xn(c,h),fg(r,i,c,h,a);case 7:return At(r,i,i.pendingProps,a),i.child;case 8:return At(r,i,i.pendingProps.children,a),i.child;case 12:return At(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,g=i.memoizedProps,w=h.value,Ve(rl,c._currentValue),c._currentValue=w,g!==null)if(yn(g.value,w)){if(g.children===h.children&&!Mt.current){i=qn(r,i,a);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var T=g.dependencies;if(T!==null){w=g.child;for(var R=T.firstContext;R!==null;){if(R.context===c){if(g.tag===1){R=Wn(-1,a&-a),R.tag=2;var V=g.updateQueue;if(V!==null){V=V.shared;var W=V.pending;W===null?R.next=R:(R.next=W.next,W.next=R),V.pending=R}}g.lanes|=a,R=g.alternate,R!==null&&(R.lanes|=a),Dc(g.return,a,i),T.lanes|=a;break}R=R.next}}else if(g.tag===10)w=g.type===i.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(n(341));w.lanes|=a,T=w.alternate,T!==null&&(T.lanes|=a),Dc(w,a,i),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===i){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}At(r,i,h.children,a),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,ti(i,a),h=tn(h),c=c(h),i.flags|=1,At(r,i,c,a),i.child;case 14:return c=i.type,h=xn(c,i.pendingProps),h=xn(c.type,h),hg(r,i,c,h,a);case 15:return pg(r,i,i.type,i.pendingProps,a);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:xn(c,h),ml(r,i),i.tag=1,Lt(c)?(r=!0,Xa(i)):r=!1,ti(i,a),ig(i,c,h),Yc(i,c,h,a),ed(null,i,c,!0,r,a);case 19:return Sg(r,i,a);case 22:return mg(r,i,a)}throw Error(n(156,i.tag))};function qg(r,i){return _p(r,i)}function CE(r,i,a,c){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,059 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(r,i,a,c){return new CE(r,i,a,c)}function wd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function _E(r){if(typeof r=="function")return wd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Se)return 11;if(r===Fe)return 14}return 2}function Cr(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 kl(r,i,a,c,h,g){var w=2;if(c=r,typeof r=="function")wd(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case Q:return os(a.children,h,g,i);case U:w=8,h|=8;break;case me:return r=sn(12,a,i,h|2),r.elementType=me,r.lanes=g,r;case Ee:return r=sn(13,a,i,h),r.elementType=Ee,r.lanes=g,r;case Re:return r=sn(19,a,i,h),r.elementType=Re,r.lanes=g,r;case ae:return Tl(a,h,g,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Y:w=10;break e;case oe:w=9;break e;case Se:w=11;break e;case Fe:w=14;break e;case pe:w=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=sn(w,a,i,h),i.elementType=r,i.type=c,i.lanes=g,i}function os(r,i,a,c){return r=sn(7,r,c,i),r.lanes=a,r}function Tl(r,i,a,c){return r=sn(22,r,c,i),r.elementType=ae,r.lanes=a,r.stateNode={isHidden:!1},r}function bd(r,i,a){return r=sn(6,r,null,i),r.lanes=a,r}function Sd(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 kE(r,i,a,c,h){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=Qu(0),this.expirationTimes=Qu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Ed(r,i,a,c,h,g,w,T,R){return r=new kE(r,i,a,T,R),i===1?(i=1,g===!0&&(i|=8)):i=0,g=sn(3,null,null,i),r.current=g,g.stateNode=r,g.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lc(g),r}function TE(r,i,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:i,implementation:a}}function Kg(r){if(!r)return mr;r=r._reactInternals;e:{if(Gr(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(Lt(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(Lt(a))return bm(r,a,i)}return i}function Gg(r,i,a,c,h,g,w,T,R){return r=Ed(a,c,!0,r,h,g,w,T,R),r.context=Kg(null),a=r.current,c=Rt(),h=Sr(a),g=Wn(c,h),g.callback=i??null,vr(a,g,h),r.current.lanes=h,Yi(r,h,c),Vt(r,c),r}function Nl(r,i,a,c){var h=i.current,g=Rt(),w=Sr(h);return a=Kg(a),i.context===null?i.context=a:i.pendingContext=a,i=Wn(g,w),i.payload={element:r},c=c===void 0?null:c,c!==null&&(i.callback=c),r=vr(h,i,w),r!==null&&(Sn(r,h,w,g),il(r,h,w)),w}function Pl(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 Qg(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function Cd(r,i){Qg(r,i),(r=r.alternate)&&Qg(r,i)}function NE(){return null}var Yg=typeof reportError=="function"?reportError:function(r){console.error(r)};function _d(r){this._internalRoot=r}Al.prototype.render=_d.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Nl(r,i,null,null)},Al.prototype.unmount=_d.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;rs(function(){Nl(null,r,null,null)}),i[Bn]=null}};function Al(r){this._internalRoot=r}Al.prototype.unstable_scheduleHydration=function(r){if(r){var i=Op();r={blockedOn:null,target:r,priority:i};for(var a=0;a<cr.length&&i!==0&&i<cr[a].priority;a++);cr.splice(a,0,r),a===0&&Lp(r)}};function kd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Rl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Xg(){}
vendor: 5,630 bytes, line 40
40function PE(r,i,a,c,h){if(h){if(typeof c=="function"){var g=c;c=function(){var V=Pl(w);g.call(V)}}var w=Gg(i,c,r,0,null,!1,!1,"",Xg);return r._reactRootContainer=w,r[Bn]=w.current,co(r.nodeType===8?r.parentNode:r),rs(),w}for(;h=r.lastChild;)r.removeChild(h);if(typeof c=="function"){var T=c;c=function(){var V=Pl(R);T.call(V)}}var R=Ed(r,0,!1,null,null,!1,!1,"",Xg);return r._reactRootContainer=R,r[Bn]=R.current,co(r.nodeType===8?r.parentNode:r),rs(function(){Nl(i,R,a,c)}),R}function jl(r,i,a,c,h){var g=a._reactRootContainer;if(g){var w=g;if(typeof h=="function"){var T=h;h=function(){var R=Pl(w);T.call(R)}}Nl(i,w,r,h)}else w=PE(a,i,r,h,c);return Pl(w)}Rp=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=Qi(i.pendingLanes);a!==0&&(Yu(i,a|1),Vt(i,Xe()),(je&6)===0&&(oi=Xe()+500,gr()))}break;case 13:rs(function(){var c=Hn(r,1);if(c!==null){var h=Rt();Sn(c,r,1,h)}}),Cd(r,1)}},Xu=function(r){if(r.tag===13){var i=Hn(r,134217728);if(i!==null){var a=Rt();Sn(i,r,134217728,a)}Cd(r,134217728)}},jp=function(r){if(r.tag===13){var i=Sr(r),a=Hn(r,i);if(a!==null){var c=Rt();Sn(a,r,i,c)}Cd(r,i)}},Op=function(){return Ie},Dp=function(r,i){var a=Ie;try{return Ie=r,i()}finally{Ie=a}},$u=function(r,i,a){switch(i){case"input":if(pt(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 c=a[i];if(c!==r&&c.form===r.form){var h=Qa(c);if(!h)throw Error(n(90));ht(c),pt(c,h)}}}break;case"textarea":up(r,a);break;case"select":i=a.value,i!=null&&or(r,!!a.multiple,i,!1)}},vp=yd,xp=rs;var AE={usingClientEntryPoint:!1,Events:[po,Ks,Qa,gp,yp,yd]},No={findFiberByHostInstance:Qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RE={bundleType:No.bundleType,version:No.version,rendererPackageName:No.rendererPackageName,rendererConfig:No.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Ep(r),r===null?null:r.stateNode},findFiberByHostInstance:No.findFiberByHostInstance||NE,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 Ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ol.isDisabled&&Ol.supportsFiber)try{Aa=Ol.inject(RE),Tn=Ol}catch{}}return Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AE,Bt.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kd(i))throw Error(n(200));return TE(r,i,null,a)},Bt.createRoot=function(r,i){if(!kd(r))throw Error(n(299));var a=!1,c="",h=Yg;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=Ed(r,1,!1,null,null,a,!1,c,h),r[Bn]=i.current,co(r.nodeType===8?r.parentNode:r),new _d(i)},Bt.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=Ep(i),r=r===null?null:r.stateNode,r},Bt.flushSync=function(r){return rs(r)},Bt.hydrate=function(r,i,a){if(!Rl(i))throw Error(n(200));return jl(null,r,i,!0,a)},Bt.hydrateRoot=function(r,i,a){if(!kd(r))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,h=!1,g="",w=Yg;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(w=a.onRecoverableError)),i=Gg(i,null,r,1,a??null,h,!1,g,w),r[Bn]=i.current,co(r),c)for(r=0;r<c.length;r++)a=c[r],h=a._getVersion,h=h(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,h]:i.mutableSourceEagerHydrationData.push(a,h);return new Al(i)},Bt.render=function(r,i,a){if(!Rl(i))throw Error(n(200));return jl(null,r,i,!1,a)},Bt.unmountComponentAtNode=function(r){if(!Rl(r))throw Error(n(40));return r._reactRootContainer?(rs(function(){jl(null,null,r,!1,function(){r._reactRootContainer=null,r[Bn]=null})}),!0):!1},Bt.unstable_batchedUpdates=yd,Bt.unstable_renderSubtreeIntoContainer=function(r,i,a,c){if(!Rl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return jl(r,i,a,!1,c)},Bt.version="18.3.1-next-f1338f8080-20240426",Bt}var oy;function ex(){if(oy)return Ad.exports;oy=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(),Ad.exports=UE(),Ad.exports}var ay;function zE(){if(ay)return Ml;ay=1;var e=ex();return Ml.createRoot=e.createRoot,Ml.hydrateRoot=e.hydrateRoot,Ml}var $E=zE();const HE=Jv($E),WE=20,qE=1e6,Jn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Od=0;function KE(){return Od=(Od+1)%Number.MAX_VALUE,Od.toString()}const Dd=new Map,ly=e=>{if(Dd.has(e))return;const t=setTimeout(()=>{Dd.delete(e),Ho({type:Jn.REMOVE_TOAST,toastId:e})},qE);Dd.set(e,t)},GE=(e,t)=>{switch(t.type){case Jn.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,WE)};case Jn.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Jn.DISMISS_TOAST:{const{toastId:n}=t;
40return n?ly(n):e.toasts.forEach(s=>{ly(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case Jn.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ql=[];let Yl={toasts:[]};function Ho(e){Yl=GE(Yl,e),Ql.forEach(t=>{t(Yl)})}function QE({...e}){const t=KE(),n=o=>Ho({type:Jn.UPDATE_TOAST,toast:{...o,id:t}}),s=()=>Ho({type:Jn.DISMISS_TOAST,toastId:t});return Ho({type:Jn.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||s()}}}),{id:t,dismiss:s,update:n}}function YE(){const[e,t]=_.useState(Yl);return _.useEffect(()=>(Ql.push(t),()=>{const n=Ql.indexOf(t);n>-1&&Ql.splice(n,1)}),[e]),{...e,toast:QE,dismiss:n=>Ho({type:Jn.DISMISS_TOAST,toastId:n})}}function tx(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=tx(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=tx(e))&&(s&&(s+=" "),s+=t);return s}const uy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cy=nx,rx=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return cy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,u=Object.keys(o).map(m=>{const y=n==null?void 0:n[m],v=l==null?void 0:l[m];if(y===null)return null;const x=uy(y)||uy(v);return o[m][x]}),d=n&&Object.entries(n).reduce((m,y)=>{let[v,x]=y;return x===void 0||(m[v]=x),m},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((m,y)=>{let{class:v,className:x,...S}=y;return Object.entries(S).every(k=>{let[C,E]=k;return Array.isArray(E)?E.includes({...l,...d}[C]):{...l,...d}[C]===E})?[...m,v,x]:m},[]);return cy(e,u,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 XE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sx=(...e)=>e.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 JE={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 ZE=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:l,iconNode:u,...d},f)=>_.createElement("svg",{ref:f,...JE,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:sx("lucide",o),...d},[...u.map(([m,y])=>_.createElement(m,y)),...Array.isArray(l)?l:[l]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Pt=(e,t)=>{const n=_.forwardRef(({className:s,...o},l)=>_.createElement(ZE,{ref:l,iconNode:t,className:sx(`lucide-${XE(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 eC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],tC=Pt("ArrowRight",eC);/** 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 nC=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rC=Pt("ChevronLeft",nC);/** 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 sC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],iC=Pt("ChevronRight",sC);/** 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 oC=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aC=Pt("CircleCheckBig",oC);/** 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 lC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uC=Pt("CircleCheck",lC);/** 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 cC=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],dC=Pt("GraduationCap",cC);/** 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 fC=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ps=Pt("Heart",fC);/** 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 hC=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],pC=Pt("Mail",hC);/** 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 mC=[["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"}]],gC=Pt("Menu",mC);/** 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 yC=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],vC=Pt("MessageCircle",yC);/** 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 xC=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],wC=Pt("Phone",xC);/** 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 bC=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],SC=Pt("Sparkles",bC);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const EC=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],CC=Pt("Star",EC);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const _C=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
vendor: 8,433 bytes, lines 130-140
130],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],kC=Pt("Trophy",_C);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const TC=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],NC=Pt("Users",TC);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const PC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Su=Pt("X",PC),lh="-",AC=e=>{const t=jC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{const d=u.split(lh);return d[0]===""&&d.length!==1&&d.shift(),ix(d,t)||RC(u)},getConflictingClassGroupIds:(u,d)=>{const f=n[u]||[];return d&&s[u]?[...f,...s[u]]:f}}},ix=(e,t)=>{var u;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(lh);return(u=t.validators.find(({validator:d})=>d(l)))==null?void 0:u.classGroupId},dy=/^\[(.+)\]$/,RC=e=>{if(dy.test(e)){const t=dy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},jC=e=>{const{theme:t,classGroups:n}=e,s={nextPart:new Map,validators:[]};for(const o in n)cf(n[o],s,o,t);return s},cf=(e,t,n,s)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:fy(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(OC(o)){cf(o(s),t,n,s);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,u])=>{cf(u,fy(t,l),n,s)})})},fy=(e,t)=>{let n=e;return t.split(lh).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},OC=e=>e.isThemeGetter,DC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const o=(l,u)=>{n.set(l,u),t++,t>e&&(t=0,s=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=s.get(l))!==void 0)return o(l,u),u},set(l,u){n.has(l)?n.set(l,u):o(l,u)}}},df="!",ff=":",MC=ff.length,LC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=o=>{const l=[];let u=0,d=0,f=0,m;for(let k=0;k<o.length;k++){let C=o[k];if(u===0&&d===0){if(C===ff){l.push(o.slice(f,k)),f=k+MC;continue}if(C==="/"){m=k;continue}}C==="["?u++:C==="]"?u--:C==="("?d++:C===")"&&d--}const y=l.length===0?o:o.substring(f),v=IC(y),x=v!==y,S=m&&m>f?m-f:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:S}};if(t){const o=t+ff,l=s;s=u=>u.startsWith(o)?l(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const o=s;s=l=>n({className:l,parseClassName:o})}return s},IC=e=>e.endsWith(df)?e.substring(0,e.length-1):e.startsWith(df)?e.substring(1):e,FC=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(u=>{u[0]==="["||t[u]?(o.push(...l.sort(),u),l=[]):l.push(u)}),o.push(...l.sort()),o}},VC=e=>({cache:DC(e.cacheSize),parseClassName:LC(e),sortModifiers:FC(e),...AC(e)}),BC=/\s+/,UC=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:l}=t,u=[],d=e.trim().split(BC);let f="";for(let m=d.length-1;m>=0;m-=1){const y=d[m],{isExternal:v,modifiers:x,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:C}=n(y);if(v){f=y+(f.length>0?" "+f:f);continue}let E=!!C,b=s(E?k.substring(0,C):k);if(!b){if(!E){f=y+(f.length>0?" "+f:f);continue}if(b=s(k),!b){f=y+(f.length>0?" "+f:f);continue}E=!1}const A=l(x).join(":"),N=S?A+df:A,P=N+b;if(u.includes(P))continue;u.push(P);const I=o(b,E);for(let z=0;z<I.length;++z){const Q=I[z];u.push(N+Q)}f=y+(f.length>0?" "+f:f)}return f};function zC(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ox(t))&&(s&&(s+=" "),s+=n);return s}const ox=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=ox(e[s]))&&(n&&(n+=" "),n+=t);return n};function $C(e,...t){let n,s,o,l=u;function u(f){const m=t.reduce((y,v)=>v(y),e());return n=VC(m),s=n.cache.get,o=n.cache.set,l=d,d(f)}function d(f){const m=s(f);if(m)return m;const y=UC(f,n);return o(f,y),y}return function(){return l(zC.apply(null,arguments))}}const at=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ax=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HC=/^\d+\/\d+$/,WC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qC=/\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$/,KC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,QC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,li=e=>HC.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),kr=e=>!!e&&Number.isInteger(Number(e)),Md=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Gn=e=>WC.test(e),YC=()=>!0,XC=e=>qC.test(e)&&!KC.test(e),ux=()=>!1,JC=e=>GC.test(e),ZC=e=>QC.test(e),e_=e=>!se(e)&&!ie(e),t_=e=>Mi(e,fx,ux),se=e=>ax.test(e),as=e=>Mi(e,hx,XC),Ld=e=>Mi(e,o_,ke),hy=e=>Mi(e,cx,ux),n_=e=>Mi(e,dx,ZC),Ll=e=>Mi(e,px,JC),ie=e=>lx.test(e),Ao=e=>Li(e,hx),r_=e=>Li(e,a_),py=e=>Li(e,cx),s_=e=>Li(e,fx),i_=e=>Li(e,dx),Il=e=>Li(e,px,!0),Mi=(e,t,n)=>{const s=ax.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Li=(e,t,n=!1)=>{const s=lx.exec(e);return s?s[1]?t(s[1]):n:!1},cx=e=>e==="position"||e==="percentage",dx=e=>e==="image"||e==="url",fx=e=>e==="length"||e==="size"||e==="bg-size",hx=e=>e==="length",o_=e=>e==="number",a_=e=>e==="family-name",px=e=>e==="shadow",l_=()=>{const e=at("color"),t=at("font"),n=at("text"),s=at("font-weight"),o=at("tracking"),l=at("leading"),u=at("breakpoint"),d=at("container"),f=at("spacing"),m=at("radius"),y=at("shadow"),v=at("inset-shadow"),x=at("text-shadow"),S=at("drop-shadow"),k=at("blur"),C=at("perspective"),E=at("aspect"),b=at("ease"),A=at("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...P(),ie,se],z=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],U=()=>[ie,se,f],me=()=>[li,"full","auto",...U()],Y=()=>[kr,"none","subgrid",ie,se],oe=()=>["auto",{span:["full",kr,ie,se]},kr,ie,se],Se=()=>[kr,"auto",ie,se],Ee=()=>["auto","min","max","fr",ie,se],Re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Fe=()=>["start","end","center","stretch","center-safe","end-safe"],pe=()=>["auto",...U()],ae=()=>[li,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],B=()=>[e,ie,se],te=()=>[...P(),py,hy,{position:[ie,se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",s_,t_,{size:[ie,se]}],$=()=>[Md,Ao,as],le=()=>["","none","full",m,ie,se],he=()=>["",ke,Ao,as],Ce=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[ke,Md,py,hy],Ne=()=>["","none",k,ie,se],Oe=()=>["none",ke,ie,se],tt=()=>["none",ke,ie,se],hn=()=>[ke,ie,se],ht=()=>[li,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[YC],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[e_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",ke],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",li,se,ie,E]}
vendor: 5,661 bytes, line 140
140],container:["container"],columns:[{columns:[ke,se,ie,d]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:I()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:me()}],"inset-x":[{"inset-x":me()}],"inset-y":[{"inset-y":me()}],start:[{start:me()}],end:[{end:me()}],top:[{top:me()}],right:[{right:me()}],bottom:[{bottom:me()}],left:[{left:me()}],visibility:["visible","invisible","collapse"],z:[{z:[kr,"auto",ie,se]}],basis:[{basis:[li,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,li,"auto","initial","none",se]}],grow:[{grow:["",ke,ie,se]}],shrink:[{shrink:["",ke,ie,se]}],order:[{order:[kr,"first","last","none",ie,se]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":Se()}],"col-end":[{"col-end":Se()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":Se()}],"row-end":[{"row-end":Se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ee()}],"auto-rows":[{"auto-rows":Ee()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Re(),"normal"]}],"justify-items":[{"justify-items":[...Fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...Fe()]}],"align-content":[{content:["normal",...Re()]}],"align-items":[{items:[...Fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Re()}],"place-items":[{"place-items":[...Fe(),"baseline"]}],"place-self":[{"place-self":["auto",...Fe()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:pe()}],mx:[{mx:pe()}],my:[{my:pe()}],ms:[{ms:pe()}],me:[{me:pe()}],mt:[{mt:pe()}],mr:[{mr:pe()}],mb:[{mb:pe()}],ml:[{ml:pe()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[d,"screen",...ae()]}],"min-w":[{"min-w":[d,"screen","none",...ae()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",n,Ao,as]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ie,Ld]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Md,se]}],"font-family":[{font:[r_,se,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,ie,se]}],"line-clamp":[{"line-clamp":[ke,"none",ie,Ld]}],leading:[{leading:[l,...U()]}],"list-image":[{"list-image":["none",ie,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ie,as]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[ke,"auto",ie,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},kr,ie,se],radial:["",ie,se],conic:[kr,ie,se]},i_,n_]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:$()}
140],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,756 bytes, line 140
140],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ie,se]}],"outline-w":[{outline:["",ke,Ao,as]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",y,Il,Ll]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",v,Il,Ll]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[ke,as]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",x,Il,Ll]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[ke,ie,se]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"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":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ie,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,se]}],filter:[{filter:["","none",ie,se]}],blur:[{blur:Ne()}],brightness:[{brightness:[ke,ie,se]}],contrast:[{contrast:[ke,ie,se]}],"drop-shadow":[{"drop-shadow":["","none",S,Il,Ll]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",ke,ie,se]}],"hue-rotate":[{"hue-rotate":[ke,ie,se]}],invert:[{invert:["",ke,ie,se]}],saturate:[{saturate:[ke,ie,se]}],sepia:[{sepia:["",ke,ie,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,se]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ie,se]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ie,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ie,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ie,se]}],"backdrop-invert":[{"backdrop-invert":["",ke,ie,se]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ie,se]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ie,se]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ie,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ie,se]}],ease:[{ease:["linear","initial",b,ie,se]}],delay:[{delay:[ke,ie,se]}],animate:[{animate:["none",A,ie,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ie,se]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:tt()}],"scale-x":[{"scale-x":tt()}],"scale-y":[{"scale-y":tt()}],"scale-z":[{"scale-z":tt()}],"scale-3d":["scale-3d"],skew:[{skew:hn()}],"skew-x":[{"skew-x":hn()}],"skew-y":[{"skew-y":hn()}],transform:[{transform:[ie,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ht()}],"translate-x":[{"translate-x":ht()}],"translate-y":[{"translate-y":ht()}],"translate-z":[{"translate-z":ht()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,657 bytes, line 140
140],"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",ie,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",ie,se]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[ke,Ao,as,Ld]}],stroke:[{stroke:["none",...B()]}],"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"]}},u_=$C(l_);function Dt(...e){return u_(nx(e))}const mx=_.forwardRef(({...e},t)=>p.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}));mx.displayName="ToastProvider";const gx=_.forwardRef(({...e},t)=>p.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}));gx.displayName="ToastViewport";const c_=rx("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"}}),yx=_.forwardRef(({className:e,variant:t,...n},s)=>p.jsx("div",{ref:s,className:Dt(c_({variant:t}),e),...n}));yx.displayName="Toast";const d_=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("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}));d_.displayName="ToastAction";const vx=_.forwardRef(({className:e,...t},n)=>p.jsx("button",{ref:n,className:Dt("absolute right-2 top-2 rounded-md p-1 text-foreground
140/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:p.jsx(Su,{className:"h-4 w-4"})}));vx.displayName="ToastClose";const xx=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("text-sm font-semibold",e),...t}));xx.displayName="ToastTitle";const wx=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("text-sm opacity-90",e),...t}));wx.displayName="ToastDescription";function f_(){const{toasts:e}=YE();return p.jsxs(mx,{children:[e.map(function({id:t,title:n,description:s,action:o,...l}){return p.jsxs(yx,{...l,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(xx,{children:n}),s&&p.jsx(wx,{children:s})]}),o,p.jsx(vx,{})]},t)}),p.jsx(gx,{})]})}var fa=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(){}},h_={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ar,oh,Uv,p_=(Uv=class{constructor(){ve(this,Ar,h_);ve(this,oh,!1)}setTimeoutProvider(e){Z(this,Ar,e)}setTimeout(e,t){return j(this,Ar).setTimeout(e,t)}clearTimeout(e){j(this,Ar).clearTimeout(e)}setInterval(e,t){return j(this,Ar).setInterval(e,t)}clearInterval(e){j(this,Ar).clearInterval(e)}},Ar=new WeakMap,oh=new WeakMap,Uv),hs=new p_;function m_(e){setTimeout(e,0)}var As=typeof window>"u"||"Deno"in globalThis;function $t(){}function g_(e,t){return typeof e=="function"?e(t):e}function hf(e){return typeof e=="number"&&e>=0&&e!==1/0}function bx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Br(e,t){return typeof e=="function"?e(t):e}function un(e,t){return typeof e=="function"?e(t):e}function my(e,t){const{type:n="all",exact:s,fetchStatus:o,predicate:l,queryKey:u,stale:d}=e;if(u){if(s){if(t.queryHash!==uh(u,t.options))return!1}else if(!Jo(t.queryKey,u))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||l&&!l(t))}function gy(e,t){const{exact:n,status:s,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Xo(t.options.mutationKey)!==Xo(l))return!1}else if(!Jo(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function uh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xo)(e)}function Xo(e){return JSON.stringify(e,(t,n)=>mf(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function Jo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Jo(e[n],t[n])):!1}var y_=Object.prototype.hasOwnProperty;function Sx(e,t){if(e===t)return e;const n=yy(e)&&yy(t);if(!n&&!(mf(e)&&mf(t)))return t;const o=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),u=l.length,d=n?new Array(u):{};let f=0;for(let m=0;m<u;m++){const y=n?m:l[m],v=e[y],x=t[y];if(v===x){d[y]=v,(n?m<o:y_.call(e,y))&&f++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){d[y]=x;continue}const S=Sx(v,x);d[y]=S,S===v&&f++}return o===u&&f===o?e:d}function pf(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 yy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mf(e){if(!vy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vy(e){return Object.prototype.toString.call(e)==="[object Object]"}function v_(e){return new Promise(t=>{hs.setTimeout(t,e)})}function gf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Sx(e,t):t}function x_(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function w_(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var ch=Symbol();function Ex(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ch?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function b_(e,t){return typeof e=="function"?e(...t):!!e}var gs,Rr,vi,zv,S_=(zv=class extends fa{constructor(){super();ve(this,gs);ve(this,Rr);ve(this,vi);Z(this,vi,t=>{if(!As&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Rr)||this.setEventListener(j(this,vi))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Rr))==null||t.call(this),Z(this,Rr,void 0))}setEventListener(t){var n;Z(this,vi,t),(n=j(this,Rr))==null||n.call(this),Z(this,Rr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){j(this,gs)!==t&&(Z(this,gs,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 5,009 bytes, line 140
140this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,gs)=="boolean"?j(this,gs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},gs=new WeakMap,Rr=new WeakMap,vi=new WeakMap,zv),dh=new S_;function yf(){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 E_=m_;function C_(){let e=[],t=0,n=d=>{d()},s=d=>{d()},o=E_;const l=d=>{t?e.push(d):o(()=>{n(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{s(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||u()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{o=d}}}var xt=C_(),xi,jr,wi,$v,__=($v=class extends fa{constructor(){super();ve(this,xi,!0);ve(this,jr);ve(this,wi);Z(this,wi,t=>{if(!As&&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,jr)||this.setEventListener(j(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,jr))==null||t.call(this),Z(this,jr,void 0))}setEventListener(t){var n;Z(this,wi,t),(n=j(this,jr))==null||n.call(this),Z(this,jr,t(this.setOnline.bind(this)))}setOnline(t){j(this,xi)!==t&&(Z(this,xi,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return j(this,xi)}},xi=new WeakMap,jr=new WeakMap,wi=new WeakMap,$v),au=new __;function k_(e){return Math.min(1e3*2**e,3e4)}function Cx(e){return(e??"online")==="online"?au.isOnline():!0}var vf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function _x(e){let t=!1,n=0,s;const o=yf(),l=()=>o.status!=="pending",u=C=>{var E;if(!l()){const b=new vf(C);x(b),(E=e.onCancel)==null||E.call(e,b)}},d=()=>{t=!0},f=()=>{t=!1},m=()=>dh.isFocused()&&(e.networkMode==="always"||au.isOnline())&&e.canRun(),y=()=>Cx(e.networkMode)&&e.canRun(),v=C=>{l()||(s==null||s(),o.resolve(C))},x=C=>{l()||(s==null||s(),o.reject(C))},S=()=>new Promise(C=>{var E;s=b=>{(l()||m())&&C(b)},(E=e.onPause)==null||E.call(e)}).then(()=>{var C;s=void 0,l()||(C=e.onContinue)==null||C.call(e)}),k=()=>{if(l())return;let C;const E=n===0?e.initialPromise:void 0;try{C=E??e.fn()}catch(b){C=Promise.reject(b)}Promise.resolve(C).then(v).catch(b=>{var z;if(l())return;const A=e.retry??(As?0:3),N=e.retryDelay??k_,P=typeof N=="function"?N(n,b):N,I=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,b);if(t||!I){x(b);return}n++,(z=e.onFail)==null||z.call(e,n,b),v_(P).then(()=>m()?void 0:S()).then(()=>{t?x(b):k()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s==null||s(),o),cancelRetry:d,continueRetry:f,canStart:y,start:()=>(y()?k():S().then(k),o)}}var ys,Hv,kx=(Hv=class{constructor(){ve(this,ys)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hf(this.gcTime)&&Z(this,ys,hs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(As?1/0:300*1e3))}clearGcTimeout(){j(this,ys)&&(hs.clearTimeout(j(this,ys)),Z(this,ys,void 0))}},ys=new WeakMap,Hv),vs,bi,ln,xs,dt,aa,ws,Cn,Qn,Wv,T_=(Wv=class extends kx{constructor(t){super();ve(this,Cn);ve(this,vs);ve(this,bi);ve(this,ln);ve(this,xs);ve(this,dt);ve(this,aa);ve(this,ws);Z(this,ws,!1),Z(this,aa,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,xs,t.client),Z(this,ln,j(this,xs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,vs,xy(this.options)),this.state=t.state??j(this,vs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,dt))==null?void 0:t.promise}setOptions(t){if(this.options={...j(this,aa),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xy(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),Z(this,vs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,ln).remove(this)}setData(t,n){const s=gf(this.state.data,t,this.options);return Pe(this,Cn,Qn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Pe(this,Cn,Qn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,o;const n=(s=j(this,dt))==null?void 0:s.promise;return(o=j(this,dt))==null||o.cancel(t),n?n.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,vs))}isActive(){return this.observers.some(t=>un(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ch||this.state.dataUpdateCount+this.state.errorUpdate
140Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Br(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:!bx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,dt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,dt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,ln).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,dt)&&(j(this,ws)?j(this,dt).cancel({revert:!0}):j(this,dt).cancelRetry()),this.scheduleGc()),j(this,ln).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,Cn,Qn).call(this,{type:"invalidate"})}async fetch(t,n){var f,m,y,v,x,S,k,C,E,b,A,N;if(this.state.fetchStatus!=="idle"&&((f=j(this,dt))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,dt))return j(this,dt).continueRetry(),j(this,dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(I=>I.options.queryFn);P&&this.setOptions(P.options)}const s=new AbortController,o=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(Z(this,ws,!0),s.signal)})},l=()=>{const P=Ex(this.options,n),z=(()=>{const Q={client:j(this,xs),queryKey:this.queryKey,meta:this.meta};return o(Q),Q})();return Z(this,ws,!1),this.options.persister?this.options.persister(P,z,this):P(z)},d=(()=>{const P={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,xs),state:this.state,fetchFn:l};return o(P),P})();(m=this.options.behavior)==null||m.onFetch(d,this),Z(this,bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&Pe(this,Cn,Qn).call(this,{type:"fetch",meta:(v=d.fetchOptions)==null?void 0:v.meta}),Z(this,dt,_x({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:P=>{P instanceof vf&&P.revert&&this.setState({...j(this,bi),fetchStatus:"idle"}),s.abort()},onFail:(P,I)=>{Pe(this,Cn,Qn).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{Pe(this,Cn,Qn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,Cn,Qn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const P=await j(this,dt).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(S=(x=j(this,ln).config).onSuccess)==null||S.call(x,P,this),(C=(k=j(this,ln).config).onSettled)==null||C.call(k,P,this.state.error,this),P}catch(P){if(P instanceof vf){if(P.silent)return j(this,dt).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Pe(this,Cn,Qn).call(this,{type:"error",error:P}),(b=(E=j(this,ln).config).onError)==null||b.call(E,P,this),(N=(A=j(this,ln).config).onSettled)==null||N.call(A,this.state.data,P,this),P}finally{this.scheduleGc()}}},vs=new WeakMap,bi=new WeakMap,ln=new WeakMap,xs=new WeakMap,dt=new WeakMap,aa=new WeakMap,ws=new WeakMap,Cn=new WeakSet,Qn=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,...Tx(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 Z(this,bi,t.manual?o:void 0),o;case"error":const l=t.error;
vendor: 13,760 bytes, line 140
140return{...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),xt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),j(this,ln).notify({query:this,type:"updated",action:t})})},Wv);function Tx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xy(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,Ae,la,jt,bs,Si,Yn,Or,ua,Ei,Ci,Ss,Es,Dr,_i,Le,Lo,xf,wf,bf,Sf,Ef,Cf,_f,Nx,qv,N_=(qv=class extends fa{constructor(t,n){super();ve(this,Le);ve(this,Ut);ve(this,Ae);ve(this,la);ve(this,jt);ve(this,bs);ve(this,Si);ve(this,Yn);ve(this,Or);ve(this,ua);ve(this,Ei);ve(this,Ci);ve(this,Ss);ve(this,Es);ve(this,Dr);ve(this,_i,new Set);this.options=n,Z(this,Ut,t),Z(this,Or,null),Z(this,Yn,yf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,Ae).addObserver(this),wy(j(this,Ae),this.options)?Pe(this,Le,Lo).call(this):this.updateResult(),Pe(this,Le,Sf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kf(j(this,Ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kf(j(this,Ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Le,Ef).call(this),Pe(this,Le,Cf).call(this),j(this,Ae).removeObserver(this)}setOptions(t){const n=this.options,s=j(this,Ae);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,Ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Le,_f).call(this),j(this,Ae).setOptions(this.options),n._defaulted&&!pf(this.options,n)&&j(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,Ae),observer:this});const o=this.hasListeners();o&&by(j(this,Ae),s,this.options,n)&&Pe(this,Le,Lo).call(this),this.updateResult(),o&&(j(this,Ae)!==s||un(this.options.enabled,j(this,Ae))!==un(n.enabled,j(this,Ae))||Br(this.options.staleTime,j(this,Ae))!==Br(n.staleTime,j(this,Ae)))&&Pe(this,Le,xf).call(this);const l=Pe(this,Le,wf).call(this);o&&(j(this,Ae)!==s||un(this.options.enabled,j(this,Ae))!==un(n.enabled,j(this,Ae))||l!==j(this,Dr))&&Pe(this,Le,bf).call(this,l)}getOptimisticResult(t){const n=j(this,Ut).getQueryCache().build(j(this,Ut),t),s=this.createResult(n,t);return A_(this,s)&&(Z(this,jt,s),Z(this,Si,this.options),Z(this,bs,j(this,Ae).state)),s}getCurrentResult(){return j(this,jt)}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,Yn).status==="pending"&&j(this,Yn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,o))})}trackProp(t){j(this,_i).add(t)}getCurrentQuery(){return j(this,Ae)}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 Pe(this,Le,Lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,jt)))}createResult(t,n){var me;const s=j(this,Ae),o=this.options,l=j(this,jt),u=j(this,bs),d=j(this,Si),m=t!==s?t.state:j(this,la),{state:y}=t;let v={...y},x=!1,S;if(n._optimisticResults){const Y=this.hasListeners(),oe=!Y&&wy(t,n),Se=Y&&by(t,s,n,o);(oe||Se)&&(v={...v,...Tx(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:k,errorUpdatedAt:C,status:E}=v;S=v.data;let b=!1;if(n.placeholderData!==void 0&&S===void 0&&E==="pending"){let Y;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(Y=l.data,b=!0):Y=typeof n.placeholderData=="function"?n.placeholderData((me=j(this,Ci))==null?void 0:me.state.data,j(this,Ci)):n.placeholderData,Y!==void 0&&(E="success",S=gf(l==null?void 0:l.data,Y,n),x=!0)}if(n.select&&S!==void 0&&!b)if(l&&S===(u==null?void 0:u.data)&&n.select===j(this,ua))S=j(this,Ei);else try{Z(this,ua,n.select),S=n.select(S),S=gf(l==null?void 0:l.data,S,n),Z(this,Ei,S),Z(this,Or,null)}catch(Y){Z(this,Or,Y)}j(this,Or)&&(k=j(this,Or),S=j(this,Ei),C=Date.now(),E="error");const A=v.fetchStatus==="fetching",N=E==="pending",P=E==="error",I=N&&A,z=S!==void 0,U={status:E,fetchStatus:v.fetchStatus,isPending:N,isSuccess:E==="success",isError:P,isInitialLoading:I,isLoading:I,data:S,dataUpdatedAt:v.dataUpdatedAt,error:k,errorUpdatedAt:C,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:A,isRefetching:A&&!N,isLoadingError:P&&!z,isPaused:v.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:P&&z,isStale:fh(t,n),refetch:this.refetch,promise:j(this,Yn),isEnabled:un(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Y=Ee=>{U.status==="error"?Ee.reject(U.error):U.data!==void 0&&Ee.resolve(U.data)},oe=()=>{const Ee=Z(this,Yn,U.promise=yf());Y(Ee)},Se=j(this,Yn);switch(Se.status){case"pending":t.queryHash===s.queryHash&&Y(Se);break;case"fulfilled":(U.status==="error"||U.data!==Se.value)&&oe();break;case"rejected":(U.status!=="error"||U.error!==Se.reason)&&oe();break}}return U}updateResult(){const t=j(this,jt),n=this.createResult(j(this,Ae),this.options);if(Z(this,bs,j(this,Ae).state),Z(this,Si,this.options),j(this,bs).data!==void 0&&Z(this,Ci,j(this,Ae)),pf(n,t))return;Z(this,jt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!j(this,_i).size)return!0;const u=new Set(l??j(this,_i));return this.options.throwOnError&&u.add("error"),Object.keys(j(this,jt)).some(d=>{const f=d;return j(this,jt)[f]!==t[f]&&u.has(f)})};Pe(this,Le,Nx).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Le,Sf).call(this)}},Ut=new WeakMap,Ae=new WeakMap,la=new WeakMap,jt=new WeakMap,bs=new WeakMap,Si=new WeakMap,Yn=new WeakMap,Or=new WeakMap,ua=new WeakMap,Ei=new WeakMap,Ci=new WeakMap,Ss=new WeakMap,Es=new WeakMap,Dr=new WeakMap,_i=new WeakMap,Le=new WeakSet,Lo=function(t){Pe(this,Le,_f).call(this);let n=j(this,Ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch($t)),n},xf=function(){Pe(this,Le,Ef).call(this);const t=Br(this.options.staleTime,j(this,Ae));if(As||j(this,jt).isStale||!hf(t))return;const s=bx(j(this,jt).dataUpdatedAt,t)+1;Z(this,Ss,hs.setTimeout(()=>{j(this,jt).isStale||this.updateResult()},s))},wf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,Ae)):this.options.refetchInterval)??!1},bf=function(t){Pe(this,Le,Cf).call(this),Z(this,Dr,t),!(As||un(this.options.enabled,j(this,Ae))===!1||!hf(j(this,Dr))||j(this,Dr)===0)&&Z(this,Es,hs.setInterval(()=>{(this.options.refetchIntervalInBackground||dh.isFocused())&&Pe(this,Le,Lo).call(this)},j(this,Dr)))},Sf=function(){Pe(this,Le,xf).call(this),Pe(this,Le,bf).call(this,Pe(this,Le,wf).call(this))},Ef=function(){j(this,Ss)&&(hs.clearTimeout(j(this,Ss)),Z(this,Ss,void 0))},Cf=function(){j(this,Es)&&(hs.clearInterval(j(this,Es)),Z(this,Es,void 0))},_f=function(){const t=j(this,Ut).getQueryCache().build(j(this,Ut),this.options);if(t===j(this,Ae))return;const n=j(this,Ae);Z(this,Ae,t),Z(this,la,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Nx=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(j(this,jt))}),j(this,Ut).getQueryCache().notify({query:j(this,Ae),type:"observerResultsUpdated"})})},qv);function P_(e,t){return un(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wy(e,t){return P_(e,t)||e.state.data!==void 0&&kf(e,t,t.refetchOnMount)}function kf(e,t,n){if(un(t.enabled,e)!==!1&&Br(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&fh(e,t)}return!1}function by(e,t,n,s){return(e!==t||un(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&fh(e,n)}function fh(e,t){return un(t.enabled,e)!==!1&&e.isStaleByTime(Br(t.staleTime,e))}function A_(e,t){return!pf(e.getCurrentResult(),t)}function Sy(e){return{onFetch:(t,n)=>{var y,v,x,S,k;const s=t.options,o=(x=(v=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:v.fetchMore)==null?void 0:x.direction,l=((S=t.state.data)==null?void 0:S.pages)||[],u=((k=t.state.data)==null?void 0:k.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const m=async()=>{let C=!1;const E=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?C=!0:t.signal.addEventListener("abort",()=>{C=!0}),t.signal)})},b=Ex(t.options,t.fetchOptions),A=async(N,P,I)=>{if(C)return Promise.reject();if(P==null&&N.pages.length)return Promise.resolve(N);const Q=(()=>{const oe={client:t.client,queryKey:t.queryKey,pageParam:P,direction:I?"backward":"forward",meta:t.options.meta};return E(oe),oe})(),U=await b(Q),{maxPages:me}=t.options,Y=I?w_:x_;return{pages:Y(N.pages,U,me),pageParams:Y(N.pageParams,P,me)}};if(o&&l.length){const N=o==="backward",P=N?R_:Ey,I={pages:l,pageParams:u},z=P(s,I);d=await A(I,z,N)}else{const N=e??l.length;do{const P=f===0?u[0]??s.initialPageParam:Ey(s,d);if(f>0&&P==null)break;d=await A(d,P),f++}while(f<N)}return d};t.options.persister?t.fetchFn=()=>{var C,E;return(E=(C=t.options).persister)==null?void 0:E.call(C,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function Ey(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 R_(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 ca,jn,Ot,Cs,On,Nr,Kv,j_=(Kv=class extends kx{constructor(t){super();ve(this,On);ve(this,ca);ve(this,jn);ve(this,Ot);ve(this,Cs);Z(this,ca,t.client),this.mutationId=t.mutationId,Z(this,Ot,t.mutationCache),Z(this,jn,[]),this.state=t.state||O_(),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,jn).includes(t)||(j(this,jn).push(t),this.clearGcTimeout(),j(this,Ot).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,jn,j(this,jn).filter(n=>n!==t)),this.scheduleGc(),j(this,Ot).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,jn).length||(this.state.status==="pending"?this.scheduleGc():j(this,Ot).remove(this))}continue(){var t;return((t=j(this,Cs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,d,f,m,y,v,x,S,k,C,E,b,A,N,P,I,z,Q,U,me;const n=()=>{Pe(this,On,Nr).call(this,{type:"continue"})},s={client:j(this,ca),meta:this.options.meta,mutationKey:this.options.mutationKey};Z(this,Cs,_x({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(Y,oe)=>{Pe(this,On,Nr).call(this,{type:"failed",failureCount:Y,error:oe})},onPause:()=>{Pe(this,On,Nr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Ot).canRun(this)}));const o=this.state.status==="pending",l=!j(this,Cs).canStart();try{if(o)n();else{Pe(this,On,Nr).call(this,{type:"pending",variables:t,isPaused:l}),await((d=(u=j(this,Ot).config).onMutate)==null?void 0:d.call(u,t,this,s));const oe=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,t,s));oe!==this.state.context&&Pe(this,On,Nr).call(this,{type:"pending",context:oe,variables:t,isPaused:l})}const Y=await j(this,Cs).start();return await((v=(y=j(this,Ot).config).onSuccess)==null?void 0:v.call(y,Y,t,this.state.context,this,s)),await((S=(x=this.options).onSuccess)==null?void 0:S.call(x,Y,t,this.state.context,s)),await((C=(k=j(this,Ot).config).onSettled)==null?void 0:C.call(k,Y,null,this.state.variables,this.state.context,this,s)),await((b=(E=this.options).onSettled)==null?void 0:b.call(E,Y,null,t,this.state.context,s)),Pe(this,On,Nr).call(this,{type:"success",data:Y}),Y}catch(Y){try{throw await((N=(A=j(this,Ot).config).onError)==null?void 0:N.call(A,Y,t,this.state.context,this,s)),await((I=(P=this.options).onError)==null?void 0:I.call(P,Y,t,this.state.context,s)),await((Q=(z=j(this,Ot).config).onSettled)==null?void 0:Q.call(z,void 0,Y,this.state.variables,this.state.context,this,s)),await((me=(U=this.options).onSettled)==null?void 0:me.call(U,void 0,Y,t,this.state.context,s)),Y}finally{Pe(this,On,Nr).call(this,{type:"error",error:Y})}}finally{j(this,Ot).runNext(this)}}},ca=new WeakMap,jn=new WeakMap,Ot=new WeakMap,Cs=new WeakMap,On=new WeakSet,Nr=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};
140case"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),xt.batch(()=>{j(this,jn).forEach(s=>{s.onMutationUpdate(t)}),j(this,Ot).notify({mutation:this,type:"updated",action:t})})},Kv);function O_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xn,_n,da,Gv,D_=(Gv=class extends fa{constructor(t={}){super();ve(this,Xn);ve(this,_n);ve(this,da);this.config=t,Z(this,Xn,new Set),Z(this,_n,new Map),Z(this,da,0)}build(t,n,s){const o=new j_({client:t,mutationCache:this,mutationId:++Dl(this,da)._,options:t.defaultMutationOptions(n),state:s});return this.add(o),o}add(t){j(this,Xn).add(t);const n=Fl(t);if(typeof n=="string"){const s=j(this,_n).get(n);s?s.push(t):j(this,_n).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,Xn).delete(t)){const n=Fl(t);if(typeof n=="string"){const s=j(this,_n).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,_n).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Fl(t);if(typeof n=="string"){const s=j(this,_n).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=Fl(t);if(typeof n=="string"){const o=(s=j(this,_n).get(n))==null?void 0:s.find(l=>
vendor: 4,780 bytes, line 140
140l!==t&&l.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{j(this,Xn).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,Xn).clear(),j(this,_n).clear()})}getAll(){return Array.from(j(this,Xn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>gy(n,s))}findAll(t={}){return this.getAll().filter(n=>gy(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(t.map(n=>n.continue().catch($t))))}},Xn=new WeakMap,_n=new WeakMap,da=new WeakMap,Gv);function Fl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Dn,Qv,M_=(Qv=class extends fa{constructor(t={}){super();ve(this,Dn);this.config=t,Z(this,Dn,new Map)}build(t,n,s){const o=n.queryKey,l=n.queryHash??uh(o,n);let u=this.get(l);return u||(u=new T_({client:t,queryKey:o,queryHash:l,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}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(){xt.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=>my(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>my(t,s)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dn=new WeakMap,Qv),Qe,Mr,Lr,ki,Ti,Ir,Ni,Pi,Yv,L_=(Yv=class{constructor(e={}){ve(this,Qe);ve(this,Mr);ve(this,Lr);ve(this,ki);ve(this,Ti);ve(this,Ir);ve(this,Ni);ve(this,Pi);Z(this,Qe,e.queryCache||new M_),Z(this,Mr,e.mutationCache||new D_),Z(this,Lr,e.defaultOptions||{}),Z(this,ki,new Map),Z(this,Ti,new Map),Z(this,Ir,0)}mount(){Dl(this,Ir)._++,j(this,Ir)===1&&(Z(this,Ni,dh.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Qe).onFocus())})),Z(this,Pi,au.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Qe).onOnline())})))}unmount(){var e,t;Dl(this,Ir)._--,j(this,Ir)===0&&((e=j(this,Ni))==null||e.call(this),Z(this,Ni,void 0),(t=j(this,Pi))==null||t.call(this),Z(this,Pi,void 0))}isFetching(e){return j(this,Qe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,Mr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Qe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,Qe).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Br(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return j(this,Qe).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,Qe).get(s.queryHash),l=o==null?void 0:o.state.data,u=g_(t,l);if(u!==void 0)return j(this,Qe).build(this,s).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>j(this,Qe).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,Qe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,Qe);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,Qe);return xt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=xt.batch(()=>j(this,Qe).findAll(e).map(o=>o.cancel(n)));return Promise.all(s).then($t).catch($t)}invalidateQueries(e,t={}){return xt.batch(()=>(j(this,Qe).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=xt.batch(()=>j(this,Qe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch($t)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,Qe).build(this,t);return n.isStaleByTime(Br(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}
140fetchInfiniteQuery(e){return e.behavior=Sy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=Sy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return au.isOnline()?j(this,Mr).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Qe)}getMutationCache(){return j(this,Mr)}getDefaultOptions(){return j(this,Lr)}setDefaultOptions(e){Z(this,Lr,e)}setQueryDefaults(e,t){j(this,ki).set(Xo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,ki).values()],n={};return t.forEach(s=>{Jo(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){j(this,Ti).set(Xo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Ti).values()],n={};return t.forEach(s=>{Jo(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Lr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=uh(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===ch&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Lr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,Qe).clear(),j(this,Mr).clear()}},Qe=new WeakMap,Mr=new WeakMap,Lr=new WeakMap,ki=new WeakMap,Ti=new WeakMap,Ir=new WeakMap,Ni=new WeakMap,Pi=new WeakMap,Yv),Px=_.createContext(void 0),I_=e=>{const t=_.useContext(Px);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},F_=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(Px.Provider,{value:e,children:t})),Ax=_.createContext(!1),V_=()=>_.useContext(Ax);Ax.Provider;function B_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var U_=_.createContext(B_()),z_=()=>_.useContext(U_),$_=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},H_=e=>{_.useEffect(()=>{e.clearReset()},[e])},W_=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||b_(n,[e.error,s])),q_=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))}},K_=(e,t)=>e.isLoading&&e.isFetching&&!t,G_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Q_(e,t,n){var v,x,S,k,C;const s=V_(),o=z_(),l=I_(),u=l.defaultQueryOptions(e);(x=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||x.call(v,u),u._optimisticResults=s?"isRestoring":"optimistic",q_(u),$_(u,o),H_(o);const d=!l.getQueryCache().get(u.queryHash),[f]=_.useState(()=>new t(l,u)),m=f.getOptimisticResult(u),y=!s&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(E=>{const b=y?f.subscribe(xt.batchCalls(E)):$t;return f.updateResult(),b},[f,y]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),_.useEffect(()=>{f.setOptions(u)},[u,f]),G_(u,m))throw Cy(u,f,o);if(W_({result:m,errorResetBoundary:o,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw m.error;if((k=(S=l.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||k.call(S,u,m),u.experimental_prefetchInRender&&!As&&K_(m,s)){const E=d?Cy(u,f,o):(C=l.getQueryCache().get(u.queryHash))==null?void 0:C.promise;E==null||E.catch($t).finally(()=>{f.updateResult()})}return u.notifyOnChangeProps?m:f.trackResult(m)}function Eu(e,t){return Q_(e,N_)}const Y_=new L_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});ex();/** 141 * @remix-run/router v1.23.0 142 * 143 * Copyright (c) Remix Software Inc. 144 * 145 * This source code is licensed under the MIT license found in the 146 * LICENSE.md file in the root directory of this source tree. 147 * 148 * @license MIT 149 */function Zo(){return Zo=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},Zo.apply(this,arguments)}var Fr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fr||(Fr={}));const _y="popstate";function X_(e){e===void 0&&(e={});function t(s,o){let{pathname:l,search:u,hash:d}=s.location;return Tf("",{pathname:l,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 4,515 bytes, line 149
149function n(s,o){return typeof o=="string"?o:lu(o)}return Z_(t,n,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function J_(){return Math.random().toString(36).substr(2,8)}function ky(e,t){return{usr:e.state,key:e.key,idx:t}}function Tf(e,t,n,s){return n===void 0&&(n=null),Zo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ii(t):t,{state:n,key:t&&t.key||s||J_()})}function lu(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 Ii(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 Z_(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:l=!1}=s,u=o.history,d=Fr.Pop,f=null,m=y();m==null&&(m=0,u.replaceState(Zo({},u.state,{idx:m}),""));function y(){return(u.state||{idx:null}).idx}function v(){d=Fr.Pop;let E=y(),b=E==null?null:E-m;m=E,f&&f({action:d,location:C.location,delta:b})}function x(E,b){d=Fr.Push;let A=Tf(C.location,E,b);m=y()+1;let N=ky(A,m),P=C.createHref(A);try{u.pushState(N,"",P)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(P)}l&&f&&f({action:d,location:C.location,delta:1})}function S(E,b){d=Fr.Replace;let A=Tf(C.location,E,b);m=y();let N=ky(A,m),P=C.createHref(A);u.replaceState(N,"",P),l&&f&&f({action:d,location:C.location,delta:0})}function k(E){let b=o.location.origin!=="null"?o.location.origin:o.location.href,A=typeof E=="string"?E:lu(E);return A=A.replace(/ $/,"%20"),st(b,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,b)}let C={get action(){return d},get location(){return e(o,u)},listen(E){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(_y,v),f=E,()=>{o.removeEventListener(_y,v),f=null}},createHref(E){return t(o,E)},createURL:k,encodeLocation(E){let b=k(E);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:x,replace:S,go(E){return u.go(E)}};return C}var Ty;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ty||(Ty={}));function ek(e,t,n){return n===void 0&&(n="/"),tk(e,t,n)}function tk(e,t,n,s){let o=typeof t=="string"?Ii(t):t,l=hh(o.pathname||"/",n);if(l==null)return null;let u=jx(e);nk(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let m=pk(l);d=dk(u[f],m)}return d}function jx(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(l,u,d)=>{let f={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};f.relativePath.startsWith("/")&&(st(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 m=Ur([s,f.relativePath]),y=n.concat(f);l.children&&l.children.length>0&&(st(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),jx(l.children,t,y,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:uk(m,l.index),routesMeta:y})};return e.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))o(l,u);else for(let f of Ox(l.path))o(l,u,f)}),t}function Ox(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 u=Ox(s.join("/")),d=[];return d.push(...u.map(f=>f===""?l:[l,f].join("/"))),o&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function nk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ck(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const rk=/^:[\w-]+$/,sk=3,ik=2,ok=1,ak=10,lk=-2,Ny=e=>e==="*";function uk(e,t){let n=e.split("/"),s=n.length;return n.some(Ny)&&(s+=lk),t&&(s+=ik),n.filter(o=>!Ny(o)).reduce((o,l)=>o+(rk.test(l)?sk:l===""?ok:ak),s)}function ck(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 dk(e,t,n){let{routesMeta:s}=e,o={},l="/",u=[];for(let d=0;d<s.length;++d){let f=s[d],m=d===s.length-1,y=l==="/"?t:t.slice(l.length)||"/",v=fk({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},y),x=f.route;if(!v)return null;
vendor: 9,695 bytes, lines 149-158
149Object.assign(o,v.params),u.push({params:o,pathname:Ur([l,v.pathname]),pathnameBase:vk(Ur([l,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(l=Ur([l,v.pathnameBase]))}return u}function fk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=hk(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],u=l.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:s.reduce((m,y,v)=>{let{paramName:x,isOptional:S}=y;if(x==="*"){let C=d[v]||"";u=l.slice(0,l.length-C.length).replace(/(.)\/+$/,"$1")}const k=d[v];return S&&!k?m[x]=void 0:m[x]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:u,pattern:e}}function hk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rx(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,(u,d,f)=>(s.push({paramName:d,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 pk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rx(!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 hh(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 mk(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?Ii(e):e;return{pathname:n?n.startsWith("/")?n:gk(n,t):t,search:xk(s),hash:wk(o)}}function gk(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 Id(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 yk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dx(e,t){let n=yk(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Mx(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=Ii(e):(o=Zo({},e),st(!o.pathname||!o.pathname.includes("?"),Id("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),Id("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),Id("#","search","hash",o)));let l=e===""||o.pathname==="",u=l?"/":o.pathname,d;if(u==null)d=n;else{let v=t.length-1;if(!s&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),v-=1;o.pathname=x.join("/")}d=v>=0?t[v]:"/"}let f=mk(o,d),m=u&&u!=="/"&&u.endsWith("/"),y=(l||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(m||y)&&(f.pathname+="/"),f}const Ur=e=>e.join("/").replace(/\/\/+/g,"/"),vk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lx=["post","put","patch","delete"];new Set(Lx);const Sk=["get",...Lx];new Set(Sk);/** 150 * React Router v6.30.1 151 * 152 * Copyright (c) Remix Software Inc. 153 * 154 * This source code is licensed under the MIT license found in the 155 * LICENSE.md file in the root directory of this source tree. 156 * 157 * @license MIT 158 */function ea(){return ea=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},ea.apply(this,arguments)}const ph=_.createContext(null),Ek=_.createContext(null),Ms=_.createContext(null),Cu=_.createContext(null),Ls=_.createContext({outlet:null,matches:[],isDataRoute:!1}),Ix=_.createContext(null);function Ck(e,t){let{relative:n}=t===void 0?{}:t;ha()||st(!1);let{basename:s,navigator:o}=_.useContext(Ms),{hash:l,pathname:u,search:d}=Vx(e,{relative:n}),f=u;return s!=="/"&&(f=u==="/"?s:Ur([s,u])),o.createHref({pathname:f,search:d,hash:l})}function ha(){return _.useContext(Cu)!=null}function Fi(){return ha()||st(!1),_.useContext(Cu).location}function Fx(e){_.useContext(Ms).static||_.useLayoutEffect(e)}function _k(){let{isDataRoute:e}=_.useContext(Ls);return e?Fk():kk()}function kk(){ha()||st(!1);let e=_.useContext(ph),{basename:t,future:n,navigator:s}=_.useContext(Ms),{matches:o}=_.useContext(Ls),{pathname:l}=Fi(),u=JSON.stringify(Dx(o,n.v7_relativeSplatPath)),d=_.useRef(!1);return Fx(()=>{d.current=!0}),_.useCallback(function(m,y){if(y===void 0&&(y={}),!d.current)return;if(typeof m=="number"){s.go(m);return}let v=Mx(m,JSON.parse(u),l,y.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Ur([t,v.pathname])),(y.replace?s.replace:s.push)(v,y.state,y)},[t,s,u,l,e])}function Vx(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=_.useContext(Ms),{matches:o}=_.useContext(Ls),{pathname:l}=Fi(),u=JSON.stringify(Dx(o,s.v7_relativeSplatPath));return _.useMemo(()=>Mx(e,JSON.parse(u),l,n==="path"),[e,u,l,n])}function Tk(e,t){return Nk(e,t)}function Nk(e,t,n,s){ha()||st(!1);let{navigator:o}=_.useContext(Ms),{matches:l}=_.useContext(Ls),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let m=Fi(),y;if(t){var v;let E=typeof t=="string"?Ii(t):t;f==="/"||(v=E.pathname)!=null&&v.startsWith(f)||st(!1),y=E}else y=m;let x=y.pathname||"/",S=x;if(f!=="/"){let E=f.replace(/^\//,"").split("/");S="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let k=ek(e,{pathname:S}),C=Ok(k&&k.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:Ur([f,o.encodeLocation?o.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?f:Ur([f,o.encodeLocation?o.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,n,s);return t&&C?_.createElement(Cu.Provider,{value:{location:ea({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Fr.Pop}},C):C}function Pk(){let e=Ik(),t=bk(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 _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:o},n):null,null)}const Ak=_.createElement(Pk,null);class Rk extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,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?_.createElement(Ls.Provider,{value:this.props.routeContext},_.createElement(Ix.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jk(e){let{routeContext:t,match:n,children:s}=e,o=_.useContext(ph);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Ls.Provider,{value:t},s)}function Ok(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 u=e,d=(o=n)==null?void 0:o.errors;if(d!=null){let y=u.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);y>=0||st(!1),u=u.slice(0,Math.min(u.length,y+1))}let f=!1,m=-1;if(n&&s&&s.v7_partialHydration)for(let y=0;y<u.length;y++){let v=u[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=y),v.route.id){let{loaderData:x,errors:S}=n,k=v.route.loader&&x[v.route.id]===void 0&&(!S||S[v.route.id]===void 0);if(v.route.lazy||k){f=!0,m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}return u.reduceRight((y,v,x)=>{let S,k=!1,C=null,E=null;n&&(S=d&&v.route.id?d[v.route.id]:void 0,C=v.route.errorElement||Ak,f&&(m<0&&x===0?(Vk("route-fallback"),k=!0,E=null):m===x&&(k=!0,E=v.route.hydrateFallbackElement||null)));let b=t.concat(u.slice(0,x+1)),A=()=>{let N;return S?N=C:k?N=E:v.route.Component?N=_.createElement(v.route.Component,null):v.route.element?N=v.route.element:N=y,_.createElement(jk,{match:v,routeContext:{outlet:y,matches:b,isDataRoute:n!=null},children:N})};return n&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?_.createElement(Rk,{location:n.location,revalidation:n.revalidation,component:C,error:S,children:A(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):A()},null)}var Bx=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Bx||{}),Ux=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useL
158oaderData",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})(Ux||{});function Dk(e){let t=_.useContext(ph);return t||st(!1),t}function Mk(e){let t=_.useContext(Ek);return t||st(!1),t}function Lk(e){let t=_.useContext(Ls);return t||st(!1),t}function zx(e){let t=Lk(),n=t.matches[t.matches.length-1];return n.route.id||st(!1),n.route.id}function Ik(){var e;let t=_.useContext(Ix),n=Mk(),s=zx();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function Fk(){let{router:e}=Dk(Bx.UseNavigateStable),t=zx(Ux.UseNavigateStable),n=_.useRef(!1);return Fx(()=>{n.current=!0}),_.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ea({fromRouteId:t},l)))},[e,t])}const Py={};function Vk(e,t,n){Py[e]||(Py[e]=!0)}function Bk(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Io(e){st(!1)}function Uk(e){let{basename:t="/",children:n=null,location:s,navigationType:o=Fr.Pop,navigator:l,static:u=!1,future:d}=e;ha()&&st(!1);let f=t.replace(/^\/*/,"/"),m=_.useMemo(()=>({basename:f,navigator:l,static:u,future:ea({v7_relativeSplatPath:!1},d)}),[f,d,l,u]);typeof s=="string"&&(s=Ii(s));let{pathname:y="/",search:v="",hash:x="",state:S=null,key:k="default"}=s,C=_.useMemo(()=>{let E=hh(y,f);return E==null?null:{location:{pathname:E,search:v,hash:x,state:S,key:k},navigationType:o}},[f,y,v,x,S,k,o]);return C==null?null:_.createElement(Ms.Provider,{value:m},_.createElement(Cu.Provider,{children:n,value:C}))}function zk(e){let{children:t,location:n}=e;return Tk(Nf(t),n)}new Promise(()=>{});function Nf(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(s,o)=>{if(!_.isValidElement(s))return;let l=[...t,o];if(s.type===_.Fragment){n.push.apply(n,Nf(s.props.children,l));return}s.type!==Io&&st(!1),!s.props.index||!s.props.children||st(!1);let u={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&&(u.children=Nf(s.props.children,l)),n.push(u)}),n}/** 159 * React Router DOM v6.30.1 160 * 161 * Copyright (c) Remix Software Inc. 162 * 163 * This source code is licensed under the MIT license found in the 164 * LICENSE.md file in the root directory of this source tree. 165 * 166 * @license MIT 167 */function Pf(){return Pf=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},Pf.apply(this,arguments)}function $k(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 Hk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wk(e,t){return e.button===0&&(!t||t==="_self")&&!Hk(e)}const qk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Kk="6";try{window.__reactRouterVersion=Kk}catch{}const Gk="startTransition",Ay=Zv[Gk];function Qk(e){let{basename:t,children:n,future:s,window:o}=e,l=_.useRef();l.current==null&&(l.current=X_({window:o,v5Compat:!0}));let u=l.current,[d,f]=_.useState({action:u.action,location:u.location}),{v7_startTransition:m}=s||{},y=_.useCallback(v=>{m&&Ay?Ay(()=>f(v)):f(v)},[f,m]);return _.useLayoutEffect(()=>u.listen(y),[u,y]),_.useEffect(()=>Bk(s),[s]),_.createElement(Uk,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:u,future:s})}const Yk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zt=_.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:l,replace:u,state:d,target:f,to:m,preventScrollReset:y,viewTransition:v}=t,x=$k(t,qk),{basename:S}=_.useContext(Ms),k,C=!1;if(typeof m=="string"&&Xk.test(m)&&(k=m,Yk))try{let N=new URL(window.location.href),P=m.startsWith("//")?new URL(N.protocol+m):new URL(m),I=hh(P.pathname,S);P.origin===N.origin&&I!=null?m=I+P.search+P.hash:C=!0}catch{}let E=Ck(m,{relative:o}),b=Jk(m,{replace:u,state:d,target:f,preventScrollReset:y,relative:o,viewTransition:v});function A(N){s&&s(N),N.defaultPrevented||b(N)}return _.createElement("a",Pf({},x,{href:k||E,onClick:C||l?s:A,ref:n,target:f}))});var Ry;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ry||(Ry={}));var jy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jy||(jy={}));function Jk(e,t){let{target:n,replace:s,state:o,preventScrollReset:l,relative:u,viewTransition:d}=t===void 0?{}:t,f=_k(),m=Fi(),y=Vx(e,{relative:u});return _.useCallback(v=>{if(Wk(v,n)){v.preventDefault();let x=s!==void 0?s:lu(m)===lu(y);f(e,{replace:x,state:o,preventScrollReset:l,relative:u,viewTransition:d})}},[m,f,y,s,o,n,e,l,u,d])}function $x(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zk}=Object.prototype,{getPrototypeOf:Ai}=Object,{iterator:pa,toStringTag:Hx}=Symbol,uu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ta=(e,t)=>{let n=e;const s=[];for(;n!=null&&n!==Object.prototype;){if(s.indexOf(n)!==-1)return!1;if(s.push(n),uu(n,t))return!0;n=Ai(n)}return!1},eT=(e,t)=>
vendor: 20,353 bytes, lines 167-169
167e!=null&&ta(e,t)?e[t]:void 0,mh=(e=>t=>{const n=Zk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fn=e=>(e=e.toLowerCase(),t=>mh(t)===e),_u=e=>t=>typeof t===e,{isArray:Rs}=Array,js=_u("undefined");function Vi(e){return e!==null&&!js(e)&&e.constructor!==null&&!js(e.constructor)&&Ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wx=fn("ArrayBuffer");function tT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wx(e.buffer),t}const nT=_u("string"),Ht=_u("function"),qx=_u("number"),Bi=e=>e!==null&&typeof e=="object",rT=e=>e===!0||e===!1,Xl=e=>{if(!Bi(e))return!1;const t=Ai(e);return(t===null||t===Object.prototype||Ai(t)===null)&&!ta(e,Hx)&&!ta(e,pa)},sT=e=>{if(!Bi(e)||Vi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},iT=fn("Date"),oT=fn("File"),aT=e=>!!(e&&typeof e.uri<"u"),lT=e=>e&&typeof e.getParts<"u",uT=fn("Blob"),cT=fn("FileList"),dT=fn("Set"),fT=e=>Bi(e)&&Ht(e.pipe);function hT(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Oy=hT(),Dy=typeof Oy.FormData<"u"?Oy.FormData:void 0,pT=e=>{if(!e)return!1;if(Dy&&e instanceof Dy)return!0;const t=Ai(e);if(!t||t===Object.prototype||!Ht(e.append))return!1;const n=mh(e);return n==="formdata"||n==="object"&&Ht(e.toString)&&e.toString()==="[object FormData]"},mT=fn("URLSearchParams"),[gT,yT,vT,xT]=["ReadableStream","Request","Response","Headers"].map(fn),wT=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]),Rs(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(Vi(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let d;for(s=0;s<u;s++)d=l[s],t.call(null,e[d],d,e)}}function Kx(e,t){if(Vi(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 ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gx=e=>!js(e)&&e!==ps;function Af(...e){const{caseless:t,skipUndefined:n}=Gx(this)&&this||{},s={},o=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=t&&typeof u=="string"&&Kx(s,u)||u,f=uu(s,d)?s[d]:void 0;Xl(f)&&Xl(l)?s[d]=Af(f,l):Xl(l)?s[d]=Af({},l):Rs(l)?s[d]=l.slice():(!n||!js(l))&&(s[d]=l)};for(let l=0,u=e.length;l<u;l++){const d=e[l];if(!d||Vi(d)||(ma(d,o),typeof d!="object"||Rs(d)))continue;const f=Object.getOwnPropertySymbols(d);for(let m=0;m<f.length;m++){const y=f[m];jT.call(d,y)&&o(d[y],y)}}return s}const bT=(e,t,n,{allOwnKeys:s}={})=>(ma(t,(o,l)=>{n&&Ht(o)?Object.defineProperty(e,l,{__proto__:null,value:$x(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),ST=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ET=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},CT=(e,t,n,s)=>{let o,l,u;const d={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)u=o[l],(!s||s(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=n!==!1&&Ai(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_T=(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},kT=e=>{if(!e)return null;if(Rs(e))return e;let t=e.length;if(!qx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ai(Uint8Array)),NT=(e,t)=>{const s=(e&&e[pa]).call(e);let o;for(;(o=s.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},PT=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},AT=fn("HTMLFormElement"),RT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),{propertyIsEnumerable:jT}=Object.prototype,OT=fn("RegExp"),Qx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ma(n,(o,l)=>{let u;(u=t(o,l,e))!==!1&&(s[l]=u||o)}),Object.defineProperties(e,s)},DT=e=>{Qx(e,(t,n)=>{if(Ht(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(Ht(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+"'")})}})},MT=(e,t)=>{const n={},s=o=>{o.forEach(l=>{n[l]=!0})};return Rs(e)?s(e):s(String(e).split(t)),n},LT=()=>{},IT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function FT(e){return!!(e&&Ht(e.append)&&e[Hx]==="FormData"&&e[pa])}const VT=e=>{const t=new WeakSet,n=s=>{if(Bi(s)){if(t.has(s))return;if(Vi(s))return s;if(!("toJSON"in s)){t.add(s);let o;if(dT(s)){o=[];for(const l of s){const u=n(l);!js(u)&&o.push(u)}}else o=Rs(s)?[]:{},ma(s,(l,u)=>{const d=n(l);!js(d)&&(o[u]=d)});return t.delete(s),o}}return s};return n(e)},BT=fn("AsyncFunction"),UT=e=>e&&(Bi(e)||Ht(e))&&Ht(e.then)&&Ht(e.catch),Yx=((e,t)=>e?setImmediate:t?((n,s)=>(ps.addEventListener("message",({source:o,data:l})=>{o===ps&&l===n&&s.length&&s.shift()()},!1),o=>{s.push(o),ps.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ht(ps.postMessage)),zT=typeof queueMicrotask<"u"?queueMicrotask.bind(ps):typeof process<"u"&&process.nextTick||Yx,Xx=e=>e!=null&&Ht(e[pa]),$T=e=>e!=null&&ta(e,pa)&&Xx(e),O={isArray:Rs,isArrayBuffer:Wx,isBuffer:Vi,isFormData:pT,isArrayBufferView:tT,isString:nT,isNumber:qx,isBoolean:rT,isObject:Bi,isPlainObject:Xl,isEmptyObject:sT,isReadableStream:gT,isRequest:yT,isResponse:vT,isHeaders:xT,isUndefined:js,isDate:iT,isFile:oT,isReactNativeBlob:aT,isReactNative:lT,isBlob:uT,isRegExp:OT,isFunction:Ht,isStream:fT,isURLSearchParams:mT,isTypedArray:TT,isFileList:cT,forEach:ma,merge:Af,extend:bT,trim:wT,stripBOM:ST,inherits:ET,toFlatObject:CT,kindOf:mh,kindOfTest:fn,endsWith:_T,toArray:kT,forEachEntry:NT,matchAll:PT,isHTMLForm:AT,hasOwnProperty:uu,hasOwnProp:uu,hasOwnInPrototypeChain:ta,getSafeProp:eT,reduceDescriptors:Qx,freezeMethods:DT,toObjectSet:MT,toCamelCase:RT,noop:LT,toFiniteNumber:IT,findKey:Kx,global:ps,isContextDefined:Gx,isSpecCompliantForm:FT,toJSONObject:VT,isAsyncFn:BT,isThenable:UT,setImmediate:Yx,asap:zT,isIterable:Xx,isSafeIterable:$T},HT=O.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"]),WT=e=>{const t={};let n,s,o;return e&&e.split(` 168`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),s=u.substring(o+1).trim();const d=O.hasOwnProp(t,n);!n||d&&O.hasOwnProp(HT,n)||(n==="set-cookie"?d?t[n].push(s):t[n]=[s]:t[n]=d?t[n]+", "+s:s)}),t};function qT(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const KT=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),GT=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function gh(e,t){return O.isArray(e)?e.map(n=>gh(n,t)):qT(String(e).replace(t,""))}const QT=e=>gh(e,KT),YT=e=>gh(e,GT);function Jx(e){const t=Object.create(null);return O.forEach(e.toJSON(),(n,s)=>{t[s]=YT(n)}),t}const My=Symbol("internals");function Ro(e){return e&&String(e).trim().toLowerCase()}function Jl(e){return e===!1||e==null?e:O.isArray(e)?e.map(Jl):QT(String(e))}function XT(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 JT=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Fd(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function ZT(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let s=1;s<t;s++){const o=e.charCodeAt(s);if(o===34||o===92&&(s+=1,s>=t))return e;n+=e[s]}return n}function e2(e){const t=Object.create(null),n=String(e);let s=0,o=!1,l=!1;function u(d){const f=Fd(n.slice(s,d)),m=f.indexOf("=");if(m<1)return;const y=Fd(f.slice(0,m));if(!JT.test(y))return;const v=y.toLowerCase();if(v==="__proto__"||v==="constructor"||v==="prototype")return;const x=Fd(f.slice(m+1));t[v]=ZT(x)}for(let d=0;d<n.length;d++){const f=n.charCodeAt(d);o?l?l=!1:f===92?l=!0:f===34&&(o=!1):f===34?o=!0:(f===44||f===59)&&(u(d),s=d+1)}return u(n.length),t}const t2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vd(e,t,n,s,o){if(O.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!O.isString(t)){if(O.isString(s))return t.indexOf(s)!==-1;if(O.isRegExp(s))return s.test(t)}}function n2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function r2(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,l,u){return this[s].call(this,t,o,l,u)},configurable:!0})})}let Nt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function l(d,f,m){const y=Ro(f);if(!y)return;const v=O.findKey(o,y);(!v||o[v]===void 0||m===!0||m===void 0&&o[v]!==!1)&&(o[v||f]=Jl(d))}const u=(d,f)=>O.forEach(d,(m,y)=>l(m,y,f));if(O.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(O.isString(t)&&(t=t.trim())&&!t2(t))u(WT(t),n);else if(O.isObject(t)&&O.isSafeIterable(t)){let d=Object.create(null),f,m;for(const y of t){if(!O.isArray(y))throw new TypeError("Object iterator must return a key-value pair");m=y[0],O.hasOwnProp(d,m)?(f=d[m],d[m]=O.isArray(f)?[...f,y[1]]:[f,y[1]]):d[m]=y[1]}u(d,n)}else t!=null&&l(n,t,s);return this}get(t,n){if(t=Ro(t),t){const s=O.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return XT(o);if(O.isFunction(n))return n.call(this,o,s);if(O.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ro(t),t){const s=O.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Vd(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function l(u){if(u=Ro(u),u){const d=O.findKey(s,u);d&&(!n||Vd(s,s[d],d,n))&&(delete s[d],o=!0)}}return O.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||Vd(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,s={};return O.forEach(this,(o,l)=>{const u=O.findKey(s,l);if(u){n[u]=Jl(o),delete n[l];return}const d=t?n2(l):String(l).trim();d!==l&&delete n[l],n[d]=Jl(o),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&O.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(` 169`)}getSetCookie(){const t=this.get("set-cookie");return O.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return e2(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[My]=this[My]={accessors:{}}).accessors,o=this.prototype;function l(u){const d=Ro(u);s[d]||(r2(o,u),s[d]=!0)}return O.isArray(t)?t.forEach(l):l(t),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(Nt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});O.freezeMethods(Nt);const cu="[REDACTED ****]";function s2(e){if(O.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(O.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function i2(e,t){const n=new Set(t.map(l=>String(l).toLowerCase())),s=[],o=l=>{if(l===null||typeof l!="object"||O.isBuffer(l))return l;if(s.indexOf(l)!==-1)return;l instanceof Nt&&(l=l.toJSON()),s.push(l);let u;if(O.isArray(l))u=[],l.forEach((d,f)=>{const m=o(d);O.isUndefined(m)||(u[f]=m)});else{if(!O.isPlainObject(l)&&s2(l))return s.pop(),l;u=Object.create(null);for(const[d,f]of Object.entries(l)){const m=n.has(d.toLowerCase())?cu:o(f);O.isUndefined(m)||(u[d]=m)}}return s.pop(),u};return o(e)}function Ly(e){try{return String(e)}catch{return""}}function o2(e){return e.errors.map(n=>{try{return n&&n.message?Ly(n.message):Ly(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let X=class Zx extends Error{static from(t,n,s,o,l,u){let d=t.message;!d&&O.isArray(t.errors)&&t.errors.length&&(d=o2(t));const f=new Zx(d,n||t.code,s,o,l);return Object.defineProperty(f,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),f.name=t.name,t.status!=null&&f.status==null&&(f.status=t.status),u&&Object.assign(f,u),f}constructor(t,n,s,o,l){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,n=t&&O.hasOwnProp(t,"redact")?t.redact:void 0,s=O.isArray(n)&&n.length>0?i2(t,n):O.toJSONObject(t);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:s,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";X.ERR_BAD_OPTION="ERR_BAD_OPTION";X.ECONNABORTED="ECONNABORTED";X.ETIMEDOUT="ETIMEDOUT";X.ECONNREFUSED="ECONNREFUSED";X.ERR_NETWORK="ERR_NETWORK";X.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";X.ERR_DEPRECATED="ERR_DEPRECATED";X.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";X.ERR_BAD_REQUEST="ERR_BAD_REQUEST";X.ERR_CANCELED="ERR_CANCELED";X.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";X.ERR_INVALID_URL="ERR_INVALID_URL";X.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const a2=null,ew=100;function Rf(e){return O.isPlainObject(e)||O.isArray(e)}function tw(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Bd(e,t,n){return e?e.concat(t).map(function(o,l){return o=tw(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function l2(e){return O.isArray(e)&&!e.some(Rf)}const u2=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});function ku(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,N){return!O.isUndefined(N[A])});const s=n.metaTokens,o=n.visitor||k,l=n.dots,u=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?ew:n.maxDepth,m=d&&O.isSpecCompliantForm(t),y=[];if(!O.isFunction(o))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(O.isDate(b))return b.toISOString();if(O.isBoolean(b))return b.toString();if(!m&&O.isBlob(b))throw new X("Blob is not supported. Use a Buffer instead.");if(O.isArrayBuffer(b)||O.isTypedArray(b)){if(m&&typeof d=="function")return new d([b]);throw new X("Blob is not supported. Use a Buffer instead.",X.ERR_NOT_SUPPORT)}return b}function x(b){if(b>f)throw new X("Object is too deeply nested ("+b+" levels). Max depth: "+f,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function S(b,A){if(f===1/0)return JSON.stringify(b);const N=[];return JSON.stringify(b,function(I,z){if(!O.isObject(z))return z;for(;N.length&&N[N.length-1]!==this;)N.pop();return N.push(z),x(A+N.length-1),z})}function k(b,A,N){let P=b;if(O.isReactNative(t)&&O.isReactNativeBlob(b))return t.append(Bd(N,A,l),v(b)),!1;if(b&&!N&&typeof b=="object"){if(O.endsWith(A,"{}"))A=s?A:A.slice(0,-2),b=S(b,1);else if(O.isArray(b)&&l2(b)||(O.isFileList(b)||O.endsWith(A,"[]"))&&(P=O.toArray(b)))return A=tw(A),P.forEach(function(z,Q){!(O.isUndefined(z)||z===null)&&t.append(u===!0?Bd([A],Q,l):u===null?A:A+"[]",v(z))}),!1}return Rf(b)?!0:(t.append(Bd(N,A,l),v(b)),!1)}const C=Object.assign(u2,{defaultVisitor:k,convertValue:v,isVisitable:Rf});function E(b,A,N=0){if(!O.isUndefined(b)){if(x(N),y.indexOf(b)!==-1)throw new Error("Circular reference detected in "+A.join("."));y.push(b),O.forEach(b,function(I,z){(!(O.isUndefined(I)||I===null)&&o.call(t,I,O.isString(z)?z.trim():z,A,C))===!0&&E(I,A?A.concat(z):[z],N+1)}),y.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Iy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function yh(e,t){this._pairs=[],e&&ku(e,this,t)}const nw=yh.prototype;nw.append=function(t,n){this._pairs.push([t,n])};nw.toString=function(t){const n=t?s=>t.call(this,s,Iy):Iy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function c2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rw(e,t,n){if(!t)return e;e=e||"";const s=O.isFunction(n)?{serialize:n}:n,o=O.getSafeProp(s,"encode")||c2,l=O.getSafeProp(s,"serialize");let u;if(l?u=l(t,s):u=O.isURLSearchParams(t)?t.toString():new yh(t,s).toString(o),u){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Fy{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){O.forEach(this.handlers,function(s){s!==null&&t(s)})}}const vh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},d2=typeof URLSearchParams<"u"?URLSearchParams:yh,f2=typeof FormData<"u"?FormData:null,h2=typeof Blob<"u"?Blob:null,p2={isBrowser:!0,classes:{URLSearchParams:d2,FormData:f2,Blob:h2},protocols:["http","https","file","blob","url","data"]},xh=typeof window<"u"&&typeof document<"u",jf=typeof navigator=="object"&&navigator||void 0,m2=xh&&(!jf||["ReactNative","NativeScript","NS"].indexOf(jf.product)<0),g2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",y2=xh&&window.location.href||"http://localhost",v2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xh,hasStandardBrowserEnv:m2,hasStandardBrowserWebWorkerEnv:g2,navigator:jf,origin:y2},Symbol.toStringTag,{value:"Module"})),wt={...v2,...p2};function x2(e,t){return ku(e,new wt.classes.URLSearchParams,{visitor:function(n,s,o,l){return wt.isNode&&O.isBuffer(n)?(this.append(s,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}const Vy=ew;function sw(e){if(e>Vy)throw new X("FormData field is too deeply nested ("+e+" levels). Max depth: "+Vy,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w2(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let s;for(;(s=n.exec(e))!==null;)sw(t.length),t.push(s[0]==="[]"?"":s[1]||s[0]);return t}function b2(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 iw(e){function t(n,s,o,l){sw(l);let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=l>=n.length;return u=!u&&O.isArray(o)?o.length:u,f?(O.hasOwnProp(o,u)?o[u]=O.isArray(o[u])?o[u].concat(s):[o[u],s]:o[u]=s,!d):((!O.hasOwnProp(o,u)||!O.isObject(o[u]))&&(o[u]=[]),t(n,s,o[u],l)&&O.isArray(o[u])&&(o[u]=b2(o[u])),!d)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(s,o)=>{t(w2(s),o,n,0)}),n}return null}const ui=(e,t)=>e!=null&&O.hasOwnProp(e,t)?e[t]:void 0;function S2(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const ga={transitional:vh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,l=O.isObject(t);
vendor: 22,738 bytes, lines 169-175
169if(l&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return o?JSON.stringify(iw(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t)||O.isReadableStream(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){const f=ui(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return x2(t,f).toString();if((d=O.isFileList(t))||s.indexOf("multipart/form-data")>-1){const m=ui(this,"env"),y=m&&m.FormData;return ku(d?{"files[]":t}:t,y&&new y,f)}}return l||o?(n.setContentType("application/json",!1),S2(t)):t}],transformResponse:[function(t){const n=ui(this,"transitional")||ga.transitional,s=n&&n.forcedJSONParsing,o=ui(this,"responseType"),l=o==="json";if(O.isResponse(t)||O.isReadableStream(t))return t;if(t&&O.isString(t)&&(s&&!o||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,ui(this,"parseReviver"))}catch(f){if(d)throw f.name==="SyntaxError"?X.from(f,X.ERR_BAD_RESPONSE,this,null,ui(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch","query"],e=>{ga.headers[e]={}});function Ud(e,t){const n=this||ga,s=t||n,o=Nt.from(s.headers);let l=s.data;return O.forEach(e,function(d){l=d.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function ow(e){return!!(e&&e.__CANCEL__)}let ya=class extends X{constructor(t,n,s){super(t??"canceled",X.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function aw(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new X("Request failed with status code "+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}function E2(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function C2(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,l=0,u;return t=t!==void 0?t:1e3,function(f){const m=Date.now(),y=s[l];u||(u=m),n[o]=f,s[o]=m;let v=l,x=0;for(;v!==o;)x+=n[v++],v=v%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),m-u<t)return;const S=y&&m-y;return S?Math.round(x*1e3/S):void 0}}function _2(e,t){let n=0,s=1e3/t,o,l;const u=(m,y=Date.now())=>{n=y,o=null,l&&(clearTimeout(l),l=null),e(...m)};return[(...m)=>{const y=Date.now(),v=y-n;v>=s?u(m,y):(o=m,l||(l=setTimeout(()=>{l=null,u(o)},s-v)))},()=>o&&u(o)]}const du=(e,t,n=3)=>{let s=0;const o=C2(50,250);return _2(l=>{if(!l||typeof l.loaded!="number")return;const u=l.loaded,d=l.lengthComputable?l.total:void 0,f=Math.max(0,d!=null?Math.min(u,d):u),m=Math.max(0,f-s),y=o(m);s=Math.max(s,f);const v={loaded:f,total:d,progress:d?f/d:void 0,bytes:m,rate:y||void 0,estimated:y&&d?(d-f)/y:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(v)},n)},By=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Uy=(e,t=O.asap)=>(...n)=>t(()=>e(...n)),k2=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,T2=wt.hasStandardBrowserEnv?{write(e,t,n,s,o,l,u){if(typeof document>"u")return;const d=[`${e}=${encodeURIComponent(t)}`];O.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),O.isString(s)&&d.push(`path=${s}`),O.isString(o)&&d.push(`domain=${o}`),l===!0&&d.push("secure"),O.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),o=s.indexOf("=");if(o!==-1&&s.slice(0,o)===e)try{return decodeURIComponent(s.slice(o+1))}catch{return s.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function N2(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P2(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const A2=/^https?:(?!\/\/)/i,R2=/[\t\n\r]/g;function j2(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function O2(e){return j2(e).replace(R2,"")}function D2(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,s="")=>`${n}${s}${cu}`)}function M2(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${cu}@`),n=t.indexOf("#"),o=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${cu}`);return n===-1?o:`${o}#${D2(t.slice(n+1))}`}function zy(e,t){if(typeof e=="string"){const n=O2(e);if(A2.test(n))throw new X(`Invalid URL ${JSON.stringify(M2(n))}: missing "//" after protocol`,X.ERR_INVALID_URL,t)}}function lw(e,t,n,s){zy(t,s);let o=!N2(t);return e&&(o||n===!1)?(zy(e,s),P2(e,t)):t}const $y=e=>e instanceof Nt?{...e}:e,L2=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Os(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(y,v,x,S){return O.isPlainObject(y)&&O.isPlainObject(v)?O.merge.call({caseless:S},y,v):O.isPlainObject(v)?O.merge({},v):O.isArray(v)?v.slice():v}function o(y,v,x,S){if(O.isUndefined(v)){if(!O.isUndefined(y))return s(void 0,y,x,S)}else return s(y,v,x,S)}function l(y,v){if(!O.isUndefined(v))return s(void 0,v)}function u(y,v){if(O.isUndefined(v)){if(!O.isUndefined(y))return s(void 0,y)}else return s(void 0,v)}function d(y){const v=O.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!O.isUndefined(v))if(O.isPlainObject(v)){if(O.hasOwnProp(v,y))return v[y]}else return;const x=O.hasOwnProp(e,"transitional")?e.transitional:void 0;if(O.isPlainObject(x)&&O.hasOwnProp(x,y))return x[y]}function f(y,v,x){if(O.hasOwnProp(t,x))return s(y,v);if(O.hasOwnProp(e,x))return s(void 0,y)}const m={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:f,headers:(y,v,x)=>o($y(y),$y(v),x,!0)};return O.forEach(L2({...e,...t}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const x=O.hasOwnProp(m,v)?m[v]:o,S=O.hasOwnProp(e,v)?e[v]:void 0,k=O.hasOwnProp(t,v)?t[v]:void 0,C=x(S,k,v);O.isUndefined(C)&&x!==f||(n[v]=C)}),O.hasOwnProp(t,"validateStatus")&&O.isUndefined(t.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(O.hasOwnProp(e,"validateStatus")?n.validateStatus=s(void 0,e.validateStatus):delete n.validateStatus),n}const I2=["content-type","content-length"];function F2(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([s,o])=>{I2.includes(s.toLowerCase())&&e.set(s,o)})}const V2=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function uw(e){const t=Os({},e),n=x=>O.hasOwnProp(t,x)?t[x]:void 0,s=n("data");let o=n("withXSRFToken");const l=n("xsrfHeaderName"),u=n("xsrfCookieName");let d=n("headers");const f=n("auth"),m=n("baseURL"),y=n("allowAbsoluteUrls"),v=n("url");if(t.headers=d=Nt.from(d),t.url=rw(lw(m,v,y,t),n("params"),n("paramsSerializer")),f){const x=O.getSafeProp(f,"username")||"",S=O.getSafeProp(f,"password")||"";try{d.set("Authorization","Basic "+btoa(x+":"+(S?V2(S):"")))}catch(k){throw X.from(k,X.ERR_BAD_OPTION_VALUE,e)}}if(O.isFormData(s)&&(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv||O.isReactNative(s)?d.setContentType(void 0):O.isFunction(s.getHeaders)&&F2(d,s.getHeaders(),n("formDataHeaderPolicy"))),wt.hasStandardBrowserEnv&&(O.isFunction(o)&&(o=o(t)),o===!0||o==null&&k2(t.url))){const S=l&&u&&T2.read(u);S&&d.set(l,S)}return t}const B2=typeof XMLHttpRequest<"u",U2=B2&&function(e){return new Promise(function(n,s){const o=uw(e);let l=o.data;const u=Nt.from(o.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:m}=o,y,v,x,S,k;function C(){S&&S(),k&&k(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function b(){if(!E)return;const N=Nt.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),I={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:N,config:e,request:E};aw(function(Q){n(Q),C()},function(Q){s(Q),C()},I),E=null}"onloadend"in E?E.onloadend=b:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.startsWith("file:"))||setTimeout(b)},E.onabort=function(){E&&(s(new X("Request aborted",X.ECONNABORTED,e,E)),C(),E=null)},E.onerror=function(P){const I=P&&P.message?P.message:"Network Error",z=new X(I,X.ERR_NETWORK,e,E);z.event=P||null,s(z),C(),E=null},E.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||vh;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),s(new X(P,I.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,E)),C(),E=null},l===void 0&&u.setContentType(null),"setRequestHeader"in E&&O.forEach(Jx(u),function(P,I){E.setRequestHeader(I,P)}),O.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),d&&d!=="json"&&(E.responseType=o.responseType),m&&([x,k]=du(m,!0),E.addEventListener("progress",x)),f&&E.upload&&([v,S]=du(f),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(y=N=>{E&&(s(!N||N.type?new ya(null,e,E):N),E.abort(),C(),E=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const A=E2(o.url);if(A&&!wt.protocols.includes(A)){s(new X("Unsupported protocol "+A+":",X.ERR_BAD_REQUEST,e)),C();return}E.send(l||null)})},z2=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(f){if(!s){s=!0,u();const m=f instanceof Error?f:this.reason;n.abort(m instanceof X?m:new ya(m instanceof Error?m.message:m))}};let l=t&&setTimeout(()=>{l=null,o(new X(`timeout of ${t}ms exceeded`,X.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>{if(!s){if(f.aborted){o.call(f);return}f.addEventListener("abort",o,{once:!0})}});const{signal:d}=n;return d.unsubscribe=()=>O.asap(u),d},$2=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},H2=async function*(e,t){for await(const n of W2(e))yield*$2(n,t)},W2=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()}},Hy=(e,t,n,s)=>{const o=H2(e,t);let l=0,u,d=f=>{u||(u=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:m,value:y}=await o.next();if(m){d(),f.close();return}let v=y.byteLength;if(n){let x=l+=v;n(x)}f.enqueue(new Uint8Array(y))}catch(m){throw d(m),m}},cancel(f){return d(f),o.return()}},{highWaterMark:2})},Wy=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,cw=(e,t,n)=>t+2<n&&Wy(e.charCodeAt(t+1))&&Wy(e.charCodeAt(t+2)),qy=e=>e<=57?e-48:(e&223)-55,q2=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,K2=e=>e===9||e===10||e===12||e===13||e===32,G2=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Q2=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Y2=e=>{const t=e.length;let n=0,s=0,o=!1;for(let l=0;l<t;l++){let u=e.charCodeAt(l);if(u===37&&cw(e,l,t)&&(u=qy(e.charCodeAt(l+1))*16+qy(e.charCodeAt(l+2)),l+=2),!K2(u)){if(u===61){s++;continue}if(!q2(u)||s>0){o=!0;continue}n++}}return o||s>2||s>0&&(n+s)%4!==0||n%4===1?Q2(e):G2(n)},X2=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const s=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(s))return t(o);let u=0;for(let d=0,f=o.length;d<f;d++){const m=o.charCodeAt(d);if(m===37&&cw(o,d,f))u+=1,d+=2;else if(m<128)u+=1;else if(m<2048)u+=2;else if(m>=55296&&m<=56319&&d+1<f){const y=o.charCodeAt(d+1);y>=56320&&y<=57343?(u+=4,d++):u+=3}else u+=3}return u};function J2(e){const t=typeof e=="string"?e.indexOf("#"):-1;return X2(t===-1?e:e.slice(0,t),Y2)}const wh="1.19.0",Ky=64*1024,{isFunction:Vl}=O,Z2=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Gy=e=>{if(!O.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Qy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},eN=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},tN=e=>{const t=O.global!==void 0&&O.global!==null?O.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=O.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:l,Response:u}=e,d=o?Vl(o):typeof fetch=="function",f=Vl(l),m=Vl(u);if(!d)return!1;const y=d&&Vl(n),v=d&&(typeof s=="function"?(b=>A=>b.encode(A))(new s):async b=>new Uint8Array(await new l(b).arrayBuffer())),x=f&&y&&Qy(()=>{let b=!1;const A=new l(wt.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),N=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),b&&!N}),S=m&&y&&Qy(()=>O.isReadableStream(new u("").body)),k={stream:S&&(b=>b.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!k[b]&&(k[b]=(A,N)=>{let P=A&&A[b];if(P)return P.call(A);throw new X(`Response type '${b}' is not supported`,X.ERR_NOT_SUPPORT,N)})});const C=async b=>{if(b==null)return 0;if(O.isBlob(b))return b.size;if(O.isSpecCompliantForm(b))return(await new l(wt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(O.isArrayBufferView(b)||O.isArrayBuffer(b))return b.byteLength;if(O.isURLSearchParams(b)&&(b=b+""),O.isString(b))return(await v(b)).byteLength},E=async(b,A)=>{const N=O.toFiniteNumber(b.getContentLength());return N??C(A)};return async b=>{let{url:A,method:N,data:P,signal:I,cancelToken:z,timeout:Q,onDownloadProgress:U,onUploadProgress:me,responseType:Y,headers:oe,withCredentials:Se="same-origin",fetchOptions:Ee,maxContentLength:Re,maxBodyLength:Fe}=uw(b);const pe=O.isNumber(Re)&&Re>-1,ae=O.isNumber(Fe)&&Fe>-1,B=ne=>O.hasOwnProp(b,ne)?b[ne]:void 0;let te=o||fetch;Y=Y?(Y+"").toLowerCase():"text";let G=z2([I,z&&z.toAbortSignal()],Q),M=null;const $=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let le,he=null;const Ce=()=>new X("Request body larger than maxBodyLength limit",X.ERR_BAD_REQUEST,b,M);try{let ne;const fe=B("auth");if(fe){const be=O.getSafeProp(fe,"username")||"",pt=O.getSafeProp(fe,"password")||"";ne={username:be,password:pt}}if(eN(A)){const be=new URL(A,wt.origin);if(!ne&&(be.username||be.password)){const pt=Gy(be.username),pn=Gy(be.password);ne={username:pt,password:pn}}(be.username||be.password)&&(be.username="",be.password="",A=be.href)}if(ne&&(oe.delete("authorization"),oe.set("Authorization","Basic "+btoa(Z2((ne.username||"")+":"+(ne.password||""))))),pe&&typeof A=="string"&&A.startsWith("data:")&&J2(A)>Re)throw new X("maxContentLength size of "+Re+" exceeded",X.ERR_BAD_RESPONSE,b,M);if(ae&&N!=="get"&&N!=="head"){const be=await C(P);if(typeof be=="number"&&isFinite(be)&&(le=be,be>Fe))throw Ce()}const Ne=ae&&(O.isReadableStream(P)||O.isStream(P)),Oe=(be,pt,pn)=>Hy(be,Ky,mn=>{if(ae&&mn>Fe)throw he=Ce();pt&&pt(mn)},pn);if(x&&N!=="get"&&N!=="head"&&(me||Ne)){if(le=le??await E(oe,P),le!==0||Ne){let be=new l(A,{method:"POST",body:P,duplex:"half"}),pt;if(O.isFormData(P)&&(pt=be.headers.get("content-type"))&&oe.setContentType(pt),be.body){const[pn,mn]=me&&By(le,du(Uy(me)))||[];P=Oe(be.body,pn,mn)}}}else if(Ne&&!f&&y&&N!=="get"&&N!=="head")P=Oe(P);else if(Ne&&f&&!x&&N!=="get"&&N!=="head")throw new X("Stream request bodies are not supported by the current fetch implementation",X.ERR_NOT_SUPPORT,b,M);O.isString(Se)||(Se=Se?"include":"omit");const tt=f&&"credentials"in l.prototype;if(O.isFormData(P)){const be=oe.getContentType();be&&/^multipart\/form-data/i.test(be)&&!/boundary=/i.test(be)&&oe.delete("content-type")}oe.set("User-Agent","axios/"+wh,!1);const hn={...Ee,signal:G,method:N.toUpperCase(),headers:Jx(oe.normalize()),body:P,duplex:"half",credentials:tt?Se:void 0};M=f&&new l(A,hn);let ht=await(f?te(M,Ee):te(A,hn));const qr=Nt.from(ht.headers);if(pe){const be=O.toFiniteNumber(qr.getContentLength());if(be!=null&&be>Re)throw new X("maxContentLength size of "+Re+" exceeded",X.ERR_BAD_RESPONSE,b,M)}const Kr=S&&(Y==="stream"||Y==="response");if(S&&ht.body&&(U||pe||Kr&&$)){const be={};["status","statusText","headers"].forEach(Vn=>{be[Vn]=ht[Vn]});const pt=O.toFiniteNumber(qr.getContentLength()),[pn,mn]=U&&By(pt,du(Uy(U),!0))||[];let ir=0;const or=Vn=>{if(pe&&(ir=Vn,ir>Re))throw new X("maxContentLength size of "+Re+" exceeded",X.ERR_BAD_RESPONSE,b,M);pn&&pn(Vn)};ht=new u(Hy(ht.body,Ky,or,()=>{mn&&mn(),$&&$()}),be)}Y=Y||"text";let Jt=await k[O.findKey(k,Y)||"text"](ht,b);if(pe&&!S&&!Kr){let be;if(Jt!=null&&(typeof Jt.byteLength=="number"?be=Jt.byteLength:typeof Jt.size=="number"?be=Jt.size:typeof Jt=="string"&&(be=typeof s=="function"?new s().encode(Jt).byteLength:Jt.length)),typeof be=="number"&&be>Re)throw new X("maxContentLength size of "+Re+" exceeded",X.ERR_BAD_RESPONSE,b,M)}return!Kr&&$&&$(),await new Promise((be,pt)=>{aw(be,pt,{data:Jt,headers:Nt.from(ht.headers),status:ht.status,statusText:ht.statusText,config:b,request:M})})}catch(ne){if($&&$(),G&&G.aborted&&G.reason instanceof X){const fe=G.reason;throw fe.config=b,M&&(fe.request=M),ne!==fe&&Object.defineProperty(fe,"cause",{__proto__:null,value:ne,writable:!0,enumerable:!1,configurable:!0}),fe}if(he)throw M&&!he.request&&(he.request=M),he;if(ne instanceof X)throw M&&!ne.request&&(ne.request=M),ne;if(ne&&ne.name==="TypeError"&&/Load failed|fetch/i.test(ne.message)){const fe=new X("Network Error",X.ERR_NETWORK,b,M,ne&&ne.response);throw Object.defineProperty(fe,"cause",{__proto__:null,value:ne.cause||ne,writable:!0,enumerable:!1,configurable:!0}),fe}throw X.from(ne,ne&&ne.code,b,M,ne&&ne.response)}}},nN=new Map,dw=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,l=[s,o,n];let u=l.length,d=u,f,m,y=nN;for(;d--;)f=l[d],m=y.get(f),m===void 0&&y.set(f,m=d?new Map:tN(t)),y=m;return m};dw();const bh={http:a2,xhr:U2,fetch:{get:dw}};O.forEach(bh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Yy=e=>`- ${e}`,rN=e=>O.isFunction(e)||e===null||e===!1;function sN(e,t){e=O.isArray(e)?e:[e];const{length:n}=e;let s,o;const l={};for(let u=0;u<n;u++){s=e[u];let d;if(o=s,!rN(s)&&(o=bh[(d=String(s)).toLowerCase()],o===void 0))throw new X(`Unknown adapter '${d}'`);if(o&&(O.isFunction(o)||(o=o.get(t))))break;l[d||"#"+u]=o}if(!o){const u=Object.entries(l).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let d=n?u.length>1?`since : 170`+u.map(Yy).join(` 171`):" "+Yy(u[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+d,X.ERR_NOT_SUPPORT)}return o}const fw={getAdapter:sN,adapters:bh};function zd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function $d(e){return zd(e),e.headers=Nt.from(e.headers),e.data=Ud.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fw.getAdapter(e.adapter||ga.adapter,e)(e).then(function(s){zd(e),e.response=s;try{s.data=Ud.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=Nt.from(s.headers),s},function(s){if(!ow(s)&&(zd(e),s&&s.response)){e.response=s.response;try{s.response.data=Ud.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=Nt.from(s.response.headers)}return Promise.reject(s)})}const Tu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tu[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Xy={};Tu.transitional=function(t,n,s){function o(l,u){return"[Axios v"+wh+"] Transitional option '"+l+"'"+u+(s?". "+s:"")}return(l,u,d)=>{if(t===!1)throw new X(o(u," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Xy[u]&&(Xy[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,u,d):!0}};Tu.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function iN(e,t,n){if(typeof e!="object"||e===null)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const l=s[o],u=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(u){const d=e[l],f=d===void 0||u(d,l,e);if(f!==!0)throw new X("option "+l+" must be "+f,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+l,X.ERR_BAD_OPTION)}}const Zl={assertOptions:iN,validators:Tu},_t=Zl.validators;let _s=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Fy,response:new Fy}}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=(()=>{if(!o.stack)return"";const u=o.stack.indexOf(` 172`);return u===-1?"":o.stack.slice(u+1)})();try{if(!s.stack)s.stack=l;else if(l){const u=l.indexOf(` 173`),d=u===-1?-1:l.indexOf(` 174`,u+1),f=d===-1?"":l.slice(d+1);String(s.stack).endsWith(f)||(s.stack+=` 175`+l)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Os(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:l}=n;s!==void 0&&Zl.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean),legacyInterceptorReqResOrdering:_t.transitional(_t.boolean),advertiseZstdAcceptEncoding:_t.transitional(_t.boolean),validateStatusUndefinedResolves:_t.transitional(_t.boolean)}
vendor: 3,310 bytes, line 175
175,!1),o!=null&&(O.isFunction(o)?n.paramsSerializer={serialize:o}:Zl.assertOptions(o,{encode:_t.function,serialize:_t.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Zl.assertOptions(n,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&O.merge(l.common,l[n.method]);l&&O.forEach(["delete","get","head","post","put","patch","query","common"],k=>{delete l[k]}),n.headers=Nt.concat(u,l);const d=[];let f=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(n)===!1)return;f=f&&C.synchronous;const E=n.transitional||vh;E&&E.legacyInterceptorReqResOrdering?d.unshift(C.fulfilled,C.rejected):d.push(C.fulfilled,C.rejected)});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let y,v=0,x;if(!f){const k=[$d.bind(this),void 0];for(k.unshift(...d),k.push(...m),x=k.length,y=Promise.resolve(n);v<x;)y=y.then(k[v++],k[v++]);return y}x=d.length;let S=n;for(;v<x;){const k=d[v++],C=d[v++];try{S=k?k(S):S}catch(E){if(!C){y=Promise.reject(E);break}try{const b=C.call(this,E);O.isThenable(b)&&(y=Promise.resolve(b).then(()=>$d.call(this,S)))}catch(b){y=Promise.reject(b)}break}}if(!y)try{y=$d.call(this,S)}catch(k){y=Promise.reject(k)}for(v=0,x=m.length;v<x;)y=y.then(m[v++],m[v++]);return y}getUri(t){t=Os(this.defaults,t);const n=lw(t.baseURL,t.url,t.allowAbsoluteUrls,t);return rw(n,t.params,t.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(t){_s.prototype[t]=function(n,s){return this.request(Os(s||{},{method:t,url:n,data:s&&O.hasOwnProp(s,"data")?s.data:void 0}))}});O.forEach(["post","put","patch","query"],function(t){function n(s){return function(l,u,d){return this.request(Os(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}_s.prototype[t]=n(),t!=="query"&&(_s.prototype[t+"Form"]=n(!0))});let oN=class hw{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 u=new Promise(d=>{s.subscribe(d),l=d}).then(o);return u.cancel=function(){s.unsubscribe(l)},u},t(function(l,u,d){s.reason||(s.reason=new ya(l,u,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(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 hw(function(o){t=o}),cancel:t}}};function aN(e){return function(n){return e.apply(null,n)}}function lN(e){return O.isObject(e)&&e.isAxiosError===!0}const Of={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
175alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Of).forEach(([e,t])=>{Of[t]=e});function pw(e){const t=new _s(e),n=$x(_s.prototype.request,t);return O.extend(n,_s.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return pw(Os(e,o))},n}const et=pw(ga);et.Axios=_s;et.CanceledError=ya;et.CancelToken=oN;et.isCancel=ow;et.VERSION=wh;et.toFormData=ku;et.AxiosError=X;et.Cancel=et.CanceledError;et.all=function(t){return Promise.all(t)};et.spread=aN;et.isAxiosError=lN;et.mergeConfig=Os;et.AxiosHeaders=Nt;et.formToJSON=e=>iw(O.isHTMLForm(e)?new FormData(e):e);et.getAdapter=fw.getAdapter;et.HttpStatusCode=Of;et.default=et;const{Axios:p3,AxiosError:m3,CanceledError:g3,isCancel:y3,CancelToken:v3,VERSION:x3,all:w3,Cancel:b3,isAxiosError:S3,spread:E3,toFormData:C3,AxiosHeaders:_3,HttpStatusCode:k3,formToJSON:T3,getAdapter:N3,mergeConfig:P3,create:A3}=et,mw=typeof window>"u",Jy=!mw&&window.self!==window.top,uN=!mw&&typeof document>"u",gw=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),yt=[];for(let e=0;e<256;++e)yt.push((e+256).toString(16).slice(1));function cN(e,t=0){return(yt[e[t+0]]+yt[e[t+1]]+yt[e[t+2]]+yt[e[t+3]]+"-"+yt[e[t+4]]+yt[e[t+5]]+"-"+yt[e[t+6]]+yt[e[t+7]]+"-"+yt[e[t+8]]+yt[e[t+9]]+"-"+yt[e[t+10]]+yt[e[t+11]]+yt[e[t+12]]+yt[e[t+13]]+yt[e[t+14]]+yt[e[t+15]]).toLowerCase()}let Hd;const dN=new Uint8Array(16);function fN(){if(!Hd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hd=crypto.getRandomValues.bind(crypto)}return Hd(dN)}const hN=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Zy={randomUUID:hN};function pN(e,t,n){var o;e=e||{};const s=e.random??((o=e.rng)==null?void 0:o.call(e))??fN();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,cN(s)}function mN(e,t,n){return Zy.randomUUID&&!e?Zy.randomUUID():pN(e)}const jo=typeof window<"u"?window:{base44SharedInstances:{}};function gN(e,t){return jo.base44SharedInstances||(jo.base44SharedInstances={}),jo.base44SharedInstances[e]||(jo.base44SharedInstances[e]={instance:t()}),jo.base44SharedInstances[e].instance}const yN="__user_heartbeat_event__",vN="__initialization_event__",xN="__session_duration_event__",e0="analytics-enable",t0="base44_analytics_session_id",wN={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},bN="analytics",Me=gN(bN,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...wN,...PN()}})),SN=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:s,enabled:o})=>{var l;const{maxQueueSize:u,throttleTime:d,batchSize:f}=Me.config;if(!o||!(!((l=Me.config)===null||l===void 0)&&l.enabled)||uN)return{track:()=>{},cleanup:()=>{}};let m;const y=`${t}/api/apps/${n}/analytics/track/batch`,v=async P=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:P}})},x=P=>{try{const I=JSON.stringify({events:P}),z=new Blob([I],{type:"application/json"});return typeof navigator>"u"||I.length>6e4||!navigator.sendBeacon(y,z)}catch{return!1}},S=async(P,I={})=>
175{if(P.length===0)return;const z=await NN(s),Q=P.map(TN(z));try{(!I.isBeacon||!x(Q))&&await v(Q)}catch{}},k=()=>{r0(S,{throttleTime:d,batchSize:f})},C=P=>{if(Me.requestsQueue.length>=u)return;const I=kN();Me.requestsQueue.push({...P,...I}),k()},E=()=>{r0(S,{throttleTime:d,batchSize:f}),m=s0(C),CN()},b=()=>{n0(),m==null||m(),_N(C);const P=Me.requestsQueue.splice(0);S(P,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?b():document.visibilityState==="visible"&&E())},N=()=>{n0(),m==null||m(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return k(),m=s0(C),EN(C),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:C,cleanup:N}};function n0(){Me.isProcessing=!1}async function r0(e,t){if(Me.isProcessing)return;Me.isProcessing=!0;const{throttleTime:n=1e3,batchSize:s=30}=t??{};for(;Me.isProcessing&&Me.requestsQueue.length>0;){const o=Me.requestsQueue.splice(0,s);o.length&&await e(o),await new Promise(l=>setTimeout(l,n))}Me.isProcessing=!1}function s0(e){var t;if(typeof window>
175"u"||Me.isHeartBeatProcessing||((t=Me.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Me.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:yN})},Me.config.heartBeatInterval);return()=>{clearInterval(n),Me.isHeartBeatProcessing=!1}}function EN(e){typeof window>"u"||Me.wasInitializationTracked||(Me.wasInitializationTracked=!0,e({eventName:vN,properties:{referrer:document==null?void 0:document.referrer}}))}function CN(){typeof window>"u"||Me.sessionStartTime!==null||(Me.sessionStartTime=new Date().toISOString())}function _N(e){if(typeof window>"u"||Me.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Me.sessionStartTime).getTime();Me.sessionStartTime=null,e({eventName:xN,properties:{sessionDuration:t}})}function kN(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function TN(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Fo=null;function i0(){Me.sessionContext=null,Fo=null}async function NN(e){if(!Me.sessionContext){if(!e.hasToken())return{user_id:null,session_id:fu()};if(!Fo){const s=fu();Fo=e.me().then(o=>({user_id:o.id,session_id:s})).catch(()=>({user_id:null,session_id:s}))}const t=Fo,n=await t;return Fo===t&&(Me.sessionContext=n),n}return Me.sessionContext}function PN(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(e0);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(e0);const s=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",s),{enabled:t==="true"}}function o0(){var e;return(e=Me.fallbackSessionId)!==null&&e!==void 0?e:Me.fallbackSessionId=gw()}function fu(){if(typeof window>"u")return o0();try{const e=localStorage.getItem(t0);if(!e){const t=gw();return localStorage.setItem(t0,t),t}return e}catch{return o0()}}class AN 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 di({baseURL:e,headers:t={},token:n,interceptResponses:s=!0,onError:o}){const l=et.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(u=>{typeof window<"u"&&(window.location&&u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",fu()));const d=mN();if(u.requestId=d,Jy)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:e+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),s&&l.interceptors.response.use(u=>{var d;const f=(d=u.config)===null||d===void 0?void 0:d.requestId;try{Jy&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var d,f,m,y,v,x,S,k,C,E,b,A,N,P,I;const z=((f=(d=u.response)===null||d===void 0?void 0:d.data)===null||f===void 0?void 0:f.message)||((y=(m=u.response)===null||m===void 0?void 0:m.data)===null||y===void 0?void 0:y.detail)||u.message,Q=new AN(z,(v=u.response)===null||v===void 0?void 0:v.status,(A=(k=(S=(x=u.response)===null||x===void 0?void 0:x.data)===null||S===void 0?void 0:S.code)!==null&&k!==void 0?k:(b=(E=(C=u.response)===null||C===void 0?void 0:C.headers)===null||E===void 0?void 0:E.get)===null||b===void 0?void 0:b.call(E,"x-base44-connector-error"))!==null&&A!==void 0?A:(P=(N=u.response)===null||N===void 0?void 0:N.headers)===null||P===void 0?void 0:P["x-base44-connector-error"],(I=u.response)===null||I===void 0?void 0:I.data,u);return o==null||o(Q),Promise.reject(Q)}),l}function a0(e){const{axios:t,appId:n,getSocket:s}=e;return new Proxy({},{get(o,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return jN(t,n,l,s)}})}function RN(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 jN(e,t,n,s){const o=`/apps/${t}/entities/${n}`;return{async list(l,u,d,f){const m={};return l&&(m.sort=l),u&&(m.limit=u),d&&(m.skip=d),f&&(m.fields=Array.isArray(f)?f.join(","):f),e.get(o,{params:m})},async filter(l,u,d,f,m){const y={q:JSON.stringify(l)};return u&&(y.sort=u),d&&(y.limit=d),f&&(y.skip=f),m&&(y.fields=Array.isArray(m)?m.join(","):m),e.get(o,{params:y})},async get(l){return e.get(`${o}/${l}`)},async create(l){return e.post(o,l)},async update(l,u){return e.put(`${o}/${l}`,u)},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 updateMany(l,u){return e.patch(`${o}/update-many`,{query:l,data:u})},async bulkUpdate(l){return e.put(`${o}/bulk`,l)},async importEntities(l){const u=new FormData;return u.append("file",l,l.name),e.post(`${o}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const u=`entities:${t}:${n}`;return s().subscribeToRoom(u,{update_model:m=>{var y;const v=RN(m.data);if(v){v.type!=="delete"&&(!((y=v.data)===null||y===void 0)&&y._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${v.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${v.id}")\` to fetch the full record.`);try{l(v)}catch(x){console.error("[Base44 SDK] Subscription callback error:",x)}}}})}}}function ON(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:u,...d}=o??{},f={...d,...l&&{path_params:l},...u&&{query_params:u}};return await e.post(`/apps/${t}/integrations/custom/${n}/${s}`,f)}}}function l0(e,t){const n=ON(e,t);return new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async d=>
175{if(typeof d=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${d}`);let f,m;return d instanceof FormData||d&&Object.values(d).some(y=>y instanceof File)?(f=new FormData,Object.keys(d).forEach(y=>{d[y]instanceof File?f.append(y,d[y],d[y].name):typeof d[y]=="object"&&d[y]!==null?f.append(y,JSON.stringify(d[y])):f.append(y,d[y])}),m="multipart/form-data"):(f=d,m="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${u}`,f||d,{headers:{"Content-Type":m}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${u}`,f||d,{headers:{"Content-Type":m}})}}})}})}function DN(){return typeof window>"u"?!1:window!==window.parent}function MN(e,t,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(e,"base44_auth",`width=500,height=600,left=${l},top=${u},resizable=yes,scrollbars=yes`);if(!d)return;const f=()=>{window.removeEventListener("message",m),clearInterval(y),d.closed||d.close()},m=v=>{var x;if(v.origin!==n||v.source!==d||!(!((x=v.data)===null||x===void 0)&&x.access_token))return;f();const S=new URL(t),{access_token:k,is_new_user:C}=v.data;S.searchParams.set("access_token",k),C!=null&&S.searchParams.set("is_new_user",String(C)),window.location.href=S.toString()},y=setInterval(()=>{d.closed&&f()},500);window.addEventListener("message",m)}function LN(e,t,n,s){let o=null;const l=()=>{o=null};let u=!!s.token;return{hasToken(){return u},async me(){const d=o??e.get(`/apps/${n}/entities/User/me`).finally(()=>{o===d&&(o=null)});return o=d,d},async updateMe(d){return e.put(`/apps/${n}/entities/User/me`,d)},redirectToLogin(d){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const f=d?new URL(d,window.location.origin).toString():window.location.href,m=`${s.appBaseUrl}/login?from_url=${encodeURIComponent(f)}`;window.location.href=m},loginWithProvider(d,f="/"){const m=new URL(f,window.location.origin).toString(),y=`app_id=${n}&from_url=${encodeURIComponent(m)}`;let v;d==="sso"?v=`/apps/${n}/auth/sso/login`:v=`/apps/auth${d==="google"?"":`/${d}`}/login`;const x=`${s.appBaseUrl}/api${v}?${y}`;if(DN()){const S=`${x}&popup_origin=${encodeURIComponent(window.location.origin)}`;return MN(S,m,window.location.origin)}window.location.href=x},logout(d){if(delete e.defaults.headers.common.Authorization,l(),i0(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(y){console.error("Failed to remove token from localStorage:",y)}const f=d||window.location.href,m=`${s.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(f)}`;window.location.href=m}},setToken(d,f=!0){if(d&&(l(),i0(),u=!0,e.defaults.headers.common.Authorization=`Bearer ${d}`,t.defaults.headers.common.Authorization=`Bearer ${d}`,f&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",d),window.localStorage.setItem("token",d)}catch(m){console.error("Failed to save token to localStorage:",m)}},async loginViaEmailPassword(d,f,m){var y;try{const v=await e.post(`/apps/${n}/auth/login`,{email:d,password:f,...m&&{turnstile_token:m}}),{access_token:x,user:S}=v;return x&&this.setToken(x),{access_token:x,user:S}}catch(v){throw((y=v.response)===null||y===void 0?void 0:y.status)===401&&await this.logout(),v}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(d,f){return e.post(`/apps/${n}/users/invite-user`,{user_email:d,role:f})},register(d){return e.post(`/apps/${n}/auth/register`,d)},verifyOtp({email:d,otpCode:f}){return e.post(`/apps/${n}/auth/verify-otp`,{email:d,otp_code:f})},resendOtp(d){return e.post(`/apps/${n}/auth/resend-otp`,{email:d})},resetPasswordRequest(d){return e.post(`/apps/${n}/auth/reset-password-request`,{email:d})},resetPassword({resetToken:d,newPassword:f}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:d,new_password:f})},changePassword({userId:d,currentPassword:f,newPassword:m}){return e.post(`/apps/${n}/auth/change-password`,{user_id:d,current_password:f,new_password:m})}}}function IN(e,t){return{async getAccessToken(n){const s=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(s)},async getIdToken(n){const s=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(s)}}}const FN=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
175function VN(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/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var s;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async getWorkspaceConnection(n){var s;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var s;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async callApi(n,s){return yw(n,"Integration type"),BN(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,s)}}}function yw(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function BN(e,t,n){var s,o,l,u,d,f,m,y,v;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");yw(n.path,"Request path");const x=(s=n.method)!==null&&s!==void 0?s:"GET";if(!FN.has(x))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const k=await e.post(t,{method:x,...n.host==null?{}:{host:n.host},path:n.path,query:(o=n.query)!==null&&o!==void 0?o:{},headers:(l=n.headers)!==null&&l!==void 0?l:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:k.success,phase:k.phase,status:(d=k.status_code)!==null&&d!==void 0?d:null,data:k.data,dataBase64:(f=k.data_base64)!==null&&f!==void 0?f:null,contentType:(m=k.content_type)!==null&&m!==void 0?m:null,headers:(y=k.headers)!==null&&y!==void 0?y:{},creditsCharged:(v=k.credits_charged)!==null&&v!==void 0?v:0}}function UN(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Vr(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 u=new URLSearchParams(window.location.search);if(l=u.get(n),l){if(s&&zN(l,{storageKey:t}),o){u.delete(n);const d=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function zN(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}}function u0(e,t,n){const s=(l,u)=>l?`${String(l).replace(/\/$/,"")}${u}`:u,o=l=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([f,m])=>{m!=null&&u.set(f,String(m))})}return l&&new Headers(l).forEach((d,f)=>{u.set(f,d)}),u};return{async invoke(l,u){if(typeof u=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${u}`);let d,f;return u instanceof FormData||u&&Object.values(u).some(m=>m instanceof File)?(d=new FormData,Object.keys(u).forEach(m=>{u[m]instanceof File?d.append(m,u[m],u[m].name):typeof u[m]=="object"&&u[m]!==null?d.append(m,JSON.stringify(u[m])):d.append(m,u[m])}),f="multipart/form-data"):(d=u,f="application/json"),e.post(`/apps/${t}/functions/${l}`,d||u,{headers:{"Content-Type":f}})},async fetch(l,u={}){const f=`/functions${l.startsWith("/")?l:`/${l}`}`,m=o(u.headers),y={...u,headers:m};return await fetch(s(n==null?void 0:n.baseURL,f),y)}}}function c0({axios:e,getSocket:t,appId:n,serverUrl:s,token:o}){const l=`/apps/${n}/agents`,u={},d=()=>e.get(`${l}/conversations`),f=C=>e.get(`${l}/conversations/${C}`);return{getConversations:d,getConversation:f,listConversations:C=>e.get(`${l}/conversations`,{params:C}),createConversation:C=>e.post(`${l}/conversations`,C),addMessage:async(C,E)=>e.post(`${l}/conversations/v2/${C.id}/messages`,E),subscribeToConversation:(C,E)=>{const b=`/agent-conversations/${C}`,A=t(),N=f(C).then(P=>(u[C]=P,P));
175return A.subscribeToRoom(b,{connect:()=>{},update_model:async({data:P})=>{const I=JSON.parse(P);if(I._message){await N;const z=I._message,Q=u[C];if(Q){const U=Q.messages||[],me=U.findIndex(oe=>oe.id===z.id),Y=me!==-1?U.map((oe,Se)=>Se===me?z:oe):[...U,z];u[C]={...Q,messages:Y},E==null||E(u[C])}}}})},getWhatsAppConnectURL:C=>{const E=`${s}/api/apps/${n}/agents/${encodeURIComponent(C)}/whatsapp`,b=o??Vr();return b?`${E}?token=${b}`:E},getTelegramConnectURL:C=>{const E=`${s}/api/apps/${n}/agents/${encodeURIComponent(C)}/telegram`,b=o??Vr();return b?`${E}?token=${b}`:E}}}function d0({serverUrl:e,token:t,appId:n}){return{connection:()=>{var o;return{baseURL:`${e}/api/apps/${n}/ai/openai/v1`,token:(o=t??Vr())!==null&&o!==void 0?o:""}}}}function f0(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 $N(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function HN(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 Fn=Object.create(null);Fn.open="0";Fn.close="1";Fn.ping="2";Fn.pong="3";Fn.message="4";Fn.upgrade="5";Fn.noop="6";const eu=Object.create(null);Object.keys(Fn).forEach(e=>{eu[Fn[e]]=e});const Df={type:"error",data:"parser error"},vw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",xw=typeof ArrayBuffer=="function",ww=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Sh=({type:e,data:t},n,s)=>vw&&t instanceof Blob?n?s(t):h0(t,s):xw&&(t instanceof ArrayBuffer||ww(t))?n?s(t):h0(new Blob([t]),s):s(Fn[e]+(t||"")),h0=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+(s||""))},n.readAsDataURL(e)};function p0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Wd;function WN(e,t){if(vw&&e.data instanceof Blob)return e.data.arrayBuffer().then(p0).then(t);if(xw&&(e.data instanceof ArrayBuffer||ww(e.data)))return t(p0(e.data));Sh(e,!1,n=>{Wd||(Wd=new TextEncoder),t(Wd.encode(n))})}const m0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<m0.length;e++)Vo[m0.charCodeAt(e)]=e;const qN=e=>{let t=e.length*.75,n=e.length,s,o=0,l,u,d,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const m=new ArrayBuffer(t),y=new Uint8Array(m);for(s=0;s<n;s+=4)l=Vo[e.charCodeAt(s)],u=Vo[e.charCodeAt(s+1)],d=Vo[e.charCodeAt(s+2)],f=Vo[e.charCodeAt(s+3)],y[o++]=l<<2|u>>4,y[o++]=(u&15)<<4|d>>2,y[o++]=(d&3)<<6|f&63;return m},KN=typeof ArrayBuffer=="function",Eh=(e,t)=>{if(typeof e!="string")return{type:"message",data:bw(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:GN(e.substring(1),t)}:eu[n]?e.length>1?{type:eu[n],data:e.substring(1)}:{type:eu[n]}:Df},GN=(e,t)=>{if(KN){const n=qN(e);return bw(n,t)}else return{base64:!0,data:e}},bw=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Sw="�",QN=(e,t)=>{const n=e.length,s=new Array(n);let o=0;e.forEach((l,u)=>{Sh(l,!1,d=>
vendor: 3,947 bytes, line 175
175{s[u]=d,++o===n&&t(s.join(Sw))})})},YN=(e,t)=>{const n=e.split(Sw),s=[];for(let o=0;o<n.length;o++){const l=Eh(n[o],t);if(s.push(l),l.type==="error")break}return s};function XN(){return new TransformStream({transform(e,t){WN(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 qd;function Bl(e){return e.reduce((t,n)=>t+n.length,0)}function Ul(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 JN(e,t){qd||(qd=new TextDecoder);const n=[];let s=0,o=-1,l=!1;return new TransformStream({transform(u,d){for(n.push(u);;){if(s===0){if(Bl(n)<1)break;const f=Ul(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(Bl(n)<2)break;const f=Ul(n,2);o=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),s=3}else if(s===2){if(Bl(n)<8)break;const f=Ul(n,8),m=new DataView(f.buffer,f.byteOffset,f.length),y=m.getUint32(0);if(y>Math.pow(2,21)-1){d.enqueue(Df);break}o=y*Math.pow(2,32)+m.getUint32(4),s=3}else{if(Bl(n)<o)break;const f=Ul(n,o);d.enqueue(Eh(l?f:qd.decode(f),t)),s=0}if(o===0||o>e){d.enqueue(Df);break}}}})}const Ew=4;function rt(e){if(e)return ZN(e)}function ZN(e){for(var t in rt.prototype)e[t]=rt.prototype[t];return e}rt.prototype.on=rt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};rt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};rt.prototype.off=rt.prototype.removeListener=rt.prototype.removeAllListeners=rt.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};rt.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};rt.prototype.emitReserved=rt.prototype.emit;rt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};rt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Nu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),cn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),eP="arraybuffer";function Cw(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const tP=cn.setTimeout,nP=cn.clearTimeout;function Pu(e,t){t.useNativeTimers?(e.setTimeoutFn=tP.bind(cn),e.clearTimeoutFn=nP.bind(cn)):(e.setTimeoutFn=cn.setTimeout.bind(cn),e.clearTimeoutFn=cn.clearTimeout.bind(cn))}const rP=1.33;function sP(e){return typeof e=="string"?iP(e):Math.ceil((e.byteLength||e.size)*rP)}function iP(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 _w(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function oP(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function aP(e){let t={},n=e.split("&");for(let s=0,o=n.length;s<o;s++){let l=n[s].split("=");
vendor: 6,261 bytes, line 175
175t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class lP extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class Ch extends rt{constructor(t){super(),this.writable=!1,Pu(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 lP(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=Eh(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&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=oP(t);return n.length?"?"+n:""}}class uP extends Ch{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)};YN(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,QN(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]=_w()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let kw=!1;try{kw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const cP=kw;function dP(){}class fP extends uP{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 Mn extends rt{constructor(t,n,s){super(),this.createRequest=t,Pu(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=Cw(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=Mn.requestsCount++,Mn.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=dP,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Mn.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()}}Mn.requestsCount=0;Mn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",g0);else if(typeof addEventListener=="function"){const e="onpagehide"in cn?"pagehide":"unload";addEventListener(e,g0,!1)}}function g0(){for(let e in Mn.requests)Mn.requests.hasOwnProperty(e)&&Mn.requests[e].abort()}const hP=(function(){const e=Tw({xdomain:!1});return e&&e.responseType!==null})();class pP extends fP{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=hP&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Mn(Tw,this.uri(),t)}}function Tw(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||cP))return new XMLHttpRequest}catch{}if(!t)try{return new cn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Nw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class mP extends Ch{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,s=Nw?{}:Cw(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)}
vendor: 10,324 bytes, line 175
175this.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;Sh(s,this.supportsBinary,l=>{try{this.doWrite(s,l)}catch{}o&&Nu(()=>{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]=_w()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Kd=cn.WebSocket||cn.MozWebSocket;class gP extends mP{createSocket(t,n,s){return Nw?new Kd(t,n,s):n?new Kd(t,n):new Kd(t)}doWrite(t,n){this.ws.send(n)}}class yP extends Ch{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=JN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(n).getReader(),o=XN();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const l=()=>{s.read().then(({done:d,value:f})=>{d||(this.onPacket(f),l())}).catch(d=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).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&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const vP={websocket:gP,webtransport:yP,polling:pP},xP=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wP=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Mf(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=xP.exec(e||""),l={},u=14;for(;u--;)l[wP[u]]=o[u]||"";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=bP(l,l.path),l.queryKey=SP(l,l.query),l}function bP(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 SP(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,o,l){o&&(n[o]=l)}),n}const Lf=typeof addEventListener=="function"&&typeof removeEventListener=="function",tu=[];Lf&&addEventListener("offline",()=>{tu.forEach(e=>e())},!1);class zr extends rt{constructor(t,n){if(super(),this.binaryType=eP,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=Mf(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=Mf(n.host).host);Pu(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=aP(this.opts.query)),Lf&&(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"})},tu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Ew,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+=sP(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,Nu(()=>{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(),Lf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=tu.indexOf(this._offlineEventListener);s!==-1&&tu.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}zr.protocol=Ew;class EP 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",v=>{if(!s)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;zr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 10,982 bytes, line 175
175]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=n.name,this.emitReserved("upgradeError",x)}}))};function l(){s||(s=!0,y(),n.close(),n=null)}const u=v=>{const x=new Error("probe error: "+v);x.transport=n.name,l(),this.emitReserved("upgradeError",x)};function d(){u("transport closed")}function f(){u("socket closed")}function m(v){n&&v.name!==n.name&&l()}const y=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",d),this.off("close",f),this.off("upgrading",m)};n.once("open",o),n.once("error",u),n.once("close",d),this.once("close",f),this.once("upgrading",m),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 CP=class extends EP{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=>vP[o]).filter(o=>!!o)),super(t,s)}};function _P(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=Mf(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 kP=typeof ArrayBuffer=="function",TP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Pw=Object.prototype.toString,NP=typeof Blob=="function"||typeof Blob<"u"&&Pw.call(Blob)==="[object BlobConstructor]",PP=typeof File=="function"||typeof File<"u"&&Pw.call(File)==="[object FileConstructor]";function _h(e){return kP&&(e instanceof ArrayBuffer||TP(e))||NP&&e instanceof Blob||PP&&e instanceof File}function nu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n++)if(nu(e[n]))return!0;return!1}if(_h(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return nu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&nu(e[n]))return!0;return!1}function AP(e){const t=[],n=e.data,s=e;return s.data=If(n,t),s.attachments=t.length,{packet:s,buffers:t}}function If(e,t){if(!e)return e;if(_h(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]=If(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]=If(e[s],t));return n}return e}function RP(e,t){return e.data=Ff(e.data,t),delete e.attachments,e}function Ff(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]=Ff(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ff(e[n],t));return e}const Aw=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],jP=5;var _e;(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"})(_e||(_e={}));class OP{constructor(t){this.replacer=t}encode(t){return(t.type===_e.EVENT||t.type===_e.ACK)&&nu(t)?this.encodeAsBinary({type:t.type===_e.EVENT?_e.BINARY_EVENT:_e.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===_e.BINARY_EVENT||t.type===_e.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=AP(t),s=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(s),o}}class kh extends rt{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}: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===_e.BINARY_EVENT;s||n.type===_e.BINARY_ACK?(n.type=s?_e.EVENT:_e.ACK,this.reconstructor=new DP(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(_h(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(_e[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===_e.BINARY_EVENT||s.type===_e.BINARY_ACK){const l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(l,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const d=Number(u);if(!Rw(d)||d<0)throw new Error("Illegal attachments");if(d>this.opts.maxAttachments)throw new Error("too many attachments");s.attachments=d}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 u=t.charAt(n);if(u==null||Number(u)!=u){--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(kh.isPayloadValid(s.type,l))s.data=l;else throw new Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case _e.CONNECT:return hu(n);case _e.DISCONNECT:return n===void 0;case _e.CONNECT_ERROR:return typeof n=="string"||hu(n);case _e.EVENT:case _e.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Aw.indexOf(n[0])===-1);case _e.ACK:case _e.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class DP{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=RP(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function MP(e){return typeof e=="string"}const Rw=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function LP(e){return e===void 0||Rw(e)}function hu(e){return Object.prototype.toString.call(e)==="[object Object]"}function IP(e,t){switch(e){case _e.CONNECT:return t===void 0||hu(t);case _e.DISCONNECT:return t===void 0;case _e.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Aw.indexOf(t[0])===-1);case _e.ACK:return Array.isArray(t);case _e.CONNECT_ERROR:return typeof t=="string"||hu(t);default:return!1}}function FP(e){return MP(e.nsp)&&LP(e.id)&&IP(e.type,e.data)}const VP=Object.freeze(Object.defineProperty({__proto__:null,Decoder:kh,Encoder:OP,get PacketType(){return _e},isPacketValid:FP,protocol:jP},Symbol.toStringTag,{value:"Module"}));function kn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const BP=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class jw extends rt{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=[kn(t,"open",this.onopen.bind(this)),kn(t,"packet",this.onpacket.bind(this)),kn(t,"error",this.onerror.bind(this)),kn(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(BP.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 u={type:_e.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const y=this.ids++,v=n.pop();this._registerAckCallback(y,v),u.id=y}const d=(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&&!d||(f?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),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 d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===t&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},o),u=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((s,o)=>{const l=(u,d)=>u?o(u):s(d);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)=>(this._queue[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:_e.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()}
vendor: 7,087 bytes, line 175
175_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 _e.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 _e.EVENT:case _e.BINARY_EVENT:this.onevent(t);break;case _e.ACK:case _e.BINARY_ACK:this.onack(t);break;case _e.DISCONNECT:this.ondisconnect();break;case _e.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:_e.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._drainQueue(!0),this.emitReserved("connect")}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:_e.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 Ui(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}Ui.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};Ui.prototype.reset=function(){this.attempts=0};Ui.prototype.setMin=function(e){this.ms=e};Ui.prototype.setMax=function(e){this.max=e};Ui.prototype.setJitter=function(e){this.jitter=e};class Vf extends rt{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,Pu(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 Ui({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||VP;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 CP(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const o=kn(n,"open",function(){s.onopen(),t&&t()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),t?t(d):this.maybeReconnectOnOpen()},u=kn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{o(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(o),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(kn(t,"ping",this.onping.bind(this)),kn(t,"data",this.ondata.bind(this)),kn(t,"error",this.onerror.bind(this)),kn(t,"close",this.onclose.bind(this)),kn(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){Nu(()=>{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 jw(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)}
175cleanup(){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 Oo={};function ru(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=_P(e,t.path||"/socket.io"),s=n.source,o=n.id,l=n.path,u=Oo[o]&&l in Oo[o].nsps,d=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let f;return d?f=new Vf(s,t):(Oo[o]||(Oo[o]=new Vf(s,t)),f=Oo[o]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(ru,{Manager:Vf,Socket:jw,io:ru,connect:ru});const UP=250;function y0(e,t){var n;const s=(n=e.token)!==null&&n!==void 0?n:Vr(),o={app_id:e.appId,token:s};s||(o.anonymous_id=fu());const l=ru(e.serverUrl,{path:e.mountPath,transports:e.transports,query:o});return l.on("connect",async()=>{var u;return console.log("connect",l.id),(u=t.connect)===null||u===void 0?void 0:u.call(t)}),l.on("update_model",async u=>{var d;return(d=t.update_model)===null||d===void 0?void 0:d.call(t,u)}),l.on("error",async u=>{var d;return(d=t.error)===null||d===void 0?void 0:d.call(t,u)}),l.on("connect_error",async u=>{var d;return console.error("connect_error",u),(d=t.error)===null||d===void 0?void 0:d.call(t,u)}),l}function zP({config:e}){let t={...e};const n={},s={},o={connect:async()=>{const b=[];Object.keys(n).forEach(A=>{const N=x(A);
175N.length!==0&&(m(A),N.forEach(({connect:P})=>{const I=async()=>P==null?void 0:P();b.push(I())}))}),await Promise.all(b)},update_model:async b=>{const N=x(b.room).map(P=>{var I;return(I=P.update_model)===null||I===void 0?void 0:I.call(P,b)});await Promise.all(N)},error:async b=>{console.error("error",b);const A=Object.values(n).flat().map(N=>{var P;return(P=N.error)===null||P===void 0?void 0:P.call(N,b)});await Promise.all(A)}};let l=y0(e,o);function u(){d()}function d(){k(),l&&l.disconnect()}function f(b){u(),t={...t,...b},l=y0(t,o)}function m(b){l.emit("join",b)}function y(b){l.emit("leave",b)}async function v(b,A){var N;const P=JSON.stringify(A);return(N=o.update_model)===null||N===void 0?void 0:N.call(o,{room:b,data:P})}function x(b){var A;return(A=n[b])!==null&&A!==void 0?A:[]}function S(b){const A=s[b];A&&(clearTimeout(A),delete s[b])}function k(){Object.keys(s).forEach(b=>{var A,N;clearTimeout(s[b]),delete s[b],((N=(A=n[b])===null||A===void 0?void 0:A.length)!==null&&N!==void 0?N:0)===0&&delete n[b]})}function C(b){S(b),s[b]=setTimeout(()=>{var A,N;delete s[b],!(((N=(A=n[b])===null||A===void 0?void 0:A.length)!==null&&N!==void 0?N:0)>0)&&(y(b),delete n[b])},UP)}return{socket:l,subscribeToRoom:(b,A)=>{n[b]?S(b):(m(b),n[b]=[]),n[b].push(A);let N=!1;return()=>{var P,I;N||(N=!0,n[b]=(I=(P=n[b])===null||P===void 0?void 0:P.filter(z=>z!==A))!==null&&I!==void 0?I:[],n[b].length===0&&C(b))}},updateConfig:f,updateModel:v,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 176 PartySocket requires a global 'EventTarget' class to be available! 177 You can polyfill this global by adding this to your code before any partysocket imports: 178 179 \`\`\` 180 import 'partysocket/event-target-polyfill'; 181 \`\`\` 182 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 183`);var Ow=class extends Event{constructor(t,n){super("error",n);Be(this,"message");Be(this,"error");this.message=t.message,this.error=t}},Dw=class extends Event{constructor(t=1e3,n="",s){super("close",s
vendor: 4,875 bytes, line 183
183);Be(this,"code");Be(this,"reason");Be(this,"wasClean",!0);this.code=t,this.reason=n}},Gd={Event,ErrorEvent:Ow,CloseEvent:Dw};function $P(e,t){if(!e)throw new Error(t)}function HP(e){return new e.constructor(e.type,e)}function WP(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new Dw(e.code||1999,e.reason||"unknown reason",e):"error"in e?new Ow(e.error,e):new Event(e.type,e)}var Xv,qP=typeof process<"u"&&typeof((Xv=process.versions)==null?void 0:Xv.node)<"u"&&typeof document>"u",zl=qP?WP:HP,ls={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},v0=!1,KP=class cs extends EventTarget{constructor(n,s,o={}){super();Be(this,"_ws");Be(this,"_retryCount",-1);Be(this,"_uptimeTimeout");Be(this,"_connectTimeout");Be(this,"_shouldReconnect",!0);Be(this,"_connectLock",!1);Be(this,"_binaryType","blob");Be(this,"_closeCalled",!1);Be(this,"_messageQueue",[]);Be(this,"_url");Be(this,"_protocols");Be(this,"_options");Be(this,"onclose",null);Be(this,"onerror",null);Be(this,"onmessage",null);Be(this,"onopen",null);Be(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:s=ls.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),s),$P(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(o=>{var l;return(l=this._ws)==null?void 0:l.send(o)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(zl(n))});Be(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(zl(n))});Be(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(zl(n)),this._connect()});Be(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(zl(n))});this._url=n,this._protocols=s,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return cs.CONNECTING}get OPEN(){return cs.OPEN}get CLOSING(){return cs.CLOSING}get CLOSED(){return cs.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((s,o)=>(typeof o=="string"?s+=o.length:o instanceof Blob?s+=o.size:s+=o.byteLength,s),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?cs.CLOSED:cs.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,s){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,s)}reconnect(n,s){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,s),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:s=ls.maxEnqueuedMessages}=this._options;this._messageQueue.length<s&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=ls.reconnectionDelayGrowFactor,minReconnectionDelay:s=ls.minReconnectionDelay,maxReconnectionDelay:o=ls.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=s*Math.pow(n,this._retryCount-1),l>o&&(l=o)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const s=n();if(!s)return Promise.resolve(null);if(typeof s=="string"||Array.isArray(s))return Promise.resolve(s);if(s.then)return s}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const s=n();if(typeof s=="string")return Promise.resolve(s);if(s.then)return s}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
183const{maxRetries:n=ls.maxRetries,connectionTimeout:s=ls.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([o,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!v0&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 184 185For example, if you're using node.js, run \`npm install ws\`, and then in your code: 186 187import PartySocket from 'partysocket'; 188import WS from 'ws'; 189 190const partysocket = new PartySocket({ 191 host: "127.0.0.1:1999", 192 room: "test-room", 193 WebSocket: WS 194}); 195 196`),v0=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:o,protocols:l}),this._ws=l?new u(o,l):new u(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),s)}).catch(o=>{this._connectLock=!1,this._handleError(new Gd.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Gd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,s){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,s),this._handleClose(new Gd.CloseEvent(n,s,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 197 * Reconnecting WebSocket 198 * by Pedro Ladaria <[email protected]> 199 * https://github.com/pladaria/reconnecting-websocket 200 * License MIT 201 */const GP=1e3,QP=3e3,YP=new Set([405,409,422,503]),XP=new Set([400,403,404]);function JP(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function ZP(e){return e instanceof Error?e:new Error(String(e))}class eA{constructor(t,n,s,o,l){var u;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(u=o==null?void 0:o.id)!==null&&u!==void 0?u:crypto.randomUUID();let d=s.transport==="proxy";const f=async()=>{var x;if(this.closed)throw new Error("Actor connection is closed");if(!d)try{const{websocket_url:S,token:k}=await s.mintConnectionToken(t,n,this.id),C=S.includes("?")?"&":"?";return`${S}${C}token=${encodeURIComponent(k)}`}catch(S){const k=JP(S);if(!(s.transport!=="direct"&&k!==void 0&&YP.has(k))){k!==void 0&&XP.has(k)&&this.close();try{(x=s.onMintError)===null||x===void 0||x.call(s,ZP(S))}catch{}throw S}d=!0}return nA(s.host,t,n,this.id,s.appId,s.getAuthToken(),s.functionsVersion)},m=new KP(f);this.ws=m;let y=Date.now();const v=()=>{y=Date.now()};m.addEventListener("open",v),m.addEventListener("message",x=>{v();let S;try{S=JSON.parse(x.data)}catch{return}if((S&&typeof S=="object"?S.type:void 0)!=="__pong")for(const C of this.listeners)C(S)}),this.heartbeat=setInterval(()=>{if(Date.now()-y>QP){v(),m.readyState===m.OPEN&&m.reconnect();return}try{m.send(JSON.stringify({type:"__ping"}))}catch{}},GP)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function tA(e,t,n,s){let o=null;return{connect(l){if(o)return o;const u=new eA(e,t,n,l,()=>{s.delete(u),o===u&&(o=null)});return o=u,s.add(u),u}}}function nA(e,t,n,s,o,l,u){let d=e.replace(/^(http|https|ws|wss):\/\//,"");d.endsWith("/")&&(d=d.slice(0,-1));const f=d.startsWith("localhost:")||d.startsWith("127.0.0.1:")||d.startsWith("192.168.")||d.startsWith("10.")||d.startsWith("172.")&&d.split(".")[1]>="16"&&d.split(".")[1]<="31"||d.startsWith("[::ffff:7f00:1]:"),m=new URLSearchParams([["_pk",s],["app_id",o],["handler",t]]);return l&&m.append("token",l),u&&m.append("fv",u),`${f?"ws":"wss"}://${d}
201/parties/${t}/${n}?${m}`}function rA(e,t){return e&&!e.startsWith("/")?e:t??e}function sA(e){const t=new Set;return{module:new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"))return l=>tA(o,l,e,t)}}),closeAll:()=>{for(const s of[...t])s.close()}}}function iA(e){var t,n,s,o;const{serverUrl:l="https://base44.app",appId:u,analytics:d,token:f,serviceToken:m,requiresAuth:y=!1,appBaseUrl:v,options:x,functionsVersion:S,headers:k}=e,C=typeof v=="string"?v:"",E={serverUrl:l,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:f};let b=null;const A=()=>(b||(b=zP({config:E})),b),N={...k,"X-App-Id":String(u)},P=S?{...N,"Base44-Functions-Version":S}:N,I=di({baseURL:`${l}/api`,headers:N,token:f,onError:x==null?void 0:x.onError}),z=di({baseURL:`${l}/api`,headers:P,token:f,interceptResponses:!1,onError:x==null?void 0:x.onError}),Q={...N,...f?{"on-behalf-of":`Bearer ${f}`}:{}},U=di({baseURL:`${l}/api`,headers:Q,token:m,onError:x==null?void 0:x.onError}),me=di({baseURL:`${l}/api`,headers:P,token:m,interceptResponses:!1}),Y=di({baseURL:`${l}/api`,headers:N}),oe=LN(I,z,u,{appBaseUrl:C,token:f});if(typeof window<"u"){const pe=f||Vr();pe&&oe.setToken(pe)}const Se=sA({appId:u,host:rA(l,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:S,getAuthToken:()=>f||Vr(),mintConnectionToken:async(pe,ae,B)=>{const te=f||Vr();return await Y.post(`/apps/${u}/actors/${encodeURIComponent(pe)}/connection-token`,{room:ae,connection_id:B},{headers:{...te?{Authorization:`Bearer ${te}`}:{},...S?{"Base44-Functions-Version":S}:{}}})},transport:x==null?void 0:x.actorsTransport,onMintError:x==null?void 0:x.onError}),Ee={entities:a0({axios:I,appId:u,getSocket:A}),integrations:l0(I,u),connectors:UN(I,u),auth:oe,functions:u0(z,u,{getAuthHeaders:()=>{const pe={},ae=f||Vr();return ae&&(pe.Authorization=`Bearer ${ae}`),pe},baseURL:(n=z.defaults)===null||n===void 0?void 0:n.baseURL}),agents:c0({axios:I,getSocket:A,appId:u,serverUrl:l,token:f}),aiGateway:d0({serverUrl:l,token:f,appId:u}),appLogs:f0(I,u),app:$N(I,u),users:HN(I,u),analytics:SN({axiosClient:I,serverUrl:l,appId:u,userAuthModule:oe,enabled:(s=d==null?void 0:d.enabled)!==null&&s!==void 0?s:!0}),actors:Se.module,cleanup:()=>{Ee.analytics.cleanup(),Se.closeAll(),b&&b.disconnect()}},Re={entities:a0({axios:U,appId:u,getSocket:A}),integrations:l0(U,u),sso:IN(U,u),connectors:VN(U,u),functions:u0(me,u,{getAuthHeaders:()=>{const pe={};return m&&(pe.Authorization=`Bearer ${m}`),pe},baseURL:(o=me.defaults)===null||o===void 0?void 0:o.baseURL}),agents:c0({axios:U,getSocket:A,appId:u,serverUrl:l,token:f}),aiGateway:d0({serverUrl:l,token:m,appId:u}),appLogs:f0(U,u),cleanup:()=>{b&&b.disconnect()}};return y&&typeof window<"u"&&setTimeout(async()=>{try{await Ee.auth.isAuthenticated()||Ee.auth.redirectToLogin(window.location.href)}catch(pe){console.error("Authentication check failed:",pe),Ee.auth.redirectToLogin(window.location.href)}},0),{...Ee,setToken(pe){Ee.auth.setToken(pe),b&&b.updateConfig({token:pe}),E.token=pe},getConfig(){return{serverUrl:l,appId:u,requiresAuth:y}},get asServiceRole(){if(!m)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Re}}}const Mw=typeof window>"u",oA=Mw?{localStorage:new Map}:window,Wo=oA.localStorage,aA=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),ci=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(Mw)return t;const s=`base44_${aA(e)}`,o=new URLSearchParams(window.location.search),l=o.get(e);if(n){o.delete(e);const d=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Wo.setItem(s,l),l;if(t)return Wo.setItem(s,t),t;const u=Wo.getItem(s);return u||null},lA=()=>(ci("clear_access_token")==="true"&&(Wo.removeItem("base44_access_token"),Wo.removeItem("token")),{appId:ci("app_id",{defaultValue:"698265de83eef46abf815de1"}),token:ci("access_token",{removeFromUrl:!0}),fromUrl:ci("from_url",{defaultValue:window.location.href}),functionsVersion:ci("functions_version",{defaultValue:"prod"}),appBaseUrl:ci("app_base_url",{defaultValue:void 0})}),Bo={...lA()},{appId:uA,token:cA,functionsVersion:dA,appBaseUrl:fA}=Bo,Zn=iA({appId:uA,token:cA,functionsVersion:dA,serverUrl:"",requiresAuth:!1,appBaseUrl:fA}),Lw=_.createContext(),hA=({children:e})=>{const[t,n]=_.useState(null),[s,o]=_.useState(!1),[l,u]=_.useState(!0),[d,f]=_.useState(!0),[m,y]=_.useState(null),[v,x]=_.useState(null);_.useEffect(()=>{S()},[]);const S=async()=>{var b,A;try{f(!0),y(null);const N=di({baseURL:"/api/apps/public",headers:{"X-App-Id":Bo.appId},token:Bo.token,interceptResponses:!0});try{const P=await N.get(`/prod/public-settings/by-id/${Bo.appId}`);x(P),Bo.token?await k():(u(!1),o(!1)),f(!1)}catch(P){if(console.error("App state check failed:",P),P.status===403&&((A=(b=P.data)==null?void 0:b.extra_data)!=null&&A.reason)){const I=P.data.extra_data.reason;y(I==="auth_required"?{type:"auth_required",message:"Authentication required"}:I==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:I,message:P.message})}else y({type:"unknown",message:P.message||"Failed to load app"});f(!1),u(!1)}}catch(N){console.error("Unexpected error:",N),y({type:"unknown",message:N.message||"An unexpected error occurred"}),f(!1),u(!1)}},k=async()=>{try{u(!0);const b=await Zn.auth.me();n(b),o(!0),u(!1)}catch(b){console.error("User auth check failed:",b),u(!1),o(!1),(b.status===401||b.status===403)&&y({type:"auth_required",message:"Authentication required"})}},C=(b=!0)=>{n(null),o(!1),b?Zn.auth.logout(window.location.href):Zn.auth.logout()},E=()=>{Zn.auth.redirectToLogin(window.location.href)};return p.jsx(Lw.Provider,{value:{user:t,isAuthenticated:s,isLoadingAuth:l,isLoadingPublicSettings:d,authError:m,appPublicSettings:v,logout:C,navigateToLogin:E,checkAppState:S},children:e})},Iw=()=>{const e=_.useContext(Lw);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Au=_.createContext(null);function va(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ru=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class pA extends _.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 mA({children:e,isPresent:t}){const n=_.useId(),s=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=_.useContext(Ru);return _.useInsertionEffect(()=>{const{width:u,height:d,top:f,left:m}=o.current;if(t||!s.current||!u||!d)return;s.current.dataset.motionPopId=n;const y=document.createElement("style");return l&&(y.nonce=l),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` 202 [data-motion-pop-id="${n}"] { 203 position: absolute !important; 204 width: ${u}px !important; 205 height: ${d}px !important; 206 top: ${f}px !important; 207 left: ${m}px !important; 208 } 209 `),()=>{document.head.removeChild(y)}},[t]),p.jsx(pA,{isPresent:t,childRef:s,sizeRef:o,children:_.cloneElement(e,{ref:s})})}const gA=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:l,mode:u})=>{const d=va(yA),f=_.useId(),m=_.useCallback(v=>{d.set(v,!0);for(const x of d.values())if(!x)return;s&&s()},[d,s]),y=_.useMemo(()=>({id:f,initial:t,isPresent:n,custom:o,onExitComplete:m,register:v=>(d.set(v,!1),()=>d.delete(v))}),l?[Math.random(),m]:[n,m]);return _.useMemo(()=>{d.forEach((v,x)=>d.set(x,!1))},[n]),_.useEffect(()=>{!n&&!d.size&&s&&s()},[n]),u==="popLayout"&&(e=p.jsx(mA,{isPresent:n,children:e})),p.jsx(Au.Provider,{value:y,children:e})};function yA(){return new Map}const Th=_.createContext({}),Qt=e=>e;let Fw=Qt;function Nh(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ri=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},er=e=>e*1e3,tr=e=>e/1e3,$l=e=>e.key||"";function x0(e){const t=[];
vendor: 15,149 bytes, line 209
209return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Ph=typeof window<"u",Ah=Ph?_.useLayoutEffect:_.useEffect,nr=({children:e,exitBeforeEnter:t,custom:n,initial:s=!0,onExitComplete:o,presenceAffectsLayout:l=!0,mode:u="sync"})=>{const d=_.useMemo(()=>x0(e),[e]),f=d.map($l),m=_.useRef(!0),y=_.useRef(d),v=va(()=>new Map),[x,S]=_.useState(d),[k,C]=_.useState(d);Ah(()=>{m.current=!1,y.current=d;for(let A=0;A<k.length;A++){const N=$l(k[A]);f.includes(N)?v.delete(N):v.get(N)!==!0&&v.set(N,!1)}},[k,f.length,f.join("-")]);const E=[];if(d!==x){let A=[...d];for(let N=0;N<k.length;N++){const P=k[N],I=$l(P);f.includes(I)||(A.splice(N,0,P),E.push(P))}u==="wait"&&E.length&&(A=E),C(x0(A)),S(d);return}const{forceRender:b}=_.useContext(Th);return p.jsx(p.Fragment,{children:k.map(A=>{const N=$l(A),P=d===k||f.includes(N),I=()=>{if(v.has(N))v.set(N,!0);else return;let z=!0;v.forEach(Q=>{Q||(z=!1)}),z&&(b==null||b(),C(y.current),o&&o())};return p.jsx(gA,{isPresent:P,initial:!m.current||s?void 0:!1,custom:P?void 0:n,presenceAffectsLayout:l,mode:u,onExitComplete:P?void 0:I,children:A},N)})})},vA={useManualTiming:!1};function xA(e){let t=new Set,n=new Set,s=!1,o=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(f.schedule(m),e()),m(u)}const f={schedule:(m,y=!1,v=!1)=>{const S=v&&s?t:n;return y&&l.add(m),S.has(m)||S.add(m),m},cancel:m=>{n.delete(m),l.delete(m)},process:m=>{if(u=m,s){o=!0;return}s=!0,[t,n]=[n,t],t.forEach(d),t.clear(),s=!1,o&&(o=!1,f.process(m))}};return f}const Hl=["read","resolveKeyframes","update","preRender","render","postRender"],wA=40;function Vw(e,t){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Hl.reduce((b,A)=>(b[A]=xA(l),b),{}),{read:d,resolveKeyframes:f,update:m,preRender:y,render:v,postRender:x}=u,S=()=>{const b=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(b-o.timestamp,wA),1),o.timestamp=b,o.isProcessing=!0,d.process(o),f.process(o),m.process(o),y.process(o),v.process(o),x.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(S))},k=()=>{n=!0,s=!0,o.isProcessing||e(S)};return{schedule:Hl.reduce((b,A)=>{const N=u[A];return b[A]=(P,I=!1,z=!1)=>(n||k(),N.schedule(P,I,z)),b},{}),cancel:b=>{for(let A=0;A<Hl.length;A++)u[Hl[A]].cancel(b)},state:o,steps:u}}const{schedule:Ue,cancel:rr,state:vt,steps:Qd}=Vw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0),Bw=_.createContext({strict:!1}),w0={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"]},ji={};for(const e in w0)ji[e]={isEnabled:t=>w0[e].some(n=>!!t[n])};function bA(e){for(const t in e)ji[t]={...ji[t],...e[t]}}const SA=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 pu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||SA.has(e)}let Uw=e=>!pu(e);function EA(e){e&&(Uw=t=>t.startsWith("on")?!pu(t):e(t))}try{EA(require("@emotion/is-prop-valid").default)}catch{}function CA(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Uw(o)||n===!0&&pu(o)||!t&&!pu(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function _A(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 ju=_.createContext({});function na(e){return typeof e=="string"||Array.isArray(e)}function Ou(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Rh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jh=["initial",...Rh];function Du(e){return Ou(e.animate)||jh.some(t=>na(e[t]))}function zw(e){return!!(Du(e)||e.variants)}function kA(e,t){if(Du(e)){const{initial:n,animate:s}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(s)?s:void 0}}return e.inherit!==!1?t:{}}function TA(e){const{initial:t,animate:n}=kA(e,_.useContext(ju));return _.useMemo(()=>({initial:t,animate:n}),[b0(t),b0(n)])}function b0(e){return Array.isArray(e)?e.join(" "):e}const NA=Symbol.for("motionComponentSymbol");function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PA(e,t,n){return _.useCallback(s=>{s&&e.mount&&e.mount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):fi(n)&&(n.current=s))},[t])}const Oh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AA="framerAppearId",$w="data-"+Oh(AA),{schedule:Dh}=Vw(queueMicrotask,!1),Hw=_.createContext({});function RA(e,t,n,s,o){var l,u;const{visualElement:d}=_.useContext(ju),f=_.useContext(Bw),m=_.useContext(Au),y=_.useContext(Ru).reducedMotion,v=_.useRef(null);s=s||f.renderer,!v.current&&s&&(v.current=s(e,{visualState:t,parent:d,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y}));const x=v.current,S=_.useContext(Hw);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&jA(v.current,n,o,S);const k=_.useRef(!1);_.useInsertionEffect(()=>{x&&k.current&&x.update(n,m)});const C=n[$w],E=_.useRef(!!C&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,C))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,C)));return Ah(()=>{x&&(k.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),Dh.render(x.render),E.current&&x.animationState&&x.animationState.animateChanges())}),_.useEffect(()=>{x&&(!E.current&&x.animationState&&x.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,C)}),E.current=!1))}),x}function jA(e,t,n,s){const{layoutId:o,layout:l,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ww(e.parent)),e.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!u||d&&fi(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:m})}function Ww(e){if(e)return e.options.allowProjection!==!1?e.projection:Ww(e.parent)}function OA({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:o}){var l,u;e&&bA(e);function d(m,y){let v;const x={..._.useContext(Ru),...m,layoutId:DA(m)},{isStatic:S}=x,k=TA(m),C=s(m,S);if(!S&&Ph){MA();const E=LA(x);v=E.MeasureLayout,k.visualElement=RA(o,C,x,t,E.ProjectionNode)}return p.jsxs(ju.Provider,{value:k,children:[v&&k.visualElement?p.jsx(v,{visualElement:k.visualElement,...x}):null,n(o,m,PA(C,k.visualElement,y),C,S,k.visualElement)]})}d.displayName=`motion.${typeof o=="string"?o:`create(${(u=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&u!==void 0?u:""})`}`;const f=_.forwardRef(d);return f[NA]=o,f}function DA({layoutId:e}){const t=_.useContext(Th).id;return t&&e!==void 0?t+"-"+e:e}function MA(e,t){_.useContext(Bw).strict}function LA(e){const{drag:t,layout:n}=ji;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 IA=["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 Mh(e){return typeof e!="string"||e.includes("-")?!1:!!(IA.indexOf(e)>-1||/[A-Z]/u.test(e))}function qw(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 Kw=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 Gw(e,t,n,s){qw(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(Kw.has(o)?o:Oh(o),t.attrs[o])}const Tt=e=>!!(e&&e.getVelocity),mu={};function FA(e){Object.assign(mu,e)}const xa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Is=new Set(xa);function Qw(e,{layout:t,layoutId:n}){return Is.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mu[e]||e==="opacity")}function Lh(e,t,n){var s;const{style:o}=e,l={};for(const u in o)(Tt(o[u])||t.style&&Tt(t.style[u])||Qw(u,e)||((s=n==null?void 0:n.getValue(u))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(l[u]=o[u]);return l}function Yw(e,t,n){const s=Lh(e,t,n);for(const o in e)if(Tt(e[o])||Tt(t[o])){const l=xa.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[l]=e[o]}return s}function S0(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ih(e,t,n,s){if(typeof t=="function"){const[o,l]=S0(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]=S0(s);t=t(n!==void 0?n:e.custom,o,l)}return t}const Bf=e=>Array.isArray(e),VA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),BA=e=>Bf(e)?e[e.length-1]||0:e;function su(e){const t=Tt(e)?e.get():e;return VA(t)?t.toValue():t}function UA({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},s,o,l){const u={latestValues:zA(s,o,l,e),renderState:t()};return n&&(u.mount=d=>n(s,d,u)),u}const Xw=e=>(t,n)=>{const s=_.useContext(ju),o=_.useContext(Au),l=()=>UA(e,t,s,o);return n?l():va(l)};function zA(e,t,n,s){const o={},l=s(e,{});for(const x in l)o[x]=su(l[x]);let{initial:u,animate:d}=e;const f=Du(e),m=zw(e);t&&m&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let y=n?n.initial===!1:!1;y=y||u===!1;const v=y?d:u;if(v&&typeof v!="boolean"&&!Ou(v)){const x=Array.isArray(v)?v:[v];for(let S=0;S<x.length;S++){const k=Ih(e,x[S]);if(k){const{transitionEnd:C,transition:E,...b}=k;for(const A in b){let N=b[A];if(Array.isArray(N)){const P=y?N.length-1:0;N=N[P]}N!==null&&(o[A]=N)}for(const A in C)o[A]=C[A]}}}return o}const Fh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Jw=()=>({...Fh(),attrs:{}}),Zw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sr=(e,t,n)=>n>t?t:n<e?e:n,zi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ra={...zi,transform:e=>sr(0,1,e)},Wl={...zi,default:1},wa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=wa("deg"),Ln=wa("%"),xe=wa("px"),$A=wa("vh"),HA=wa("vw"),E0={...Ln,parse:e=>Ln.parse(e)/100,transform:e=>Ln.transform(e*100)},WA={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},qA={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:Pr,skewX:Pr,skewY:Pr,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ra,originX:E0,originY:E0,originZ:xe},C0={...zi,transform:Math.round},Vh={...WA,...qA,zIndex:C0,size:xe,fillOpacity:ra,strokeOpacity:ra,numOctaves:C0},KA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GA=xa.length;function QA(e,t,n){let s="",o=!0;for(let l=0;l<GA;l++){const u=xa[l],d=e[u];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(u.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const m=Zw(d,Vh[u]);if(!f){o=!1;const y=KA[u]||u;s+=`${y}(${m}) `}n&&(t[u]=m)}}return s=s.trim(),n?s=n(t,o?"":s):o&&(s="none"),s}const eb=e=>t=>typeof t=="string"&&t.startsWith(e),tb=eb("--"),YA=eb("var(--"),Bh=e=>YA(e)?XA.test(e.split("/*")[0].trim()):!1,XA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Uh(e,t,n){const{style:s,vars:o,transformOrigin:l}=e;let u=!1,d=!1;for(const f in t){const m=t[f];if(Is.has(f)){u=!0;continue}else if(tb(f)){o[f]=m;continue}else{const y=Zw(m,Vh[f]);f.startsWith("origin")?(d=!0,l[f]=y):s[f]=y}}if(t.transform||(u||n?s.transform=QA(t,e.transform,n):s.transform&&(s.transform="none")),d){const{originX:f="50%",originY:m="50%",originZ:y=0}=l;s.transformOrigin=`${f} ${m} ${y}`}}function _0(e,t,n){return typeof e=="string"?e:xe.transform(t+n*e)}function JA(e,t,n){const s=_0(t,e.x,e.width),o=_0(n,e.y,e.height);return`${s} ${o}`}const ZA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eR={offset:"strokeDashoffset",array:"strokeDasharray"};function tR(e,t,n=1,s=0,o=!0){e.pathLength=1;const l=o?ZA:eR;e[l.offset]=xe.transform(-s);const u=xe.transform(t),d=xe.transform(n);e[l.array]=`${u} ${d}`}function zh(e,{attrX:t,attrY:n,attrScale:s,originX:o,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...m},y,v){if(Uh(e,m,v),y){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:S,dimensions:k}=e;x.transform&&(k&&(S.transform=x.transform),delete x.transform),k&&(o!==void 0||l!==void 0||S.transform)&&(S.transformOrigin=JA(k,o!==void 0?o:.5,l!==void 0?l:.5)),t!==void 0&&(x.x=t),n!==void 0&&(x.y=n),s!==void 0&&(x.scale=s),u!==void 0&&tR(x,u,d,f,!1)}const $h=e=>typeof e=="string"&&e.toLowerCase()==="svg",nR={useVisualState:Xw({scrapeMotionValuesFromProps:Yw,createRenderState:Jw,onMount:(e,t,{renderState:n,latestValues:s})=>{Ue.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ue.render(()=>{zh(n,s,$h(t.tagName),e.transformTemplate),Gw(t,n)})}})},rR={useVisualState:Xw({scrapeMotionValuesFromProps:Lh,createRenderState:Fh})};function nb(e,t,n){for(const s in t)!Tt(t[s])&&!Qw(s,n)&&(e[s]=t[s])}function sR({transformTemplate:e},t){return _.useMemo(()=>{const n=Fh();return Uh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function iR(e,t){const n=e.style||{},s={};return nb(s,n,e),Object.assign(s,sR(e,t)),s}function oR(e,t){const n={},s=iR(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"}
209`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function aR(e,t,n,s){const o=_.useMemo(()=>{const l=Jw();return zh(l,t,$h(s),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};nb(l,e.style,e),o.style={...l,...o.style}}return o}function lR(e=!1){return(n,s,o,{latestValues:l},u)=>{const f=(Mh(n)?aR:oR)(s,l,u,n),m=CA(s,typeof n=="string",e),y=n!==_.Fragment?{...m,...f,ref:o}:{},{children:v}=s,x=_.useMemo(()=>Tt(v)?v.get():v,[v]);return _.createElement(n,{...y,children:x})}}function uR(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...Mh(s)?nR:rR,preloadedFeatures:e,useRender:lR(o),createVisualElement:t,Component:s};return OA(u)}}function rb(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 Mu(e,t,n){const s=e.getProps();return Ih(s,t,n!==void 0?n:s.custom,e)}const cR=Nh(()=>window.ScrollTimeline!==void 0);class dR{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(cR()&&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 fR extends dR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Hh(e,t){return e?e[t]||e.default||e:void 0}const Uf=2e4;function sb(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Uf;)t+=n,s=e.next(t);return t>=Uf?1/0:t}function Wh(e){return typeof e=="function"}function k0(e,t){e.timeline=t,e.onfinish=null}const qh=e=>Array.isArray(e)&&typeof e[0]=="number",hR={linearEasing:void 0};function pR(e,t){const n=Nh(e);return()=>{var s;return(s=hR[t])!==null&&s!==void 0?s:n()}}const gu=pR(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 22,431 bytes, line 209
209,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ib=(e,t,n=10)=>{let s="";const o=Math.max(Math.round(t/n),2);for(let l=0;l<o;l++)s+=e(Ri(0,o-1,l))+", ";return`linear(${s.substring(0,s.length-2)})`};function ob(e){return!!(typeof e=="function"&&gu()||!e||typeof e=="string"&&(e in zf||gu())||qh(e)||Array.isArray(e)&&e.every(ob))}const Uo=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,zf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Uo([0,.65,.55,1]),circOut:Uo([.55,0,1,.45]),backIn:Uo([.31,.01,.66,-.59]),backOut:Uo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&gu()?ib(e,t):qh(e)?Uo(e):Array.isArray(e)?e.map(n=>ab(n,t)||zf.easeOut):zf[e]}const En={x:!1,y:!1};function lb(){return En.x||En.y}function mR(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 ub(e,t){const n=mR(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[n,o,()=>s.abort()]}function T0(e){return t=>{t.pointerType==="touch"||lb()||e(t)}}function gR(e,t,n={}){const[s,o,l]=ub(e,n),u=T0(d=>{const{target:f}=d,m=t(d);if(typeof m!="function"||!f)return;const y=T0(v=>{m(v),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,o)});return s.forEach(d=>{d.addEventListener("pointerenter",u,o)}),l}const cb=(e,t)=>t?e===t?!0:cb(e,t.parentElement):!1,Kh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vR(e){return yR.has(e.tagName)||e.tabIndex!==-1}const zo=new WeakSet;function N0(e){return t=>{t.key==="Enter"&&e(t)}}function Yd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xR=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=N0(()=>{if(zo.has(n))return;Yd(n,"down");const o=N0(()=>{Yd(n,"up")}),l=()=>Yd(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 P0(e){return Kh(e)&&!lb()}function wR(e,t,n={}){const[s,o,l]=ub(e,n),u=d=>{const f=d.currentTarget;if(!P0(d)||zo.has(f))return;zo.add(f);const m=t(d),y=(S,k)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",x),!(!P0(S)||!zo.has(f))&&(zo.delete(f),typeof m=="function"&&m(S,{success:k}))},v=S=>{y(S,n.useGlobalTarget||cb(f,S.target))},x=S=>{y(S,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",x,o)};return s.forEach(d=>{!vR(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,o),d.addEventListener("focus",m=>xR(m,o),o)}),l}function bR(e){return e==="x"||e==="y"?En[e]?null:(En[e]=!0,()=>{En[e]=!1}):En.x||En.y?null:(En.x=En.y=!0,()=>{En.x=En.y=!1})}let iu;function SR(){iu=void 0}const In={now:()=>(iu===void 0&&In.set(vt.isProcessing||vA.useManualTiming?vt.timestamp:performance.now()),iu),set:e=>{iu=e,queueMicrotask(SR)}};function Gh(e,t){e.indexOf(t)===-1&&e.push(t)}function Qh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yh{constructor(){this.subscriptions=[]}add(t){return Gh(this.subscriptions,t),()=>Qh(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 u=this.subscriptions[l];u&&u(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function db(e,t){return t?e*(1e3/t):0}const A0=30,ER=e=>!isNaN(parseFloat(e)),qo={current:void 0};class CR{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const l=In.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=In.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ER(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 Yh);const s=this.events[t].add(n);return t==="change"?()=>{s(),Ue.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 qo.current&&qo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=In.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>A0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,A0);return db(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 Oi(e,t){return new CR(e,t)}function _R(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oi(n))}function kR(e,t){const n=Mu(e,t);let{transitionEnd:s={},transition:o={},...l}=n||{};l={...l,...s};for(const u in l){const d=BA(l[u]);_R(e,u,d)}}function TR(e){return!!(Tt(e)&&e.add)}function $f(e,t){const n=e.getValue("willChange");if(TR(n))return n.add(t)}function fb(e){return e.props[$w]}const hb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NR=1e-7,PR=12;function AR(e,t,n,s,o){let l,u,d=0;do u=t+(n-t)/2,l=hb(u,s,o)-e,l>0?n=u:t=u;while(Math.abs(l)>NR&&++d<PR);return u}function ba(e,t,n,s){if(e===t&&n===s)return Qt;const o=l=>AR(l,0,1,e,n);return l=>l===0||l===1?l:hb(o(l),t,s)}const pb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mb=e=>t=>1-e(1-t),gb=ba(.33,1.53,.69,.99),Xh=mb(gb),yb=pb(Xh),vb=e=>(e*=2)<1?.5*Xh(e):.5*(2-Math.pow(2,-10*(e-1))),Jh=e=>1-Math.sin(Math.acos(e)),xb=mb(Jh),wb=pb(Jh),bb=e=>/^0[^.\s]+$/u.test(e);function RR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bb(e):!0}const Sb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function OR(e){const t=jR.exec(e);if(!t)return[,];const[,n,s,o]=t;return[`--${n??s}`,o]}function Eb(e,t,n=1){const[s,o]=OR(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const u=l.trim();return Sb(u)?parseFloat(u):u}return Bh(o)?Eb(o,t,n+1):o}const DR=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),R0=e=>e===zi||e===xe,j0=(e,t)=>parseFloat(e.split(", ")[t]),O0=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return j0(o[1],t);{const l=s.match(/^matrix\((.+)\)$/u);return l?j0(l[1],e):0}},MR=new Set(["x","y","z"]),LR=xa.filter(e=>!MR.has(e));function IR(e){const t=[];return LR.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Di={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:O0(4,13),y:O0(5,14)};Di.translateX=Di.x;Di.translateY=Di.y;const Cb=e=>t=>t.test(e),FR={test:e=>e==="auto",parse:e=>e},_b=[zi,xe,Ln,Pr,HA,$A,FR],D0=e=>_b.find(Cb(e)),ks=new Set;let Hf=!1,Wf=!1;function kb(){if(Wf){const e=Array.from(ks).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const o=IR(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,u])=>{var d;(d=s.getValue(l))===null||d===void 0||d.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Wf=!1,Hf=!1,ks.forEach(e=>e.complete()),ks.clear()}function Tb(){ks.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wf=!0)})}function VR(){Tb(),kb()}class Zh{constructor(t,n,s,o,l,u=!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=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ks.add(this),Hf||(Hf=!0,Ue.read(Tb),Ue.resolveKeyframes(kb))):(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 u=o==null?void 0:o.get(),d=t[t.length-1];if(u!==void 0)t[0]=u;else if(s&&n){const f=s.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),o&&u===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),ks.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ks.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ko=e=>Math.round(e*1e5)/1e5,ep=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function BR(e){return e==null}const UR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tp=(e,t)=>n=>!!(typeof n=="string"&&UR.test(n)&&n.startsWith(e)||t&&!BR(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nb=(e,t,n)=>s=>{if(typeof s!="string")return s;const[o,l,u,d]=s.match(ep);return{[e]:parseFloat(o),[t]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},zR=e=>sr(0,255,e),Xd={...zi,transform:e=>Math.round(zR(e))},ms={test:tp("rgb","red"),parse:Nb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Xd.transform(e)+", "+Xd.transform(t)+", "+Xd.transform(n)+", "+Ko(ra.transform(s))+")"};function $R(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 qf={test:tp("#"),parse:$R,transform:ms.transform},hi={test:tp("hsl","hue"),parse:Nb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Ln.transform(Ko(t))+", "+Ln.transform(Ko(n))+", "+Ko(ra.transform(s))+")"},kt={test:e=>ms.test(e)||qf.test(e)||hi.test(e),parse:e=>ms.test(e)?ms.parse(e):hi.test(e)?hi.parse(e):qf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ms.transform(e):hi.transform(e)},HR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ep))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(HR))===null||n===void 0?void 0:n.length)||0)>0}const Pb="number",Ab="color",qR="var",KR="var(",M0="${}",GR=/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 sa(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},o=[];let l=0;const d=t.replace(GR,f=>(kt.test(f)?(s.color.push(l),o.push(Ab),n.push(kt.parse(f))):f.startsWith(KR)?(s.var.push(l),o.push(qR),n.push(f)):(s.number.push(l),o.push(Pb),n.push(parseFloat(f))),++l,M0)).split(M0);return{values:n,split:d,indexes:s,types:o}}function Rb(e){return sa(e).values}function jb(e){const{split:t,types:n}=sa(e),s=t.length;return o=>{let l="";for(let u=0;u<s;u++)if(l+=t[u],o[u]!==void 0){const d=n[u];d===Pb?l+=Ko(o[u]):d===Ab?l+=kt.transform(o[u]):l+=o[u]}return l}}const QR=e=>typeof e=="number"?0:e;function YR(e){const t=Rb(e);return jb(e)(t.map(QR))}const $r={test:WR,parse:Rb,createTransformer:jb,getAnimatableNone:YR},XR=new Set(["brightness","contrast","saturate","opacity"]);function JR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(ep)||[];if(!s)return e;const o=n.replace(s,"");let l=XR.has(t)?1:0;return s!==n&&(l*=100),t+"("+l+o+")"}const ZR=/\b([a-z-]*)\(.*?\)/gu,Kf={...$r,getAnimatableNone:e=>{const t=e.match(ZR);return t?t.map(JR).join(" "):e}},ej={...Vh,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:Kf,WebkitFilter:Kf},np=e=>ej[e];function Ob(e,t){let n=np(e);return n!==Kf&&(n=$r),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const tj=new Set(["auto","none","0"]);function nj(e,t,n){let s=0,o;for(;s<e.length&&!o;){const l=e[s];typeof l=="string"&&!tj.has(l)&&sa(l).values.length&&(o=e[s]),s++}if(o&&n)for(const l of t)e[l]=Ob(n,o)}class Db extends Zh{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 m=t[f];if(typeof m=="string"&&(m=m.trim(),Bh(m))){const y=Eb(m,n.current);y!==void 0&&(t[f]=y),f===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!DR.has(s)||t.length!==2)return;const[o,l]=t,u=D0(o),d=D0(l);if(u!==d)if(R0(u)&&R0(d))for(let f=0;f<t.length;f++){const m=t[f];typeof m=="string"&&(t[f]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let o=0;o<t.length;o++)RR(t[o])&&s.push(o);s.length&&nj(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=Di[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 u=o.length-1,d=o[u];o[u]=Di[s](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,m])=>{n.getValue(f).set(m)}),this.resolveNoneKeyframes()}}const L0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($r.test(e)||e==="0")&&!e.startsWith("url("));function rj(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 sj(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],u=L0(o,t),d=L0(l,t);return!u||!d?!1:rj(e)||(n==="spring"||Wh(n))&&s}const ij=e=>e!==null;function Lu(e,{repeat:t,repeatType:n="loop"},s){const o=e.filter(ij),l=t&&n!=="loop"&&t%2===1?0:o.length-1;return!l||s===void 0?o[l]:s}const oj=40;class Mb{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=In.now(),this.options={autoplay:t,delay:n,type:s,repeat:o,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>oj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&VR(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=In.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:l,delay:u,onComplete:d,onUpdate:f,isGenerator:m}=this.options;if(!m&&!sj(t,s,o,l))if(u)this.options.duration=0;else{f==null||f(Lu(t,this.options,n)),d==null||d(),this.resolveFinishedPromise();return}const y=this.initPlayback(t,n);y!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...y},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 Ke=(e,t,n)=>e+(t-e)*n;function Jd(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 aj({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let o=0,l=0,u=0;if(!t)o=l=u=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;o=Jd(f,d,e+1/3),l=Jd(f,d,e),u=Jd(f,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:s}}function yu(e,t){return n=>n>0?t:e}const Zd=(e,t,n)=>{const s=e*e,o=n*(t*t-s)+s;return o<0?0:Math.sqrt(o)},lj=[qf,ms,hi],uj=e=>lj.find(t=>t.test(e));function I0(e){const t=uj(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=aj(n)),n}const F0=(e,t)=>{const n=I0(e),s=I0(t);if(!n||!s)return yu(e,t);const o={...n};return l=>(o.red=Zd(n.red,s.red,l),o.green=Zd(n.green,s.green,l),o.blue=Zd(n.blue,s.blue,l),o.alpha=Ke(n.alpha,s.alpha,l),ms.transform(o))},cj=(e,t)=>n=>t(e(n)),Sa=(...e)=>e.reduce(cj),Gf=new Set(["none","hidden"]);function dj(e,t){return Gf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fj(e,t){return n=>Ke(e,t,n)}function rp(e){return typeof e=="number"?fj:typeof e=="string"?Bh(e)?yu:kt.test(e)?F0:mj:Array.isArray(e)?Lb:typeof e=="object"?kt.test(e)?F0:hj:yu}function Lb(e,t){const n=[...e],s=n.length,o=e.map((l,u)=>rp(l)(l,t[u]));return l=>{for(let u=0;u<s;u++)n[u]=o[u](l);return n}}function hj(e,t){const n={...e,...t},s={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(s[o]=rp(e[o])(e[o],t[o]));return o=>{for(const l in s)n[l]=s[l](o);return n}}function pj(e,t){var n;const s=[],o={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const u=t.types[l],d=e.indexes[u][o[u]],f=(n=e.values[d])!==null&&n!==void 0?n:0;s[l]=f,o[u]++}return s}const mj=(e,t)=>{const n=$r.createTransformer(t),s=sa(e),o=sa(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?Gf.has(e)&&!o.values.length||Gf.has(t)&&!s.values.length?dj(e,t):Sa(Lb(pj(s,o),o.values),n):yu(e,t)};function Ib(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ke(e,t,n):rp(e)(e,t)}const gj=5;function Fb(e,t,n){const s=Math.max(t-gj,0);return db(n-e(s),t-s)}const Ye={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},ef=.001;function yj({duration:e=Ye.duration,bounce:t=Ye.bounce,velocity:n=Ye.velocity,mass:s=Ye.mass}){let o,l,u=1-t;u=sr(Ye.minDamping,Ye.maxDamping,u),e=sr(Ye.minDuration,Ye.maxDuration,tr(e)),u<1?(o=m=>{const y=m*u,v=y*e,x=y-n,S=Qf(m,u),k=Math.exp(-v);return ef-x/S*k},l=m=>{const v=m*u*e,x=v*n+n,S=Math.pow(u,2)*Math.pow(m,2)*e,k=Math.exp(-v),C=Qf(Math.pow(m,2),u);return(-o(m)+ef>0?-1:1)*((x-S)*k)/C}):(o=m=>{const y=Math.exp(-m*e),v=(m-n)*e+1;return-ef+y*v},l=m=>{const y=Math.exp(-m*e),v=(n-m)*(e*e);return y*v});const d=5/e,f=xj(o,l,d);if(e=er(e),isNaN(f))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:e};{const m=Math.pow(f,2)*s;return{stiffness:m,damping:u*2*Math.sqrt(s*m),duration:e}}}const vj=12;function xj(e,t,n){let s=n;for(let o=1;o<vj;o++)s=s-e(s)/t(s);return s}function Qf(e,t){return e*Math.sqrt(1-t*t)}const wj=["duration","bounce"],bj=["stiffness","damping","mass"];function V0(e,t){return t.some(n=>e[n]!==void 0)}function Sj(e){let t={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...e};if(!V0(e,bj)&&V0(e,wj))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,l=2*sr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ye.mass,stiffness:o,damping:l}}else{const n=yj(e);t={...t,...n,mass:Ye.mass},t.isResolvedFromDuration=!0}return t}function Vb(e=Ye.visualDuration,t=Ye.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],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:m,mass:y,duration:v,velocity:x,isResolvedFromDuration:S}=Sj({...n,velocity:-tr(n.velocity||0)}),k=x||0,C=m/(2*Math.sqrt(f*y)),E=u-l,b=tr(Math.sqrt(f/y)),A=Math.abs(E)<5;s||(s=A?Ye.restSpeed.granular:Ye.restSpeed.default),o||(o=A?Ye.restDelta.granular:Ye.restDelta.default);let N;if(C<1){const I=Qf(b,C);N=z=>{const Q=Math.exp(-C*b*z);return u-Q*((k+C*b*E)/I*Math.sin(I*z)+E*Math.cos(I*z))}}else if(C===1)N=I=>u-Math.exp(-b*I)*(E+(k+b*E)*I);else{const I=b*Math.sqrt(C*C-1);N=z=>{const Q=Math.exp(-C*b*z),U=Math.min(I*z,300);return u-Q*((k+C*b*E)*Math.sinh(U)+I*E*Math.cosh(U))/I}}const P={calculatedDuration:S&&v||null,next:I=>{const z=N(I);if(S)d.done=I>=v;else{let Q=0;C<1&&(Q=I===0?er(k):Fb(N,I,z));const U=Math.abs(Q)<=s,me=Math.abs(u-z)<=o;d.done=U&&me}return d.value=d.done?u:z,d},toString:()=>{const I=Math.min(sb(P),Uf),z=ib(Q=>P.next(I*Q).value,I,30);return I+"ms "+z}};return P}function B0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:f,restDelta:m=.5,restSpeed:y}){const v=e[0],x={done:!1,value:v},S=U=>d!==void 0&&U<d||f!==void 0&&U>f,k=U=>d===void 0?f:f===void 0||Math.abs(d-U)<Math.abs(f-U)?d:f;let C=n*t;const E=v+C,b=u===void 0?E:u(E);b!==E&&(C=b-v);const A=U=>-C*Math.exp(-U/s),N=U=>
vendor: 4,750 bytes, line 209
209b+A(U),P=U=>{const me=A(U),Y=N(U);x.done=Math.abs(me)<=m,x.value=x.done?b:Y};let I,z;const Q=U=>{S(x.value)&&(I=U,z=Vb({keyframes:[x.value,k(x.value)],velocity:Fb(N,U,x.value),damping:o,stiffness:l,restDelta:m,restSpeed:y}))};return Q(0),{calculatedDuration:null,next:U=>{let me=!1;return!z&&I===void 0&&(me=!0,P(U),Q(U)),I!==void 0&&U>=I?z.next(U-I):(!me&&P(U),x)}}}const Ej=ba(.42,0,1,1),Cj=ba(0,0,.58,1),Bb=ba(.42,0,.58,1),_j=e=>Array.isArray(e)&&typeof e[0]!="number",kj={linear:Qt,easeIn:Ej,easeInOut:Bb,easeOut:Cj,circIn:Jh,circInOut:wb,circOut:xb,backIn:Xh,backInOut:yb,backOut:gb,anticipate:vb},U0=e=>{if(qh(e)){Fw(e.length===4);const[t,n,s,o]=e;return ba(t,n,s,o)}else if(typeof e=="string")return kj[e];return e};function Tj(e,t,n){const s=[],o=n||Ib,l=e.length-1;for(let u=0;u<l;u++){let d=o(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Qt:t;d=Sa(f,d)}s.push(d)}return s}function Ub(e,t,{clamp:n=!0,ease:s,mixer:o}={}){const l=e.length;if(Fw(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 u=Tj(t,s,o),d=u.length,f=m=>{let y=0;if(d>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const v=Ri(e[y],e[y+1],m);return u[y](v)};return n?m=>f(sr(e[0],e[l-1],m)):f}function Nj(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const o=Ri(0,t,s);e.push(Ke(n,1,o))}}function Pj(e){const t=[0];return Nj(t,e.length-1),t}function Aj(e,t){return e.map(n=>n*t)}function Rj(e,t){return e.map(()=>t||Bb).splice(0,e.length-1)}function vu({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const o=_j(s)?s.map(U0):U0(s),l={done:!1,value:t[0]},u=Aj(n&&n.length===t.length?n:Pj(t),e),d=Ub(u,t,{ease:Array.isArray(o)?o:Rj(t,o)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const jj=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ue.update(t,!0),stop:()=>rr(t),now:()=>vt.isProcessing?vt.timestamp:In.now()}},Oj={decay:B0,inertia:B0,tween:vu,keyframes:vu,spring:Vb},Dj=e=>e/100;class sp extends Mb{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,u=(o==null?void 0:o.KeyframeResolver)||Zh,d=(f,m)=>this.onKeyframesResolved(f,m);this.resolver=new u(l,d,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:u=0}=this.options,d=Wh(n)?n:Oj[n]||vu;let f,m;d!==vu&&typeof t[0]!="number"&&(f=Sa(Dj,Ib(t[0],t[1])),t=[0,100]);const y=d({...this.options,keyframes:t});l==="mirror"&&(m=d({...this.options,keyframes:[...t].reverse(),velocity:-u})),y.calculatedDuration===null&&(y.calculatedDuration=sb(y));const{calculatedDuration:v}=y,x=v+o,S=x*(s+1)-o;return{generator:y,mirroredGenerator:m,mapPercentToKeyframes:f,calculatedDuration:v,resolvedDuration:x,totalDuration:S}}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:U}=this.options;return{done:!0,value:U[U.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:m,totalDuration:y,resolvedDuration:v}=s;if(this.startTime===null)return l.next(0);const{delay:x,repeat:S,repeatType:k,repeatDelay:C,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-y/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 b=this.currentTime-x*(this.speed>=0?1:-1),A=this.speed>=0?b<0:b>y;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let N=this.currentTime,P=l;if(S){const U=Math.min(this.currentTime,y)/v;let me=Math.floor(U),Y=U%1;!Y&&U>=1&&(Y=1),Y===1&&me--,me=Math.min(me,S+1),!!(me%2)&&(k==="reverse"?(Y=1-Y,C&&(Y-=C/v)):k==="mirror"&&(P=u)),N=sr(0,1,Y)*v}const I=A?{done:!1,value:f[0]}:P.next(N);d&&(I.value=d(I.value));let{done:z}=I;!A&&m!==null&&(z=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return Q&&o!==void 0&&(I.value=Lu(f,this.options,o)),E&&E(I.value),Q&&this.finish(),I}get duration(){const{resolved:t}=this;return t?tr(t.calculatedDuration):0}
vendor: 59,003 bytes, line 209
209get time(){return tr(this.currentTime)}set time(t){t=er(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=tr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=jj,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 Mj=new Set(["opacity","clipPath","filter","transform"]);function Lj(e,t,n,{delay:s=0,duration:o=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:f}={}){const m={[t]:n};f&&(m.offset=f);const y=ab(d,o);return Array.isArray(y)&&(m.easing=y),e.animate(m,{delay:s,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const Ij=Nh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xu=10,Fj=2e4;function Vj(e){return Wh(e.type)||e.type==="spring"||!ob(e.ease)}function Bj(e,t){const n=new sp({...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<Fj;)s=n.sample(l),o.push(s.value),l+=xu;return{times:void 0,keyframes:o,duration:l-xu,ease:"linear"}}const zb={anticipate:vb,backInOut:yb,circInOut:wb};function Uj(e){return e in zb}class z0 extends Mb{constructor(t){super(t);const{name:n,motionValue:s,element:o,keyframes:l}=this.options;this.resolver=new Db(l,(u,d)=>this.onKeyframesResolved(u,d),n,s,o),this.resolver.scheduleResolve()}initPlayback(t,n){var s;let{duration:o=300,times:l,ease:u,type:d,motionValue:f,name:m,startTime:y}=this.options;if(!(!((s=f.owner)===null||s===void 0)&&s.current))return!1;if(typeof u=="string"&&gu()&&Uj(u)&&(u=zb[u]),Vj(this.options)){const{onComplete:x,onUpdate:S,motionValue:k,element:C,...E}=this.options,b=Bj(t,E);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,l=b.times,u=b.ease,d="keyframes"}const v=Lj(f.owner.current,m,t,{...this.options,duration:o,times:l,ease:u});return v.startTime=y??this.calcStartTime(),this.pendingTimeline?(k0(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:x}=this.options;f.set(Lu(t,this.options,n)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:o,times:l,type:d,ease:u,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return tr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return tr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=er(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 Qt;const{animation:s}=n;k0(s,t)}return Qt}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:u,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:y,onComplete:v,element:x,...S}=this.options,k=new sp({...S,keyframes:s,duration:o,type:l,ease:u,times:d,isGenerator:!0}),C=er(this.time);m.setWithVelocity(k.sample(C-xu).value,k.sample(C).value,xu)}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:u,type:d}=t;return Ij()&&s&&Mj.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&l!=="mirror"&&u!==0&&d!=="inertia"}}const zj={type:"spring",stiffness:500,damping:25,restSpeed:10},$j=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Hj={type:"keyframes",duration:.8},Wj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qj=(e,{keyframes:t})=>t.length>2?Hj:Is.has(e)?e.startsWith("scale")?$j(t[1]):zj:Wj;function Kj({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:l,repeatType:u,repeatDelay:d,from:f,elapsed:m,...y}){return!!Object.keys(y).length}const ip=(e,t,n,s={},o,l)=>u=>{const d=Hh(s,e)||{},f=d.delay||s.delay||0;let{elapsed:m=0}=s;m=m-er(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-m,onUpdate:x=>{t.set(x),d.onUpdate&&d.onUpdate(x)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:o};Kj(d)||(y={...y,...qj(e,y)}),y.duration&&(y.duration=er(y.duration)),y.repeatDelay&&(y.repeatDelay=er(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(v=!0)),v&&!l&&t.get()!==void 0){const x=Lu(y.keyframes,d);if(x!==void 0)return Ue.update(()=>{y.onUpdate(x),y.onComplete()}),new fR([])}return!l&&z0.supports(y)?new z0(y):new sp(y)};function Gj({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function $b(e,t,{delay:n=0,transitionOverride:s,type:o}={}){var l;let{transition:u=e.getDefaultTransition(),transitionEnd:d,...f}=t;s&&(u=s);const m=[],y=o&&e.animationState&&e.animationState.getState()[o];for(const v in f){const x=e.getValue(v,(l=e.latestValues[v])!==null&&l!==void 0?l:null),S=f[v];if(S===void 0||y&&Gj(y,v))continue;const k={delay:n,...Hh(u||{},v)};let C=!1;if(window.MotionHandoffAnimation){const b=fb(e);if(b){const A=window.MotionHandoffAnimation(b,v,Ue);A!==null&&(k.startTime=A,C=!0)}}$f(e,v),x.start(ip(v,x,S,e.shouldReduceMotion&&Is.has(v)?{type:!1}:k,e,C));const E=x.animation;E&&m.push(E)}return d&&Promise.all(m).then(()=>{Ue.update(()=>{d&&kR(e,d)})}),m}function Yf(e,t,n={}){var s;const o=Mu(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 u=o?()=>Promise.all($b(e,o,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:x}=l;return Qj(e,t,y+m,v,x,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[m,y]=f==="beforeChildren"?[u,d]:[d,u];return m().then(()=>y())}else return Promise.all([u(),d(n.delay)])}function Qj(e,t,n=0,s=0,o=1,l){const u=[],d=(e.variantChildren.size-1)*s,f=o===1?(m=0)=>m*s:(m=0)=>d-m*s;return Array.from(e.variantChildren).sort(Yj).forEach((m,y)=>{m.notify("AnimationStart",t),u.push(Yf(m,t,{...l,delay:n+f(y)}).then(()=>m.notify("AnimationComplete",t)))}),Promise.all(u)}function Yj(e,t){return e.sortNodePosition(t)}function Xj(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(l=>Yf(e,l,n));s=Promise.all(o)}else if(typeof t=="string")s=Yf(e,t,n);else{const o=typeof t=="function"?Mu(e,t,n.custom):t;s=Promise.all($b(e,o,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Jj=jh.length;function Hb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Hb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Jj;n++){const s=jh[n],o=e.props[s];(na(o)||o===!1)&&(t[s]=o)}return t}const Zj=[...Rh].reverse(),eO=Rh.length;function tO(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Xj(e,n,s)))}function nO(e){let t=tO(e),n=$0(),s=!0;const o=f=>(m,y)=>{var v;const x=Mu(e,y,f==="exit"?(v=e.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(x){const{transition:S,transitionEnd:k,...C}=x;m={...m,...C,...k}}return m};function l(f){t=f(e)}function u(f){const{props:m}=e,y=Hb(e.parent)||{},v=[],x=new Set;let S={},k=1/0;for(let E=0;E<eO;E++){const b=Zj[E],A=n[b],N=m[b]!==void 0?m[b]:y[b],P=na(N),I=b===f?A.isActive:null;I===!1&&(k=E);let z=N===y[b]&&N!==m[b]&&P;if(z&&s&&e.manuallyAnimateOnMount&&(z=!1),A.protectedKeys={...S},!A.isActive&&I===null||!N&&!A.prevProp||Ou(N)||typeof N=="boolean")continue;const Q=rO(A.prevProp,N);let U=Q||b===f&&A.isActive&&!z&&P||E>k&&P,me=!1;const Y=Array.isArray(N)?N:[N];let oe=Y.reduce(o(b),{});I===!1&&(oe={});const{prevResolvedValues:Se={}}=A,Ee={...Se,...oe},Re=ae=>{U=!0,x.has(ae)&&(me=!0,x.delete(ae)),A.needsAnimating[ae]=!0;const B=e.getValue(ae);B&&(B.liveStyle=!1)};for(const ae in Ee){const B=oe[ae],te=Se[ae];if(S.hasOwnProperty(ae))continue;let G=!1;Bf(B)&&Bf(te)?G=!rb(B,te):G=B!==te,G?B!=null?Re(ae):x.add(ae):B!==void 0&&x.has(ae)?Re(ae):A.protectedKeys[ae]=!0}A.prevProp=N,A.prevResolvedValues=oe,A.isActive&&(S={...S,...oe}),s&&e.blockInitialAnimation&&(U=!1),U&&(!(z&&Q)||me)&&v.push(...Y.map(ae=>({animation:ae,options:{type:b}})))}if(x.size){const E={};x.forEach(b=>{const A=e.getBaseTarget(b),N=e.getValue(b);N&&(N.liveStyle=!0),E[b]=A??null}),v.push({animation:E})}let C=!!v.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(C=!1),s=!1,C?t(v):Promise.resolve()}function d(f,m){var y;if(n[f].isActive===m)return Promise.resolve();(y=e.variantChildren)===null||y===void 0||y.forEach(x=>{var S;return(S=x.animationState)===null||S===void 0?void 0:S.setActive(f,m)}),n[f].isActive=m;const v=u(f);for(const x in n)n[x].protectedKeys={};return v}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=$0(),s=!0}}}function rO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rb(t,e):!1}function us(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $0(){return{animate:us(!0),whileInView:us(),whileHover:us(),whileTap:us(),whileDrag:us(),whileFocus:us(),exit:us()}}class Wr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sO extends Wr{constructor(t){super(t),t.animationState||(t.animationState=nO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ou(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 iO=0;class oO extends Wr{constructor(){super(...arguments),this.id=iO++}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 aO={animation:{Feature:sO},exit:{Feature:oO}};function ia(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Ea(e){return{point:{x:e.pageX,y:e.pageY}}}const lO=e=>t=>Kh(t)&&e(t,Ea(t));function Go(e,t,n,s){return ia(e,t,lO(n),s)}const H0=(e,t)=>Math.abs(e-t);function uO(e,t){const n=H0(e.x,t.x),s=H0(e.y,t.y);return Math.sqrt(n**2+s**2)}class Wb{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 v=nf(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,S=uO(v.offset,{x:0,y:0})>=3;if(!x&&!S)return;const{point:k}=v,{timestamp:C}=vt;this.history.push({...k,timestamp:C});const{onStart:E,onMove:b}=this.handlers;x||(E&&E(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=tf(x,this.transformPagePoint),Ue.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:S,onSessionEnd:k,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=nf(v.type==="pointercancel"?this.lastMoveEventInfo:tf(x,this.transformPagePoint),this.history);this.startEvent&&S&&S(v,E),k&&k(v,E)},!Kh(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const u=Ea(t),d=tf(u,this.transformPagePoint),{point:f}=d,{timestamp:m}=vt;this.history=[{...f,timestamp:m}];const{onSessionStart:y}=n;y&&y(t,nf(d,this.history)),this.removeListeners=Sa(Go(this.contextWindow,"pointermove",this.handlePointerMove),Go(this.contextWindow,"pointerup",this.handlePointerUp),Go(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),rr(this.updatePoint)}}function tf(e,t){return t?{point:t(e.point)}:e}function W0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nf({point:e},t){return{point:e,delta:W0(e,qb(t)),offset:W0(e,cO(t)),velocity:dO(t,.1)}}function cO(e){return e[0]}function qb(e){return e[e.length-1]}function dO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=qb(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>er(t)));)n--;if(!s)return{x:0,y:0};const l=tr(o.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const u={x:(o.x-s.x)/l,y:(o.y-s.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const Kb=1e-4,fO=1-Kb,hO=1+Kb,Gb=.01,pO=0-Gb,mO=0+Gb;function Yt(e){return e.max-e.min}function gO(e,t,n){return Math.abs(e-t)<=n}function q0(e,t,n,s=.5){e.origin=s,e.originPoint=Ke(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=Ke(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fO&&e.scale<=hO||isNaN(e.scale))&&(e.scale=1),(e.translate>=pO&&e.translate<=mO||isNaN(e.translate))&&(e.translate=0)}function Qo(e,t,n,s){q0(e.x,t.x,n.x,s?s.originX:void 0),q0(e.y,t.y,n.y,s?s.originY:void 0)}function K0(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function yO(e,t,n){K0(e.x,t.x,n.x),K0(e.y,t.y,n.y)}function G0(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function Yo(e,t,n){G0(e.x,t.x,n.x),G0(e.y,t.y,n.y)}function vO(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Ke(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Ke(n,e,s.max):Math.min(e,n)),e}function Q0(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 xO(e,{top:t,left:n,bottom:s,right:o}){return{x:Q0(e.x,n,o),y:Q0(e.y,t,s)}}function Y0(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 wO(e,t){return{x:Y0(e.x,t.x),y:Y0(e.y,t.y)}}function bO(e,t){let n=.5;const s=Yt(e),o=Yt(t);return o>s?n=Ri(t.min,t.max-s,e.min):s>o&&(n=Ri(e.min,e.max-o,t.min)),sr(0,1,n)}function SO(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 Xf=.35;function EO(e=Xf){return e===!1?e=0:e===!0&&(e=Xf),{x:X0(e,"left","right"),y:X0(e,"top","bottom")}}function X0(e,t,n){return{min:J0(e,t),max:J0(e,n)}}function J0(e,t){return typeof e=="number"?e:e[t]||0}const Z0=()=>({translate:0,scale:1,origin:0,originPoint:0}),pi=()=>({x:Z0(),y:Z0()}),ev=()=>({min:0,max:0}),Ze=()=>({x:ev(),y:ev()});function an(e){return[e("x"),e("y")]}function Qb({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function CO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _O(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 rf(e){return e===void 0||e===1}function Jf({scale:e,scaleX:t,scaleY:n}){return!rf(e)||!rf(t)||!rf(n)}function ds(e){return Jf(e)||Yb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yb(e){return tv(e.x)||tv(e.y)}function tv(e){return e&&e!=="0%"}function wu(e,t,n){const s=e-n,o=t*s;return n+o}function nv(e,t,n,s,o){return o!==void 0&&(e=wu(e,o,s)),wu(e,n,s)+t}function Zf(e,t=0,n=1,s,o){e.min=nv(e.min,t,n,s,o),e.max=nv(e.max,t,n,s,o)}function Xb(e,{x:t,y:n}){Zf(e.x,t.translate,t.scale,t.originPoint),Zf(e.y,n.translate,n.scale,n.originPoint)}const rv=.999999999999,sv=1.0000000000001;function kO(e,t,n,s=!1){const o=n.length;if(!o)return;t.x=t.y=1;let l,u;for(let d=0;d<o;d++){l=n[d],u=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&&gi(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Xb(e,u)),s&&ds(l.latestValues)&&gi(e,l.latestValues))}t.x<sv&&t.x>rv&&(t.x=1),t.y<sv&&t.y>rv&&(t.y=1)}function mi(e,t){e.min=e.min+t,e.max=e.max+t}function iv(e,t,n,s,o=.5){const l=Ke(e.min,e.max,o);Zf(e,t,n,l,s)}function gi(e,t){iv(e.x,t.x,t.scaleX,t.scale,t.originX),iv(e.y,t.y,t.scaleY,t.scale,t.originY)}function Jb(e,t){return Qb(_O(e.getBoundingClientRect(),t))}function TO(e,t,n){const s=Jb(e,n),{scroll:o}=t;return o&&(mi(s.x,o.offset.x),mi(s.y,o.offset.y)),s}const Zb=({current:e})=>e?e.ownerDocument.defaultView:null,NO=new WeakMap;class PO{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=Ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ea(y).point)},l=(y,v)=>{const{drag:x,dragPropagation:S,onDragStart:k}=this.getProps();if(x&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bR(x),!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),an(E=>{let b=this.getAxisMotionValue(E).get()||0;if(Ln.test(b)){const{projection:A}=this.visualElement;if(A&&A.layout){const N=A.layout.layoutBox[E];N&&(b=Yt(N)*(parseFloat(b)/100))}}this.originPoint[E]=b}),k&&Ue.postRender(()=>k(y,v)),$f(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(y,v)=>{const{dragPropagation:x,dragDirectionLock:S,onDirectionLock:k,onDrag:C}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:E}=v;if(S&&this.currentDirection===null){this.currentDirection=AO(E),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",v.point,E),this.updateAxis("y",v.point,E),this.visualElement.render(),C&&C(y,v)},d=(y,v)=>this.stop(y,v),f=()=>an(y=>{var v;return this.getAnimationState(y)==="paused"&&((v=this.getAxisMotionValue(y).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Wb(t,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Zb(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&&Ue.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||!ql(t,o,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(u=vO(u,this.constraints[t],this.elastic[t])),l.set(u)}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&&fi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=xO(o.layoutBox,n):this.constraints=!1,this.elastic=EO(s),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&an(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=SO(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=TO(s,o.root,this.visualElement.getTransformPagePoint());let u=wO(o.layout.layoutBox,l);if(n){const d=n(CO(u));this.hasMutatedConstraints=!!d,d&&(u=Qb(d))}return u}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},m=an(y=>{if(!ql(y,n,this.currentDirection))return;let v=f&&f[y]||{};u&&(v={min:0,max:0});const x=o?200:1e6,S=o?40:1e7,k={type:"inertia",velocity:s?t[y]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...l,...v};return this.startAxisValueAnimation(y,k)});return Promise.all(m).then(d)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return $f(this.visualElement,t),s.start(ip(t,s,0,n,this.visualElement,!1))}stopAnimation(){an(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){an(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){an(n=>{const{drag:s}=this.getProps();if(!ql(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:d}=o.layout.layoutBox[n];l.set(t[n]-Ke(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!fi(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};an(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();o[u]=bO({min:f,max:f},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),an(u=>{if(!ql(u,t,null))return;const d=this.getAxisMotionValue(u),{min:f,max:m}=this.constraints[u];d.set(Ke(f,m,o[u]))})}addListeners(){if(!this.visualElement.current)return;NO.set(this.visualElement,this);const t=this.visualElement.current,n=Go(t,"pointerdown",f=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();fi(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()),Ue.read(s);const u=ia(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(an(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=f[y].translate,v.set(v.get()+f[y].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:u=Xf,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function ql(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function AO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RO extends Wr{constructor(t){super(t),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new PO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const ov=e=>(t,n)=>{e&&Ue.postRender(()=>e(t,n))};class jO extends Wr{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(t){this.session=new Wb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:ov(t),onStart:ov(n),onMove:s,onEnd:(l,u)=>{delete this.session,o&&Ue.postRender(()=>o(l,u))}}}mount(){this.removePointerDownListener=Go(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 OO(){const e=_.useContext(Au);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:s}=e,o=_.useId();_.useEffect(()=>s(o),[]);const l=_.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,l]:[!0]}const ou={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function av(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=av(e,t.target.x),s=av(e,t.target.y);return`${n}% ${s}%`}},DO={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,o=$r.parse(e);if(o.length>5)return s;const l=$r.createTransformer(e),u=typeof o[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;o[0+u]/=d,o[1+u]/=f;const m=Ke(d,f,.5);return typeof o[2+u]=="number"&&(o[2+u]/=m),typeof o[3+u]=="number"&&(o[3+u]/=m),l(o)}};class MO extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:l}=t;FA(LO),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()})),ou.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:l}=this.props,u=s.projection;return u&&(u.isPresent=l,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||Ue.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Dh.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 e1(e){const[t,n]=OO(),s=_.useContext(Th);return p.jsx(MO,{...e,layoutGroup:s,switchLayoutGroup:_.useContext(Hw),isPresent:t,safeToRemove:n})}const LO={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:DO};function IO(e,t,n){const s=Tt(e)?e:Oi(e);return s.start(ip("",s,t,n)),s.animation}function FO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VO=(e,t)=>e.depth-t.depth;class BO{constructor(){this.children=[],this.isDirty=!1}add(t){Gh(this.children,t),this.isDirty=!0}remove(t){Qh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VO),this.isDirty=!1,this.children.forEach(t)}}function UO(e,t){const n=In.now(),s=({timestamp:o})=>{const l=o-n;l>=t&&(rr(s),e(l-t))};return Ue.read(s,!0),()=>rr(s)}const t1=["TopLeft","TopRight","BottomLeft","BottomRight"],zO=t1.length,lv=e=>typeof e=="string"?parseFloat(e):e,uv=e=>typeof e=="number"||xe.test(e);function $O(e,t,n,s,o,l){o?(e.opacity=Ke(0,n.opacity!==void 0?n.opacity:1,HO(s)),e.opacityExit=Ke(t.opacity!==void 0?t.opacity:1,0,WO(s))):l&&(e.opacity=Ke(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let u=0;u<zO;u++){const d=`border${t1[u]}Radius`;let f=cv(t,d),m=cv(n,d);if(f===void 0&&m===void 0)continue;f||(f=0),m||(m=0),f===0||m===0||uv(f)===uv(m)?(e[d]=Math.max(Ke(lv(f),lv(m),s),0),(Ln.test(m)||Ln.test(f))&&(e[d]+="%")):e[d]=m}(t.rotate||n.rotate)&&(e.rotate=Ke(t.rotate||0,n.rotate||0,s))}function cv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HO=n1(0,.5,xb),WO=n1(.5,.95,Qt);function n1(e,t,n){return s=>s<e?0:s>t?1:n(Ri(e,t,s))}function dv(e,t){e.min=t.min,e.max=t.max}function on(e,t){dv(e.x,t.x),dv(e.y,t.y)}function fv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hv(e,t,n,s,o){return e-=t,e=wu(e,1/n,s),o!==void 0&&(e=wu(e,1/o,s)),e}function qO(e,t=0,n=1,s=.5,o,l=e,u=e){if(Ln.test(t)&&(t=parseFloat(t),t=Ke(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=Ke(l.min,l.max,s);e===l&&(d-=t),e.min=hv(e.min,t,n,d,o),e.max=hv(e.max,t,n,d,o)}function pv(e,t,[n,s,o],l,u){qO(e,t[n],t[s],t[o],t.scale,l,u)}const KO=["x","scaleX","originX"],GO=["y","scaleY","originY"];function mv(e,t,n,s){pv(e.x,t,KO,n?n.x:void 0,s?s.x:void 0),pv(e.y,t,GO,n?n.y:void 0,s?s.y:void 0)}function gv(e){return e.translate===0&&e.scale===1}function r1(e){return gv(e.x)&&gv(e.y)}function yv(e,t){return e.min===t.min&&e.max===t.max}function QO(e,t){return yv(e.x,t.x)&&yv(e.y,t.y)}function vv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function s1(e,t){return vv(e.x,t.x)&&vv(e.y,t.y)}function xv(e){return Yt(e.x)/Yt(e.y)}function wv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YO{constructor(){this.members=[]}add(t){Gh(this.members,t),t.scheduleRender()}remove(t){if(Qh(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 XO(e,t,n){let s="";const o=e.x.translate/t.x,l=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((o||l||u)&&(s=`translate3d(${o}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:x,skewX:S,skewY:k}=n;m&&(s=`perspective(${m}px) ${s}`),y&&(s+=`rotate(${y}deg) `),v&&(s+=`rotateX(${v}deg) `),x&&(s+=`rotateY(${x}deg) `),S&&(s+=`skewX(${S}deg) `),k&&(s+=`skewY(${k}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(s+=`scale(${d}, ${f})`),s||"none"}const fs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},$o=typeof window<"u"&&window.MotionDebug!==void 0,sf=["","X","Y","Z"],JO={visibility:"hidden"},bv=1e3;let ZO=0;function of(e,t,n,s){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function i1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ue,!(o||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&i1(s)}function o1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},d=t==null?void 0:t()){this.id=ZO++,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,$o&&(fs.totalNodes=fs.resolvedTargetDeltas=fs.recalculatedProjection=0),this.nodes.forEach(nD),this.nodes.forEach(aD),this.nodes.forEach(lD),this.nodes.forEach(rD),$o&&window.MotionDebug.record(fs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new BO)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Yh),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const f=this.eventHandlers.get(u);f&&f.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=FO(u),this.instance=u;const{layoutId:f,layout:m,visualElement:y}=this.options;if(y&&!y.current&&y.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||f)&&(this.isLayoutDirty=!0),e){let v;const x=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=UO(x,250),ou.hasAnimatedSinceResize&&(ou.hasAnimatedSinceResize=!1,this.nodes.forEach(Ev))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeTargetChanged:S,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||y.getDefaultTransition()||hD,{onLayoutAnimationStart:E,onLayoutAnimationComplete:b}=y.getProps(),A=!this.targetLayout||!s1(this.targetLayout,k)||S,N=!x&&S;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||x&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,N);const P={...Hh(C,"layout"),onPlay:E,onComplete:b};(y.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else x||Ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,rr(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(uD),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&i1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sv);return}this.isUpdating||this.nodes.forEach(iD),this.isUpdating=!1,this.nodes.forEach(oD),this.nodes.forEach(eD),this.nodes.forEach(tD),this.clearAllSnapshots();const d=In.now();vt.delta=sr(0,1e3/60,d-vt.timestamp),vt.timestamp=d,vt.isProcessing=!0,Qd.update.process(vt),Qd.preRender.process(vt),Qd.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sD),this.sharedNodes.forEach(cD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ue.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 u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const f=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!r1(this.projectionDelta),f=this.getTransformTemplate(),m=f?f(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;u&&(d||ds(this.latestValues)||y)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return u&&(f=this.removeTransform(f)),pD(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return Ze();const f=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(mD))){const{scroll:y}=this.root;y&&(mi(f.x,y.offset.x),mi(f.y,y.offset.y))}return f}removeElementScroll(u){var d;const f=Ze();if(on(f,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:v,options:x}=y;y!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&on(f,u),mi(f.x,v.offset.x),mi(f.y,v.offset.y))}return f}applyTransform(u,d=!1){const f=Ze();on(f,u);for(let m=0;m<this.path.length;m++){const y=this.path[m];!d&&y.options.layoutScroll&&y.scroll&&y!==y.root&&gi(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),ds(y.latestValues)&&gi(f,y.latestValues)}return ds(this.latestValues)&&gi(f,this.latestValues),f}removeTransform(u){const d=Ze();on(d,u);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!m.instance||!ds(m.latestValues))continue;Jf(m.latestValues)&&m.updateSnapshot();const y=Ze(),v=m.measurePageBox();on(y,v),mv(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return ds(this.latestValues)&&mv(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!(!this.layout||!(v||x))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Yo(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),Xb(this.target,this.targetDelta)):on(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Yo(this.relativeTargetOrigin,this.target,S.target),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}$o&&fs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Jf(this.parent.latestValues)||Yb(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 u;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(m=!1),m)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;on(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;kO(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ze());const{target:k}=d;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fv(this.prevProjectionDelta.x,this.projectionDelta.x),fv(this.prevProjectionDelta.y,this.projectionDelta.y)),Qo(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!wv(this.projectionDelta.x,this.prevProjectionDelta.x)||!wv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k)),$o&&fs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pi(),this.projectionDelta=pi(),this.projectionDeltaWithTransform=pi()}setAnimationOrigin(u,d=!1){const f=this.snapshot,m=f?f.latestValues:{},y={...this.latestValues},v=pi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const x=Ze(),S=f?f.source:void 0,k=this.layout?this.layout.source:void 0,C=S!==k,E=this.getStack(),b=!E||E.members.length<=1,A=!!(C&&!b&&this.options.crossfade===!0&&!this.path.some(fD));this.animationProgress=0;let N;this.mixTargetDelta=P=>{const I=P/1e3;Cv(v.x,u.x,I),Cv(v.y,u.y,I),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yo(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dD(this.relativeTarget,this.relativeTargetOrigin,x,I),N&&QO(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Ze()),on(N,this.relativeTarget)),C&&(this.animationValues=y,$O(y,m,this.latestValues,I,A,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(rr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ue.update(()=>{ou.hasAnimatedSinceResize=!0,this.currentAnimation=IO(0,bv,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:f,layout:m,latestValues:y}=u;if(!(!d||!f||!m)){if(this!==u&&this.layout&&m&&a1(this.options.animationType,this.layout.layoutBox,m.layoutBox)){f=this.target||Ze();const v=Yt(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+v;const x=Yt(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+x}on(d,f),gi(d,y),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,d,y)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new YO),this.sharedNodes.get(u).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:f}={}){const m=this.getStack();m&&m.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const m={};f.z&&of("z",u,m,this.animationValues);for(let y=0;y<sf.length;y++)of(`rotate${sf[y]}`,u,m,this.animationValues),of(`skew${sf[y]}`,u,m,this.animationValues);u.render();for(const y in m)u.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);u.scheduleRender()}getProjectionStyles(u){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JO;const m={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=su(u==null?void 0:u.pointerEvents)||"",m.transform=y?y(this.latestValues,""):"none",m;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=su(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ds(this.latestValues)&&(C.transform=y?y({},""):"none",this.hasProjected=!1),C}const x=v.animationValues||v.latestValues;this.applyTransformsToTarget(),m.transform=XO(this.projectionDeltaWithTransform,this.treeScale,x),y&&(m.transform=y(x,m.transform));const{x:S,y:k}=this.projectionDelta;m.transformOrigin=`${S.origin*100}% ${k.origin*100}% 0`,v.animationValues?m.opacity=v===this?(f=(d=x.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:m.opacity=v===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const C in mu){if(x[C]===void 0)continue;const{correct:E,applyTo:b}=mu[C],A=m.transform==="none"?x[C]:E(x[C],v);if(b){const N=b.length;for(let P=0;P<N;P++)m[b[P]]=A}else m[C]=A}return this.options.layoutId&&(m.pointerEvents=v===this?su(u==null?void 0:u.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Sv),this.root.sharedNodes.clear()}}}function eD(e){e.updateLayout()}function tD(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,u=n.source!==e.layout.source;l==="size"?an(v=>{const x=u?n.measuredBox[v]:n.layoutBox[v],S=Yt(x);x.min=s[v].min,x.max=x.min+S}):a1(l,n.layoutBox,s)&&an(v=>{const x=u?n.measuredBox[v]:n.layoutBox[v],S=Yt(s[v]);x.max=x.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+S)});const d=pi();Qo(d,s,n.layoutBox);const f=pi();u?Qo(f,e.applyTransform(o,!0),n.measuredBox):Qo(f,s,n.layoutBox);const m=!r1(d);let y=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:S}=v;if(x&&S){const k=Ze();Yo(k,n.layoutBox,x.layoutBox);const C=Ze();Yo(C,s,S.layoutBox),s1(k,C)||(y=!0),v.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=k,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function nD(e){$o&&fs.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 rD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sD(e){e.clearSnapshot()}function Sv(e){e.clearMeasurements()}function iD(e){e.isLayoutDirty=!1}function oD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ev(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aD(e){e.resolveTargetDelta()}function lD(e){e.calcProjection()}function uD(e){e.resetSkewAndRotation()}function cD(e){e.removeLeadSnapshot()}function Cv(e,t,n){e.translate=Ke(t.translate,0,n),e.scale=Ke(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _v(e,t,n,s){e.min=Ke(t.min,n.min,s),e.max=Ke(t.max,n.max,s)}function dD(e,t,n,s){_v(e.x,t.x,n.x,s),_v(e.y,t.y,n.y,s)}function fD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hD={duration:.45,ease:[.4,0,.1,1]},kv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tv=kv("applewebkit/")&&!kv("chrome/")?Math.round:Qt;function Nv(e){e.min=Tv(e.min),e.max=Tv(e.max)}function pD(e){Nv(e.x),Nv(e.y)}function a1(e,t,n){return e==="position"||e==="preserve-aspect"&&!gO(xv(t),xv(n),.2)}function mD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const gD=o1({attachResizeListener:(e,t)=>ia(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),af={current:void 0},l1=o1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!af.current){const e=new gD({});e.mount(window),e.setOptions({layoutScroll:!0}),af.current=e}return af.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yD={pan:{Feature:jO},drag:{Feature:RO,ProjectionNode:l1,MeasureLayout:e1}};function Pv(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&&Ue.postRender(()=>l(t,Ea(t)))}class vD extends Wr{mount(){const{current:t}=this.node;t&&(this.unmount=gR(t,n=>(Pv(this.node,n,"Start"),s=>Pv(this.node,s,"End"))))}unmount(){}}class xD extends Wr{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=Sa(ia(this.node.current,"focus",()=>this.onFocus()),ia(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Av(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&&Ue.postRender(()=>l(t,Ea(t)))}class wD extends Wr{mount(){const{current:t}=this.node;t&&(this.unmount=wR(t,n=>(Av(this.node,n,"Start"),(s,{success:o})=>Av(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const eh=new WeakMap,lf=new WeakMap,bD=e=>{const t=eh.get(e.target);t&&t(e)},SD=e=>{e.forEach(bD)};function ED({root:e,...t}){const n=e||document;lf.has(n)||lf.set(n,{});const s=lf.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(SD,{root:e,...t})),s[o]}function CD(e,t,n){const s=ED(t);return eh.set(e,n),s.observe(e),()=>{eh.delete(e),s.unobserve(e)}}const _D={some:0,all:1};class kD extends Wr{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,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:_D[o]},d=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),x=m?y:v;x&&x(f)};return CD(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(TD(t,n))&&this.startObserver()}unmount(){}}function TD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ND={inView:{Feature:kD},tap:{Feature:wD},focus:{Feature:xD},hover:{Feature:vD}},PD={layout:{ProjectionNode:l1,MeasureLayout:e1}},th={current:null},u1={current:!1};function AD(){if(u1.current=!0,!!Ph)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>th.current=e.matches;e.addListener(t),t()}else th.current=!1}
vendor: 4,946 bytes, line 209
209function RD(e,t,n){for(const s in t){const o=t[s],l=n[s];if(Tt(o))e.addValue(s,o);else if(Tt(l))e.addValue(s,Oi(o,{owner:e}));else if(l!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,Oi(u!==void 0?u:o,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Rv=new WeakMap,jD=[..._b,kt,$r],OD=e=>jD.find(Cb(e)),jv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DD{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zh,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 x=In.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ue.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Du(n),this.isVariantNode=zw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in v){const S=v[x];f[x]!==void 0&&Tt(S)&&S.set(f[x],!1)}}mount(t){this.current=t,Rv.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)),u1.current||AD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:th.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Rv.delete(this.current),this.projection&&this.projection.unmount(),rr(this.notifyUpdate),rr(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=Is.has(t),o=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Ue.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),l(),u&&u(),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 ji){const n=ji[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):Ze()}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<jv.length;s++){const o=jv[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,u=t[l];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=RD(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}
209addVariantChild(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=Oi(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"&&(Sb(o)||bb(o))?o=parseFloat(o):!OD(o)&&$r.test(n)&&(o=Ob(t,n)),this.setBaseTarget(t,Tt(o)?o.get():o)),Tt(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 u=Ih(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!Tt(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 Yh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class c1 extends DD{constructor(){super(...arguments),this.KeyframeResolver=Db}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;Tt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function MD(e){return window.getComputedStyle(e)}class LD extends c1{constructor(){super(...arguments),this.type="html",this.renderInstance=qw}readValueFromInstance(t,n){if(Is.has(n)){const s=np(n);return s&&s.default||0}else{const s=MD(t),o=(tb(n)?s.getPropertyValue(n):s[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Jb(t,n)}build(t,n,s){Uh(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Lh(t,n,s)}}class ID extends c1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Is.has(n)){const s=np(n);return s&&s.default||0}return n=Kw.has(n)?n:Oh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Yw(t,n,s)}build(t,n,s){zh(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,o){Gw(t,n,s,o)}mount(t){this.isSVGTag=$h(t.tagName),super.mount(t)}}const FD=(e,t)=>Mh(e)?new ID(t):new LD(t,{allowProjection:e!==_.Fragment}),VD=uR({...aO,...ND,...yD,...PD},FD),ce=_A(VD);function d1(e){const t=va(()=>Oi(e)),{isStatic:n}=_.useContext(Ru);if(n){const[,s]=_.useState(e);_.useEffect(()=>t.on("change",s),[])}return t}function f1(e,t){const n=d1(t()),s=()=>n.set(t());return s(),Ah(()=>{const o=()=>Ue.preRender(s,!1,!0),l=e.map(u=>u.on("change",o));return()=>{l.forEach(u=>u()),rr(s)}}),n}const BD=e=>e&&typeof e=="object"&&e.mix,UD=e=>BD(e)?e.mix:void 0;function zD(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],o=e[1+n],l=e[2+n],u=e[3+n],d=Ub(o,l,{mixer:UD(l[0]),...u});return t?d(s):d}function $D(e){qo.current=[],e();const t=f1(qo.current,e);return qo.current=void 0,t}function Kl(e,t,n,s){if(typeof e=="function")return $D(e);const o=typeof t=="function"?t:zD(t,n,s);return Array.isArray(e)?Ov(e,o):Ov([e],([l])=>o(l))}function Ov(e,t){const n=va(()=>[]);return f1(e,()=>{n.length=0;const s=e.length;for(let o=0;o<s;o++)n[o]=e[o].get();return t(n)})}const Ts=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("rounded-xl border bg-card text-card-foreground shadow",e),...t}));
209Ts.displayName="Card";const HD=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("flex flex-col space-y-1.5 p-6",e),...t}));HD.displayName="CardHeader";const WD=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("font-semibold leading-none tracking-tight",e),...t}));WD.displayName="CardTitle";const qD=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("text-sm text-muted-foreground",e),...t}));qD.displayName="CardDescription";const Ns=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("p-6 pt-0",e),...t}));Ns.displayName="CardContent";const KD=_.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Dt("flex items-center p-6 pt-0",e),...t}));KD.displayName="CardFooter";function Xt({size:e="large",className:t=""}){const n={small:{width:80,height:200},medium:{width:120,height:300},large:{width:160,height:400}},{width:s,height:o}=n[e]||n.large;return p.jsx(ce.div,{className:`relative ${t}`,style:{width:s,height:o,willChange:"transform",contain:"layout"},animate:{y:[0,-20,0],rotate:[0,3,0,-3,0]},transition:{duration:10,repeat:1/0,ease:"easeInOut"},children:p.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/698265de83eef46abf815de1/ceba4c08c_image.png",alt:"Flying kite",className:"w-full h-full object-contain",loading:"lazy"})})}function GD(){return p.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-[#00A651]/10 via-white to-[#FFD100]/10",children:[p.jsxs("section",{className:"relative py-20 overflow-hidden",children:[p.jsx("div",{className:"absolute top-10 right-20 opacity-20",children:p.jsx(Xt,{size:"large"})}),p.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:p.jsxs(ce.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[p.jsx("h1",{className:"text-5xl lg:text-6xl font-bold text-[#003D7A] mb-6",children:"About MCA Trust"}),p.jsx("p",{className:"text-xl text-gray-600 max-w-4xl mx-auto leading-relaxed",children:"Children With Cancer Charity â MCA Trust. Supporting local children through their cancer treatment journey with breaks, vital equipment, and compassionate care every step of the way."})]})})]}),p.jsx("section",{className:"py-20 bg-white",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"max-w-5xl mx-auto",children:[p.jsx(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:p.jsx("h2",{className:"text-4xl font-bold text-[#003D7A] mb-6",children:"In Memory of Michael"})}),p.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[p.jsxs(ce.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[p.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/698265de83eef46abf815de1/ad26f2f6a_image.png",alt:"Michael Charles Adams MBE",className:"w-full rounded-3xl shadow-2xl"}),p.jsx("div",{className:"text-center mt-4",children:p.jsx("p",{className:"text-lg font-semibold text-[#003D7A]",children:"Michael 'Micky' Charles Adams, MBE"})})]}),p.jsxs(ce.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"space-y-6",children:[p.jsx("h3",{className:"text-2xl font-bold text-[#003D7A]",children:"Michael Charles Adams MBE Memorial Trust"}),p.jsxs("div",{className:"space-y-4 text-lg text-gray-700 leading-relaxed",children:[p.jsx("p",{children:"Childhood cancer charity Essex. The trust was established in 2011 in memory of Michael Charles Adams, MBE. Michael spent much of his life supporting children's charities and was honoured to receive an MBE in 2006 for his work on youth initiatives in his beloved local community."}),p.jsx("p",{children:"Sadly, in 2010, he lost a short battle with a brain tumour. The MCA Trust is a fitting legacy that has already made a difference to more than 15 families' individual cancer journeys, alongside projects to benefit all users of children's cancer wards at numerous hospitals."})]}),p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.2},className:"relative rounded-2xl overflow-hidden shadow-2xl border-4 border-[#FFD100]",children:[p.jsx("img",{src:"https://media.base44.com/images/public/698265de83eef46abf815de1/b453d2b56_image.png",alt:"Michael receiving his MBE from Her Majesty The Queen",className:"w-full object-cover"}),p.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-[#003D7A]/90 to-transparent px-4 py-5",children:[p.jsx("p",{className:"text-white font-bold text-sm md:text-base leading-snug",children:"ð Receiving his MBE from Her Majesty The Queen"}),p.jsx("p",{className:"text-yellow-300 text-xs md:text-sm mt-1",children:"Buckingham Palace, 2006"})]})]})]})]})]})})}),p.jsx("section",{className:"py-20 bg-gradient-to-br from-[#003D7A]/5 to-[#00A651]/5",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"max-w-4xl mx-auto",children:[p.jsx(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:p.jsx("h2",{className:"text-4xl font-bold text-[#003D7A] mb-6",children:"What We Do"})}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 md:gap-6",children:[p.jsx(Ts,{className:"rounded-2xl md:rounded-3xl shadow-lg border-2 border-transparent hover:border-[#D5006D] transition-all bg-white/80",children:p.jsxs(Ns,{className:"p-5 md:p-8",children:[p.jsx("h3",{className:"text-base md:text-2xl font-bold text-[#D5006D] mb-2 md:mb-4",children:"ð Respite & Special Experiences"}),p.jsx("p",{className:"text-gray-700 leading-relaxed text-sm md:text-lg",children:"Dream holidays and special experiences giving children precious respite between treatments."})]})}),p.jsx(Ts,{className:"rounded-2xl md:rounded-3xl shadow-lg border-2 border-transparent hover:border-[#00A651] transition-all bg-white/80",children:p.jsxs(Ns,{className:"p-5 md:p-8",children:[p.jsx("h3",{className:"text-base md:text-2xl font-bold text-[#00A651] mb-2 md:mb-4",children:"ð¥ Hospital Support & Equipment"}),p.jsx("p",{className:"text-gray-700 leading-relaxed text-sm md:text-lg",children:"Advanced medical equipment and refurbished oncology areas for a better patient experience."})]})}),p.jsx(Ts,{className:"rounded-2xl md:rounded-3xl shadow-lg border-2 border-transparent hover:border-[#FFD100] transition-all bg-white/80",children:p.jsxs(Ns,{className:"p-5 md:p-8",children:[p.jsx("h3",{className:"text-base md:text-2xl font-bold text-[#003D7A] mb-2 md:mb-4",children:"ð¤ Family & Emotional Support"}),p.jsx("p",{className:"text-gray-700 leading-relaxed text-sm md:text-lg",children:"Financial and emotional support for the whole family, in hospitals and beyond."})]})})]})]})})}),p.jsx("section",{className:"py-20 bg-gradient-to-br from-sky-50 via-white to-blue-50",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[p.jsx("h2",{className:"text-4xl font-bold text-[#003D7A] mb-4",children:"Meet the Team Behind The MCA Trust"}),p.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"A dedicated team working together to make a difference in the lives of children with cancer."})]}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-
2095 md:gap-8 max-w-7xl mx-auto",children:[{name:"Keith Isaacs",role:"Chairman",email:"[email protected]",description:"Instrumental to the ever-growing success of the charity, Keith set up The MCA Trust in 2011 in memory of his father-in-law, Micky Adams. He works tirelessly to ensure the charity continues to deliver vital support time after time.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/6ebc105f7_image.png"},{name:"Joanne Isaacs",role:"Trustee",description:"Daughter of Micky Adams, Joanne oversees all operations, including major projects such as the MCA Christmas Extravaganza and Winter Ball.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/8d294db81_image.png"},{name:"James Isaacs",role:"Trustee",email:"[email protected]",description:"Micky's grandson, James plays an active role in organising and participating in annual fundraisers while supporting overall operations.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/98a9cb647_image.png"},{name:"Joyce Adams",role:"Trustee",description:"Wife of the late Micky Adams, Joyce has supported the charity since day one. She plays a key role in operations and regularly attends major events.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/70297ee3f_image.png"},{name:"Matthew Adams",role:"Trustee",description:"Matthew supports operations and contributes to fundraising events, making him a key member of the Trustee team.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/9ae8c277c_image.png"},{name:"Faye Ashton",role:"Secretary & Patron",description:"Faye manages day-to-day operations and plays a key role in driving the MCA Education and Careers Scheme.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/d6f9fb58b_image.png"},{name:"Rob Cook",role:"Marketing Manager",email:"[email protected]",description:"Rob leads marketing and communications, helping grow the charity's presence locally and nationally.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/d8038f484_image.png"},{name:"Jojo Rimington",role:"Administrative Manager",email:"[email protected]",description:"Jojo brings valuable experience and supports the smooth running of the charity's programmes and services.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/7479b7350_image.png"},{name:"Chris Illingworth",role:"Education Coordinator",email:"[email protected]",description:"Chris develops and delivers educational programmes to support young people catching up on missed schooling.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/55cff5d10_image.png"},{name:"Aaron Eglin",role:"Careers Coordinator",email:"[email protected]",description:"Aaron ensures the Education and Careers Scheme stays aligned with its goals while supporting young people with career guidance.",image:"https://media.base44.com/images/public/698265de83eef46abf815de1/c2de9232d_image.png"}].map((e,t)=>p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.07,duration:.4},whileHover:{y:-6,boxShadow:"0 20px 40px rgba(0,61,122,0.12)"},className:"bg-white rounded-2xl shadow-md overflow-hidden flex flex-col transition-shadow duration-300",children:[p.jsx("div",{className:"flex items-center justify-center pt-6 pb-2 px-6 bg-gradient-to-br from-[#003D7A]/5 to-[#00A651]/5",children:p.jsx("div",{className:"w-28 h-28 md:w-36 md:h-36 rounded-full overflow-hidden border-4 border-white shadow-lg flex-shrink-0",children:p.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover object-top",onError:n=>{n.target.style.display="none",n.target.parentNode.innerHTML='<div class="w-full h-full flex items-center justify-center text-5xl bg-gray-100">ð¤</div>'}})})}),p.jsxs("div",{className:"p-4 md:p-5 flex flex-col flex-1",children:[p.jsx("h3",{className:"font-bold text-[#003D7A] text-sm md:text-base leading-tight",children:e.name}),p.jsx("p",{className:"text-[#00A651] font-semibold text-xs md:text-sm mt-0.5 mb-2",children:e.role}),p.jsx("p",{className:"text-gray-600 text-xs md:text-sm leading-relaxed flex-1",children:e.description}),e.email&&p.jsx("a",{href:`mailto:${e.email}`,className:"mt-3 text-[#003D7A] text-xs hover:text-[#00A651] transition-colors underline underline-offset-2 break-all",children:e.email})]})]},e.name))})]})})]})}function Dv(e,t){if(typeof e=="function")return e(t);
vendor: 5,680 bytes, line 209
209e!=null&&(e.current=t)}function h1(...e){return t=>{let n=!1;const s=e.map(o=>{const l=Dv(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():Dv(e[o],null)}}}}function Hr(...e){return _.useCallback(h1(...e),e)}function bu(e){const t=YD(e),n=_.forwardRef((s,o)=>{const{children:l,...u}=s,d=_.Children.toArray(l),f=d.find(JD);if(f){const m=f.props.children,y=d.map(v=>v===f?_.Children.count(m)>1?_.Children.only(null):_.isValidElement(m)?m.props.children:null:v);return p.jsx(t,{...u,ref:o,children:_.isValidElement(m)?_.cloneElement(m,void 0,y):null})}return p.jsx(t,{...u,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var QD=bu("Slot");function YD(e){const t=_.forwardRef((n,s)=>{const{children:o,...l}=n;if(_.isValidElement(o)){const u=e4(o),d=ZD(l,o.props);return o.type!==_.Fragment&&(d.ref=s?h1(s,u):u),_.cloneElement(o,d)}return _.Children.count(o)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XD=Symbol("radix.slottable");function JD(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XD}function ZD(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]=(...d)=>{const f=l(...d);return o(...d),f}:o&&(n[s]=o):s==="style"?n[s]={...o,...l}:s==="className"&&(n[s]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function e4(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 t4=rx("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"}}),dn=_.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...o},l)=>{const u=s?QD:"button";return p.jsx(u,{className:Dt(t4({variant:t,size:n,className:e})),ref:l,...o})});dn.displayName="Button";const oa=_.forwardRef(({className:e,type:t,...n},s)=>p.jsx("input",{type:t,className:Dt("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}));oa.displayName="Input";const op=_.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:Dt("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}));op.displayName="Textarea";function Ca({children:e,intensity:t="normal"}){const n=t==="light"?.3:.5;return p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-sky-300 via-sky-100 to-blue-50/30 pointer-events-none"}),p.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[p.jsx(ce.div,{animate:{x:["-20%","120%"]},transition:{duration:90,repeat:1/0,ease:"linear"},className:"absolute top-20 left-0",style:{opacity:n,willChange:"transform"},children:p.jsxs("div",{className:"relative w-96 h-32",children:[p.jsx("div",{className:"absolute top-2 left-8 w-36 h-28 bg-white rounded-full opacity-90 blur-md"}),p.jsx("div",{className:"absolute top-6 left-24 w-32 h-24 bg-white rounded-full opacity-80 blur-md"}),p.jsx("div",{className:"absolute top-10 left-4 w-28 h-20 bg-blue-50 rounded-full opacity-50 blur-sm"})]})}),p.jsx(ce.div,{animate:{x:["120%","-20%"]},transition:{duration:110,repeat:1/0,ease:"linear",delay:15},className:"absolute top-48 right-0",style:{opacity:n,willChange:"transform"},children:p.jsxs("div",{className:"relative w-80 h-28",children:[p.jsx("div",{className:"absolute top-0 left-12 w-32 h-28 bg-white rounded-full opacity-85 blur-md"}),p.jsx("div",{className:"absolute top-6 left-28 w-28 h-20 bg-blue-50 rounded-full opacity-50 blur-sm"})]})}),p.jsx(ce.div,{animate:{x:["-10%","110%"]},transition:{duration:100,repeat:1/0,ease:"linear",delay:35},className:"absolute top-72 left-1/4",style:{opacity:n*.8,willChange:"transform"},children:p.jsxs("div",{className:"relative w-72 h-24",children:[p.jsx("div",{className:"absolute top-2 left-8 w-28 h-24 bg-white rounded-full opacity-80 blur-md"}),p.jsx("div",{className:"absolute top-8 left-20 w-24 h-16 bg-blue-50 rounded-full opacity-50 blur-sm"})]})})]}),p.jsx("div",{className:"relative z-10",children:e})]})}function p1(e,[t,n]){return Math.min(n,Math.max(t,e))}function yi(e,t,{checkForDefaultPrevented:n=!0}={}
vendor: 4,160 bytes, line 209
209){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function m1(e,t=[]){let n=[];function s(l,u){const d=_.createContext(u),f=n.length;n=[...n,u];const m=v=>{var b;const{scope:x,children:S,...k}=v,C=((b=x==null?void 0:x[e])==null?void 0:b[f])||d,E=_.useMemo(()=>k,Object.values(k));return p.jsx(C.Provider,{value:E,children:S})};m.displayName=l+"Provider";function y(v,x){var C;const S=((C=x==null?void 0:x[e])==null?void 0:C[f])||d,k=_.useContext(S);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[m,y]}const o=()=>{const l=n.map(u=>_.createContext(u));return function(d){const f=(d==null?void 0:d[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return o.scopeName=e,[s,n4(o,...t)]}function n4(...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 u=s.reduce((d,{useScope:f,scopeName:m})=>{const v=f(l)[`__scope${m}`];return{...d,...v}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var g1=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},r4=Zv[" useInsertionEffect ".trim().toString()]||g1;function s4({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[o,l,u]=i4({defaultProp:t,onChange:n}),d=e!==void 0,f=d?e:o;{const y=_.useRef(e!==void 0);_.useEffect(()=>{const v=y.current;v!==d&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${d?"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.`),y.current=d},[d,s])}const m=_.useCallback(y=>{var v;if(d){const x=o4(y)?y(e):y;x!==e&&((v=u.current)==null||v.call(u,x))}else l(y)},[d,e,l,u]);return[f,m]}function i4({defaultProp:e,onChange:t}){const[n,s]=_.useState(e),o=_.useRef(n),l=_.useRef(t);return r4(()=>{l.current=t},[t]),_.useEffect(()=>{var u;o.current!==n&&((u=l.current)==null||u.call(l,n),o.current=n)},[n,o]),[n,s,l]}function o4(e){return typeof e=="function"}var a4=_.createContext(void 0);function l4(e){const t=_.useContext(a4);return e||t||"ltr"}function u4(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function c4(e){const[t,n]=_.useState(void 0);return g1(()=>{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 u,d;if("borderBoxSize"in l){const f=l.borderBoxSize,m=Array.isArray(f)?f[0]:f;u=m.inlineSize,d=m.blockSize}else u=e.offsetWidth,d=e.offsetHeight;n({width:u,height:d})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var d4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_a=d4.reduce((e,t)=>{const n=bu(`Primitive.${t}`),s=_.forwardRef((o,l)=>{const{asChild:u,...d}=o,f=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function f4(e){const t=e+"CollectionProvider",[n,s]=m1(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:E,children:b}=C,A=Tr.useRef(null),N=Tr.useRef(new Map).current;return p.jsx(o,{scope:E,itemMap:N,collectionRef:A,children:b})};u.displayName=t;const d=e+"CollectionSlot",f=bu(d),m=Tr.forwardRef((C,E)=>{const{scope:b,children:A}=C,N=l(d,b),P=Hr(E,N.collectionRef);return p.jsx(f,{ref:P,children:A})});m.displayName=d;const y=e+"CollectionItemSlot",v="data-radix-collection-item",x=bu(y),S=Tr.forwardRef((C,E)=>{const{scope:b,children:A,...N}=C,P=Tr.useRef(null),I=Hr(E,P),z=l(y,b);return Tr.useEffect(()=>(z.itemMap.set(P,{ref:P,...N}),()=>void z.itemMap.delete(P))),p.jsx(x,{[v]:"",ref:I,children:A})});S.displayName=y;function k(C){const E=l(e+"CollectionConsumer",C);return Tr.useCallback(()=>{const A=E.collectionRef.current;if(!A)return[];const N=Array.from(A.querySelectorAll(`[${v}
209]`));return Array.from(E.itemMap.values()).sort((z,Q)=>N.indexOf(z.ref.current)-N.indexOf(Q.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:u,Slot:m,ItemSlot:S},k,s]}var y1=["PageUp","PageDown"],v1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x1={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},$i="Slider",[nh,h4,p4]=f4($i),[w1]=m1($i,[p4]),[m4,Iu]=w1($i),b1=_.forwardRef((e,t)=>{const{name:n,min:s=0,max:o=100,step:l=1,orientation:u="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:m=[s],value:y,onValueChange:v=()=>{},onValueCommit:x=()=>{},inverted:S=!1,form:k,...C}=e,E=_.useRef(new Set),b=_.useRef(0),N=u==="horizontal"?g4:y4,[P=[],I]=s4({prop:y,defaultProp:m,onChange:oe=>{var Ee;(Ee=[...E.current][b.current])==null||Ee.focus(),v(oe)}}),z=_.useRef(P);function Q(oe){const Se=S4(P,oe);Y(oe,Se)}function U(oe){Y(oe,b.current)}function me(){const oe=z.current[b.current];P[b.current]!==oe&&x(P)}function Y(oe,Se,{commit:Ee}={commit:!1}){const Re=k4(l),Fe=T4(Math.round((oe-s)/l)*l+s,Re),pe=p1(Fe,[s,o]);I((ae=[])=>{const B=w4(ae,pe,Se);if(_4(B,f*l)){b.current=B.indexOf(pe);const te=String(B)!==String(ae);return te&&Ee&&x(B),te?B:ae}else return ae})}return p.jsx(m4,{scope:e.__scopeSlider,name:n,disabled:d,min:s,max:o,valueIndexToChangeRef:b,thumbs:E.current,values:P,orientation:u,form:k,children:p.jsx(nh.Provider,{scope:e.__scopeSlider,children:p.jsx(nh.Slot,{scope:e.__scopeSlider,children:p.jsx(N,{"aria-disabled":d,"data-disabled":d?"":void 0,...C,ref:t,onPointerDown:yi(C.onPointerDown,()=>{d||(z.current=P)}),min:s,max:o,inverted:S,onSlideStart:d?void 0:Q,onSlideMove:d?void 0:U,onSlideEnd:d?void 0:me,onHomeKeyDown:()=>!d&&Y(s,0,{commit:!0}),onEndKeyDown:()=>!d&&Y(o,P.length-1,{commit:!0}),onStepKeyDown:({event:oe,direction:Se})=>{if(!d){const Fe=y1.includes(oe.key)||oe.shiftKey&&v1.includes(oe.key)?10:1,pe=b.current,ae=P[pe],B=l*Fe*Se;Y(ae+B,pe,{commit:!0})}}})})})})});b1.displayName=$i;var[S1,E1]=w1($i,{startEdge:"left",endEdge:"right",size:"width",direction:1}),g4=_.forwardRef((e,t)=>{const{min:n,max:s,dir:o,inverted:l,onSlideStart:u,onSlideMove:d,onSlideEnd:f,onStepKeyDown:m,...y}=e,[v,x]=_.useState(null),S=Hr(t,N=>x(N)),k=_.useRef(void 0),C=l4(o),E=C==="ltr",b=E&&!l||!E&&l;function A(N){const P=k.current||v.getBoundingClientRect(),I=[0,P.width],Q=ap(I,b?[n,s]:[s,n]);return k.current=P,Q(N-P.left)}return p.jsx(S1,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(C1,{dir:C,"data-orientation":"horizontal",...y,ref:S,style:{...y.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:N=>{const P=A(N.clientX);u==null||u(P)},onSlideMove:N=>{const P=A(N.clientX);d==null||d(P)},onSlideEnd:()=>{k.current=void 0,f==null||f()},onStepKeyDown:N=>{const I=x1[b?"from-left":"from-right"].includes(N.key);m==null||m({event:N,direction:I?-1:1})}})})}),y4=_.forwardRef((e,t)=>{const{min:n,max:s,inverted:o,onSlideStart:l,onSlideMove:u,onSlideEnd:d,onStepKeyDown:f,...m}=e,y=_.useRef(null),v=Hr(t,y),x=_.useRef(void 0),S=!o;function k(C){const E=x.current||y.current.getBoundingClientRect(),b=[0,E.height],N=ap(b,S?[s,n]:[n,s]);return x.current=E,N(C-E.top)}return p.jsx(S1,{scope:e.__scopeSlider,startEdge:S?"bottom":"top",endEdge:S?"top":"bottom",size:"height",direction:S?1:-1,children:p.jsx(C1,{"data-orientation":"vertical",...m,ref:v,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:C=>{const E=k(C.clientY);l==null||l(E)},onSlideMove:C=>{const E=k(C.clientY);u==null||u(E)},onSlideEnd:()=>{x.current=void 0,d==null||d()},onStepKeyDown:C=>{const b=x1[S?"from-bottom":"from-top"].includes(C.key);f==null||f({event:C,direction:b?-1:1})}})})}),C1=_.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:s,onSlideMove:o,onSlideEnd:l,onHomeKeyDown:u,onEndKeyDown:d,onStepKeyDown:f,...m}=e,y=Iu($i,n);return p.jsx(_a.span,{...m,ref:t,onKeyDown:yi(e.onKeyDown,v=>{v.key==="Home"?(u(v),v.preventDefault()):v.key==="End"?(d(v),v.preventDefault()):y1.concat(v1).includes(v.key)&&
209(f(v),v.preventDefault())}),onPointerDown:yi(e.onPointerDown,v=>{const x=v.target;x.setPointerCapture(v.pointerId),v.preventDefault(),y.thumbs.has(x)?x.focus():s(v)}),onPointerMove:yi(e.onPointerMove,v=>{v.target.hasPointerCapture(v.pointerId)&&o(v)}),onPointerUp:yi(e.onPointerUp,v=>{const x=v.target;x.hasPointerCapture(v.pointerId)&&(x.releasePointerCapture(v.pointerId),l(v))})})}),_1="SliderTrack",k1=_.forwardRef((e,t)=>{const{__scopeSlider:n,...s}=e,o=Iu(_1,n);return p.jsx(_a.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...s,ref:t})});k1.displayName=_1;var rh="SliderRange",T1=_.forwardRef((e,t)=>{const{__scopeSlider:n,...s}=e,o=Iu(rh,n),l=E1(rh,n),u=_.useRef(null),d=Hr(t,u),f=o.values.length,m=o.values.map(x=>A1(x,o.min,o.max)),y=f>1?Math.min(...m):0,v=100-Math.max(...m);return p.jsx(_a.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...s,ref:d,style:{...e.style,[l.startEdge]:y+"%",[l.endEdge]:v+"%"}})});T1.displayName=rh;var sh="SliderThumb",N1=_.forwardRef((e,t)=>{const n=h4(e.__scopeSlider),[s,o]=_.useState(null),l=Hr(t,d=>o(d)),u=_.useMemo(()=>s?n().findIndex(d=>d.ref.current===s):-1,[n,s]);return p.jsx(v4,{...e,ref:l,index:u})}),v4=_.forwardRef((e,t)=>{const{__scopeSlider:n,index:s,name:o,...l}=e,u=Iu(sh,n),d=E1(sh,n),[f,m]=_.useState(null),y=Hr(t,A=>m(A)),v=f?u.form||!!f.closest("form"):!0,x=c4(f),S=u.values[s],k=S===void 0?0:A1(S,u.min,u.max),C=b4(s,u.values.length),E=x==null?void 0:x[d.size],b=E?E4(E,k,d.direction):0;return _.useEffect(()=>{if(f)return u.thumbs.add(f),()=>{u.thumbs.delete(f)}},[f,u.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${k}% + ${b}px)`},children:[p.jsx(nh.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(_a.span,{role:"slider","aria-label":e["aria-label"]||C,"aria-valuemin":u.min,"aria-valuenow":S,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...l,ref:y,style:S===void 0?{display:"none"}:e.style,onFocus:yi(e.onFocus,()=>{u.valueIndexToChangeRef.current=s})})}),v&&p.jsx(P1,{name:o??(u.name?u.name+(u.values.length>1?"[]":""):void 0),form:u.form,value:S},s)]})});N1.displayName=sh;var x4="RadioBubbleInput",P1=_.forwardRef(({__scopeSlider:e,value:t,...n},s)=>{const o=_.useRef(null),l=Hr(o,s),u=u4(t);return _.useEffect(()=>{const d=o.current;if(!d)return;const f=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(f,"value").set;if(u!==t&&y){const v=new Event("input",{bubbles:!0});y.call(d,t),d.dispatchEvent(v)}},[u,t]),p.jsx(_a.input,{style:{display:"none"},...n,ref:l,defaultValue:t})});P1.displayName=x4;function w4(e=[],t,n){const s=[...e];return s[n]=t,s.sort((o,l)=>o-l)}function A1(e,t,n){const l=100/(n-t)*(e-t);return p1(l,[0,100])}function b4(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function S4(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),s=Math.min(...n);return n.indexOf(s)}function E4(e,t,n){const s=e/2,l=ap([0,50],[0,s]);return(s-l(t)*n)*n}function C4(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function _4(e,t){if(t>0){const n=C4(e);return Math.min(...n)>=t}return!0}function ap(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(n-e[0])}}function k4(e){return(String(e).split(".")[1]||"").length}function T4(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var R1=b1,N4=k1,P4=T1,A4=N1;const j1=_.forwardRef(({className:e,...t},n)=>p.jsxs(R1,{ref:n,className:Dt("relative flex w-full touch-none select-none items-center",e),...t,children:[p.jsx(N4,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:p.jsx(P4,{className:"absolute h-full bg-primary"})}),p.jsx(A4,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));j1.displayName=R1.displayName;const Mv=[{threshold:25,message:"Providing comfort items for a child in treatment",icon:"ð"},{threshold:50,message:"Funding a family day out to create precious memories",icon:"ð"},{threshold:100,message:"Contributing to vital medical equipment",icon:"ð¥"},{threshold:250,message:"Supporting a week of respite care for a family",icon:"ðï¸"},{threshold:500,message:"Helping multiple families through their journey",icon:"â¤ï¸"},{threshold:1e3,message:"Making a transformative impact on our programs",icon:"ð"}];
209function R4({value:e,onChange:t}){const[n,s]=_.useState(e||100),[o,l]=_.useState(""),u=m=>{s(m[0]),l(""),t&&t(m[0])},d=m=>{const y=m.target.value.replace(/[^0-9]/g,"");l(y);const v=parseInt(y);v>0&&(s(v),t&&t(v))},f=Mv.slice().reverse().find(m=>n>=m.threshold)||Mv[0];return p.jsxs("div",{className:"space-y-8",children:[p.jsx("div",{className:"text-center",children:p.jsxs(ce.div,{initial:{scale:1.1},animate:{scale:1},className:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-pink-500 via-rose-500 to-orange-400",children:["£",n]},n)}),p.jsxs("div",{className:"relative px-4 pt-14",children:[p.jsx("div",{className:"absolute pointer-events-none transition-all duration-100",style:{left:`clamp(0px, calc(${(Math.min(Math.max(n,10),1e3)-10)/990*100}% - 20px), calc(100% - 40px))`,top:"0px"},children:p.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/698265de83eef46abf815de1/a1b2a5401_image.png",alt:"Donation slider",className:"w-10 h-10 object-contain"})}),p.jsx(j1,{value:[n],onValueChange:u,min:10,max:1e3,step:5,className:"relative"})]}),p.jsx(nr,{mode:"wait",children:p.jsx(ce.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},className:"text-center",children:p.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-sky-100/80 via-blue-50/90 to-pink-50/80 backdrop-blur-sm px-4 sm:px-6 py-3 sm:py-4 rounded-2xl shadow-lg border border-sky-200/60",children:[p.jsx("span",{className:"text-3xl sm:text-4xl",children:f.icon}),p.jsx("p",{className:"text-sm sm:text-lg font-semibold text-[#003D7A] leading-snug text-left",children:f.message})]})},f.message)}),p.jsx("div",{className:"grid grid-cols-3 sm:flex sm:flex-wrap gap-2 sm:gap-3 justify-center",children:[25,50,100,250,500].map(m=>p.jsxs("button",{onClick:()=>u([m]),className:`px-3 sm:px-6 py-2.5 sm:py-3 rounded-full border-2 font-semibold transition-all text-sm sm:text-base ${n===m&&!o?"bg-[#003D7A] text-white border-[#003D7A] shadow-lg scale-105":"bg-white/70 backdrop-blur-sm text-[#003D7A] border-gray-200 hover:border-[#003D7A] hover:shadow-md"}`,children:["£",m]},m))}),p.jsxs("div",{className:"flex items-center gap-3 justify-center",children:[p.jsx("span",{className:"text-gray-500 text-sm font-medium",children:"Or enter a custom amount:"}),p.jsxs("div",{className:"relative",children:[p.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500 font-semibold",children:"£"}),p.jsx("input",{type:"text",inputMode:"numeric",value:o,onChange:d,placeholder:"Other",className:"pl-7 pr-4 py-2.5 w-28 rounded-full border-2 border-gray-200 focus:border-[#003D7A] outline-none text-[#003D7A] font-semibold text-sm bg-white/70"})]})]})]})}function Ds({onClick:e,size:t="lg",className:n="",disabled:s=!1}){const[o,l]=_.useState([]),u=d=>{if(s)return;const f=Array.from({length:8},(m,y)=>({id:Date.now()+y,x:(Math.random()-.5)*100,y:-50-Math.random()*50,rotation:Math.random()*360,delay:y*.1}));l(m=>[...m,...f]),setTimeout(()=>{l(m=>m.filter(y=>!f.find(v=>v.id===y.id)))},2e3),e?e(d):window.open("https://www.justgiving.com/charity/mcambemt","_blank")};return p.jsxs("div",{className:"relative inline-block",children:[p.jsxs(dn,{size:t,disabled:s,onClick:u,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap 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 bg-[#D5006D] hover:bg-[#b8005d] h-10 text-white px-6 text-xl font-medium rounded-full shadow-xl hover:shadow-2xl transition-all duration-300 transform hover:scale-105 hover:brightness-110",children:[p.jsx(Ps,{className:"mr-2 h-5 w-5",fill:"currentColor"}),"Donate Now"]}),p.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none",children:p.jsx(nr,{children:o.map(d=>p.jsx(ce.div,{initial:{x:0,y:0,opacity:1,scale:.5,rotate:0},animate:{x:d.x,y:d.y,opacity:0,scale:1.5,rotate:d.rotation},exit:{opacity:0}
209,transition:{duration:1.2,delay:d.delay,ease:"easeOut"},className:"absolute",children:p.jsx(Ps,{className:"w-6 h-6 text-pink-400",fill:"currentColor"})},d.id))})})]})}const j4=[{icon:dC,title:"Educational Support",description:"Help fund tutoring, school supplies, and learning programs for children during treatment.",color:"#003D7A"},{icon:NC,title:"Community Programs",description:"Support social activities and community building events that reduce isolation.",color:"#00A651"},{icon:Ps,title:"Family Assistance",description:"Provide financial and emotional resources for the whole family in need.",color:"#D5006D"},{icon:SC,title:"Enrichment Activities",description:"Fund arts, sports, and recreational programs that bring joy during treatment.",color:"#FFD100"}];function O4(){const[e,t]=_.useState(100),[n,s]=_.useState({name:"",email:"",message:""}),o=()=>{window.open("https://www.justgiving.com/charity/mcambemt","_blank")};return p.jsx(Ca,{children:p.jsxs("div",{className:"min-h-screen",children:[p.jsxs("section",{className:"relative py-10 overflow-hidden",children:[p.jsx("div",{className:"absolute top-10 left-10 opacity-20",children:p.jsx(Xt,{size:"medium"})}),p.jsx("div",{className:"absolute bottom-10 right-10 opacity-20",children:p.jsx(Xt,{size:"small"})}),p.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:p.jsxs(ce.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-4xl mx-auto",children:[p.jsx("h1",{className:"text-5xl lg:text-6xl font-bold text-[#003D7A] mb-6",children:"Make a Difference Today"}),p.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Your donation helps us continue our vital work supporting children and families in our community"}),p.jsx("p",{className:"text-lg text-[#D5006D] font-medium",children:"Every contribution, no matter the size, creates lasting impact"})]})})]}),p.jsx("section",{className:"py-8",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsx("div",{className:"max-w-2xl mx-auto",children:p.jsx(Ts,{className:"shadow-2xl rounded-3xl border-2 border-sky-100 overflow-hidden",children:p.jsxs(Ns,{className:"p-6 md:p-8 space-y-8 bg-gradient-to-b from-sky-50/60 via-white to-blue-50/30",children:[p.jsx(R4,{value:e,onChange:t}),p.jsxs("div",{className:"space-y-4 pt-4 border-t-2 border-gray-100",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Your Name"}),p.jsx(oa,{placeholder:"John Smith",value:n.name,onChange:l=>s({...n,name:l.target.value}),className:"h-12 rounded-2xl border-2 focus:border-[#003D7A]"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Email Address"}),p.jsx(oa,{type:"email",placeholder:"[email protected]",value:n.email,onChange:l=>s({...n,email:l.target.value}),className:"h-12 rounded-2xl border-2 focus:border-[#003D7A]"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Message (Optional)"}),p.jsx(op,{placeholder:"Share why you're supporting MCA Trust...",value:n.message,onChange:l=>s({...n,message:l.target.value}),className:"h-24 rounded-2xl border-2 focus:border-[#003D7A]"})]})]}),p.jsx("div",{className:"flex justify-center",children:p.jsx(Ds,{onClick:o,className:"w-full h-16 text-xl"})}),p.jsx("p",{className:"text-center text-sm text-gray-500",children:"Your donation is secure and will be processed safely"})]})})})})}),p.jsx("section",{className:"py-16",style:{background:"linear-gradient(to bottom, transparent, white 15%)"},children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsx("h2",{className:"text-3xl font-bold text-center text-[#003D7A] mb-12",children:"Where Your Donation Goes"}),p.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6",children:j4.map((l,u)=>p.jsx(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:u*.1},whileHover:{y:-5},children:p.jsx(Ts,{className:"h-full border-2 hover:border-[#FFD100] transition-all duration-300 rounded-2xl",children:p.jsxs(Ns,{className:"p-6 text-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-md",style:{backgroundColor:`${l.color}15`},children:p.jsx(l.icon,{className:"w-8 h-8",style:{color:l.color}})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:l.title}),p.jsx("p",{className:"text-gray-600 text-sm",children:l.description})]})})},u))})]})})]})})}function D4(){const[e,t]=_.useState(null),{data:n=[],isLoading:s}=Eu({queryKey:["gallery-all"],queryFn:()=>Zn.entities.GalleryImage.list("order",200),staleTime:300*1e3}),o=m=>t(m),l=()=>t(null),u=m=>{m.stopPropagation(),t(y=>(y-1+n.length)%n.length)},d=m=>{m.stopPropagation(),t(y=>(y+1)%n.length)},f=[[],[],[]];
209return n.forEach((m,y)=>f[y%3].push({img:m,originalIndex:y})),p.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-sky-50 via-white to-pink-50",children:[p.jsxs("section",{className:"relative py-14 md:py-20 overflow-hidden",children:[p.jsx("div",{className:"absolute top-8 left-10 opacity-20 hidden md:block",children:p.jsx(Xt,{size:"small"})}),p.jsx("div",{className:"absolute bottom-4 right-10 opacity-15 hidden md:block",children:p.jsx(Xt,{size:"small"})}),p.jsx("div",{className:"container mx-auto px-4 text-center relative z-10",children:p.jsxs(ce.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7},children:[p.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-[#003D7A] mb-4",children:"Our Gallery"}),p.jsx("p",{className:"text-base md:text-xl text-gray-600 max-w-2xl mx-auto",children:"Moments of joy, hope, and community â captured by the MCA Trust family"})]})})]}),p.jsx("section",{className:"pb-20 px-3 md:px-6",children:s?p.jsx("div",{className:"columns-2 md:columns-3 gap-3 md:gap-4 space-y-3 md:space-y-4 max-w-7xl mx-auto",children:Array.from({length:9}).map((m,y)=>p.jsx("div",{className:"animate-pulse bg-gray-200 rounded-2xl break-inside-avoid",style:{height:`${180+y%3*60}px`}},y))}):n.length===0?p.jsxs("div",{className:"text-center py-20",children:[p.jsx("div",{className:"text-6xl mb-4",children:"ð¸"}),p.jsx("p",{className:"text-xl text-gray-500",children:"Photos coming soon!"})]}):p.jsx("div",{className:"flex gap-3 md:gap-4 max-w-7xl mx-auto items-start",children:f.map((m,y)=>p.jsx("div",{className:"flex-1 flex flex-col gap-3 md:gap-4",children:m.map(({img:v,originalIndex:x},S)=>p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:S*.04},onClick:()=>o(x),className:"cursor-pointer group relative rounded-xl md:rounded-2xl overflow-hidden shadow-md hover:shadow-2xl transition-all duration-300",children:[p.jsx("img",{src:v.image_url,alt:v.title,className:"w-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy",decoding:"async"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
209parent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),p.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-3 text-white translate-y-2 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-300",children:[p.jsx("p",{className:"text-sm font-semibold leading-tight line-clamp-1",children:v.title}),v.event_name&&p.jsxs("p",{className:"text-xs text-white/75 line-clamp-1",children:[v.event_name,v.year?` · ${v.year}`:""]})]})]},v.id))},y))})}),p.jsx(nr,{children:e!==null&&n[e]&&p.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 bg-black/95 z-50 flex items-center justify-center p-4",children:[p.jsx("button",{onClick:l,className:"absolute top-4 right-4 z-10 text-white bg-white/10 hover:bg-white/20 rounded-full p-2 transition-colors",children:p.jsx(Su,{className:"w-6 h-6"})}),p.jsx("button",{onClick:u,className:"absolute left-3 md:left-6 z-10 text-white bg-white/10 hover:bg-white/20 rounded-full p-2 md:p-3 transition-colors",children:p.jsx(rC,{className:"w-6 h-6 md:w-8 md:h-8"})}),p.jsxs(ce.div,{initial:{opacity:0,scale:.93},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.93},transition:{duration:.25},onClick:m=>m.stopPropagation(),className:"flex flex-col items-center max-w-5xl w-full",children:[p.jsx("img",{src:n[e].image_url,alt:n[e].title,className:"max-h-[75vh] max-w-full object-contain rounded-xl shadow-2xl"}),p.jsxs("div",{className:"text-white text-center mt-4 px-4",children:[p.jsx("p",{className:"text-lg font-bold",children:n[e].title}),n[e].event_name&&p.jsxs("p",{className:"text-sm text-gray-300 mt-1",children:[n[e].event_name,n[e].year?` · ${n[e].year}`:""]}),n[e].description&&p.jsx("p",{className:"text-sm text-gray-400 mt-1",children:n[e].description}),p.jsxs("p",{className:"text-xs text-gray-500 mt-3",children:[e+1," / ",n.length]})]})]},e),p.jsx("button",{onClick:d,className:"absolute right-3 md:right-6 z-10 text-white bg-white/10 hover:bg-white/20 rounded-full p-2 md:p-3 transition-colors",children:p.jsx(iC,{className:"w-6 h-6 md:w-8 md:h-8"})})]})})]})}function ft(e){return"/"+e.replace(/ /g,"-")}function ih({src:e,alt:t="",className:n="",eager:s=!1}){const o=s?"eager":"lazy";return p.jsxs("div",{className:`relative overflow-hidden ${n}`,children:[p.jsx("img",{src:e,alt:"","aria-hidden":"true",loading:o,decoding:"async",className:"absolute inset-0 w-full h-full object-cover scale-110",style:{filter:"blur(20px) brightness(0.9)"}}),p.jsx("img",{src:e,alt:t,loading:o,decoding:"async",className:"relative w-full h-full object-contain"})]})}const Mo=["https://media.base44.com/images/public/698265de83eef46abf815de1/6b3114063_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/5a2341524_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/58595d1f0_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/7b9489d61_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/59186c8c8_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/0b016bd31_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/993b42701_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/cf99d2ef8_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/a64350766_image.png"];function M4(){const[e,t]=_.useState(0);return _.useEffect(()=>{const n=setInterval(()=>{t(s=>(s+1)%Mo.length)},4e3);return()=>clearInterval(n)},[]),_.useEffect(()=>{const n=new Image;n.src=Mo[(e+1)%Mo.length]},[e]),p.jsxs("div",{className:"w-full px-3 md:px-6 pt-2 pb-4",children:[p.jsxs(ce.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.5,duration:.7},className:"text-center mb-6",children:[p.jsx("h2",{className:"text-2xl md:text-4xl font-bold text-[#003D7A] mb-2",style:{textShadow:"0 2px 8px rgba(255,255,255,0.8), 0 1px 3px rgba(255,255,255,0.6)"},children:"Making a Difference to Children with Cancer"}),p.jsx("p",{className:"text-[#003D7A] text-sm md:text-lg max-w-2xl mx-auto",style:{textShadow:"0 1px 6px rgba(255,255,255,0.7)"},children:"See the smiles we bring and the lives we touch"})]}),p.jsxs("div",{className:"relative max-w-5xl mx-auto",children:[p.jsx("div",{className:"relative h-56 sm:h-72 md:h-[380px] lg:h-[480px] rounded-3xl overflow-hidden shadow-2xl bg-white/90",children:p.jsx(nr,{children:p.jsx(ce.div,{className:"absolute inset-0",initial:{opacity:0}
209,animate:{opacity:1},exit:{opacity:0},transition:{duration:.6,ease:"easeInOut"},children:p.jsx(ih,{src:Mo[e],alt:`Making a difference ${e+1}`,eager:e===0,className:"w-full h-full"})},e)})}),p.jsx("div",{className:"flex justify-center gap-3 mt-8",children:Mo.map((n,s)=>p.jsx("button",{onClick:()=>t(s),className:`transition-all duration-300 rounded-full ${s===e?"bg-[#D5006D] w-12 h-3":"bg-gray-300 w-3 h-3 hover:bg-gray-400"}`},s))})]})]})}const L4="#48C3EA",I4="#7DD8F0",F4="#C5EDFA",V4=[{top:"6%",delay:0,duration:36,scale:1.3},{top:"30%",delay:12,duration:46,scale:1},{top:"58%",delay:8,duration:40,scale:.8}];function B4({top:e,delay:t,duration:n,scale:s}){return p.jsx(ce.div,{className:"absolute pointer-events-none",style:{top:e,left:"-280px",scale:s,zIndex:1,willChange:"transform"},animate:{x:["0px","120vw"]},transition:{duration:n,delay:t,repeat:1/0,ease:"linear"},children:p.jsxs("svg",{width:"260",height:"90",viewBox:"0 0 260 90",fill:"none",children:[p.jsx("ellipse",{cx:"130",cy:"65",rx:"120",ry:"26",fill:"white",fillOpacity:"0.65"}),p.jsx("ellipse",{cx:"100",cy:"48",rx:"70",ry:"34",fill:"white",fillOpacity:"0.6"}),p.jsx("ellipse",{cx:"165",cy:"52",rx:"60",ry:"28",fill:"white",fillOpacity:"0.55"})]})})}function U4(){return p.jsx("div",{className:"relative z-20 w-full max-w-[95vw] md:max-w-3xl lg:max-w-4xl mx-auto px-3 md:px-4 pt-8 md:pt-12",children:p.jsx(ce.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.9},className:"rounded-2xl md:rounded-3xl overflow-hidden shadow-2xl ring-2 ring-[#FFD100]",style:{boxShadow:"0 8px 40px rgba(255,209,0,0.35), 0 2px 16px rgba(0,0,0,0.18)",paddingTop:"56.25%",position:"relative",background:"#000"},children:p.jsx("iframe",{className:"absolute top-0 left-0 w-full h-full",style:{border:"none"},src:"https://player.vimeo.com/video/1182375974?autoplay=1&muted=1&loop=1&autopause=0&background=1&playsinline=1",allow:"autoplay; fullscreen; picture-in-picture; web-share",allowFullScreen:!0,title:"MCA Trust Video",loading:"eager"})})})}function z4(){return p.jsx("div",{className:"relative overflow-hidden",children:p.jsxs("section",{className:"relative flex flex-col items-center overflow-hidden",style:{background:`linear-gradient(to bottom, ${L4} 0%, ${I4} 45%, ${F4} 80%, #ffffff 100%)`,minHeight:"92vh"},children:[V4.map((e,t)=>p.jsx(B4,{...e},t)),p.jsx("div",{className:"absolute top-[5%] left-[4%] opacity-90 z-10",style:{willChange:"transform"},children:p.jsx("div",{className:"scale-[0.55] md:scale-75",children:p.jsx(Xt,{size:"small"})})}),p.jsx("div",{className:"absolute top-[8%] right-[5%] opacity-80 z-10",style:{willChange:"transform"},children:p.jsx("div",{className:"scale-50 md:scale-75",children:p.jsx(Xt,{size:"small"})})}),p.jsx(U4,{}),p.jsxs(ce.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7,duration:.7},className:"relative z-20 flex flex-col sm:flex-row gap-3 md:gap-4 justify-center items-center mt-7 md:mt-10 px-4 pb-14 md:pb-16",children:[p.jsx(Ds,{className:"w-full sm:w-auto px-8 py-3 text-base md:px-10 md:py-5 md:text-lg"}),p.jsx(zt,{to:ft("Support"),children:p.jsx(dn,{variant:"outline",className:"w-full sm:w-auto border-2 border-[#003D7A] text-[#003D7A] bg-white/75 backdrop-blur-sm hover:bg-[#003D7A] hover:text-white rounded-full px-8 py-3 text-base md:px-10 md:py-5 md:text-lg transition-all shadow-lg",children:"Get Support"})})]}),p.jsx("div",{className:"relative z-20 w-full px-3 md:px-6 pb-10 md:pb-14",children:p.jsx(M4,{})})]})})}const $4=[{accent:"#D5006D",accentLight:"#fce7f3",emoji:"ð",items:[{emoji:"ð´",title:"Respite & Dream Holidays",desc:"We arrange special experiences and holidays, giving children the chance to live out their dreams and enjoy precious time with family between treatments."},{emoji:"â¨",title:"Making Dreams Reality",desc:"Through your generosity, we deliver life-changing experiences to children and families fighting cancer across Essex and East London."}]},{accent:"#003D7A",accentLight:"#e0f0ff",emoji:"ð¥",items:[{emoji:"ð¥",title:"Hospital Equipment & Wards",desc:"Working with local NHS Trusts, we purchase advanced medical equipment and refurbish children's oncology areas for a better patient experience."},{emoji:"ð¤",title:"Family Support",desc:"We provide financial and emotional support in hospitals and beyond â because the cancer journey is challenging for the entire family."}]}];function H4(){return p.jsx("section",{className:"pt-6 pb-8 md:pb-12 bg-white",children:p.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[p.jsx(ce.p,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center text-sm sm:text-base md:text-lg text-gray-600 max-w-3xl mx-auto mb-8 md:mb-12 leading-relaxed px-2",children:"MCA Trust supports children with cancer and their families across Essex and East London. Your generosity makes our mission possible."}),p.jsx("div",{className:"grid grid-cols-2 gap-3 md:gap-6 max-w-4xl mx-auto mb-10 md:mb-14",children:$4.map((e,t)=>p.jsxs(ce.div,{initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.55,delay:t*.15},className:"rounded-2xl md:rounded-3xl overflow-hidden shadow-md hover:shadow-xl transition-shadow duration-300",style:{background:e.accentLight,border:`2px solid ${e.accent}22`},children:[p.jsx("div",{className:"h-1.5 md:h-2 w-full",style:{background:e.accent}}),p.jsxs("div",{className:"p-3.5 md:p-6 space-y-4 md:space-y-5",children:[e.items.map((n,s)=>p.jsxs("div",{className:s>0?"pt-3.5 md:pt-5 border-t border-white/60":"",children:[p.jsxs("div",{className:"flex items-center gap-1.5 md:gap-2 mb-1 md:mb-2",children:[p.jsx("span",{className:"text-lg md:text-2xl",children:n.emoji}),p.jsx("h3",{className:"text-xs md:text-base font-bold leading-tight",style:{color:e.accent},children:n.title})]}),p.jsx("p",{className:"text-gray-600 text-[11px] md:text-sm leading-relaxed",children:n.desc})]},s)),p.jsx(zt,{to:ft("About"),className:"inline-flex items-center gap-1 text-[10px] md:text-sm font-semibold rounded-full px-3 md:px-4 py-1 md:py-1.5 mt-1 transition-all",style:{background:e.accent,color:"#fff"},children:"Learn More â"})]})]},t))}),p.jsxs(ce.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},className:"text-center space-y-4 md:space-y-6",children:[p.jsx("p",{className:"text-lg sm:text-2xl md:text-3xl font-semibold text-[#003D7A] max-w-2xl mx-auto leading-relaxed px-4",children:"Please consider donating today and bring hope to children and families battling cancer"}),p.jsx(Ds,{className:"px-8 py-4 text-base md:px-12 md:py-6 md:text-xl"})]})]})})}const Gl=["https://media.base44.com/images/public/698265de83eef46abf815de1/4e9c18508_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/900a94335_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/f333f7764_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/04b92a463_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/479d3b04c_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/1d0ea94b4_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/4980f5a8d_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/d3bf3fdbc_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/024228188_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/05c73f04c_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/6287bf795_image.png","https://media.base44.com/images/public/698265de83eef46abf815de1/f624e3e0d_image.png"];function W4({src:e,index:t,onSwipeLeft:n,onSwipeRight:s,isTop:o}){const l=d1(0),u=Kl(l,[-200,0,200],[-18,0,18]),d=Kl(l,[-200,-100,0,100,200],[0,1,1,1,0]),f=Kl(l,[20,80],[0,1]),m=Kl(l,[-80,-20],[1,0]),y=(v,x)=>{x.offset.x>100?s():x.offset.x<-100&&n()};return o?p.jsxs(ce.div,{className:"absolute inset-0 rounded-3xl overflow-hidden shadow-2xl bg-white cursor-grab active:cursor-grabbing",style:{x:l,rotate:u,opacity:d,zIndex:10},drag:"x",dragConstraints:{left:0,right:0},dragElastic:.7,onDragEnd:y,whileTap:{scale:1.02},animate:{scale:1,y:0},transition:{type:"spring",stiffness:260,damping:26},children:[p.jsx("img",{src:e,alt:"",className:"w-full h-full object-cover pointer-events-none",loading:"lazy"}),p.jsx(ce.div,{className:"absolute top-8 left-8 border-4 border-green-400 text-green-400 font-black text-2xl px-4 py-1 rounded-xl rotate-[-20deg] select-none",style:{opacity:f},children:"â¤ï¸ LOVE"}
209),p.jsx(ce.div,{className:"absolute top-8 right-8 border-4 border-[#D5006D] text-[#D5006D] font-black text-2xl px-4 py-1 rounded-xl rotate-[20deg] select-none",style:{opacity:m},children:"NEXT ð"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent pointer-events-none"})]}):p.jsx(ce.div,{className:"absolute inset-0 rounded-3xl overflow-hidden shadow-xl bg-white",style:{scale:.93,y:16,zIndex:t},children:p.jsx("img",{src:e,alt:"",className:"w-full h-full object-cover",loading:"lazy"})})}function q4(){var v,x;const[e,t]=_.useState(Gl.map((S,k)=>({src:S,id:k}))),[n,s]=_.useState([]),[o,l]=_.useState([]);_.useEffect(()=>{Gl.forEach(S=>{const k=new Image;k.src=S})},[]);const u=()=>{const S=Array.from({length:5},(k,C)=>({id:Date.now()+C,x:Math.random()*200-100}));l(k=>[...k,...S]),setTimeout(()=>l(k=>k.filter(C=>!S.find(E=>E.id===C.id))),1200)},d=()=>{s(S=>[...S,e[e.length-1]]),t(S=>S.slice(0,-1))},f=()=>{u(),s(S=>[...S,e[e.length-1]]),t(S=>S.slice(0,-1))},m=()=>{t(Gl.map((S,k)=>({src:S,id:k}))),s([])},y=e.length;return p.jsx("section",{className:"py-12 md:py-16 bg-gradient-to-br from-[#003D7A]/10 via-white to-[#D5006D]/10",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-10",children:[p.jsx("p",{className:"text-[#D5006D] font-bold text-sm uppercase tracking-widest mb-2",children:"ð¸ Swipe through our memories"}),p.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#003D7A]",children:"Our Special Moments"}),p.jsx("p",{className:"text-gray-500 mt-2 hidden",children:"Drag left or right â or use the buttons below"})]}),p.jsxs("div",{className:"relative max-w-sm sm:max-w-md md:max-w-lg mx-auto",children:[p.jsx("div",{className:"relative h-[360px] sm:h-[420px] md:h-[480px]",children:y===0?p.jsxs(ce.div,{initial:{scale:.8,opacity:0}
209,animate:{scale:1,opacity:1},className:"absolute inset-0 rounded-3xl bg-gradient-to-br from-[#003D7A] to-[#D5006D] flex flex-col items-center justify-center text-white shadow-2xl",children:[p.jsx(CC,{className:"w-16 h-16 mb-4 text-yellow-300",fill:"currentColor"}),p.jsx("p",{className:"text-2xl font-bold mb-2",children:"You've seen them all!"}),p.jsx("p",{className:"text-white/80 mb-6 text-sm",children:"Thank you for browsing our moments ð"}),p.jsx("button",{onClick:m,className:"bg-white text-[#003D7A] font-bold px-6 py-3 rounded-full hover:scale-105 transition-transform shadow-lg",children:"⺠See again"})]}):p.jsxs(p.Fragment,{children:[e.length>2&&p.jsx("div",{className:"absolute inset-0 rounded-3xl overflow-hidden bg-white shadow-lg",style:{transform:"scale(0.88) translateY(28px) rotate(6deg)",zIndex:1},children:p.jsx(ih,{src:(v=e[e.length-3])==null?void 0:v.src,alt:"",className:"w-full h-full"})}),e.length>1&&p.jsx("div",{className:"absolute inset-0 rounded-3xl overflow-hidden bg-white shadow-xl",style:{transform:"scale(0.93) translateY(16px) rotate(-4deg)",zIndex:2},children:p.jsx(ih,{src:(x=e[e.length-2])==null?void 0:x.src,alt:"",className:"w-full h-full"})}),p.jsx(nr,{children:p.jsx(W4,{src:e[e.length-1].src,index:10,isTop:!0,onSwipeLeft:d,onSwipeRight:f},e[e.length-1].id)}),p.jsx(nr,{children:o.map(S=>p.jsx(ce.div,{className:"absolute bottom-12 left-1/2 pointer-events-none text-2xl z-20",initial:{y:0,x:S.x,opacity:1,scale:1},animate:{y:-160,opacity:0,scale:1.6},exit:{opacity:0},transition:{duration:1.1,ease:"easeOut"},children:"â¤ï¸"},S.id))})]})}),y>0&&p.jsxs("p",{className:"text-center text-gray-400 text-sm mt-4",children:[y," of ",Gl.length," remaining"]}),y>0&&p.jsx(ce.p,{initial:{opacity:0}
209,animate:{opacity:1},transition:{delay:.8},className:"text-center text-gray-400 text-xs mt-2",children:"ð drag to swipe ð"})]})]})})}function O1({story:e,onClose:t}){const[n,s]=_.useState(!1);if(!e)return null;const o=e.story?e.story.split(` 210 211`).filter(Boolean):[];return p.jsx(nr,{children:p.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:t,children:[p.jsx("button",{onClick:t,className:"absolute top-4 right-4 sm:top-6 sm:right-6 bg-white text-gray-700 rounded-full p-2 hover:bg-gray-100 transition-colors shadow-lg z-50",children:p.jsx(Su,{className:"w-5 h-5"})}),p.jsx("div",{className:"relative",style:{perspective:"1400px"},onClick:l=>l.stopPropagation(),children:n?p.jsx(ce.div,{initial:{rotateY:90,opacity:0,scale:.85},animate:{rotateY:0,opacity:1,scale:1},exit:{rotateY:90,opacity:0},transition:{type:"spring",stiffness:180,damping:22},style:{transformOrigin:"left center",transformStyle:"preserve-3d"},className:"w-[90vw] max-w-[340px] sm:max-w-[600px] md:max-w-[820px] max-h-[85vh] rounded-2xl shadow-2xl overflow-hidden",children:p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 h-full bg-[#FFF8EE]",children:[p.jsxs("div",{className:"relative p-6 sm:p-8 md:p-10 overflow-y-auto max-h-[42vh] md:max-h-[80vh] bg-[#FFF8EE] border-r border-amber-200",children:[p.jsx("div",{className:"absolute inset-0 opacity-[0.06] bg-[repeating-linear-gradient(transparent,transparent_27px,#a0522d_27px,#a0522d_28px)]"}),p.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-4 bg-gradient-to-l from-black/10 to-transparent"}),p.jsxs("div",{className:"relative z-10",children:[p.jsxs("div",{className:"text-center mb-4",children:[p.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-[#003D7A]",children:e.child_name}),e.age&&p.jsxs("p",{className:"text-gray-500 text-sm mt-1",children:["Age ",e.age]})]}),p.jsx("div",{className:"bg-gradient-to-r from-[#D5006D]/10 to-[#FFD100]/10 rounded-xl p-3 mb-4",children:p.jsxs("p",{className:"text-center text-gray-700 font-medium italic text-sm",children:['"',e.title,'"']})}),p.jsxs("div",{className:"flex justify-center gap-2 mt-4",children:[p.jsx("div",{className:"w-2 h-2 rounded-full bg-[#FFD100]"}),p.jsx("div",{className:"w-2 h-2 rounded-full bg-[#00A651]"}),p.jsx("div",{className:"w-2 h-2 rounded-full bg-[#D5006D]"})]})]})]}),p.jsxs("div",{className:"relative p-6 sm:p-8 md:p-10 overflow-y-auto max-h-[42vh] md:max-h-[80vh] bg-[#FFFDF5]",children:[p.jsx("div",{className:"absolute inset-0 opacity-[0.06] bg-[repeating-linear-gradient(transparent,transparent_27px,#a0522d_27px,#a0522d_28px)]"}),p.jsx("div",{className:"relative z-10 space-y-4 text-gray-700 leading-relaxed text-sm sm:text-base",children:o.map((l,u)=>p.jsx("p",{children:l},u))}),p.jsx("div",{className:"relative z-10 mt-6 pt-4 border-t border-amber-200 text-center",children:p.jsx("p",{className:"text-xs text-gray-400 italic",children:"â The MCA Trust â"})})]})]})},"book-open"):p.jsxs(ce.div,{initial:{rotateY:0,scale:.7,opacity:0},animate:{rotateY:0,scale:1,opacity:1},exit:{rotateY:-90,opacity:0,transition:{duration:.35}},transition:{type:"spring",stiffness:200,damping:22},style:{transformOrigin:"center",transformStyle:"preserve-3d"},className:"w-[220px] sm:w-[260px] h-[320px] sm:h-[380px] rounded-2xl shadow-2xl cursor-pointer overflow-hidden bg-gradient-to-br from-[#003D7A] via-[#005BA8] to-[#003D7A] flex flex-col items-center justify-center gap-4 p-8 border-l-8 border-[#002855]",onClick:()=>s(!0),children:[p.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-[#001f40]"}),p.jsx("div",{className:"absolute inset-0 opacity-10 bg-[repeating-linear-gradient(0deg,transparent,transparent_28px,rgba(255,255,255,0.3)_28px,rgba(255,255,255,0.3)_29px)]"}),p.jsx("div",{className:"absolute top-4 left-6 w-6 h-6 border-t-2 border-l-2 border-yellow-400/60"}),p.jsx("div",{className:"absolute top-4 right-4 w-6 h-6 border-t-2 border-r-2 border-yellow-400/60"}),p.jsx("div",{className:"absolute bottom-4 left-6 w-6 h-6 border-b-2 border-l-2 border-yellow-400/60"}),p.jsx("div",{className:"absolute bottom-4 right-4 w-6 h-6 border-b-2 border-r-2 border-yellow-400/60"}),p.jsx(Ps,{className:"w-12 h-12 text-yellow-300",fill:"currentColor"}),p.jsxs("div",{className:"text-center",children:[p.jsx("p",{className:"text-yellow-300 text-xs uppercase tracking-widest mb-1",children:"Story of"}),p.jsx("h2",{className:"text-white font-bold text-xl sm:text-2xl leading-tight drop-shadow-lg",children:e.child_name}),p.jsxs("p",{className:"text-blue-200 text-xs mt-2 italic line-clamp-2",children:['"',e.title,'"']})]}),p.jsx(ce.div,{animate:{y:[0,-4,0]},transition:{repeat:1/0,duration:1.5},className:"text-yellow-300 text-xs font-semibold mt-2",children:"⦠Open Book â¦"})]},"cover")})]},"backdrop")})}const Lv=[{bg:"from-amber-800 via-amber-700 to-amber-900",spine:"from-amber-950/60",spineBar:"bg-amber-950/40",corner:"border-yellow-600/50",text:"text-yellow-100",sub:"text-yellow-200/90",hint:"text-yellow-200/70"},{bg:"from-blue-800 via-blue-700 to-blue-900",spine:"from-blue-950/60",spineBar:"bg-blue-950/40",corner:"border-blue-300/50",text:"text-blue-100",sub:"text-blue-200/90",hint:"text-blue-200/70"},{bg:"from-emerald-800 via-emerald-700 to-emerald-900",spine:"from-emerald-950/60",spineBar:"bg-emerald-950/40",corner:"border-green-300/50",text:"text-green-100",sub:"text-green-200/90",hint:"text-green-200/70"},{bg:"from-rose-800 via-rose-700 to-rose-900",spine:"from-rose-950/60",spineBar:"bg-rose-950/40",corner:"border-pink-300/50",text:"text-pink-100",sub:"text-pink-200/90",hint:"text-pink-200/70"}];function K4(){const[e,t]=_.useState(null),{data:n=[],isLoading:s}=Eu({queryKey:["featured-stories"],queryFn:()=>Zn.entities.Story.filter({featured:!0},"-created_date",3),staleTime:300*1e3});return s?p.jsx("section",{className:"py-16 bg-gradient-to-br from-blue-50 via-green-50 to-pink-50",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"animate-pulse space-y-8",children:[p.jsx("div",{className:"h-12 bg-gray-200 rounded-lg w-64 mx-auto"}),p.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[1,2,3].map(o=>p.jsx("div",{className:"aspect-[3/4] bg-gray-200 rounded-2xl"},o))})]})})}):n.length===0?null:p.jsxs(p.Fragment,{children:[p.jsx("section",{className:"py-16 bg-gradient-to-br from-blue-50 via-green-50 to-pink-50",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[p.jsx("h2",{className:"text-4xl lg:text-5xl font-bold text-[#003D7A] mb-4",children:"Children's Stories"}),p.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Hear from the amazing children whose lives have been touched by our programs"})]}),p.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 md:gap-10 mb-12 max-w-4xl mx-auto",children:n.map((o,l)=>{const u=Lv[l%Lv.length];return p.jsx(ce.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:l*.18,ease:[.22,1,.36,1]},whileHover:{y:-8,transition:{duration:.25}},className:"cursor-pointer aspect-[3/4] w-full",onClick:()=>t(o),children:p.jsxs("div",{className:`relative h-full rounded-2xl shadow-xl hover:shadow-2xl transition-shadow duration-300 overflow-hidden bg-gradient-to-br ${u.bg}`,children:[p.jsx("div",{className:"absolute inset-0 opacity-20 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==')]"}),p.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-4 bg-gradient-to-r ${u.spine} to-transparent`}),p.jsx("div",{className:`absolute left-1 top-0 bottom-0 w-1 ${u.spineBar}`}),p.jsxs("div",{className:"p-4 sm:p-6 md:p-8 relative h-full flex flex-col justify-between",children:[p.jsx("div",{className:`absolute top-2 left-2 sm:top-3 sm:left-3 w-4 h-4 sm:w-6 sm:h-6 border-t-2 border-l-2 ${u.corner}`}),p.jsx("div",{className:`absolute top-2 right-2 sm:top-3 sm:right-3 w-4 h-4 sm:w-6 sm:h-6 border-t-2 border-r-2 ${u.corner}`}),p.jsx("div",{className:`absolute bottom-2 left-2 sm:bottom-3 sm:left-3 w-4 h-4 sm:w-6 sm:h-6 border-b-2 border-l-2 ${u.corner}`}),p.jsx("div",{className:`absolute bottom-2 right-2 sm:bottom-3 sm:right-3 w-4 h-4 sm:w-6 sm:h-6 border-b-2 border-r-2 ${u.corner}`}),p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center px-1",children:[p.jsxs("h3",{className:`text-xs sm:text-sm md:text-base lg:text-xl font-bold ${u.text} mb-1 sm:mb-2 drop-shadow-lg leading-tight break-words w-full`,children:[o.child_
211name,"'s Story"]}),p.jsx("p",{className:`${u.sub} text-[9px] sm:text-[10px] md:text-xs italic px-1 line-clamp-3 leading-snug`,children:o.title})]}),p.jsx("div",{className:"mt-2 text-center",children:p.jsx("p",{className:`text-[9px] sm:text-[10px] md:text-xs ${u.hint} font-medium`,children:"Click to read"})})]})]})},o.id)})}),p.jsx(ce.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"text-center",children:p.jsx(zt,{to:ft("Stories"),children:p.jsxs(dn,{size:"lg",variant:"outline",className:"border-2 border-[#003D7A] text-[#003D7A] hover:bg-[#003D7A] hover:text-white rounded-full px-8",children:["Read More Stories",p.jsx(tC,{className:"ml-2 h-5 w-5"})]})})})]})}),e&&p.jsx(O1,{story:{...e,image_url:null},onClose:()=>t(null)})]})}function G4(){return p.jsxs("div",{className:"min-h-screen",children:[p.jsx(z4,{}),p.jsx(H4,{}),p.jsx(q4,{}),p.jsx(K4,{}),p.jsx("div",{className:"text-center py-6 text-xs text-gray-500",children:"Michael Charles Adams MBE Memorial Trust"})]})}function Q4(){return p.jsx(Ca,{children:p.jsx("div",{className:"min-h-screen",children:p.jsxs("section",{className:"relative py-20 overflow-hidden",children:[p.jsx("div",{className:"absolute top-10 right-10 md:right-20 opacity-40",children:p.jsx(Xt,{size:"medium"})}),p.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:p.jsxs(ce.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-3xl mx-auto",children:[p.jsx("div",{className:"text-6xl mb-6",children:"ð´"}),p.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-[#003D7A] mb-6",children:"Sponsor Our Supporters"}),p.jsx("p",{className:"text-lg md:text-xl text-gray-700 mb-4",children:"We don't have any active fundraising campaigns right now â but watch this space!"}),p.jsx("p",{className:"text-base md:text-lg text-gray-600 mb-10",children:"Amazing people regularly take on incredible challenges to support children with cancer. Check back soon to sponsor our next fundraiser."}),p.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[p.jsx(Ds,{}),p.jsx(zt,{to:ft("Support"),children:p.jsx(dn,{variant:"outline",className:"border-2 border-[#003D7A] text-[#003D7A] bg-white/75 hover:bg-[#003D7A] hover:text-white rounded-full px-8 py-3 text-base transition-all",children:"Get Involved"})})]})]})})]})})})}const Iv=[{bg:"from-amber-800 via-amber-700 to-amber-900",spine:"from-amber-950/60",spineBar:"bg-amber-950/40",corner:"border-yellow-600/50",text:"text-yellow-100",sub:"text-yellow-200/90",hint:"text-yellow-200/70"},{bg:"from-blue-800 via-blue-700 to-blue-900",spine:"from-blue-950/60",spineBar:"bg-blue-950/40",corner:"border-blue-300/50",text:"text-blue-100",sub:"text-blue-200/90",hint:"text-blue-200/70"},{bg:"from-emerald-800 via-emerald-700 to-emerald-900",spine:"from-emerald-950/60",spineBar:"bg-emerald-950/40",corner:"border-green-300/50",text:"text-green-100",sub:"text-green-200/90",hint:"text-green-200/70"},{bg:"from-rose-800 via-rose-700 to-rose-900",spine:"from-rose-950/60",spineBar:"bg-rose-950/40",corner:"border-pink-300/50",text:"text-pink-100",sub:"text-pink-200/90",hint:"text-pink-200/70"},{bg:"from-violet-800 via-violet-700 to-violet-900",spine:"from-violet-950/60",spineBar:"bg-violet-950/40",corner:"border-violet-300/50",text:"text-violet-100",
211sub:"text-violet-200/90",hint:"text-violet-200/70"},{bg:"from-orange-700 via-orange-600 to-orange-800",spine:"from-orange-950/60",spineBar:"bg-orange-950/40",corner:"border-orange-300/50",text:"text-orange-100",sub:"text-orange-200/90",hint:"text-orange-200/70"}];function Y4({story:e,onClick:t,index:n=0}){const s=Iv[n%Iv.length];return p.jsx(ce.div,{whileHover:{y:-8},transition:{duration:.3,ease:"easeOut"},onClick:t,className:"cursor-pointer aspect-[3/4] w-full",children:p.jsxs("div",{className:`relative h-full rounded-2xl shadow-xl hover:shadow-2xl transition-shadow duration-300 overflow-hidden bg-gradient-to-br ${s.bg}`,children:[p.jsx("div",{className:"absolute inset-0 opacity-20 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==')]"}),p.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-4 bg-gradient-to-r ${s.spine} to-transparent`}),p.jsx("div",{className:`absolute left-1 top-0 bottom-0 w-1 ${s.spineBar}`}),p.jsxs("div",{className:"p-4 sm:p-6 md:p-8 relative h-full flex flex-col justify-between",children:[p.jsx("div",{className:`absolute top-2 left-2 sm:top-3 sm:left-3 md:top-4 md:left-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-t-2 border-l-2 ${s.corner}`}),p.jsx("div",{className:`absolute top-2 right-2 sm:top-3 sm:right-3 md:top-4 md:right-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-t-2 border-r-2 ${s.corner}`}),p.jsx("div",{className:`absolute bottom-2 left-2 sm:bottom-3 sm:left-3 md:bottom-4 md:left-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-b-2 border-l-2 ${s.corner}`}),p.jsx("div",{className:`absolute bottom-2 right-2 sm:bottom-3 sm:right-3 md:bottom-4 md:right-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-b-2 border-r-2 ${s.corner}`}),p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center px-1",children:[p.jsxs("h3",{className:`text-base sm:text-xl md:text-2xl lg:text-3xl font-bold ${s.text} mb-2 drop-shadow-lg leading-tight break-words w-full`,children:[e.child_name,"'s Story"]}),p.jsx("p",{className:`${s.sub} text-[10px] sm:text-xs md:text-sm italic px-1 line-clamp-3 leading-snug`,children:e.title})]}),p.jsx("div",{className:"mt-2 sm:mt-4 text-center",children:p.jsx("p",{className:`text-[10px] sm:text-xs md:text-sm ${s.hint} font-medium`,children:"Click to read"})})]})]})})}function X4({story:e,onClick:t}){return p.jsx(ce.div,{whileHover:{y:-8},transition:{duration:.3,ease:"easeOut"},onClick:t,className:"cursor-pointer aspect-[3/4] w-full",children:p.jsxs("div",{className:"relative h-full rounded-2xl shadow-xl hover:shadow-2xl transition-shadow duration-300 overflow-hidden bg-gradient-to-br from-amber-800 via-amber-700 to-amber-900",children:[p.jsx("div",{className:"absolute inset-0 opacity-20 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==')]"}),p.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-4 bg-gradient-to-r from-amber-950/60 to-transparent"}),p.jsx("div",{className:"absolute left-1 top-0 bottom-0 w-1 bg-amber-950/40"}),p.jsxs("div",{className:"absolute top-2 right-2 md:top-4 md:right-4 bg-gradient-to-br from-pink-500 to-pink-600 text-white px-2 py-1 md:px-3 md:py-1.5 rounded-full text-[10px] md:text-xs font-medium flex items-center gap-1 shadow-md z-10",children:[p.jsx(Ps,{className:"w-2 h-2 md:w-3 md:h-3",fill:"currentColor"}),p.jsx("span",{className:"hidden md:inline",children:"Parent Story"})]}),p.jsxs("div",{className:"p-4 sm:p-6 md:p-8 relative h-full flex flex-col justify-between",children:[p.jsx("div",{className:"absolute top-2 left-2 sm:top-3 sm:left-3 md:top-4 md:left-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-t-2 border-l-2 border-yellow-600/50"}),p.jsx("div",{className:"absolute bottom-2 left-2 sm:bottom-3 sm:left-3 md:bottom-4 md:left-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-b-2 border-l-2 border-yellow-600/50"}),p.jsx("div",{className:"absolute bottom-2 right-2 sm:bottom-3 sm:right-3 md:bottom-4 md:right-4 w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 border-b-2 border-r-2 border-yellow-600/50"}),p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center",children:[p.jsxs("h3",{className:"text-base sm:text-xl md:text-2xl lg:text-3xl font-bold text-yellow-100 mb-2 drop-shadow-lg px-1 leading-tight break-words w-full",children:[e.child_name,"'s Story"]}),p.jsxs("p",{className:"text-yellow-200/90 text-[10px] sm:text-xs md:text-sm italic line-clamp-3 px-1 leading-snug",children:['"',e.story.substring(0,60),'..."']})]}),p.jsx("div",{className:"mt-2 sm:mt-4 text-center",children:p.jsx("p",{className:"text-[10px] sm:text-xs md:text-sm text-yellow-200/70 font-medium",children:"Click to read"})})]})]})})}function J4(){const[e,t]=_.useState(null),{data:n=[],isLoading:s}=Eu({queryKey:["stories"],queryFn:()=>Zn.entities.Story.list()}),o=n.filter(u=>{var d;return!((d=u.title)!=null&&d.toLowerCase().includes("parent"))}).slice(0,6),l=n.filter(u=>{var d;return(d=u.title)==null?void 0:d.toLowerCase().includes("parent")});return p.jsxs(Ca,{intensity:"light",children:[p.jsxs("div",{className:"min-h-screen",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-sky-100/40 via-trans
211parent to-pink-50/20 pointer-events-none"}),p.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none hidden sm:block",children:p.jsx(ce.div,{animate:{x:[0,60,0],y:[0,-30,0]},transition:{duration:28,repeat:1/0,ease:"easeInOut"},className:"absolute top-20 left-10 w-64 h-64 bg-yellow-200/20 rounded-full blur-2xl",style:{willChange:"transform"}})}),p.jsx("div",{className:"absolute top-10 left-[3%] sm:left-[8%] md:left-[10%] opacity-35 z-0 scale-50 sm:scale-75 md:scale-100",children:p.jsx(Xt,{size:"small"})}),p.jsx("div",{className:"absolute top-[15%] right-[2%] sm:right-[10%] md:right-[15%] opacity-50 z-0 scale-75 md:scale-100",children:p.jsx(Xt,{size:"medium"})}),p.jsx("section",{className:"relative py-20",children:p.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:p.jsxs(ce.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[p.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-[#003D7A] mb-6",children:"Stories of Courage"}),p.jsx("p",{className:"text-xl text-gray-700 max-w-3xl mx-auto leading-relaxed",children:"Every child we support has a unique journey of bravery and hope. These are their stories â tales of strength, smiles, and triumph."})]})})}),p.jsx("section",{className:"py-12 relative z-10",children:p.jsx("div",{className:"container mx-auto px-6",children:s?p.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3].map(u=>p.jsx("div",{className:"h-96 animate-pulse bg-white/50 rounded-3xl"},u))}):o.length===0?p.jsx("div",{className:"text-center py-20",children:p.jsx("p",{className:"text-xl text-gray-600",children:"Stories coming soon..."})}):p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 sm:gap-6 md:gap-8 max-w-7xl mx-auto items-start",children:o.map((u,d)=>p.jsx(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.1,duration:.4},className:"w-full flex justify-center",children:p.jsx("div",{className:"w-full max-w-[240px]",children:p.jsx(Y4,{story:u,index:d,onClick:()=>t(u)})})},u.id))})})}),l.length>0&&p.jsx("section",{className:"py-16 relative z-10",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[p.jsx("h2",{className:"text-4xl font-bold text-[#003D7A] mb-4",children:"Parents' Experiences"}),p.jsx("p",{className:"text-lg text-gray-700 max-w-2xl mx-auto",children:"Hear from the families whose lives have been touched by The MCA Trust"})]}),p.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-6 md:gap-8 max-w-6xl mx-auto items-start",children:l.map((u,d)=>p.jsx(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.1,duration:.4},className:"w-full flex justify-center",children:p.jsx("div",{className:"w-full max-w-[240px]",children:p.jsx(X4,{story:u,onClick:()=>t(u)})})},u.id))})]})}),p.jsx("section",{className:"py-16 relative z-10",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-white/90 to-white/70 backdrop-blur-sm rounded-3xl shadow-xl p-12 text-center border border-white/50",children:[p.jsx("h3",{className:"text-3xl font-bold text-[#003D7A] mb-4",children:"Every child here has a story of courage"}),p.jsx("p",{className:"text-xl text-gray-700 mb-8 max-w-2xl mx-auto",children:"Your support helps write the next chapter"}),p.jsx(Ds,{className:"px-12 py-7 text-xl"})]})})})]}),e&&p.jsx(O1,{story:e,onClose:()=>t(null)})]})}const Fv=[{id:"fundraising",icon:Ps,label:"Fundraising",description:"Hosting events or charity challenges",color:"#D5006D"},{id:"sponsorship",icon:kC,label:"Sponsorship",description:"Partner with MCA Trust",color:"#003D7A"},{id:"general",icon:vC,label:"General",description:"Questions or just get in touch",color:"#00A651"}],Vv={fundraising:"Fundraising Enquiry",sponsorship:"Sponsorship Enquiry",general:"General Enquiry"};function Z4(){const[e,t]=_.useState("general"),[n,s]=_.useState(!1),[o,l]=_.useState({name:"",email:"",message:""}),u=f=>{f.preventDefault(),s(!0)},d=Fv.find(f=>f.id===e);return p.jsx(Ca,{children:p.jsxs("div",{className:"min-h-screen",children:[p.jsxs("section",{className:"relative py-12 md:py-20 overflow-hidden",children:[p.jsx("div",{className:"absolute top-10 left-10 opacity-30",children:p.jsx(Xt,{size:"small"})}),p.jsx("div",{className:"absolute bottom-10 right-10 opacity-30",children:p.jsx(Xt,{size:"medium"})}),p.jsx("div",{className:"container mx-auto px-6 text-center relative z-10 max-w-3xl",children:p.jsxs(ce.div,{initial:{opacity:0,y:30}
211,animate:{opacity:1,y:0},transition:{duration:.8},children:[p.jsx("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-bold text-[#003D7A] mb-4",children:"Support The MCA Trust"}),p.jsx("p",{className:"text-gray-700 text-base md:text-lg leading-relaxed mb-3",children:"Dedicated to supporting children battling cancer â if you're interested in partnering with us or have fundraising enquiries, we're here to help."}),p.jsx("p",{className:"font-semibold text-[#D5006D] text-base md:text-lg",children:"By getting in touch, you're taking the first step toward making a real difference."})]})})]}),p.jsx("section",{className:"pb-6",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-5",children:[p.jsx("h2",{className:"text-xl md:text-2xl font-bold text-[#003D7A] mb-1",children:"What are you contacting us about?"}),p.jsx("p",{className:"text-gray-500 text-sm",children:"Select an option below"})]}),p.jsx("div",{className:"grid grid-cols-3 gap-3 max-w-2xl mx-auto",children:Fv.map((f,m)=>{const y=f.icon,v=e===f.id;return p.jsx(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.1},whileTap:{scale:.97},onClick:()=>{t(f.id),s(!1)},className:"cursor-pointer",children:p.jsxs("div",{className:`rounded-2xl p-3 md:p-5 text-center border-2 transition-all duration-300 ${v?"bg-white shadow-lg":"bg-white/70 hover:bg-white border-transparent"}`,style:{borderColor:v?f.color:"transparent"},children:[p.jsx("div",{className:"w-9 h-9 md:w-12 md:h-12 rounded-xl flex items-center justify-center mx-auto mb-2",style:{backgroundColor:`${f.color}15`},children:p.jsx(y,{className:"w-5 h-5 md:w-6 md:h-6",style:{color:f.color}})}),p.jsx("h3",{className:"font-bold text-gray-900 text-xs md:text-sm leading-tight",children:f.label}),v&&p.jsx(ce.div,{initial:{scale:0},animate:{scale:1},className:"mt-1 flex justify-center",children:p.jsx("span",{className:"text-[10px] font-semibold px-2 py-0.5 rounded-full text-white",style:{backgroundColor:f.color},children:"â"})})]})},f.id)})})]})}),p.jsx("section",{className:"pb-16",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsx(nr,{mode:"wait",children:p.jsx(ce.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},transition:{duration:.3},className:"max-w-xl mx-auto",children:p.jsxs(Ts,{className:"shadow-2xl rounded-3xl border-2 border-gray-100 bg-white overflow-hidden",children:[p.jsx("div",{className:"h-1.5",style:{backgroundColor:d==null?void 0:d.color}}),p.jsx(Ns,{className:"p-6 md:p-10",children:n?p.jsxs(ce.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center py-8",children:[p.jsx(aC,{className:"w-14 h-14 mx-auto mb-4",style:{color:d==null?void 0:d.color}}),p.jsx("h3",{className:"text-2xl font-bold text-[#003D7A] mb-2",children:"Message Sent!"}),p.jsx("p",{className:"text-gray-600 mb-6",children:"Our team will get back to you within 24 hours."}),p.jsx(dn,{onClick:()=>{s(!1),l({name:"",email:"",message:""})},variant:"outline",className:"rounded-xl border-2",style:{borderColor:d==null?void 0:d.color,color:d==null?void 0:d.color},children:"Send Another Message"})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"text-center mb-6",children:[p.jsx("h2",{className:"text-2xl font-bold text-[#003D7A] mb-1",children:Vv[e]}),p.jsx("p",{className:"text-gray-500 text-sm",children:"We'll be in touch soon"})]}),p.jsxs("form",{onSubmit:u,className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1.5",children:"Your Name *"}),p.jsx(oa,{required:!0,placeholder:"Full name",value:o.name,onChange:f=>l({...o,name:f.target.value}),className:"h-11 rounded-xl border-2 focus:border-[#003D7A]"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1.5",children:"Email Address *"}),p.jsx(oa,{required:!0,type:"email",placeholder:"[email protected]",value:o.email,onChange:f=>l({...o,email:f.target.value}),className:"h-11 rounded-xl border-2 focus:border-[#003D7A]"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1.5",children:"Message *"}),p.jsx(op,{required:!0,placeholder:"Tell us about your enquiry...",value:o.message,onChange:f=>l({...o,message:f.target.value}),className:"h-28 rounded-xl border-2 focus:border-[#003D7A]"})]}),p.jsxs(dn,{type:"submit",size:"lg",className:"w-full text-white h-12 text-base font-bold rounded-xl shadow-lg",style:{background:`linear-gradient(to right, ${d==null?void 0:d.color}, #003D7A)`},children:["Send ",Vv[e]]})]}),p.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-100",children:[p.jsx("p",{className:"text-center text-sm font-semibold text-[#003D7A] mb-3",children:"Or Contact Us Directly"}),p.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center text-sm",children:[p.jsxs("a",{href:"tel:07771544015",className:"flex items-center justify-center gap-2 text-gray-600 hover:text-[#003D7A] transition-colors",children:[p.jsx(wC,{className:"w-4 h-4"}),p.jsx("span",{children:"+44 (0)7771 544015"})]}),p.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center justify-center gap-2 text-gray-600 hover:text-[#003D7A] transition-colors",children:[p.jsx(pC,{className:"w-4 h-4"}),p.jsx("span",{children:"[email protected]"})]})]})]})]})})]})},e)})})}),p.jsx("section",{className:"pb-16",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs(ce.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-[#003D7A] to-[#00A651] rounded-3xl p-8 md:p-12 text-center text-white shadow-2xl",children:[p.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-3",children:"Join us in making a difference"}),p.jsx("p",{className:"text-white/90 text-base mb-6 max-w-md mx-auto",children:"Contact the MCA Trust today and help change a child's life."}),p.jsx(dn,{size:"lg",onClick:()=>window.scrollTo({top:400,behavior:"smooth"}),className:"bg-[#FFD100] hover:bg-yellow-400 text-[#003D7A] font-bold px-8 h-12 text-base rounded-full shadow-lg",children:"Contact MCA Trust"})]})})})]})})}function e3({children:e,currentPageName:t}){const[n,s]=_.useState(!1),o=[{name:"Home",href:ft("Home")},{name:"Stories",href:ft("Stories")},{name:"Sponsor",href:ft("Sponsor")},{name:"Gallery",href:ft("Gallery")},{name:"Support",href:ft("Support")},{name:"About",href:ft("About")},{name:"Donate",href:ft("Donate"),highlight:!0}];return p.jsxs("div",{className:"min-h-screen",children:[p.jsx("nav",{className:"bg-white shadow-lg sticky top-0 z-40 border-b-4 border-[#FFD100]",children:p.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[p.jsxs("div",{className:"flex items-center justify-between h-16 md:h-18 lg:h-20",children:[p.jsxs(zt,{to:ft("Home"),className:"flex items-center gap-2 group flex-shrink-0",children:[p.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/user_6952c94134796bc641d77638/9dd48c631_image.png",alt:"MCA Trust Logo",className:"h-8 md:h-10 transition-transform group-hover:scale-105"}),p.jsx("span",{className:"text-base md:text-lg font-bold text-[#003D7A] hidden xl:block",children:"MCA TRUST"})]}),p.jsxs("div",{className:"hidden md:flex items-center gap-1 lg:gap-2 flex-wrap justify-end",children:[o.filter(l=>!l.highlight).map(l=>p.jsx(zt,{to:l.href,children:p.jsx(dn,{variant:"ghost",className:`text-sm lg:text-base font-medium rounded-full px-3 lg:px-4 py-1.5 lg:py-2 transition-all ${t===l.name?"text-[#003D7A] bg-[#003D7A]/10":"text-gray-700 hover:text-[#003D7A] hover:bg-gray-100"}`,children:l.name})},l.name)),p.jsx(Ds,{})]}),p.jsx(dn,{variant:"ghost",size:"icon",className:"md:hidden",onClick:()=>s(!n),children:n?p.jsx(Su,{className:"h-6 w-6"}):p.jsx(gC,{className:"h-6 w-6"})})]}),p.jsx(nr,{children:n&&p.jsx(ce.div,{initial:{opacity:0,height:0}
211,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden pb-4",children:p.jsxs("div",{className:"flex flex-col gap-2",children:[o.filter(l=>!l.highlight).map(l=>p.jsx(zt,{to:l.href,onClick:()=>s(!1),children:p.jsx(dn,{variant:"ghost",className:`w-full justify-start text-lg ${t===l.name?"text-[#003D7A] bg-[#003D7A]/10":"text-gray-700"}`,children:l.name})},l.name)),p.jsx("div",{className:"w-full flex justify-center pt-2",onClick:()=>s(!1),children:p.jsx(Ds,{})})]})})})]})}),p.jsx("main",{children:e}),p.jsx("footer",{className:"bg-[#003D7A] text-white py-8 md:py-12",children:p.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[p.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8 md:gap-12 mb-8",children:[p.jsxs("div",{children:[p.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/user_6952c94134796bc641d77638/9dd48c631_image.png",alt:"MCA Trust",className:"h-16 mb-4 brightness-0 invert"}),p.jsx("h3",{className:"font-bold text-lg mb-2",children:"Michael Charles Adams MBE Memorial Trust"}),p.jsx("p",{className:"text-blue-200 text-sm mb-4",children:"Reg No. 1141670"}),p.jsx("p",{className:"text-blue-100 text-sm",children:"Proud to partner with local NHS Trusts"})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold mb-4",children:"About our charity"}),p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsx(zt,{to:ft("About"),className:"block text-blue-100 hover:text-white transition-colors",children:"About The MCA Trust"}),p.jsx(zt,{to:ft("About"),className:"block text-blue-100 hover:text-white transition-colors",children:"Finance and governance"}),p.jsx(zt,{to:ft("About"),className:"block text-blue-100 hover:text-white transition-colors",children:"Ambassadors"})]})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold mb-4",children:"Support our charity"}),p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsx(zt,{to:ft("Donate"),className:"block text-blue-100 hover:text-white transition-colors",children:"Donate"}),p.jsx(zt,{to:ft("Support"),className:"block text-blue-100 hover:text-white transition-colors",children:"Attend an event"}),p.jsx(zt,{to:ft("Support"),className:"block text-blue-100 hover:text-white transition-colors",children:"Other ways to support"})]})]})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold mb-4",children:"Contact us"}),p.jsxs("div",{className:"space-y-3 text-sm text-blue-100",children:[p.jsxs("p",{children:["97 High Road, Orsett Village,",p.jsx("br",{}),"RM16 3LD, Essex"]}),p.jsx("p",{children:"+44 (0)7771 544015"}),p.jsx("a",{href:"mailto:[email protected]",className:"hover:text-white transition-colors",children:"[email protected]"}),p.jsx("p",{className:"text-blue-100 mt-3",children:"Proud to partner with local NHS Trusts"})]})]})]}),p.jsx("div",{className:"border-t border-blue-800 pt-6 text-center text-blue-200 text-sm",children:p.jsxs("p",{children:["© ",new Date().getFullYear()," Michael Charles Adams MBE Memorial Trust. All rights reserved."]})})]})})]})}const t3={About:GD,Donate:O4,Gallery:D4,Home:G4,Sponsor:Q4,Stories:J4,Support:Z4},D1={mainPage:"Home",Pages:t3,Layout:e3};function n3(){const e=Fi(),{isAuthenticated:t}=Iw(),{Pages:n,mainPage:s}=D1,o=s;return _.useEffect(()=>{window.scrollTo(0,0)},[e.pathname]),_.useEffect(()=>{const l=e.pathname;let u;if(l==="/"||l==="")u=o;else{const d=l.replace(/^\//,"").split("/")[0];u=Object.keys(n).find(y=>y.toLowerCase()===d.toLowerCase())||null}t&&u&&Zn.appLogs.logUserInApp(u).catch(()=>{})},[e,t,n,o]),null}function r3({}){var o;const t=Fi().pathname.substring(1),{data:n,isFetched:s}=Eu({queryKey:["user"],queryFn:async()=>{try{return{user:await Zn.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return p.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:p.jsx("div",{className:"max-w-md w-full",children:p.jsxs("div",{className:"text-center space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),p.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),p.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",p.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),s&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&p.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:p.jsxs("div",{className:"flex items-start space-x-3",children:[p.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:p.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),p.jsxs("div",{className:"text-left space-y-1",children:[p.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),p.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),p.jsx("div",{className:"pt-6",children:p.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[p.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const s3=()=>p.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:p.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:p.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),p.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),p.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),p.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[p.jsx("p",{children:"If you believe this is an error, you can:"}),p.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[p.jsx("li",{children:"Verify you are logged in with the correct account"}),p.jsx("li",{children:"Contact the app administrator for access"}),p.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function i3(){return p.jsx(Ca,{children:p.jsx("div",{className:"min-h-screen flex items-center justify-center px-6 py-20",children:p.jsxs(ce.div,{initial:{opacity:0,y:30}
211,animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-xl w-full text-center bg-white/90 rounded-3xl shadow-2xl p-8 md:p-12 border-2 border-sky-100",children:[p.jsx("div",{className:"flex justify-center mb-6",children:p.jsx("div",{className:"relative",children:p.jsx(Xt,{size:"medium"})})}),p.jsx("div",{className:"flex justify-center mb-4",children:p.jsx(uC,{className:"w-16 h-16 text-[#00A651]"})}),p.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-[#003D7A] mb-4",children:"Thank You!"}),p.jsx("p",{className:"text-lg text-gray-700 mb-2",children:"Your generous donation to the MCA Trust means the world to us."}),p.jsx("p",{className:"text-base text-gray-600 mb-8",children:"Every contribution helps us continue supporting children and families in our community."}),p.jsx("div",{className:"flex justify-center mb-6",children:p.jsx(Ps,{className:"w-8 h-8 text-[#D5006D]",fill:"currentColor"})}),p.jsx(zt,{to:"/",children:p.jsx(dn,{className:"bg-[#003D7A] hover:bg-[#002a5c] text-white rounded-full px-8 py-3 text-lg",children:"Return Home"})})]})})})}const{Pages:M1,Layout:Bv,mainPage:o3}=D1,L1=o3,a3=M1[L1],uf=({children:e,currentPageName:t})=>Bv?p.jsx(Bv,{currentPageName:t,children:e}):p.jsx(p.Fragment,{children:e}),l3=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:s}=Iw();if(t||e)return p.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:p.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return p.jsx(s3,{});if(n.type==="auth_required")return s(),null}return p.jsxs(zk,{children:[p.jsx(Io,{path:"/",element:p.jsx(uf,{currentPageName:L1,children:p.jsx(a3,{})})}),Object.entries(M1).map(([o,l])=>p.jsx(Io,{path:`/${o}`,element:p.jsx(uf,{currentPageName:o,children:p.jsx(l,{})})},o)),p.jsx(Io,{path:"/ThankYou",element:p.jsx(uf,{currentPageName:"ThankYou",children:p.jsx(i3,{})})}),p.jsx(Io,{path:"*",element:p.jsx(r3,{})})]})};function u3(){return p.jsx(hA,{children:p.jsxs(F_,{client:Y_,children:[p.jsxs(Qk,{children:[p.jsx(n3,{}),p.jsx(l3,{})]}),p.jsx(f_,{})]})})}HE.createRoot(document.getElementById("root")).render(p.jsx(u3,{}));
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.