vendor: 6,247 bytes, lines 1-9
1var k0=e=>{throw TypeError(e)};var vh=(e,t,n)=>t.has(e)||k0("Cannot "+n);var D=(e,t,n)=>(vh(e,t,"read from private field"),n?n.call(e):t.get(e)),Ee=(e,t,n)=>t.has(e)?k0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(vh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),De=(e,t,n)=>(vh(e,t,"access private method"),n);var $c=(e,t,n,r)=>({set _(i){ce(e,t,i,n)},get _(){return D(e,t,r)}});function ZR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function hm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xh={exports:{}},Ea={},wh={exports:{}},je={};/** 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 T0;function e_(){if(T0)return je;T0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=m&&M[m]||M["@@iterator"],typeof M=="function"?M:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,b={};function C(M,q,ge){this.props=M,this.context=q,this.refs=b,this.updater=ge||S}C.prototype.isReactComponent={},C.prototype.setState=function(M,q){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,q,"setState")},C.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=C.prototype;function T(M,q,ge){this.props=M,this.context=q,this.refs=b,this.updater=ge||S}var R=T.prototype=new k;R.constructor=T,E(R,C.prototype),R.isPureReactComponent=!0;var _=Array.isArray,N=Object.prototype.hasOwnProperty,L={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function j(M,q,ge){var de,le={},fe=null,te=null;if(q!=null)for(de in q.ref!==void 0&&(te=q.ref),q.key!==void 0&&(fe=""+q.key),q)N.call(q,de)&&!B.hasOwnProperty(de)&&(le[de]=q[de]);var he=arguments.length-2;if(he===1)le.children=ge;else if(1<he){for(var ie=Array(he),Te=0;Te<he;Te++)ie[Te]=arguments[Te+2];le.children=ie}if(M&&M.defaultProps)for(de in he=M.defaultProps,he)le[de]===void 0&&(le[de]=he[de]);return{$$typeof:e,type:M,key:fe,ref:te,props:le,_owner:L.current}}function K(M,q){return{$$typeof:e,type:M.type,key:q,ref:M.ref,props:M.props,_owner:M._owner}}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function J(M){var q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ge){return q[ge]})}var se=/\/+/g;function re(M,q){return typeof M=="object"&&M!==null&&M.key!=null?J(""+M.key):q.toString(36)}function oe(M,q,ge,de,le){var fe=typeof M;(fe==="undefined"||fe==="boolean")&&(M=null);var te=!1;if(M===null)te=!0;else switch(fe){case"string":case"number":te=!0;break;case"object":switch(M.$$typeof){case e:case t:te=!0}}if(te)return te=M,le=le(te),M=de===""?"."+re(te,0):de,_(le)?(ge="",M!=null&&(ge=M.replace(se,"$&/")+"/"),oe(le,q,ge,"",function(Te){return Te})):le!=null&&(G(le)&&(le=K(le,ge+(!le.key||te&&te.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+M)),q.push(le)),1;if(te=0,de=de===""?".":de+":",_(M))for(var he=0;he<M.length;he++){fe=M[he];var ie=de+re(fe,he);te+=oe(fe,q,ge,ie,le)}else if(ie=w(M),typeof ie=="function")for(M=ie.call(M),he=0;!(fe=M.next()).done;)fe=fe.value,ie=de+re(fe,he++),te+=oe(fe,q,ge,ie,le);else if(fe==="object")throw q=String(M),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return te}function be(M,q,ge){if(M==null)return M;var de=[],le=0;return oe(M,de,"","",function(fe){return q.call(ge,fe,le++)}),de}function Z(M){if(M._status===-1){var q=M._result;q=q(),q.then(function(ge){(M._status===0||M._status===-1)&&(M._status=1,M._result=ge)},function(ge){(M._status===0||M._status===-1)&&(M._status=2,M._result=ge)}),M._status===-1&&(M._status=0,M._result=q)}if(M._status===1)return M._result.default;throw M._result}var ne={current:null},U={transition:null},H={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:be,forEach:function(M,q,ge){be(M,function(){q.apply(this,arguments)},ge)},count:function(M){var q=0;return be(M,function(){q++}),q},toArray:function(M){return be(M,function(q){return q})||[]},only:function(M){if(!G(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},je.Component=C,je.Fragment=n,je.Profiler=i,je.PureComponent=T,je.StrictMode=r,je.Suspense=f,je.__SECRET_INT
vendor: 7,133 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,je.act=z,je.cloneElement=function(M,q,ge){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var de=E({},M.props),le=M.key,fe=M.ref,te=M._owner;if(q!=null){if(q.ref!==void 0&&(fe=q.ref,te=L.current),q.key!==void 0&&(le=""+q.key),M.type&&M.type.defaultProps)var he=M.type.defaultProps;for(ie in q)N.call(q,ie)&&!B.hasOwnProperty(ie)&&(de[ie]=q[ie]===void 0&&he!==void 0?he[ie]:q[ie])}var ie=arguments.length-2;if(ie===1)de.children=ge;else if(1<ie){he=Array(ie);for(var Te=0;Te<ie;Te++)he[Te]=arguments[Te+2];de.children=he}return{$$typeof:e,type:M.type,key:le,ref:fe,props:de,_owner:te}},je.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:a,_context:M},M.Consumer=M},je.createElement=j,je.createFactory=function(M){var q=j.bind(null,M);return q.type=M,q},je.createRef=function(){return{current:null}},je.forwardRef=function(M){return{$$typeof:u,render:M}},je.isValidElement=G,je.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:Z}},je.memo=function(M,q){return{$$typeof:h,type:M,compare:q===void 0?null:q}},je.startTransition=function(M){var q=U.transition;U.transition={};try{M()}finally{U.transition=q}},je.unstable_act=z,je.useCallback=function(M,q){return ne.current.useCallback(M,q)},je.useContext=function(M){return ne.current.useContext(M)},je.useDebugValue=function(){},je.useDeferredValue=function(M){return ne.current.useDeferredValue(M)},je.useEffect=function(M,q){return ne.current.useEffect(M,q)},je.useId=function(){return ne.current.useId()},je.useImperativeHandle=function(M,q,ge){return ne.current.useImperativeHandle(M,q,ge)},je.useInsertionEffect=function(M,q){return ne.current.useInsertionEffect(M,q)},je.useLayoutEffect=function(M,q){return ne.current.useLayoutEffect(M,q)},je.useMemo=function(M,q){return ne.current.useMemo(M,q)},je.useReducer=function(M,q,ge){return ne.current.useReducer(M,q,ge)},je.useRef=function(M){return ne.current.useRef(M)},je.useState=function(M){return ne.current.useState(M)},je.useSyncExternalStore=function(M,q,ge){return ne.current.useSyncExternalStore(M,q,ge)},je.useTransition=function(){return ne.current.useTransition()},je.version="18.3.1",je}var R0;function pm(){return R0||(R0=1,wh.exports=e_()),wh.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 _0;function t_(){if(_0)return Ea;_0=1;var e=pm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(u,f,h){var p,m={},w=null,S=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(S=f.ref);for(p in f)r.call(f,p)&&!a.hasOwnProperty(p)&&(m[p]=f[p]);if(u&&u.defaultProps)for(p in f=u.defaultProps,f)m[p]===void 0&&(m[p]=f[p]);return{$$typeof:t,type:u,key:w,ref:S,props:m,_owner:i.current}}return Ea.Fragment=n,Ea.jsx=l,Ea.jsxs=l,Ea}var A0;function n_(){return A0||(A0=1,xh.exports=t_()),xh.exports}var g=n_(),v=pm();const un=hm(v),Yu=ZR({__proto__:null,default:un},[v]);var Wc={},bh={exports:{}},Zt={},Sh={exports:{}},Ch={};/** 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 N0;function r_(){return N0||(N0=1,(function(e){function t(U,H){var z=U.length;U.push(H);e:for(;0<z;){var M=z-1>>>1,q=U[M];if(0<i(q,H))U[M]=H,U[z]=q,z=M;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var H=U[0],z=U.pop();if(z!==H){U[0]=z;e:for(var M=0,q=U.length,ge=q>>>1;M<ge;){var de=2*(M+1)-1,le=U[de],fe=de+1,te=U[fe];if(0>i(le,z))fe<q&&0>i(te,le)?(U[M]=te,U[fe]=z,M=fe):(U[M]=le,U[de]=z,M=de);else if(fe<q&&0>i(te,z))U[M]=te,U[fe]=z,M=fe;else break e}}return H}function i(U,H){var z=U.sortIndex-H.sortIndex;return z!==0?z:U.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],h=[],p=1,m=null,w=3,S=!1,E=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(U){for(var H=n(h);H!==null;){if(H.callback===null)r(h);else if(H.startTime<=U)r(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(h)}}function _(U){if(b=!1,R(U),!E)if(n(f)!==null)E=!0,Z(N);else{var H=n(h);H!==null&&ne(_,H.startTime-U)}}function N(U,H){E=!1,b&&(b=!1,k(j),j=-1),S=!0;var z=w;try{for(R(H),m=n(f);m!==null&&(!(m.expirationTime>H)||U&&!J());){var M=m.callback;if(typeof M=="function"){m.callback=null,w=m.priorityLevel;var q=M(m.expirationTime<=H);H=e.unstable_now(),typeof q=="function"?m.callback=q:m===n(f)&&r(f),R(H)}else r(f);m=n(f)}if(m!==null)var ge=!0;else{var de=n(h);de!==null&&ne(_,de.startTime-H),ge=!1}return ge}finally{m=null,w=z,S=!1}}var L=!1,B=null,j=-1,K=5,G=-1;function J(){return!(e.unstable_now()-G<K)}function se(){if(B!==null){var U=e.unstable_now();G=U;var H=!0;try{H=B(!0,U)}finally{H?re():(L=!1,B=null)}}else L=!1}var re;if(typeof T=="function")re=function(){T(se)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,be=oe.port2;oe.port1.onmessage=se,re=function(){be.postMessage(null)}}else re=function(){C(se,0)};function Z(U){B=U,L||(L=!0,re())}function ne(U,H){j=C(function(){U(e.unstable_now())},H)}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(U){U.callback=null},e.unstable_continueExecution=function(){E||S||(E=!0,Z(N))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(U){switch(w){case 1:case 2:case 3:var H=3;break;default:H=w}var z=w;w=H;try{return U()}finally{w=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,H){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var z=w;w=U;try{return H()}finally{w=z}},e.unstable_scheduleCallback=function(U,H,z){var M=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?M+z:M):z=
vendor: 4,757 bytes, lines 25-33
25M,U){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=z+q,U={id:p++,callback:H,priorityLevel:U,startTime:z,expirationTime:q,sortIndex:-1},z>M?(U.sortIndex=z,t(h,U),n(f)===null&&U===n(h)&&(b?(k(j),j=-1):b=!0,ne(_,z-M))):(U.sortIndex=q,t(f,U),E||S||(E=!0,Z(N))),U},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(U){var H=w;return function(){var z=w;w=H;try{return U.apply(this,arguments)}finally{w=z}}}})(Ch)),Ch}var M0;function s_(){return M0||(M0=1,Sh.exports=r_()),Sh.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 O0;function o_(){if(O0)return Zt;O0=1;var e=pm(),t=s_();function n(s){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+s,c=1;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(s,o){l(s,o),l(s+"Capture",o)}function l(s,o){for(i[s]=o,s=0;s<o.length;s++)r.add(o[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function w(s){return f.call(m,s)?!0:f.call(p,s)?!1:h.test(s)?m[s]=!0:(p[s]=!0,!1)}function S(s,o,c,d){if(c!==null&&c.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:c!==null?!c.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function E(s,o,c,d){if(o===null||typeof o>"u"||S(s,o,c,d))return!0;if(d)return!1;if(c!==null)switch(c.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(s,o,c,d,y,x,P){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=s,this.type=o,this.sanitizeURL=x,this.removeEmptyString=P}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){C[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var o=s[0];C[o]=new b(o,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){C[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){C[s]=new b(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){C[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){C[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){C[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){C[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){C[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function T(s){return s[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
33-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(s){var o=s.replace(k,T);C[o]=new b(o,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var o=s.replace(k,T);C[o]=new b(o,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var o=s.replace(k,T);C[o]=new b(o,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){C[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),C.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){C[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function R(s,o,c,d){var y=C.hasOwnProperty(o)?C[o]:null;(y!==null?y.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(E(o,c,y,d)&&(c=null),d||y===null?w(o)&&(c===null?s.removeAttribute(o):s.setAttribute(o,""+c)):y.mustUseProperty?s[y.propertyName]=c===null?y.type===3?!1:"":c:(o=y.attributeName,d=y.attributeNamespace,c===null?s.removeAttribute(o):(y=y.type,c=y===3||y===4&&c===!0?"":""+c,d?s.setAttributeNS(d,o,c):s.setAttribute(o,c))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),J=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),U=Symbol.iterator;function H(s){return s===null||typeof s!="object"?null:(s=U&&s[U]||s["@@iterator"],typeof s=="function"?s:null)}var z=Object.assign,M;function q(s){if(M===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);M=o&&o[1]||""}return` 34`+M+s}var ge=!1;function de(s,o){if(!s||ge)return"";ge=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch($){var d=$}Reflect.construct(s,[],o)}else{try{o.call()}catch($){d=$}s.call(o.prototype)}else{try{throw Error()}catch($){d=$}s()}}catch($){if($&&d&&typeof $.stack=="string"){for(var y=$.stack.split(` 35`),x=d.stack.split(` 36`),P=y.length-1,A=x.length-1;1<=P&&0<=A&&y[P]!==x[A];)A--;for(;1<=P&&0<=A;P--,A--)if(y[P]!==x[A]){if(P!==1||A!==1)do if(P--,A--,0>A||y[P]!==x[A]){var O=` 37`+y[P].replace(" at new "," at ");return s.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",s.displayName)),O}while(1<=P&&0<=A);break}}}finally{ge=!1,Error.prepareStackTrace=c}return(s=s?s.displayName||s.name:"")?q(s):""}function le(s){switch(s.tag){case 5:return q(s.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return s=de(s.type,!1),s;case 11:return s=de(s.type.render,!1),s;case 1:return s=de(s.type,!0),s;default:return""}}function fe(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case B:return"Fragment";case L:return"Portal";case K:return"Profiler";case j:return"StrictMode";case re:return"Suspense";case oe:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case J:return(s.displayName||"Context")+".Consumer";case G:return(s._context.displayName||"Context")+".Provider";case se:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case be:return o=s.displayName||null,o!==null?o:fe(s.type)||"Memo";case Z:o=s._payload,s=s._init;try{return fe(s(o))}catch{}}return null}function te(s){var o=s.type;switch(s.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=o.render,s=s.displayName||s.name||"",o.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(o);case 8:return o===j?"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 o=="function")return o.displayName||o.name||null;
vendor: 12,563 bytes, line 37
37if(typeof o=="string")return o}return null}function he(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ie(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Te(s){var o=ie(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),d=""+s[o];if(!s.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,x=c.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return y.call(this)},set:function(P){d=""+P,x.call(this,P)}}),Object.defineProperty(s,o,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(P){d=""+P},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function Ne(s){s._valueTracker||(s._valueTracker=Te(s))}function Me(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var c=o.getValue(),d="";return s&&(d=ie(s)?s.checked?"true":"false":s.value),s=d,s!==c?(o.setValue(s),!0):!1}function Je(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function ye(s,o){var c=o.checked;return z({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked})}function Re(s,o){var c=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;c=he(o.value!=null?o.value:c),s._wrapperState={initialChecked:d,initialValue:c,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ze(s,o){o=o.checked,o!=null&&R(s,"checked",o,!1)}function it(s,o){Ze(s,o);var c=he(o.value),d=o.type;if(c!=null)d==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+c):s.value!==""+c&&(s.value=""+c);else if(d==="submit"||d==="reset"){s.removeAttribute("value");return}o.hasOwnProperty("value")?Be(s,o.type,c):o.hasOwnProperty("defaultValue")&&Be(s,o.type,he(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(s.defaultChecked=!!o.defaultChecked)}function Tt(s,o,c){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+s._wrapperState.initialValue,c||o===s.value||(s.value=o),s.defaultValue=o}c=s.name,c!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,c!==""&&(s.name=c)}function Be(s,o,c){(o!=="number"||Je(s.ownerDocument)!==s)&&(c==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+c&&(s.defaultValue=""+c))}var vt=Array.isArray;function Nn(s,o,c,d){if(s=s.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<s.length;c++)y=o.hasOwnProperty("$"+s[c].value),s[c].selected!==y&&(s[c].selected=y),y&&d&&(s[c].defaultSelected=!0)}else{for(c=""+he(c),o=null,y=0;y<s.length;y++){if(s[y].value===c){s[y].selected=!0,d&&(s[y].defaultSelected=!0);return}o!==null||s[y].disabled||(o=s[y])}o!==null&&(o.selected=!0)}}function $t(s,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return z({},o,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Xn(s,o){var c=o.value;if(c==null){if(c=o.children,o=o.defaultValue,c!=null){if(o!=null)throw Error(n(92));if(vt(c)){if(1<c.length)throw Error(n(93));c=c[0]}o=c}o==null&&(o=""),c=o}s._wrapperState={initialValue:he(c)}}function mn(s,o){var c=he(o.value),d=he(o.defaultValue);c!=null&&(c=""+c,c!==s.value&&(s.value=c),o.defaultValue==null&&s.defaultValue!==c&&(s.defaultValue=c)),d!=null&&(s.defaultValue=""+d)}function Mn(s){var o=s.textContent;o===s._wrapperState.initialValue&&o!==""&&o!==null&&(s.value=o)}function On(s){switch(s){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 jn(s,o){return s==null||s==="http://www.w3.org/1999/xhtml"?On(o):s==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Ms,zi=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,c,d,y){MSApp.execUnsafeLocalFunction(function(){return s(o,c,d,y)})}:s})(function(s,o){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=o;else{for(Ms=Ms||document.createElement("div"),Ms.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Ms.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;o.firstChild;)s.appendChild(o.firstChild)}});function Os(s,o){if(o){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=o;return}}s.textContent=o}var js={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},Td=["Webkit","ms","Moz","O"];Object.keys(js).forEach(function(s){Td.forEach(function(o){o=o+s.charAt(0).toUpperCase()+s.substring(1),js[o]=js[s]})});function Jn(s,o,c){return o==null||typeof o=="boolean"||o===""?"":c||typeof o!="number"||o===0||js.hasOwnProperty(s)&&js[s]?(""+o).trim():o+"px"}function To(s,o){s=s.style;for(var c in o)if(o.hasOwnProperty(c)){var d=c.indexOf("--")===0,y=Jn(c,o[c],d);c==="float"&&(c="cssFloat"),d?s.setProperty(c,y):s[c]=y}}var Rd=z({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 _d(s,o){if(o){if(Rd[s]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Ad(s,o){if(s.indexOf("-")===-1)return typeof o.is=="string";switch(s){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 Nd=null;function Md(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Od=null,Ro=null,_o=null;function $g(s){if(s=ca(s)){if(typeof Od!="function")throw Error(n(280));var o=s.stateNode;o&&(o=sc(o),Od(s.stateNode,s.type,o))}}function Wg(s){Ro?_o?_o.push(s):_o=[s]:Ro=s}function Hg(){if(Ro){var s=Ro,o=_o;if(_o=Ro=null,$g(s),o)for(s=0;s<o.length;s++)$g(o[s])}}function qg(s,o){return s(o)}function Kg(){}var jd=!1;function Qg(s,o,c){if(jd)return s(o,c);jd=!0;try{return qg(s,o,c)}finally{jd=!1,(Ro!==null||_o!==null)&&(Kg(),Hg())}}function Ui(s,o){var c=s.stateNode;if(c===null)return null;var d=sc(c);if(d===null)return null;c=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(s=s.type,d=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!d;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(n(231,o,typeof c));return c}var Dd=!1;if(u)try{var $i={};Object.defineProperty($i,"passive",{get:function(){Dd=!0}}),window.addEventListener("test",$i,$i),window.removeEventListener("test",$i,$i)}catch{Dd=!1}function oT(s,o,c,d,y,x,P,A,O){var $=Array.prototype.slice.call(arguments,3);try{o.apply(c,$)}catch(Y){this.onError(Y)}}var Wi=!1,Il=null,Ll=!1,Id=null,iT={onError:function(s){Wi=!0,Il=s}};function aT(s,o,c,d,y,x,P,A,O){Wi=!1,Il=null,oT.apply(iT,arguments)}function lT(s,o,c,d,y,x,P,A,O){if(aT.apply(this,arguments),Wi){if(Wi){var $=Il;Wi=!1,Il=null}else throw Error(n(198));Ll||(Ll=!0,Id=$)}}function Ds(s){var o=s,c=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(c=o.return),s=o.return;while(s)}return o.tag===3?c:null}function Yg(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function Gg(s){if(Ds(s)!==s)throw Error(n(188))}function cT(s){var o=s.alternate;if(!o){if(o=Ds(s),o===null)throw Error(n(188));return o!==s?null:s}for(var c=s,d=o;;){var y=c.return;if(y===null)break;var x=y.alternate;if(x===null){if(d=y.return,d!==null){c=d;continue}break}if(y.child===x.child){for(x=y.child;x;){if(x===c)return Gg(y),s;if(x===d)return Gg(y),o;x=x.sibling}throw Error(n(188))}if(c.return!==d.return)c=y,d=x;else{for(var P=!1,A=y.child;A;){if(A===c){P=!0,c=y,d=x;break}if(A===d){P=!0,d=y,c=x;break}A=A.sibling}if(!P){for(A=x.child;A;){if(A===c){P=!0,c=x,d=y;break}if(A===d){P=!0,d=x,c=y;break}A=A.sibling}if(!P)throw Error(n(189))}}if(c.alternate!==d)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?s:o}function Xg(s){return s=cT(s),s!==null?Jg(s):null}function Jg(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var o=Jg(s);if(o!==null)return o;s=s.sibling}return null}var Zg=t.unstable_scheduleCallback,ey=t.unstable_cancelCallback,uT=t.unstable_shouldYield,dT=t.unstable_requestPaint,ut=t.unstable_now,fT=t.unstable_getCurrentPriorityLevel,Ld=t.unstable_ImmediatePriority,ty=t.unstable_UserBlockingPriority,Fl=t.unstable_NormalPriority,hT=t.unstable_LowPriority,ny=t.unstable_IdlePriority,Bl=null,Zn=null;function pT(s){if(Zn&&typeof Zn.onCommitFiberRoot=="function")try{Zn.onCommitFiberRoot(Bl,s,void 0,(s.current.flags&128)===128)}catch{}}var Dn=Math.clz32?Math.clz32:yT,mT=Math.log,gT=Math.LN2;function yT(s){return s>>>=0,s===0?32:31-(mT(s)/gT|0)|0}var Vl=64,zl=4194304;function Hi(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Ul(s,o){var c=s.pendingLanes;if(c===0)return 0;var d=0,y=s.suspendedLanes,x=s.pingedLanes,P=c&268435455;if(P!==0){var A=P&~y;A!==0?d=Hi(A):(x&=P,x!==0&&(d=Hi(x)))}else P=c&~y,P!==0?d=Hi(P):x!==0&&(d=Hi(x));if(d===0)return 0;if(o!==0&&o!==d&&(o&y)===0&&(y=d&-d,x=o&-o,y>=x||y===16&&(x&4194240)!==0))return o;if((d&4)!==0&&(d|=c&16),o=s.entangledLanes,o!==0)for(s=s.entanglements,o&=d;0<o;)c=31-Dn(o),y=1<<c,d|=s[c],o&=~y;return d}function vT(s,o){switch(s){case 1:case 2:case 4:return o+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 o+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 xT(s,o){for(var c=s.suspendedLanes,d=s.pingedLanes,y=s.expirationTimes,x=s.pendingLanes;0<x;){var P=31-Dn(x),A=1<<P,O=y[P];O===-1?((A&c)===0||(A&d)!==0)&&(y[P]=vT(A,o)):O<=o&&(s.expiredLanes|=A),x&=~A}}function Fd(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function ry(){var s=Vl;return Vl<<=1,(Vl&4194240)===0&&(Vl=64),s}function Bd(s){for(var o=[],c=0;31>c;c++)o.push(s);return o}function qi(s,o,c){s.pendingLanes|=o,o!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,o=31-Dn(o),s[o]=c}function wT(s,o){var c=s.pendingLanes&~o;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=o,s.mutableReadLanes&=o,s.entangledLanes&=o,o=s.entanglements;var d=s.eventTimes;for(s=s.expirationTimes;0<c;){var y=31-Dn(c),x=1<<y;o[y]=0,d[y]=-1,s[y]=-1,c&=~x}}function Vd(s,o){var c=s.entangledLanes|=o;for(s=s.entanglements;c;){var d=31-Dn(c),y=1<<d;y&o|s[d]&o&&(s[d]|=o),c&=~y}}var $e=0;function sy(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var oy,zd,iy,ay,ly,Ud=!1,$l=[],Br=null,Vr=null,zr=null,Ki=new Map,Qi=new Map,Ur=[],bT="mou
37sedown 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 cy(s,o){switch(s){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":Ki.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qi.delete(o.pointerId)}}function Yi(s,o,c,d,y,x){return s===null||s.nativeEvent!==x?(s={blockedOn:o,domEventName:c,eventSystemFlags:d,nativeEvent:x,targetContainers:[y]},o!==null&&(o=ca(o),o!==null&&zd(o)),s):(s.eventSystemFlags|=d,o=s.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),s)}function ST(s,o,c,d,y){switch(o){case"focusin":return Br=Yi(Br,s,o,c,d,y),!0;case"dragenter":return Vr=Yi(Vr,s,o,c,d,y),!0;case"mouseover":return zr=Yi(zr,s,o,c,d,y),!0;case"pointerover":var x=y.pointerId;return Ki.set(x,Yi(Ki.get(x)||null,s,o,c,d,y)),!0;case"gotpointercapture":return x=y.pointerId,Qi.set(x,Yi(Qi.get(x)||null,s,o,c,d,y)),!0}return!1}function uy(s){var o=Is(s.target);if(o!==null){var c=Ds(o);if(c!==null){if(o=c.tag,o===13){if(o=Yg(c),o!==null){s.blockedOn=o,ly(s.priority,function(){iy(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Wl(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var c=Wd(s.domEventName,s.eventSystemFlags,o[0],s.nativeEvent);if(c===null){c=s.nativeEvent;var d=new c.constructor(c.type,c);Nd=d,c.target.dispatchEvent(d),Nd=null}else return o=ca(c),o!==null&&zd(o),s.blockedOn=c,!1;o.shift()}return!0}function dy(s,o,c){Wl(s)&&c.delete(o)}function CT(){Ud=!1,Br!==null&&Wl(Br)&&(Br=null),Vr!==null&&Wl(Vr)&&(Vr=null),zr!==null&&Wl(zr)&&(zr=null),Ki.forEach(dy),Qi.forEach(dy)}function Gi(s,o){s.blockedOn===o&&(s.blockedOn=null,Ud||(Ud=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,CT)))}function Xi(s){function o(y){return Gi(y,s)}if(0<$l.length){Gi($l[0],s);for(var c=1;c<$l.length;c++){var d=$l[c];d.blockedOn===s&&(d.blockedOn=null)}}for(Br!==null&&Gi(Br,s),Vr!==null&&Gi(Vr,s),zr!==null&&Gi(zr,s),Ki.forEach(o),Qi.forEach(o),c=0;c<Ur.length;c++)d=Ur[c],d.blockedOn===s&&(d.blockedOn=null);for(;0<Ur.length&&(c=Ur[0],c.blockedOn===null);)uy(c),c.blockedOn===null&&Ur.shift()}var Ao=_.ReactCurrentBatchConfig,Hl=!0;function ET(s,o,c,d){var y=$e,x=Ao.transition;Ao.transition=null;try{$e=1,$d(s,o,c,d)}finally{$e=y,Ao.transition=x}}function PT(s,o,c,d){var y=$e,x=Ao.transition;Ao.transition=null;try{$e=4,$d(s,o,c,d)}finally{$e=y,Ao.transition=x}}function $d(s,o,c,d){if(Hl){var y=Wd(s,o,c,d);if(y===null)lf(s,o,d,ql,c),cy(s,d);else if(ST(y,s,o,c,d))d.stopPropagation();else if(cy(s,d),o&4&&-1<bT.indexOf(s)){for(;y!==null;){var x=ca(y);if(x!==null&&oy(x),x=Wd(s,o,c,d),x===null&&lf(s,o,d,ql,c),x===y)break;y=x}y!==null&&d.stopPropagation()}else lf(s,o,d,null,c)}}var ql=null;function Wd(s,o,c,d){if(ql=null,s=Md(d),s=Is(s),s!==null)if(o=Ds(s),o===null)s=null;else if(c=o.tag,c===13){if(s=Yg(o),s!==null)return s;s=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null);return ql=s,null}function fy(s){switch(s){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(fT()){case Ld:return 1;case ty:return 4;case Fl:case hT:return 16;case ny:return 536870912;default:return 16}default:return 16}}var $r=null,Hd=null,Kl=null;function hy(){if(Kl)return Kl;var s,o=Hd,c=o.length,d,y="value"in $r?$r.value:$r.textContent,x=y.length;for(s=0;s<c&&o[s]===y[s];s++);var P=c-s;for(d=1;d<=P&&o[c-d]===y[x-d];d++);return Kl=y.slice(s,1<d?1-d:void 0)}function Ql(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function Yl(){return!0}function py(){return!1}function on(s){function o(c,d,y,x,P){this._reactName=c,this._targetInst=y,this.type=d,this.nativeEvent=x,this.target=P,this.currentTarget=null;for(var A in s)s.hasOwnProperty(A)&&(c=s[A],this[A]=c?c(x):x[A]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Yl:py,this.isPropagationStopped=py,this}return z(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Yl)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Yl)},persist:function(){},isPersistent:Yl}),o}var No={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qd=on(No),Ji=z({},No,{view:0,detail:0}),kT=on(Ji),Kd,Qd,Zi,Gl=z({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gd,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Zi&&(Zi&&s.type==="mousemove"?(Kd=s.screenX-Zi.screenX,Qd=s.screenY-Zi.screenY):Qd=Kd=0,Zi=s),Kd)},movementY:function(s){return"movementY"in s?s.movementY:Qd}}),my=on(Gl),TT=z({},Gl,{dataTransfer:0}),RT=on(TT),_T=z({},Ji,{relatedTarget:0}),Yd=on(_T),AT=z({},No,{animationName:0,elapsedTime:0,pseudoElement:0}),NT=on(AT),MT=z({},No,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),OT=on(MT),jT=z({},No,{data:0}),gy=on(jT),DT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IT={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"},LT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FT(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=LT[s])?!!o[s]:!1}function Gd(){return FT}var BT=z({},Ji,{key:function(s){if(s.key){var o=DT[s.key]||s.key;if(o!=="Unidentified")return o}
vendor: 17,513 bytes, lines 37-38
37return s.type==="keypress"?(s=Ql(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?IT[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gd,charCode:function(s){return s.type==="keypress"?Ql(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Ql(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),VT=on(BT),zT=z({},Gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yy=on(zT),UT=z({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gd}),$T=on(UT),WT=z({},No,{propertyName:0,elapsedTime:0,pseudoElement:0}),HT=on(WT),qT=z({},Gl,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),KT=on(qT),QT=[9,13,27,32],Xd=u&&"CompositionEvent"in window,ea=null;u&&"documentMode"in document&&(ea=document.documentMode);var YT=u&&"TextEvent"in window&&!ea,vy=u&&(!Xd||ea&&8<ea&&11>=ea),xy=" ",wy=!1;function by(s,o){switch(s){case"keyup":return QT.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Mo=!1;function GT(s,o){switch(s){case"compositionend":return Sy(o);case"keypress":return o.which!==32?null:(wy=!0,xy);case"textInput":return s=o.data,s===xy&&wy?null:s;default:return null}}function XT(s,o){if(Mo)return s==="compositionend"||!Xd&&by(s,o)?(s=hy(),Kl=Hd=$r=null,Mo=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return vy&&o.locale!=="ko"?null:o.data;default:return null}}var JT={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 Cy(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!JT[s.type]:o==="textarea"}function Ey(s,o,c,d){Wg(d),o=tc(o,"onChange"),0<o.length&&(c=new qd("onChange","change",null,c,d),s.push({event:c,listeners:o}))}var ta=null,na=null;function ZT(s){Uy(s,0)}function Xl(s){var o=Lo(s);if(Me(o))return s}function eR(s,o){if(s==="change")return o}var Py=!1;if(u){var Jd;if(u){var Zd="oninput"in document;if(!Zd){var ky=document.createElement("div");ky.setAttribute("oninput","return;"),Zd=typeof ky.oninput=="function"}Jd=Zd}else Jd=!1;Py=Jd&&(!document.documentMode||9<document.documentMode)}function Ty(){ta&&(ta.detachEvent("onpropertychange",Ry),na=ta=null)}function Ry(s){if(s.propertyName==="value"&&Xl(na)){var o=[];Ey(o,na,s,Md(s)),Qg(ZT,o)}}function tR(s,o,c){s==="focusin"?(Ty(),ta=o,na=c,ta.attachEvent("onpropertychange",Ry)):s==="focusout"&&Ty()}function nR(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Xl(na)}function rR(s,o){if(s==="click")return Xl(o)}function sR(s,o){if(s==="input"||s==="change")return Xl(o)}function oR(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var In=typeof Object.is=="function"?Object.is:oR;function ra(s,o){if(In(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var c=Object.keys(s),d=Object.keys(o);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var y=c[d];if(!f.call(o,y)||!In(s[y],o[y]))return!1}return!0}function _y(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Ay(s,o){var c=_y(s);s=0;for(var d;c;){if(c.nodeType===3){if(d=s+c.textContent.length,s<=o&&d>=o)return{node:c,offset:o-s};s=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=_y(c)}}function Ny(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?Ny(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function My(){for(var s=window,o=Je();o instanceof s.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)s=o.contentWindow;else break;o=Je(s.document)}return o}function ef(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}function iR(s){var o=My(),c=s.focusedElem,d=s.selectionRange;if(o!==c&&c&&c.ownerDocument&&Ny(c.ownerDocument.documentElement,c)){if(d!==null&&ef(c)){if(o=d.start,s=d.end,s===void 0&&(s=o),"selectionStart"in c)c.selectionStart=o,c.selectionEnd=Math.min(s,c.value.length);else if(s=(o=c.ownerDocument||document)&&o.defaultView||window,s.getSelection){s=s.getSelection();var y=c.textContent.length,x=Math.min(d.start,y);d=d.end===void 0?x:Math.min(d.end,y),!s.extend&&x>d&&(y=d,d=x,x=y),y=Ay(c,x);var P=Ay(c,d);y&&P&&(s.rangeCount!==1||s.anchorNode!==y.node||s.anchorOffset!==y.offset||s.focusNode!==P.node||s.focusOffset!==P.offset)&&(o=o.createRange(),o.setStart(y.node,y.offset),s.removeAllRanges(),x>d?(s.addRange(o),s.extend(P.node,P.offset)):(o.setEnd(P.node,P.offset),s.addRange(o)))}}for(o=[],s=c;s=s.parentNode;)s.nodeType===1&&o.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<o.length;c++)s=o[c],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var aR=u&&"documentMode"in document&&11>=document.documentMode,Oo=null,tf=null,sa=null,nf=!1;function Oy(s,o,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;nf||Oo==null||Oo!==Je(d)||(d=Oo,"selectionStart"in d&&ef(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),sa&&ra(sa,d)||(sa=d,d=tc(tf,"onSelect"),0<d.length&&(o=new qd("onSelect","select",null,o,c),s.push({event:o,listeners:d}),o.target=Oo)))}function Jl(s,o){var c={};return c[s.toLowerCase()]=o.toLowerCase(),c["Webkit"+s]="webkit"+o,c["Moz"+s]="moz"+o,c}var jo={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionend:Jl("Transition","TransitionEnd")},rf={},jy={};u&&(jy=document.createElement("div").style,"AnimationEvent"in window||(delete jo.animationend.animation,delete jo.animationiteration.animation,delete jo.animationstart.animation),"TransitionEvent"in window||delete jo.transitionend.transition);function Zl(s){if(rf[s])return rf[s];if(!jo[s])return s;var o=jo[s],c;for(c in o)if(o.hasOwnProperty(c)&&c in jy)return rf[s]=o[c];return s}var Dy=Zl("animationend"),Iy=Zl("animationiteration"),Ly=Zl("animationstart"),Fy=Zl("transitionend"),By=new Map,Vy="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 Wr(s,o){By.set(s,o),a(o,[s])}for(var sf=0;sf<Vy.length;sf++){var of=Vy[sf],lR=of.toLowerCase(),cR=of[0].toUpperCase()+of.slice(1);Wr(lR,"on"+cR)}Wr(Dy,"onAnimationEnd"),Wr(Iy,"onAnimationIteration"),Wr(Ly,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Fy,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="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(" "),uR=new Set("cancel close invalid load scroll toggle".split(" ").concat(oa));function zy(s,o,c){var d=s.type||"unknown-event";s.currentTarget=c,lT(d,o,void 0,s),s.currentTarget=null}function Uy(s,o){o=(o&4)!==0;for(var c=0;c<s.length;c++){var d=s[c],y=d.event;d=d.listeners;e:{var x=void 0;if(o)for(var P=d.length-1;0<=P;P--){var A=d[P],O=A.instance,$=A.currentTarget;if(A=A.listener,O!==x&&y.isPropagationStopped())break e;zy(y,A,$),x=O}else for(P=0;P<d.length;P++){if(A=d[P],O=A.instance,$=A.currentTarget,A=A.listener,O!==x&&y.isPropagationStopped())break e;zy(y,A,$),x=O}}}if(Ll)throw s=Id,Ll=!1,Id=null,s}function Ye(s,o){var c=o[pf];c===void 0&&(c=o[pf]=new Set);var d=s+"__bubble";c.has(d)||($y(o,s,2,!1),c.add(d))}function af(s,o,c){var d=0;o&&(d|=4),$y(c,s,d,o)}var ec="_reactListening"+Math.random().toString(36).slice(2);function ia(s){if(!s[ec]){s[ec]=!0,r.forEach(function(c){c!=="selectionchange"&&(uR.has(c)||af(c,!1,s),af(c,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[ec]||(o[ec]=!0,af("selectionchange",!1,o))}}function $y(s,o,c,d){switch(fy(o)){case 1:var y=ET;break;case 4:y=PT;break;default:y=$d}c=y.bind(null,o,c,s),y=void 0,!Dd||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),d?y!==void 0?s.addEventListener(o,c,{capture:!0,passive:y}):s.addEventListener(o,c,!0):y!==void 0?s.addEventListener(o,c,{passive:y}):s.addEventListener(o,c,!1)}function lf(s,o,c,d,y){var x=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var P=d.tag;if(P===3||P===4){var A=d.stateNode.containerInfo;if(A===y||A.nodeType===8&&A.parentNode===y)break;if(P===4)for(P=d.return;P!==null;){var O=P.tag;if((O===3||O===4)&&(O=P.stateNode.containerInfo,O===y||O.nodeType===8&&O.parentNode===y))return;P=P.return}for(;A!==null;){if(P=Is(A),P===null)return;if(O=P.tag,O===5||O===6){d=x=P;continue e}A=A.parentNode}}d=d.return}Qg(function(){var $=x,Y=Md(c),X=[];e:{var Q=By.get(s);if(Q!==void 0){var ae=qd,pe=s;switch(s){case"keypress":if(Ql(c)===0)break e;case"keydown":case"keyup":ae=VT;break;case"focusin":pe="focus",ae=Yd;break;case"focusout":pe="blur",ae=Yd;break;case"beforeblur":case"afterblur":ae=Yd;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=my;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=RT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=$T;break;case Dy:case Iy:case Ly:ae=NT;break;case Fy:ae=HT;break;case"scroll":ae=kT;break;case"wheel":ae=KT;break;case"copy":case"cut":case"paste":ae=OT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=yy}var xe=(o&4)!==0,dt=!xe&&s==="scroll",F=xe?Q!==null?Q+"Capture":null:Q;xe=[];for(var I=$,V;I!==null;){V=I;var ee=V.stateNode;if(V.tag===5&&ee!==null&&(V=ee,F!==null&&(ee=Ui(I,F),ee!=null&&xe.push(aa(I,ee,V)))),dt)break;I=I.return}0<xe.length&&(Q=new ae(Q,pe,null,c,Y),X.push({event:Q,listeners:xe}))}}if((o&7)===0){e:{if(Q=s==="mouseover"||s==="pointerover",ae=s==="mouseout"||s==="pointerout",Q&&c!==Nd&&(pe=c.relatedTarget||c.fromElement)&&(Is(pe)||pe[wr]))break e;if((ae||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,ae?(pe=c.relatedTarget||c.toElement,ae=$,pe=pe?Is(pe):null,pe!==null&&(dt=Ds(pe),pe!==dt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(ae=null,pe=$),ae!==pe)){if(xe=my,ee="onMouseLeave",F="onMouseEnter",I="mouse",(s==="pointerout"||s==="pointerover")&&(xe=yy,ee="onPointerLeave",F="onPointerEnter",I="pointer"),dt=ae==null?Q:Lo(ae),V=pe==null?Q:Lo(pe),Q=new xe(ee,I+"leave",ae,c,Y),Q.target=dt,Q.relatedTarget=V,ee=null,Is(Y)===$&&(xe=new xe(F,I+"enter",pe,c,Y),xe.target=V,xe.relatedTarget=dt,ee=xe),dt=ee,ae&&pe)t:{for(xe=ae,F=pe,I=0,V=xe;V;V=Do(V))I++;for(V=0,ee=F;ee;ee=Do(ee))V++;for(;0<I-V;)xe=Do(xe),I--;for(;0<V-I;)F=Do(F),V--;for(;I--;){if(xe===F||F!==null&&xe===F.alternate)break t;xe=Do(xe),F=Do(F)}xe=null}else xe=null;ae!==null&&Wy(X,Q,ae,xe,!1),pe!==null&&dt!==null&&Wy(X,dt,pe,xe,!0)}}e:{if(Q=$?Lo($):window,ae=Q.nodeName&&Q.nodeName.toLowerCase(),ae==="select"||ae==="input"&&Q.type==="file")var we=eR;else if(Cy(Q))if(Py)we=sR;else{we=nR;var Se=tR}else(ae=Q.nodeName)&&ae.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(we=rR);if(we&&(we=we(s,$))){Ey(X,we,c,Y);break e}Se&&Se(s,Q,$),s==="focusout"&&(Se=Q._wrapperState)&&Se.controlled&&Q.type==="number"&&Be(Q,"number",Q.value)}switch(Se=$?Lo($):window,s){case"focusin":(Cy(Se)||Se.contentEditable==="true")&&(Oo=Se,tf=$,sa=null);break;case"focusout":sa=tf=Oo=null;break;case"mousedown":nf=!0;break;case"contextmenu":case"mouseup":case"dragend":nf=!1,Oy(X,c,Y);break;case"selectionchange":if(aR)break;case"keydown":case"keyup":Oy(X,c,Y)}var Ce;if(Xd)e:{switch(s){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Mo?by(s,c)&&(Ae="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(Ae="onCompositionStart");Ae&&(vy&&c.locale!=="ko"&&(Mo||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Mo&&(Ce=hy()):($r=Y,Hd="value"in $r?$r.value:$r.textContent,Mo=!0)),Se=tc($,Ae),0<Se.length&&(Ae=new gy(Ae,s,null,c,Y),X.push({event:Ae,listeners:Se}),Ce?Ae.data=Ce:(Ce=Sy(c),Ce!==null&&(Ae.data=Ce)))),(Ce=YT?GT(s,c):XT(s,c))&&($=tc($,"onBeforeInput"),0<$.length&&(Y=new gy("onBeforeInput","beforeinput",null,c,Y),X.push({event:Y,listeners:$}),Y.data=Ce))}Uy(X,o)})}function aa(s,o,c){return{instance:s,listener:o,currentTarget:c}}function tc(s,o){for(var c=o+"Capture",d=[];s!==null;){var y=s,x=y.stateNode;y.tag===5&&x!==null&&(y=x,x=Ui(s,c),x!=null&&d.unshift(aa(s,x,y)),x=Ui(s,o),x!=null&&d.push(aa(s,x,y))),s=s.return}return d}function Do(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Wy(s,o,c,d,y){for(var x=o._reactName,P=[];c!==null&&c!==d;){var A=c,O=A.alternate,$=A.stateNode;if(O!==null&&O===d)break;A.tag===5&&$!==null&&(A=$,y?(O=Ui(c,x),O!=null&&P.unshift(aa(c,O,A))):y||(O=Ui(c,x),O!=null&&P.push(aa(c,O,A)))),c=c.return}P.length!==0&&s.push({event:o,listeners:P})}var dR=/\r\n?/g,fR=/\u0000|\uFFFD/g;function Hy(s){return(typeof s=="string"?s:""+s).replace(dR,` 38`).replace(fR,"")}function nc(s,o,c){if(o=Hy(o),Hy(s)!==o&&c)throw Error(n(425))}function rc(){}var cf=null,uf=null;function df(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var ff=typeof setTimeout=="function"?setTimeout:void 0,hR=typeof clearTimeout=="function"?clearTimeout:void 0,qy=typeof Promise=="function"?Promise:void 0,pR=typeof queueMicrotask=="function"?queueMicrotask:typeof qy<"u"?function(s){return qy.resolve(null).then(s).catch(mR)}:ff;function mR(s){setTimeout(function(){throw s})}function hf(s,o){var c=o,d=0;do{var y=c.nextSibling;if(s.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"){if(d===0){s.removeChild(y),Xi(o);return}d--}else c!=="$"&&c!=="$?"&&c!=="$!"||d++;c=y}while(c);Xi(o)}function Hr(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return s}function Ky(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return s;o--}else c==="/$"&&o++}s=s.previousSibling}return null}var Io=Math.random().toString(36).slice(2),er="__reactFiber$"+Io,la="__reactProps$"+Io,wr="__reactContainer$"+Io,pf="__reactEvents$"+Io,gR="__reactListeners$"+Io,yR="__reactHandles$"+Io;function Is(s){var o=s[er];if(o)return o;for(var c=s.parentNode;c;){if(o=c[wr]||c[er]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(s=Ky(s);s!==null;){if(c=s[er])return c;s=Ky(s)}return o}s=c,c=s.parentNode}return null}function ca(s){return s=s[er]||s[wr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Lo(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function sc(s){return s[la]||null}var mf=[],Fo=-1;function qr(s){return{current:s}}function Ge(s){0>Fo||(s.current=mf[Fo],mf[Fo]=null,Fo--)}function Qe(s,o){Fo++,mf[Fo]=s.current,s.current=o}var Kr={},jt=qr(Kr),Qt=qr(!1),Ls=Kr;function Bo(s,o){var c=s.type.contextTypes;if(!c)return Kr;var d=s.stateNode;
vendor: 4,306 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var y={},x;for(x in c)y[x]=o[x];return d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=o,s.__reactInternalMemoizedMaskedChildContext=y),y}function Yt(s){return s=s.childContextTypes,s!=null}function oc(){Ge(Qt),Ge(jt)}function Qy(s,o,c){if(jt.current!==Kr)throw Error(n(168));Qe(jt,o),Qe(Qt,c)}function Yy(s,o,c){var d=s.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return c;d=d.getChildContext();for(var y in d)if(!(y in o))throw Error(n(108,te(s)||"Unknown",y));return z({},c,d)}function ic(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Kr,Ls=jt.current,Qe(jt,s),Qe(Qt,Qt.current),!0}function Gy(s,o,c){var d=s.stateNode;if(!d)throw Error(n(169));c?(s=Yy(s,o,Ls),d.__reactInternalMemoizedMergedChildContext=s,Ge(Qt),Ge(jt),Qe(jt,s)):Ge(Qt),Qe(Qt,c)}var br=null,ac=!1,gf=!1;function Xy(s){br===null?br=[s]:br.push(s)}function vR(s){ac=!0,Xy(s)}function Qr(){if(!gf&&br!==null){gf=!0;var s=0,o=$e;try{var c=br;for($e=1;s<c.length;s++){var d=c[s];do d=d(!0);while(d!==null)}br=null,ac=!1}catch(y){throw br!==null&&(br=br.slice(s+1)),Zg(Ld,Qr),y}finally{$e=o,gf=!1}}return null}var Vo=[],zo=0,lc=null,cc=0,gn=[],yn=0,Fs=null,Sr=1,Cr="";function Bs(s,o){Vo[zo++]=cc,Vo[zo++]=lc,lc=s,cc=o}function Jy(s,o,c){gn[yn++]=Sr,gn[yn++]=Cr,gn[yn++]=Fs,Fs=s;var d=Sr;s=Cr;var y=32-Dn(d)-1;d&=~(1<<y),c+=1;var x=32-Dn(o)+y;if(30<x){var P=y-y%5;x=(d&(1<<P)-1).toString(32),d>>=P,y-=P,Sr=1<<32-Dn(o)+y|c<<y|d,Cr=x+s}else Sr=1<<x|c<<y|d,Cr=s}function yf(s){s.return!==null&&(Bs(s,1),Jy(s,1,0))}function vf(s){for(;s===lc;)lc=Vo[--zo],Vo[zo]=null,cc=Vo[--zo],Vo[zo]=null;for(;s===Fs;)Fs=gn[--yn],gn[yn]=null,Cr=gn[--yn],gn[yn]=null,Sr=gn[--yn],gn[yn]=null}var an=null,ln=null,et=!1,Ln=null;function Zy(s,o){var c=bn(5,null,null,0);c.elementType="DELETED",c.stateNode=o,c.return=s,o=s.deletions,o===null?(s.deletions=[c],s.flags|=16):o.push(c)}function ev(s,o){switch(s.tag){case 5:var c=s.type;return o=o.nodeType!==1||c.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(s.stateNode=o,an=s,ln=Hr(o.firstChild),!0):!1;case 6:return o=s.pendingProps===""||o.nodeType!==3?null:o,o!==null?(s.stateNode=o,an=s,ln=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(c=Fs!==null?{id:Sr,overflow:Cr}:null,s.memoizedState={dehydrated:o,treeContext:c,retryLane:1073741824},c=bn(18,null,null,0),c.stateNode=o,c.return=s,s.child=c,an=s,ln=null,!0):!1;default:return!1}}function xf(s){return(s.mode&1)!==0&&(s.flags&128)===0}function wf(s){if(et){var o=ln;if(o){var c=o;if(!ev(s,o)){if(xf(s))throw Error(n(418));o=Hr(c.nextSibling);var d=an;o&&ev(s,o)?Zy(d,c):(s.flags=s.flags&-4097|2,et=!1,an=s)}}else{if(xf(s))throw Error(n(418));s.flags=s.flags&-4097|2,et=!1,an=s}}}function tv(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;an=s}function uc(s){if(s!==an)return!1;if(!et)return tv(s),et=!0,!1;var o;if((o=s.tag!==3)&&!(o=s.tag!==5)&&(o=s.type,o=o!=="head"&&o!=="body"&&!df(s.type,s.memoizedProps)),o&&(o=ln)){if(xf(s))throw nv(),Error(n(418));for(;o;)Zy(s,o),o=Hr(o.nextSibling)}if(tv(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="/$"){if(o===0){ln=Hr(s.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++}s=s.nextSibling}ln=null}}else ln=an?Hr(s.stateNode.nextSibling):null;return!0}function nv(){for(var s=ln;s;)s=Hr(s.nextSibling)}function Uo(){ln=an=null,et=!1}function bf(s){Ln===null?Ln=[s]:Ln.push(s)}var xR=_.ReactCurrentBatchConfig;function ua(s,o,c){if(s=c.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var d=c.stateNode}if(!d)throw Error(n(147,s));var y=d,x=""+s;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===x?o.ref:(o=function(P){var A=y.refs;P===null?delete A[x]:A[x]=P},o._stringRef=x,o)}if(typeof s!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,s))}return s}function dc(s,o){throw s=Object.prototype.toString.call(o),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s))}function rv(s){var o=s._init;return o(s._payload)}
vendor: 2,205 bytes, line 38
38function sv(s){function o(F,I){if(s){var V=F.deletions;V===null?(F.deletions=[I],F.flags|=16):V.push(I)}}function c(F,I){if(!s)return null;for(;I!==null;)o(F,I),I=I.sibling;return null}function d(F,I){for(F=new Map;I!==null;)I.key!==null?F.set(I.key,I):F.set(I.index,I),I=I.sibling;return F}function y(F,I){return F=ns(F,I),F.index=0,F.sibling=null,F}function x(F,I,V){return F.index=V,s?(V=F.alternate,V!==null?(V=V.index,V<I?(F.flags|=2,I):V):(F.flags|=2,I)):(F.flags|=1048576,I)}function P(F){return s&&F.alternate===null&&(F.flags|=2),F}function A(F,I,V,ee){return I===null||I.tag!==6?(I=fh(V,F.mode,ee),I.return=F,I):(I=y(I,V),I.return=F,I)}function O(F,I,V,ee){var we=V.type;return we===B?Y(F,I,V.props.children,ee,V.key):I!==null&&(I.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===Z&&rv(we)===I.type)?(ee=y(I,V.props),ee.ref=ua(F,I,V),ee.return=F,ee):(ee=Dc(V.type,V.key,V.props,null,F.mode,ee),ee.ref=ua(F,I,V),ee.return=F,ee)}function $(F,I,V,ee){return I===null||I.tag!==4||I.stateNode.containerInfo!==V.containerInfo||I.stateNode.implementation!==V.implementation?(I=hh(V,F.mode,ee),I.return=F,I):(I=y(I,V.children||[]),I.return=F,I)}function Y(F,I,V,ee,we){return I===null||I.tag!==7?(I=Ks(V,F.mode,ee,we),I.return=F,I):(I=y(I,V),I.return=F,I)}function X(F,I,V){if(typeof I=="string"&&I!==""||typeof I=="number")return I=fh(""+I,F.mode,V),I.return=F,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case N:return V=Dc(I.type,I.key,I.props,null,F.mode,V),V.ref=ua(F,null,I),V.return=F,V;case L:return I=hh(I,F.mode,V),I.return=F,I;case Z:var ee=I._init;return X(F,ee(I._payload),V)}if(vt(I)||H(I))return I=Ks(I,F.mode,V,null),I.return=F,I;dc(F,I)}return null}function Q(F,I,V,ee){var we=I!==null?I.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return we!==null?null:A(F,I,""+V,ee);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return V.key===we?O(F,I,V,ee):null;case L:return V.key===we?$(F,I,V,ee):null;case Z:return we=V._init,Q(F,I,we(V._payload),ee)}if(vt(V)||H(V))return we!==null?null:Y(F,I,V,ee,null);dc(F,V)}return null}function ae(F,I,V,ee,we){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return F=F.get(V)||null,A(I,F,""+ee,we);
vendor: 10,113 bytes, line 38
38if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case N:return F=F.get(ee.key===null?V:ee.key)||null,O(I,F,ee,we);case L:return F=F.get(ee.key===null?V:ee.key)||null,$(I,F,ee,we);case Z:var Se=ee._init;return ae(F,I,V,Se(ee._payload),we)}if(vt(ee)||H(ee))return F=F.get(V)||null,Y(I,F,ee,we,null);dc(I,ee)}return null}function pe(F,I,V,ee){for(var we=null,Se=null,Ce=I,Ae=I=0,Et=null;Ce!==null&&Ae<V.length;Ae++){Ce.index>Ae?(Et=Ce,Ce=null):Et=Ce.sibling;var Ve=Q(F,Ce,V[Ae],ee);if(Ve===null){Ce===null&&(Ce=Et);break}s&&Ce&&Ve.alternate===null&&o(F,Ce),I=x(Ve,I,Ae),Se===null?we=Ve:Se.sibling=Ve,Se=Ve,Ce=Et}if(Ae===V.length)return c(F,Ce),et&&Bs(F,Ae),we;if(Ce===null){for(;Ae<V.length;Ae++)Ce=X(F,V[Ae],ee),Ce!==null&&(I=x(Ce,I,Ae),Se===null?we=Ce:Se.sibling=Ce,Se=Ce);return et&&Bs(F,Ae),we}for(Ce=d(F,Ce);Ae<V.length;Ae++)Et=ae(Ce,F,Ae,V[Ae],ee),Et!==null&&(s&&Et.alternate!==null&&Ce.delete(Et.key===null?Ae:Et.key),I=x(Et,I,Ae),Se===null?we=Et:Se.sibling=Et,Se=Et);return s&&Ce.forEach(function(rs){return o(F,rs)}),et&&Bs(F,Ae),we}function xe(F,I,V,ee){var we=H(V);if(typeof we!="function")throw Error(n(150));if(V=we.call(V),V==null)throw Error(n(151));for(var Se=we=null,Ce=I,Ae=I=0,Et=null,Ve=V.next();Ce!==null&&!Ve.done;Ae++,Ve=V.next()){Ce.index>Ae?(Et=Ce,Ce=null):Et=Ce.sibling;var rs=Q(F,Ce,Ve.value,ee);if(rs===null){Ce===null&&(Ce=Et);break}s&&Ce&&rs.alternate===null&&o(F,Ce),I=x(rs,I,Ae),Se===null?we=rs:Se.sibling=rs,Se=rs,Ce=Et}if(Ve.done)return c(F,Ce),et&&Bs(F,Ae),we;if(Ce===null){for(;!Ve.done;Ae++,Ve=V.next())Ve=X(F,Ve.value,ee),Ve!==null&&(I=x(Ve,I,Ae),Se===null?we=Ve:Se.sibling=Ve,Se=Ve);return et&&Bs(F,Ae),we}for(Ce=d(F,Ce);!Ve.done;Ae++,Ve=V.next())Ve=ae(Ce,F,Ae,Ve.value,ee),Ve!==null&&(s&&Ve.alternate!==null&&Ce.delete(Ve.key===null?Ae:Ve.key),I=x(Ve,I,Ae),Se===null?we=Ve:Se.sibling=Ve,Se=Ve);return s&&Ce.forEach(function(JR){return o(F,JR)}),et&&Bs(F,Ae),we}function dt(F,I,V,ee){if(typeof V=="object"&&V!==null&&V.type===B&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case N:e:{for(var we=V.key,Se=I;Se!==null;){if(Se.key===we){if(we=V.type,we===B){if(Se.tag===7){c(F,Se.sibling),I=y(Se,V.props.children),I.return=F,F=I;break e}}else if(Se.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===Z&&rv(we)===Se.type){c(F,Se.sibling),I=y(Se,V.props),I.ref=ua(F,Se,V),I.return=F,F=I;break e}c(F,Se);break}else o(F,Se);Se=Se.sibling}V.type===B?(I=Ks(V.props.children,F.mode,ee,V.key),I.return=F,F=I):(ee=Dc(V.type,V.key,V.props,null,F.mode,ee),ee.ref=ua(F,I,V),ee.return=F,F=ee)}return P(F);case L:e:{for(Se=V.key;I!==null;){if(I.key===Se)if(I.tag===4&&I.stateNode.containerInfo===V.containerInfo&&I.stateNode.implementation===V.implementation){c(F,I.sibling),I=y(I,V.children||[]),I.return=F,F=I;break e}else{c(F,I);break}else o(F,I);I=I.sibling}I=hh(V,F.mode,ee),I.return=F,F=I}return P(F);case Z:return Se=V._init,dt(F,I,Se(V._payload),ee)}if(vt(V))return pe(F,I,V,ee);if(H(V))return xe(F,I,V,ee);dc(F,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,I!==null&&I.tag===6?(c(F,I.sibling),I=y(I,V),I.return=F,F=I):(c(F,I),I=fh(V,F.mode,ee),I.return=F,F=I),P(F)):c(F,I)}return dt}var $o=sv(!0),ov=sv(!1),fc=qr(null),hc=null,Wo=null,Sf=null;function Cf(){Sf=Wo=hc=null}function Ef(s){var o=fc.current;Ge(fc),s._currentValue=o}function Pf(s,o,c){for(;s!==null;){var d=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),s===c)break;s=s.return}}function Ho(s,o){hc=s,Sf=Wo=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&o)!==0&&(Gt=!0),s.firstContext=null)}function vn(s){var o=s._currentValue;if(Sf!==s)if(s={context:s,memoizedValue:o,next:null},Wo===null){if(hc===null)throw Error(n(308));Wo=s,hc.dependencies={lanes:0,firstContext:s}}else Wo=Wo.next=s;return o}var Vs=null;function kf(s){Vs===null?Vs=[s]:Vs.push(s)}function iv(s,o,c,d){var y=o.interleaved;return y===null?(c.next=c,kf(o)):(c.next=y.next,y.next=c),o.interleaved=c,Er(s,d)}function Er(s,o){s.lanes|=o;var c=s.alternate;for(c!==null&&(c.lanes|=o),c=s,s=s.return;s!==null;)s.childLanes|=o,c=s.alternate,c!==null&&(c.childLanes|=o),c=s,s=s.return;return c.tag===3?c.stateNode:null}var Yr=!1;function Tf(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function av(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Pr(s,o){return{eventTime:s,lane:o,tag:0,payload:null,callback:null,next:null}}function Gr(s,o,c){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(Fe&2)!==0){var y=d.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),d.pending=o,Er(s,c)}return y=d.interleaved,y===null?(o.next=o,kf(d)):(o.next=y.next,y.next=o),d.interleaved=o,Er(s,c)}function pc(s,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194240)!==0)){var d=o.lanes;d&=s.pendingLanes,c|=d,o.lanes=c,Vd(s,c)}}function lv(s,o){var c=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var y=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var P={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};x===null?y=x=P:x=x.next=P,c=c.next}while(c!==null);x===null?y=x=o:x=x.next=o}else y=x=o;c={baseState:d.baseState,firstBaseUpdate:y,lastBaseUpdate:x,shared:d.shared,effects:d.effects},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=o:s.next=o,c.lastBaseUpdate=o}function mc(s,o,c,d){var y=s.updateQueue;Yr=!1;var x=y.firstBaseUpdate,P=y.lastBaseUpdate,A=y.shared.pending;if(A!==null){y.shared.pending=null;var O=A,$=O.next;O.next=null,P===null?x=$:P.next=$,P=O;var Y=s.alternate;Y!==null&&(Y=Y.updateQueue,A=Y.lastBaseUpdate,A!==P&&(A===null?Y.firstBaseUpdate=$:A.next=$,Y.lastBaseUpdate=O))}if(x!==null){var X=y.baseState;P=0,Y=$=O=null,A=x;do{var Q=A.lane,ae=A.eventTime;if((d&Q)===Q){Y!==null&&(Y=Y.next={eventTime:ae,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var pe=s,xe=A;switch(Q=o,ae=c,xe.tag){case 1:if(pe=xe.payload,typeof pe=="function"){X=pe.call(ae,X,Q);break e}X=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=xe.payload,Q=typeof pe=="function"?pe.call(ae,X,Q):pe,Q==null)break e;X=z({},X,Q);break e;case 2:Yr=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,Q=y.effects,Q===null?y.effects=[A]:Q.push(A))}else ae={eventTime:ae,lane:Q,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Y===null?($=Y=ae,O=X):Y=Y.next=ae,P|=Q;if(A=A.next,A===null){if(A=y.shared.pending,A===null)break;Q=A,A=Q.next,Q.next=null,y.lastBaseUpdate=Q,y.shared.pending=null}}while(!0);if(Y===null&&(O=X),y.baseState=O,y.firstBaseUpdate=$,y.lastBaseUpdate=Y,o=y.shared.interleaved,o!==null){y=o;do P|=y.lane,y=y.next;while(y!==o)}else x===null&&(y.shared.lanes=0);$s|=P,s.lanes=P,s.memoizedState=X}}function cv(s,o,c){if(s=o.effects,o.effects=null,s!==null)for(o=0;o<s.length;o++){var d=s[o],y=d.callback;if(y!==null){if(d.callback=null,d=c,typeof y!="function")throw Error(n(191,y));y.call(d)}}}var da={},tr=qr(da),fa=qr(da),ha=qr(da);function zs(s){if(s===da)throw Error(n(174));return s}function Rf(s,o){switch(Qe(ha,o),Qe(fa,s),Qe(tr,da),s=o.nodeType,s){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:jn(null,"");break;default:s=s===8?o.parentNode:o,o=s.namespaceURI||null,s=s.tagName,o=jn(o,s)}Ge(tr),Qe(tr,o)}function qo(){Ge(tr),Ge(fa),Ge(ha)}function uv(s){zs(ha.current);var o=zs(tr.current),c=jn(o,s.type);o!==c&&(Qe(fa,s),Qe(tr,c))}function _f(s){fa.current===s&&(Ge(tr),Ge(fa))}var rt=qr(0);function gc(s){for(var o=s;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Af=[];function Nf(){for(var s=0;s<Af.length;s++)Af[s]._workInProgressVersionPrimary=null;Af.length=0}var yc=_.ReactCurrentDispatcher,Mf=_.ReactCurrentBatchConfig,Us=0,st=null,xt=null,St=null,vc=!1,pa=!1,ma=0,wR=0;function Dt(){throw Error(n(321))}function Of(s,o){if(o===null)return!1;for(var c=0;c<o.length&&c<s.length;c++)if(!In(s[c],o[c]))return!1;return!0}function jf(s,o,c,d,y,x){if(Us=x,st=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,yc.current=s===null||s.memoizedState===null?ER:PR,s=c(d,y),pa){x=0;do{if(pa=!1,ma=0,25<=x)throw Error(n(301));x+=1,St=xt=null,o.updateQueue=null,yc.current=kR,s=c(d,y)}while(pa)}if(yc.current=bc,o=xt!==null&&xt.next!==null,Us=0,St=xt=st=null,vc=!1,o)throw Error(n(300));return s}function Df(){var s=ma!==0;return ma=0,s}function nr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?st.memoizedState=St=s:St=St.next=s,St}function xn(){if(xt===null){var s=st.alternate;s=s!==null?s.memoizedState:null}else s=xt.next;var o=St===null?st.memoizedState:St.next;if(o!==null)St=o,xt=s;else{if(s===null)throw Error(n(310));xt=s,s={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},St===null?st.memoizedState=St=s:St=St.next=s}return St}function ga(s,o){return typeof o=="function"?o(s):o}function If(s){var o=xn(),c=o.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=s;var d=xt,y=d.baseQueue,x=c.pending;if(x!==null){if(y!==null){var P=y.next;y.next=x.next,x.next=P}d.baseQueue=y=x,c.pending=null}if(y!==null){x=y.next,d=d.baseState;var A=P=null,O=null,$=x;do{var Y=$.lane;if((Us&Y)===Y)O!==null&&(O=O.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),d=$.hasEagerState?$.eagerState:s(d,$.action);else{var X={lane:Y,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};O===null?(A=O=X,P=d):O=O.next=X,st.lanes|=Y,$s|=Y}$=$.next}
vendor: 5,173 bytes, line 38
38while($!==null&&$!==x);O===null?P=d:O.next=A,In(d,o.memoizedState)||(Gt=!0),o.memoizedState=d,o.baseState=P,o.baseQueue=O,c.lastRenderedState=d}if(s=c.interleaved,s!==null){y=s;do x=y.lane,st.lanes|=x,$s|=x,y=y.next;while(y!==s)}else y===null&&(c.lanes=0);return[o.memoizedState,c.dispatch]}function Lf(s){var o=xn(),c=o.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=s;var d=c.dispatch,y=c.pending,x=o.memoizedState;if(y!==null){c.pending=null;var P=y=y.next;do x=s(x,P.action),P=P.next;while(P!==y);In(x,o.memoizedState)||(Gt=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),c.lastRenderedState=x}return[x,d]}function dv(){}function fv(s,o){var c=st,d=xn(),y=o(),x=!In(d.memoizedState,y);if(x&&(d.memoizedState=y,Gt=!0),d=d.queue,Ff(mv.bind(null,c,d,s),[s]),d.getSnapshot!==o||x||St!==null&&St.memoizedState.tag&1){if(c.flags|=2048,ya(9,pv.bind(null,c,d,y,o),void 0,null),Ct===null)throw Error(n(349));(Us&30)!==0||hv(c,o,y)}return y}function hv(s,o,c){s.flags|=16384,s={getSnapshot:o,value:c},o=st.updateQueue,o===null?(o={lastEffect:null,stores:null},st.updateQueue=o,o.stores=[s]):(c=o.stores,c===null?o.stores=[s]:c.push(s))}function pv(s,o,c,d){o.value=c,o.getSnapshot=d,gv(o)&&yv(s)}function mv(s,o,c){return c(function(){gv(o)&&yv(s)})}function gv(s){var o=s.getSnapshot;s=s.value;try{var c=o();return!In(s,c)}catch{return!0}}function yv(s){var o=Er(s,1);o!==null&&zn(o,s,1,-1)}function vv(s){var o=nr();return typeof s=="function"&&(s=s()),o.memoizedState=o.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:s},o.queue=s,s=s.dispatch=CR.bind(null,st,s),[o.memoizedState,s]}function ya(s,o,c,d){return s={tag:s,create:o,destroy:c,deps:d,next:null},o=st.updateQueue,o===null?(o={lastEffect:null,stores:null},st.updateQueue=o,o.lastEffect=s.next=s):(c=o.lastEffect,c===null?o.lastEffect=s.next=s:(d=c.next,c.next=s,s.next=d,o.lastEffect=s)),s}function xv(){return xn().memoizedState}function xc(s,o,c,d){var y=nr();st.flags|=s,y.memoizedState=ya(1|o,c,void 0,d===void 0?null:d)}function wc(s,o,c,d){var y=xn();d=d===void 0?null:d;var x=void 0;if(xt!==null){var P=xt.memoizedState;if(x=P.destroy,d!==null&&Of(d,P.deps)){y.memoizedState=ya(o,c,x,d);return}}st.flags|=s,y.memoizedState=ya(1|o,c,x,d)}function wv(s,o){return xc(8390656,8,s,o)}function Ff(s,o){return wc(2048,8,s,o)}function bv(s,o){return wc(4,2,s,o)}function Sv(s,o){return wc(4,4,s,o)}function Cv(s,o){if(typeof o=="function")return s=s(),o(s),function(){o(null)};if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function Ev(s,o,c){return c=c!=null?c.concat([s]):null,wc(4,4,Cv.bind(null,o,s),c)}function Bf(){}function Pv(s,o){var c=xn();o=o===void 0?null:o;var d=c.memoizedState;return d!==null&&o!==null&&Of(o,d[1])?d[0]:(c.memoizedState=[s,o],s)}function kv(s,o){var c=xn();o=o===void 0?null:o;var d=c.memoizedState;return d!==null&&o!==null&&Of(o,d[1])?d[0]:(s=s(),c.memoizedState=[s,o],s)}function Tv(s,o,c){return(Us&21)===0?(s.baseState&&(s.baseState=!1,Gt=!0),s.memoizedState=c):(In(c,o)||(c=ry(),st.lanes|=c,$s|=c,s.baseState=!0),o)}function bR(s,o){var c=$e;$e=c!==0&&4>c?c:4,s(!0);var d=Mf.transition;Mf.transition={};try{s(!1),o()}finally{$e=c,Mf.transition=d}}function Rv(){return xn().memoizedState}function SR(s,o,c){var d=es(s);if(c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null},_v(s))Av(o,c);else if(c=iv(s,o,c,d),c!==null){var y=Ht();zn(c,s,d,y),Nv(c,o,d)}}function CR(s,o,c){var d=es(s),y={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(_v(s))Av(o,y);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var P=o.lastRenderedState,A=x(P,c);if(y.hasEagerState=!0,y.eagerState=A,In(A,P)){var O=o.interleaved;O===null?(y.next=y,kf(o)):(y.next=O.next,O.next=y),o.interleaved=y;return}}catch{}finally{}c=iv(s,o,y,d),c!==null&&(y=Ht(),zn(c,s,d,y),Nv(c,o,d))}}function _v(s){var o=s.alternate;return s===st||o!==null&&o===st}function Av(s,o){pa=vc=!0;var c=s.pending;c===null?o.next=o:(o.next=c.next,c.next=o),s.pending=o}function Nv(s,o,c){if((c&4194240)!==0){var d=o.lanes;d&=s.pendingLanes,c|=d,o.lanes=c,Vd(s,c)}}var bc={readContext:vn,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},ER={readContext:vn,useCallback:function(s,o){return nr().memoizedState=[s,o===void 0?null:o],s},useContext:vn,useEffect:wv,useImperativeHandle:function(s,o,c){return c=c!=null?c.concat([s]):null,xc(4194308,4,Cv.bind(null,o,s),c)},useLayoutEffect:function(s,o){return xc(4194308,4,s,o)},useInsertionEffect:function(s,o){return xc(4,2,s,o)},useMemo:function(s,o){var c=nr();return o=o===void 0?null:o,s=s(),c.memoizedState=[s,o],s},useReducer:function(s,o,c){var d=nr();return o=c!==void 0?c(o):o,d.memoizedState=d.baseState=o,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:o},d.queue=s,s=s.dispatch=SR.bind(null,st,s),[d.memoizedState,s]}
vendor: 5,240 bytes, lines 38-40
38,useRef:function(s){var o=nr();return s={current:s},o.memoizedState=s},useState:vv,useDebugValue:Bf,useDeferredValue:function(s){return nr().memoizedState=s},useTransition:function(){var s=vv(!1),o=s[0];return s=bR.bind(null,s[1]),nr().memoizedState=s,[o,s]},useMutableSource:function(){},useSyncExternalStore:function(s,o,c){var d=st,y=nr();if(et){if(c===void 0)throw Error(n(407));c=c()}else{if(c=o(),Ct===null)throw Error(n(349));(Us&30)!==0||hv(d,o,c)}y.memoizedState=c;var x={value:c,getSnapshot:o};return y.queue=x,wv(mv.bind(null,d,x,s),[s]),d.flags|=2048,ya(9,pv.bind(null,d,x,c,o),void 0,null),c},useId:function(){var s=nr(),o=Ct.identifierPrefix;if(et){var c=Cr,d=Sr;c=(d&~(1<<32-Dn(d)-1)).toString(32)+c,o=":"+o+"R"+c,c=ma++,0<c&&(o+="H"+c.toString(32)),o+=":"}else c=wR++,o=":"+o+"r"+c.toString(32)+":";return s.memoizedState=o},unstable_isNewReconciler:!1},PR={readContext:vn,useCallback:Pv,useContext:vn,useEffect:Ff,useImperativeHandle:Ev,useInsertionEffect:bv,useLayoutEffect:Sv,useMemo:kv,useReducer:If,useRef:xv,useState:function(){return If(ga)},useDebugValue:Bf,useDeferredValue:function(s){var o=xn();return Tv(o,xt.memoizedState,s)},useTransition:function(){var s=If(ga)[0],o=xn().memoizedState;return[s,o]},useMutableSource:dv,useSyncExternalStore:fv,useId:Rv,unstable_isNewReconciler:!1},kR={readContext:vn,useCallback:Pv,useContext:vn,useEffect:Ff,useImperativeHandle:Ev,useInsertionEffect:bv,useLayoutEffect:Sv,useMemo:kv,useReducer:Lf,useRef:xv,useState:function(){return Lf(ga)},useDebugValue:Bf,useDeferredValue:function(s){var o=xn();return xt===null?o.memoizedState=s:Tv(o,xt.memoizedState,s)},useTransition:function(){var s=Lf(ga)[0],o=xn().memoizedState;return[s,o]},useMutableSource:dv,useSyncExternalStore:fv,useId:Rv,unstable_isNewReconciler:!1};function Fn(s,o){if(s&&s.defaultProps){o=z({},o),s=s.defaultProps;for(var c in s)o[c]===void 0&&(o[c]=s[c]);return o}return o}function Vf(s,o,c,d){o=s.memoizedState,c=c(d,o),c=c==null?o:z({},o,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var Sc={isMounted:function(s){return(s=s._reactInternals)?Ds(s)===s:!1},enqueueSetState:function(s,o,c){s=s._reactInternals;var d=Ht(),y=es(s),x=Pr(d,y);x.payload=o,c!=null&&(x.callback=c),o=Gr(s,x,y),o!==null&&(zn(o,s,y,d),pc(o,s,y))},enqueueReplaceState:function(s,o,c){s=s._reactInternals;var d=Ht(),y=es(s),x=Pr(d,y);x.tag=1,x.payload=o,c!=null&&(x.callback=c),o=Gr(s,x,y),o!==null&&(zn(o,s,y,d),pc(o,s,y))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var c=Ht(),d=es(s),y=Pr(c,d);y.tag=2,o!=null&&(y.callback=o),o=Gr(s,y,d),o!==null&&(zn(o,s,d,c),pc(o,s,d))}};function Mv(s,o,c,d,y,x,P){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,x,P):o.prototype&&o.prototype.isPureReactComponent?!ra(c,d)||!ra(y,x):!0}function Ov(s,o,c){var d=!1,y=Kr,x=o.contextType;return typeof x=="object"&&x!==null?x=vn(x):(y=Yt(o)?Ls:jt.current,d=o.contextTypes,x=(d=d!=null)?Bo(s,y):Kr),o=new o(c,x),s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Sc,s.stateNode=o,o._reactInternals=s,d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=y,s.__reactInternalMemoizedMaskedChildContext=x),o}function jv(s,o,c,d){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,d),o.state!==s&&Sc.enqueueReplaceState(o,o.state,null)}function zf(s,o,c,d){var y=s.stateNode;y.props=c,y.state=s.memoizedState,y.refs={},Tf(s);var x=o.contextType;typeof x=="object"&&x!==null?y.context=vn(x):(x=Yt(o)?Ls:jt.current,y.context=Bo(s,x)),y.state=s.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(Vf(s,o,x,c),y.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(o=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),o!==y.state&&Sc.enqueueReplaceState(y,y.state,null),mc(s,c,y,d),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4194308)}function Ko(s,o){try{var c="",d=o;do c+=le(d),d=d.return;while(d);var y=c}catch(x){y=` 39Error generating stack: `+x.message+` 40`+x.stack}return{value:s,source:o,stack:y,digest:null}}function Uf(s,o,c){return{value:s,source:null,stack:c??null,digest:o??null}}function $f(s,o){try{console.error(o.value)}catch(c){setTimeout(function(){throw c})}}var TR=typeof WeakMap=="function"?WeakMap:Map;function Dv(s,o,c){c=Pr(-1,c),c.tag=3,c.payload={element:null};var d=o.value;return c.callback=function(){_c||(_c=!0,sh=d),$f(s,o)},c}function Iv(s,o,c){c=Pr(-1,c),c.tag=3;var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var y=o.value;c.payload=function(){return d(y)},c.callback=function(){$f(s,o)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(c.callback=function(){$f(s,o),typeof d!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var P=o.stack;this.componentDidCatch(o.value,{componentStack:P!==null?P:""})}),c}function Lv(s,o,c){var d=s.pingCache;
vendor: 41,011 bytes, line 40
40if(d===null){d=s.pingCache=new TR;var y=new Set;d.set(o,y)}else y=d.get(o),y===void 0&&(y=new Set,d.set(o,y));y.has(c)||(y.add(c),s=zR.bind(null,s,o,c),o.then(s,s))}function Fv(s){do{var o;if((o=s.tag===13)&&(o=s.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return s;s=s.return}while(s!==null);return null}function Bv(s,o,c,d,y){return(s.mode&1)===0?(s===o?s.flags|=65536:(s.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(o=Pr(-1,1),o.tag=2,Gr(c,o,1))),c.lanes|=1),s):(s.flags|=65536,s.lanes=y,s)}var RR=_.ReactCurrentOwner,Gt=!1;function Wt(s,o,c,d){o.child=s===null?ov(o,null,c,d):$o(o,s.child,c,d)}function Vv(s,o,c,d,y){c=c.render;var x=o.ref;return Ho(o,y),d=jf(s,o,c,d,x,y),c=Df(),s!==null&&!Gt?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~y,kr(s,o,y)):(et&&c&&yf(o),o.flags|=1,Wt(s,o,d,y),o.child)}function zv(s,o,c,d,y){if(s===null){var x=c.type;return typeof x=="function"&&!dh(x)&&x.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(o.tag=15,o.type=x,Uv(s,o,x,d,y)):(s=Dc(c.type,null,d,o,o.mode,y),s.ref=o.ref,s.return=o,o.child=s)}if(x=s.child,(s.lanes&y)===0){var P=x.memoizedProps;if(c=c.compare,c=c!==null?c:ra,c(P,d)&&s.ref===o.ref)return kr(s,o,y)}return o.flags|=1,s=ns(x,d),s.ref=o.ref,s.return=o,o.child=s}function Uv(s,o,c,d,y){if(s!==null){var x=s.memoizedProps;if(ra(x,d)&&s.ref===o.ref)if(Gt=!1,o.pendingProps=d=x,(s.lanes&y)!==0)(s.flags&131072)!==0&&(Gt=!0);else return o.lanes=s.lanes,kr(s,o,y)}return Wf(s,o,c,d,y)}function $v(s,o,c){var d=o.pendingProps,y=d.children,x=s!==null?s.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(Yo,cn),cn|=c;else{if((c&1073741824)===0)return s=x!==null?x.baseLanes|c:c,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:s,cachePool:null,transitions:null},o.updateQueue=null,Qe(Yo,cn),cn|=s,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=x!==null?x.baseLanes:c,Qe(Yo,cn),cn|=d}else x!==null?(d=x.baseLanes|c,o.memoizedState=null):d=c,Qe(Yo,cn),cn|=d;return Wt(s,o,y,c),o.child}function Wv(s,o){var c=o.ref;(s===null&&c!==null||s!==null&&s.ref!==c)&&(o.flags|=512,o.flags|=2097152)}function Wf(s,o,c,d,y){var x=Yt(c)?Ls:jt.current;return x=Bo(o,x),Ho(o,y),c=jf(s,o,c,d,x,y),d=Df(),s!==null&&!Gt?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~y,kr(s,o,y)):(et&&d&&yf(o),o.flags|=1,Wt(s,o,c,y),o.child)}function Hv(s,o,c,d,y){if(Yt(c)){var x=!0;ic(o)}else x=!1;if(Ho(o,y),o.stateNode===null)Ec(s,o),Ov(o,c,d),zf(o,c,d,y),d=!0;else if(s===null){var P=o.stateNode,A=o.memoizedProps;P.props=A;var O=P.context,$=c.contextType;typeof $=="object"&&$!==null?$=vn($):($=Yt(c)?Ls:jt.current,$=Bo(o,$));var Y=c.getDerivedStateFromProps,X=typeof Y=="function"||typeof P.getSnapshotBeforeUpdate=="function";X||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(A!==d||O!==$)&&jv(o,P,d,$),Yr=!1;var Q=o.memoizedState;P.state=Q,mc(o,d,P,y),O=o.memoizedState,A!==d||Q!==O||Qt.current||Yr?(typeof Y=="function"&&(Vf(o,c,Y,d),O=o.memoizedState),(A=Yr||Mv(o,c,A,d,Q,O,$))?(X||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(o.flags|=4194308)):(typeof P.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=O),P.props=d,P.state=O,P.context=$,d=A):(typeof P.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{P=o.stateNode,av(s,o),A=o.memoizedProps,$=o.type===o.elementType?A:Fn(o.type,A),P.props=$,X=o.pendingProps,Q=P.context,O=c.contextType,typeof O=="object"&&O!==null?O=vn(O):(O=Yt(c)?Ls:jt.current,O=Bo(o,O));var ae=c.getDerivedStateFromProps;(Y=typeof ae=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(A!==X||Q!==O)&&jv(o,P,d,O),Yr=!1,Q=o.memoizedState,P.state=Q,mc(o,d,P,y);var pe=o.memoizedState;A!==X||Q!==pe||Qt.current||Yr?(typeof ae=="function"&&(Vf(o,c,ae,d),pe=o.memoizedState),($=Yr||Mv(o,c,$,d,Q,pe,O)||!1)?(Y||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(d,pe,O),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(d,pe,O)),typeof P.componentDidUpdate=="function"&&(o.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof P.componentDidUpdate!="function"||A===s.memoizedProps&&Q===s.memoizedState||(o.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&Q===s.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=pe),P.props=d,P.state=pe,P.context=O,d=$):(typeof P.componentDidUpdate!="function"||A===s.memoizedProps&&Q===s.memoizedState||(o.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&Q===s.memoizedState||(o.flags|=1024),d=!1)}return Hf(s,o,c,d,x,y)}function Hf(s,o,c,d,y,x){Wv(s,o);var P=(o.flags&128)!==0;if(!d&&!P)return y&&Gy(o,c,!1),kr(s,o,x);d=o.stateNode,RR.current=o;var A=P&&typeof c.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,s!==null&&P?(o.child=$o(o,s.child,null,x),o.child=$o(o,null,A,x)):Wt(s,o,A,x),o.memoizedState=d.state,y&&Gy(o,c,!0),o.child}function qv(s){var o=s.stateNode;o.pendingContext?Qy(s,o.pendingContext,o.pendingContext!==o.context):o.context&&Qy(s,o.context,!1),Rf(s,o.containerInfo)}function Kv(s,o,c,d,y){return Uo(),bf(y),o.flags|=256,Wt(s,o,c,d),o.child}var qf={dehydrated:null,treeContext:null,retryLane:0};function Kf(s){return{baseLanes:s,cachePool:null,transitions:null}}function Qv(s,o,c){var d=o.pendingProps,y=rt.current,x=!1,P=(o.flags&128)!==0,A;if((A=P)||(A=s!==null&&s.memoizedState===null?!1:(y&2)!==0),A?(x=!0,o.flags&=-129):(s===null||s.memoizedState!==null)&&(y|=1),Qe(rt,y&1),s===null)return wf(o),s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((o.mode&1)===0?o.lanes=1:s.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(P=d.children,s=d.fallback,x?(d=o.mode,x=o.child,P={mode:"hidden",children:P},(d&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=P):x=Ic(P,d,0,null),s=Ks(s,d,c,null),x.return=o,s.return=o,x.sibling=s,o.child=x,o.child.memoizedState=Kf(c),o.memoizedState=qf,s):Qf(o,P));if(y=s.memoizedState,y!==null&&(A=y.dehydrated,A!==null))return _R(s,o,P,d,A,y,c);if(x){x=d.fallback,P=o.mode,y=s.child,A=y.sibling;var O={mode:"hidden",children:d.children};return(P&1)===0&&o.child!==y?(d=o.child,d.childLanes=0,d.pendingProps=O,o.deletions=null):(d=ns(y,O),d.subtreeFlags=y.subtreeFlags&14680064),A!==null?x=ns(A,x):(x=Ks(x,P,c,null),x.flags|=2),x.return=o,d.return=o,d.sibling=x,o.child=d,d=x,x=o.child,P=s.child.memoizedState,P=P===null?Kf(c):{baseLanes:P.baseLanes|c,cachePool:null,transitions:P.transitions},x.memoizedState=P,x.childLanes=s.childLanes&~c,o.memoizedState=qf,d}return x=s.child,s=x.sibling,d=ns(x,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=c),d.return=o,d.sibling=null,s!==null&&(c=o.deletions,c===null?(o.deletions=[s],o.flags|=16):c.push(s)),o.child=d,o.memoizedState=null,d}function Qf(s,o){return o=Ic({mode:"visible",children:o},s.mode,0,null),o.return=s,s.child=o}function Cc(s,o,c,d){return d!==null&&bf(d),$o(o,s.child,null,c),s=Qf(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function _R(s,o,c,d,y,x,P){if(c)return o.flags&256?(o.flags&=-257,d=Uf(Error(n(422))),Cc(s,o,P,d)):o.memoizedState!==null?(o.child=s.child,o.flags|=128,null):(x=d.fallback,y=o.mode,d=Ic({mode:"visible",children:d.children},y,0,null),x=Ks(x,y,P,null),x.flags|=2,d.return=o,x.return=o,d.sibling=x,o.child=d,(o.mode&1)!==0&&$o(o,s.child,null,P),o.child.memoizedState=Kf(P),o.memoizedState=qf,x);if((o.mode&1)===0)return Cc(s,o,P,null);if(y.data==="$!"){if(d=y.nextSibling&&y.nextSibling.dataset,d)var A=d.dgst;return d=A,x=Error(n(419)),d=Uf(x,d,void 0),Cc(s,o,P,d)}if(A=(P&s.childLanes)!==0,Gt||A){if(d=Ct,d!==null){switch(P&-P){case 4:y=2;break;case 16:y=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:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(d.suspendedLanes|P))!==0?0:y,y!==0&&y!==x.retryLane&&(x.retryLane=y,Er(s,y),zn(d,s,y,-1))}return uh(),d=Uf(Error(n(421))),Cc(s,o,P,d)}return y.data==="$?"?(o.flags|=128,o.child=s.child,o=UR.bind(null,s),y._reactRetry=o,null):(s=x.treeContext,ln=Hr(y.nextSibling),an=o,et=!0,Ln=null,s!==null&&(gn[yn++]=Sr,gn[yn++]=Cr,gn[yn++]=Fs,Sr=s.id,Cr=s.overflow,Fs=o),o=Qf(o,d.children),o.flags|=4096,o)}function Yv(s,o,c){s.lanes|=o;var d=s.alternate;d!==null&&(d.lanes|=o),Pf(s.return,o,c)}function Yf(s,o,c,d,y){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:y}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=d,x.tail=c,x.tailMode=y)}function Gv(s,o,c){var d=o.pendingProps,y=d.revealOrder,x=d.tail;if(Wt(s,o,d.children,c),d=rt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Yv(s,c,o);else if(s.tag===19)Yv(s,c,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}d&=1}if(Qe(rt,d),(o.mode&1)===0)o.memoizedState=null;else switch(y){case"forwards":for(c=o.child,y=null;c!==null;)s=c.alternate,s!==null&&gc(s)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),Yf(o,!1,y,c,x);break;case"backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(s=y.alternate,s!==null&&gc(s)===null){o.child=y;break}s=y.sibling,y.sibling=c,c=y,y=s}Yf(o,!0,c,null,x);break;case"together":Yf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ec(s,o){(o.mode&1)===0&&s!==null&&(s.alternate=null,o.alternate=null,o.flags|=2)}function kr(s,o,c){if(s!==null&&(o.dependencies=s.dependencies),$s|=o.lanes,(c&o.childLanes)===0)return null;if(s!==null&&o.child!==s.child)throw Error(n(153));if(o.child!==null){for(s=o.child,c=ns(s,s.pendingProps),o.child=c,c.return=o;s.sibling!==null;)s=s.sibling,c=c.sibling=ns(s,s.pendingProps),c.return=o;c.sibling=null}return o.child}function AR(s,o,c){switch(o.tag){case 3:qv(o),Uo();break;case 5:uv(o);break;case 1:Yt(o.type)&&ic(o);break;case 4:Rf(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,y=o.memoizedProps.value;Qe(fc,d._currentValue),d._currentValue=y;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(Qe(rt,rt.current&1),o.flags|=128,null):(c&o.child.childLanes)!==0?Qv(s,o,c):(Qe(rt,rt.current&1),s=kr(s,o,c),s!==null?s.sibling:null);Qe(rt,rt.current&1);break;case 19:if(d=(c&o.childLanes)!==0,(s.flags&128)!==0){if(d)return Gv(s,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Qe(rt,rt.current),d)break;return null;case 22:case 23:return o.lanes=0,$v(s,o,c)}return kr(s,o,c)}var Xv,Gf,Jv,Zv;Xv=function(s,o){for(var c=o.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Gf=function(){},Jv=function(s,o,c,d){var y=s.memoizedProps;if(y!==d){s=o.stateNode,zs(tr.current);var x=null;switch(c){case"input":y=ye(s,y),d=ye(s,d),x=[];break;case"select":y=z({},y,{value:void 0}),d=z({},d,{value:void 0}),x=[];break;case"textarea":y=$t(s,y),d=$t(s,d),x=[];break;default:typeof y.onClick!="function"&&typeof d.onClick=="function"&&(s.onclick=rc)}_d(c,d);var P;c=null;for($ in y)if(!d.hasOwnProperty($)&&y.hasOwnProperty($)&&y[$]!=null)if($==="style"){var A=y[$];for(P in A)A.hasOwnProperty(P)&&(c||(c={}),c[P]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(i.hasOwnProperty($)?x||(x=[]):(x=x||[]).push($,null));for($ in d){var O=d[$];if(A=y!=null?y[$]:void 0,d.hasOwnProperty($)&&O!==A&&(O!=null||A!=null))if($==="style")if(A){for(P in A)!A.hasOwnProperty(P)||O&&O.hasOwnProperty(P)||(c||(c={}),c[P]="");for(P in O)O.hasOwnProperty(P)&&A[P]!==O[P]&&(c||(c={}),c[P]=O[P])}else c||(x||(x=[]),x.push($,c)),c=O;else $==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,A=A?A.__html:void 0,O!=null&&A!==O&&(x=x||[]).push($,O)):$==="children"?typeof O!="string"&&typeof O!="number"||(x=x||[]).push($,""+O):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(i.hasOwnProperty($)?(O!=null&&$==="onScroll"&&Ye("scroll",s),x||A===O||(x=[])):(x=x||[]).push($,O))}c&&(x=x||[]).push("style",c);var $=x;(o.updateQueue=$)&&(o.flags|=4)}},Zv=function(s,o,c,d){c!==d&&(o.flags|=4)};function va(s,o){if(!et)switch(s.tailMode){case"hidden":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function It(s){var o=s.alternate!==null&&s.alternate.child===s.child,c=0,d=0;if(o)for(var y=s.child;y!==null;)c|=y.lanes|y.childLanes,d|=y.subtreeFlags&14680064,d|=y.flags&14680064,y.return=s,y=y.sibling;else for(y=s.child;y!==null;)c|=y.lanes|y.childLanes,d|=y.subtreeFlags,d|=y.flags,y.return=s,y=y.sibling;return s.subtreeFlags|=d,s.childLanes=c,o}function NR(s,o,c){var d=o.pendingProps;switch(vf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(o),null;case 1:return Yt(o.type)&&oc(),It(o),null;case 3:return d=o.stateNode,qo(),Ge(Qt),Ge(jt),Nf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(uc(o)?o.flags|=4:s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Ln!==null&&(ah(Ln),Ln=null))),Gf(s,o),It(o),null;case 5:_f(o);var y=zs(ha.current);if(c=o.type,s!==null&&o.stateNode!=null)Jv(s,o,c,d,y),s.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return It(o),null}if(s=zs(tr.current),uc(o)){d=o.stateNode,c=o.type;var x=o.memoizedProps;switch(d[er]=o,d[la]=x,s=(o.mode&1)!==0,c){case"dialog":Ye("cancel",d),Ye("close",d);break;case"iframe":case"object":case"embed":Ye("load",d);break;case"video":case"audio":for(y=0;y<oa.length;y++)Ye(oa[y],d);break;case"source":Ye("error",d);break;case"img":case"image":case"link":Ye("error",d),Ye("load",d);break;case"details":Ye("toggle",d);break;case"input":Re(d,x),Ye("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!x.multiple},Ye("invalid",d);break;case"textarea":Xn(d,x),Ye("invalid",d)}_d(c,x),y=null;for(var P in x)if(x.hasOwnProperty(P)){var A=x[P];P==="children"?typeof A=="string"?d.textContent!==A&&(x.suppressHydrationWarning!==!0&&nc(d.textContent,A,s),y=["children",A]):typeof A=="number"&&d.textContent!==""+A&&(x.suppressHydrationWarning!==!0&&nc(d.textContent,A,s),y=["children",""+A]):i.hasOwnProperty(P)&&A!=null&&P==="onScroll"&&Ye("scroll",d)}switch(c){case"input":Ne(d),Tt(d,x,!0);break;case"textarea":Ne(d),Mn(d);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(d.onclick=rc)}d=y,o.updateQueue=d,d!==null&&(o.flags|=4)}else{P=y.nodeType===9?y:y.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=On(c)),s==="http://www.w3.org/1999/xhtml"?c==="script"?(s=P.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof d.is=="string"?s=P.createElement(c,{is:d.is}):(s=P.createElement(c),c==="select"&&(P=s,d.multiple?P.multiple=!0:d.size&&(P.size=d.size))):s=P.createElementNS(s,c),s[er]=o,s[la]=d,Xv(s,o,!1,!1),o.stateNode=s;e:{switch(P=Ad(c,d),c){case"dialog":Ye("cancel",s),Ye("close",s),y=d;break;case"iframe":case"object":case"embed":Ye("load",s),y=d;break;case"video":case"audio":for(y=0;y<oa.length;y++)Ye(oa[y],s);y=d;break;case"source":Ye("error",s),y=d;break;case"img":case"image":case"link":Ye("error",s),Ye("load",s),y=d;break;case"details":Ye("toggle",s),y=d;break;case"input":Re(s,d),y=ye(s,d),Ye("invalid",s);break;case"option":y=d;break;case"select":s._wrapperState={wasMultiple:!!d.multiple},y=z({},d,{value:void 0}),Ye("invalid",s);break;case"textarea":Xn(s,d),y=$t(s,d),Ye("invalid",s);break;default:y=d}_d(c,y),A=y;for(x in A)if(A.hasOwnProperty(x)){var O=A[x];x==="style"?To(s,O):x==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&zi(s,O)):x==="children"?typeof O=="string"?(c!=="textarea"||O!=="")&&Os(s,O):typeof O=="number"&&Os(s,""+O):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?O!=null&&x==="onScroll"&&Ye("scroll",s):O!=null&&R(s,x,O,P))}switch(c){case"input":Ne(s),Tt(s,d,!1);break;case"textarea":Ne(s),Mn(s);break;case"option":d.value!=null&&s.setAttribute("value",""+he(d.value));break;case"select":s.multiple=!!d.multiple,x=d.value,x!=null?Nn(s,!!d.multiple,x,!1):d.defaultValue!=null&&Nn(s,!!d.multiple,d.defaultValue,!0);break;default:typeof y.onClick=="function"&&(s.onclick=rc)}switch(c){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return It(o),null;case 6:if(s&&o.stateNode!=null)Zv(s,o,s.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(c=zs(ha.current),zs(tr.current),uc(o)){if(d=o.stateNode,c=o.memoizedProps,d[er]=o,(x=d.nodeValue!==c)&&(s=an,s!==null))switch(s.tag){case 3:nc(d.nodeValue,c,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&nc(d.nodeValue,c,(s.mode&1)!==0)}x&&(o.flags|=4)}else d=(c.nodeType===9?c:c.ownerDocument).createTextNode(d),d[er]=o,o.stateNode=d}return It(o),null;case 13:if(Ge(rt),d=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(et&&ln!==null&&(o.mode&1)!==0&&(o.flags&128)===0)nv(),Uo(),o.flags|=98560,x=!1;else if(x=uc(o),d!==null&&d.dehydrated!==null){if(s===null){if(!x)throw Error(n(318));if(x=o.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[er]=o}else Uo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;It(o),x=!1}else Ln!==null&&(ah(Ln),Ln=null),x=!0;if(!x)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=c,o):(d=d!==null,d!==(s!==null&&s.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(s===null||(rt.current&1)!==0?wt===0&&(wt=3):uh())),o.updateQueue!==null&&(o.flags|=4),It(o),null);case 4:return qo(),Gf(s,o),s===null&&ia(o.stateNode.containerInfo),It(o),null;case 10:return Ef(o.type._context),It(o),null;case 17:return Yt(o.type)&&oc(),It(o),null;case 19:if(Ge(rt),x=o.memoizedState,x===null)return It(o),null;if(d=(o.flags&128)!==0,P=x.rendering,P===null)if(d)va(x,!1);else{if(wt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(P=gc(s),P!==null){for(o.flags|=128,va(x,!1),d=P.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=c,c=o.child;c!==null;)x=c,s=d,x.flags&=14680066,P=x.alternate,P===null?(x.childLanes=0,x.lanes=s,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=P.childLanes,x.lanes=P.lanes,x.child=P.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=P.memoizedProps,x.memoizedState=P.memoizedState,x.updateQueue=P.updateQueue,x.type=P.type,s=P.dependencies,x.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),c=c.sibling;return Qe(rt,rt.current&1|2),o.child}s=s.sibling}x.tail!==null&&ut()>Go&&(o.flags|=128,d=!0,va(x,!1),o.lanes=4194304)}else{if(!d)if(s=gc(P),s!==null){if(o.flags|=128,d=!0,c=s.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),va(x,!0),x.tail===null&&x.tailMode==="hidden"&&!P.alternate&&!et)return It(o),null}else 2*ut()-x.renderingStartTime>Go&&c!==1073741824&&(o.flags|=128,d=!0,va(x,!1),o.lanes=4194304);x.isBackwards?(P.sibling=o.child,o.child=P):(c=x.last,c!==null?c.sibling=P:o.child=P,x.last=P)}return x.tail!==null?(o=x.tail,x.rendering=o,x.tail=o.sibling,x.renderingStartTime=ut(),o.sibling=null,c=rt.current,Qe(rt,d?c&1|2:c&1),o):(It(o),null);case 22:case 23:return ch(),d=o.memoizedState!==null,s!==null&&s.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(cn&1073741824)!==0&&(It(o),o.subtreeFlags&6&&(o.flags|=8192)):It(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function MR(s,o){switch(vf(o),o.tag){case 1:return Yt(o.type)&&oc(),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return qo(),Ge(Qt),Ge(jt),Nf(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 5:return _f(o),null;case 13:if(Ge(rt),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Uo()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return Ge(rt),null;case 4:return qo(),null;case 10:return Ef(o.type._context),null;case 22:case 23:return ch(),null;case 24:return null;default:return null}}var Pc=!1,Lt=!1,OR=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Qo(s,o){var c=s.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(d){at(s,o,d)}else c.current=null}function Xf(s,o,c){try{c()}catch(d){at(s,o,d)}}var e0=!1;function jR(s,o){if(cf=Hl,s=My(),ef(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var y=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var P=0,A=-1,O=-1,$=0,Y=0,X=s,Q=null;t:for(;;){for(var ae;X!==c||y!==0&&X.nodeType!==3||(A=P+y),X!==x||d!==0&&X.nodeType!==3||(O=P+d),X.nodeType===3&&(P+=X.nodeValue.length),(ae=X.firstChild)!==null;)Q=X,X=ae;for(;;){if(X===s)break t;if(Q===c&&++$===y&&(A=P),Q===x&&++Y===d&&(O=P),(ae=X.nextSibling)!==null)break;X=Q,Q=X.parentNode}X=ae}c=A===-1||O===-1?null:{start:A,end:O}}else c=null}c=c||{start:0,end:0}}else c=null;for(uf={focusedElem:s,selectionRange:c},Hl=!1,ue=o;ue!==null;)if(o=ue,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,ue=s;else for(;ue!==null;){o=ue;try{var pe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var xe=pe.memoizedProps,dt=pe.memoizedState,F=o.stateNode,I=F.getSnapshotBeforeUpdate(o.elementType===o.type?xe:Fn(o.type,xe),dt);F.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var V=o.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){at(o,o.return,ee)}if(s=o.sibling,s!==null){s.return=o.return,ue=s;break}ue=o.return}return pe=e0,e0=!1,pe}function xa(s,o,c){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&s)===s){var x=y.destroy;y.destroy=void 0,x!==void 0&&Xf(o,c,x)}y=y.next}while(y!==d)}}function kc(s,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var c=o=o.next;do{if((c.tag&s)===s){var d=c.create;c.destroy=d()}c=c.next}while(c!==o)}}function Jf(s){var o=s.ref;if(o!==null){var c=s.stateNode;switch(s.tag){case 5:s=c;break;default:s=c}typeof o=="function"?o(s):o.current=s}}function t0(s){var o=s.alternate;o!==null&&(s.alternate=null,t0(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&(delete o[er],delete o[la],delete o[pf],delete o[gR],delete o[yR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function n0(s){return s.tag===5||s.tag===3||s.tag===4}function r0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||n0(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Zf(s,o,c){var d=s.tag;if(d===5||d===6)s=s.stateNode,o?c.nodeType===8?c.parentNode.insertBefore(s,o):c.insertBefore(s,o):(c.nodeType===8?(o=c.parentNode,o.insertBefore(s,c)):(o=c,o.appendChild(s)),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=rc));else if(d!==4&&(s=s.child,s!==null))for(Zf(s,o,c),s=s.sibling;s!==null;)Zf(s,o,c),s=s.sibling}function eh(s,o,c){var d=s.tag;if(d===5||d===6)s=s.stateNode,o?c.insertBefore(s,o):c.appendChild(s);else if(d!==4&&(s=s.child,s!==null))for(eh(s,o,c),s=s.sibling;s!==null;)eh(s,o,c),s=s.sibling}var Rt=null,Bn=!1;function Xr(s,o,c){for(c=c.child;c!==null;)s0(s,o,c),c=c.sibling}function s0(s,o,c){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(Bl,c)}catch{}switch(c.tag){case 5:Lt||Qo(c,o);case 6:var d=Rt,y=Bn;Rt=null,Xr(s,o,c),Rt=d,Bn=y,Rt!==null&&(Bn?(s=Rt,c=c.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):Rt.removeChild(c.stateNode));break;case 18:Rt!==null&&(Bn?(s=Rt,c=c.stateNode,s.nodeType===8?hf(s.parentNode,c):s.nodeType===1&&hf(s,c),Xi(s)):hf(Rt,c.stateNode));break;case 4:d=Rt,y=Bn,Rt=c.stateNode.containerInfo,Bn=!0,Xr(s,o,c),Rt=d,Bn=y;break;case 0:case 11:case 14:case 15:if(!Lt&&(d=c.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){y=d=d.next;do{var x=y,P=x.destroy;x=x.tag,P!==void 0&&((x&2)!==0||(x&4)!==0)&&Xf(c,o,P),y=y.next}while(y!==d)}Xr(s,o,c);break;case 1:if(!Lt&&(Qo(c,o),d=c.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(A){at(c,o,A)}Xr(s,o,c);break;case 21:Xr(s,o,c);break;case 22:c.mode&1?(Lt=(d=Lt)||c.memoizedState!==null,Xr(s,o,c),Lt=d):Xr(s,o,c);break;default:Xr(s,o,c)}}function o0(s){var o=s.updateQueue;if(o!==null){s.updateQueue=null;var c=s.stateNode;c===null&&(c=s.stateNode=new OR),o.forEach(function(d){var y=$R.bind(null,s,d);c.has(d)||(c.add(d),d.then(y,y))})}}function Vn(s,o){var c=o.deletions;if(c!==null)for(var d=0;d<c.length;d++){var y=c[d];try{var x=s,P=o,A=P;e:for(;A!==null;){switch(A.tag){case 5:Rt=A.stateNode,Bn=!1;break e;case 3:Rt=A.stateNode.containerInfo,Bn=!0;break e;case 4:Rt=A.stateNode.containerInfo,Bn=!0;break e}A=A.return}if(Rt===null)throw Error(n(160));s0(x,P,y),Rt=null,Bn=!1;var O=y.alternate;O!==null&&(O.return=null),y.return=null}catch($){at(y,o,$)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)i0(o,s),o=o.sibling}function i0(s,o){var c=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Vn(o,s),rr(s),d&4){try{xa(3,s,s.return),kc(3,s)}catch(xe){at(s,s.return,xe)}try{xa(5,s,s.return)}catch(xe){at(s,s.return,xe)}}break;case 1:Vn(o,s),rr(s),d&512&&c!==null&&Qo(c,c.return);break;case 5:if(Vn(o,s),rr(s),d&512&&c!==null&&Qo(c,c.return),s.flags&32){var y=s.stateNode;try{Os(y,"")}catch(xe){at(s,s.return,xe)}}if(d&4&&(y=s.stateNode,y!=null)){var x=s.memoizedProps,P=c!==null?c.memoizedProps:x,A=s.type,O=s.updateQueue;if(s.updateQueue=null,O!==null)try{A==="input"&&x.type==="radio"&&x.name!=null&&Ze(y,x),Ad(A,P);var $=Ad(A,x);for(P=0;P<O.length;P+=2){var Y=O[P],X=O[P+1];Y==="style"?To(y,X):Y==="dangerouslySetInnerHTML"?zi(y,X):Y==="children"?Os(y,X):R(y,Y,X,$)}switch(A){case"input":it(y,x);break;case"textarea":mn(y,x);break;case"select":var Q=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!x.multiple;var ae=x.value;ae!=null?Nn(y,!!x.multiple,ae,!1):Q!==!!x.multiple&&(x.defaultValue!=null?Nn(y,!!x.multiple,x.defaultValue,!0):Nn(y,!!x.multiple,x.multiple?[]:"",!1))}y[la]=x}catch(xe){at(s,s.return,xe)}}break;case 6:if(Vn(o,s),rr(s),d&4){if(s.stateNode===null)throw Error(n(162));y=s.stateNode,x=s.memoizedProps;try{y.nodeValue=x}catch(xe){at(s,s.return,xe)}}break;case 3:if(Vn(o,s),rr(s),d&4&&c!==null&&c.memoizedState.isDehydrated)try{Xi(o.containerInfo)}catch(xe){at(s,s.return,xe)}break;case 4:Vn(o,s),rr(s);break;case 13:Vn(o,s),rr(s),y=s.child,y.flags&8192&&(x=y.memoizedState!==null,y.stateNode.isHidden=x,!x||y.alternate!==null&&y.alternate.memoizedState!==null||(rh=ut())),d&4&&o0(s);break;case 22:if(Y=c!==null&&c.memoizedState!==null,s.mode&1?(Lt=($=Lt)||Y,Vn(o,s),Lt=$):Vn(o,s),rr(s),d&8192){if($=s.memoizedState!==null,(s.stateNode.isHidden=$)&&!Y&&(s.mode&1)!==0)for(ue=s,Y=s.child;Y!==null;){for(X=ue=Y;ue!==null;){switch(Q=ue,ae=Q.child,Q.tag){case 0:case 11:case 14:case 15:xa(4,Q,Q.return);break;case 1:Qo(Q,Q.return);var pe=Q.stateNode;if(typeof pe.componentWillUnmount=="function"){d=Q,c=Q.return;try{o=d,pe.props=o.memoizedProps,pe.state=o.memoizedState,pe.componentWillUnmount()}catch(xe){at(d,c,xe)}}break;case 5:Qo(Q,Q.return);break;case 22:if(Q.memoizedState!==null){c0(X);continue}}ae!==null?(ae.return=Q,ue=ae):c0(X)}Y=Y.sibling}e:for(Y=null,X=s;;){if(X.tag===5){if(Y===null){Y=X;try{y=X.stateNode,$?(x=y.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(A=X.stateNode,O=X.memoizedProps.style,P=O!=null&&O.hasOwnProperty("display")?O.display:null,A.style.display=Jn("display",P))}catch(xe){at(s,s.return,xe)}}}else if(X.tag===6){if(Y===null)try{X.stateNode.nodeValue=$?"":X.memoizedProps}catch(xe){at(s,s.return,xe)}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===s)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===s)break e;for(;X.sibling===null;){if(X.return===null||X.return===s)break e;Y===X&&(Y=null),X=X.return}Y===X&&(Y=null),X.sibling.return=X.return,X=X.sibling}}break;case 19:Vn(o,s),rr(s),d&4&&o0(s);break;case 21:break;default:Vn(o,s),rr(s)}}function rr(s){var o=s.flags;if(o&2){try{e:{for(var c=s.return;c!==null;){if(n0(c)){var d=c;break e}c=c.return}throw Error(n(160))}switch(d.tag){case 5:var y=d.stateNode;d.flags&32&&(Os(y,""),d.flags&=-33);var x=r0(s);eh(s,x,y);break;case 3:case 4:var P=d.stateNode.containerInfo,A=r0(s);Zf(s,A,P);break;default:throw Error(n(161))}}catch(O){at(s,s.return,O)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function DR(s,o,c){ue=s,a0(s)}function a0(s,o,c){for(var d=(s.mode&1)!==0;ue!==null;){var y=ue,x=y.child;if(y.tag===22&&d){var P=y.memoizedState!==null||Pc;if(!P){var A=y.alternate,O=A!==null&&A.memoizedState!==null||Lt;A=Pc;var $=Lt;if(Pc=P,(Lt=O)&&!$)for(ue=y;ue!==null;)P=ue,O=P.child,P.tag===22&&P.memoizedState!==null?u0(y):O!==null?(O.return=P,ue=O):u0(y);for(;x!==null;)ue=x,a0(x),x=x.sibling;ue=y,Pc=A,Lt=$}l0(s)}else(y.subtreeFlags&8772)!==0&&x!==null?(x.return=y,ue=x):l0(s)}}function l0(s){for(;ue!==null;){var o=ue;if((o.flags&8772)!==0){var c=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Lt||kc(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!Lt)if(c===null)d.componentDidMount();else{var y=o.elementType===o.type?c.memoizedProps:Fn(o.type,c.memoizedProps);d.componentDidUpdate(y,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var x=o.updateQueue;x!==null&&cv(o,x,d);break;case 3:var P=o.updateQueue;if(P!==null){if(c=null,o.child!==null)switch(o.child.tag){case 5:c=o.child.stateNode;break;case 1:c=o.child.stateNode}cv(o,P,c)}break;case 5:var A=o.stateNode;if(c===null&&o.flags&4){c=A;var O=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&c.focus();break;case"img":O.src&&(c.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var $=o.alternate;if($!==null){var Y=$.memoizedState;if(Y!==null){var X=Y.dehydrated;X!==null&&Xi(X)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Lt||o.flags&512&&Jf(o)}catch(Q){at(o,o.return,Q)}}if(o===s){ue=null;break}if(c=o.sibling,c!==null){c.return=o.return,ue=c;break}ue=o.return}}function c0(s){for(;ue!==null;){var o=ue;if(o===s){ue=null;break}var c=o.sibling;if(c!==null){c.return=o.return,ue=c;break}ue=o.return}}function u0(s){for(;ue!==null;){var o=ue;try{switch(o.tag){case 0:case 11:case 15:var c=o.return;try{kc(4,o)}catch(O){at(o,c,O)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var y=o.return;try{d.componentDidMount()}catch(O){at(o,y,O)}}var x=o.return;try{Jf(o)}catch(O){at(o,x,O)}break;case 5:var P=o.return;try{Jf(o)}catch(O){at(o,P,O)}}}catch(O){at(o,o.return,O)}if(o===s){ue=null;break}var A=o.sibling;if(A!==null){A.return=o.return,ue=A;break}ue=o.return}}var IR=Math.ceil,Tc=_.ReactCurrentDispatcher,th=_.ReactCurrentOwner,wn=_.ReactCurrentBatchConfig,Fe=0,Ct=null,mt=null,_t=0,cn=0,Yo=qr(0),wt=0,wa=null,$s=0,Rc=0,nh=0,ba=null,Xt=null,rh=0,Go=1/0,Tr=null,_c=!1,sh=null,Jr=null,Ac=!1,Zr=null,Nc=0,Sa=0,oh=null,Mc=-1,Oc=0;function Ht(){return(Fe&6)!==0?ut():Mc!==-1?Mc:Mc=ut()}function es(s){return(s.mode&1)===0?1:(Fe&2)!==0&&_t!==0?_t&-_t:xR.transition!==null?(Oc===0&&(Oc=ry()),Oc):(s=$e,s!==0||(s=window.event,s=s===void 0?16:fy(s.type)),s)}function zn(s,o,c,d){if(50<Sa)throw Sa=0,oh=null,Error(n(185));qi(s,c,d),((Fe&2)===0||s!==Ct)&&(s===Ct&&((Fe&2)===0&&(Rc|=c),wt===4&&ts(s,_t)),Jt(s,d),c===1&&Fe===0&&(o.mode&1)===0&&(Go=ut()+500,ac&&Qr()))}function Jt(s,o){var c=s.callbackNode;xT(s,o);var d=Ul(s,s===Ct?_t:0);if(d===0)c!==null&&ey(c),s.callbackNode=null,s.callbackPriority=0;else if(o=d&-d,s.callbackPriority!==o){if(c!=null&&ey(c),o===1)s.tag===0?vR(f0.bind(null,s)):Xy(f0.bind(null,s)),pR(function(){(Fe&6)===0&&Qr()}),c=null;else{switch(sy(d)){case 1:c=Ld;break;case 4:c=ty;break;case 16:c=Fl;break;case 536870912:c=ny;break;default:c=Fl}c=w0(c,d0.bind(null,s))}s.callbackPriority=o,s.callbackNode=c}}function d0(s,o){if(Mc=-1,Oc=0,(Fe&6)!==0)throw Error(n(327));var c=s.callbackNode;if(Xo()&&s.callbackNode!==c)return null;var d=Ul(s,s===Ct?_t:0);if(d===0)return null;if((d&30)!==0||(d&s.expiredLanes)!==0||o)o=jc(s,d);else{o=d;var y=Fe;Fe|=2;var x=p0();(Ct!==s||_t!==o)&&(Tr=null,Go=ut()+500,Hs(s,o));do try{BR();break}catch(A){h0(s,A)}while(!0);Cf(),Tc.current=x,Fe=y,mt!==null?o=0:(Ct=null,_t=0,o=wt)}if(o!==0){if(o===2&&(y=Fd(s),y!==0&&(d=y,o=ih(s,y))),o===1)throw c=wa,Hs(s,0),ts(s,d),Jt(s,ut()),c;if(o===6)ts(s,d);else{if(y=s.current.alternate,(d&30)===0&&!LR(y)&&(o=jc(s,d),o===2&&(x=Fd(s),x!==0&&(d=x,o=ih(s,x))),o===1))throw c=wa,Hs(s,0),ts(s,d),Jt(s,ut()),c;switch(s.finishedWork=y,s.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:qs(s,Xt,Tr);break;case 3:if(ts(s,d),(d&130023424)===d&&(o=rh+500-ut(),10<o)){if(Ul(s,0)!==0)break;if(y=s.suspendedLanes,(y&d)!==d){Ht(),s.pingedLanes|=s.suspendedLanes&y;break}s.timeoutHandle=ff(qs.bind(null,s,Xt,Tr),o);break}qs(s,Xt,Tr);break;case 4:if(ts(s,d),(d&4194240)===d)break;for(o=s.eventTimes,y=-1;0<d;){var P=31-Dn(d);x=1<<P,P=o[P],P>y&&(y=P),d&=~x}if(d=y,d=ut()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*IR(d/1960))-d,10<d){s.timeoutHandle=ff(qs.bind(null,s,Xt,Tr),d);break}qs(s,Xt,Tr);break;case 5:qs(s,Xt,Tr);break;default:throw Error(n(329))}}}return Jt(s,ut()),s.callbackNode===c?d0.bind(null,s):null}function ih(s,o){var c=ba;return s.current.memoizedState.isDehydrated&&(Hs(s,o).flags|=256),s=jc(s,o),s!==2&&(o=Xt,Xt=c,o!==null&&ah(o)),s}function ah(s){Xt===null?Xt=s:Xt.push.apply(Xt,s)}function LR(s){for(var o=s;;){if(o.flags&16384){var c=o.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var d=0;d<c.length;d++){var y=c[d],x=y.getSnapshot;y=y.value;try{if(!In(x(),y))return!1}catch{return!1}}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ts(s,o){for(o&=~nh,o&=~Rc,s.suspendedLanes|=o,s.pingedLanes&=~o,s=s.expirationTimes;0<o;){var c=31-Dn(o),d=1<<c;s[c]=-1,o&=~d}}function f0(s){if((Fe&6)!==0)throw Error(n(327));Xo();var o=Ul(s,0);if((o&1)===0)return Jt(s,ut()),null;var c=jc(s,o);if(s.tag!==0&&c===2){var d=Fd(s);d!==0&&(o=d,c=ih(s,d))}if(c===1)throw c=wa,Hs(s,0),ts(s,o),Jt(s,ut()),c;if(c===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=o,qs(s,Xt,Tr),Jt(s,ut()),null}function lh(s,o){var c=Fe;Fe|=1;try{return s(o)}finally{Fe=c,Fe===0&&(Go=ut()+500,ac&&Qr())}}function Ws(s){Zr!==null&&Zr.tag===0&&(Fe&6)===0&&Xo();var o=Fe;Fe|=1;var c=wn.transition,d=$e;try{if(wn.transition=null,$e=1,s)return s()}finally{$e=d,wn.transition=c,Fe=o,(Fe&6)===0&&Qr()}}function ch(){cn=Yo.current,Ge(Yo)}function Hs(s,o){s.finishedWork=null,s.finishedLanes=0;var c=s.timeoutHandle;if(c!==-1&&(s.timeoutHandle=-1,hR(c)),mt!==null)for(c=mt.return;c!==null;){var d=c;switch(vf(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&oc();break;case 3:qo(),Ge(Qt),Ge(jt),Nf();break;case 5:_f(d);break;case 4:qo();break;case 13:Ge(rt);break;case 19:Ge(rt);break;case 10:Ef(d.type._context);break;case 22:case 23:ch()}c=c.return}if(Ct=s,mt=s=ns(s.current,null),_t=cn=o,wt=0,wa=null,nh=Rc=$s=0,Xt=ba=null,Vs!==null){for(o=0;o<Vs.length;o++)if(c=Vs[o],d=c.interleaved,d!==null){c.interleaved=null;var y=d.next,x=c.pending;if(x!==null){var P=x.next;x.next=y,d.next=P}c.pending=d}Vs=null}return s}function h0(s,o){do{var c=mt;try{if(Cf(),yc.current=bc,vc){for(var d=st.memoizedState;d!==null;){var y=d.queue;y!==null&&(y.pending=null),d=d.next}vc=!1}if(Us=0,St=xt=st=null,pa=!1,ma=0,th.current=null,c===null||c.return===null){wt=1,wa=o,mt=null;break}e:{var x=s,P=c.return,A=c,O=o;if(o=_t,A.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var $=O,Y=A,X=Y.tag;if((Y.mode&1)===0&&(X===0||X===11||X===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ae=Fv(P);if(ae!==null){ae.flags&=-257,Bv(ae,P,A,x,o),ae.mode&1&&Lv(x,$,o),o=ae,O=$;var pe=o.updateQueue;if(pe===null){var xe=new Set;xe.add(O),o.updateQueue=xe}else pe.add(O);break e}else{if((o&1)===0){Lv(x,$,o),uh();break e}O=Error(n(426))}}else if(et&&A.mode&1){var dt=Fv(P);if(dt!==null){(dt.flags&65536)===0&&(dt.flags|=256),Bv(dt,P,A,x,o),bf(Ko(O,A));break e}}x=O=Ko(O,A),wt!==4&&(wt=2),ba===null?ba=[x]:ba.push(x),x=P;do{switch(x.tag){case 3:x.flags|=65536,o&=-o,x.lanes|=o;var F=Dv(x,O,o);lv(x,F);break e;case 1:A=O;var I=x.type,V=x.stateNode;if((x.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Jr===null||!Jr.has(V)))){x.flags|=65536,o&=-o,x.lanes|=o;var ee=Iv(x,A,o);lv(x,ee);break e}}x=x.return}while(x!==null)}g0(c)}catch(we){o=we,mt===c&&c!==null&&(mt=c=c.return);continue}break}while(!0)}function p0(){var s=Tc.current;return Tc.current=bc,s===null?bc:s}function uh(){(wt===0||wt===3||wt===2)&&(wt=4),Ct===null||($s&268435455)===0&&(Rc&268435455)===0||ts(Ct,_t)}function jc(s,o){var c=Fe;Fe|=2;var d=p0();(Ct!==s||_t!==o)&&(Tr=null,Hs(s,o));do try{FR();break}catch(y){h0(s,y)}while(!0);if(Cf(),Fe=c,Tc.current=d,mt!==null)throw Error(n(261));return Ct=null,_t=0,wt}function FR(){for(;mt!==null;)m0(mt)}function BR(){for(;mt!==null&&!uT();)m0(mt)}function m0(s){var o=x0(s.alternate,s,cn);s.memoizedProps=s.pendingProps,o===null?g0(s):mt=o,th.current=null}function g0(s){var o=s;do{var c=o.alternate;if(s=o.return,(o.flags&32768)===0){if(c=NR(c,o,cn),c!==null){mt=c;return}}else{if(c=MR(c,o),c!==null){c.flags&=32767,mt=c;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{wt=6,mt=null;return}}if(o=o.sibling,o!==null){mt=o;return}mt=o=s}while(o!==null);wt===0&&(wt=5)}function qs(s,o,c){var d=$e,y=wn.transition;try{wn.transition=null,$e=1,VR(s,o,c,d)}finally{wn.transition=y,$e=d}return null}function VR(s,o,c,d){do Xo();while(Zr!==null);if((Fe&6)!==0)throw Error(n(327));c=s.finishedWork;var y=s.finishedLanes;if(c===null)return null;if(s.finishedWork=null,s.finishedLanes=0,c===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var x=c.lanes|c.childLanes;if(wT(s,x),s===Ct&&(mt=Ct=null,_t=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Ac||(Ac=!0,w0(Fl,function(){return Xo(),null})),x=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||x){x=wn.transition,wn.transition=null;var P=$e;$e=1;var A=Fe;Fe|=4,th.current=null,jR(s,c),i0(c,s),iR(uf),Hl=!!cf,uf=cf=null,s.current=c,DR(c),dT(),Fe=A,$e=P,wn.transition=x}else s.current=c;if(Ac&&(Ac=!1,Zr=s,Nc=y),x=s.pendingLanes,x===0&&(Jr=null),pT(c.stateNode),Jt(s,ut()),o!==null)for(d=s.onRecoverableError,c=0;c<o.length;c++)y=o[c],d(y.value,{componentStack:y.stack,digest:y.digest});if(_c)throw _c=!1,s=sh,sh=null,s;return(Nc&1)!==0&&s.tag!==0&&Xo(),x=s.pendingLanes,(x&1)!==0?s===oh?Sa++:(Sa=0,oh=s):Sa=0,Qr(),null}function Xo(){if(Zr!==null){var s=sy(Nc),o=wn.transition,c=$e;try{if(wn.transition=null,$e=16>s?16:s,Zr===null)var d=!1;else{if(s=Zr,Zr=null,Nc=0,(Fe&6)!==0)throw Error(n(331));var y=Fe;for(Fe|=4,ue=s.current;ue!==null;){var x=ue,P=x.child;
vendor: 4,258 bytes, line 40
40if((ue.flags&16)!==0){var A=x.deletions;if(A!==null){for(var O=0;O<A.length;O++){var $=A[O];for(ue=$;ue!==null;){var Y=ue;switch(Y.tag){case 0:case 11:case 15:xa(8,Y,x)}var X=Y.child;if(X!==null)X.return=Y,ue=X;else for(;ue!==null;){Y=ue;var Q=Y.sibling,ae=Y.return;if(t0(Y),Y===$){ue=null;break}if(Q!==null){Q.return=ae,ue=Q;break}ue=ae}}}var pe=x.alternate;if(pe!==null){var xe=pe.child;if(xe!==null){pe.child=null;do{var dt=xe.sibling;xe.sibling=null,xe=dt}while(xe!==null)}}ue=x}}if((x.subtreeFlags&2064)!==0&&P!==null)P.return=x,ue=P;else e:for(;ue!==null;){if(x=ue,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:xa(9,x,x.return)}var F=x.sibling;if(F!==null){F.return=x.return,ue=F;break e}ue=x.return}}var I=s.current;for(ue=I;ue!==null;){P=ue;var V=P.child;if((P.subtreeFlags&2064)!==0&&V!==null)V.return=P,ue=V;else e:for(P=I;ue!==null;){if(A=ue,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:kc(9,A)}}catch(we){at(A,A.return,we)}if(A===P){ue=null;break e}var ee=A.sibling;if(ee!==null){ee.return=A.return,ue=ee;break e}ue=A.return}}if(Fe=y,Qr(),Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(Bl,s)}catch{}d=!0}return d}finally{$e=c,wn.transition=o}}return!1}function y0(s,o,c){o=Ko(c,o),o=Dv(s,o,1),s=Gr(s,o,1),o=Ht(),s!==null&&(qi(s,1,o),Jt(s,o))}function at(s,o,c){if(s.tag===3)y0(s,s,c);else for(;o!==null;){if(o.tag===3){y0(o,s,c);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Jr===null||!Jr.has(d))){s=Ko(c,s),s=Iv(o,s,1),o=Gr(o,s,1),s=Ht(),o!==null&&(qi(o,1,s),Jt(o,s));break}}o=o.return}}function zR(s,o,c){var d=s.pingCache;d!==null&&d.delete(o),o=Ht(),s.pingedLanes|=s.suspendedLanes&c,Ct===s&&(_t&c)===c&&(wt===4||wt===3&&(_t&130023424)===_t&&500>ut()-rh?Hs(s,0):nh|=c),Jt(s,o)}function v0(s,o){o===0&&((s.mode&1)===0?o=1:(o=zl,zl<<=1,(zl&130023424)===0&&(zl=4194304)));var c=Ht();s=Er(s,o),s!==null&&(qi(s,o,c),Jt(s,c))}function UR(s){var o=s.memoizedState,c=0;o!==null&&(c=o.retryLane),v0(s,c)}function $R(s,o){var c=0;switch(s.tag){case 13:var d=s.stateNode,y=s.memoizedState;y!==null&&(c=y.retryLane);break;case 19:d=s.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),v0(s,c)}var x0;x0=function(s,o,c){if(s!==null)if(s.memoizedProps!==o.pendingProps||Qt.current)Gt=!0;else{if((s.lanes&c)===0&&(o.flags&128)===0)return Gt=!1,AR(s,o,c);Gt=(s.flags&131072)!==0}else Gt=!1,et&&(o.flags&1048576)!==0&&Jy(o,cc,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;Ec(s,o),s=o.pendingProps;var y=Bo(o,jt.current);Ho(o,c),y=jf(null,o,d,s,y,c);var x=Df();return o.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Yt(d)?(x=!0,ic(o)):x=!1,o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,Tf(o),y.updater=Sc,o.stateNode=y,y._reactInternals=o,zf(o,d,s,c),o=Hf(null,o,d,!0,x,c)):(o.tag=0,et&&x&&yf(o),Wt(null,o,y,c),o=o.child),o;case 16:d=o.elementType;e:{switch(Ec(s,o),s=o.pendingProps,y=d._init,d=y(d._payload),o.type=d,y=o.tag=HR(d),s=Fn(d,s),y){case 0:o=Wf(null,o,d,s,c);break e;case 1:o=Hv(null,o,d,s,c);break e;case 11:o=Vv(null,o,d,s,c);break e;case 14:o=zv(null,o,d,Fn(d.type,s),c);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,y=o.pendingProps,y=o.elementType===d?y:Fn(d,y),Wf(s,o,d,y,c);case 1:return d=o.type,y=o.pendingProps,y=o.elementType===d?y:Fn(d,y),Hv(s,o,d,y,c);case 3:e:{if(qv(o),s===null)throw Error(n(387));d=o.pendingProps,x=o.memoizedState,y=x.element,av(s,o),mc(o,d,null,c);var P=o.memoizedState;if(d=P.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){y=Ko(Error(n(423)),o),o=Kv(s,o,d,c,y);break e}else if(d!==y){y=Ko(Error(n(424)),o),o=Kv(s,o,d,c,y);break e}else for(ln=Hr(o.stateNode.containerInfo.firstChild),an=o,et=!0,Ln=null,c=ov(o,null,d,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Uo(),d===y){o=kr(s,o,c);break e}Wt(s,o,d,c)}o=o.child}return o;case 5:return uv(o),s===null&&wf(o),d=o.type,y=o.pendingProps,x=s!==null?s.memoizedProps:null,P=y.children,df(d,y)?P
vendor: 9,621 bytes, line 40
40=null:x!==null&&df(d,x)&&(o.flags|=32),Wv(s,o),Wt(s,o,P,c),o.child;case 6:return s===null&&wf(o),null;case 13:return Qv(s,o,c);case 4:return Rf(o,o.stateNode.containerInfo),d=o.pendingProps,s===null?o.child=$o(o,null,d,c):Wt(s,o,d,c),o.child;case 11:return d=o.type,y=o.pendingProps,y=o.elementType===d?y:Fn(d,y),Vv(s,o,d,y,c);case 7:return Wt(s,o,o.pendingProps,c),o.child;case 8:return Wt(s,o,o.pendingProps.children,c),o.child;case 12:return Wt(s,o,o.pendingProps.children,c),o.child;case 10:e:{if(d=o.type._context,y=o.pendingProps,x=o.memoizedProps,P=y.value,Qe(fc,d._currentValue),d._currentValue=P,x!==null)if(In(x.value,P)){if(x.children===y.children&&!Qt.current){o=kr(s,o,c);break e}}else for(x=o.child,x!==null&&(x.return=o);x!==null;){var A=x.dependencies;if(A!==null){P=x.child;for(var O=A.firstContext;O!==null;){if(O.context===d){if(x.tag===1){O=Pr(-1,c&-c),O.tag=2;var $=x.updateQueue;if($!==null){$=$.shared;var Y=$.pending;Y===null?O.next=O:(O.next=Y.next,Y.next=O),$.pending=O}}x.lanes|=c,O=x.alternate,O!==null&&(O.lanes|=c),Pf(x.return,c,o),A.lanes|=c;break}O=O.next}}else if(x.tag===10)P=x.type===o.type?null:x.child;else if(x.tag===18){if(P=x.return,P===null)throw Error(n(341));P.lanes|=c,A=P.alternate,A!==null&&(A.lanes|=c),Pf(P,c,o),P=x.sibling}else P=x.child;if(P!==null)P.return=x;else for(P=x;P!==null;){if(P===o){P=null;break}if(x=P.sibling,x!==null){x.return=P.return,P=x;break}P=P.return}x=P}Wt(s,o,y.children,c),o=o.child}return o;case 9:return y=o.type,d=o.pendingProps.children,Ho(o,c),y=vn(y),d=d(y),o.flags|=1,Wt(s,o,d,c),o.child;case 14:return d=o.type,y=Fn(d,o.pendingProps),y=Fn(d.type,y),zv(s,o,d,y,c);case 15:return Uv(s,o,o.type,o.pendingProps,c);case 17:return d=o.type,y=o.pendingProps,y=o.elementType===d?y:Fn(d,y),Ec(s,o),o.tag=1,Yt(d)?(s=!0,ic(o)):s=!1,Ho(o,c),Ov(o,d,y),zf(o,d,y,c),Hf(null,o,d,!0,s,c);case 19:return Gv(s,o,c);case 22:return $v(s,o,c)}throw Error(n(156,o.tag))};function w0(s,o){return Zg(s,o)}function WR(s,o,c,d){this.tag=s,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(s,o,c,d){return new WR(s,o,c,d)}function dh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function HR(s){if(typeof s=="function")return dh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===se)return 11;if(s===be)return 14}return 2}function ns(s,o){var c=s.alternate;return c===null?(c=bn(s.tag,o,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=o,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&14680064,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,o=s.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c}function Dc(s,o,c,d,y,x){var P=2;if(d=s,typeof s=="function")dh(s)&&(P=1);else if(typeof s=="string")P=5;else e:switch(s){case B:return Ks(c.children,y,x,o);case j:P=8,y|=8;break;case K:return s=bn(12,c,o,y|2),s.elementType=K,s.lanes=x,s;case re:return s=bn(13,c,o,y),s.elementType=re,s.lanes=x,s;case oe:return s=bn(19,c,o,y),s.elementType=oe,s.lanes=x,s;case ne:return Ic(c,y,x,o);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case G:P=10;break e;case J:P=9;break e;case se:P=11;break e;case be:P=14;break e;case Z:P=16,d=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return o=bn(P,c,o,y),o.elementType=s,o.type=d,o.lanes=x,o}function Ks(s,o,c,d){return s=bn(7,s,d,o),s.lanes=c,s}function Ic(s,o,c,d){return s=bn(22,s,d,o),s.elementType=ne,s.lanes=c,s.stateNode={isHidden:!1},s}function fh(s,o,c){return s=bn(6,s,null,o),s.lanes=c,s}function hh(s,o,c){return o=bn(4,s.children!==null?s.children:[],s.key,o),o.lanes=c,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}function qR(s,o,c,d,y){this.tag=o,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bd(0),this.expirationTimes=Bd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bd(0),this.identifierPrefix=d,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function ph(s,o,c,d,y,x,P,A,O){return s=new qR(s,o,c,A,O),o===1?(o=1,x===!0&&(o|=8)):o=0,x=bn(3,null,null,o),s.current=x,x.stateNode=s,x.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tf(x),s}function KR(s,o,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:d==null?null:""+d,children:s,containerInfo:o,implementation:c}}function b0(s){if(!s)return Kr;s=s._reactInternals;e:{if(Ds(s)!==s||s.tag!==1)throw Error(n(170));var o=s;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Yt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(s.tag===1){var c=s.type;if(Yt(c))return Yy(s,c,o)}return o}function S0(s,o,c,d,y,x,P,A,O){return s=ph(c,d,!0,s,y,x,P,A,O),s.context=b0(null),c=s.current,d=Ht(),y=es(c),x=Pr(d,y),x.callback=o??null,Gr(c,x,y),s.current.lanes=y,qi(s,y,d),Jt(s,d),s}function Lc(s,o,c,d){var y=o.current,x=Ht(),P=es(y);return c=b0(c),o.context===null?o.context=c:o.pendingContext=c,o=Pr(x,P),o.payload={element:s},d=d===void 0?null:d,d!==null&&(o.callback=d),s=Gr(y,o,P),s!==null&&(zn(s,y,P,x),pc(s,y,P)),P}function Fc(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function C0(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<o?c:o}}function mh(s,o){C0(s,o),(s=s.alternate)&&C0(s,o)}function QR(){return null}var E0=typeof reportError=="function"?reportError:function(s){console.error(s)};function gh(s){this._internalRoot=s}Bc.prototype.render=gh.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(n(409));Lc(s,o,null,null)},Bc.prototype.unmount=gh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;Ws(function(){Lc(null,s,null,null)}),o[wr]=null}};function Bc(s){this._internalRoot=s}Bc.prototype.unstable_scheduleHydration=function(s){if(s){var o=ay();s={blockedOn:null,target:s,priority:o};for(var c=0;c<Ur.length&&o!==0&&o<Ur[c].priority;c++);Ur.splice(c,0,s),c===0&&uy(s)}};function yh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Vc(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function P0(){}function YR(s,o,c,d,y){if(y){if(typeof d=="function"){var x=d;d=function(){var $=Fc(P);x.call($)}}var P=S0(o,d,s,0,null,!1,!1,"",P0);return s._reactRootContainer=P,s[wr]=P.current,ia(s.nodeType===8?s.parentNode:s),Ws(),P}for(;y=s.lastChild;)s.removeChild(y);if(typeof d=="function"){var A=d;d=function(){var $=Fc(O);A.call($)}}var O=ph(s,0,!1,null,null,!1,!1,"",P0);return s._reactRootContainer=O,s[wr]=O.current,ia(s.nodeType===8?s.parentNode:s),Ws(function(){Lc(o,O,c,d)}),O}function zc(s,o,c,d,y){var x=c._reactRootContainer;if(x){var P=x;if(typeof y=="function"){var A=y;y=function(){var O=Fc(P);A.call(O)}}Lc(o,P,s,y)}else P=YR(c,o,s,y,d);return Fc(P)}oy=function(s){switch(s.tag){case 3:var o=s.stateNode;if(o.current.memoizedState.isDehydrated){var c=Hi(o.pendingLanes);c!==0&&(Vd(o,c|1),Jt(o,ut()),(Fe&6)===0&&(Go=ut()+500,Qr()))}break;case 13:Ws(function(){var d=Er(s,1);if(d!==null){var y=Ht();zn(d,s,1,y)}}),mh(s,1)}},zd=function(s){if(s.tag===13){var o=Er(s,134217728);if(o!==null){var c=Ht();zn(o,s,134217728,c)}mh(s,134217728)}},iy=function(s){if(s.tag===13){var o=es(s),c=Er(s,o);if(c!==null){var d=Ht();zn(c,s,o,d)}mh(s,o)}},ay=function(){return $e},ly=function(s,o){var c=$e;try{return $e=s,o()}finally{$e=c}},Od=function(s,o,c){switch(o){case"input":if(it(s,c),o=c.name,c.type==="radio"&&o!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<c.length;o++){var d=c[o];if(d!==s&&d.form===s.form){var y=sc(d);if(!y)throw Error(n(90));Me(d),it(d,y)}}}break;case"textarea":mn(s,c);break;case"select":o=c.value,o!=null&&Nn(s,!!c.multiple,o,!1)}},qg=lh,Kg=Ws;var GR={usingClientEntryPoint:!1,Events:[ca,Lo,sc,Wg,Hg,lh]},Ca={findFiberByHostInstance:Is,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},XR={bundleType:Ca.bundleType,version:Ca.version,rendererPackageName:Ca.rendererPackageName,rendererConfig:Ca.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Xg(s),s===null?null:s.stateNode},findFiberByHostInstance:Ca.findFiberByHostInstance||QR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uc.isDisabled&&Uc.supportsFiber)try{Bl=Uc.inject(XR),Zn=Uc}catch{}}return Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GR,Zt.createPortal=function(s,o){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yh(o))throw Error(n(200));return KR(s,o,null,c)},Zt.createRoot=function(s,o){if(!yh(s))throw Error(n(299));var c=!1,d="",y=E0;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),o=ph(s,1,!1,null,null,c,!1,d,y),s[wr]=o.current,ia(s.nodeType===8?s.parentNode:s),new gh(o)},Zt.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Xg(o),s=s===null?null:s.stateNode,s},Zt.flushSync=function(s){return Ws(s)},Zt.hydrate=function(s,o,c){if(!Vc(o))throw Error(n(200));return zc(null,s,o,!0,c)},Zt.hydrateRoot=function(s,o,c){if(!yh(s))throw Error(n(405));var d=c!=null&&c.hydratedSources||null,y=!1,x="",P=E0;if(c!=null&&(c.unstable_strictMode===!0&&(y=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onRecoverableError!==void 0&&(P=c.onRecoverableError)),o=S0(o,null,s,1,c??null,y,!1,x,P),s[wr]=o.current,ia(s),d)for(s=0;s<d.length;s++)c=d[s],y=c._getVersion,y=y(c._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[c,y]:o.mutableSourceEagerHydrationData.push(c,y);return new Bc(o)},Zt.render=function(s,o,c){if(!Vc(o))throw Error(n(200));return zc(null,s,o,!1,c)},Zt.unmountComponentAtNode=function(s){if(!Vc(s))throw Error(n(40));return s._reactRootContainer?(Ws(function(){zc(null,null,s,!1,function(){s._reactRootContainer=null,s[wr]=null})}),!0):!1},Zt.unstable_batchedUpdates=lh,Zt.unstable_renderSubtreeIntoContainer=function(s,o,c,d){if(!Vc(c))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return zc(s,o,c,!1,d)},Zt.version="18.3.1-next-f1338f8080-20240426",Zt}var j0;function e1(){if(j0)return bh.exports;j0=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(),bh.exports=o_(),bh.exports}var D0;function i_(){if(D0)return Wc;D0=1;var e=e1();return Wc.createRoot=e.createRoot,Wc.hydrateRoot=e.hydrateRoot,Wc}var a_=i_();const l_=hm(a_),c_=20,u_=1e6,Mr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Eh=0;function d_(){return Eh=(Eh+1)%Number.MAX_VALUE,Eh.toString()}const Ph=new Map,I0=e=>{if(Ph.has(e))return;const t=setTimeout(()=>{Ph.delete(e),qa({type:Mr.REMOVE_TOAST,toastId:e})},u_);Ph.set(e,t)},f_=(e,t)=>{switch(t.type){case Mr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,c_)};case Mr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Mr.DISMISS_TOAST:{const{toastId:n}=t;return n?I0(n):e.toasts.forEach(r=>{I0(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Mr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},du=[];let fu={toasts:[]};function qa(e){fu=f_(fu,e),du.forEach(t=>{t(fu)})}function t1({...e}){const t=d_(),n=i=>qa({type:Mr.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>qa({type:Mr.DISMISS_TOAST,toastId:t});return qa({type:Mr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function h_(){const[e,t]=v.useState(fu);return v.useEffect(()=>(du.push(t),()=>{const n=du.indexOf(t);n>-1&&du.splice(n,1)}),[e]),{...e,toast:t1,dismiss:n=>qa({type:Mr.DISMISS_TOAST,toastId:n})}}function n1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=n1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function r1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=n1(e))&&(r&&(r+=" "),r+=t);return r}const L0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,F0=r1,mm=(e,t)=>
vendor: 9,964 bytes, lines 40-180
40n=>{var r;if((t==null?void 0:t.variants)==null)return F0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(h=>{const p=n==null?void 0:n[h],m=a==null?void 0:a[h];if(p===null)return null;const w=L0(p)||L0(m);return i[h][w]}),u=n&&Object.entries(n).reduce((h,p)=>{let[m,w]=p;return w===void 0||(h[m]=w),h},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,p)=>{let{class:m,className:w,...S}=p;return Object.entries(S).every(E=>{let[b,C]=E;return Array.isArray(C)?C.includes({...a,...u}[b]):{...a,...u}[b]===C})?[...h,m,w]:h},[]);return F0(e,l,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 p_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.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 m_={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 g_=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:l,...u},f)=>v.createElement("svg",{ref:f,...m_,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:s1("lucide",i),...u},[...l.map(([h,p])=>v.createElement(h,p)),...Array.isArray(a)?a:[a]]));/** 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 Ue=(e,t)=>{const n=v.forwardRef(({className:r,...i},a)=>v.createElement(g_,{ref:a,iconNode:t,className:s1(`lucide-${p_(e)}`,r),...i}));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 y_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],v_=Ue("ArrowLeft",y_);/** 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 x_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],o1=Ue("ArrowRight",x_);/** 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 w_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],b_=Ue("Bell",w_);/** 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 S_=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],i1=Ue("CalendarCheck",S_);/** 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 C_=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],E_=Ue("Calendar",C_);/** 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 P_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],a1=Ue("Check",P_);/** 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 k_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gu=Ue("ChevronDown",k_);/** 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 T_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],R_=Ue("ChevronLeft",T_);/** 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 __=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],l1=Ue("ChevronRight",__);/** 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 A_=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],c1=Ue("ChevronUp",A_);/** 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 N_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xu=Ue("CircleCheck",N_);/** 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 M_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],u1=Ue("CircleX",M_);/** 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 O_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],j_=Ue("Circle",O_);/** 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 D_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Ju=Ue("Clock",D_);/** 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 I_=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],B0=Ue("Download",I_);/** 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 L_=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],d1=Ue("FileText",L_);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const F_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Si=Ue("LoaderCircle",F_);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const B_=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ho=Ue("Lock",B_);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const V_=[["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"}]],go=Ue("Mail",V_);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const z_=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],f1=Ue("MapPin",z_);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const U_=[["path",{d:"M5 12h14",key:"1ays0h"}]],$_=Ue("Minus",U_);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const W_=[["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"}]],H_=Ue("Phone",W_);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const q_=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],K_=Ue("Search",q_);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const Q_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 5,079 bytes, lines 180-210
180y:"oel41y"}]],V0=Ue("Shield",Q_);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const Y_=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],G_=Ue("TrendingUp",Y_);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const X_=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],J_=Ue("TriangleAlert",X_);/** 191 * @license lucide-react v0.475.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const Z_=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],eA=Ue("UserPlus",Z_);/** 196 * @license lucide-react v0.475.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const tA=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],nA=Ue("User",tA);/** 201 * @license lucide-react v0.475.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const rA=[["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"}]],sA=Ue("Users",rA);/** 206 * @license lucide-react v0.475.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const oA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],iA=Ue("X",oA),aA=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},lA=(e,t)=>({classGroupId:e,validator:t}),h1=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Tu="-",z0=[],cA="arbitrary..",uA=e=>{const t=fA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return dA(l);const u=l.split(Tu),f=u[0]===""&&u.length>1?1:0;return p1(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const f=r[l],h=n[l];return f?h?aA(h,f):f:h||z0}return n[l]||z0}}},p1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const h=p1(e,t+1,a);if(h)return h}const l=n.validators;if(l===null)return;const u=t===0?e.join(Tu):e.slice(t).join(Tu),f=l.length;for(let h=0;h<f;h++){const p=l[h];if(p.validator(u))return p.classGroupId}},dA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?cA+r:void 0})(),fA=e=>{const{theme:t,classGroups:n}=e;return hA(n,t)},hA=(e,t)=>{const n=h1();for(const r in e){const i=e[r];gm(i,n,r,t)}return n},gm=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];pA(l,t,n,r)}},pA=(e,t,n,r)=>{if(typeof e=="string"){mA(e,t,n);return}if(typeof e=="function"){gA(e,t,n,r);return}yA(e,t,n,r)},mA=(e,t,n)=>{const r=e===""?t:m1(t,e);r.classGroupId=n},gA=(e,t,n,r)=>{if(vA(e)){gm(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(lA(n,e))},yA=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[u,f]=i[l];gm(f,m1(t,u),n,r)}},m1=(e,t)=>{let n=e;const r=t.split(Tu),i=r.length;for(let a=0;a<i;a++){const l=r[a];let u=n.nextPart.get(l);u||(u=h1(),n.nextPart.set(l,u)),n=u}return n},vA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,xA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},lp="!",U0=":",wA=[],$0=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),bA=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,u=0,f=0,h;const p=i.length;for(let b=0;b<p;b++){const C=i[b];if(l===0&&u===0){if(C===U0){a.push(i.slice(f,b)),f=b+1;continue}if(C==="/"){h=b;continue}}C==="["?l++:C==="]"?l--:C==="("?u++:C===")"&&u--}const m=a.length===0?i:i.slice(f);let w=m,S=!1;m.endsWith(lp)?(w=m.slice(0,-1),S=!0):m.startsWith(lp)&&(w=m.slice(1),S=!0);const E=h&&h>f?h-f:void 0;return $0(a,S,w,E)};if(t){const i=t+U0,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):$0(wA,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},SA=e=>{const t=new Map;
vendor: 5,459 bytes, line 210
210return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],u=l[0]==="[",f=t.has(l);u||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},CA=e=>({cache:xA(e.cacheSize),parseClassName:bA(e),sortModifiers:SA(e),...uA(e)}),EA=/\s+/,PA=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,l=[],u=e.trim().split(EA);let f="";for(let h=u.length-1;h>=0;h-=1){const p=u[h],{isExternal:m,modifiers:w,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:b}=n(p);if(m){f=p+(f.length>0?" "+f:f);continue}let C=!!b,k=r(C?E.substring(0,b):E);if(!k){if(!C){f=p+(f.length>0?" "+f:f);continue}if(k=r(E),!k){f=p+(f.length>0?" "+f:f);continue}C=!1}const T=w.length===0?"":w.length===1?w[0]:a(w).join(":"),R=S?T+lp:T,_=R+k;if(l.indexOf(_)>-1)continue;l.push(_);const N=i(k,C);for(let L=0;L<N.length;++L){const B=N[L];l.push(R+B)}f=p+(f.length>0?" "+f:f)}return f},kA=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=g1(n))&&(i&&(i+=" "),i+=r);return i},g1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=g1(e[r]))&&(n&&(n+=" "),n+=t);return n},TA=(e,...t)=>{let n,r,i,a;const l=f=>{const h=t.reduce((p,m)=>m(p),e());return n=CA(h),r=n.cache.get,i=n.cache.set,a=u,u(f)},u=f=>{const h=r(f);if(h)return h;const p=PA(f,n);return i(f,p),p};return a=l,(...f)=>a(kA(...f))},RA=[],bt=e=>{const t=n=>n[e]||RA;return t.isThemeGetter=!0,t},y1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_A=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,AA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NA=/\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$/,MA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,OA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ss=e=>_A.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),os=e=>!!e&&Number.isInteger(Number(e)),kh=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),Rr=e=>AA.test(e),x1=()=>!0,DA=e=>NA.test(e)&&!MA.test(e),ym=()=>!1,IA=e=>OA.test(e),LA=e=>jA.test(e),FA=e=>!me(e)&&!ve(e),BA=e=>ks(e,S1,ym),me=e=>y1.test(e),Qs=e=>ks(e,C1,DA),W0=e=>ks(e,KA,Oe),VA=e=>ks(e,P1,x1),zA=e=>ks(e,E1,ym),H0=e=>ks(e,w1,ym),UA=e=>ks(e,b1,LA),Hc=e=>ks(e,k1,IA),ve=e=>v1.test(e),Pa=e=>So(e,C1),$A=e=>So(e,E1),q0=e=>So(e,w1),WA=e=>So(e,S1),HA=e=>So(e,b1),qc=e=>So(e,k1,!0),qA=e=>So(e,P1,!0),ks=(e,t,n)=>{const r=y1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},So=(e,t,n=!1)=>{const r=v1.exec(e);return r?r[1]?t(r[1]):n:!1},w1=e=>e==="position"||e==="percentage",b1=e=>e==="image"||e==="url",S1=e=>e==="length"||e==="size"||e==="bg-size",C1=e=>e==="length",KA=e=>e==="number",E1=e=>e==="family-name",P1=e=>e==="number"||e==="weight",k1=e=>e==="shadow",QA=()=>{const e=bt("color"),t=bt("font"),n=bt("text"),r=bt("font-weight"),i=bt("tracking"),a=bt("leading"),l=bt("breakpoint"),u=bt("container"),f=bt("spacing"),h=bt("radius"),p=bt("shadow"),m=bt("inset-shadow"),w=bt("text-shadow"),S=bt("drop-shadow"),E=bt("blur"),b=bt("perspective"),C=bt("aspect"),k=bt("ease"),T=bt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[..._(),ve,me],L=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],j=()=>[ve,me,f],K=()=>[ss,"full","auto",...j()],G=()=>[os,"none","subgrid",ve,me],J=()=>["auto",{span:["full",os,ve,me]},os,ve,me],se=()=>[os,"auto",ve,me],re=()=>["auto","min","max","fr",ve,me],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...j()],ne=()=>[ss,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],U=()=>[ss,"screen","full","dvw","lvw","svw","min","max","fit",...j()],H=()=>[ss,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],z=()=>[e,ve,me],M=()=>[..._(),q0,H0,{position:[ve,me]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",WA,BA,{size:[ve,me]}],de=()=>[kh,Pa,Qs],le=()=>["","none","full",h,ve,me],fe=()=>["",Oe,Pa,Qs],te=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Oe,kh,q0,H0],Te=()=>["","none",E,ve,me],Ne=()=>["none",Oe,ve,me],Me=()=>["none",Oe,ve,me],Je=()=>[Oe,ve,me],ye=()=>[ss,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rr],breakpoint:[Rr],color:[x1],container:[Rr],"drop-shadow":[Rr],ease:["in","out","in-out"],font:[FA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rr],shadow:[Rr],spacing:["px",Oe],text:[Rr],"text-shadow":[Rr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ss,me,ve,C]}
vendor: 6,081 bytes, line 210
210],container:["container"],columns:[{columns:[Oe,me,ve,u]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:N()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[os,"auto",ve,me]}],basis:[{basis:[ss,"full","auto",u,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,ss,"auto","initial","none",me]}],grow:[{grow:["",Oe,ve,me]}],shrink:[{shrink:["",Oe,ve,me]}],order:[{order:[os,"first","last","none",ve,me]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:J()}],"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":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mbs:[{mbs:Z()}],mbe:[{mbe:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[u,"screen",...ne()]}],"min-w":[{"min-w":[u,"screen","none",...ne()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",n,Pa,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,qA,VA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kh,me]}],"font-family":[{font:[$A,zA,t]}],"font-features":[{"font-features":[me]}],"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:[i,ve,me]}],"line-clamp":[{"line-clamp":[Oe,"none",ve,W0]}],leading:[{leading:[a,...j()]}],"list-image":[{"list-image":["none",ve,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",ve,Qs]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Oe,"auto",ve,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,me]}],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",ve,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},os,ve,me],radial:["",ve,me],conic:[os,ve,me]},HA,UA]}],"bg-color":[{bg:z()}
vendor: 9,433 bytes, line 210
210],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],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:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,ve,me]}],"outline-w":[{outline:["",Oe,Pa,Qs]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",p,qc,Hc]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",m,qc,Hc]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Oe,Qs]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",w,qc,Hc]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Oe,ve,me]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"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":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ve,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,me]}],filter:[{filter:["","none",ve,me]}],blur:[{blur:Te()}],brightness:[{brightness:[Oe,ve,me]}],contrast:[{contrast:[Oe,ve,me]}],"drop-shadow":[{"drop-shadow":["","none",S,qc,Hc]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Oe,ve,me]}],"hue-rotate":[{"hue-rotate":[Oe,ve,me]}],invert:[{invert:["",Oe,ve,me]}],saturate:[{saturate:[Oe,ve,me]}],sepia:[{sepia:["",Oe,ve,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,me]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,ve,me]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,ve,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,ve,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,ve,me]}],"backdrop-invert":[{"backdrop-invert":["",Oe,ve,me]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,ve,me]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,ve,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,ve,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",ve,me]}],ease:[{ease:["linear","initial",k,ve,me]}],delay:[{delay:[Oe,ve,me]}],animate:[{animate:["none",T,ve,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ve,me]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Je()}],"skew-x":[{"skew-x":Je()}],"skew-y":[{"skew-y":Je()}],transform:[{transform:[ve,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",ve,me]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ve,me]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Oe,Pa,Qs,W0]}],stroke:[{stroke:["none",...z()]}
210],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},YA=TA(QA);function He(...e){return YA(r1(e))}const T1=v.forwardRef(({...e},t)=>g.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}));T1.displayName="ToastProvider";const R1=v.forwardRef(({...e},t)=>g.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}));R1.displayName="ToastViewport";const GA=mm("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"}}),_1=v.forwardRef(({className:e,variant:t,...n},r)=>g.jsx("div",{ref:r,className:He(GA({variant:t}),e),...n}));_1.displayName="Toast";const XA=v.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:He("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}));
210XA.displayName="ToastAction";const A1=v.forwardRef(({className:e,...t},n)=>g.jsx("button",{ref:n,className:He("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:g.jsx(iA,{className:"h-4 w-4"})}));A1.displayName="ToastClose";const N1=v.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:He("text-sm font-semibold",e),...t}));N1.displayName="ToastTitle";const M1=v.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:He("text-sm opacity-90",e),...t}));M1.displayName="ToastDescription";function JA(){const{toasts:e}=h_();return g.jsxs(T1,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return g.jsxs(_1,{...a,children:[g.jsxs("div",{className:"grid gap-1",children:[n&&g.jsx(N1,{children:n}),r&&g.jsx(M1,{children:r})]}),i,g.jsx(A1,{})]},t)}),g.jsx(R1,{})]})}var xl=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(){}},ZA={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},us,fm,Wb,e2=(Wb=class{constructor(){Ee(this,us,ZA);Ee(this,fm,!1)}setTimeoutProvider(e){ce(this,us,e)}setTimeout(e,t){return D(this,us).setTimeout(e,t)}clearTimeout(e){D(this,us).clearTimeout(e)}setInterval(e,t){return D(this,us).setInterval(e,t)}clearInterval(e){D(this,us).clearInterval(e)}},us=new WeakMap,fm=new WeakMap,Wb),eo=new e2;function t2(e){setTimeout(e,0)}var yo=typeof window>"u"||"Deno"in globalThis;function nn(){}function n2(e,t){return typeof e=="function"?e(t):e}function cp(e){return typeof e=="number"&&e>=0&&e!==1/0}function O1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xs(e,t){return typeof e=="function"?e(t):e}function Rn(e,t){return typeof e=="function"?e(t):e}function K0(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==vm(l,t.options))return!1}else if(!Za(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function Q0(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ja(t.options.mutationKey)!==Ja(a))return!1}else if(!Za(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function vm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ja)(e)}function Ja(e){return JSON.stringify(e,(t,n)=>dp(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Za(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Za(e[n],t[n])):!1}var r2=Object.prototype.hasOwnProperty;function j1(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Y0(e)&&Y0(t);if(!r&&!(dp(e)&&dp(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,f=r?new Array(u):{};let h=0;for(let p=0;p<u;p++){const m=r?p:l[p],w=e[m],S=t[m];if(w===S){f[m]=w,(r?p<a:r2.call(e,m))&&h++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){f[m]=S;continue}const E=j1(w,S,n+1);f[m]=E,E===w&&h++}return a===u&&h===a?e:f}function up(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 Y0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dp(e){if(!G0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!G0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function G0(e){return Object.prototype.toString.call(e)==="[object Object]"}function s2(e){return new Promise(t=>{eo.setTimeout(t,e)})}function fp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?j1(e,t):t}function o2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function i2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xm=Symbol();function D1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function I1(e,t){return typeof e=="function"?e(...t):!!e}function a2(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var ro,ds,ui,Hb,l2=(Hb=class extends xl{constructor(){super();Ee(this,ro);Ee(this,ds);Ee(this,ui);ce(this,ui,t=>{if(!yo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}
vendor: 2,857 bytes, line 210
210onSubscribe(){D(this,ds)||this.setEventListener(D(this,ui))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,ds))==null||t.call(this),ce(this,ds,void 0))}setEventListener(t){var n;ce(this,ui,t),(n=D(this,ds))==null||n.call(this),ce(this,ds,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,ro)!==t&&(ce(this,ro,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,ro)=="boolean"?D(this,ro):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ro=new WeakMap,ds=new WeakMap,ui=new WeakMap,Hb),wm=new l2;function hp(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var c2=t2;function u2(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=c2;const a=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Ot=u2(),di,fs,fi,qb,d2=(qb=class extends xl{constructor(){super();Ee(this,di,!0);Ee(this,fs);Ee(this,fi);ce(this,fi,t=>{if(!yo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,fs)||this.setEventListener(D(this,fi))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,fs))==null||t.call(this),ce(this,fs,void 0))}setEventListener(t){var n;ce(this,fi,t),(n=D(this,fs))==null||n.call(this),ce(this,fs,t(this.setOnline.bind(this)))}setOnline(t){D(this,di)!==t&&(ce(this,di,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,di)}},di=new WeakMap,fs=new WeakMap,fi=new WeakMap,qb),Ru=new d2;function f2(e){return Math.min(1e3*2**e,3e4)}function L1(e){return(e??"online")==="online"?Ru.isOnline():!0}var pp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function F1(e){let t=!1,n=0,r;const i=hp(),a=()=>i.status!=="pending",l=b=>{var C;if(!a()){const k=new pp(b);w(k),(C=e.onCancel)==null||C.call(e,k)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>wm.isFocused()&&(e.networkMode==="always"||Ru.isOnline())&&e.canRun(),p=()=>L1(e.networkMode)&&e.canRun(),m=b=>{a()||(r==null||r(),i.resolve(b))},w=b=>{a()||(r==null||r(),i.reject(b))},S=()=>new Promise(b=>{var C;r=k=>{(a()||h())&&b(k)},(C=e.onPause)==null||C.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),E=()=>
vendor: 3,826 bytes, line 210
210{if(a())return;let b;const C=n===0?e.initialPromise:void 0;try{b=C??e.fn()}catch(k){b=Promise.reject(k)}Promise.resolve(b).then(m).catch(k=>{var L;if(a())return;const T=e.retry??(yo?0:3),R=e.retryDelay??f2,_=typeof R=="function"?R(n,k):R,N=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,k);if(t||!N){w(k);return}n++,(L=e.onFail)==null||L.call(e,n,k),s2(_).then(()=>h()?void 0:S()).then(()=>{t?w(k):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?E():S().then(E),i)}}var so,Kb,B1=(Kb=class{constructor(){Ee(this,so)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cp(this.gcTime)&&ce(this,so,eo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(yo?1/0:300*1e3))}clearGcTimeout(){D(this,so)&&(eo.clearTimeout(D(this,so)),ce(this,so,void 0))}},so=new WeakMap,Kb),oo,hi,Tn,io,Pt,pl,ao,Wn,_r,Qb,h2=(Qb=class extends B1{constructor(t){super();Ee(this,Wn);Ee(this,oo);Ee(this,hi);Ee(this,Tn);Ee(this,io);Ee(this,Pt);Ee(this,pl);Ee(this,ao);ce(this,ao,!1),ce(this,pl,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,io,t.client),ce(this,Tn,D(this,io).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,oo,J0(this.options)),this.state=t.state??D(this,oo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,Pt))==null?void 0:t.promise}setOptions(t){if(this.options={...D(this,pl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=J0(this.options);n.data!==void 0&&(this.setState(X0(n.data,n.dataUpdatedAt)),ce(this,oo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Tn).remove(this)}setData(t,n){const r=fp(this.state.data,t,this.options);return De(this,Wn,_r).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){De(this,Wn,_r).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=D(this,Pt))==null?void 0:r.promise;return(i=D(this,Pt))==null||i.cancel(t),n?n.then(nn).catch(nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,oo))}isActive(){return this.observers.some(t=>Rn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>xs(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:!O1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,Pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,Pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Tn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,Pt)&&(D(this,ao)?D(this,Pt).cancel({revert:!0}):D(this,Pt).cancelRetry()),this.scheduleGc()),D(this,Tn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||De(this,Wn,_r).call(this,{type:"invalidate"})}
210async fetch(t,n){var f,h,p,m,w,S,E,b,C,k,T,R;if(this.state.fetchStatus!=="idle"&&((f=D(this,Pt))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,Pt))return D(this,Pt).continueRetry(),D(this,Pt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(N=>N.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,i=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(ce(this,ao,!0),r.signal)})},a=()=>{const _=D1(this.options,n),L=(()=>{const B={client:D(this,io),queryKey:this.queryKey,meta:this.meta};return i(B),B})();return ce(this,ao,!1),this.options.persister?this.options.persister(_,L,this):_(L)},u=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,io),state:this.state,fetchFn:a};return i(_),_})();(h=this.options.behavior)==null||h.onFetch(u,this),ce(this,hi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&De(this,Wn,_r).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta}),ce(this,Pt,F1({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:_=>{_ instanceof pp&&_.revert&&this.setState({...D(this,hi),fetchStatus:"idle"}),r.abort()},onFail:(_,N)=>{De(this,Wn,_r).call(this,{type:"failed",failureCount:_,error:N})},onPause:()=>{De(this,Wn,_r).call(this,{type:"pause"})},onContinue:()=>{De(this,Wn,_r).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const _=await D(this,Pt).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(S=(w=D(this,Tn).config).onSuccess)==null||S.call(w,_,this),(b=(E=D(this,Tn).config).onSettled)==null||b.call(E,_,this.state.error,this),_}catch(_){if(_ instanceof pp){if(_.silent)return D(this,Pt).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw De(this,Wn,_r).call(this,{type:"error",error:_}),(k=(C=D(this,Tn).config).onError)==null||k.call(C,_,this),(R=(T=D(this,Tn).config).onSettled)==null||R.call(T,this.state.data,_,this),_}finally{this.scheduleGc()}}},oo=new WeakMap,hi=new WeakMap,Tn=new WeakMap,io=new WeakMap,Pt=new WeakMap,pl=new WeakMap,ao=new WeakMap,Wn=new WeakSet,_r=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...V1(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...X0(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,hi,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ot.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,Tn).notify({query:this,type:"updated",action:t})})},Qb);function V1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function X0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function J0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var en,Ie,ml,qt,lo,pi,Ar,hs,gl,mi,gi,co,uo,ps,yi,ze,ja,mp,gp,yp,vp,xp,wp,bp,z1,Yb,p2=(Yb=class extends xl{constructor(t,n){super();Ee(this,ze);Ee(this,en);Ee(this,Ie);Ee(this,ml);Ee(this,qt);Ee(this,lo);Ee(this,pi);Ee(this,Ar);Ee(this,hs);Ee(this,gl);Ee(this,mi);Ee(this,gi);Ee(this,co);Ee(this,uo);Ee(this,ps);Ee(this,yi,new Set);
vendor: 4,123 bytes, line 210
210this.options=n,ce(this,en,t),ce(this,hs,null),ce(this,Ar,hp()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Ie).addObserver(this),Z0(D(this,Ie),this.options)?De(this,ze,ja).call(this):this.updateResult(),De(this,ze,vp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sp(D(this,Ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sp(D(this,Ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,De(this,ze,xp).call(this),De(this,ze,wp).call(this),D(this,Ie).removeObserver(this)}setOptions(t){const n=this.options,r=D(this,Ie);if(this.options=D(this,en).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Rn(this.options.enabled,D(this,Ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");De(this,ze,bp).call(this),D(this,Ie).setOptions(this.options),n._defaulted&&!up(this.options,n)&&D(this,en).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Ie),observer:this});const i=this.hasListeners();i&&ex(D(this,Ie),r,this.options,n)&&De(this,ze,ja).call(this),this.updateResult(),i&&(D(this,Ie)!==r||Rn(this.options.enabled,D(this,Ie))!==Rn(n.enabled,D(this,Ie))||xs(this.options.staleTime,D(this,Ie))!==xs(n.staleTime,D(this,Ie)))&&De(this,ze,mp).call(this);const a=De(this,ze,gp).call(this);i&&(D(this,Ie)!==r||Rn(this.options.enabled,D(this,Ie))!==Rn(n.enabled,D(this,Ie))||a!==D(this,ps))&&De(this,ze,yp).call(this,a)}getOptimisticResult(t){const n=D(this,en).getQueryCache().build(D(this,en),t),r=this.createResult(n,t);return g2(this,r)&&(ce(this,qt,r),ce(this,pi,this.options),ce(this,lo,D(this,Ie).state)),r}getCurrentResult(){return D(this,qt)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&D(this,Ar).status==="pending"&&D(this,Ar).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){D(this,yi).add(t)}getCurrentQuery(){return D(this,Ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=D(this,en).defaultQueryOptions(t),r=D(this,en).getQueryCache().build(D(this,en),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return De(this,ze,ja).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,qt)))}createResult(t,n){var K;const r=D(this,Ie),i=this.options,a=D(this,qt),l=D(this,lo),u=D(this,pi),h=t!==r?t.state:D(this,ml),{state:p}=t;let m={...p},w=!1,S;if(n._optimisticResults){const G=this.hasListeners(),J=!G&&Z0(t,n),se=G&&ex(t,r,n,i);(J||se)&&(m={...m,...V1(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:E,errorUpdatedAt:b,status:C}=m;S=m.data;let k=!1;if(n.placeholderData!==void 0&&S===void 0&&C==="pending"){let G;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(G=a.data,k=!0):G=typeof n.placeholderData=="function"?n.placeholderData((K=D(this,gi))==null?void 0:K.state.data,D(this,gi)):n.placeholderData,G!==void 0&&(C="success",S=fp(a==null?void 0:a.data,G,n),w=!0)}if(n.select&&S!==void 0&&!k)if(a&&S===(l==null?void 0:l.data)&&n.select===D(this,gl))S=D(this,mi);else try{ce(this,gl,n.select),S=n.select(S),S=fp(a==null?void 0:a.data,S,n),ce(this,mi,S),ce(this,hs,null)}catch(G){ce(this,hs,G)}D(this,hs)&&(E=D(this,hs),S=D(this,mi),b=Date.now(),C="error");const T=m.fetchStatus==="fetching",R=C==="pending",_=C==="error",N=R&&T,L=S!==void 0,j={status:C,fetchStatus:m.fetchStatus,isPending:R,isSuccess:C==="success",isError:_,isInitialLoading:N,isLoading:N,data:S,dataUpdatedAt:m.dataUpdatedAt,error:E,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>
vendor: 5,932 bytes, line 210
210h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:_&&!L,isPaused:m.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:_&&L,isStale:bm(t,n),refetch:this.refetch,promise:D(this,Ar),isEnabled:Rn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=j.data!==void 0,J=j.status==="error"&&!G,se=be=>{J?be.reject(j.error):G&&be.resolve(j.data)},re=()=>{const be=ce(this,Ar,j.promise=hp());se(be)},oe=D(this,Ar);switch(oe.status){case"pending":t.queryHash===r.queryHash&&se(oe);break;case"fulfilled":(J||j.data!==oe.value)&&re();break;case"rejected":(!J||j.error!==oe.reason)&&re();break}}return j}updateResult(){const t=D(this,qt),n=this.createResult(D(this,Ie),this.options);if(ce(this,lo,D(this,Ie).state),ce(this,pi,this.options),D(this,lo).data!==void 0&&ce(this,gi,D(this,Ie)),up(n,t))return;ce(this,qt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!D(this,yi).size)return!0;const l=new Set(a??D(this,yi));return this.options.throwOnError&&l.add("error"),Object.keys(D(this,qt)).some(u=>{const f=u;return D(this,qt)[f]!==t[f]&&l.has(f)})};De(this,ze,z1).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&De(this,ze,vp).call(this)}},en=new WeakMap,Ie=new WeakMap,ml=new WeakMap,qt=new WeakMap,lo=new WeakMap,pi=new WeakMap,Ar=new WeakMap,hs=new WeakMap,gl=new WeakMap,mi=new WeakMap,gi=new WeakMap,co=new WeakMap,uo=new WeakMap,ps=new WeakMap,yi=new WeakMap,ze=new WeakSet,ja=function(t){De(this,ze,bp).call(this);let n=D(this,Ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(nn)),n},mp=function(){De(this,ze,xp).call(this);const t=xs(this.options.staleTime,D(this,Ie));if(yo||D(this,qt).isStale||!cp(t))return;const r=O1(D(this,qt).dataUpdatedAt,t)+1;ce(this,co,eo.setTimeout(()=>{D(this,qt).isStale||this.updateResult()},r))},gp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Ie)):this.options.refetchInterval)??!1},yp=function(t){De(this,ze,wp).call(this),ce(this,ps,t),!(yo||Rn(this.options.enabled,D(this,Ie))===!1||!cp(D(this,ps))||D(this,ps)===0)&&ce(this,uo,eo.setInterval(()=>{(this.options.refetchIntervalInBackground||wm.isFocused())&&De(this,ze,ja).call(this)},D(this,ps)))},vp=function(){De(this,ze,mp).call(this),De(this,ze,yp).call(this,De(this,ze,gp).call(this))},xp=function(){D(this,co)&&(eo.clearTimeout(D(this,co)),ce(this,co,void 0))},wp=function(){D(this,uo)&&(eo.clearInterval(D(this,uo)),ce(this,uo,void 0))},bp=function(){const t=D(this,en).getQueryCache().build(D(this,en),this.options);if(t===D(this,Ie))return;const n=D(this,Ie);ce(this,Ie,t),ce(this,ml,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},z1=function(t){Ot.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(D(this,qt))}),D(this,en).getQueryCache().notify({query:D(this,Ie),type:"observerResultsUpdated"})})},Yb);function m2(e,t){return Rn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Z0(e,t){return m2(e,t)||e.state.data!==void 0&&Sp(e,t,t.refetchOnMount)}function Sp(e,t,n){if(Rn(t.enabled,e)!==!1&&xs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&bm(e,t)}return!1}function ex(e,t,n,r){return(e!==t||Rn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&bm(e,n)}function bm(e,t){return Rn(t.enabled,e)!==!1&&e.isStaleByTime(xs(t.staleTime,e))}function g2(e,t){return!up(e.getCurrentResult(),t)}function tx(e){return{onFetch:(t,n)=>{var p,m,w,S,E;const r=t.options,i=(w=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:w.direction,a=((S=t.state.data)==null?void 0:S.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let b=!1;const C=R=>{a2(R,()=>t.signal,()=>b=!0)},k=D1(t.options,t.fetchOptions),T=async(R,_,N)=>{if(b)return Promise.reject();if(_==null&&R.pages.length)return Promise.resolve(R);const B=(()=>{const J={client:t.client,queryKey:t.queryKey,pageParam:_,direction:N?"backward":"forward",meta:t.options.meta};return C(J),J})(),j=await k(B),{maxPages:K}=t.options,G=N?i2:o2;return{pages:G(R.pages,j,K),pageParams:G(R.pageParams,_,K)}};if(i&&a.length){const R=i==="backward",_=R?y2:nx,N={pages:a,pageParams:l},L=_(r,N);u=await T(N,L,R)}else{const R=e??a.length;do{const _=f===0?l[0]??r.initialPageParam:nx(r,u);if(f>0&&_==null)break;u=await T(u,_),f++}while(f<R)}return u};t.options.persister?t.fetchFn=()=>{var b,C;return(C=(b=t.options).persister)==null?void 0:C.call(b,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function nx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function y2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var yl,or,Ft,fo,ir,as,Gb,v2=(Gb=class extends B1{constructor(t){super();Ee(this,ir);Ee(this,yl);Ee(this,or);Ee(this,Ft);Ee(this,fo);ce(this,yl,t.client),this.mutationId=t.mutationId,ce(this,Ft,t.mutationCache),ce(this,or,[]),this.state=t.state||x2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,or).includes(t)||(D(this,or).push(t),this.clearGcTimeout(),D(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,or,D(this,or).filter(n=>n!==t)),this.scheduleGc(),D(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,or).length||(this.state.status==="pending"?this.scheduleGc():D(this,Ft).remove(this))}continue(){var t;return((t=D(this,fo))==null?void 0:t.continue())??this.execute(this.state.variables)}
210async execute(t){var l,u,f,h,p,m,w,S,E,b,C,k,T,R,_,N,L,B;const n=()=>{De(this,ir,as).call(this,{type:"continue"})},r={client:D(this,yl),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,fo,F1({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(j,K)=>{De(this,ir,as).call(this,{type:"failed",failureCount:j,error:K})},onPause:()=>{De(this,ir,as).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Ft).canRun(this)}));const i=this.state.status==="pending",a=!D(this,fo).canStart();try{if(i)n();else{De(this,ir,as).call(this,{type:"pending",variables:t,isPaused:a}),D(this,Ft).config.onMutate&&await D(this,Ft).config.onMutate(t,this,r);const K=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));K!==this.state.context&&De(this,ir,as).call(this,{type:"pending",context:K,variables:t,isPaused:a})}const j=await D(this,fo).start();return await((h=(f=D(this,Ft).config).onSuccess)==null?void 0:h.call(f,j,t,this.state.context,this,r)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,j,t,this.state.context,r)),await((S=(w=D(this,Ft).config).onSettled)==null?void 0:S.call(w,j,null,this.state.variables,this.state.context,this,r)),await((b=(E=this.options).onSettled)==null?void 0:b.call(E,j,null,t,this.state.context,r)),De(this,ir,as).call(this,{type:"success",data:j}),j}catch(j){try{await((k=(C=D(this,Ft).config).onError)==null?void 0:k.call(C,j,t,this.state.context,this,r))}catch(K){Promise.reject(K)}try{await((R=(T=this.options).onError)==null?void 0:R.call(T,j,t,this.state.context,r))}catch(K){Promise.reject(K)}try{await((N=(_=D(this,Ft).config).onSettled)==null?void 0:N.call(_,void 0,j,this.state.variables,this.state.context,this,r))}catch(K){Promise.reject(K)}try{await((B=(L=this.options).onSettled)==null?void 0:B.call(L,void 0,j,t,this.state.context,r))}catch(K){Promise.reject(K)}throw De(this,ir,as).call(this,{type:"error",error:j}),j}finally{D(this,Ft).runNext(this)}}},yl=new WeakMap,or=new WeakMap,Ft=new WeakMap,fo=new WeakMap,ir=new WeakSet,as=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ot.batch(()=>{D(this,or).forEach(r=>{r.onMutationUpdate(t)}),D(this,Ft).notify({mutation:this,type:"updated",action:t})})},Gb);function x2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nr,Hn,vl,Xb,w2=(Xb=class extends xl{constructor(t={}){super();Ee(this,Nr);Ee(this,Hn);Ee(this,vl);this.config=t,ce(this,Nr,new Set),ce(this,Hn,new Map),ce(this,vl,0)}build(t,n,r){const i=new v2({client:t,mutationCache:this,mutationId:++$c(this,vl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){D(this,Nr).add(t);const n=Kc(t);if(typeof n=="string"){const r=D(this,Hn).get(n);r?r.push(t):D(this,Hn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Nr).delete(t)){const n=Kc(t);if(typeof n=="string"){const r=D(this,Hn).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&D(this,Hn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Kc(t);if(typeof n=="string"){const r=D(this,Hn).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Kc(t);if(typeof n=="string"){const i=(r=D(this,Hn).get(n))==null?void 0:r.find(a=>
vendor: 6,869 bytes, line 210
210a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ot.batch(()=>{D(this,Nr).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Nr).clear(),D(this,Hn).clear()})}getAll(){return Array.from(D(this,Nr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Q0(n,r))}findAll(t={}){return this.getAll().filter(n=>Q0(t,n))}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ot.batch(()=>Promise.all(t.map(n=>n.continue().catch(nn))))}},Nr=new WeakMap,Hn=new WeakMap,vl=new WeakMap,Xb);function Kc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ar,Jb,b2=(Jb=class extends xl{constructor(t={}){super();Ee(this,ar);this.config=t,ce(this,ar,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??vm(i,n);let l=this.get(a);return l||(l=new h2({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){D(this,ar).has(t.queryHash)||(D(this,ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,ar).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,ar).get(t)}getAll(){return[...D(this,ar).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>K0(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>K0(t,r)):n}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ar=new WeakMap,Jb),lt,ms,gs,vi,xi,ys,wi,bi,Zb,S2=(Zb=class{constructor(e={}){Ee(this,lt);Ee(this,ms);Ee(this,gs);Ee(this,vi);Ee(this,xi);Ee(this,ys);Ee(this,wi);Ee(this,bi);ce(this,lt,e.queryCache||new b2),ce(this,ms,e.mutationCache||new w2),ce(this,gs,e.defaultOptions||{}),ce(this,vi,new Map),ce(this,xi,new Map),ce(this,ys,0)}mount(){$c(this,ys)._++,D(this,ys)===1&&(ce(this,wi,wm.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,lt).onFocus())})),ce(this,bi,Ru.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,lt).onOnline())})))}unmount(){var e,t;$c(this,ys)._--,D(this,ys)===0&&((e=D(this,wi))==null||e.call(this),ce(this,wi,void 0),(t=D(this,bi))==null||t.call(this),ce(this,bi,void 0))}isFetching(e){return D(this,lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,ms).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,lt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(xs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,lt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=D(this,lt).get(r.queryHash),a=i==null?void 0:i.state.data,l=n2(t,a);if(l!==void 0)return D(this,lt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Ot.batch(()=>D(this,lt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,lt);Ot.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,lt);return Ot.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ot.batch(()=>D(this,lt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(nn).catch(nn)}invalidateQueries(e,t={}){return Ot.batch(()=>(D(this,lt).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},r=Ot.batch(()=>D(this,lt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(nn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(nn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,lt).build(this,t);return n.isStaleByTime(xs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nn).catch(nn)}fetchInfiniteQuery(e){return e.behavior=tx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nn).catch(nn)}ensureInfiniteQueryData(e){return e.behavior=tx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ru.isOnline()?D(this,ms).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,lt)}getMutationCache(){return D(this,ms)}getDefaultOptions(){return D(this,gs)}setDefaultOptions(e){ce(this,gs,e)}setQueryDefaults(e,t){D(this,vi).set(Ja(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,vi).values()],n={};return t.forEach(r=>{Za(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,xi).set(Ja(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,xi).values()],n={};return t.forEach(r=>{Za(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,gs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=vm(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===xm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,gs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,lt).clear(),D(this,ms).clear()}},lt=new WeakMap,ms=new WeakMap,gs=new WeakMap,vi=new WeakMap,xi=new WeakMap,ys=new WeakMap,wi=new WeakMap,bi=new WeakMap,Zb),U1=v.createContext(void 0),Sm=e=>{const t=v.useContext(U1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},C2=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(U1.Provider,{value:e,children:t})),$1=v.createContext(!1),E2=()=>v.useContext($1);$1.Provider;function P2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
210var k2=v.createContext(P2()),T2=()=>v.useContext(k2),R2=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?I1(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},_2=e=>{v.useEffect(()=>{e.clearReset()},[e])},A2=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||I1(n,[e.error,r])),N2=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},M2=(e,t)=>e.isLoading&&e.isFetching&&!t,O2=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,rx=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function j2(e,t,n){var w,S,E,b;const r=E2(),i=T2(),a=Sm(),l=a.defaultQueryOptions(e);(S=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||S.call(w,l);const u=a.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",N2(l),R2(l,i,u),_2(i);const f=!a.getQueryCache().get(l.queryHash),[h]=v.useState(()=>new t(a,l)),p=h.getOptimisticResult(l),m=!r&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const k=m?h.subscribe(Ot.batchCalls(C)):nn;return h.updateResult(),k},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),v.useEffect(()=>{h.setOptions(l)},[l,h]),O2(l,p))throw rx(l,h,i);if(A2({result:p,errorResetBoundary:i,throwOnError:l.throwOnError,query:u,suspense:l.suspense}))throw p.error;if((b=(E=a.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||b.call(E,l,p),l.experimental_prefetchInRender&&!yo&&M2(p,r)){const C=f?rx(l,h,i):u==null?void 0:u.promise;C==null||C.catch(nn).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?p:h.trackResult(p)}function Cm(e,t){return j2(e,p2)}const D2=new S2({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var wl=e1();const I2=hm(wl);/** 211 * @remix-run/router v1.23.2 212 * 213 * Copyright (c) Remix Software Inc. 214 * 215 * This source code is licensed under the MIT license found in the 216 * LICENSE.md file in the root directory of this source tree. 217 * 218 * @license MIT 219 */function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},el.apply(this,arguments)}var vs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vs||(vs={}));const sx="popstate";function L2(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:l,hash:u}=r.location;return Cp("",{pathname:a,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:_u(i)}return B2(t,n,null,e)}function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Em(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function F2(){return Math.random().toString(36).substr(2,8)}function ox(e,t){return{usr:e.state,key:e.key,idx:t}}function Cp(e,t,n,r){return n===void 0&&(n=null),el({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ni(t):t,{state:n,key:t&&t.key||r||F2()})}function _u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ni(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function B2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,u=vs.Pop,f=null,h=p();h==null&&(h=0,l.replaceState(el({},l.state,{idx:h}),""));function p(){return(l.state||{idx:null}).idx}function m(){u=vs.Pop;let C=p(),k=C==null?null:C-h;h=C,f&&f({action:u,location:b.location,delta:k})}function w(C,k){u=vs.Push;let T=Cp(b.location,C,k);h=p()+1;let R=ox(T,h),_=b.createHref(T);try{l.pushState(R,"",_)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(_)}a&&f&&f({action:u,location:b.location,delta:1})}function S(C,k){u=vs.Replace;let T=Cp(b.location,C,k);h=p();let R=ox(T,h),_=b.createHref(T);l.replaceState(R,"",_),a&&f&&f({action:u,location:b.location,delta:0})}function E(C){let k=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof C=="string"?C:_u(C);return T=T.replace(/ $/,"%20"),ht(k,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,k)}let b={get action(){return u},get location(){return e(i,l)},listen(C){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(sx,m),f=C,()=>{i.removeEventListener(sx,m),f=null}},createHref(C){return t(i,C)},createURL:E,encodeLocation(C){let k=E(C);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:w,replace:S,go(C){return l.go(C)}};return b}var ix;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ix||(ix={}));function V2(e,t,n){return n===void 0&&(n="/"),z2(e,t,n)}function z2(e,t,n,r){let i=typeof t=="string"?Ni(t):t,a=Pm(i.pathname||"/",n);if(a==null)return null;let l=W1(e);U2(l);let u=null;for(let f=0;u==null&&f<l.length;++f){let h=eN(a);u=X2(l[f],h)}return u}function W1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,l,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};f.relativePath.startsWith("/")&&(ht(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not val
219id. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let h=ws([r,f.relativePath]),p=n.concat(f);a.children&&a.children.length>0&&(ht(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),W1(a.children,t,p,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:Y2(h,a.index),routesMeta:p})};return e.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,l);else for(let f of H1(a.path))i(a,l,f)}),t}function H1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let l=H1(r.join("/")),u=[];return u.push(...l.map(f=>f===""?a:[a,f].join("/"))),i&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function U2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:G2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $2=/^:[\w-]+$/,W2=3,H2=2,q2=1,K2=10,Q2=-2,ax=e=>e==="*";function Y2(e,t){let n=e.split("/"),r=n.length;return n.some(ax)&&(r+=Q2),t&&(r+=H2),n.filter(i=>!ax(i)).reduce((i,a)=>i+($2.test(a)?W2:a===""?q2:K2),r)}function G2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function X2(e,t,n){let{routesMeta:r}=e,i={},a="/",l=[];for(let u=0;u<r.length;++u){let f=r[u],h=u===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",m=J2({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),w=f.route;if(!m)return null;
vendor: 11,004 bytes, lines 219-228
219Object.assign(i,m.params),l.push({params:i,pathname:ws([a,m.pathname]),pathnameBase:oN(ws([a,m.pathnameBase])),route:w}),m.pathnameBase!=="/"&&(a=ws([a,m.pathnameBase]))}return l}function J2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Z2(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],l=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((h,p,m)=>{let{paramName:w,isOptional:S}=p;if(w==="*"){let b=u[m]||"";l=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const E=u[m];return S&&!E?h[w]=void 0:h[w]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:l,pattern:e}}function Z2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Em(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function eN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Em(!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 Pm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const tN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nN=e=>tN.test(e);function rN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ni(e):e,a;if(n)if(nN(n))a=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),Em(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?a=lx(n.substring(1),"/"):a=lx(n,t)}else a=t;return{pathname:a,search:iN(r),hash:aN(i)}}function lx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Th(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function sN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function km(e,t){let n=sN(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ni(e):(i=el({},e),ht(!i.pathname||!i.pathname.includes("?"),Th("?","pathname","search",i)),ht(!i.pathname||!i.pathname.includes("#"),Th("#","pathname","hash",i)),ht(!i.search||!i.search.includes("#"),Th("#","search","hash",i)));let a=e===""||i.pathname==="",l=a?"/":i.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let w=l.split("/");for(;w[0]==="..";)w.shift(),m-=1;i.pathname=w.join("/")}u=m>=0?t[m]:"/"}let f=rN(i,u),h=l&&l!=="/"&&l.endsWith("/"),p=(a||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}const ws=e=>e.join("/").replace(/\/\/+/g,"/"),oN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const q1=["post","put","patch","delete"];new Set(q1);const cN=["get",...q1];new Set(cN);/** 220 * React Router v6.30.3 221 * 222 * Copyright (c) Remix Software Inc. 223 * 224 * This source code is licensed under the MIT license found in the 225 * LICENSE.md file in the root directory of this source tree. 226 * 227 * @license MIT 228 */function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(this,arguments)}const Rm=v.createContext(null),uN=v.createContext(null),Ts=v.createContext(null),Zu=v.createContext(null),Fr=v.createContext({outlet:null,matches:[],isDataRoute:!1}),K1=v.createContext(null);function dN(e,t){let{relative:n}=t===void 0?{}:t;Mi()||ht(!1);let{basename:r,navigator:i}=v.useContext(Ts),{hash:a,pathname:l,search:u}=Y1(e,{relative:n}),f=l;return r!=="/"&&(f=l==="/"?r:ws([r,l])),i.createHref({pathname:f,search:u,hash:a})}function Mi(){return v.useContext(Zu)!=null}function Co(){return Mi()||ht(!1),v.useContext(Zu).location}function Q1(e){v.useContext(Ts).static||v.useLayoutEffect(e)}function _m(){let{isDataRoute:e}=v.useContext(Fr);return e?kN():fN()}function fN(){Mi()||ht(!1);let e=v.useContext(Rm),{basename:t,future:n,navigator:r}=v.useContext(Ts),{matches:i}=v.useContext(Fr),{pathname:a}=Co(),l=JSON.stringify(km(i,n.v7_relativeSplatPath)),u=v.useRef(!1);return Q1(()=>{u.current=!0}),v.useCallback(function(h,p){if(p===void 0&&(p={}),!u.current)return;if(typeof h=="number"){r.go(h);return}let m=Tm(h,JSON.parse(l),a,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ws([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,l,a,e])}const hN=v.createContext(null);function pN(e){let t=v.useContext(Fr).outlet;return t&&v.createElement(hN.Provider,{value:e},t)}function Y1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Ts),{matches:i}=v.useContext(Fr),{pathname:a}=Co(),l=JSON.stringify(km(i,r.v7_relativeSplatPath));return v.useMemo(()=>Tm(e,JSON.parse(l),a,n==="path"),[e,l,a,n])}function mN(e,t){return gN(e,t)}function gN(e,t,n,r){Mi()||ht(!1);let{navigator:i}=v.useContext(Ts),{matches:a}=v.useContext(Fr),l=a[a.length-1],u=l?l.params:{};l&&l.pathname;let f=l?l.pathnameBase:"/";l&&l.route;let h=Co(),p;if(t){var m;let C=typeof t=="string"?Ni(t):t;f==="/"||(m=C.pathname)!=null&&m.startsWith(f)||ht(!1),p=C}else p=h;let w=p.pathname||"/",S=w;if(f!=="/"){let C=f.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let E=V2(e,{pathname:S}),b=bN(E&&E.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:ws([f,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:ws([f,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,n,r);return t&&b?v.createElement(Zu.Provider,{value:{location:tl({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:vs.Pop}},b):b}function yN(){let e=PN(),t=lN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,null)}const vN=v.createElement(yN,null);class xN extends v.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?v.createElement(Fr.Provider,{value:this.props.routeContext},v.createElement(K1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wN(e){let{routeContext:t,match:n,children:r}=e,i=v.useContext(Rm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Fr.Provider,{value:t},r)}function bN(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let p=l.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);p>=0||ht(!1),l=l.slice(0,Math.min(l.length,p+1))}let f=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let m=l[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:w,errors:S}=n,E=m.route.loader&&w[m.route.id]===void 0&&(!S||S[m.route.id]===void 0);if(m.route.lazy||E){f=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((p,m,w)=>{let S,E=!1,b=null,C=null;n&&(S=u&&m.route.id?u[m.route.id]:void 0,b=m.route.errorElement||vN,f&&(h<0&&w===0?(TN("route-fallback"),E=!0,C=null):h===w&&(E=!0,C=m.route.hydrateFallbackElement||null)));let k=t.concat(l.slice(0,w+1)),T=()=>{let R;return S?R=b:E?R=C:m.route.Component?R=v.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=p,v.createElement(wN,{match:m,routeContext:{outlet:p,matches:k,isDataRoute:n!=null},children:R})};return n&&(m.route.ErrorBoundary||m.route.errorElement||w===0)?v.createElement(xN,{location:n.location,revalidation:n.revalidation,component:b,error:S,children:T(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):T()},null)}var G1=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(G1||{}),X1=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(X1||{});function SN(e){let t=v.useContext(Rm);return t||ht(!1),t}function CN(e){let t=v.useContext(uN);return t||ht(!1),t}function EN(e){let t=v.useContext(Fr);return t||ht(!1),t}function J1(e){let t=EN(),n=t.matches[t.matches.length-1];return n.route.id||ht(!1),n.route.id}function PN(){var e;let t=v.useContext(K1),n=CN(),r=J1();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function kN(){let{router:e}=SN(G1.UseNavigateStable),t=J1(X1.UseNavigateStable),n=v.useRef(!1);return Q1(()=>{n.current=!0}),v.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,tl({fromRouteId:t},a)))},[e,t])}const cx={};
228function TN(e,t,n){cx[e]||(cx[e]=!0)}function RN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function _N(e){let{to:t,replace:n,state:r,relative:i}=e;Mi()||ht(!1);let{future:a,static:l}=v.useContext(Ts),{matches:u}=v.useContext(Fr),{pathname:f}=Co(),h=_m(),p=Tm(t,km(u,a.v7_relativeSplatPath),f,i==="path"),m=JSON.stringify(p);return v.useEffect(()=>h(JSON.parse(m),{replace:n,state:r,relative:i}),[h,m,i,n,r]),null}function AN(e){return pN(e.context)}function sr(e){ht(!1)}function NN(e){let{basename:t="/",children:n=null,location:r,navigationType:i=vs.Pop,navigator:a,static:l=!1,future:u}=e;Mi()&&ht(!1);let f=t.replace(/^\/*/,"/"),h=v.useMemo(()=>({basename:f,navigator:a,static:l,future:tl({v7_relativeSplatPath:!1},u)}),[f,u,a,l]);typeof r=="string"&&(r=Ni(r));let{pathname:p="/",search:m="",hash:w="",state:S=null,key:E="default"}=r,b=v.useMemo(()=>{let C=Pm(p,f);return C==null?null:{location:{pathname:C,search:m,hash:w,state:S,key:E},navigationType:i}},[f,p,m,w,S,E,i]);return b==null?null:v.createElement(Ts.Provider,{value:h},v.createElement(Zu.Provider,{children:n,value:b}))}function MN(e){let{children:t,location:n}=e;return mN(Ep(t),n)}new Promise(()=>{});function Ep(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,i)=>{if(!v.isValidElement(r))return;let a=[...t,i];if(r.type===v.Fragment){n.push.apply(n,Ep(r.props.children,a));return}r.type!==sr&&ht(!1),!r.props.index||!r.props.children||ht(!1);let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ep(r.props.children,a)),n.push(l)}),n}/** 229 * React Router DOM v6.30.3 230 * 231 * Copyright (c) Remix Software Inc. 232 * 233 * This source code is licensed under the MIT license found in the 234 * LICENSE.md file in the root directory of this source tree. 235 * 236 * @license MIT 237 */function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pp.apply(this,arguments)}function ON(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function DN(e,t){return e.button===0&&(!t||t==="_self")&&!jN(e)}function kp(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function IN(e,t){let n=kp(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const LN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FN="6";try{window.__reactRouterVersion=FN}catch{}const BN="startTransition",ux=Yu[BN];function VN(e){let{basename:t,children:n,future:r,window:i}=e,a=v.useRef();a.current==null&&(a.current=L2({window:i,v5Compat:!0}));let l=a.current,[u,f]=v.useState({action:l.action,location:l.location}),{v7_startTransition:h}=r||{},p=v.useCallback(m=>{h&&ux?ux(()=>f(m)):f(m)},[f,h]);return v.useLayoutEffect(()=>l.listen(p),[l,p]),v.useEffect(()=>RN(r),[r]),v.createElement(NN,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const zN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Am=v.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:l,state:u,target:f,to:h,preventScrollReset:p,viewTransition:m}=t,w=ON(t,LN),{basename:S}=v.useContext(Ts),E,b=!1;if(typeof h=="string"&&UN.test(h)&&(E=h,zN))try{let R=new URL(window.location.href),_=h.startsWith("//")?new URL(R.protocol+h):new URL(h),N=Pm(_.pathname,S);_.origin===R.origin&&N!=null?h=N+_.search+_.hash:b=!0}catch{}let C=dN(h,{relative:i}),k=$N(h,{replace:l,state:u,target:f,preventScrollReset:p,relative:i,viewTransition:m});function T(R){r&&r(R),R.defaultPrevented||k(R)}return v.createElement("a",Pp({},w,{href:E||C,onClick:b||a?r:T,ref:n,target:f}))});var dx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dx||(dx={}));var fx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fx||(fx={}));function $N(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:l,viewTransition:u}=t===void 0?{}:t,f=_m(),h=Co(),p=Y1(e,{relative:l});return v.useCallback(m=>{if(DN(m,n)){m.preventDefault();let w=r!==void 0?r:_u(h)===_u(p);f(e,{replace:w,state:i,preventScrollReset:a,relative:l,viewTransition:u})}},[h,f,p,r,i,n,e,a,l,u])}function WN(e){let t=v.useRef(kp(e)),n=v.useRef(!1),r=Co(),i=v.useMemo(()=>IN(r.search,n.current?null:t.current),[r.search]),a=_m(),l=v.useCallback((u,f)=>{const h=kp(typeof u=="function"?u(i):u);n.current=!0,a("?"+h,f)},[a,i]);return[i,l]}function Z1(e,t){return function(){return e.apply(t,arguments)}}const{toString:HN}=Object.prototype,{getPrototypeOf:Nm}
vendor: 12,392 bytes, line 237
237=Object,{iterator:ed,toStringTag:eS}=Symbol,td=(e=>t=>{const n=HN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>td(t)===e),nd=e=>t=>typeof t===e,{isArray:Oi}=Array,Ci=nd("undefined");function bl(e){return e!==null&&!Ci(e)&&e.constructor!==null&&!Ci(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tS=Gn("ArrayBuffer");function qN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tS(e.buffer),t}const KN=nd("string"),rn=nd("function"),nS=nd("number"),Sl=e=>e!==null&&typeof e=="object",QN=e=>e===!0||e===!1,hu=e=>{if(td(e)!=="object")return!1;const t=Nm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(eS in e)&&!(ed in e)},YN=e=>{if(!Sl(e)||bl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},GN=Gn("Date"),XN=Gn("File"),JN=Gn("Blob"),ZN=Gn("FileList"),eM=e=>Sl(e)&&rn(e.pipe),tM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((t=td(e))==="formdata"||t==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},nM=Gn("URLSearchParams"),[rM,sM,oM,iM]=["ReadableStream","Request","Response","Headers"].map(Gn),aM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Oi(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(bl(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let u;for(r=0;r<l;r++)u=a[r],t.call(null,e[u],u,e)}}function rS(e,t){if(bl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sS=e=>!Ci(e)&&e!==to;function Tp(){const{caseless:e,skipUndefined:t}=sS(this)&&this||{},n={},r=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const l=e&&rS(n,a)||a;hu(n[l])&&hu(i)?n[l]=Tp(n[l],i):hu(i)?n[l]=Tp({},i):Oi(i)?n[l]=i.slice():(!t||!Ci(i))&&(n[l]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Cl(arguments[i],r);return n}const lM=(e,t,n,{allOwnKeys:r}={})=>(Cl(t,(i,a)=>{n&&rn(i)?Object.defineProperty(e,a,{value:Z1(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),cM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uM=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},dM=(e,t,n,r)=>{let i,a,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)l=i[a],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Nm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},hM=e=>{if(!e)return null;if(Oi(e))return e;let t=e.length;if(!nS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nm(Uint8Array)),mM=(e,t)=>{const r=(e&&e[ed]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},gM=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yM=Gn("HTMLFormElement"),vM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),hx=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xM=Gn("RegExp"),oS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cl(n,(i,a)=>{let l;(l=t(i,a,e))!==!1&&(r[a]=l||i)}),Object.defineProperties(e,r)},wM=e=>{oS(e,(t,n)=>{if(rn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(rn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bM=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Oi(e)?r(e):r(String(e).split(t)),n},SM=()=>{},CM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function EM(e){return!!(e&&rn(e.append)&&e[eS]==="FormData"&&e[ed])}const PM=e=>{const t=new Array(10),n=(r,i)=>{if(Sl(r)){if(t.indexOf(r)>=0)return;if(bl(r))return r;if(!("toJSON"in r)){t[i]=r;const a=Oi(r)?[]:{};return Cl(r,(l,u)=>{const f=n(l,i+1);!Ci(f)&&(a[u]=f)}),t[i]=void 0,a}}return r};return n(e,0)},kM=Gn("AsyncFunction"),TM=e=>e&&(Sl(e)||rn(e))&&rn(e.then)&&rn(e.catch),iS=((e,t)=>e?setImmediate:t?((n,r)=>(to.addEventListener("message",({source:i,data:a})=>{i===to&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),to.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rn(to.postMessage)),RM=typeof queueMicrotask<"u"?queueMicrotask.bind(to):typeof process<"u"&&process.nextTick||iS,_M=e=>e!=null&&rn(e[ed]),W={isArray:Oi,isArrayBuffer:tS,isBuffer:bl,isFormData:tM,isArrayBufferView:qN,isString:KN,isNumber:nS,isBoolean:QN,isObject:Sl,isPlainObject:hu,isEmptyObject:YN,isReadableStream:rM,isRequest:sM,isResponse:oM,isHeaders:iM,isUndefined:Ci,isDate:GN,isFile:XN,isBlob:JN,isRegExp:xM,isFunction:rn,isStream:eM,isURLSearchParams:nM,isTypedArray:pM,isFileList:ZN,forEach:Cl,merge:Tp,extend:lM,trim:aM,stripBOM:cM,inherits:uM,toFlatObject:dM,kindOf:td,kindOfTest:Gn,endsWith:fM,toArray:hM,forEachEntry:mM,matchAll:gM,isHTMLForm:yM,hasOwnProperty:hx,hasOwnProp:hx,reduceDescriptors:oS,freezeMethods:wM,toObjectSet:bM,toCamelCase:vM,noop:SM,toFiniteNumber:CM,findKey:rS,global:to,isContextDefined:sS,isSpecCompliantForm:EM,toJSONObject:PM,isAsyncFn:kM,isThenable:TM,setImmediate:iS,asap:RM,isIterable:_M};let _e=class aS extends Error{static from(t,n,r,i,a,l){const u=new aS(t.message,n||t.code,r,i,a);return u.cause=t,u.name=t.name,l&&Object.assign(u,l),u}constructor(t,n,r,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}};_e.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_e.ERR_BAD_OPTION="ERR_BAD_OPTION";_e.ECONNABORTED="ECONNABORTED";_e.ETIMEDOUT="ETIMEDOUT";_e.ERR_NETWORK="ERR_NETWORK";_e.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_e.ERR_DEPRECATED="ERR_DEPRECATED";_e.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_e.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_e.ERR_CANCELED="ERR_CANCELED";_e.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_e.ERR_INVALID_URL="ERR_INVALID_URL";const AM=null;function Rp(e){return W.isPlainObject(e)||W.isArray(e)}function lS(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function px(e,t,n){return e?e.concat(t).map(function(i,a){return i=lS(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function NM(e){return W.isArray(e)&&!e.some(Rp)}const MM=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function rd(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,C){return!W.isUndefined(C[b])});const r=n.metaTokens,i=n.visitor||p,a=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if(W.isDate(E))return E.toISOString();if(W.isBoolean(E))return E.toString();if(!f&&W.isBlob(E))throw new _e("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(E)||W.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,b,C){let k=E;if(E&&!C&&typeof E=="object"){if(W.endsWith(b,"{}"))b=r?b:b.slice(0,-2),E=JSON.stringify(E);else if(W.isArray(E)&&NM(E)||(W.isFileList(E)||W.endsWith(b,"[]"))&&(k=W.toArray(E)))return b=lS(b),k.forEach(function(R,_){!(W.isUndefined(R)||R===null)&&t.append(l===!0?px([b],_,a):l===null?b:b+"[]",h(R))}),!1}return Rp(E)?!0:(t.append(px(C,b,a),h(E)),!1)}const m=[],w=Object.assign(MM,{defaultVisitor:p,convertValue:h,isVisitable:Rp});function S(E,b){if(!W.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(E),W.forEach(E,function(k,T){(!(W.isUndefined(k)||k===null)&&i.call(t,k,W.isString(T)?T.trim():T,b,w))===!0&&S(k,b?b.concat(T):[T])}),m.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return S(e),t}function mx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mm(e,t){this._pairs=[],e&&rd(e,this,t)}const cS=Mm.prototype;cS.append=function(t,n){this._pairs.push([t,n])};cS.toString=function(t){const n=t?function(r){return t.call(this,r,mx)}:mx;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function OM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function uS(e,t,n){if(!t)return e;const r=n&&n.encode||OM,i=W.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let l;if(a?l=a(t,i):l=W.isURLSearchParams(t)?t.toString():new Mm(t,i).toString(r),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class gx{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Om={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},jM=typeof URLSearchParams<"u"?URLSearchParams:Mm,DM=typeof FormData<"u"?FormData:null,IM=typeof Blob<"u"?Blob:null,LM={isBrowser:!0,classes:{URLSearchParams:jM,FormData:DM,Blob:IM},protocols:["http","https","file","blob","url","data"]},jm=typeof window<"u"&&typeof document<"u",_p=typeof navigator=="object"&&navigator||void 0,FM=jm&&(!_p||["ReactNative","NativeScript","NS"].indexOf(_p.product)<0),BM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",VM=jm&&window.location.href||"http://localhost",zM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jm,hasStandardBrowserEnv:FM,hasStandardBrowserWebWorkerEnv:BM,navigator:_p,origin:VM},Symbol.toStringTag,{value:"Module"})),Vt={...zM,...LM};function UM(e,t){return rd(e,new Vt.classes.URLSearchParams,{visitor:function(n,r,i,a){return Vt.isNode&&W.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function $M(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function WM(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function dS(e){function t(n,r,i,a){let l=n[a++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),f=a>=n.length;return l=!l&&W.isArray(i)?i.length:l,f?(W.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!u):((!i[l]||!W.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],a)&&W.isArray(i[l])&&(i[l]=WM(i[l])),!u)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(r,i)=>{t($M(r),i,n,0)}),n}return null}function HM(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const El={transitional:Om,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=W.isObject(t);if(a&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return i?JSON.stringify(dS(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>
vendor: 4,427 bytes, lines 237-239
237-1)return UM(t,this.formSerializer).toString();if((u=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return rd(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),HM(t)):t}],transformResponse:[function(t){const n=this.transitional||El.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?_e.from(u,_e.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{El.headers[e]={}});const qM=W.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"]),KM=e=>{const t={};let n,r,i;return e&&e.split(` 238`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&qM[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yx=Symbol("internals");function ka(e){return e&&String(e).trim().toLowerCase()}function pu(e){return e===!1||e==null?e:W.isArray(e)?e.map(pu):String(e)}function QM(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const YM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rh(e,t,n,r,i){if(W.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!W.isString(t)){if(W.isString(r))return t.indexOf(r)!==-1;if(W.isRegExp(r))return r.test(t)}}function GM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function XM(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,l){return this[r].call(this,t,i,a,l)},configurable:!0})})}let sn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(u,f,h){const p=ka(f);if(!p)throw new Error("header name must be a non-empty string");const m=W.findKey(i,p);(!m||i[m]===void 0||h===!0||h===void 0&&i[m]!==!1)&&(i[m||f]=pu(u))}const l=(u,f)=>W.forEach(u,(h,p)=>a(h,p,f));if(W.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(W.isString(t)&&(t=t.trim())&&!YM(t))l(KM(t),n);else if(W.isObject(t)&&W.isIterable(t)){let u={},f,h;for(const p of t){if(!W.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[h=p[0]]=(f=u[h])?W.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}l(u,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=ka(t),t){const r=W.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return QM(i);if(W.isFunction(n))return n.call(this,i,r);if(W.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ka(t),t){const r=W.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(l){if(l=ka(l),l){const u=W.findKey(r,l);u&&(!n||Rh(r,r[u],u,n))&&(delete r[u],i=!0)}}return W.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Rh(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return W.forEach(this,(i,a)=>{const l=W.findKey(r,a);if(l){n[l]=pu(i),delete n[a];return}const u=t?GM(a):String(a).trim();u!==a&&delete n[a],n[u]=pu(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&W.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 239`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);
vendor: 4,772 bytes, line 239
239return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[yx]=this[yx]={accessors:{}}).accessors,i=this.prototype;function a(l){const u=ka(l);r[u]||(XM(i,l),r[u]=!0)}return W.isArray(t)?t.forEach(a):a(t),this}};sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});W.freezeMethods(sn);function _h(e,t){const n=this||El,r=t||n,i=sn.from(r.headers);let a=r.data;return W.forEach(e,function(u){a=u.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function fS(e){return!!(e&&e.__CANCEL__)}let Pl=class extends _e{constructor(t,n,r){super(t??"canceled",_e.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function hS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _e("Request failed with status code "+n.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function JM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ZM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,l;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),p=r[a];l||(l=h),n[i]=f,r[i]=h;let m=a,w=0;for(;m!==i;)w+=n[m++],m=m%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-l<t)return;const S=p&&h-p;return S?Math.round(w*1e3/S):void 0}}function eO(e,t){let n=0,r=1e3/t,i,a;const l=(h,p=Date.now())=>{n=p,i=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const p=Date.now(),m=p-n;m>=r?l(h,p):(i=h,a||(a=setTimeout(()=>{a=null,l(i)},r-m)))},()=>i&&l(i)]}const Au=(e,t,n=3)=>{let r=0;const i=ZM(50,250);return eO(a=>{const l=a.loaded,u=a.lengthComputable?a.total:void 0,f=l-r,h=i(f),p=l<=u;r=l;const m={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u&&p?(u-l)/h:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},n)},vx=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xx=e=>(...t)=>W.asap(()=>e(...t)),tO=Vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,nO=Vt.hasStandardBrowserEnv?{write(e,t,n,r,i,a,l){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];W.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),W.isString(r)&&u.push(`path=${r}`),W.isString(i)&&u.push(`domain=${i}`),a===!0&&u.push("secure"),W.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function rO(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pS(e,t,n){let r=!rO(t);return e&&(r||n==!1)?sO(e,t):t}const wx=e=>e instanceof sn?{...e}:e;function vo(e,t){t=t||{};const n={};function r(h,p,m,w){return W.isPlainObject(h)&&W.isPlainObject(p)?W.merge.call({caseless:w},h,p):W.isPlainObject(p)?W.merge({},p):W.isArray(p)?p.slice():p}function i(h,p,m,w){if(W.isUndefined(p)){if(!W.isUndefined(h))return r(void 0,h,m,w)}else return r(h,p,m,w)}function a(h,p){if(!W.isUndefined(p))return r(void 0,p)}function l(h,p){if(W.isUndefined(p)){if(!W.isUndefined(h))return r(void 0,h)}else return r(void 0,p)}function u(h,p,m){if(m in t)return r(h,p);if(m in e)return r(void 0,h)}const f={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(h,p,m)=>i(wx(h),wx(p),m,!0)};return W.forEach(Object.keys({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const m=W.hasOwnProp(f,p)?f[p]:i,w=m(e[p],t[p],p);W.isUndefined(w)&&m!==u||(n[p]=w)}),n}const mS=e=>{const t=vo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:u}=t;if(t.headers=l=sn.from(l),t.url=uS(pS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),W.isFormData(n)){if(Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);
vendor: 10,011 bytes, lines 239-242
239else if(W.isFunction(n.getHeaders)){const f=n.getHeaders(),h=["content-type","content-length"];Object.entries(f).forEach(([p,m])=>{h.includes(p.toLowerCase())&&l.set(p,m)})}}if(Vt.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(t)),r||r!==!1&&tO(t.url))){const f=i&&a&&nO.read(a);f&&l.set(i,f)}return t},oO=typeof XMLHttpRequest<"u",iO=oO&&function(e){return new Promise(function(n,r){const i=mS(e);let a=i.data;const l=sn.from(i.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:h}=i,p,m,w,S,E;function b(){S&&S(),E&&E(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function k(){if(!C)return;const R=sn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),N={data:!u||u==="text"||u==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:R,config:e,request:C};hS(function(B){n(B),b()},function(B){r(B),b()},N),C=null}"onloadend"in C?C.onloadend=k:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(k)},C.onabort=function(){C&&(r(new _e("Request aborted",_e.ECONNABORTED,e,C)),C=null)},C.onerror=function(_){const N=_&&_.message?_.message:"Network Error",L=new _e(N,_e.ERR_NETWORK,e,C);L.event=_||null,r(L),C=null},C.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const N=i.transitional||Om;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new _e(_,N.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,C)),C=null},a===void 0&&l.setContentType(null),"setRequestHeader"in C&&W.forEach(l.toJSON(),function(_,N){C.setRequestHeader(N,_)}),W.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),u&&u!=="json"&&(C.responseType=i.responseType),h&&([w,E]=Au(h,!0),C.addEventListener("progress",w)),f&&C.upload&&([m,S]=Au(f),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",S)),(i.cancelToken||i.signal)&&(p=R=>{C&&(r(!R||R.type?new Pl(null,e,C):R),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const T=JM(i.url);if(T&&Vt.protocols.indexOf(T)===-1){r(new _e("Unsupported protocol "+T+":",_e.ERR_BAD_REQUEST,e));return}C.send(a||null)})},aO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(h){if(!i){i=!0,u();const p=h instanceof Error?h:this.reason;r.abort(p instanceof _e?p:new Pl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,a(new _e(`timeout of ${t}ms exceeded`,_e.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=r;return f.unsubscribe=()=>W.asap(u),f}},lO=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},cO=async function*(e,t){for await(const n of uO(e))yield*lO(n,t)},uO=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},bx=(e,t,n,r)=>{const i=cO(e,t);let a=0,l,u=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:h,value:p}=await i.next();if(h){u(),f.close();return}let m=p.byteLength;if(n){let w=a+=m;n(w)}f.enqueue(new Uint8Array(p))}catch(h){throw u(h),h}},cancel(f){return u(f),i.return()}},{highWaterMark:2})},Sx=64*1024,{isFunction:Qc}=W,dO=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:Cx,TextEncoder:Ex}=W.global,Px=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fO=e=>{e=W.merge.call({skipUndefined:!0},dO,e);const{fetch:t,Request:n,Response:r}=e,i=t?Qc(t):typeof fetch=="function",a=Qc(n),l=Qc(r);if(!i)return!1;const u=i&&Qc(Cx),f=i&&(typeof Ex=="function"?(E=>b=>E.encode(b))(new Ex):async E=>new Uint8Array(await new n(E).arrayBuffer())),h=a&&u&&Px(()=>{let E=!1;const b=new n(Vt.origin,{body:new Cx,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!b}),p=l&&u&&Px(()=>W.isReadableStream(new r("").body)),m={stream:p&&(E=>E.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!m[E]&&(m[E]=(b,C)=>{let k=b&&b[E];if(k)return k.call(b);throw new _e(`Response type '${E}' is not supported`,_e.ERR_NOT_SUPPORT,C)})});const w=async E=>{if(E==null)return 0;if(W.isBlob(E))return E.size;if(W.isSpecCompliantForm(E))return(await new n(Vt.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(W.isArrayBufferView(E)||W.isArrayBuffer(E))return E.byteLength;if(W.isURLSearchParams(E)&&(E=E+""),W.isString(E))return(await f(E)).byteLength},S=async(E,b)=>{const C=W.toFiniteNumber(E.getContentLength());return C??w(b)};return async E=>{let{url:b,method:C,data:k,signal:T,cancelToken:R,timeout:_,onDownloadProgress:N,onUploadProgress:L,responseType:B,headers:j,withCredentials:K="same-origin",fetchOptions:G}=mS(E),J=t||fetch;B=B?(B+"").toLowerCase():"text";let se=aO([T,R&&R.toAbortSignal()],_),re=null;const oe=se&&se.unsubscribe&&(()=>{se.unsubscribe()});let be;try{if(L&&h&&C!=="get"&&C!=="head"&&(be=await S(j,k))!==0){let M=new n(b,{method:"POST",body:k,duplex:"half"}),q;if(W.isFormData(k)&&(q=M.headers.get("content-type"))&&j.setContentType(q),M.body){const[ge,de]=vx(be,Au(xx(L)));k=bx(M.body,Sx,ge,de)}}W.isString(K)||(K=K?"include":"omit");const Z=a&&"credentials"in n.prototype,ne={...G,signal:se,method:C.toUpperCase(),headers:j.normalize().toJSON(),body:k,duplex:"half",credentials:Z?K:void 0};re=a&&new n(b,ne);let U=await(a?J(re,G):J(b,ne));const H=p&&(B==="stream"||B==="response");if(p&&(N||H&&oe)){const M={};["status","statusText","headers"].forEach(le=>{M[le]=U[le]});const q=W.toFiniteNumber(U.headers.get("content-length")),[ge,de]=N&&vx(q,Au(xx(N),!0))||[];U=new r(bx(U.body,Sx,ge,()=>{de&&de(),oe&&oe()}),M)}B=B||"text";let z=await m[W.findKey(m,B)||"text"](U,E);return!H&&oe&&oe(),await new Promise((M,q)=>{hS(M,q,{data:z,headers:sn.from(U.headers),status:U.status,statusText:U.statusText,config:E,request:re})})}catch(Z){throw oe&&oe(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new _e("Network Error",_e.ERR_NETWORK,E,re,Z&&Z.response),{cause:Z.cause||Z}):_e.from(Z,Z&&Z.code,E,re,Z&&Z.response)}}},hO=new Map,gS=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let l=a.length,u=l,f,h,p=hO;for(;u--;)f=a[u],h=p.get(f),h===void 0&&p.set(f,h=u?new Map:fO(t)),p=h;return h};gS();const Dm={http:AM,xhr:iO,fetch:{get:gS}};W.forEach(Dm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kx=e=>`- ${e}`,pO=e=>W.isFunction(e)||e===null||e===!1;function mO(e,t){e=W.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let l=0;l<n;l++){r=e[l];let u;if(i=r,!pO(r)&&(i=Dm[(u=String(r)).toLowerCase()],i===void 0))throw new _e(`Unknown adapter '${u}'`);if(i&&(W.isFunction(i)||(i=i.get(t))))break;a[u||"#"+l]=i}if(!i){const l=Object.entries(a).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since : 240`+l.map(kx).join(` 241`):" "+kx(l[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const yS={getAdapter:mO,adapters:Dm};function Ah(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pl(null,e)}function Tx(e){return Ah(e),e.headers=sn.from(e.headers),e.data=_h.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yS.getAdapter(e.adapter||El.adapter,e)(e).then(function(r){return Ah(e),r.data=_h.call(e,e.transformResponse,r),r.headers=sn.from(r.headers),r},function(r){return fS(r)||(Ah(e),r&&r.response&&(r.response.data=_h.call(e,e.transformResponse,r.response),r.response.headers=sn.from(r.response.headers))),Promise.reject(r)})}const vS="1.13.5",sd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Rx={};sd.transitional=function(t,n,r){function i(a,l){return"[Axios v"+vS+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,u)=>{if(t===!1)throw new _e(i(l," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!Rx[l]&&(Rx[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,u):!0}};sd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function gO(e,t,n){if(typeof e!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],l=t[a];if(l){const u=e[a],f=u===void 0||l(u,a,e);if(f!==!0)throw new _e("option "+a+" must be "+f,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+a,_e.ERR_BAD_OPTION)}}const mu={assertOptions:gO,validators:sd},Sn=mu.validators;let po=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gx,response:new gx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` 242`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&mu.assertOptions(r,{silentJSONParsing:Sn.transitional(Sn.boolean),forcedJSONParsing:Sn.transitional(Sn.boolean),clarifyTimeoutError:Sn.transitional(Sn.boolean),legacyInterceptorReqResOrdering:Sn.transitional(Sn.boolean)}
vendor: 3,105 bytes, line 242
242,!1),i!=null&&(W.isFunction(i)?n.paramsSerializer={serialize:i}:mu.assertOptions(i,{encode:Sn.function,serialize:Sn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),mu.assertOptions(n,{baseUrl:Sn.spelling("baseURL"),withXsrfToken:Sn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&W.merge(a.common,a[n.method]);a&&W.forEach(["delete","get","head","post","put","patch","common"],E=>{delete a[E]}),n.headers=sn.concat(l,a);const u=[];let f=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;f=f&&b.synchronous;const C=n.transitional||Om;C&&C.legacyInterceptorReqResOrdering?u.unshift(b.fulfilled,b.rejected):u.push(b.fulfilled,b.rejected)});const h=[];this.interceptors.response.forEach(function(b){h.push(b.fulfilled,b.rejected)});let p,m=0,w;if(!f){const E=[Tx.bind(this),void 0];for(E.unshift(...u),E.push(...h),w=E.length,p=Promise.resolve(n);m<w;)p=p.then(E[m++],E[m++]);return p}w=u.length;let S=n;for(;m<w;){const E=u[m++],b=u[m++];try{S=E(S)}catch(C){b.call(this,C);break}}try{p=Tx.call(this,S)}catch(E){return Promise.reject(E)}for(m=0,w=h.length;m<w;)p=p.then(h[m++],h[m++]);return p}getUri(t){t=vo(this.defaults,t);const n=pS(t.baseURL,t.url,t.allowAbsoluteUrls);return uS(n,t.params,t.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(t){po.prototype[t]=function(n,r){return this.request(vo(r||{},{method:t,url:n,data:(r||{}).data}))}});W.forEach(["post","put","patch"],function(t){function n(r){return function(a,l,u){return this.request(vo(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}po.prototype[t]=n(),po.prototype[t+"Form"]=n(!0)});let yO=class xS{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const l=new Promise(u=>{r.subscribe(u),a=u}).then(i);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,u){r.reason||(r.reason=new Pl(a,l,u),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new xS(function(i){t=i}),cancel:t}}};function vO(e){return function(n){return e.apply(null,n)}}function xO(e){return W.isObject(e)&&e.isAxiosError===!0}const Ap={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
242alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ap).forEach(([e,t])=>{Ap[t]=e});function wS(e){const t=new po(e),n=Z1(po.prototype.request,t);return W.extend(n,po.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wS(vo(e,i))},n}const pt=wS(El);pt.Axios=po;pt.CanceledError=Pl;pt.CancelToken=yO;pt.isCancel=fS;pt.VERSION=vS;pt.toFormData=rd;pt.AxiosError=_e;pt.Cancel=pt.CanceledError;pt.all=function(t){return Promise.all(t)};pt.spread=vO;pt.isAxiosError=xO;pt.mergeConfig=vo;pt.AxiosHeaders=sn;pt.formToJSON=e=>dS(W.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=yS.getAdapter;pt.HttpStatusCode=Ap;pt.default=pt;const{Axios:oU,AxiosError:iU,CanceledError:aU,isCancel:lU,CancelToken:cU,VERSION:uU,all:dU,Cancel:fU,isAxiosError:hU,spread:pU,toFormData:mU,AxiosHeaders:gU,HttpStatusCode:yU,formToJSON:vU,getAdapter:xU,mergeConfig:wU}=pt,wO=typeof window>"u",_x=!wO&&window.self!==window.top,Nh=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),At=[];for(let e=0;e<256;++e)At.push((e+256).toString(16).slice(1));function bO(e,t=0){return(At[e[t+0]]+At[e[t+1]]+At[e[t+2]]+At[e[t+3]]+"-"+At[e[t+4]]+At[e[t+5]]+"-"+At[e[t+6]]+At[e[t+7]]+"-"+At[e[t+8]]+At[e[t+9]]+"-"+At[e[t+10]]+At[e[t+11]]+At[e[t+12]]+At[e[t+13]]+At[e[t+14]]+At[e[t+15]]).toLowerCase()}let Mh;const SO=new Uint8Array(16);function CO(){if(!Mh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Mh=crypto.getRandomValues.bind(crypto)}return Mh(SO)}const EO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ax={randomUUID:EO};function PO(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??CO();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,bO(r)}function kO(e,t,n){return Ax.randomUUID&&!e?Ax.randomUUID():PO(e)}class TO extends Error{constructor(t,n,r,i,a){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Da({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const a=pt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(l=>{typeof window<"u"&&l.headers.set("X-Origin-URL",window.location.href);const u=kO();if(l.requestId=u,_x)try{window.parent.postMessage({type:"api-request-start",requestId:u,data:{url:e+l.url,method:l.method,body:l.data instanceof FormData?"[FormData object]":l.data}},"*")}catch{}return l}),r&&a.interceptors.response.use(l=>{var u;const f=(u=l.config)===null||u===void 0?void 0:u.requestId;try{_x&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:l.status,response:l.data}},"*")}catch{}return l.data},l=>{var u,f,h,p,m,w,S,E;const b=((f=(u=l.response)===null||u===void 0?void 0:u.data)===null||f===void 0?void 0:f.message)||((p=(h=l.response)===null||h===void 0?void 0:h.data)===null||p===void 0?void 0:p.detail)||l.message,C=new TO(b,(m=l.response)===null||m===void 0?void 0:m.status,(S=(w=l.response)===null||w===void 0?void 0:w.data)===null||S===void 0?void 0:S.code,(E=l.response)===null||E===void 0?void 0:E.data,l);return i==null||i(C),Promise.reject(C)}),a}function Nx(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return _O(t,n,a,r)}})}function RO(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 _O(e,t,n,r){const i=`/apps/${t}/entities/${n}`;return{async list(a,l,u,f){const h={};
242return a&&(h.sort=a),l&&(h.limit=l),u&&(h.skip=u),f&&(h.fields=Array.isArray(f)?f.join(","):f),e.get(i,{params:h})},async filter(a,l,u,f,h){const p={q:JSON.stringify(a)};return l&&(p.sort=l),u&&(p.limit=u),f&&(p.skip=f),h&&(p.fields=Array.isArray(h)?h.join(","):h),e.get(i,{params:p})},async get(a){return e.get(`${i}/${a}`)},async create(a){return e.post(i,a)},async update(a,l){return e.put(`${i}/${a}`,l)},async delete(a){return e.delete(`${i}/${a}`)},async deleteMany(a){return e.delete(i,{data:a})},async bulkCreate(a){return e.post(`${i}/bulk`,a)},async updateMany(a,l){return e.patch(`${i}/update-many`,{query:a,data:l})},async bulkUpdate(a){return e.put(`${i}/bulk`,a)},async importEntities(a){const l=new FormData;return l.append("file",a,a.name),e.post(`${i}/import`,l,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const l=`entities:${t}:${n}`;return r().subscribeToRoom(l,{update_model:h=>{var p;const m=RO(h.data);if(m){m.type!=="delete"&&(!((p=m.data)===null||p===void 0)&&p._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${m.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("${m.id}")\` to fetch the full record.`);try{a(m)}catch(w){console.error("[Base44 SDK] Subscription callback error:",w)}}}})}}}function AO(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:l,...u}=i??{},f={...u,...a&&{path_params:a},...l&&{query_params:l}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,f)}}}function Mx(e,t){const n=AO(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return async u=>{if(typeof u=="string")throw new Error(`Integration ${l} must receive an object with named parameters, received: ${u}`);let f,h;return u instanceof FormData||u&&Object.values(u).some(p=>p instanceof File)?(f=new FormData,Object.keys(u).forEach(p=>{u[p]instanceof File?f.append(p,u[p],u[p].name):typeof u[p]=="object"&&u[p]!==null?f.append(p,JSON.stringify(u[p])):f.append(p,u[p])}),h="multipart/form-data"):(f=u,h="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${l}`,f||u,{headers:{"Content-Type":h}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${l}`,f||u,{headers:{"Content-Type":h}})}}})}})}function NO(){return typeof window>"u"?!1:window!==window.parent}function MO(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),l=Math.round(window.screenY+(window.outerHeight-600)/2),u=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${l},resizable=yes,scrollbars=yes`);if(!u)return;const f=()=>{window.removeEventListener("message",h),clearInterval(p),u.closed||u.close()},h=m=>{var w;if(m.origin!==n||m.source!==u||!(!((w=m.data)===null||w===void 0)&&w.access_token))return;f();const S=new URL(t),{access_token:E,is_new_user:b}=m.data;S.searchParams.set("access_token",E),b!=null&&S.searchParams.set("is_new_user",String(b)),window.location.href=S.toString()},p=setInterval(()=>{u.closed&&f()},500);window.addEventListener("message",h)}function OO(e,t,n,r){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(i){return e.put(`/apps/${n}/entities/User/me`,i)},redirectToLogin(i){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=i?new URL(i,window.location.origin).toString():window.location.href,l=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=l},loginWithProvider(i,a="/"){const l=new URL(a,window.location.origin).toString(),u=`app_id=${n}&from_url=${encodeURIComponent(l)}`;let f;i==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${i==="google"?"":`/${i}`}/login`;const h=`${r.appBaseUrl}/api${f}?${u}`;if(NO()){const p=`${h}&popup_origin=${encodeURIComponent(window.location.origin)}`;return MO(p,l,window.location.origin)}window.location.href=h}
242,logout(i){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(u){console.error("Failed to remove token from localStorage:",u)}const a=i||window.location.href,l=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=l}},setToken(i,a=!0){if(i&&(e.defaults.headers.common.Authorization=`Bearer ${i}`,t.defaults.headers.common.Authorization=`Bearer ${i}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",i),window.localStorage.setItem("token",i)}catch(l){console.error("Failed to save token to localStorage:",l)}},async loginViaEmailPassword(i,a,l){var u;try{const f=await e.post(`/apps/${n}/auth/login`,{email:i,password:a,...l&&{turnstile_token:l}}),{access_token:h,user:p}=f;return h&&this.setToken(h),{access_token:h,user:p}}catch(f){throw((u=f.response)===null||u===void 0?void 0:u.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(i,a){return e.post(`/apps/${n}/users/invite-user`,{user_email:i,role:a})},register(i){return e.post(`/apps/${n}/auth/register`,i)},verifyOtp({email:i,otpCode:a}){return e.post(`/apps/${n}/auth/verify-otp`,{email:i,otp_code:a})},resendOtp(i){return e.post(`/apps/${n}/auth/resend-otp`,{email:i})},resetPasswordRequest(i){return e.post(`/apps/${n}/auth/reset-password-request`,{email:i})},resetPassword({resetToken:i,newPassword:a}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:i,new_password:a})},changePassword({userId:i,currentPassword:a,newPassword:l}){return e.post(`/apps/${n}/auth/change-password`,{user_id:i,current_password:a,new_password:l})}}}function jO(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)}}}function DO(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${n}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r: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/${n}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}}}}function IO(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/${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/${n}`)}}}function nl(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const l=new URLSearchParams(window.location.search);if(a=l.get(n),a){if(r&&LO(a,{storageKey:t}),i){l.delete(n);const u=`${window.location.pathname}${l.toString()?`?${l.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}return a}}catch(l){console.error("Error retrieving token from URL:",l)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(l){console.error("Error retrieving token from local storage:",l)}return null}function LO(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(r){return console.error("Error saving token to local storage:",r),!1}}function Ox(e,t,n){const r=(a,l)=>a?`${String(a).replace(/\/$/,"")}${l}`:l,i=a=>{const l=new Headers;if(n!=null&&n.getAuthHeaders){const u=n.getAuthHeaders();Object.entries(u).forEach(([f,h])=>{h!=null&&l.set(f,String(h))})}
242return a&&new Headers(a).forEach((u,f)=>{l.set(f,u)}),l};return{async invoke(a,l){if(typeof l=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${l}`);let u,f;return l instanceof FormData||l&&Object.values(l).some(h=>h instanceof File)?(u=new FormData,Object.keys(l).forEach(h=>{l[h]instanceof File?u.append(h,l[h],l[h].name):typeof l[h]=="object"&&l[h]!==null?u.append(h,JSON.stringify(l[h])):u.append(h,l[h])}),f="multipart/form-data"):(u=l,f="application/json"),e.post(`/apps/${t}/functions/${a}`,u||l,{headers:{"Content-Type":f}})},async fetch(a,l={}){const f=`/functions${a.startsWith("/")?a:`/${a}`}`,h=i(l.headers),p={...l,headers:h};return await fetch(r(n==null?void 0:n.baseURL,f),p)}}}function jx({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const a=`/apps/${n}/agents`,l={},u=()=>e.get(`${a}/conversations`),f=b=>e.get(`${a}/conversations/${b}`);return{getConversations:u,getConversation:f,listConversations:b=>e.get(`${a}/conversations`,{params:b}),createConversation:b=>e.post(`${a}/conversations`,b),addMessage:async(b,C)=>e.post(`${a}/conversations/v2/${b.id}/messages`,C),subscribeToConversation:(b,C)=>{const k=`/agent-conversations/${b}`,T=t(),R=f(b).then(_=>(l[b]=_,_));return T.subscribeToRoom(k,{connect:()=>{},update_model:async({data:_})=>{const N=JSON.parse(_);if(N._message){await R;const L=N._message,B=l[b];if(B){const j=B.messages||[],K=j.findIndex(J=>J.id===L.id),G=K!==-1?j.map((J,se)=>se===K?L:J):[...j,L];l[b]={...B,messages:G},C==null||C(l[b])}}}})},getWhatsAppConnectURL:b=>{const C=`${r}/api/apps/${n}/agents/${encodeURIComponent(b)}/whatsapp`,k=i??nl();return k?`${C}?token=${k}`:C},getTelegramConnectURL:b=>{const C=`${r}/api/apps/${n}/agents/${encodeURIComponent(b)}/telegram`,k=i??nl();return k?`${C}?token=${k}`:C}}}function Dx(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function FO(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const mr=Object.create(null);mr.open="0";mr.close="1";mr.ping="2";mr.pong="3";mr.message="4";mr.upgrade="5";mr.noop="6";const gu=Object.create(null);Object.keys(mr).forEach(e=>{gu[mr[e]]=e});const Np={type:"error",data:"parser error"},bS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",SS=typeof ArrayBuffer=="function",CS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Im=({type:e,data:t},n,r)=>bS&&t instanceof Blob?n?r(t):Ix(t,r):SS&&(t instanceof ArrayBuffer||CS(t))?n?r(t):Ix(new Blob([t]),r):r(mr[e]+(t||"")),Ix=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Lx(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Oh;function BO(e,t){if(bS&&e.data instanceof Blob)return e.data.arrayBuffer().then(Lx).then(t);if(SS&&(e.data instanceof ArrayBuffer||CS(e.data)))return t(Lx(e.data));Im(e,!1,n=>{Oh||(Oh=new TextEncoder),t(Oh.encode(n))})}const Fx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ia=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Fx.length;e++)Ia[Fx.charCodeAt(e)]=e;const VO=e=>{let t=e.length*.75,n=e.length,r,i=0,a,l,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),p=new Uint8Array(h);for(r=0;r<n;r+=4)a=Ia[e.charCodeAt(r)],l=Ia[e.charCodeAt(r+1)],u=Ia[e.charCodeAt(r+2)],f=Ia[e.charCodeAt(r+3)],p[i++]=a<<2|l>>4,p[i++]=(l&15)<<4|u>>2,p[i++]=(u&3)<<6|f&63;return h},zO=typeof ArrayBuffer=="function",Lm=(e,t)=>{if(typeof e!="string")return{type:"message",data:ES(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:UO(e.substring(1),t)}:gu[n]?e.length>1?{type:gu[n],data:e.substring(1)}:{type:gu[n]}:Np},UO=(e,t)=>
vendor: 4,246 bytes, line 242
242{if(zO){const n=VO(e);return ES(n,t)}else return{base64:!0,data:e}},ES=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},PS="�",$O=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,l)=>{Im(a,!1,u=>{r[l]=u,++i===n&&t(r.join(PS))})})},WO=(e,t)=>{const n=e.split(PS),r=[];for(let i=0;i<n.length;i++){const a=Lm(n[i],t);if(r.push(a),a.type==="error")break}return r};function HO(){return new TransformStream({transform(e,t){BO(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let jh;function Yc(e){return e.reduce((t,n)=>t+n.length,0)}function Gc(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function qO(e,t){jh||(jh=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(r===0){if(Yc(n)<1)break;const f=Gc(n,1);a=(f[0]&128)===128,i=f[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Yc(n)<2)break;const f=Gc(n,2);i=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),r=3}else if(r===2){if(Yc(n)<8)break;const f=Gc(n,8),h=new DataView(f.buffer,f.byteOffset,f.length),p=h.getUint32(0);if(p>Math.pow(2,21)-1){u.enqueue(Np);break}i=p*Math.pow(2,32)+h.getUint32(4),r=3}else{if(Yc(n)<i)break;const f=Gc(n,i);u.enqueue(Lm(a?f:jh.decode(f),t)),r=0}if(i===0||i>e){u.enqueue(Np);break}}}})}const kS=4;function gt(e){if(e)return KO(e)}function KO(e){for(var t in gt.prototype)e[t]=gt.prototype[t];return e}gt.prototype.on=gt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};gt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};gt.prototype.off=gt.prototype.removeListener=gt.prototype.removeAllListeners=gt.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 r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};gt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};gt.prototype.emitReserved=gt.prototype.emit;gt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};gt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const od=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),_n=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),QO="arraybuffer";function TS(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const YO=_n.setTimeout,GO=_n.clearTimeout;function id(e,t){t.useNativeTimers?(e.setTimeoutFn=YO.bind(_n),e.clearTimeoutFn=GO.bind(_n)):(e.setTimeoutFn=_n.setTimeout.bind(_n),e.clearTimeoutFn=_n.clearTimeout.bind(_n))}const XO=1.33;function JO(e){return typeof e=="string"?ZO(e):Math.ceil((e.byteLength||e.size)*XO)}function ZO(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function RS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ej(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function tj(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let a=n[r].split("=");
vendor: 6,261 bytes, line 242
242t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class nj extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Fm extends gt{constructor(t){super(),this.writable=!1,id(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new nj(t,n,r)),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=Lm(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=ej(t);return n.length?"?"+n:""}}class rj extends Fm{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 r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};WO(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,$O(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]=RS()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let _S=!1;try{_S=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const sj=_S;function oj(){}class ij extends rj{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ur extends gt{constructor(t,n,r){super(),this.createRequest=t,id(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=TS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.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=oj,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.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()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bx);else if(typeof addEventListener=="function"){const e="onpagehide"in _n?"pagehide":"unload";addEventListener(e,Bx,!1)}}function Bx(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const aj=(function(){const e=AS({xdomain:!1});return e&&e.responseType!==null})();class lj extends ij{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=aj&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ur(AS,this.uri(),t)}}function AS(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||sj))return new XMLHttpRequest}catch{}if(!t)try{return new _n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const NS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class cj extends Fm{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=NS?{}:TS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}
vendor: 15,989 bytes, line 242
242this.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 r=t[n],i=n===t.length-1;Im(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}i&&od(()=>{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]=RS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Dh=_n.WebSocket||_n.MozWebSocket;class uj extends cj{createSocket(t,n,r){return NS?new Dh(t,n,r):n?new Dh(t,n):new Dh(t)}doWrite(t,n){this.ws.send(n)}}class dj extends Fm{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=qO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=HO();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const a=()=>{r.read().then(({done:u,value:f})=>{u||(this.onPacket(f),a())}).catch(u=>{})};a();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&od(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const fj={websocket:uj,webtransport:dj,polling:lj},hj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,pj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Mp(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=hj.exec(e||""),a={},l=14;for(;l--;)a[pj[l]]=i[l]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=mj(a,a.path),a.queryKey=gj(a,a.query),a}function mj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function gj(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}const Op=typeof addEventListener=="function"&&typeof removeEventListener=="function",yu=[];Op&&addEventListener("offline",()=>{yu.forEach(e=>e())},!1);class bs extends gt{constructor(t,n){if(super(),this.binaryType=QO,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 r=Mp(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Mp(n.host).host);id(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(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),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=tj(this.opts.query)),Op&&(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"})},yu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=kS,n.transport=t,this.id&&(n.sid=this.id);const r=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](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&bs.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",bs.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 r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=JO(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,od(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{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?r():t()}):this.upgrading?r():t()),this}_onError(t){if(bs.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(),Op&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=yu.indexOf(this._offlineEventListener);r!==-1&&yu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}bs.protocol=kS;class yj extends bs{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),r=!1;bs.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;bs.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const l=m=>{const w=new Error("probe error: "+m);w.transport=n.name,a(),this.emitReserved("upgradeError",w)};function u(){l("transport closed")}function f(){l("socket closed")}function h(m){n&&m.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",u),this.off("close",f),this.off("upgrading",h)};n.once("open",i),n.once("error",l),n.once("close",u),this.once("close",f),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let vj=class extends yj{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>fj[i]).filter(i=>!!i)),super(t,r)}};function xj(e,t="",n){let r=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),r=Mp(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const wj=typeof ArrayBuffer=="function",bj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,MS=Object.prototype.toString,Sj=typeof Blob=="function"||typeof Blob<"u"&&MS.call(Blob)==="[object BlobConstructor]",Cj=typeof File=="function"||typeof File<"u"&&MS.call(File)==="[object FileConstructor]";function Bm(e){return wj&&(e instanceof ArrayBuffer||bj(e))||Sj&&e instanceof Blob||Cj&&e instanceof File}function vu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(vu(e[n]))return!0;return!1}if(Bm(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return vu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&vu(e[n]))return!0;return!1}function Ej(e){const t=[],n=e.data,r=e;return r.data=jp(n,t),r.attachments=t.length,{packet:r,buffers:t}}function jp(e,t){if(!e)return e;if(Bm(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 r=0;r<e.length;r++)n[r]=jp(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=jp(e[r],t));return n}return e}function Pj(e,t){return e.data=Dp(e.data,t),delete e.attachments,e}function Dp(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]=Dp(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Dp(e[n],t));return e}const kj=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Le;(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"})(Le||(Le={}));class Tj{constructor(t){this.replacer=t}encode(t){return(t.type===Le.EVENT||t.type===Le.ACK)&&vu(t)?this.encodeAsBinary({type:t.type===Le.EVENT?Le.BINARY_EVENT:Le.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Le.BINARY_EVENT||t.type===Le.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=Ej(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Vm extends gt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Le.BINARY_EVENT;r||n.type===Le.BINARY_ACK?(n.type=r?Le.EVENT:Le.ACK,this.reconstructor=new Rj(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Bm(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 r={type:Number(t.charAt(0))};if(Le[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Le.BINARY_EVENT||r.type===Le.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(a,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const a=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}
vendor: 4,501 bytes, line 242
242if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Vm.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Le.CONNECT:return Vx(n);case Le.DISCONNECT:return n===void 0;case Le.CONNECT_ERROR:return typeof n=="string"||Vx(n);case Le.EVENT:case Le.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&kj.indexOf(n[0])===-1);case Le.ACK:case Le.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Rj{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=Pj(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Vx(e){return Object.prototype.toString.call(e)==="[object Object]"}const _j=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Vm,Encoder:Tj,get PacketType(){return Le}},Symbol.toStringTag,{value:"Module"}));function qn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Aj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class OS extends gt{constructor(t,n,r){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,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[qn(t,"open",this.onopen.bind(this)),qn(t,"packet",this.onpacket.bind(this)),qn(t,"error",this.onerror.bind(this)),qn(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 r,i,a;if(Aj.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 l={type:Le.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,m=n.pop();this._registerAckCallback(p,m),l.id=p}const u=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,f=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!u||(f?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},i),l=(...u)=>{this.io.clearTimeoutFn(a),n.apply(this,u)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,i)=>{const a=(l,u)=>l?i(l):r(u);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),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:Le.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 242
242_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Le.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 Le.EVENT:case Le.BINARY_EVENT:this.onevent(t);break;case Le.ACK:case Le.BINARY_ACK:this.onack(t);break;case Le.DISCONNECT:this.ondisconnect();break;case Le.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);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 r of n)r.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 r=!1;return function(...i){r||(r=!0,n.packet({type:Le.ACK,id:t,data:i}))}}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:Le.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 r=0;r<n.length;r++)if(t===n[r])return n.splice(r,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 r=0;r<n.length;r++)if(t===n[r])return n.splice(r,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 r of n)r.apply(this,t.data)}}}function ji(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}ji.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};ji.prototype.reset=function(){this.attempts=0};ji.prototype.setMin=function(e){this.ms=e};ji.prototype.setMax=function(e){this.max=e};ji.prototype.setJitter=function(e){this.jitter=e};class Ip extends gt{constructor(t,n){var r;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,id(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((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ji({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||_j;this.encoder=new i.Encoder,this.decoder=new i.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 vj(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=qn(n,"open",function(){r.onopen(),t&&t()}),a=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},l=qn(n,"error",a);if(this._timeout!==!1){const u=this._timeout,f=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},u);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(qn(t,"ping",this.onping.bind(this)),qn(t,"data",this.ondata.bind(this)),qn(t,"error",this.onerror.bind(this)),qn(t,"close",this.onclose.bind(this)),qn(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){od(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new OS(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
242cleanup(){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 r;this.cleanup(),(r=this.engine)===null||r===void 0||r.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 r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ta={};function xu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=xj(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,l=Ta[i]&&a in Ta[i].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let f;return u?f=new Ip(r,t):(Ta[i]||(Ta[i]=new Ip(r,t)),f=Ta[i]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(xu,{Manager:Ip,Socket:OS,io:xu,connect:xu});const Nj=250;function zx(e,t){var n;const r=xu(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(n=e.token)!==null&&n!==void 0?n:nl()}});return r.on("connect",async()=>{var i;return console.log("connect",r.id),(i=t.connect)===null||i===void 0?void 0:i.call(t)}),r.on("update_model",async i=>{var a;return(a=t.update_model)===null||a===void 0?void 0:a.call(t,i)}),r.on("error",async i=>{var a;return(a=t.error)===null||a===void 0?void 0:a.call(t,i)}),r.on("connect_error",async i=>{var a;return console.error("connect_error",i),(a=t.error)===null||a===void 0?void 0:a.call(t,i)}),r}function Mj({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const k=[];Object.keys(n).forEach(T=>{const R=w(T);R.length!==0&&(h(T),R.forEach(({connect:_})=>{const N=async()=>_==null?void 0:_();k.push(N())}))}),await Promise.all(k)},update_model:async k=>{const R=w(k.room).map(_=>{var N;return(N=_.update_model)===null||N===void 0?void 0:N.call(_,k)});await Promise.all(R)},error:async k=>{console.error("error",k);const T=Object.values(n).flat().map(R=>{var _;return(_=R.error)===null||_===void 0?void 0:_.call(R,k)});await Promise.all(T)}};let a=zx(e,i);function l(){u()}function u(){E(),a&&a.disconnect()}function f(k){l(),t={...t,...k},a=zx(t,i)}function h(k){a.emit("join",k)}function p(k){a.emit("leave",k)}async function m(k,T){var R;const _=JSON.stringify(T);return(R=i.update_model)===null||R===void 0?void 0:R.call(i,{room:k,data:_})}function w(k){var T;return(T=n[k])!==null&&T!==void 0?T:[]}function S(k){const T=r[k];T&&(clearTimeout(T),delete r[k])}function E(){Object.keys(r).forEach(k=>{var T,R;clearTimeout(r[k]),delete r[k],((R=(T=n[k])===null||T===void 0?void 0:T.length)!==null&&R!==void 0?R:0)===0&&delete n[k]})}function b(k){S(k),r[k]=setTimeout(()=>{var T,R;delete r[k],!(((R=(T=n[k])===null||T===void 0?void 0:T.length)!==null&&R!==void 0?R:0)>0)&&(p(k),delete n[k])},Nj)}return{socket:a,subscribeToRoom:(k,T)=>{n[k]?S(k):(h(k),n[k]=[]),n[k].push(T);let R=!1;return()=>{var _,N;R||(R=!0,n[k]=(N=(_=n[k])===null||_===void 0?void 0:_.filter(L=>L!==T))!==null&&N!==void 0?N:[],n[k].length===0&&b(k))}},updateConfig:f,updateModel:m,disconnect:u}}const Ra=typeof window<"u"?window:{base44SharedInstances:{}};function Oj(e,t){return Ra.base44SharedInstances||(Ra.base44SharedInstances={}),Ra.base44SharedInstances[e]||(Ra.base44SharedInstances[e]={instance:t()}),Ra.base44SharedInstances[e].instance}const jj="__user_heartbeat_event__",Dj="__initialization_event__",Ij="__session_duration_event__",Ux="analytics-enable",$x="base44_analytics_session_id",Lj={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},Fj="analytics",Ke=Oj(Fj,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...Lj,...qj()}})),Bj=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r})=>{var i;const{maxQueueSize:a,throttleTime:l,batchSize:u}=Ke.config;if(!(!((i=Ke.config)===null||i===void 0)&&i.enabled))return{track:()=>{},cleanup:()=>{}};let f;const h=`${t}/api/apps/${n}/analytics/track/batch`,p=async R=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:R}})},m=R=>{try{const _=JSON.stringify({events:R}),N=new Blob([_],{type:"application/json"});return typeof navigator>"u"||_.length>6e4||!navigator.sendBeacon(h,N)}catch{return!1}},w=async(R,_={})=>
242{if(R.length===0)return;const N=await Hj(r),L=R.map(Wj(N));try{(!_.isBeacon||!m(L))&&await p(L)}catch{}},S=()=>{Hx(w,{throttleTime:l,batchSize:u})},E=R=>{if(Ke.requestsQueue.length>=a)return;const _=$j();Ke.requestsQueue.push({...R,..._}),S()},b=()=>{Hx(w,{throttleTime:l,batchSize:u}),f=qx(E),zj()},C=()=>{Wx(),f==null||f(),Uj(E);const R=Ke.requestsQueue.splice(0);w(R,{isBeacon:!0})},k=()=>{typeof window>"u"||(document.visibilityState==="hidden"?C():document.visibilityState==="visible"&&b())},T=()=>{Wx(),f==null||f(),typeof window<"u"&&window.removeEventListener("visibilitychange",k)};return S(),f=qx(E),Vj(E),typeof window<"u"&&window.addEventListener("visibilitychange",k),{track:E,cleanup:T}};function Wx(){Ke.isProcessing=!1}async function Hx(e,t){if(Ke.isProcessing)return;Ke.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Ke.isProcessing&&Ke.requestsQueue.length>0;){const i=Ke.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(a=>setTimeout(a,n))}Ke.isProcessing=!1}function qx(e){var t;if(Ke.isHeartBeatProcessing||((t=Ke.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Ke.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:jj})},Ke.config.heartBeatInterval);return()=>{clearInterval(n),Ke.isHeartBeatProcessing=!1}}function Vj(e){typeof window>"u"||Ke.wasInitializationTracked||(Ke.wasInitializationTracked=!0,e({eventName:Dj,properties:{referrer:document==null?void 0:document.referrer}}))}function zj(){typeof window>"u"||Ke.sessionStartTime!==null||(Ke.sessionStartTime=new Date().toISOString())}function Uj(e){if(typeof window>"u"||Ke.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Ke.sessionStartTime).getTime();Ke.sessionStartTime=null,e({eventName:Ij,properties:{sessionDuration:t}})}function $j(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function Wj(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Ih=null;async function Hj(e){if(!Ke.sessionContext){if(!Ih){const t=Kj();Ih=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}Ke.sessionContext=await Ih}return Ke.sessionContext}function qj(){if(typeof window>"u")return;const t=new URLSearchParams(window.location.search).get(Ux);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(Ux);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function Kj(){if(typeof window>"u")return Nh();try{const e=localStorage.getItem($x);if(!e){const t=Nh();return localStorage.setItem($x,t),t}return e}catch{return Nh()}}function Qj(e){var t,n;const{serverUrl:r="https://base44.app",appId:i,token:a,serviceToken:l,requiresAuth:u=!1,appBaseUrl:f,options:h,functionsVersion:p,headers:m}=e,w=typeof f=="string"?f:"",S={serverUrl:r,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:i,token:a};let E=null;const b=()=>(E||(E=Mj({config:S})),E),C={...m,"X-App-Id":String(i)},k=p?{...C,"Base44-Functions-Version":p}:C,T=Da({baseURL:`${r}/api`,headers:C,token:a,onError:h==null?void 0:h.onError}),R=Da({baseURL:`${r}/api`,headers:k,token:a,interceptResponses:!1,onError:h==null?void 0:h.onError}),_={...C,...a?{"on-behalf-of":`Bearer ${a}`}:{}},N=Da({baseURL:`${r}/api`,headers:_,token:l,onError:h==null?void 0:h.onError}),L=Da({baseURL:`${r}/api`,headers:k,token:l,interceptResponses:!1}),B=OO(T,R,i,{appBaseUrl:w});if(typeof window<"u"){const J=a||nl();J&&B.setToken(J)}const j={entities:Nx({axios:T,appId:i,getSocket:b}
242),integrations:Mx(T,i),connectors:IO(T,i),auth:B,functions:Ox(R,i,{getAuthHeaders:()=>{const J={},se=a||nl();return se&&(J.Authorization=`Bearer ${se}`),J},baseURL:(t=R.defaults)===null||t===void 0?void 0:t.baseURL}),agents:jx({axios:T,getSocket:b,appId:i,serverUrl:r,token:a}),appLogs:Dx(T,i),users:FO(T,i),analytics:Bj({axiosClient:T,serverUrl:r,appId:i,userAuthModule:B}),cleanup:()=>{j.analytics.cleanup(),E&&E.disconnect()}},K={entities:Nx({axios:N,appId:i,getSocket:b}),integrations:Mx(N,i),sso:jO(N,i),connectors:DO(N,i),functions:Ox(L,i,{getAuthHeaders:()=>{const J={};return l&&(J.Authorization=`Bearer ${l}`),J},baseURL:(n=L.defaults)===null||n===void 0?void 0:n.baseURL}),agents:jx({axios:N,getSocket:b,appId:i,serverUrl:r,token:a}),appLogs:Dx(N,i),cleanup:()=>{E&&E.disconnect()}};return u&&typeof window<"u"&&setTimeout(async()=>{try{await j.auth.isAuthenticated()||j.auth.redirectToLogin(window.location.href)}catch(J){console.error("Authentication check failed:",J),j.auth.redirectToLogin(window.location.href)}},0),{...j,setToken(J){j.auth.setToken(J),E&&E.updateConfig({token:J}),S.token=J},getConfig(){return{serverUrl:r,appId:i,requiresAuth:u}},get asServiceRole(){if(!l)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return K}}}const jS=typeof window>"u",Yj=jS?{localStorage:new Map}:window,Ka=Yj.localStorage,Gj=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Jo=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(jS)return t;const r=`base44_${Gj(e)}`,i=new URLSearchParams(window.location.search),a=i.get(e);if(n){i.delete(e);const u=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}if(a)return Ka.setItem(r,a),a;if(t)return Ka.setItem(r,t),t;const l=Ka.getItem(r);return l||null},Xj=()=>(Jo("clear_access_token")==="true"&&(Ka.removeItem("base44_access_token"),Ka.removeItem("token")),{appId:Jo("app_id",{defaultValue:"6a1333e01b716303f123f8e3"}),token:Jo("access_token",{removeFromUrl:!0}),fromUrl:Jo("from_url",{defaultValue:window.location.href}),functionsVersion:Jo("functions_version",{defaultValue:"prod"}),appBaseUrl:Jo("app_base_url",{defaultValue:void 0})}),La={...Xj()},{appId:Jj,token:Zj,functionsVersion:eD,appBaseUrl:tD}=La,tt=Qj({appId:Jj,token:Zj,functionsVersion:eD,serverUrl:"",requiresAuth:!1,appBaseUrl:tD});function nD({}){var i;const t=Co().pathname.substring(1),{data:n,isFetched:r}=Cm({queryKey:["user"],queryFn:async()=>{try{return{user:await tt.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return g.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:g.jsx("div",{className:"max-w-md w-full",children:g.jsxs("div",{className:"text-center space-y-6",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),g.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),g.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",g.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&g.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:g.jsxs("div",{className:"flex items-start space-x-3",children:[g.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:g.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),g.jsxs("div",{className:"text-left space-y-1",children:[g.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),g.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."})]})]})}),g.jsx("div",{className:"pt-6",children:g.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:[g.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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 DS=v.createContext(),rD=({children:e})=>{const[t,n]=v.useState(null),[r,i]=v.useState(!1),[a,l]=v.useState(!0),[u,f]=v.useState(!0),[h,p]=v.useState(null),[m,w]=v.useState(!1),[S,E]=v.useState(null);v.useEffect(()=>{b()},[]);const b=async()=>{var R,_;try{f(!0),p(null);const N=Da({baseURL:"/api/apps/public",headers:{"X-App-Id":La.appId},token:La.token,interceptResponses:!0});try{const L=await N.get(`/prod/public-settings/by-id/${La.appId}`);E(L),La.token?await C():(l(!1),i(!1),w(!0)),f(!1)}catch(L){if(console.error("App state check failed:",L),L.status===403&&((_=(R=L.data)==null?void 0:R.extra_data)!=null&&_.reason)){const B=L.data.extra_data.reason;p(B==="auth_required"?{type:"auth_required",message:"Authentication required"}:B==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:B,message:L.message})}else p({type:"unknown",message:L.message||"Failed to load app"});f(!1),l(!1)}}catch(N){console.error("Unexpected error:",N),p({type:"unknown",message:N.message||"An unexpected error occurred"}),f(!1),l(!1)}},C=async()=>{try{l(!0);const R=await tt.auth.me();n(R),i(!0),l(!1),w(!0)}catch(R){console.error("User auth check failed:",R),l(!1),i(!1),w(!0),(R.status===401||R.status===403)&&p({type:"auth_required",message:"Authentication required"})}},k=(R=!0)=>{n(null),i(!1),R?tt.auth.logout(window.location.href):tt.auth.logout()},T=()=>{tt.auth.redirectToLogin(window.location.href)};return g.jsx(DS.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:u,authError:h,appPublicSettings:S,authChecked:m,logout:k,navigateToLogin:T,checkUserAuth:C,checkAppState:b},children:e})},IS=()=>{const e=v.useContext(DS);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},LS=()=>g.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:g.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:g.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})})}),g.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),g.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."}),g.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[g.jsx("p",{children:"If you believe this is an error, you can:"}),g.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[g.jsx("li",{children:"Verify you are logged in with the correct account"}),g.jsx("li",{children:"Contact the app administrator for access"}),g.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function yt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function gr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function sD(e,t){const n=yt(e);return isNaN(t)?gr(e,NaN):(n.setDate(n.getDate()+t),n)}function FS(e,t){const n=yt(e);if(isNaN(t))return gr(e,NaN);if(!t)return n;const r=n.getDate(),i=gr(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const a=i.getDate();return r>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}const BS=6048e5,oD=864e5;let iD={};function kl(){return iD}function Ei(e,t){var u,f,h,p;const n=kl(),r=(t==null?void 0:t.weekStartsOn)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,i=yt(e),a=i.getDay(),l=(a<r?7:0)+a-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function Nu(e){return Ei(e,{weekStartsOn:1}
vendor: 4,405 bytes, line 242
242)}function VS(e){const t=yt(e),n=t.getFullYear(),r=gr(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Nu(r),a=gr(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const l=Nu(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function rl(e){const t=yt(e);return t.setHours(0,0,0,0),t}function Kx(e){const t=yt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function aD(e,t){const n=rl(e),r=rl(t),i=+n-Kx(n),a=+r-Kx(r);return Math.round((i-a)/oD)}function lD(e){const t=VS(e),n=gr(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Nu(n)}function Lh(e,t){const n=rl(e),r=rl(t);return+n==+r}function cD(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function uD(e){if(!cD(e)&&typeof e!="number")return!1;const t=yt(e);return!isNaN(Number(t))}function dD(e){const t=yt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function _a(e){const t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function fD(e){const t=yt(e),n=gr(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hD(e,t){var u,f;const n=kl(),r=n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=yt(e),a=i.getDay(),l=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+l),i.setHours(23,59,59,999),i}const pD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mD=(e,t,n)=>{let r;const i=pD[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Fh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const gD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xD={date:Fh({formats:gD,defaultWidth:"full"}),time:Fh({formats:yD,defaultWidth:"full"}),dateTime:Fh({formats:vD,defaultWidth:"full"})},wD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bD=(e,t,n,r)=>wD[e];function Aa(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):l;i=e.formattingValues[u]||e.formattingValues[l]}else{const l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const SD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},CD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ED={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},PD={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
242ay","Saturday"]},kD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},TD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},RD=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_D={ordinalNumber:RD,era:Aa({values:SD,defaultWidth:"wide"}),quarter:Aa({values:CD,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Aa({values:ED,defaultWidth:"wide"}),day:Aa({values:PD,defaultWidth:"wide"}),dayPeriod:Aa({values:kD,defaultWidth:"wide",formattingValues:TD,defaultFormattingWidth:"wide"})};function Na(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const l=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(u)?ND(u,m=>m.test(l)):AD(u,m=>m.test(l));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const p=t.slice(l.length);return{value:h,rest:p}}}function AD(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ND(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function MD(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let l=e.valueCallback?e.valueCallback(a[0]):a[0];l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}const OD=/^(\d+)(th|st|nd|rd)?/i,jD=/\d+/i,DD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ID={any:[/^b/i,/^(a|c)/i]},LD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FD={any:[/1/i,/2/i,/3/i,/4/i]},BD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},VD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},UD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$D={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},WD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},HD={ordinalNumber:MD({matchPattern:OD,parsePattern:jD,valueCallback:e=>parseInt(e,10)}),era:Na({matchPatterns:DD,defaultMatchWidth:"wide",parsePatterns:ID,defaultParseWidth:"any"}),quarter:Na({matchPatterns:LD,defaultMatchWidth:"wide",parsePatterns:FD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Na({matchPatterns:BD,defaultMatchWidth:"wide",parsePatterns:VD,defaultParseWidth:"any"}),day:Na({matchPatterns:zD,defaultMatchWidth:"wide",parsePatterns:UD,defaultParseWidth:"any"}),dayPeriod:Na({matchPatterns:$D,defaultMatchWidth:"any",parsePatterns:WD,defaultParseWidth:"any"})},qD={code:"en-US",formatDistance:mD,formatLong:xD,formatRelative:bD,localize:_D,match:HD,options:{weekStartsOn:0,firstWeekContainsDate:1}};function KD(e){const t=yt(e);return aD(t,fD(t))+1}function QD(e){const t=yt(e),n=+Nu(t)-+lD(t);return Math.round(n/BS)+1}function zS(e,t){var p,m,w,S;const n=yt(e),r=n.getFullYear(),i=kl(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((S=(w=i.locale)==null?void 0:w.options)==null?void 0:S.firstWeekContainsDate)??1,l=gr(e,0);l.setFullYear(r+1,0,a),l.setHours(0,0,0,0);const u=Ei(l,t),f=gr(e,0);f.setFullYear(r,0,a),f.setHours(0,0,0,0);const h=Ei(f,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function YD(e,t){var u,f,h,p;const n=kl(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=zS(e,t),a=gr(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Ei(a,t)}function GD(e,t){const n=yt(e),r=+Ei(n,t)-+YD(n,t);return Math.round(r/BS)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const is={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},Zo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qx={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return is.y(e,t)},Y:function(e,t,n,r){const i=zS(e,r),a=i>0?i:1-i;if(t==="YY"){const l=a%100;return We(l,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):We(a,t.length)},R:function(e,t){const n=VS(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return is.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=GD(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=QD(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):is.d(e,t)},D:function(e,t,n){const r=KD(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return We(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return We(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Zo.noon:r===0?i=Zo.midnight:i=r/12>
vendor: 4,402 bytes, line 242
242=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Zo.evening:r>=12?i=Zo.afternoon:r>=4?i=Zo.morning:i=Zo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return is.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):is.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):is.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):is.s(e,t)},S:function(e,t){return is.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Gx(r);case"XXXX":case"XX":return Gs(r);case"XXXXX":case"XXX":default:return Gs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Gx(r);case"xxxx":case"xx":return Gs(r);case"xxxxx":case"xxx":default:return Gs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Yx(r,":");case"OOOO":default:return"GMT"+Gs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Yx(r,":");case"zzzz":default:return"GMT"+Gs(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return We(r,t.length)},T:function(e,t,n){const r=e.getTime();return We(r,t.length)}};function Yx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+We(a,2)}function Gx(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):Gs(e,t)}function Gs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),a=We(r%60,2);return n+i+t+a}const Xx=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},US=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},XD=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Xx(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Xx(r,t)).replace("{{time}}",US(i,t))},JD={p:US,P:XD},ZD=/^D+$/,e4=/^Y+$/,t4=["D","DD","YY","YYYY"];function n4(e){return ZD.test(e)}function r4(e){return e4.test(e)}function s4(e,t,n){const r=o4(e,t,n);if(console.warn(r),t4.includes(e))throw new RangeError(r)}function o4(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const i4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,a4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l4=/^'([^]*?)'?$/,c4=/''/g,u4=/[a-zA-Z]/;function Kn(e,t,n){var p,m,w,S;const r=kl(),i=r.locale??qD,a=r.firstWeekContainsDate??((m=(p=r.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)??1,l=r.weekStartsOn??((S=(w=r.locale)==null?void 0:w.options)==null?void 0:S.weekStartsOn)??0,u=yt(e);if(!uD(u))throw new RangeError("Invalid time value");let f=t.match(a4).map(E=>{const b=E[0];if(b==="p"||b==="P"){const C=JD[b];return C(E,i.formatLong)}return E}).join("").match(i4).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const b=E[0];if(b==="'")return{isToken:!1,value:d4(E)};if(Qx[b])return{isToken:!0,value:E};
vendor: 9,669 bytes, lines 242-250
242if(b.match(u4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(f=i.localize.preprocessor(u,f));const h={firstWeekContainsDate:a,weekStartsOn:l,locale:i};return f.map(E=>{if(!E.isToken)return E.value;const b=E.value;(r4(b)||n4(b))&&s4(b,t,String(e));const C=Qx[b[0]];return C(u,b,i.localize,h)}).join("")}function d4(e){const t=e.match(l4);return t?t[1].replace(c4,"'"):e}function Xc(e,t){const n=yt(e),r=yt(t);return n.getTime()>r.getTime()}function f4(e,t){const n=yt(e),r=yt(t);return+n<+r}function h4(e,t){return FS(e,-1)}const zm=v.createContext({});function Um(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const ad=v.createContext(null),$m=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p4 extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function m4({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=v.useContext($m);return v.useInsertionEffect(()=>{const{width:l,height:u,top:f,left:h}=i.current;if(t||!r.current||!l||!u)return;r.current.dataset.motionPopId=n;const p=document.createElement("style");return a&&(p.nonce=a),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 243 [data-motion-pop-id="${n}"] { 244 position: absolute !important; 245 width: ${l}px !important; 246 height: ${u}px !important; 247 top: ${f}px !important; 248 left: ${h}px !important; 249 } 250 `),()=>{document.head.removeChild(p)}},[t]),g.jsx(p4,{isPresent:t,childRef:r,sizeRef:i,children:v.cloneElement(e,{ref:r})})}const g4=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const u=Um(y4),f=v.useId(),h=v.useCallback(m=>{u.set(m,!0);for(const w of u.values())if(!w)return;r&&r()},[u,r]),p=v.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:h,register:m=>(u.set(m,!1),()=>u.delete(m))}),a?[Math.random(),h]:[n,h]);return v.useMemo(()=>{u.forEach((m,w)=>u.set(w,!1))},[n]),v.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=g.jsx(m4,{isPresent:n,children:e})),g.jsx(ad.Provider,{value:p,children:e})};function y4(){return new Map}function $S(e=!0){const t=v.useContext(ad);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=v.useId();v.useEffect(()=>{e&&i(a)},[e]);const l=v.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,l]:[!0]}const Jc=e=>e.key||"";function Jx(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const Wm=typeof window<"u",WS=Wm?v.useLayoutEffect:v.useEffect,v4=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:l=!1})=>{const[u,f]=$S(l),h=v.useMemo(()=>Jx(e),[e]),p=l&&!u?[]:h.map(Jc),m=v.useRef(!0),w=v.useRef(h),S=Um(()=>new Map),[E,b]=v.useState(h),[C,k]=v.useState(h);WS(()=>{m.current=!1,w.current=h;for(let _=0;_<C.length;_++){const N=Jc(C[_]);p.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[C,p.length,p.join("-")]);const T=[];if(h!==E){let _=[...h];for(let N=0;N<C.length;N++){const L=C[N],B=Jc(L);p.includes(B)||(_.splice(N,0,L),T.push(L))}a==="wait"&&T.length&&(_=T),k(Jx(_)),b(h);return}const{forceRender:R}=v.useContext(zm);return g.jsx(g.Fragment,{children:C.map(_=>{const N=Jc(_),L=l&&!u?!1:h===C||p.includes(N),B=()=>{if(S.has(N))S.set(N,!0);else return;let j=!0;S.forEach(K=>{K||(j=!1)}),j&&(R==null||R(),k(w.current),l&&(f==null||f()),r&&r())};return g.jsx(g4,{isPresent:L,initial:!m.current||n?void 0:!1,custom:L?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:L?void 0:B,children:_},N)})})},fn=e=>e;let HS=fn;function Hm(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Or=e=>e*1e3,jr=e=>e/1e3,x4={useManualTiming:!1};function w4(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function u(h){a.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,p=!1,m=!1)=>{const S=m&&r?t:n;return p&&a.add(h),S.has(h)||S.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(l=h,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,f.process(h))}};return f}const Zc=["read","resolveKeyframes","update","preRender","render","postRender"],b4=40;function qS(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=Zc.reduce((k,T)=>(k[T]=w4(a),k),{}),{read:u,resolveKeyframes:f,update:h,preRender:p,render:m,postRender:w}=l,S=()=>{const k=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(k-i.timestamp,b4),1),i.timestamp=k,i.isProcessing=!0,u.process(i),f.process(i),h.process(i),p.process(i),m.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(S))},E=()=>{n=!0,r=!0,i.isProcessing||e(S)};return{schedule:Zc.reduce((k,T)=>{const R=l[T];return k[T]=(_,N=!1,L=!1)=>(n||E(),R.schedule(_,N,L)),k},{}),cancel:k=>{for(let T=0;T<Zc.length;T++)l[Zc[T]].cancel(k)},state:i,steps:l}}const{schedule:Xe,cancel:Ss,state:Nt,steps:Bh}=qS(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0),KS=v.createContext({strict:!1}),Zx={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"]},ki={};for(const e in Zx)ki[e]={isEnabled:t=>Zx[e].some(n=>!!t[n])};function S4(e){for(const t in e)ki[t]={...ki[t],...e[t]}}const C4=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 Mu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||C4.has(e)}let QS=e=>!Mu(e);function E4(e){e&&(QS=t=>t.startsWith("on")?!Mu(t):e(t))}try{E4(require("@emotion/is-prop-valid").default)}catch{}function P4(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(QS(i)||n===!0&&Mu(i)||!t&&!Mu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function k4(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const ld=v.createContext({});function sl(e){return typeof e=="string"||Array.isArray(e)}function cd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const qm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Km=["initial",...qm];function ud(e){return cd(e.animate)||Km.some(t=>sl(e[t]))}function YS(e){return!!(ud(e)||e.variants)}function T4(e,t){if(ud(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sl(n)?n:void 0,animate:sl(r)?r:void 0}}return e.inherit!==!1?t:{}}function R4(e){const{initial:t,animate:n}=T4(e,v.useContext(ld));return v.useMemo(()=>({initial:t,animate:n}),[ew(t),ew(n)])}function ew(e){return Array.isArray(e)?e.join(" "):e}const _4=Symbol.for("motionComponentSymbol");function ri(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function A4(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ri(n)&&(n.current=r))},[t])}const Qm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N4="framerAppearId",GS="data-"+Qm(N4),{schedule:Ym}=qS(queueMicrotask,!1),XS=v.createContext({});function M4(e,t,n,r,i){var a,l;const{visualElement:u}=v.useContext(ld),f=v.useContext(KS),h=v.useContext(ad),p=v.useContext($m).reducedMotion,m=v.useRef(null);r=r||f.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p}));const w=m.current,S=v.useContext(XS);w&&!w.projection&&i&&(w.type==="html"||w.type==="svg")&&O4(m.current,n,i,S);const E=v.useRef(!1);v.useInsertionEffect(()=>{w&&E.current&&w.update(n,h)});const b=n[GS],C=v.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return WS(()=>{w&&(E.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),Ym.render(w.render),C.current&&w.animationState&&w.animationState.animateChanges())}),v.useEffect(()=>{w&&(!C.current&&w.animationState&&w.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)===null||k===void 0||k.call(window,b)}),C.current=!1))}),w}function O4(e,t,n,r){const{layoutId:i,layout:a,drag:l,dragConstraints:u,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:JS(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!l||u&&ri(u),visualElement:e,animationType:typeof a=="str
250ing"?a:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:h})}function JS(e){if(e)return e.options.allowProjection!==!1?e.projection:JS(e.parent)}function j4({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,l;e&&S4(e);function u(h,p){let m;const w={...v.useContext($m),...h,layoutId:D4(h)},{isStatic:S}=w,E=R4(h),b=r(h,S);if(!S&&Wm){I4();const C=L4(w);m=C.MeasureLayout,E.visualElement=M4(i,b,w,t,C.ProjectionNode)}return g.jsxs(ld.Provider,{value:E,children:[m&&E.visualElement?g.jsx(m,{visualElement:E.visualElement,...w}):null,n(i,h,A4(b,E.visualElement,p),b,S,E.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(l=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&l!==void 0?l:""})`}`;const f=v.forwardRef(u);return f[_4]=i,f}function D4({layoutId:e}){const t=v.useContext(zm).id;return t&&e!==void 0?t+"-"+e:e}function I4(e,t){v.useContext(KS).strict}function L4(e){const{drag:t,layout:n}=ki;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const F4=["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 Gm(e){return typeof e!="string"||e.includes("-")?!1:!!(F4.indexOf(e)>-1||/[A-Z]/u.test(e))}function tw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Xm(e,t,n,r){if(typeof t=="function"){const[i,a]=tw(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=tw(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const Lp=e=>Array.isArray(e),B4=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),V4=e=>Lp(e)?e[e.length-1]||0:e,zt=e=>!!(e&&e.getVelocity);function wu(e){const t=zt(e)?e.get():e;return B4(t)?t.toValue():t}function z4({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const l={latestValues:U4(r,i,a,e),renderState:t()};return n&&(l.onMount=u=>n({props:r,current:u,...l}),l.onUpdate=u=>n(u)),l}const ZS=e=>(t,n)=>{const r=v.useContext(ld),i=v.useContext(ad),a=()=>z4(e,t,r,i);return n?a():Um(a)};function U4(e,t,n,r){const i={},a=r(e,{});for(const w in a)i[w]=wu(a[w]);let{initial:l,animate:u}=e;const f=ud(e),h=YS(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const m=p?u:l;if(m&&typeof m!="boolean"&&!cd(m)){const w=Array.isArray(m)?m:[m];for(let S=0;S<w.length;S++){const E=Xm(e,w[S]);if(E){const{transitionEnd:b,transition:C,...k}=E;for(const T in k){let R=k[T];if(Array.isArray(R)){const _=p?R.length-1:0;R=R[_]}R!==null&&(i[T]=R)}for(const T in b)i[T]=b[T]}}}return i}const Di=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Eo=new Set(Di),eC=e=>t=>typeof t=="string"&&t.startsWith(e),tC=eC("--"),$4=eC("var(--"),Jm=e=>$4(e)?W4.test(e.split("/*")[0].trim()):!1,W4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dr=(e,t,n)=>n>t?t:n<e?e:n,Ii={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ol={...Ii,transform:e=>Dr(0,1,e)},eu={...Ii,default:1},Tl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ls=Tl("deg"),dr=Tl("%"),ke=Tl("px"),H4=Tl("vh"),q4=Tl("vw"),nw={...dr,parse:e=>dr.parse(e)/100,transform:e=>dr.transform(e*100)},K4={borderWidth:ke,borderTopWidth:ke,borderRightWidth:ke,borderBottomWidth:ke,borderLeftWidth:ke,borderRadius:ke,radius:ke,borderTopLeftRadius:ke,borderTopRightRadius:ke,borderBottomRightRadius:ke,borderBottomLeftRadius:ke,width:ke,maxWidth:ke,height:ke,maxHeight:ke,top:ke,right:ke,bottom:ke,left:ke,padding:ke,paddingTop:ke,paddingRight:ke,paddingBottom:ke,paddingLeft:ke,margin:ke,marginTop:ke,marginRight:ke,marginBottom:ke,marginLeft:ke,backgroundPositionX:ke,backgroundPositionY:ke},Q4={rotate:ls,rotateX:ls,rotateY:ls,rotateZ:ls,scale:eu,scaleX:eu,scaleY:eu,scaleZ:eu,skew:ls,skewX:ls,skewY:ls,distance:ke,translateX:ke,translateY:ke,translateZ:ke,x:ke,y:ke,z:ke,perspective:ke,transformPerspective:ke,opacity:ol,originX:nw,originY:nw,originZ:ke},rw={...Ii,transform:Math.round},Zm={...K4,...Q4,zIndex:rw,size:ke,fillOpacity:ol,strokeOpacity:ol,numOctaves:rw},Y4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G4=Di.length;function X4(e,t,n){let r="",i=!0;for(let a=0;a<G4;a++){const l=Di[a],u=e[l];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(l.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const h=nC(u,Zm[l]);if(!f){i=!1;const p=Y4[l]||l;r+=`${p}(${h}
250) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function eg(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let l=!1,u=!1;for(const f in t){const h=t[f];if(Eo.has(f)){l=!0;continue}else if(tC(f)){i[f]=h;continue}else{const p=nC(h,Zm[f]);f.startsWith("origin")?(u=!0,a[f]=p):r[f]=p}}if(t.transform||(l||n?r.transform=X4(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:p=0}=a;r.transformOrigin=`${f} ${h} ${p}`}}const J4={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z4={offset:"strokeDashoffset",array:"strokeDasharray"};function eI(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?J4:Z4;e[a.offset]=ke.transform(-r);const l=ke.transform(t),u=ke.transform(n);e[a.array]=`${l} ${u}`}function sw(e,t,n){return typeof e=="string"?e:ke.transform(t+n*e)}function tI(e,t,n){const r=sw(t,e.x,e.width),i=sw(n,e.y,e.height);return`${r} ${i}`}function tg(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:l,pathSpacing:u=1,pathOffset:f=0,...h},p,m){if(eg(e,h,m),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:w,style:S,dimensions:E}=e;w.transform&&(E&&(S.transform=w.transform),delete w.transform),E&&(i!==void 0||a!==void 0||S.transform)&&(S.transformOrigin=tI(E,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(w.x=t),n!==void 0&&(w.y=n),r!==void 0&&(w.scale=r),l!==void 0&&eI(w,l,u,f,!1)}const ng=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rC=()=>({...ng(),attrs:{}}),rg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sC(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const oC=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 iC(e,t,n,r){sC(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(oC.has(i)?i:Qm(i),t.attrs[i])}const Ou={};function nI(e){Object.assign(Ou,e)}function aC(e,{layout:t,layoutId:n}){return Eo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ou[e]||e==="opacity")}function sg(e,t,n){var r;const{style:i}=e,a={};for(const l in i)(zt(i[l])||t.style&&zt(t.style[l])||aC(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[l]=i[l]);return a}function lC(e,t,n){const r=sg(e,t,n);for(const i in e)if(zt(e[i])||zt(t[i])){const a=Di.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function rI(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ow=["x","y","width","height","cx","cy","r"],sI={useVisualState:ZS({scrapeMotionValuesFromProps:lC,createRenderState:rC,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(Eo.has(u)){a=!0;break}}if(!a)return;let l=!t;if(t)for(let u=0;u<ow.length;u++){const f=ow[u];e[f]!==t[f]&&(l=!0)}l&&Xe.read(()=>{rI(n,r),Xe.render(()=>{tg(r,i,rg(n.tagName),e.transformTemplate),iC(n,r)})})}})},oI={useVisualState:ZS({scrapeMotionValuesFromProps:sg,createRenderState:ng})};function cC(e,t,n){for(const r in t)!zt(t[r])&&!aC(r,n)&&(e[r]=t[r])}function iI({transformTemplate:e},t){return v.useMemo(()=>{const n=ng();return eg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function aI(e,t){const n=e.style||{},r={};return cC(r,n,e),Object.assign(r,iI(e,t)),r}function lI(e,t){const n={},r=aI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function cI(e,t,n,r){const i=v.useMemo(()=>{const a=rC();return tg(a,t,rg(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};cC(a,e.style,e),i.style={...a,...i.style}}return i}function uI(e=!1){return(n,r,i,{latestValues:a},l)=>{const f=(Gm(n)?cI:lI)(r,a,l,n),h=P4(r,typeof n=="string",e),p=n!==v.Fragment?{...h,...f,ref:i}:{},{children:m}=r,w=v.useMemo(()=>zt(m)?m.get():m,[m]);return v.createElement(n,{...p,children:w})}}function dI(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...Gm(r)?sI:oI,preloadedFeatures:e,useRender:uI(i),createVisualElement:t,Component:r};return j4(l)}}function uC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}
vendor: 16,991 bytes, line 250
250function dd(e,t,n){const r=e.getProps();return Xm(r,t,n!==void 0?n:r.custom,e)}const fI=Hm(()=>window.ScrollTimeline!==void 0);class hI{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 r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(fI()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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 pI extends hI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function og(e,t){return e?e[t]||e.default||e:void 0}const Fp=2e4;function dC(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Fp;)t+=n,r=e.next(t);return t>=Fp?1/0:t}function ig(e){return typeof e=="function"}function iw(e,t){e.timeline=t,e.onfinish=null}const ag=e=>Array.isArray(e)&&typeof e[0]=="number",mI={linearEasing:void 0};function gI(e,t){const n=Hm(e);return()=>{var r;return(r=mI[t])!==null&&r!==void 0?r:n()}}const ju=gI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),fC=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(Pi(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function hC(e){return!!(typeof e=="function"&&ju()||!e||typeof e=="string"&&(e in Bp||ju())||ag(e)||Array.isArray(e)&&e.every(hC))}const Fa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fa([0,.65,.55,1]),circOut:Fa([.55,0,1,.45]),backIn:Fa([.31,.01,.66,-.59]),backOut:Fa([.33,1.53,.69,.99])};function pC(e,t){if(e)return typeof e=="function"&&ju()?fC(e,t):ag(e)?Fa(e):Array.isArray(e)?e.map(n=>pC(n,t)||Bp.easeOut):Bp[e]}const Un={x:!1,y:!1};function mC(){return Un.x||Un.y}function yI(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function gC(e,t){const n=yI(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function aw(e){return t=>{t.pointerType==="touch"||mC()||e(t)}}function vI(e,t,n={}){const[r,i,a]=gC(e,n),l=aw(u=>{const{target:f}=u,h=t(u);if(typeof h!="function"||!f)return;const p=aw(m=>{h(m),f.removeEventListener("pointerleave",p)});f.addEventListener("pointerleave",p,i)});return r.forEach(u=>{u.addEventListener("pointerenter",l,i)}),a}const yC=(e,t)=>t?e===t?!0:yC(e,t.parentElement):!1,lg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wI(e){return xI.has(e.tagName)||e.tabIndex!==-1}const Ba=new WeakSet;function lw(e){return t=>{t.key==="Enter"&&e(t)}}function Vh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const bI=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=lw(()=>{if(Ba.has(n))return;Vh(n,"down");const i=lw(()=>{Vh(n,"up")}),a=()=>Vh(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function cw(e){return lg(e)&&!mC()}function SI(e,t,n={}){const[r,i,a]=gC(e,n),l=u=>{const f=u.currentTarget;if(!cw(u)||Ba.has(f))return;Ba.add(f);const h=t(u),p=(S,E)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",w),!(!cw(S)||!Ba.has(f))&&(Ba.delete(f),typeof h=="function"&&h(S,{success:E}))},m=S=>{p(S,n.useGlobalTarget||yC(f,S.target))},w=S=>{p(S,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",w,i)};return r.forEach(u=>{!wI(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,i),u.addEventListener("focus",h=>bI(h,i),i)}),a}function CI(e){return e==="x"||e==="y"?Un[e]?null:(Un[e]=!0,()=>{Un[e]=!1}):Un.x||Un.y?null:(Un.x=Un.y=!0,()=>{Un.x=Un.y=!1})}const vC=new Set(["width","height","top","left","right","bottom",...Di]);let bu;function EI(){bu=void 0}const fr={now:()=>(bu===void 0&&fr.set(Nt.isProcessing||x4.useManualTiming?Nt.timestamp:performance.now()),bu),set:e=>{bu=e,queueMicrotask(EI)}};function cg(e,t){e.indexOf(t)===-1&&e.push(t)}function ug(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class dg{constructor(){this.subscriptions=[]}add(t){return cg(this.subscriptions,t),()=>ug(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const l=this.subscriptions[a];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function xC(e,t){return t?e*(1e3/t):0}const uw=30,PI=e=>!isNaN(parseFloat(e));class kI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=fr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=fr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=PI(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 dg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=fr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,uw);return xC(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 il(e,t){return new kI(e,t)}function TI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,il(n))}function RI(e,t){const n=dd(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const l in a){const u=V4(a[l]);TI(e,l,u)}}function _I(e){return!!(zt(e)&&e.add)}function Vp(e,t){const n=e.getValue("willChange");if(_I(n))return n.add(t)}function wC(e){return e.props[GS]}const bC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,AI=1e-7,NI=12;function MI(e,t,n,r,i){let a,l,u=0;do l=t+(n-t)/2,a=bC(l,r,i)-e,a>0?n=l:t=l;while(Math.abs(a)>AI&&++u<NI);return l}function Rl(e,t,n,r){if(e===t&&n===r)return fn;const i=a=>MI(a,0,1,e,n);return a=>a===0||a===1?a:bC(i(a),t,r)}const SC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CC=e=>t=>1-e(1-t),EC=Rl(.33,1.53,.69,.99),fg=CC(EC),PC=SC(fg),kC=e=>(e*=2)<1?.5*fg(e):.5*(2-Math.pow(2,-10*(e-1))),hg=e=>1-Math.sin(Math.acos(e)),TC=CC(hg),RC=SC(hg),_C=e=>/^0[^.\s]+$/u.test(e);function OI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||_C(e):!0}const Qa=e=>Math.round(e*1e5)/1e5,pg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jI(e){return e==null}const DI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mg=(e,t)=>n=>!!(typeof n=="string"&&DI.test(n)&&n.startsWith(e)||t&&!jI(n)&&Object.prototype.hasOwnProperty.call(n,t)),AC=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,l,u]=r.match(pg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},II=e=>Dr(0,255,e),zh={...Ii,transform:e=>Math.round(II(e))},no={test:mg("rgb","red"),parse:AC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zh.transform(e)+", "+zh.transform(t)+", "+zh.transform(n)+", "+Qa(ol.transform(r))+")"};function LI(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zp={test:mg("#"),parse:LI,transform:no.transform},si={test:mg("hsl","hue"),parse:AC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dr.transform(Qa(t))+", "+dr.transform(Qa(n))+", "+Qa(ol.transform(r))+")"},Bt={test:e=>no.test(e)||zp.test(e)||si.test(e),parse:e=>no.test(e)?no.parse(e):si.test(e)?si.parse(e):zp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?no.transform(e):si.transform(e)},FI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(FI))===null||n===void 0?void 0:n.length)||0)>0}const NC="number",MC="color",VI="var",zI="var(",dw="${}",UI=/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 al(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(UI,f=>(Bt.test(f)?(r.color.push(a),i.push(MC),n.push(Bt.parse(f))):f.startsWith(zI)?(r.var.push(a),i.push(VI),n.push(f)):(r.number.push(a),i.push(NC),n.push(parseFloat(f))),++a,dw)).split(dw);return{values:n,split:u,indexes:r,types:i}}function OC(e){return al(e).values}function jC(e){const{split:t,types:n}=al(e),r=t.length;return i=>{let a="";for(let l=0;l<r;l++)if(a+=t[l],i[l]!==void 0){const u=n[l];u===NC?a+=Qa(i[l]):u===MC?a+=Bt.transform(i[l]):a+=i[l]}return a}}const $I=e=>typeof e=="number"?0:e;function WI(e){const t=OC(e);return jC(e)(t.map($I))}const Cs={test:BI,parse:OC,createTransformer:jC,getAnimatableNone:WI},HI=new Set(["brightness","contrast","saturate","opacity"]);function qI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pg)||[];if(!r)return e;const i=n.replace(r,"");let a=HI.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const KI=/\b([a-z-]*)\(.*?\)/gu,Up={...Cs,getAnimatableNone:e=>{const t=e.match(KI);return t?t.map(qI).join(" "):e}},QI={...Zm,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:Up,WebkitFilter:Up},gg=e=>QI[e];function DC(e,t){let n=gg(e);return n!==Up&&(n=Cs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const YI=new Set(["auto","none","0"]);function GI(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!YI.has(a)&&al(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=DC(n,i)}const fw=e=>e===Ii||e===ke,hw=(e,t)=>parseFloat(e.split(", ")[t]),pw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return hw(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?hw(a[1],e):0}},XI=new Set(["x","y","z"]),JI=Di.filter(e=>!XI.has(e));function ZI(e){const t=[];return JI.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ti={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:pw(4,13),y:pw(5,14)};Ti.translateX=Ti.x;Ti.translateY=Ti.y;const mo=new Set;let $p=!1,Wp=!1;function IC(){if(Wp){const e=Array.from(mo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ZI(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,l])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Wp=!1,$p=!1,mo.forEach(e=>e.complete()),mo.clear()}function LC(){mo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wp=!0)})}function eL(){LC(),IC()}class yg{constructor(t,n,r,i,a,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(mo.add(this),$p||($p=!0,Xe.read(LC),Xe.resolveKeyframes(IC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const l=i==null?void 0:i.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),i&&l===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),mo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,mo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const FC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nL(e){const t=tL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function BC(e,t,n=1){const[r,i]=nL(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return FC(l)?parseFloat(l):l}return Jm(i)?BC(i,t,n+1):i}const VC=e=>t=>t.test(e),rL={test:e=>e==="auto",parse:e=>e},zC=[Ii,ke,dr,ls,q4,H4,rL],mw=e=>zC.find(VC(e));class UC extends yg{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Jm(h))){const p=BC(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!vC.has(r)||t.length!==2)return;const[i,a]=t,l=mw(i),u=mw(a);if(l!==u)if(fw(l)&&fw(u))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)OI(t[i])&&r.push(i);r.length&&GI(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ti[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=i.length-1,u=i[l];i[l]=Ti[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEac
vendor: 4,977 bytes, line 250
250h(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const gw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cs.test(e)||e==="0")&&!e.startsWith("url("));function sL(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 oL(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],l=gw(i,t),u=gw(a,t);return!l||!u?!1:sL(e)||(n==="spring"||ig(n))&&r}const iL=e=>e!==null;function fd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(iL),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const aL=40;class $C{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=fr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:l,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>aL?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&eL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=fr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:l,onComplete:u,onUpdate:f,isGenerator:h}=this.options;if(!h&&!oL(t,r,i,a))if(l)this.options.duration=0;else{f&&f(fd(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},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 ot=(e,t,n)=>e+(t-e)*n;function Uh(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 lL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,l=0;if(!t)i=a=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=Uh(f,u,e+1/3),a=Uh(f,u,e),l=Uh(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}function Du(e,t){return n=>n>0?t:e}const $h=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cL=[zp,no,si],uL=e=>cL.find(t=>t.test(e));function yw(e){const t=uL(e);if(!t)return!1;let n=t.parse(e);return t===si&&(n=lL(n)),n}const vw=(e,t)=>{const n=yw(e),r=yw(t);if(!n||!r)return Du(e,t);const i={...n};return a=>(i.red=$h(n.red,r.red,a),i.green=$h(n.green,r.green,a),i.blue=$h(n.blue,r.blue,a),i.alpha=ot(n.alpha,r.alpha,a),no.transform(i))},dL=(e,t)=>n=>t(e(n)),_l=(...e)=>e.reduce(dL),Hp=new Set(["none","hidden"]);function fL(e,t){return Hp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hL(e,t){return n=>ot(e,t,n)}function vg(e){return typeof e=="number"?hL:typeof e=="string"?Jm(e)?Du:Bt.test(e)?vw:gL:Array.isArray(e)?WC:typeof e=="object"?Bt.test(e)?vw:pL:Du}function WC(e,t){const n=[...e],r=n.length,i=e.map((a,l)=>vg(a)(a,t[l]));return a=>{for(let l=0;l<r;l++)n[l]=i[l](a);return n}}function pL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vg(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function mL(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],u=e.indexes[l][i[l]],f=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=f,i[l]++}return r}const gL=(e,t)=>{const n=Cs.createTransformer(t),r=al(e),i=al(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Hp.has(e)&&!i.values.length||Hp.has(t)&&!r.values.length?fL(e,t):_l(WC(mL(r,i),i.values),n):Du(e,t)};function HC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):vg(e)(e,t)}const yL=5;function qC(e,t,n){const r=Math.max(t-yL,0);return xC(n-e(r),t-r)}const ct={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},Wh=.001;function vL({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,a,l=1-t;l=Dr(ct.minDamping,ct.maxDamping,l),e=Dr(ct.minDuration,ct.maxDuration,jr(e)),l<1?(i=h=>{const p=h*l,m=p*e,w=p-n,S=qp(h,l),E=Math.exp(-m);return Wh-w/S*E},a=h=>{const m=h*l*e,w=m*n+n,S=Math.pow(l,2)*Math.pow(h,2)*e,E=Math.exp(-m),b=qp(Math.pow(h,2),l);return(-i(h)+Wh>0?-1:1)*((w-S)*E)/b}):(i=h=>{const p=Math.exp(-h*e),m=(h-n)*e+1;return-Wh+p*m},a=h=>{const p=Math.exp(-h*e),m=(n-h)*(e*e);return p*m});const u=5/e,f=wL(i,a,u);if(e=Or(e),isNaN(f))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const xL=12;function wL(e,t,n){let r=n;for(let i=1;i<xL;
vendor: 9,502 bytes, line 250
250i++)r=r-e(r)/t(r);return r}function qp(e,t){return e*Math.sqrt(1-t*t)}const bL=["duration","bounce"],SL=["stiffness","damping","mass"];function xw(e,t){return t.some(n=>e[n]!==void 0)}function CL(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!xw(e,SL)&&xw(e,bL))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Dr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:a}}else{const n=vL(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function KC(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:h,mass:p,duration:m,velocity:w,isResolvedFromDuration:S}=CL({...n,velocity:-jr(n.velocity||0)}),E=w||0,b=h/(2*Math.sqrt(f*p)),C=l-a,k=jr(Math.sqrt(f/p)),T=Math.abs(C)<5;r||(r=T?ct.restSpeed.granular:ct.restSpeed.default),i||(i=T?ct.restDelta.granular:ct.restDelta.default);let R;if(b<1){const N=qp(k,b);R=L=>{const B=Math.exp(-b*k*L);return l-B*((E+b*k*C)/N*Math.sin(N*L)+C*Math.cos(N*L))}}else if(b===1)R=N=>l-Math.exp(-k*N)*(C+(E+k*C)*N);else{const N=k*Math.sqrt(b*b-1);R=L=>{const B=Math.exp(-b*k*L),j=Math.min(N*L,300);return l-B*((E+b*k*C)*Math.sinh(j)+N*C*Math.cosh(j))/N}}const _={calculatedDuration:S&&m||null,next:N=>{const L=R(N);if(S)u.done=N>=m;else{let B=0;b<1&&(B=N===0?Or(E):qC(R,N,L));const j=Math.abs(B)<=r,K=Math.abs(l-L)<=i;u.done=j&&K}return u.value=u.done?l:L,u},toString:()=>{const N=Math.min(dC(_),Fp),L=fC(B=>_.next(N*B).value,N,30);return N+"ms "+L}};return _}function ww({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:f,restDelta:h=.5,restSpeed:p}){const m=e[0],w={done:!1,value:m},S=j=>u!==void 0&&j<u||f!==void 0&&j>f,E=j=>u===void 0?f:f===void 0||Math.abs(u-j)<Math.abs(f-j)?u:f;let b=n*t;const C=m+b,k=l===void 0?C:l(C);k!==C&&(b=k-m);const T=j=>-b*Math.exp(-j/r),R=j=>k+T(j),_=j=>{const K=T(j),G=R(j);w.done=Math.abs(K)<=h,w.value=w.done?k:G};let N,L;const B=j=>{S(w.value)&&(N=j,L=KC({keyframes:[w.value,E(w.value)],velocity:qC(R,j,w.value),damping:i,stiffness:a,restDelta:h,restSpeed:p}))};return B(0),{calculatedDuration:null,next:j=>{let K=!1;return!L&&N===void 0&&(K=!0,_(j),B(j)),N!==void 0&&j>=N?L.next(j-N):(!K&&_(j),w)}}}const EL=Rl(.42,0,1,1),PL=Rl(0,0,.58,1),QC=Rl(.42,0,.58,1),kL=e=>Array.isArray(e)&&typeof e[0]!="number",TL={linear:fn,easeIn:EL,easeInOut:QC,easeOut:PL,circIn:hg,circInOut:RC,circOut:TC,backIn:fg,backInOut:PC,backOut:EC,anticipate:kC},bw=e=>{if(ag(e)){HS(e.length===4);const[t,n,r,i]=e;return Rl(t,n,r,i)}else if(typeof e=="string")return TL[e];return e};function RL(e,t,n){const r=[],i=n||HC,a=e.length-1;for(let l=0;l<a;l++){let u=i(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||fn:t;u=_l(f,u)}r.push(u)}return r}function _L(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(HS(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=RL(t,r,i),f=u.length,h=p=>{if(l&&p<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const w=Pi(e[m],e[m+1],p);return u[m](w)};return n?p=>h(Dr(e[0],e[a-1],p)):h}function AL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Pi(0,t,r);e.push(ot(n,1,i))}}function NL(e){const t=[0];return AL(t,e.length-1),t}function ML(e,t){return e.map(n=>n*t)}function OL(e,t){return e.map(()=>t||QC).splice(0,e.length-1)}function Iu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=kL(r)?r.map(bw):bw(r),a={done:!1,value:t[0]},l=ML(n&&n.length===t.length?n:NL(t),e),u=_L(l,t,{ease:Array.isArray(i)?i:OL(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const jL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Ss(t),now:()=>Nt.isProcessing?Nt.timestamp:fr.now()}},DL={decay:ww,inertia:ww,tween:Iu,keyframes:Iu,spring:KC},IL=e=>e/100;class xg extends $C{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:r,element:i,keyframes:a}=this.options,l=(i==null?void 0:i.KeyframeResolver)||yg,u=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:l=0}=this.options,u=ig(n)?n:DL[n]||Iu;let f,h;u!==Iu&&typeof t[0]!="number"&&(f=_l(IL,HC(t[0],t[1])),t=[0,100]);const p=u({...this.options,keyframes:t});a==="mirror"&&(h=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),p.calculatedDuration===null&&(p.calculatedDuration=dC(p));const{calculatedDuration:m}=p,w=m+i,S=w*(r+1)-i;return{generator:p,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:m,resolvedDuration:w,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:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:l,mapPercentToKeyframes:u,keyframes:f,calculatedDuration:h,totalDuration:p,resolvedDuration:m}=r;if(this.startTime===null)return a.next(0);const{delay:w,repeat:S,repeatType:E,repeatDelay:b,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/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 k=this.currentTime-w*(this.speed>=0?1:-1),T=this.speed>=0?k<0:k>p;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let R=this.currentTime,_=a;if(S){const j=Math.min(this.currentTime,p)/m;let K=Math.floor(j),G=j%1;!G&&j>=1&&(G=1),G===1&&K--,K=Math.min(K,S+1),!!(K%2)&&(E==="reverse"?(G=1-G,b&&(G-=b/m)):E==="mirror"&&(_=l)),R=Dr(0,1,G)*m}const N=T?{done:!1,value:f[0]}:_.next(R);u&&(N.value=u(N.value));let{done:L}=N;!T&&h!==null&&(L=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return B&&i!==void 0&&(N.value=fd(f,this.options,i)),C&&C(N.value),B&&this.finish(),N}get duration(){const{resolved:t}=this;return t?jr(t.calculatedDuration):0}get time(){return jr(this.currentTime)}set time(t){t=Or(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=jr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=jL,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??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 LL=new Set(["opacity","clipPath","filter","transform"]);function FL(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:l="loop",ease:u="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const p=pC(u,i);return Array.isArray(p)&&(h.easing=p),e.animate(h,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}const BL=Hm(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lu=10,VL=2e4;function zL(e){return ig(e.type)||e.type==="spring"||!hC(e.ease)}function UL(e,t){const n=new xg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<VL;)r=n.sample(a),i.push(r.value),a+=Lu;return{times:void 0,keyframes:i,duration:a-Lu,ease:"linear"}}const YC={anticipate:kC,backInOut:PC,circInOut:RC};function $L(e){return e in YC}class Sw extends $C{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;
vendor: 5,098 bytes, line 250
250this.resolver=new UC(a,(l,u)=>this.onKeyframesResolved(l,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:l,motionValue:u,name:f,startTime:h}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&ju()&&$L(a)&&(a=YC[a]),zL(this.options)){const{onComplete:m,onUpdate:w,motionValue:S,element:E,...b}=this.options,C=UL(t,b);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,a=C.ease,l="keyframes"}const p=FL(u.owner.current,f,t,{...this.options,duration:r,times:i,ease:a});return p.startTime=h??this.calcStartTime(),this.pendingTimeline?(iw(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:m}=this.options;u.set(fd(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:r,times:i,type:l,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Or(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:r}=n;r.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 fn;const{animation:r}=n;iw(r,t)}return fn}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:r,duration:i,type:a,ease:l,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:p,onComplete:m,element:w,...S}=this.options,E=new xg({...S,keyframes:r,duration:i,type:a,ease:l,times:u,isGenerator:!0}),b=Or(this.time);h.setWithVelocity(E.sample(b-Lu).value,E.sample(b).value,Lu)}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:r,repeatDelay:i,repeatType:a,damping:l,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return BL()&&r&&LL.has(r)&&!f&&!h&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}}const WL={type:"spring",stiffness:500,damping:25,restSpeed:10},HL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qL={type:"keyframes",duration:.8},KL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QL=(e,{keyframes:t})=>t.length>2?qL:Eo.has(e)?e.startsWith("scale")?HL(t[1]):WL:KL;function YL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:l,repeatDelay:u,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const wg=(e,t,n,r={},i,a)=>l=>{const u=og(r,e)||{},f=u.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Or(f);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:w=>{t.set(w),u.onUpdate&&u.onUpdate(w)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};YL(u)||(p={...p,...QL(e,p)}),p.duration&&(p.duration=Or(p.duration)),p.repeatDelay&&(p.repeatDelay=Or(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(m=!0)),m&&!a&&t.get()!==void 0){const w=fd(p.keyframes,u);if(w!==void 0)return Xe.update(()=>{p.onUpdate(w),p.onComplete()}),new pI([])}return!a&&Sw.supports(p)?new Sw(p):new xg(p)};function GL({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function GC(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:l=e.getDefaultTransition(),transitionEnd:u,...f}=t;r&&(l=r);const h=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const m in f){const w=e.getValue(m,(a=e.latestValues[m])!==null&&a!==void 0?a:null),S=f[m];if(S===void 0||p&&GL(p,m))continue;const E={delay:n,...og(l||{},m)};let b=!1;if(window.MotionHandoffAnimation){const k=wC(e);if(k){const T=window.MotionHandoffAnimation(k,m,Xe);T!==null&&(E.startTime=T,b=!0)}}Vp(e,m),w.start(wg(m,w,S,e.shouldReduceMotion&&vC.has(m)?{type:!1}:E,e,b));const C=w.animation;C&&h.push(C)}return u&&Promise.all(h).then(()=>{Xe.update(()=>{u&&RI(e,u)})}),h}function Kp(e,t,n={}){var r;const i=dd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};
vendor: 8,813 bytes, line 250
250n.transitionOverride&&(a=n.transitionOverride);const l=i?()=>Promise.all(GC(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:w}=a;return XL(e,t,p+h,m,w,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,p]=f==="beforeChildren"?[l,u]:[u,l];return h().then(()=>p())}else return Promise.all([l(),u(n.delay)])}function XL(e,t,n=0,r=0,i=1,a){const l=[],u=(e.variantChildren.size-1)*r,f=i===1?(h=0)=>h*r:(h=0)=>u-h*r;return Array.from(e.variantChildren).sort(JL).forEach((h,p)=>{h.notify("AnimationStart",t),l.push(Kp(h,t,{...a,delay:n+f(p)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function JL(e,t){return e.sortNodePosition(t)}function ZL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Kp(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Kp(e,t,n);else{const i=typeof t=="function"?dd(e,t,n.custom):t;r=Promise.all(GC(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const eF=Km.length;function XC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?XC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<eF;n++){const r=Km[n],i=e.props[r];(sl(i)||i===!1)&&(t[r]=i)}return t}const tF=[...qm].reverse(),nF=qm.length;function rF(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ZL(e,n,r)))}function sF(e){let t=rF(e),n=Cw(),r=!0;const i=f=>(h,p)=>{var m;const w=dd(e,p,f==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(w){const{transition:S,transitionEnd:E,...b}=w;h={...h,...b,...E}}return h};function a(f){t=f(e)}function l(f){const{props:h}=e,p=XC(e.parent)||{},m=[],w=new Set;let S={},E=1/0;for(let C=0;C<nF;C++){const k=tF[C],T=n[k],R=h[k]!==void 0?h[k]:p[k],_=sl(R),N=k===f?T.isActive:null;N===!1&&(E=C);let L=R===p[k]&&R!==h[k]&&_;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),T.protectedKeys={...S},!T.isActive&&N===null||!R&&!T.prevProp||cd(R)||typeof R=="boolean")continue;const B=oF(T.prevProp,R);let j=B||k===f&&T.isActive&&!L&&_||C>E&&_,K=!1;const G=Array.isArray(R)?R:[R];let J=G.reduce(i(k),{});N===!1&&(J={});const{prevResolvedValues:se={}}=T,re={...se,...J},oe=ne=>{j=!0,w.has(ne)&&(K=!0,w.delete(ne)),T.needsAnimating[ne]=!0;const U=e.getValue(ne);U&&(U.liveStyle=!1)};for(const ne in re){const U=J[ne],H=se[ne];if(S.hasOwnProperty(ne))continue;let z=!1;Lp(U)&&Lp(H)?z=!uC(U,H):z=U!==H,z?U!=null?oe(ne):w.add(ne):U!==void 0&&w.has(ne)?oe(ne):T.protectedKeys[ne]=!0}T.prevProp=R,T.prevResolvedValues=J,T.isActive&&(S={...S,...J}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(L&&B)||K)&&m.push(...G.map(ne=>({animation:ne,options:{type:k}})))}if(w.size){const C={};w.forEach(k=>{const T=e.getBaseTarget(k),R=e.getValue(k);R&&(R.liveStyle=!0),C[k]=T??null}),m.push({animation:C})}let b=!!m.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function u(f,h){var p;if(n[f].isActive===h)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(w=>{var S;return(S=w.animationState)===null||S===void 0?void 0:S.setActive(f,h)}),n[f].isActive=h;const m=l(f);for(const w in n)n[w].protectedKeys={};return m}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Cw(),r=!0}}}function oF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uC(t,e):!1}function Ys(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cw(){return{animate:Ys(!0),whileInView:Ys(),whileHover:Ys(),whileTap:Ys(),whileDrag:Ys(),whileFocus:Ys(),exit:Ys()}}class Rs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iF extends Rs{constructor(t){super(t),t.animationState||(t.animationState=sF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cd(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 aF=0;class lF extends Rs{constructor(){super(...arguments),this.id=aF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const cF={animation:{Feature:iF},exit:{Feature:lF}};function ll(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Al(e){return{point:{x:e.pageX,y:e.pageY}}}const uF=e=>t=>lg(t)&&e(t,Al(t));function Ya(e,t,n,r){return ll(e,t,uF(n),r)}const Ew=(e,t)=>Math.abs(e-t);function dF(e,t){const n=Ew(e.x,t.x),r=Ew(e.y,t.y);return Math.sqrt(n**2+r**2)}class JC{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!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 m=qh(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,S=dF(m.offset,{x:0,y:0})>=3;if(!w&&!S)return;const{point:E}=m,{timestamp:b}=Nt;this.history.push({...E,timestamp:b});const{onStart:C,onMove:k}=this.handlers;w||(C&&C(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,m)},this.handlePointerMove=(m,w)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Hh(w,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(m,w)=>{this.end();const{onEnd:S,onSessionEnd:E,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=qh(m.type==="pointercancel"?this.lastMoveEventInfo:Hh(w,this.transformPagePoint),this.history);this.startEvent&&S&&S(m,C),E&&E(m,C)},!lg(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=Al(t),u=Hh(l,this.transformPagePoint),{point:f}=u,{timestamp:h}=Nt;this.history=[{...f,timestamp:h}];const{onSessionStart:p}=n;p&&p(t,qh(u,this.history)),this.removeListeners=_l(Ya(this.contextWindow,"pointermove",this.handlePointerMove),Ya(this.contextWindow,"pointerup",this.handlePointerUp),Ya(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ss(this.updatePoint)}}function Hh(e,t){return t?{point:t(e.point)}:e}function Pw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qh({point:e},t){return{point:e,delta:Pw(e,ZC(t)),offset:Pw(e,fF(t)),velocity:hF(t,.1)}}function fF(e){return e[0]}function ZC(e){return e[e.length-1]}function hF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ZC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Or(t)));)n--;if(!r)return{x:0,y:0};const a=jr(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const eE=1e-4,pF=1-eE,mF=1+eE,tE=.01,gF=0-tE,yF=0+tE;function pn(e){return e.max-e.min}function vF(e,t,n){return Math.abs(e-t)<=n}function kw(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=pn(n)/pn(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=pF&&e.scale<=mF||isNaN(e.scale))&&(e.scale=1),(e.translate>=gF&&e.translate<=yF||isNaN(e.translate))&&(e.translate=0)}function Ga(e,t,n,r){kw(e.x,t.x,n.x,r?r.originX:void 0),kw(e.y,t.y,n.y,r?r.originY:void 0)}function Tw(e,t,n){e.min=n.min+t.min,e.max=e.min+pn(t)}function xF(e,t,n){Tw(e.x,t.x,n.x),Tw(e.y,t.y,n.y)}function Rw(e,t,n){e.min=t.min-n.min,e.max=e.min+pn(t)}function Xa(e,t,n){Rw(e.x,t.x,n.x),Rw(e.y,t.y,n.y)}function wF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ot(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function _w(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 bF(e,{top:t,left:n,bottom:r,right:i}){return{x:_w(e.x,n,i),y:_w(e.y,t,r)}}function Aw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function SF(e,t){return{x:Aw(e.x,t.x),y:Aw(e.y,t.y)}}function CF(e,t){let n=.5;const r=pn(e),i=pn(t);return i>r?n=Pi(t.min,t.max-r,e.min):r>i&&(n=Pi(e.min,e.max-i,t.min)),Dr(0,1,n)}function EF(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 Qp=.35;function PF(e=Qp){return e===!1?e=0:e===!0&&(e=Qp),{x:Nw(e,"left","right"),y:Nw(e,"to
250p","bottom")}}function Nw(e,t,n){return{min:Mw(e,t),max:Mw(e,n)}}function Mw(e,t){return typeof e=="number"?e:e[t]||0}const Ow=()=>({translate:0,scale:1,origin:0,originPoint:0}),oi=()=>({x:Ow(),y:Ow()}),jw=()=>({min:0,max:0}),ft=()=>({x:jw(),y:jw()});function Pn(e){return[e("x"),e("y")]}function nE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Kh(e){return e===void 0||e===1}function Yp({scale:e,scaleX:t,scaleY:n}){return!Kh(e)||!Kh(t)||!Kh(n)}function Xs(e){return Yp(e)||rE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rE(e){return Dw(e.x)||Dw(e.y)}function Dw(e){return e&&e!=="0%"}function Fu(e,t,n){const r=e-n,i=t*r;return n+i}function Iw(e,t,n,r,i){return i!==void 0&&(e=Fu(e,i,r)),Fu(e,n,r)+t}function Gp(e,t=0,n=1,r,i){e.min=Iw(e.min,t,n,r,i),e.max=Iw(e.max,t,n,r,i)}function sE(e,{x:t,y:n}){Gp(e.x,t.translate,t.scale,t.originPoint),Gp(e.y,n.translate,n.scale,n.originPoint)}const Lw=.999999999999,Fw=1.0000000000001;function RF(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,l;for(let u=0;u<i;u++){a=n[u],l=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ai(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,sE(e,l)),r&&Xs(a.latestValues)&&ai(e,a.latestValues))}t.x<Fw&&t.x>Lw&&(t.x=1),t.y<Fw&&t.y>Lw&&(t.y=1)}function ii(e,t){e.min=e.min+t,e.max=e.max+t}function Bw(e,t,n,r,i=.5){const a=ot(e.min,e.max,i);Gp(e,t,n,a,r)}function ai(e,t){Bw(e.x,t.x,t.scaleX,t.scale,t.originX),Bw(e.y,t.y,t.scaleY,t.scale,t.originY)}function oE(e,t){return nE(TF(e.getBoundingClientRect(),t))}function _F(e,t,n){const r=oE(e,n),{scroll:i}=t;return i&&(ii(r.x,i.offset.x),ii(r.y,i.offset.y)),r}const iE=({current:e})=>e?e.ownerDocument.defaultView:null,AF=new WeakMap;class NF{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=ft(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Al(p).point)},a=(p,m)=>{const{drag:w,dragPropagation:S,onDragStart:E}=this.getProps();if(w&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CI(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pn(C=>{let k=this.getAxisMotionValue(C).get()||0;if(dr.test(k)){const{projection:T}=this.visualElement;if(T&&T.layout){const R=T.layout.layoutBox[C];R&&(k=pn(R)*(parseFloat(k)/100))}}this.originPoint[C]=k}),E&&Xe.postRender(()=>E(p,m)),Vp(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(p,m)=>{const{dragPropagation:w,dragDirectionLock:S,onDirectionLock:E,onDrag:b}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:C}=m;if(S&&this.currentDirection===null){this.currentDirection=MF(C),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,C),this.updateAxis("y",m.point,C),this.visualElement.render(),b&&b(p,m)},u=(p,m)=>this.stop(p,m),f=()=>Pn(p=>{var m;return this.getAnimationState(p)==="paused"&&((m=this.getAxisMotionValue(p).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new JC(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:iE(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Xe.postRender(()=>a(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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!tu(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=wF(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&ri(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=bF(i.layoutBox,n):this.constraints=!1,this.elastic=PF(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Pn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=EF(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ri(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=_F(r,i.root,this.visualElement.getTransformPagePoint());let l=SF(i.layout.layoutBox,a);if(n){const u=n(kF(l));this.hasMutatedConstraints=!!u,u&&(l=nE(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=Pn(p=>{if(!tu(p,n,this.currentDirection))return;let m=f&&f[p]||{};l&&(m={min:0,max:0});const w=i?200:1e6,S=i?40:1e7,E={type:"inertia",velocity:r?t[p]:0,bounceStiffness:w,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(p,E)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Vp(this.visualElement,t),r.start(wg(t,r,0,n,this.visualElement,!1))}stopAnimation(){Pn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pn(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()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Pn(n=>{const{drag:r}=this.getProps();if(!tu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];a.set(t[n]-ot(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ri(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Pn(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const f=u.get();i[l]=CF({min:f,max:f},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pn(l=>{if(!tu(l,t,null))return;const u=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];u.set(ot(f,h,i[l]))})}addListeners(){if(!this.visualElement.current)return;AF.set(this.visualElement,this);const t=this.visualElement.current,n=Ya(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();ri(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xe.read(r);const l=ll(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Pn(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=f[p].translate,m.set(m.get()+f[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:l=Qp,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function tu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function MF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OF extends Rs{constructor(t){super(t),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new NF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Vw=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};
vendor: 28,519 bytes, line 250
250class jF extends Rs{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(t){this.session=new JC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Vw(t),onStart:Vw(n),onMove:r,onEnd:(a,l)=>{delete this.session,i&&Xe.postRender(()=>i(a,l))}}}mount(){this.removePointerDownListener=Ya(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Su={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ma={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ke.test(e))e=parseFloat(e);else return e;const n=zw(e,t.target.x),r=zw(e,t.target.y);return`${n}% ${r}%`}},DF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Cs.parse(e);if(i.length>5)return r;const a=Cs.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=f;const h=ot(u,f,.5);return typeof i[2+l]=="number"&&(i[2+l]/=h),typeof i[3+l]=="number"&&(i[3+l]/=h),a(i)}};class IF extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;nI(LF),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Su.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||Xe.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ym.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function aE(e){const[t,n]=$S(),r=v.useContext(zm);return g.jsx(IF,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(XS),isPresent:t,safeToRemove:n})}const LF={borderRadius:{...Ma,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ma,borderTopRightRadius:Ma,borderBottomLeftRadius:Ma,borderBottomRightRadius:Ma,boxShadow:DF};function FF(e,t,n){const r=zt(e)?e:il(e);return r.start(wg("",r,t,n)),r.animation}function BF(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VF=(e,t)=>e.depth-t.depth;class zF{constructor(){this.children=[],this.isDirty=!1}add(t){cg(this.children,t),this.isDirty=!0}remove(t){ug(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VF),this.isDirty=!1,this.children.forEach(t)}}function UF(e,t){const n=fr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Ss(r),e(a-t))};return Xe.read(r,!0),()=>Ss(r)}const lE=["TopLeft","TopRight","BottomLeft","BottomRight"],$F=lE.length,Uw=e=>typeof e=="string"?parseFloat(e):e,$w=e=>typeof e=="number"||ke.test(e);function WF(e,t,n,r,i,a){i?(e.opacity=ot(0,n.opacity!==void 0?n.opacity:1,HF(r)),e.opacityExit=ot(t.opacity!==void 0?t.opacity:1,0,qF(r))):a&&(e.opacity=ot(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<$F;l++){const u=`border${lE[l]}Radius`;let f=Ww(t,u),h=Ww(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||$w(f)===$w(h)?(e[u]=Math.max(ot(Uw(f),Uw(h),r),0),(dr.test(h)||dr.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=ot(t.rotate||0,n.rotate||0,r))}function Ww(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HF=cE(0,.5,TC),qF=cE(.5,.95,fn);function cE(e,t,n){return r=>r<e?0:r>t?1:n(Pi(e,t,r))}function Hw(e,t){e.min=t.min,e.max=t.max}function Cn(e,t){Hw(e.x,t.x),Hw(e.y,t.y)}function qw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Kw(e,t,n,r,i){return e-=t,e=Fu(e,1/n,r),i!==void 0&&(e=Fu(e,1/i,r)),e}function KF(e,t=0,n=1,r=.5,i,a=e,l=e){if(dr.test(t)&&(t=parseFloat(t),t=ot(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=ot(a.min,a.max,r);e===a&&(u-=t),e.min=Kw(e.min,t,n,u,i),e.max=Kw(e.max,t,n,u,i)}function Qw(e,t,[n,r,i],a,l){KF(e,t[n],t[r],t[i],t.scale,a,l)}const QF=["x","scaleX","originX"],YF=["y","scaleY","originY"];function Yw(e,t,n,r){Qw(e.x,t,QF,n?n.x:void 0,r?r.x:void 0),Qw(e.y,t,YF,n?n.y:void 0,r?r.y:void 0)}function Gw(e){return e.translate===0&&e.scale===1}function uE(e){return Gw(e.x)&&Gw(e.y)}function Xw(e,t){return e.min===t.min&&e.max===t.max}function GF(e,t){return Xw(e.x,t.x)&&Xw(e.y,t.y)}function Jw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dE(e,t){return Jw(e.x,t.x)&&Jw(e.y,t.y)}function Zw(e){return pn(e.x)/pn(e.y)}function eb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class XF{constructor(){this.members=[]}add(t){cg(this.members,t),t.scheduleRender()}remove(t){if(ug(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function JF(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||a||l)&&(r=`translate3d(${i}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:m,rotateY:w,skewX:S,skewY:E}=n;h&&(r=`perspective(${h}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),w&&(r+=`rotateY(${w}deg) `),S&&(r+=`skewX(${S}deg) `),E&&(r+=`skewY(${E}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const Js={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Va=typeof window<"u"&&window.MotionDebug!==void 0,Qh=["","X","Y","Z"],ZF={visibility:"hidden"},tb=1e3;let eB=0;function Yh(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wC(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xe,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fE(r)}function hE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t==null?void 0:t()){this.id=eB++,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,Va&&(Js.totalNodes=Js.resolvedTargetDeltas=Js.recalculatedProjection=0),this.nodes.forEach(rB),this.nodes.forEach(lB),this.nodes.forEach(cB),this.nodes.forEach(sB),Va&&window.MotionDebug.record(Js)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new zF)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new dg),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const f=this.eventHandlers.get(l);f&&f.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=BF(l),this.instance=l;const{layoutId:f,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(h||f)&&(this.isLayoutDirty=!0),e){let m;const w=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=UF(w,250),Su.hasAnimatedSinceResize&&(Su.hasAnimatedSinceResize=!1,this.nodes.forEach(rb))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:w,hasRelativeTargetChanged:S,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||pB,{onLayoutAnimationStart:C,onLayoutAnimationComplete:k}=p.getProps(),T=!this.targetLayout||!dE(this.targetLayout,E)||S,R=!w&&S;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||R||w&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,R);const _={...og(b,"layout"),onPlay:C,onComplete:k};(p.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else w||rb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ss(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(uB),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nb);return}this.isUpdating||this.nodes.forEach(iB),this.isUpdating=!1,this.nodes.forEach(aB),this.nodes.forEach(tB),this.nodes.forEach(nB),this.clearAllSnapshots();const u=fr.now();Nt.delta=Dr(0,1e3/60,u-Nt.timestamp),Nt.timestamp=u,Nt.isProcessing=!0,Bh.update.process(Nt),Bh.preRender.process(Nt),Bh.render.process(Nt),Nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ym.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(oB),this.sharedNodes.forEach(dB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.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 l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ft(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!uE(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;l&&(u||Xs(this.latestValues)||p)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return l&&(f=this.removeTransform(f)),mB(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:u}=this.options;if(!u)return ft();const f=u.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(gB))){const{scroll:p}=this.root;p&&(ii(f.x,p.offset.x),ii(f.y,p.offset.y))}return f}removeElementScroll(l){var u;const f=ft();if(Cn(f,l),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return f;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:m,options:w}=p;p!==this.root&&m&&w.layoutScroll&&(m.wasRoot&&Cn(f,l),ii(f.x,m.offset.x),ii(f.y,m.offset.y))}return f}applyTransform(l,u=!1){const f=ft();Cn(f,l);for(let h=0;h<this.path.length;h++){const p=this.path[h];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&ai(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Xs(p.latestValues)&&ai(f,p.latestValues)}return Xs(this.latestValues)&&ai(f,this.latestValues),f}removeTransform(l){const u=ft();Cn(u,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Xs(h.latestValues))continue;Yp(h.latestValues)&&h.updateSnapshot();const p=ft(),m=h.measurePageBox();Cn(p,m),Yw(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return Xs(this.latestValues)&&Yw(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==Nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var u;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:w}=this.options;if(!(!this.layout||!(m||w))){if(this.resolvedRelativeTargetAt=Nt.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ft(),this.relativeTargetOrigin=ft(),Xa(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ft(),this.targetWithTransforms=ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cn(this.target,this.layout.layoutBox),sE(this.target,this.targetDelta)):Cn(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=ft(),this.relativeTargetOrigin=ft(),Xa(this.relativeTargetOrigin,this.target,S.target),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Va&&Js.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Yp(this.parent.latestValues)||rE(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 l;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Nt.timestamp&&(h=!1),h)return;const{layout:p,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||m))return;Cn(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,S=this.treeScale.y;RF(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ft());const{target:E}=u;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qw(this.prevProjectionDelta.x,this.projectionDelta.x),qw(this.prevProjectionDelta.y,this.projectionDelta.y)),Ga(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==S||!eb(this.projectionDelta.x,this.prevProjectionDelta.x)||!eb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),Va&&Js.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=oi(),this.projectionDelta=oi(),this.projectionDeltaWithTransform=oi()}setAnimationOrigin(l,u=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},m=oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const w=ft(),S=f?f.source:void 0,E=this.layout?this.layout.source:void 0,b=S!==E,C=this.getStack(),k=!C||C.members.length<=1,T=!!(b&&!k&&this.options.crossfade===!0&&!this.path.some(hB));this.animationProgress=0;let R;this.mixTargetDelta=_=>{const N=_/1e3;sb(m.x,l.x,N),sb(m.y,l.y,N),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xa(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fB(this.relativeTarget,this.relativeTargetOrigin,w,N),R&&GF(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=ft()),Cn(R,this.relativeTarget)),b&&(this.animationValues=p,WF(p,h,this.latestValues,N,T,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ss(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Su.hasAnimatedSinceResize=!0,this.currentAnimation=FF(0,tb,{...l,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:p}=l;if(!(!u||!f||!h)){if(this!==l&&this.layout&&h&&pE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||ft();const m=pn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+m;const w=pn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+w}Cn(u,f),ai(u,p),Ga(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new XF),this.sharedNodes.get(l).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&Yh("z",l,h,this.animationValues);for(let p=0;p<Qh.length;p++)Yh(`rotate${Qh[p]}`,l,h,this.animationValues),Yh(`skew${Qh[p]}`,l,h,this.animationValues);l.render();for(const p in h)l.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);l.scheduleRender()}getProjectionStyles(l){var u,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ZF;const h={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=wu(l==null?void 0:l.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none",h;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=wu(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Xs(this.latestValues)&&(b.transform=p?p({},""):"none",this.hasProjected=!1),b}const w=m.animationValues||m.latestValues;this.applyTransformsToTarget(),h.transform=JF(this.projectionDeltaWithTransform,this.treeScale,w),p&&(h.transform=p(w,h.transform));const{x:S,y:E}=this.projectionDelta;h.transformOrigin=`${S.origin*100}% ${E.origin*100}% 0`,m.animationValues?h.opacity=m===this?(f=(u=w.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:h.opacity=m===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const b in Ou){if(w[b]===void 0)continue;const{correct:C,applyTo:k}=Ou[b],T=h.transform==="none"?w[b]:C(w[b],m);if(k){const R=k.length;for(let _=0;_<R;_++)h[k[_]]=T}else h[b]=T}return this.options.layoutId&&(h.pointerEvents=m===this?wu(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(nb),this.root.sharedNodes.clear()}}}function tB(e){e.updateLayout()}function nB(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:r,measuredBox:i}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?Pn(m=>{const w=l?n.measuredBox[m]:n.layoutBox[m],S=pn(w);w.min=r[m].min,w.max=w.min+S}):pE(a,n.layoutBox,r)&&Pn(m=>{const w=l?n.measuredBox[m]:n.layoutBox[m],S=pn(r[m]);w.max=w.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+S)});const u=oi();Ga(u,r,n.layoutBox);const f=oi();l?Ga(f,e.applyTransform(i,!0),n.measuredBox):Ga(f,r,n.layoutBox);const h=!uE(u);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:w,layout:S}=m;if(w&&S){const E=ft();Xa(E,n.layoutBox,w.layoutBox);const b=ft();Xa(b,r,S.layoutBox),dE(E,b)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=E,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:u,hasLayoutChanged:h,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rB(e){Va&&Js.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 sB(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oB(e){e.clearSnapshot()}function nb(e){e.clearMeasurements()}function iB(e){e.isLayoutDirty=!1}function aB(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lB(e){e.resolveTargetDelta()}function cB(e){e.calcProjection()}
vendor: 5,738 bytes, line 250
250function uB(e){e.resetSkewAndRotation()}function dB(e){e.removeLeadSnapshot()}function sb(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ob(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function fB(e,t,n,r){ob(e.x,t.x,n.x,r),ob(e.y,t.y,n.y,r)}function hB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pB={duration:.45,ease:[.4,0,.1,1]},ib=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ab=ib("applewebkit/")&&!ib("chrome/")?Math.round:fn;function lb(e){e.min=ab(e.min),e.max=ab(e.max)}function mB(e){lb(e.x),lb(e.y)}function pE(e,t,n){return e==="position"||e==="preserve-aspect"&&!vF(Zw(t),Zw(n),.2)}function gB(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yB=hE({attachResizeListener:(e,t)=>ll(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gh={current:void 0},mE=hE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gh.current){const e=new yB({});e.mount(window),e.setOptions({layoutScroll:!0}),Gh.current=e}return Gh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vB={pan:{Feature:jF},drag:{Feature:OF,ProjectionNode:mE,MeasureLayout:aE}};function cb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Xe.postRender(()=>a(t,Al(t)))}class xB extends Rs{mount(){const{current:t}=this.node;t&&(this.unmount=vI(t,n=>(cb(this.node,n,"Start"),r=>cb(this.node,r,"End"))))}unmount(){}}class wB extends Rs{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=_l(ll(this.node.current,"focus",()=>this.onFocus()),ll(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ub(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Xe.postRender(()=>a(t,Al(t)))}class bB extends Rs{mount(){const{current:t}=this.node;t&&(this.unmount=SI(t,n=>(ub(this.node,n,"Start"),(r,{success:i})=>ub(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Xp=new WeakMap,Xh=new WeakMap,SB=e=>{const t=Xp.get(e.target);t&&t(e)},CB=e=>{e.forEach(SB)};function EB({root:e,...t}){const n=e||document;Xh.has(n)||Xh.set(n,{});const r=Xh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(CB,{root:e,...t})),r[i]}function PB(e,t,n){const r=EB(t);return Xp.set(e,n),r.observe(e),()=>{Xp.delete(e),r.unobserve(e)}}const kB={some:0,all:1};class TB extends Rs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:kB[i]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),w=h?p:m;w&&w(f)};return PB(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RB(t,n))&&this.startObserver()}unmount(){}}function RB({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _B={inView:{Feature:TB},tap:{Feature:bB},focus:{Feature:wB},hover:{Feature:xB}},AB={layout:{ProjectionNode:mE,MeasureLayout:aE}},Jp={current:null},gE={current:!1};function NB(){if(gE.current=!0,!!Wm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jp.current=e.matches;e.addListener(t),t()}else Jp.current=!1}const MB=[...zC,Bt,Cs],OB=e=>MB.find(VC(e)),db=new WeakMap;function jB(e,t,n){for(const r in t){const i=t[r],a=n[r];if(zt(i))e.addValue(r,i);else if(zt(a))e.addValue(r,il(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,il(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const fb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DB{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=fr.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Xe.render(this.render,!1,!0))};
vendor: 7,330 bytes, line 250
250const{latestValues:f,renderState:h,onUpdate:p}=l;this.onUpdate=p,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=ud(n),this.isVariantNode=YS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...w}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in w){const E=w[S];f[S]!==void 0&&zt(E)&&E.set(f[S],!1)}}mount(t){this.current=t,db.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,r)=>this.bindToMotionValue(r,n)),gE.current||NB(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){db.delete(this.current),this.projection&&this.projection.unmount(),Ss(this.notifyUpdate),Ss(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 r=Eo.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),l&&l(),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 ki){const n=ki[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ft()}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 r=0;r<fb.length;r++){const i=fb[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,l=t[a];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=jB(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=il(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(FC(i)||_C(i))?i=parseFloat(i):!OB(i)&&Cs.test(n)&&(i=DC(t,n)),this.setBaseTarget(t,zt(i)?i.get():i)),zt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const l=Xm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!zt(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new dg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yE extends DB{constructor(){super(...arguments),this.KeyframeResolver=UC}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function IB(e){return window.getComputedStyle(e)}class LB extends yE{constructor(){super(...arguments),this.type="html",this.renderInstance=sC}readValueFromInstance(t,n){if(Eo.has(n)){const r=gg(n);return r&&r.default||0}else{const r=IB(t),i=(tC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return oE(t,n)}build(t,n,r){eg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sg(t,n,r)}}class FB extends yE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ft}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Eo.has(n)){const r=gg(n);return r&&r.default||0}return n=oC.has(n)?n:Qm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lC(t,n,r)}build(t,n,r){tg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){iC(t,n,r,i)}mount(t){this.isSVGTag=rg(t.tagName),super.mount(t)}}const BB=(e,t)=>Gm(e)?new FB(t):new LB(t,{allowProjection:e!==v.Fragment}),VB=dI({...cF,..._B,...vB,...AB},BB),tn=k4(VB);function zB(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let Zp=1;class UB{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>
vendor: 3,664 bytes, line 250
250{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Zp++,l=this.toasts.find(f=>f.id===a),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(f=>f.id===a?(this.publish({...f,...t,id:a,title:r}),{...f,...t,id:a,dismissible:u,title:r}):f):this.addToast({title:r,...i,dismissible:u,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,l;const u=i.then(async h=>{if(l=["resolve",h],un.isValidElement(h))a=!1,this.create({id:r,type:"default",message:h});else if(WB(h)&&!h.ok){a=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,w=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,E=typeof m=="object"&&!un.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:w,...E})}else if(h instanceof Error){a=!1;const m=typeof n.error=="function"?await n.error(h):n.error,w=typeof n.description=="function"?await n.description(h):n.description,E=typeof m=="object"&&!un.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:w,...E})}else if(n.success!==void 0){a=!1;const m=typeof n.success=="function"?await n.success(h):n.success,w=typeof n.description=="function"?await n.description(h):n.description,E=typeof m=="object"&&!un.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:w,...E})}}).catch(async h=>{if(l=["reject",h],n.error!==void 0){a=!1;const p=typeof n.error=="function"?await n.error(h):n.error,m=typeof n.description=="function"?await n.description(h):n.description,S=typeof p=="object"&&!un.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:m,...S})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((h,p)=>u.then(()=>l[0]==="reject"?p(l[1]):h(l[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Zp++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const kn=new UB,$B=(e,t)=>{const n=(t==null?void 0:t.id)||Zp++;return kn.addToast({title:e,...t,id:n}),n},WB=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",HB=$B,qB=()=>kn.toasts,KB=()=>kn.getActiveToasts(),hd=Object.assign(HB,{success:kn.success,info:kn.info,warning:kn.warning,error:kn.error,custom:kn.custom,message:kn.message,promise:kn.promise,dismiss:kn.dismiss,loading:kn.loading},{getHistory:qB,getToasts:KB});zB
vendor: 4,787 bytes, line 250
250("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 250
250left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
vendor: 1,729 bytes, line 250
250hb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _s(...e){return t=>{let n=!1;const r=e.map(i=>{const a=hb(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():hb(e[i],null)}}}}function nt(...e){return v.useCallback(_s(...e),e)}var QB=Symbol.for("react.lazy"),Bu=Yu[" use ".trim().toString()];function YB(e){return typeof e=="object"&&e!==null&&"then"in e}function vE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===QB&&"_payload"in e&&YB(e._payload)}function xE(e){const t=XB(e),n=v.forwardRef((r,i)=>{let{children:a,...l}=r;vE(a)&&typeof Bu=="function"&&(a=Bu(a._payload));const u=v.Children.toArray(a),f=u.find(ZB);if(f){const h=f.props.children,p=u.map(m=>m===f?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:m);return g.jsx(t,{...l,ref:i,children:v.isValidElement(h)?v.cloneElement(h,void 0,p):null})}return g.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var GB=xE("Slot");function XB(e){const t=v.forwardRef((n,r)=>{let{children:i,...a}=n;if(vE(i)&&typeof Bu=="function"&&(i=Bu(i._payload)),v.isValidElement(i)){const l=t5(i),u=e5(a,i.props);return i.type!==v.Fragment&&(u.ref=r?_s(r,l):l),v.cloneElement(i,u)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JB=Symbol("radix.slottable");function ZB(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JB}function e5(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}
250:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function t5(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const n5=mm("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-transparent 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"}}),kt=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const l=r?GB:"button";return g.jsx(l,{className:He(n5({variant:t,size:n,className:e})),ref:a,...i})});kt.displayName="Button";const pb=["09:00 AM","10:15 AM","10:30 AM","12:45 PM","02:00 PM","03:15 PM"],r5=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function s5({selectedDate:e,selectedTime:t,onDateSelect:n,onTimeSelect:r,bookedSlots:i=[]}){const a=rl(new Date),[l,u]=v.useState(_a(a)),f=(S,E)=>i.some(b=>Lh(new Date(b.appointment_date),S)&&b.appointment_time===E),h=S=>{const E=S.getDay();return(E===1||E===2)&&!f4(S,a)},p=S=>pb.every(E=>f(S,E)),m=v.useMemo(()=>{const S=Ei(_a(l)),E=hD(dD(l)),b=[];let C=S;for(;!Xc(C,E);)b.push(C),C=sD(C,1);return b},[l]),w=Xc(l,_a(a))||Lh(l,_a(a))?Xc(l,_a(a)):!1;return g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h3",{className:"font-heading text-lg font-semibold text-[#1A2B6B]",children:Kn(l,"MMMM yyyy")}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(kt,{variant:"outline",size:"icon",className:"h-9 w-9 rounded-full border-blue-200 bg-white/80 hover:bg-blue-50 text-[#1A2B6B]",onClick:()=>u(S=>h4(S)),disabled:!w,children:g.jsx(R_,{className:"h-4 w-4"})}),g.jsx(kt,{variant:"outline",size:"icon",className:"h-9 w-9 rounded-full border-blue-200 bg-white/80 hover:bg-blue-50 text-[#1A2B6B]",onClick:()=>u(S=>FS(S,1)),children:g.jsx(l1,{className:"h-4 w-4"})})]})]}),g.jsx("div",{className:"grid grid-cols-7 gap-1 mb-1",children:r5.map(S=>g.jsx("div",{className:"text-center text-xs font-body font-semibold text-blue-400 uppercase tracking-wide py-1",children:S},S))}),g.jsx("div",{className:"grid grid-cols-7 gap-1",children:m.map((S,E)=>{const b=S.getMonth()===l.getMonth(),C=h(S),k=C&&p(S),T=e&&Lh(S,e),R=!Xc(S,a),_=C&&!k&&b;return g.jsxs(tn.button,{initial:{opacity:0}
250,animate:{opacity:1},transition:{delay:E*.005},onClick:()=>_&&n(S),disabled:!_,className:` 251 relative aspect-square flex flex-col items-center justify-center rounded-xl text-sm font-body transition-all duration-150 252 ${b?"":"opacity-0 pointer-events-none"} 253 ${T?"bg-[#1A2B6B] text-white shadow-lg shadow-blue-200 scale-105 font-semibold":k?"bg-red-50 border border-red-200 text-red-300 cursor-not-allowed line-through":C?"bg-emerald-50 border border-emerald-300 text-emerald-700 hover:bg-emerald-100 hover:border-emerald-500 cursor-pointer font-semibold":"text-gray-300 cursor-default"} 254 `,children:[g.jsx("span",{children:Kn(S,"d")}),C&&!k&&b&&!T&&g.jsx("span",{className:"block w-1 h-1 rounded-full bg-emerald-500 mt-0.5"}),T&&g.jsx("span",{className:"block w-1 h-1 rounded-full bg-white/60 mt-0.5"})]},E)})}),g.jsx("p",{className:"text-xs font-body text-blue-400 text-center",children:g.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[g.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-blue-400"}),"Available Mondays & Tuesdays only"]})}),g.jsx(v4,{mode:"wait",children:e&&g.jsxs(tn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"space-y-4 pt-2 border-t border-blue-100",children:[g.jsxs("h3",{className:"font-heading text-lg font-semibold text-[#1A2B6B] flex items-center gap-2",children:[g.jsx(Ju,{className:"h-4 w-4 text-blue-500"}),"Available times for ",Kn(e,"EEEE, MMMM d")]}),g.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-3",children:pb.map(S=>{const E=f(e,S),b=t===S;return g.jsx(kt,{variant:b?"default":"outline",disabled:E,onClick:()=>r(S),className:`py-6 rounded-xl font-body transition-all duration-200 ${b?"bg-[#1A2B6B] text-white shadow-lg shadow-blue-200 border-[#1A2B6B]":E?"bg-red-50 border-red-200 text-red-300 line-through cursor-not-allowed opacity-70":"bg-emerald-50 border-emerald-300 text-emerald-700 hover:bg-emerald-100 hover:border-emerald-500"}`,children:S},S)})})]})})]})}const Mt=v.forwardRef(({className:e,type:t,...n},r)=>g.jsx("input",{type:t,className:He("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:r,...n}));Mt.displayName="Input";var o5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],i5=o5.reduce((e,t)=>{const n=xE(`Primitive.${t}`),r=v.forwardRef((i,a)=>{const{asChild:l,...u}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),a5="Label",wE=v.forwardRef((e,t)=>g.jsx(i5.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));wE.displayName=a5;var bE=wE;const l5=mm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),hr=v.forwardRef(({className:e,...t},n)=>g.jsx(bE,{ref:n,className:He(l5(),e),...t}));hr.displayName=bE.displayName;const SE=v.forwardRef(({className:e,...t},n)=>g.jsx("textarea",{className:He("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}));SE.displayName="Textarea";function mb(e,[t,n]){return Math.min(n,Math.max(t,e))}function Pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Li(e,t=[]){let n=[];function r(a,l){const u=v.createContext(l),f=n.length;n=[...n,l];const h=m=>{var k;const{scope:w,children:S,...E}=m,b=((k=w==null?void 0:w[e])==null?void 0:k[f])||u,C=v.useMemo(()=>E,Object.values(E));return g.jsx(b.Provider,{value:C,children:S})};h.displayName=a+"Provider";function p(m,w){var b;const S=((b=w==null?void 0:w[e])==null?void 0:b[f])||u,E=v.useContext(S);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[h,p]}const i=()=>{const a=n.map(l=>v.createContext(l));return function(u){const f=(u==null?void 0:u[e])||a;return v.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return i.scopeName=e,[r,c5(i,...t)]}function c5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const l=r.reduce((u,{useScope:f,scopeName:h})=>{const m=f(a)[`__scope${h}`];return{...u,...m}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function gb(e){const t=u5(e),n=v.forwardRef((r,i)=>{const{children:a,...l}=r,u=v.Children.toArray(a),f=u.find(f5);if(f){const h=f.props.children,p=u.map(m=>m===f?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:m);return g.jsx(t,{...l,ref:i,children:v.isValidElement(h)?v.cloneElement(h,void 0,p):null})}return g.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function u5(e){const t=v.forwardRef((n,r)=>{const{children:i,...a}=n;if(v.isValidElement(i)){const l=p5(i),u=h5(a,i.props);return i.type!==v.Fragment&&(u.ref=r?_s(r,l):l),v.cloneElement(i,u)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d5=Symbol("radix.slottable");function f5(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d5}function h5(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}
vendor: 11,333 bytes, line 254
254:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function p5(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bg(e){const t=e+"CollectionProvider",[n,r]=Li(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:C,children:k}=b,T=un.useRef(null),R=un.useRef(new Map).current;return g.jsx(i,{scope:C,itemMap:R,collectionRef:T,children:k})};l.displayName=t;const u=e+"CollectionSlot",f=gb(u),h=un.forwardRef((b,C)=>{const{scope:k,children:T}=b,R=a(u,k),_=nt(C,R.collectionRef);return g.jsx(f,{ref:_,children:T})});h.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",w=gb(p),S=un.forwardRef((b,C)=>{const{scope:k,children:T,...R}=b,_=un.useRef(null),N=nt(C,_),L=a(p,k);return un.useEffect(()=>(L.itemMap.set(_,{ref:_,...R}),()=>void L.itemMap.delete(_))),g.jsx(w,{[m]:"",ref:N,children:T})});S.displayName=p;function E(b){const C=a(e+"CollectionConsumer",b);return un.useCallback(()=>{const T=C.collectionRef.current;if(!T)return[];const R=Array.from(T.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((L,B)=>R.indexOf(L.ref.current)-R.indexOf(B.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:h,ItemSlot:S},E,r]}var m5=v.createContext(void 0);function Sg(e){const t=v.useContext(m5);return e||t||"ltr"}function g5(e){const t=y5(e),n=v.forwardRef((r,i)=>{const{children:a,...l}=r,u=v.Children.toArray(a),f=u.find(x5);if(f){const h=f.props.children,p=u.map(m=>m===f?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:m);return g.jsx(t,{...l,ref:i,children:v.isValidElement(h)?v.cloneElement(h,void 0,p):null})}return g.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function y5(e){const t=v.forwardRef((n,r)=>{const{children:i,...a}=n;if(v.isValidElement(i)){const l=b5(i),u=w5(a,i.props);return i.type!==v.Fragment&&(u.ref=r?_s(r,l):l),v.cloneElement(i,u)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v5=Symbol("radix.slottable");function x5(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v5}function w5(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function b5(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var S5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qe=S5.reduce((e,t)=>{const n=g5(`Primitive.${t}`),r=v.forwardRef((i,a)=>{const{asChild:l,...u}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function CE(e,t){e&&wl.flushSync(()=>e.dispatchEvent(t))}function yr(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function C5(e,t=globalThis==null?void 0:globalThis.document){const n=yr(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var E5="DismissableLayer",em="dismissableLayer.update",P5="dismissableLayer.pointerDownOutside",k5="dismissableLayer.focusOutside",yb,EE=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cg=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...f}=e,h=v.useContext(EE),[p,m]=v.useState(null),w=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),E=nt(t,B=>m(B)),b=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=b.indexOf(C),T=p?b.indexOf(p):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,_=T>=k,N=_5(B=>{const j=B.target,K=[...h.branches].some(G=>G.contains(j));!_||K||(i==null||i(B),l==null||l(B),B.defaultPrevented||u==null||u())},w),L=A5(B=>{const j=B.target;[...h.branches].some(G=>G.contains(j))||(a==null||a(B),l==null||l(B),B.defaultPrevented||u==null||u())},w);return C5(B=>{T===h.layers.size-1&&(r==null||r(B),!B.defaultPrevented&&u&&(B.preventDefault(),u()))},w),v.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(yb=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),vb(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=yb)}},[p,w,n,h]),v.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),vb())},[p,h]),v.useEffect(()=>{const B=()=>S({});return document.addEventListener(em,B),()=>document.removeEventListener(em,B)},[]),g.jsx(qe.div,{...f,ref:E,style:{pointerEvents:R?_?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,L.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,N.onPointerDownCapture)})});Cg.displayName=E5;var T5="DismissableLayerBranch",R5=v.forwardRef((e,t)=>{const n=v.useContext(EE),r=v.useRef(null),i=nt(t,r);return v.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),g.jsx(qe.div,{...e,ref:i})});R5.displayName=T5;function _5(e,t=globalThis==null?void 0:globalThis.document){const n=yr(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let f=function(){PE(P5,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function A5(e,t=globalThis==null?void 0:globalThis.document){const n=yr(e),r=v.useRef(!1);return v.useEffect(()=>{const i=a=>{a.target&&!r.current&&PE(k5,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vb(){const e=new CustomEvent(em);document.dispatchEvent(e)}function PE(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?CE(i,a):i.dispatchEvent(a)}var Jh=0;function kE(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xb()),document.body.insertAdjacentElement("beforeend",e[1]??xb()),Jh++,()=>{Jh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jh--}},[])}function xb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zh="focusScope.autoFocusOnMount",ep="focusScope.autoFocusOnUnmount",wb={bubbles:!1,cancelable:!0},N5="FocusScope",Eg=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[u,f]=v.useState(null),h=yr(i),p=yr(a),m=v.useRef(null),w=nt(t,b=>f(b)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let b=function(R){if(S.paused||!u)return;const _=R.target;u.contains(_)?m.current=_:cs(m.current,{select:!0})},C=function(R){if(S.paused||!u)return;const _=R.relatedTarget;_!==null&&(u.contains(_)||cs(m.current,{select:!0}))},k=function(R){if(document.activeElement===document.body)for(const N of R)N.removedNodes.length>0&&cs(u)};document.addEventListener("focusin",b),document.addEventListener("focusout",C);const T=new MutationObserver(k);return u&&T.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",C),T.disconnect()}}},[r,u,S.paused]),v.useEffect(()=>{if(u){Sb.add(S);const b=document.activeElement;if(!u.contains(b)){const k=new CustomEvent(Zh,wb);u.addEventListener(Zh,h),u.dispatchEvent(k),k.defaultPrevented||(M5(L5(TE(u)),{select:!0}),document.activeElement===b&&cs(u))}return()=>{u.removeEventListener(Zh,h),setTimeout(()=>{const k=new CustomEvent(ep,wb);u.addEventListener(ep,p),u.dispatchEvent(k),k.defaultPrevented||cs(b??document.body,{select:!0}),u.removeEventListener(ep,p),Sb.remove(S)},0)}}},[u,h,p,S]);const E=v.useCallback(b=>{if(!n&&!r||S.paused)return;const C=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,k=document.activeElement;if(C&&k){const T=b.currentTarget,[R,_]=O5(T);R&&_?!b.shiftKey&&k===_?(b.preventDefault(),n&&cs(R,{select:!0})):b.shiftKey&&k===R&&(b.preventDefault(),n&&cs(_,{select:!0})):k===T&&b.preventDefault()}},[n,r,S.paused]);return g.jsx(qe.div,{tabIndex:-1,...l,ref:w,onKeyDown:E})});Eg.displayName=N5;function M5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(cs(r,{select:t}),document.activeElement!==n)return}function O5(e){const t=TE(e),n=bb(t,e),r=bb(t.reverse(),e);return[n,r]}function TE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bb(e,t){for(const n of e)if(!j5(n,{upTo:t}))return n}function j5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function D5(e){return e instanceof HTMLInputElement&&"select"in e}function cs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&D5(e)&&t&&e.select()}}var Sb=I5();function I5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Cb(e,t),e.unshift(t)},remove(t){var n;e=Cb(e,t),(n=e[0])==null||n.resume()}}}function Cb(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function L5(e){return e.filter(t=>t.tagName!=="A")}var Ut=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},F5=Yu[" useId ".trim().toString()]||(()=>{}),B5=0;function Ri(e){const[t,n]=v.useState(F5());return Ut(()=>{n(r=>r??String(B5++))},[e]),t?`radix-${t}`:""}const V5=["top","right","bottom","left"],Es=Math.min,dn=Math.max,Vu=Math.round,nu=Math.floor,pr=e=>({x:e,y:e}
vendor: 10,547 bytes, line 254
254),z5={left:"right",right:"left",bottom:"top",top:"bottom"},U5={start:"end",end:"start"};function tm(e,t,n){return dn(e,Es(t,n))}function Ir(e,t){return typeof e=="function"?e(t):e}function Lr(e){return e.split("-")[0]}function Fi(e){return e.split("-")[1]}function Pg(e){return e==="x"?"y":"x"}function kg(e){return e==="y"?"height":"width"}const $5=new Set(["top","bottom"]);function cr(e){return $5.has(Lr(e))?"y":"x"}function Tg(e){return Pg(cr(e))}function W5(e,t,n){n===void 0&&(n=!1);const r=Fi(e),i=Tg(e),a=kg(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=zu(l)),[l,zu(l)]}function H5(e){const t=zu(e);return[nm(e),t,nm(t)]}function nm(e){return e.replace(/start|end/g,t=>U5[t])}const Eb=["left","right"],Pb=["right","left"],q5=["top","bottom"],K5=["bottom","top"];function Q5(e,t,n){switch(e){case"top":case"bottom":return n?t?Pb:Eb:t?Eb:Pb;case"left":case"right":return t?q5:K5;default:return[]}}function Y5(e,t,n,r){const i=Fi(e);let a=Q5(Lr(e),n==="start",r);return i&&(a=a.map(l=>l+"-"+i),t&&(a=a.concat(a.map(nm)))),a}function zu(e){return e.replace(/left|right|bottom|top/g,t=>z5[t])}function G5(e){return{top:0,right:0,bottom:0,left:0,...e}}function RE(e){return typeof e!="number"?G5(e):{top:e,right:e,bottom:e,left:e}}function Uu(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function kb(e,t,n){let{reference:r,floating:i}=e;const a=cr(t),l=Tg(t),u=kg(l),f=Lr(t),h=a==="y",p=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,w=r[u]/2-i[u]/2;let S;switch(f){case"top":S={x:p,y:r.y-i.height};break;case"bottom":S={x:p,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:m};break;case"left":S={x:r.x-i.width,y:m};break;default:S={x:r.x,y:r.y}}switch(Fi(t)){case"start":S[l]-=w*(n&&h?-1:1);break;case"end":S[l]+=w*(n&&h?-1:1);break}return S}async function X5(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:l,elements:u,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:w=!1,padding:S=0}=Ir(t,e),E=RE(S),C=u[w?m==="floating"?"reference":"floating":m],k=Uu(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(C)))==null||n?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:h,rootBoundary:p,strategy:f})),T=m==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),_=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},N=Uu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:T,offsetParent:R,strategy:f}):T);return{top:(k.top-N.top+E.top)/_.y,bottom:(N.bottom-k.bottom+E.bottom)/_.y,left:(k.left-N.left+E.left)/_.x,right:(N.right-k.right+E.right)/_.x}}const J5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,u=a.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:m}=kb(h,r,f),w=r,S={},E=0;for(let C=0;C<u.length;C++){var b;const{name:k,fn:T}=u[C],{x:R,y:_,data:N,reset:L}=await T({x:p,y:m,initialPlacement:r,placement:w,strategy:i,middlewareData:S,rects:h,platform:{...l,detectOverflow:(b=l.detectOverflow)!=null?b:X5},elements:{reference:e,floating:t}});p=R??p,m=_??m,S={...S,[k]:{...S[k],...N}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(h=L.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):L.rects),{x:p,y:m}=kb(h,w,f)),C=-1)}return{x:p,y:m,placement:w,strategy:i,middlewareData:S}},Z5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:l,elements:u,middlewareData:f}=t,{element:h,padding:p=0}=Ir(e,t)||{};if(h==null)return{};const m=RE(p),w={x:n,y:r},S=Tg(i),E=kg(S),b=await l.getDimensions(h),C=S==="y",k=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",_=a.reference[E]+a.reference[S]-w[S]-a.floating[E],N=w[S]-a.reference[S],L=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let B=L?L[R]:0;(!B||!await(l.isElement==null?void 0:l.isElement(L)))&&(B=u.floating[R]||a.floating[E]);const j=_/2-N/2,K=B/2-b[E]/2-1,G=Es(m[k],K),J=Es(m[T],K),se=G,re=B-b[E]-J,oe=B/2-b[E]/2+j,be=tm(se,oe,re),Z=!f.arrow&&Fi(i)!=null&&oe!==be&&a.reference[E]/2-(oe<se?G:J)-b[E]/2<0,ne=Z?oe<se?oe-se:oe-re:0;return{[S]:w[S]+ne,data:{[S]:be,centerOffset:oe-be-ne,...Z&&{alignmentOffset:ne}},reset:Z}}}),e3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:l,initialPlacement:u,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,...C}=Ir(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const k=Lr(i),T=cr(u),R=Lr(u)===u,_=await(f.isRTL==null?void 0:f.isRTL(h.floating)),N=w||(R||!b?[zu(u)]:H5(u)),L=E!=="none";!w&&L&&N.push(...Y5(u,b,E,_));const B=[u,...N],j=await f.detectOverflow(t,C),K=[];let G=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&K.push(j[k]),m){const oe=W5(i,l,_);K.push(j[oe[0]],j[oe[1]])}if(G=[...G,{placement:i,overflows:K}],!K.every(oe=>oe<=0)){var J,se;const oe=(((J=a.flip)==null?void 0:J.index)||0)+1,be=B[oe];if(be&&(!(m==="alignment"?T!==cr(be):!1)||G.every(U=>cr(U.placement)===T?U.overflows[0]>0:!0)))return{data:{index:oe,overflows:G},reset:{placement:be}};let Z=(se=G.filter(ne=>ne.overflows[0]<=0).sort((ne,U)=>ne.overflows[1]-U.overflows[1])[0])==null?void 0:se.placement;if(!Z)switch(S){case"bestFit":{var re;const ne=(re=G.filter(U=>{if(L){const H=cr(U.placement);return H===T||H==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(H=>H>0).reduce((H,z)=>H+z,0)]).sort((U,H)=>U[1]-H[1])[0])==null?void 0:re[0];ne&&(Z=ne);break}case"initialPlacement":Z=u;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};function Tb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rb(e){return V5.some(t=>e[t]>=0)}const t3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=Ir(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...a,elementContext:"reference"}),u=Tb(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Rb(u)}}}case"escaped":{const l=await r.detectOverflow(t,{...a,altBoundary:!0}),u=Tb(l,n.floating);return{data:{escapedOffsets:u,escaped:Rb(u)}}}default:return{}}}}},_E=new Set(["left","top"]);async function n3(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Lr(n),u=Fi(n),f=cr(n)==="y",h=_E.has(l)?-1:1,p=a&&f?-1:1,m=Ir(t,e);let{mainAxis:w,crossAxis:S,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof E=="number"&&(S=u==="end"?E*-1:E),f?{x:S*p,y:w*h}:{x:w*h,y:S*p}}const r3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:l,middlewareData:u}=t,f=await n3(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:l}}}}},s3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:k=>{let{x:T,y:R}=k;return{x:T,y:R}}},...h}=Ir(e,t),p={x:n,y:r},m=await a.detectOverflow(t,h),w=cr(Lr(i)),S=Pg(w);let E=p[S],b=p[w];if(l){const k=S==="y"?"top":"left",T=S==="y"?"bottom":"right",R=E+m[k],_=E-m[T];E=tm(R,E,_)}if(u){const k=w==="y"?"top":"left",T=w==="y"?"bottom":"right",R=b+m[k],_=b-m[T];b=tm(R,b,_)}const C=f.fn({...t,[S]:E,[w]:b});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[S]:l,[w]:u}}}}}},o3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:h=!0}=Ir(e,t),p={x:n,y:r},m=cr(i),w=Pg(m);let S=p[w],E=p[m];const b=Ir(u,t),C=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(f){const R=w==="y"?"height":"width",_=a.reference[w]-a.floating[R]+C.mainAxis,N=a.reference[w]+a.reference[R]-C.mainAxis;S<_?S=_:S>N&&(S=N)}if(h){var k,T;const R=w==="y"?"width":"height",_=_E.has(Lr(i)),N=a.reference[m]-a.floating[R]+(_&&((k=l.offset)==null?void 0:k[m])||0)+(_?0:C.crossAxis),L=a.reference[m]+a.reference[R]+(_?0:((T=l.offset)==null?void 0:T[m])||0)-(_?C.crossAxis:0);E<N?E=N:E>L&&(E=L)}return{[w]:S,[m]:E}}}},i3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:l,elements:u}=t,{apply:f=()=>{},...h}=Ir(e,t),p=await l.detectOverflow(t,h),m=Lr(i),w=Fi(i),S=cr(i)==="y",{width:E,height:b}=a.floating;let C,k;m==="top"||m==="bottom"?(C=m,k=w===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(k=m,C=w==="end"?"top":"bottom");const T=b-p.top-p.bottom,R=E-p.left-p.right,_=Es(b-p[C],T),N=Es(E-p[k],R),L=!t.middlewareData.shift;let B=_,j=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(B=T),L&&!w){const G=dn(p.left,0),J=dn(p.right,0),se=dn(p.top,0),re=dn(p.bottom,0);S?j=E-2*(G!==0||J!==0?G+J:dn(p.left,p.right)):B=b-2*(se!==0||re!==0?se+re:dn(p.top,p.bottom))}await f({...t,availableWidth:j,availableHeight:B});const K=await l.getDimensions(u.floating);return E!==K.width||b!==K.height?{reset:{rects:!0}}:{}}}};function pd(){return typeof window<"u"}function Bi(e){return AE(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xr(e){var t;return(t=(AE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function AE(e){return pd()?e instanceof Node||e instanceof hn(e).Node:!1}function Qn(e){return pd()?e instanceof Element||e instanceof hn(e).Element:!1}function vr(e){return pd()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function _b(e){return!pd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const a3=new Set(["inline","contents"]);function Nl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Yn(e);
vendor: 14,686 bytes, line 254
254return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!a3.has(i)}const l3=new Set(["table","td","th"]);function c3(e){return l3.has(Bi(e))}const u3=[":popover-open",":modal"];function md(e){return u3.some(t=>{try{return e.matches(t)}catch{return!1}})}const d3=["transform","translate","scale","rotate","perspective"],f3=["transform","translate","scale","rotate","perspective","filter"],h3=["paint","layout","strict","content"];function Rg(e){const t=_g(),n=Qn(e)?Yn(e):e;return d3.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||f3.some(r=>(n.willChange||"").includes(r))||h3.some(r=>(n.contain||"").includes(r))}function p3(e){let t=Ps(e);for(;vr(t)&&!_i(t);){if(Rg(t))return t;if(md(t))return null;t=Ps(t)}return null}function _g(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const m3=new Set(["html","body","#document"]);function _i(e){return m3.has(Bi(e))}function Yn(e){return hn(e).getComputedStyle(e)}function gd(e){return Qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ps(e){if(Bi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_b(e)&&e.host||xr(e);return _b(t)?t.host:t}function NE(e){const t=Ps(e);return _i(t)?e.ownerDocument?e.ownerDocument.body:e.body:vr(t)&&Nl(t)?t:NE(t)}function cl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=NE(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),l=hn(i);if(a){const u=rm(l);return t.concat(l,l.visualViewport||[],Nl(i)?i:[],u&&n?cl(u):[])}return t.concat(i,cl(i,[],n))}function rm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ME(e){const t=Yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vr(e),a=i?e.offsetWidth:n,l=i?e.offsetHeight:r,u=Vu(n)!==a||Vu(r)!==l;return u&&(n=a,r=l),{width:n,height:r,$:u}}function Ag(e){return Qn(e)?e:e.contextElement}function li(e){const t=Ag(e);if(!vr(t))return pr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ME(t);let l=(a?Vu(n.width):n.width)/r,u=(a?Vu(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const g3=pr(0);function OE(e){const t=hn(e);return!_g()||!t.visualViewport?g3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function y3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hn(e)?!1:t}function xo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ag(e);let l=pr(1);t&&(r?Qn(r)&&(l=li(r)):l=li(e));const u=y3(a,n,r)?OE(a):pr(0);let f=(i.left+u.x)/l.x,h=(i.top+u.y)/l.y,p=i.width/l.x,m=i.height/l.y;if(a){const w=hn(a),S=r&&Qn(r)?hn(r):r;let E=w,b=rm(E);for(;b&&r&&S!==E;){const C=li(b),k=b.getBoundingClientRect(),T=Yn(b),R=k.left+(b.clientLeft+parseFloat(T.paddingLeft))*C.x,_=k.top+(b.clientTop+parseFloat(T.paddingTop))*C.y;f*=C.x,h*=C.y,p*=C.x,m*=C.y,f+=R,h+=_,E=hn(b),b=rm(E)}}return Uu({width:p,height:m,x:f,y:h})}function yd(e,t){const n=gd(e).scrollLeft;return t?t.left+n:xo(xr(e)).left+n}function jE(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-yd(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function v3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",l=xr(r),u=t?md(t.floating):!1;if(r===l||u&&a)return n;let f={scrollLeft:0,scrollTop:0},h=pr(1);const p=pr(0),m=vr(r);if((m||!m&&!a)&&((Bi(r)!=="body"||Nl(l))&&(f=gd(r)),vr(r))){const S=xo(r);h=li(r),p.x=S.x+r.clientLeft,p.y=S.y+r.clientTop}const w=l&&!m&&!a?jE(l,f):pr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+w.x,y:n.y*h.y-f.scrollTop*h.y+p.y+w.y}}function x3(e){return Array.from(e.getClientRects())}function w3(e){const t=xr(e),n=gd(e),r=e.ownerDocument.body,i=dn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=dn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+yd(e);const u=-n.scrollTop;return Yn(r).direction==="rtl"&&(l+=dn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:l,y:u}}const Ab=25;function b3(e,t){const n=hn(e),r=xr(e),i=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,u=0,f=0;if(i){a=i.width,l=i.height;const p=_g();(!p||p&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const h=yd(r);if(h<=0){const p=r.ownerDocument,m=p.body,w=getComputedStyle(m),S=p.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(r.clientWidth-m.clientWidth-S);E<=Ab&&(a-=E)}else h<=Ab&&(a+=h);return{width:a,height:l,x:u,y:f}}const S3=new Set(["absolute","fixed"]);function C3(e,t){const n=xo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vr(e)?li(e):pr(1),l=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,h=r*a.y;return{width:l,height:u,x:f,y:h}}function Nb(e,t,n){let r;if(t==="viewport")r=b3(e,n);else if(t==="document")r=w3(xr(e));else if(Qn(t))r=C3(t,n);else{const i=OE(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Uu(r)}function DE(e,t){const n=Ps(e);return n===t||!Qn(n)||_i(n)?!1:Yn(n).position==="fixed"||DE(n,t)}function E3(e,t){const n=t.get(e);if(n)return n;let r=cl(e,[],!1).filter(u=>Qn(u)&&Bi(u)!=="body"),i=null;const a=Yn(e).position==="fixed";let l=a?Ps(e):e;for(;Qn(l)&&!_i(l);){const u=Yn(l),f=Rg(l);!f&&u.position==="fixed"&&(i=null),(a?!f&&!i:!f&&u.position==="static"&&!!i&&S3.has(i.position)||Nl(l)&&!f&&DE(e,l))?r=r.filter(p=>p!==l):i=u,l=Ps(l)}return t.set(e,r),r}function P3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?md(t)?[]:E3(t,this._c):[].concat(n),r],u=l[0],f=l.reduce((h,p)=>{const m=Nb(t,p,i);return h.top=dn(m.top,h.top),h.right=Es(m.right,h.right),h.bottom=Es(m.bottom,h.bottom),h.left=dn(m.left,h.left),h},Nb(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function k3(e){const{width:t,height:n}=ME(e);return{width:t,height:n}}function T3(e,t,n){const r=vr(t),i=xr(t),a=n==="fixed",l=xo(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=pr(0);function h(){f.x=yd(i)}if(r||!r&&!a)if((Bi(t)!=="body"||Nl(i))&&(u=gd(t)),r){const S=xo(t,!0,a,t);f.x=S.x+t.clientLeft,f.y=S.y+t.clientTop}else i&&h();a&&!r&&i&&h();const p=i&&!r&&!a?jE(i,u):pr(0),m=l.left+u.scrollLeft-f.x-p.x,w=l.top+u.scrollTop-f.y-p.y;return{x:m,y:w,width:l.width,height:l.height}}function tp(e){return Yn(e).position==="static"}function Mb(e,t){if(!vr(e)||Yn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xr(e)===n&&(n=n.ownerDocument.body),n}function IE(e,t){const n=hn(e);if(md(e))return n;if(!vr(e)){let i=Ps(e);for(;i&&!_i(i);){if(Qn(i)&&!tp(i))return i;i=Ps(i)}return n}let r=Mb(e,t);for(;r&&c3(r)&&tp(r);)r=Mb(r,t);return r&&_i(r)&&tp(r)&&!Rg(r)?n:r||p3(e)||n}const R3=async function(e){const t=this.getOffsetParent||IE,n=this.getDimensions,r=await n(e.floating);return{reference:T3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _3(e){return Yn(e).direction==="rtl"}const A3={convertOffsetParentRelativeRectToViewportRelativeRect:v3,getDocumentElement:xr,getClippingRect:P3,getOffsetParent:IE,getElementRects:R3,getClientRects:x3,getDimensions:k3,getScale:li,isElement:Qn,isRTL:_3};function LE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function N3(e,t){let n=null,r;const i=xr(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),a();const h=e.getBoundingClientRect(),{left:p,top:m,width:w,height:S}=h;if(u||t(),!w||!S)return;const E=nu(m),b=nu(i.clientWidth-(p+w)),C=nu(i.clientHeight-(m+S)),k=nu(p),R={rootMargin:-E+"px "+-b+"px "+-C+"px "+-k+"px",threshold:dn(0,Es(1,f))||1};let _=!0;function N(L){const B=L[0].intersectionRatio;if(B!==f){if(!_)return l();B?l(!1,B):r=setTimeout(()=>{l(!1,1e-7)},1e3)}B===1&&!LE(h,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(N,{...R,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,R)}n.observe(e)}return l(!0),a}function M3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=Ag(e),p=i||a?[...h?cl(h):[],...cl(t)]:[];p.forEach(k=>{i&&k.addEventListener("scroll",n,{passive:!0}),a&&k.addEventListener("resize",n)});const m=h&&u?N3(h,n):null;let w=-1,S=null;l&&(S=new ResizeObserver(k=>{let[T]=k;T&&T.target===h&&S&&(S.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(t)})),n()}),h&&!f&&S.observe(h),S.observe(t));let E,b=f?xo(e):null;f&&C();function C(){const k=xo(e);b&&!LE(b,k)&&n(),b=k,E=requestAnimationFrame(C)}return n(),()=>{var k;p.forEach(T=>{i&&T.removeEventListener("scroll",n),a&&T.removeEventListener("resize",n)}),m==null||m(),(k=S)==null||k.disconnect(),S=null,f&&cancelAnimationFrame(E)}}const O3=r3,j3=s3,D3=e3,I3=i3,L3=t3,Ob=Z5,F3=o3,B3=(e,t,n)=>{const r=new Map,i={platform:A3,...n},a={...i.platform,_c:r};return J5(e,t,{...i,platform:a})};var V3=typeof document<"u",z3=function(){},Cu=V3?v.useLayoutEffect:z3;function $u(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$u(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!$u(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function FE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jb(e,t){const n=FE(e);return Math.round(t*n)/n}function np(e){const t=v.useRef(e);return Cu(()=>{t.current=e}),t}function U3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:f,open:h}=e,[p,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,S]=v.useState(r);$u(w,r)||S(r);const[E,b]=v.useState(null),[C,k]=v.useState(null),T=v.useCallback(U=>{U!==L.current&&(L.current=U,b(U))},[]),R=v.useCallback(U=>{U!==B.current&&(B.current=U,k(U))},[]),_=a||E,N=l||C,L=v.useRef(null),B=v.useRef(null),j=v.useRef(p),K=f!=null,G=np(f),J=np(i),se=np(h),re=v.useCallback(()=>{if(!L.current||!B.current)return;const U={placement:t,strategy:n,middleware:w};J.current&&(U.platform=J.current),B3(L.current,B.current,U).then(H=>{const z={...H,isPositioned:se.current!==!1};oe.current&&!$u(j.current,z)&&(j.current=z,wl.flushSync(()=>{m(z)}))})},[w,t,n,J,se]);Cu(()=>{h===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[h]);const oe=v.useRef(!1);Cu(()=>(oe.current=!0,()=>{oe.current=!1}),[]),Cu(()=>{if(_&&(L.current=_),N&&(B.current=N),_&&N){if(G.current)return G.current(_,N,re);re()}},[_,N,re,G,K]);const be=v.useMemo(()=>({reference:L,floating:B,setReference:T,setFloating:R}),[T,R]),Z=v.useMemo(()=>({reference:_,floating:N}),[_,N]),ne=v.useMemo(()=>{const U={position:n,left:0,top:0};if(!Z.floating)return U;const H=jb(Z.floating,p.x),z=jb(Z.floating,p.y);return u?{...U,transform:"translate("+H+"px, "+z+"px)",...FE(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:z}},[n,u,Z.floating,p.x,p.y]);return v.useMemo(()=>({...p,update:re,refs:be,elements:Z,floatingStyles:ne}),[p,re,be,Z,ne])}const $3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ob({element:r.current,padding:i}).fn(n):{}:r?Ob({element:r,padding:i}).fn(n):{}}}},W3=(e,t)=>({...O3(e),options:[e,t]}),H3=(e,t)=>({...j3(e),options:[e,t]}),q3=(e,t)=>({...F3(e),options:[e,t]}),K3=(e,t)=>({...D3(e),options:[e,t]}),Q3=(e,t)=>({...I3(e),options:[e,t]}),Y3=(e,t)=>({...L3(e),options:[e,t]}),G3=(e,t)=>({...$3(e),options:[e,t]});var X3="Arrow",BE=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return g.jsx(qe.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});BE.displayName=X3;var J3=BE;function Z3(e){const[t,n]=v.useState(void 0);return Ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let l,u;if("borderBoxSize"in a){const f=a.borderBoxSize,h=Array.isArray(f)?f[0]:f;l=h.inlineSize,u=h.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ng="Popper",[VE,vd]=Li(Ng),[e6,zE]=VE(Ng),UE=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return g.jsx(e6,{scope:t,anchor:r,onAnchorChange:i,children:n})};UE.displayName=Ng;var $E="PopperAnchor",WE=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=zE($E,n),l=v.useRef(null),u=nt(t,l),f=v.useRef(null);return v.useEffect(()=>{const h=f.current;f.current=(r==null?void 0:r.current)||l.current,h!==f.current&&a.onAnchorChange(f.current)}),r?null:g.jsx(qe.div,{...i,ref:u})});WE.displayName=$E;var Mg="PopperContent",[t6,n6]=VE(Mg),HE=v.forwardRef((e,t)=>{var te,he,ie,Te,Ne,Me;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:w=!1,updatePositionStrategy:S="optimized",onPlaced:E,...b}=e,C=zE(Mg,n),[k,T]=v.useState(null),R=nt(t,Je=>T(Je)),[_,N]=v.useState(null),L=Z3(_),B=(L==null?void 0:L.width)??0,j=(L==null?void 0:L.height)??0,K=r+(a!=="center"?"-"+a:""),G=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},J=Array.isArray(h)?h:[h],se=J.length>0,re={padding:G,boundary:J.filter(s6),altBoundary:se},{refs:oe,floatingStyles:be,placement:Z,isPositioned:ne,middlewareData:U}=U3({strategy:"fixed",placement:K,whileElementsMounted:(...Je)=>M3(...Je,{animationFrame:S==="always"}),elements:{reference:C.anchor},middleware:[W3({mainAxis:i+j,alignmentAxis:l}),f&&H3({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?q3():void 0,...re}),f&&K3({...re}),Q3({...re,apply:({elements:Je,rects:ye,availableWidth:Re,availableHeight:Ze})=>{const{width:it,height:Tt}=ye.reference,Be=Je.floating.style;Be.setProperty("--radix-popper-available-width",`${Re}px`),Be.setProperty("--radix-popper-available-height",`${Ze}px`),Be.setProperty("--radix-popper-anchor-width",`${it}
254px`),Be.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),_&&G3({element:_,padding:u}),o6({arrowWidth:B,arrowHeight:j}),w&&Y3({strategy:"referenceHidden",...re})]}),[H,z]=QE(Z),M=yr(E);Ut(()=>{ne&&(M==null||M())},[ne,M]);const q=(te=U.arrow)==null?void 0:te.x,ge=(he=U.arrow)==null?void 0:he.y,de=((ie=U.arrow)==null?void 0:ie.centerOffset)!==0,[le,fe]=v.useState();return Ut(()=>{k&&fe(window.getComputedStyle(k).zIndex)},[k]),g.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:ne?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(Te=U.transformOrigin)==null?void 0:Te.x,(Ne=U.transformOrigin)==null?void 0:Ne.y].join(" "),...((Me=U.hide)==null?void 0:Me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(t6,{scope:n,placedSide:H,onArrowChange:N,arrowX:q,arrowY:ge,shouldHideArrow:de,children:g.jsx(qe.div,{"data-side":H,"data-align":z,...b,ref:R,style:{...b.style,animation:ne?void 0:"none"}})})})});HE.displayName=Mg;var qE="PopperArrow",r6={top:"bottom",right:"left",bottom:"top",left:"right"},KE=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=n6(qE,r),l=r6[a.placedSide];return g.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:g.jsx(J3,{...i,ref:n,style:{...i.style,display:"block"}})})});KE.displayName=qE;function s6(e){return e!==null}var o6=e=>({name:"transformOrigin",options:e,fn(t){var C,k,T;const{placement:n,rects:r,middlewareData:i}=t,l=((C=i.arrow)==null?void 0:C.centerOffset)!==0,u=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[h,p]=QE(n),m={start:"0%",center:"50%",end:"100%"}[p],w=(((k=i.arrow)==null?void 0:k.x)??0)+u/2,S=(((T=i.arrow)==null?void 0:T.y)??0)+f/2;let E="",b="";return h==="bottom"?(E=l?m:`${w}px`,b=`${-f}px`):h==="top"?(E=l?m:`${w}px`,b=`${r.floating.height+f}px`):h==="right"?(E=`${-f}px`,b=l?m:`${S}px`):h==="left"&&(E=`${r.floating.width+f}px`,b=l?m:`${S}px`),{data:{x:E,y:b}}}});function QE(e){const[t,n="center"]=e.split("-");return[t,n]}var YE=UE,GE=WE,XE=HE,JE=KE,i6="Portal",Og=v.forwardRef((e,t)=>{var u;const{container:n,...r}=e,[i,a]=v.useState(!1);Ut(()=>a(!0),[]);const l=n||i&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?I2.createPortal(g.jsx(qe.div,{...r,ref:t}),l):null});Og.displayName=i6;function a6(e){const t=l6(e),n=v.forwardRef((r,i)=>{const{children:a,...l}=r,u=v.Children.toArray(a),f=u.find(u6);if(f){const h=f.props.children,p=u.map(m=>m===f?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:m);return g.jsx(t,{...l,ref:i,children:v.isValidElement(h)?v.cloneElement(h,void 0,p):null})}return g.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function l6(e){const t=v.forwardRef((n,r)=>{const{children:i,...a}=n;if(v.isValidElement(i)){const l=f6(i),u=d6(a,i.props);return i.type!==v.Fragment&&(u.ref=r?_s(r,l):l),v.cloneElement(i,u)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c6=Symbol("radix.slottable");function u6(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===c6}function d6(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function f6(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h6=Yu[" useInsertionEffect ".trim().toString()]||Ut;function Wu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,l]=p6({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:i;{const p=v.useRef(e!==void 0);v.useEffect(()=>{const m=p.current;m!==u&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,r])}const h=v.useCallback(p=>{var m;if(u){const w=m6(p)?p(e):p;w!==e&&((m=l.current)==null||m.call(l,w))}else a(p)},[u,e,a,l]);return[f,h]}function p6({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return h6(()=>{a.current=t},[t]),v.useEffect(()=>{var l;i.current!==n&&((l=a.current)==null||l.call(a,n),i.current=n)},[n,i]),[n,r,a]}function m6(e){return typeof e=="function"}function g6(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ZE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}
vendor: 7,197 bytes, lines 254-269
254),y6="VisuallyHidden",v6=v.forwardRef((e,t)=>g.jsx(qe.span,{...e,ref:t,style:{...ZE,...e.style}}));v6.displayName=y6;var x6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ei=new WeakMap,ru=new WeakMap,su={},rp=0,eP=function(e){return e&&(e.host||eP(e.parentNode))},w6=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=eP(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},b6=function(e,t,n,r){var i=w6(t,Array.isArray(e)?e:[e]);su[n]||(su[n]=new WeakMap);var a=su[n],l=[],u=new Set,f=new Set(i),h=function(m){!m||u.has(m)||(u.add(m),h(m.parentNode))};i.forEach(h);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(w){if(u.has(w))p(w);else try{var S=w.getAttribute(r),E=S!==null&&S!=="false",b=(ei.get(w)||0)+1,C=(a.get(w)||0)+1;ei.set(w,b),a.set(w,C),l.push(w),b===1&&E&&ru.set(w,!0),C===1&&w.setAttribute(n,"true"),E||w.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",w,k)}})};return p(t),u.clear(),rp++,function(){l.forEach(function(m){var w=ei.get(m)-1,S=a.get(m)-1;ei.set(m,w),a.set(m,S),w||(ru.has(m)||m.removeAttribute(r),ru.delete(m)),S||m.removeAttribute(n)}),rp--,rp||(ei=new WeakMap,ei=new WeakMap,ru=new WeakMap,su={})}},tP=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=x6(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),b6(r,i,n,"aria-hidden")):function(){return null}},lr=function(){return lr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},lr.apply(this,arguments)};function nP(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function S6(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Eu="right-scroll-bar-position",Pu="width-before-scroll-bar",C6="with-scroll-bars-hidden",E6="--removed-body-scroll-bar-size";function sp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function P6(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var k6=typeof window<"u"?v.useLayoutEffect:v.useEffect,Db=new WeakMap;function T6(e,t){var n=P6(null,function(r){return e.forEach(function(i){return sp(i,r)})});return k6(function(){var r=Db.get(n);if(r){var i=new Set(r),a=new Set(e),l=n.current;i.forEach(function(u){a.has(u)||sp(u,null)}),a.forEach(function(u){i.has(u)||sp(u,l)})}Db.set(n,e)},[e]),n}function R6(e){return e}function _6(e,t){t===void 0&&(t=R6);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var l=t(a,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(r=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(a),l=n}var f=function(){var p=l;l=[],p.forEach(a)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){l.push(p),h()},filter:function(p){return l=l.filter(p),n}}}};return i}function A6(e){e===void 0&&(e={});var t=_6(null);return t.options=lr({async:!0,ssr:!1},e),t}var rP=function(e){var t=e.sideCar,n=nP(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,lr({},n))};rP.isSideCarExport=!0;function N6(e,t){return e.useMedium(t),rP}var sP=A6(),op=function(){},xd=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:op,onWheelCapture:op,onTouchMoveCapture:op}),i=r[0],a=r[1],l=e.forwardProps,u=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,w=e.sideCar,S=e.noRelative,E=e.noIsolation,b=e.inert,C=e.allowPinchZoom,k=e.as,T=k===void 0?"div":k,R=e.gapMode,_=nP(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=w,L=T6([n,t]),B=lr(lr({},_),i);return v.createElement(v.Fragment,null,p&&v.createElement(N,{sideCar:sP,removeScrollBar:h,shards:m,noRelative:S,noIsolation:E,inert:b,setCallbacks:a,allowPinchZoom:!!C,lockRef:n,gapMode:R}),l?v.cloneElement(v.Children.only(u),lr(lr({},B),{ref:L})):v.createElement(T,lr({},B,{className:f,ref:L}),u))});xd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xd.classNames={fullWidth:Pu,zeroRight:Eu};var M6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function O6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=M6();return t&&e.setAttribute("nonce",t),e}function j6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var I6=function(){var e=0,t=null;return{add:function(n){e==0&&(t=O6())&&(j6(t,n),D6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},L6=function(){var e=I6();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},oP=function(){var e=L6(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},F6={left:0,top:0,right:0,gap:0},ip=function(e){return parseInt(e||"",10)||0},B6=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ip(n),ip(r),ip(i)]},V6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return F6;var t=B6(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},z6=oP(),ci="data-scroll-locked",U6=function(e,t,n,r){var i=e.left,a=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),` 255 .`.concat(C6,` { 256 overflow: hidden `).concat(r,`; 257 padding-right: `).concat(u,"px ").concat(r,`; 258 } 259 body[`).concat(ci,`] { 260 overflow: hidden `).concat(r,`; 261 overscroll-behavior: contain; 262 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 263 padding-left: `.concat(i,`px; 264 padding-top: `).concat(a,`px; 265 padding-right: `).concat(l,`px; 266 margin-left:0; 267 margin-top:0; 268 margin-right: `).concat(u,"px ").concat(r,`; 269 `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";
269")].filter(Boolean).join(""),` 270 } 271 272 .`).concat(Eu,` { 273 right: `).concat(u,"px ").concat(r,`; 274 } 275 276 .`).concat(Pu,` { 277 margin-right: `).concat(u,"px ").concat(r,`; 278 } 279 280 .`).concat(Eu," .").concat(Eu,` { 281 right: 0 `).concat(r,`; 282 } 283 284 .`).concat(Pu," .").concat(Pu,` { 285 margin-right: 0 `).concat(r,`; 286 } 287 288 body[`).concat(ci,`] { 289 `).concat(E6,": ").concat(u,`px; 290 } 291`)},Ib=function(){var e=parseInt(document.body.getAttribute(ci)||"0",10);return isFinite(e)?e:0},$6=function(){v.useEffect(function(){return document.body.setAttribute(ci,(Ib()+1).toString()),function(){var e=Ib()-1;e<=0?document.body.removeAttribute(ci):document.body.setAttribute(ci,e.toString())}},[])},W6=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;$6();var a=v.useMemo(function(){return V6(i)},[i]);return v.createElement(z6,{styles:U6(a,!t,i,n?"":"!important")})},sm=!1;if(typeof window<"u")try{var ou=Object.defineProperty({},"passive",{get:function(){return sm=!0,!0}});window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{sm=!1}var ti=sm?{passive:!1}:!1,H6=function(e){return e.tagName==="TEXTAREA"},iP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!H6(e)&&n[t]==="visible")},q6=function(e){return iP(e,"overflowY")},K6=function(e){return iP(e,"overflowX")},Lb=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=aP(e,r);if(i){var a=lP(e,r),l=a[1],u=a[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Q6=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Y6=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aP=function(e,t){return e==="v"?q6(t):K6(t)},lP=function(e,t){return e==="v"?Q6(t):Y6(t)},G6=function(e,t){return e==="h"&&t==="rtl"?-1:1},X6=function(e,t,n,r,i){var a=G6(e,window.getComputedStyle(t).direction),l=a*r,u=n.target,f=t.contains(u),h=!1,p=l>0,m=0,w=0;do{if(!u)break;var S=lP(e,u),E=S[0],b=S[1],C=S[2],k=b-C-a*E;(E||k)&&aP(e,u)&&(m+=k,w+=E);var T=u.parentNode;u=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(p&&Math.abs(m)<1||!p&&Math.abs(w)<1)&&(h=!0),h},iu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fb=function(e){return[e.deltaX,e.deltaY]},Bb=function(e){return e&&"current"in e?e.current:e},J6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Z6=function(e){return` 292 .block-interactivity-`.concat(e,` {pointer-events: none;} 293 .allow-interactivity-`).concat(e,` {pointer-events: all;} 294`)},e8=0,ni=[];function t8(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(e8++)[0],a=v.useState(oP)[0],l=v.useRef(e);v.useEffect(function(){l.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=S6([e.lockRef.current],(e.shards||[]).map(Bb),!0).filter(Boolean);return b.forEach(function(C){return C.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=v.useCallback(function(b,C){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!l.current.allowPinchZoom;var k=iu(b),T=n.current,R="deltaX"in b?b.deltaX:T[0]-k[0],_="deltaY"in b?b.deltaY:T[1]-k[1],N,L=b.target,B=Math.abs(R)>Math.abs(_)?"h":"v";if("touches"in b&&B==="h"&&L.type==="range")return!1;var j=window.getSelection(),K=j&&j.anchorNode,G=K?K===L||K.contains(L):!1;if(G)return!1;var J=Lb(B,L);if(!J)return!0;if(J?N=B:(N=B==="v"?"h":"v",J=Lb(B,L)),!J)return!1;if(!r.current&&"changedTouches"in b&&(R||_)&&(r.current=N),!N)return!0;var se=r.current||N;return X6(se,C,b,se==="h"?R:_)},[]),f=v.useCallback(function(b){var C=b;if(!(!ni.length||ni[ni.length-1]!==a)){var k="deltaY"in C?Fb(C):iu(C),T=t.current.filter(function(N){return N.name===C.type&&(N.target===C.target||C.target===N.shadowParent)&&J6(N.delta,k)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}
vendor: 4,231 bytes, line 294
294if(!T){var R=(l.current.shards||[]).map(Bb).filter(Boolean).filter(function(N){return N.contains(C.target)}),_=R.length>0?u(C,R[0]):!l.current.noIsolation;_&&C.cancelable&&C.preventDefault()}}},[]),h=v.useCallback(function(b,C,k,T){var R={name:b,delta:C,target:k,should:T,shadowParent:n8(k)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(_){return _!==R})},1)},[]),p=v.useCallback(function(b){n.current=iu(b),r.current=void 0},[]),m=v.useCallback(function(b){h(b.type,Fb(b),b.target,u(b,e.lockRef.current))},[]),w=v.useCallback(function(b){h(b.type,iu(b),b.target,u(b,e.lockRef.current))},[]);v.useEffect(function(){return ni.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:w}),document.addEventListener("wheel",f,ti),document.addEventListener("touchmove",f,ti),document.addEventListener("touchstart",p,ti),function(){ni=ni.filter(function(b){return b!==a}),document.removeEventListener("wheel",f,ti),document.removeEventListener("touchmove",f,ti),document.removeEventListener("touchstart",p,ti)}},[]);var S=e.removeScrollBar,E=e.inert;return v.createElement(v.Fragment,null,E?v.createElement(a,{styles:Z6(i)}):null,S?v.createElement(W6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function n8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const r8=N6(sP,t8);var jg=v.forwardRef(function(e,t){return v.createElement(xd,lr({},e,{ref:t,sideCar:r8}))});jg.classNames=xd.classNames;var s8=[" ","Enter","ArrowUp","ArrowDown"],o8=[" ","Enter"],wo="Select",[wd,bd,i8]=bg(wo),[Vi]=Li(wo,[i8,vd]),Sd=vd(),[a8,As]=Vi(wo),[l8,c8]=Vi(wo),cP=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:l,defaultValue:u,onValueChange:f,dir:h,name:p,autoComplete:m,disabled:w,required:S,form:E}=e,b=Sd(t),[C,k]=v.useState(null),[T,R]=v.useState(null),[_,N]=v.useState(!1),L=Sg(h),[B,j]=Wu({prop:r,defaultProp:i??!1,onChange:a,caller:wo}),[K,G]=Wu({prop:l,defaultProp:u,onChange:f,caller:wo}),J=v.useRef(null),se=C?E||!!C.closest("form"):!0,[re,oe]=v.useState(new Set),be=Array.from(re).map(Z=>Z.props.value).join(";");return g.jsx(YE,{...b,children:g.jsxs(a8,{required:S,scope:t,trigger:C,onTriggerChange:k,valueNode:T,onValueNodeChange:R,valueNodeHasChildren:_,onValueNodeHasChildrenChange:N,contentId:Ri(),value:K,onValueChange:G,open:B,onOpenChange:j,dir:L,triggerPointerDownPosRef:J,disabled:w,children:[g.jsx(wd.Provider,{scope:t,children:g.jsx(l8,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(Z=>{oe(ne=>new Set(ne).add(Z))},[]),onNativeOptionRemove:v.useCallback(Z=>{oe(ne=>{const U=new Set(ne);return U.delete(Z),U})},[]),children:n})}),se?g.jsxs(OP,{"aria-hidden":!0,required:S,tabIndex:-1,name:p,autoComplete:m,value:K,onChange:Z=>G(Z.target.value),disabled:w,form:E,children:[K===void 0?g.jsx("option",{value:""}):null,Array.from(re)]},be):null]})})};cP.displayName=wo;var uP="SelectTrigger",dP=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=Sd(n),l=As(uP,n),u=l.disabled||r,f=nt(t,l.onTriggerChange),h=bd(n),p=v.useRef("touch"),[m,w,S]=DP(b=>{const C=h().filter(R=>!R.disabled),k=C.find(R=>R.value===l.value),T=IP(C,b,k);T!==void 0&&l.onValueChange(T.value)}),E=b=>{u||(l.onOpenChange(!0),S()),b&&(l.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return g.jsx(GE,{asChild:!0,...a,children:g.jsx(qe.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":jP(l.value)?"":void 0,...i,ref:f,onClick:Pe(i.onClick,b=>{b.currentTarget.focus(),p.current!=="mouse"&&E(b)}),onPointerDown:Pe(i.onPointerDown,b=>{p.current=b.pointerType;const C=b.target;C.hasPointerCapture(b.pointerId)&&C.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(E(b),b.preventDefault())}),onKeyDown:Pe(i.onKeyDown,b=>{const C=m.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&w(b.key),!(C&&b.key===" ")&&s8.includes(b.key)&&(E(),b.preventDefault())})})})});dP.displayName=uP;var fP="SelectValue",hP=v.forwardRef((e,t)=>
vendor: 13,862 bytes, line 294
294{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:l="",...u}=e,f=As(fP,n),{onValueNodeHasChildrenChange:h}=f,p=a!==void 0,m=nt(t,f.onValueNodeChange);return Ut(()=>{h(p)},[h,p]),g.jsx(qe.span,{...u,ref:m,style:{pointerEvents:"none"},children:jP(f.value)?g.jsx(g.Fragment,{children:l}):a})});hP.displayName=fP;var u8="SelectIcon",pP=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return g.jsx(qe.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});pP.displayName=u8;var d8="SelectPortal",mP=e=>g.jsx(Og,{asChild:!0,...e});mP.displayName=d8;var bo="SelectContent",gP=v.forwardRef((e,t)=>{const n=As(bo,e.__scopeSelect),[r,i]=v.useState();if(Ut(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?wl.createPortal(g.jsx(yP,{scope:e.__scopeSelect,children:g.jsx(wd.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),a):null}return g.jsx(vP,{...e,ref:t})});gP.displayName=bo;var $n=10,[yP,Ns]=Vi(bo),f8="SelectContentImpl",h8=a6("SelectContent.RemoveScroll"),vP=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:l,side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:w,collisionPadding:S,sticky:E,hideWhenDetached:b,avoidCollisions:C,...k}=e,T=As(bo,n),[R,_]=v.useState(null),[N,L]=v.useState(null),B=nt(t,te=>_(te)),[j,K]=v.useState(null),[G,J]=v.useState(null),se=bd(n),[re,oe]=v.useState(!1),be=v.useRef(!1);v.useEffect(()=>{if(R)return tP(R)},[R]),kE();const Z=v.useCallback(te=>{const[he,...ie]=se().map(Me=>Me.ref.current),[Te]=ie.slice(-1),Ne=document.activeElement;for(const Me of te)if(Me===Ne||(Me==null||Me.scrollIntoView({block:"nearest"}),Me===he&&N&&(N.scrollTop=0),Me===Te&&N&&(N.scrollTop=N.scrollHeight),Me==null||Me.focus(),document.activeElement!==Ne))return},[se,N]),ne=v.useCallback(()=>Z([j,R]),[Z,j,R]);v.useEffect(()=>{re&&ne()},[re,ne]);const{onOpenChange:U,triggerPointerDownPosRef:H}=T;v.useEffect(()=>{if(R){let te={x:0,y:0};const he=Te=>{var Ne,Me;te={x:Math.abs(Math.round(Te.pageX)-(((Ne=H.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((Me=H.current)==null?void 0:Me.y)??0))}},ie=Te=>{te.x<=10&&te.y<=10?Te.preventDefault():R.contains(Te.target)||U(!1),document.removeEventListener("pointermove",he),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",ie,{capture:!0})}}},[R,U,H]),v.useEffect(()=>{const te=()=>U(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[U]);const[z,M]=DP(te=>{const he=se().filter(Ne=>!Ne.disabled),ie=he.find(Ne=>Ne.ref.current===document.activeElement),Te=IP(he,te,ie);Te&&setTimeout(()=>Te.ref.current.focus())}),q=v.useCallback((te,he,ie)=>{const Te=!be.current&&!ie;(T.value!==void 0&&T.value===he||Te)&&(K(te),Te&&(be.current=!0))},[T.value]),ge=v.useCallback(()=>R==null?void 0:R.focus(),[R]),de=v.useCallback((te,he,ie)=>{const Te=!be.current&&!ie;(T.value!==void 0&&T.value===he||Te)&&J(te)},[T.value]),le=r==="popper"?om:xP,fe=le===om?{side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:w,collisionPadding:S,sticky:E,hideWhenDetached:b,avoidCollisions:C}:{};return g.jsx(yP,{scope:n,content:R,viewport:N,onViewportChange:L,itemRefCallback:q,selectedItem:j,onItemLeave:ge,itemTextRefCallback:de,focusSelectedItem:ne,selectedItemText:G,position:r,isPositioned:re,searchRef:z,children:g.jsx(jg,{as:h8,allowPinchZoom:!0,children:g.jsx(Eg,{asChild:!0,trapped:T.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Pe(i,te=>{var he;(he=T.trigger)==null||he.focus({preventScroll:!0}),te.preventDefault()}),children:g.jsx(Cg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:g.jsx(le,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:te=>te.preventDefault(),...k,...fe,onPlaced:()=>oe(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Pe(k.onKeyDown,te=>{const he=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!he&&te.key.length===1&&M(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let Te=se().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(te.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const Ne=te.target,Me=Te.indexOf(Ne);Te=Te.slice(Me+1)}setTimeout(()=>Z(Te)),te.preventDefault()}})})})})})})});vP.displayName=f8;var p8="SelectItemAlignedPosition",xP=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,a=As(bo,n),l=Ns(bo,n),[u,f]=v.useState(null),[h,p]=v.useState(null),m=nt(t,B=>p(B)),w=bd(n),S=v.useRef(!1),E=v.useRef(!0),{viewport:b,selectedItem:C,selectedItemText:k,focusSelectedItem:T}=l,R=v.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&h&&b&&C&&k){const B=a.trigger.getBoundingClientRect(),j=h.getBoundingClientRect(),K=a.valueNode.getBoundingClientRect(),G=k.getBoundingClientRect();if(a.dir!=="rtl"){const Ne=G.left-j.left,Me=K.left-Ne,Je=B.left-Me,ye=B.width+Je,Re=Math.max(ye,j.width),Ze=window.innerWidth-$n,it=mb(Me,[$n,Math.max($n,Ze-Re)]);u.style.minWidth=ye+"px",u.style.left=it+"px"}else{const Ne=j.right-G.right,Me=window.innerWidth-K.right-Ne,Je=window.innerWidth-B.right-Me,ye=B.width+Je,Re=Math.max(ye,j.width),Ze=window.innerWidth-$n,it=mb(Me,[$n,Math.max($n,Ze-Re)]);u.style.minWidth=ye+"px",u.style.right=it+"px"}const J=w(),se=window.innerHeight-$n*2,re=b.scrollHeight,oe=window.getComputedStyle(h),be=parseInt(oe.borderTopWidth,10),Z=parseInt(oe.paddingTop,10),ne=parseInt(oe.borderBottomWidth,10),U=parseInt(oe.paddingBottom,10),H=be+Z+re+U+ne,z=Math.min(C.offsetHeight*5,H),M=window.getComputedStyle(b),q=parseInt(M.paddingTop,10),ge=parseInt(M.paddingBottom,10),de=B.top+B.height/2-$n,le=se-de,fe=C.offsetHeight/2,te=C.offsetTop+fe,he=be+Z+te,ie=H-he;if(he<=de){const Ne=J.length>0&&C===J[J.length-1].ref.current;u.style.bottom="0px";const Me=h.clientHeight-b.offsetTop-b.offsetHeight,Je=Math.max(le,fe+(Ne?ge:0)+Me+ne),ye=he+Je;u.style.height=ye+"px"}else{const Ne=J.length>0&&C===J[0].ref.current;u.style.top="0px";const Je=Math.max(de,be+b.offsetTop+(Ne?q:0)+fe)+ie;u.style.height=Je+"px",b.scrollTop=he-de+b.offsetTop}u.style.margin=`${$n}px 0`,u.style.minHeight=z+"px",u.style.maxHeight=se+"px",r==null||r(),requestAnimationFrame(()=>S.current=!0)}},[w,a.trigger,a.valueNode,u,h,b,C,k,a.dir,r]);Ut(()=>R(),[R]);const[_,N]=v.useState();Ut(()=>{h&&N(window.getComputedStyle(h).zIndex)},[h]);const L=v.useCallback(B=>{B&&E.current===!0&&(R(),T==null||T(),E.current=!1)},[R,T]);return g.jsx(g8,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:S,onScrollButtonChange:L,children:g.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:g.jsx(qe.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});xP.displayName=p8;var m8="SelectPopperPosition",om=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=$n,...a}=e,l=Sd(n);return g.jsx(XE,{...l,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});om.displayName=m8;var[g8,Dg]=Vi(bo,{}),im="SelectViewport",wP=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=Ns(im,n),l=Dg(im,n),u=nt(t,a.onViewportChange),f=v.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),g.jsx(wd.Slot,{scope:n,children:g.jsx(qe.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Pe(i.onScroll,h=>{const p=h.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:w}=l;if(w!=null&&w.current&&m){const S=Math.abs(f.current-p.scrollTop);if(S>0){const E=window.innerHeight-$n*2,b=parseFloat(m.style.minHeight),C=parseFloat(m.style.height),k=Math.max(b,C);if(k<E){const T=k+S,R=Math.min(E,T),_=T-R;m.style.height=R+"px",m.style.bottom==="0px"&&(p.scrollTop=_>0?_:0,m.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});wP.displayName=im;var bP="SelectGroup",[y8,v8]=Vi(bP),x8=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Ri();return g.jsx(y8,{scope:n,id:i,children:g.jsx(qe.div,{role:"group","aria-labelledby":i,...r,ref:t})})});x8.displayName=bP;var SP="SelectLabel",CP=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=v8(SP,n);return g.jsx(qe.div,{id:i.id,...r,ref:t})});CP.displayName=SP;var Hu="SelectItem",[w8,EP]=Vi(Hu),PP=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...l}=e,u=As(Hu,n),f=Ns(Hu,n),h=u.value===r,[p,m]=v.useState(a??""),[w,S]=v.useState(!1),E=nt(t,T=>{var R;return(R=f.itemRefCallback)==null?void 0:R.call(f,T,r,i)}),b=Ri(),C=v.useRef("touch"),k=()=>{i||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(w8,{scope:n,value:r,disabled:i,textId:b,isSelected:h,onItemTextChange:v.useCallback(T=>{m(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:g.jsx(wd.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:g.jsx(qe.div,{role:"option","aria-labelledby":b,"data-highlighted":w?"":void 0,"aria-selected":h&&w,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:E,onFocus:Pe(l.onFocus,()=>S(!0)),onBlur:Pe(l.onBlur,()=>S(!1)),onClick:Pe(l.onClick,()=>{C.current!=="mouse"&&k()}),onPointerUp:Pe(l.onPointerUp,()=>{C.current==="mouse"&&k()}),onPointerDown:Pe(l.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:Pe(l.onPointerMove,T=>{var R;C.current=T.pointerType,i?(R=f.onItemLeave)==null||R.call(f):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Pe(l.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=f.onItemLeave)==null||R.call(f))}),onKeyDown:Pe(l.onKeyDown,T=>{var _;((_=f.searchRef)==null?void 0:_.current)!==""&&T.key===" "||(o8.includes(T.key)&&k(),T.key===" "&&T.preventDefault())})})})})});PP.displayName=Hu;var za="SelectItemText",kP=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,l=As(za,n),u=Ns(za,n),f=EP(za,n),h=c8(za,n),[p,m]=v.useState(null),w=nt(t,k=>m(k),f.onItemTextChange,k=>{var T;return(T=u.itemTextRefCallback)==null?void 0:T.call(u,k,f.value,f.disabled)}),S=p==null?void 0:p.textContent,E=v.useMemo(()=>g.jsx("option",{value:f.value,disabled:f.disabled,children:S},f.value),[f.disabled,f.value,S]),{onNativeOptionAdd:b,onNativeOptionRemove:C}=h;return Ut(()=>(b(E),()=>C(E)),[b,C,E]),g.jsxs(g.Fragment,{children:[g.jsx(qe.span,{id:f.textId,...a,ref:w}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?wl.createPortal(a.children,l.valueNode):null]})});kP.displayName=za;var TP="SelectItemIndicator",RP=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return EP(TP,n).isSelected?g.jsx(qe.span,{"aria-hidden":!0,...r,ref:t}):null});RP.displayName=TP;var am="SelectScrollUpButton",_P=v.forwardRef((e,t)=>{const n=Ns(am,e.__scopeSelect),r=Dg(am,e.__scopeSelect),[i,a]=v.useState(!1),l=nt(t,r.onScrollButtonChange);return Ut(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollTop>0;a(h)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?g.jsx(NP,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});_P.displayName=am;var lm="SelectScrollDownButton",AP=v.forwardRef((e,t)=>{const n=Ns(lm,e.__scopeSelect),r=Dg(lm,e.__scopeSelect),[i,a]=v.useState(!1),l=nt(t,r.onScrollButtonChange);return Ut(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)<h;a(p)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?g.jsx(NP,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});AP.displayName=lm;var NP=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Ns("SelectScrollButton",n),l=v.useRef(null),u=bd(n),f=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>f(),[f]),Ut(()=>{var p;const h=u().find(m=>m.ref.current===document.activeElement);(p=h==null?void 0:h.ref.current)==null||p.scrollIntoView({block:"nearest"})},[u]),g.jsx(qe.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Pe(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Pe(i.onPointerMove,()=>{var h;(h=a.onItemLeave)==null||h.call(a),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Pe(i.onPointerLeave,()=>{f()})})}),b8="SelectSeparator",MP=v.forwardRef((e,t)=>
vendor: 4,410 bytes, line 294
294{const{__scopeSelect:n,...r}=e;return g.jsx(qe.div,{"aria-hidden":!0,...r,ref:t})});MP.displayName=b8;var cm="SelectArrow",S8=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Sd(n),a=As(cm,n),l=Ns(cm,n);return a.open&&l.position==="popper"?g.jsx(JE,{...i,...r,ref:t}):null});S8.displayName=cm;var C8="SelectBubbleInput",OP=v.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=v.useRef(null),a=nt(r,i),l=g6(t);return v.useEffect(()=>{const u=i.current;if(!u)return;const f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&p){const m=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(m)}},[l,t]),g.jsx(qe.select,{...n,style:{...ZE,...n.style},ref:a,defaultValue:t})});OP.displayName=C8;function jP(e){return e===""||e===void 0}function DP(e){const t=yr(e),n=v.useRef(""),r=v.useRef(0),i=v.useCallback(l=>{const u=n.current+l;t(u),(function f(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(u)},[t]),a=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function IP(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=E8(e,Math.max(a,0));i.length===1&&(l=l.filter(h=>h!==n));const f=l.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function E8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var P8=cP,LP=dP,k8=hP,T8=pP,R8=mP,FP=gP,_8=wP,BP=CP,VP=PP,A8=kP,N8=RP,zP=_P,UP=AP,$P=MP;const au=P8,lu=k8,Ua=v.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(LP,{ref:r,className:He("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,g.jsx(T8,{asChild:!0,children:g.jsx(Gu,{className:"h-4 w-4 opacity-50"})})]}));Ua.displayName=LP.displayName;const WP=v.forwardRef(({className:e,...t},n)=>g.jsx(zP,{ref:n,className:He("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(c1,{className:"h-4 w-4"})}));WP.displayName=zP.displayName;const HP=v.forwardRef(({className:e,...t},n)=>g.jsx(UP,{ref:n,className:He("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Gu,{className:"h-4 w-4"})}));HP.displayName=UP.displayName;const $a=v.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>g.jsx(R8,{children:g.jsxs(FP,{ref:i,className:He("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[g.jsx(WP,{}),g.jsx(_8,{className:He("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(HP,{})]})}));$a.displayName=FP.displayName;const M8=v.forwardRef(({className:e,...t},n)=>g.jsx(BP,{ref:n,className:He("px-2 py-1.5 text-sm font-semibold",e),...t}));M8.displayName=BP.displayName;const Wa=v.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(VP,{ref:r,className:He("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(N8,{children:g.jsx(a1,{className:"h-4 w-4"})})}),g.jsx(A8,{children:t})]}));Wa.displayName=VP.displayName;const O8=v.forwardRef(({className:e,...t},n)=>g.jsx($P,{ref:n,className:He("-mx-1 my-1 h-px bg-muted",e),...t}));O8.displayName=$P.displayName;const j8=["Parkinson's disease","Stroke or CVA","Alzheimer's or other dementia","Post surg
294ical recovery","Chronic illness management","Multiple conditions","Other"],D8=["No formal care yet","Family members providing care","Existing caregiver in place","Hospital discharge pending","Other"],I8=["Immediate, within this week","Within the next two to four weeks","Planning ahead for the next few months"],L8=["Referral from family or friend","Hospital or doctor referral","LinkedIn","Instagram","Google search","MyQura flyer","Event","Other"];function F8({formData:e,setFormData:t,onSubmit:n,isSubmitting:r}){const[i,a]=v.useState({}),l=(m,w)=>{t(S=>({...S,[m]:w})),i[m]&&a(S=>({...S,[m]:null}))},u=()=>{var w,S,E,b,C,k,T;const m={};return(w=e.full_name)!=null&&w.trim()||(m.full_name="Required"),(S=e.phone)!=null&&S.trim()||(m.phone="Required"),(E=e.email)!=null&&E.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)||(m.email="Invalid email"):m.email="Required",(b=e.relationship)!=null&&b.trim()||(m.relationship="Required"),e.patient_age||(m.patient_age="Required"),e.primary_condition||(m.primary_condition="Required"),e.primary_condition==="Other"&&!((C=e.condition_other)!=null&&C.trim())&&(m.condition_other="Please specify"),e.care_arrangement||(m.care_arrangement="Required"),e.urgency||(m.urgency="Required"),(k=e.location)!=null&&k.trim()||(m.location="Required"),e.referral_source||(m.referral_source="Required"),(T=e.consultation_focus)!=null&&T.trim()||(m.consultation_focus="Required"),a(m),Object.keys(m).length===0},f=m=>{m.preventDefault(),u()&&n()},h=[e.full_name,e.phone,e.email,e.relationship,e.patient_age,e.primary_condition,e.care_arrangement,e.urgency,e.location,e.referral_source,e.consultation_focus].filter(Boolean).length,p=h/11*100;return g.jsxs("form",{onSubmit:f,className:"space-y-8",children:[g.jsxs("div",{className:"sticky top-0 z-30 bg-white/80 backdrop-blur-sm py-3 -mx-1 px-1 rounded-xl",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsxs("p",{className:"font-body text-sm text-muted-foreground",children:[h," of 11 fields completed"]}),g.jsxs("p",{className:"font-body text-sm font-medium text-primary",children:[Math.round(p),"%"]})]}),g.jsx("div",{className:"h-[2px] bg-border rounded-full overflow-hidden",children:g.jsx(tn.div,{className:"h-full bg-primary",animate:{width:`${p}%`},transition:{duration:.3}})})]}),g.jsxs("div",{className:"space-y-6",children:[g.jsx("h3",{className:"font-heading text-base font-semibold text-[#1A2B6B] border-b border-blue-100 pb-3",children:"Your information"}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[g.jsx(En,{label:"Full name",error:i.full_name,children:g.jsx(Mt,{value:e.full_name||"",onChange:m=>l("full_name",m.target.value),placeholder:"Enter your full name",className:"h-14 text-base font-body rounded-xl"})}),g.jsx(En,{label:"Phone number (WhatsApp)",error:i.phone,children:g.jsx(Mt,{type:"tel",value:e.phone||"",onChange:m=>l("phone",m.target.value),placeholder:"+234 800 000 0000",className:"h-14 text-base font-body rounded-xl"})}),g.jsx(En,{label:"Email address",error:i.email,children:g.jsx(Mt,{type:"email",value:e.email||"",onChange:m=>l("email",m.target.value),placeholder:"[email protected]",className:"h-14 text-base font-body rounded-xl"})}),g.jsx(En,{label:"Relationship to patient",error:i.relationship,children:g.jsx(Mt,{value:e.relationship||"",onChange:m=>l("relationship",m.target.value),placeholder:"e.g. Son, Daughter, Spouse",className:"h-14 text-base font-body rounded-xl"})})]})]}),g.jsxs("div",{className:"space-y-6",children:[g.jsx("h3",{className:"font-heading text-base font-semibold text-[#1A2B6B] border-b border-blue-100 pb-3",children:"Patient details"}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[g.jsx(En,{label:"Patient's age",error:i.patient_age,children:g.jsx(Mt,{type:"number",min:"0",max:"150",value:e.patient_age||"",onChange:m=>l("patient_age",parseInt(m.target.value)||""),placeholder:"Age in years",className:"h-14 text-base font-body rounded-xl"})}),g.jsx(En,{label:"Primary condition",error:i.primary_condition,children:g.jsxs(au,{value:e.primary_condition||"",onValueChange:m=>l("primary_condition",m),children:[g.jsx(Ua,{className:"h-14 text-base font-body rounded-xl",children:g.jsx(lu,{placeholder:"Select condition"})}),g.jsx($a,{children:j8.map(m=>g.jsx(Wa,{value:m,children:m},m))})]})})]}),e.primary_condition==="Other"&&g.jsx(En,{label:"Please specify condition",error:i.condition_other,children:g.jsx(Mt,{value:e.condition_other||"",onChange:m=>l("condition_other",m.target.value),placeholder:"Describe the condition",className:"h-14 text-base font-body rounded-xl"})}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[g.jsx(En,{label:"Current care arrangement",error:i.care_arrangement,children:g.jsxs(au,{value:e.care_arrangement||"",onValueChange:m=>l("care_arrangement",m),children:[g.jsx(Ua,{className:"h-14 text-base font-body rounded-xl",children:g.jsx(lu,{placeholder:"Select arrangement"})}),g.jsx($a,{children:D8.map(m=>g.jsx(Wa,{value:m,children:m},m))})]})}),g.jsx(En,{label:"Urgency of your need",error:i.urgency,children:g.jsxs(au,{value:e.urgency||"",onValueChange:m=>l("urgency",m),children:[g.jsx(Ua,{className:"h-14 text-base font-body rounded-xl",children:g.jsx(lu,{placeholder:"Select urgency"})}),g.jsx($a,{children:I8.map(m=>g.jsx(Wa,{value:m,children:m},m))})]})})]})]}),g.jsxs("div",{className:"space-y-6",children:[g.jsx("h3",{className:"font-heading text-base font-semibold text-[#1A2B6B] border-b border-blue-100 pb-3",children:"Additional details"}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[g.jsx(En,{label:"Patient location (city and area)",error:i.location,children:g.jsx(Mt,{value:e.location||"",onChange:m=>l("location",m.target.value),placeholder:"e.g. Lagos, Lekki",className:"h-14 text-base font-body rounded-xl"})}),g.jsx(En,{label:"How did you hear about MyQura?",error:i.referral_source,children:g.jsxs(au,{value:e.referral_source||"",onValueChange:m=>l("referral_source",m),children:[g.jsx(Ua,{className:"h-14 text-base font-body rounded-xl",children:g.jsx(lu,{placeholder:"Select source"})}),g.jsx($a,{children:L8.map(m=>g.jsx(Wa,{value:m,children:m},m))})]})})]}),g.jsxs(En,{label:"What would you most like to focus on in this consultation?",error:i.consultation_focus,children:[g.jsx(SE,{value:e.consultation_focus||"",onChange:m=>{m.target.value.length<=500&&l("consultation_focus",m.target.value)},placeholder:"In two or three sentences, tell us about your priorities...",className:"min-h-[120px] text-base font-body rounded-xl resize-none"}),g.jsxs("p",{className:"text-xs font-body text-muted-foreground text-right mt-1",children:[(e.consultation_focus||"").length,"/500 characters"]})]})]}),g.jsxs("div",{className:"pt-4",children:[g.jsxs(kt,{type:"submit",disabled:r||p<100,size:"lg",className:`w-full py-7 rounded-xl font-body font-semibold text-base transition-all duration-300 ${p>=100?"bg-primary text-primary-foreground shadow-lg hover:shadow-xl":"bg-muted text-muted-foreground cursor-not-allowed"}`,children:[g.jsx(ho,{className:"w-4 h-4 mr-2"}),r?"Processing...":"Proceed to Payment â â¦75,000",g.jsx(o1,{className:"w-4 h-4 ml-2"})]}),g.jsx("p",{className:"text-xs font-body text-muted-foreground text-center mt-3",children:"Secured by Paystack. Your data is encrypted and protected."})]})]})}function En({label:e,error:t,children:n}){return g.jsxs("div",{className:"space-y-2",children:[g.jsxs(hr,{className:"font-body text-sm font-medium text-foreground",children:[e," ",g.jsx("span",{className:"text-destructive",children:"*"})]}),n,t&&g.jsx("p",{className:"text-xs font-body text-destructive",children:t})]})}function B8({booking:e,onClose:t}){const[n,r]=v.useState(8);return v.useEffect(()=>{const i=setInterval(()=>{r(a=>a<=1?(clearInterval(i),window.location.href="https://paystack.shop/pay/purpleglobalmission",0):a-1)},1e3);return()=>clearInterval(i)},[]),g.jsx(tn.div,{initial:{opacity:0}
294,animate:{opacity:1},className:"fixed inset-0 z-50 bg-background flex items-center justify-center p-6",children:g.jsxs(tn.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",delay:.2,duration:.8},className:"max-w-lg w-full text-center",children:[g.jsx(tn.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.4,stiffness:200},className:"w-24 h-24 mx-auto mb-8 rounded-full bg-secondary flex items-center justify-center",children:g.jsx(tn.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.6,type:"spring"},children:g.jsx(Xu,{className:"w-14 h-14 text-primary"})})}),g.jsx(tn.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"font-heading text-3xl md:text-4xl text-foreground mb-3",children:"Booking Confirmed"}),g.jsxs(tn.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.8},className:"font-body text-muted-foreground mb-8",children:["A confirmation email has been sent to ",e.email]}),g.jsxs(tn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},className:"bg-card border border-border rounded-2xl p-8 text-left shadow-lg",children:[g.jsxs("div",{className:"flex items-center justify-between mb-6 pb-4 border-b border-border",children:[g.jsxs("div",{children:[g.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider",children:"Booking Reference"}),g.jsx("p",{className:"font-heading text-lg text-foreground font-semibold",children:e.booking_reference})]}),g.jsx("div",{className:"bg-primary/10 text-primary font-body text-sm font-medium px-4 py-1.5 rounded-full",children:"Confirmed"})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(E_,{className:"w-5 h-5 text-primary flex-shrink-0"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Date"}),g.jsx("p",{className:"font-body font-medium text-foreground",children:e.appointment_date?Kn(new Date(e.appointment_date),"EEEE, MMMM d, yyyy"):""})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Ju,{className:"w-5 h-5 text-primary flex-shrink-0"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Time"}),g.jsxs("p",{className:"font-body font-medium text-foreground",children:[e.appointment_time," · 75 minutes"]})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(f1,{className:"w-5 h-5 text-primary flex-shrink-0"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Location"}),g.jsx("p",{className:"font-body font-medium text-foreground",children:"MyQura Care Hub"})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(d1,{className:"w-5 h-5 text-primary flex-shrink-0"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Investment"}),g.jsx("p",{className:"font-body font-medium text-foreground",children:"â¦75,000 (paid)"})]})]})]})]}),g.jsxs(tn.div,{initial:{opacity:0}
294,animate:{opacity:1},transition:{delay:1.1},className:"mt-8 space-y-4",children:[g.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-xl px-5 py-4",children:[g.jsxs("p",{className:"font-body text-sm text-primary font-medium text-center",children:["Redirecting to payment in ",g.jsx("span",{className:"font-bold text-lg",children:n}),"sâ¦"]}),g.jsx("div",{className:"mt-2 bg-primary/10 rounded-full h-1.5 overflow-hidden",children:g.jsx(tn.div,{className:"h-full bg-primary rounded-full",initial:{width:"100%"},animate:{width:"0%"},transition:{duration:8,ease:"linear"}})})]}),g.jsxs(kt,{onClick:()=>{window.location.href="https://paystack.shop/pay/purpleglobalmission"},size:"lg",className:"bg-primary text-primary-foreground rounded-xl px-10 py-6 font-body font-semibold w-full flex items-center justify-center gap-2",children:["Complete Payment â â¦75,000",g.jsx(o1,{className:"w-5 h-5"})]}),g.jsx("p",{className:"font-body text-xs text-muted-foreground text-center",children:"Secure payment powered by Paystack"})]})]})})}function V8(){const e="ABCDEFGHJKLMNPQRSTUVWXYZ23456789";let t="MQ-";for(let n=0;n<6;n++)t+=e[Math.floor(Math.random()*e.length)];return t}function z8(){const[e,t]=v.useState(null),[n,r]=v.useState(""),[i,a]=v.useState({}),[l,u]=v.useState(null),[f,h]=v.useState(!1),p=v.useRef(null),m=Sm(),{data:w=[]}=Cm({queryKey:["booked-slots"],queryFn:()=>tt.entities.Booking.filter({status:"confirmed"},"-created_date",100),initialData:[]}),S=T=>{t(T),r("")},E=T=>{r(T),setTimeout(()=>{var R;(R=p.current)==null||R.scrollIntoView({behavior:"smooth",block:"start"})},400)},b=async()=>{if(!e||!n){hd.error("Please select a date and time first");return}h(!0);const T=V8(),R={...i,appointment_date:Kn(e,"yyyy-MM-dd"),appointment_time:n,status:"pending_payment",booking_reference:T,amount_paid:75e3,payment_reference:"SIM-"+Date.now()},_=await tt.entities.Booking.create(R);m.invalidateQueries({queryKey:["booked-slots"]}),await C(_),await k(_),u({..._,...R}),h(!1)},C=async T=>{const R=(T.full_name||"").split(" ")[0],_=T.appointment_date?Kn(new Date(T.appointment_date),"EEEE, MMMM d, yyyy"):"",N=`<!DOCTYPE html> 295<html lang="en"> 296<head> 297 <meta charset="UTF-8"> 298 <meta name="viewport" content="width=device-width,initial-scale=1"> 299 <title>MyQura â Slot Reserved</title> 300</head> 301<body style="margin:0;padding:0;background:#eef1f8;font-family:'Helvetica Neue',Arial,sans-serif;color:#1e2d4e;"> 302 <table width="100%" cellpadding="0" cellspacing="0" style="background:#eef1f8;padding:48px 16px;"> 303 <tr><td align="center"> 304 <table width="600" cellpadding="0" cellspacing="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(26,43,107,0.12);"> 305 306 <!-- ââ HEADER ââ --> 307 <tr> 308 <td style="background:#1A2B6B;padding:0;"> 309 <table width="100%" cellpadding="0" cellspacing="0"> 310 <tr> 311 <td style="padding:36px 44px 0;"> 312 <p style="margin:0;color:#7b9cf4;font-size:10px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;">Specialist Care</p> 313 <h1 style="margin:6px 0 0;color:#ffffff;font-size:32px;font-weight:800;letter-spacing:-1px;line-height:1.1;">MyQura</h1> 314 </td> 315 </tr> 316 <tr> 317 <td style="padding:20px 44px 36px;"> 318 <table cellpadding="0" cellspacing="0"> 319 <tr> 320 <td style="background:rgba(255,255,255,0.12);border-radius:50px;padding:6px 16px;"> 321 <span style="color:#c5d4fb;font-size:12px;font-weight:600;">Ref: ${T.booking_reference}</span> 322 </td> 323 </tr> 324 </table> 325 </td> 326 </tr> 327 </table> 328 </td> 329 </tr> 330 331 <!-- ââ STATUS STRIP ââ --> 332 <tr> 333 <td style="background:#f5f7ff;border-bottom:1px solid #e2e8f5;padding:14px 44px;"> 334 <table width="100%" cellpadding="0" cellspacing="0"> 335 <tr> 336 <td>
337 <span style="display:inline-block;background:#fff3cd;color:#92620a;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:4px 12px;border-radius:50px;">â³ Awaiting Payment</span> 338 </td> 339 <td align="right"> 340 <span style="font-size:12px;color:#718096;">${_}</span> 341 </td> 342 </tr> 343 </table> 344 </td> 345 </tr> 346 347 <!-- ââ GREETING ââ --> 348 <tr> 349 <td style="padding:40px 44px 0;"> 350 <p style="margin:0 0 6px;font-size:24px;font-weight:700;color:#1A2B6B;line-height:1.2;">Dear ${R},</p> 351 <p style="margin:12px 0 0;font-size:15px;color:#4a5568;line-height:1.75;">Your consultation slot is <strong style="color:#1A2B6B;">reserved</strong>. To lock it in permanently, please complete your payment using the button below â slots are held for a limited time.</p> 352 </td> 353 </tr> 354 355 <!-- ââ APPOINTMENT CARD ââ --> 356 <tr> 357 <td style="padding:28px 44px 0;"> 358 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f5f7ff;border:1.5px solid #d0daff;border-radius:14px;overflow:hidden;"> 359 <tr> 360 <td style="background:#1A2B6B;padding:14px 24px;"> 361 <p style="margin:0;color:#a8bdf8;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;">Appointment Details</p> 362 </td> 363 </tr> 364 <tr> 365 <td style="padding:6px 0 6px;"> 366 <table width="100%" cellpadding="0" cellspacing="0"> 367 <tr> 368 <td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"> 369 <span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð Date</span><br> 370 <span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">${_}</span> 371 </td> 372 </tr> 373 <tr> 374 <td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"> 375 <span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">â° Time</span><br> 376 <span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">${T.appointment_time} · 75-minute session</span> 377 </td> 378 </tr> 379 <tr> 380 <td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"> 381 <span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð Location</span><br> 382 <span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">MyQura Care Hub</span> 383 </td> 384 </tr> 385 <tr> 386 <td style="padding:14px 24px;"> 387 <span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð³ Investment</span><br> 388 <span style="font-size:20px;font-weight:800;color:#1A2B6B;margin-top:4px;display:block;">â¦75,000</span> 389 </td> 390 </tr> 391 </table> 392 </td> 393 </tr> 394 </table> 395 </td> 396 </tr> 397 398 <!-- ââ CTA ââ --> 399 <tr> 400 <td style="padding:32px 44px;"> 401 <table width="100%" cellpadding="0" cellspacing="0"> 402 <tr> 403 <td align="center" style="background:linear-gradient(135deg,#1A2B6B 0%,#2e45a0 100%);border-radius:14px;padding:2px;"> 404 <a href="https://paystack.shop/pay/purpleglobalmission" 405 style="display:block;background:linear-gradient(135deg,#1A2B6B 0%,#2e45a0 100%);color:#ffffff;font-size:17px;font-weight:800;text-decoration:none;padding:18px 40px;border-radius:13px;text-align:center;letter-spacing:0.2px;"> 406 Complete Payment â â¦75,000 407 </a> 408 </td> 409 </tr> 410 <tr> 411 <td align="center" style="padding-top:10px;"> 412 <p style="margin:0;font-size:12px;color:#8896b3;">ð Secure checkout via Paystack</p> 413 </td> 414 </tr> 415 </table> 416 </td> 417 </tr> 418 419 <!-- ââ DIVIDER ââ --> 420 <tr><td style="padding:0 44px;"><div style="height:1px;background:#e8ecf5;"></div></td></tr> 421 422 <!-- ââ WHAT TO BRING ââ --> 423 <tr> 424 <td style="padding:28px 44px 0;"> 425 <p style="margin:0 0 16px;font-size:11px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:#1A2B6B;">What to bring</p> 426 <table width="100%" cellpadding="0" cellspacing="0"> 427 <tr> 428 <td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;">
429 <span style="font-size:14px;color:#4a5568;">ð Recent medical reports, discharge summaries or specialist letters</span> 430 </td> 431 </tr> 432 <tr> 433 <td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"> 434 <span style="font-size:14px;color:#4a5568;">ð A current medication list with dosages</span> 435 </td> 436 </tr> 437 <tr> 438 <td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"> 439 <span style="font-size:14px;color:#4a5568;">âï¸ Your written questions and concerns</span> 440 </td> 441 </tr> 442 <tr> 443 <td style="padding:8px 0;"> 444 <span style="font-size:14px;color:#4a5568;">ð¨âð©âð§ Key decision-makers in your family, where possible</span> 445 </td> 446 </tr> 447 </table> 448 </td> 449 </tr> 450 451 <!-- ââ NOTE ââ --> 452 <tr> 453 <td style="padding:28px 44px 36px;"> 454 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f9fafb;border-left:4px solid #1A2B6B;border-radius:0 10px 10px 0;"> 455 <tr> 456 <td style="padding:16px 20px;"> 457 <p style="margin:0 0 6px;font-size:13px;color:#1A2B6B;font-weight:700;">Your personalised care plan</p> 458 <p style="margin:0;font-size:13px;color:#4a5568;line-height:1.7;">You will receive a written summary within <strong>48 hours</strong> of your session. Need to reschedule? Please contact us at least <strong>24 hours</strong> in advance.</p> 459 </td> 460 </tr> 461 </table> 462 </td> 463 </tr> 464 465 <!-- ââ FOOTER ââ --> 466 <tr> 467 <td style="background:#0f1d52;padding:24px 44px;"> 468 <table width="100%" cellpadding="0" cellspacing="0"> 469 <tr> 470 <td> 471 <p style="margin:0;color:#ffffff;font-size:15px;font-weight:700;">MyQura</p> 472 <p style="margin:3px 0 0;color:#7b9cf4;font-size:12px;">Specialist Care Consultation</p> 473 </td> 474 <td align="right"> 475 <a href="https://myqura.org" style="color:#7b9cf4;font-size:12px;text-decoration:none;">myqura.org</a> 476 </td> 477 </tr> 478 <tr> 479 <td colspan="2" style="padding-top:14px;border-top:1px solid rgba(255,255,255,0.1);margin-top:14px;"> 480 <p style="margin:14px 0 0;color:#4d6099;font-size:11px;">© 2026 MyQura · All rights reserved</p> 481 </td> 482 </tr> 483 </table> 484 </td> 485 </tr> 486 487 </table> 488 </td></tr> 489 </table> 490</body> 491</html>`;await tt.integrations.Core.SendEmail({to:T.email,subject:"Your MyQura consultation slot is reserved â complete your payment",body:N,from_name:"MyQura"})},k=async T=>{const R=T.appointment_date?Kn(new Date(T.appointment_date),"EEEE, MMMM d, yyyy"):"",_=`<!DOCTYPE html> 492<html lang="en"> 493<head> 494 <meta charset="UTF-8"> 495 <meta name="viewport" content="width=device-width,initial-scale=1"> 496 <title>New Booking â MyQura Admin</title> 497</head> 498<body style="margin:0;padding:0;background:#eef1f8;font-family:'Helvetica Neue',Arial,sans-serif;color:#1e2d4e;"> 499 <table width="100%" cellpadding="0" cellspacing="0" style="background:#eef1f8;padding:48px 16px;"> 500 <tr><td align="center"> 501 <table width="600" cellpadding="0" cellspacing="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(26,43,107,0.12);"> 502 503 <!-- ââ HEADER ââ --> 504 <tr> 505 <td style="background:#0f1d52;padding:28px 44px;"> 506 <table width="100%" cellpadding="0" cellspacing="0"> 507 <tr> 508 <td> 509 <p style="margin:0;color:#7b9cf4;font-size:10px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;">Admin · Booking Notification</p> 510 <h1 style="margin:5px 0 0;color:#ffffff;font-size:22px;font-weight:800;letter-spacing:-0.5px;">New Consultation Request</h1> 511 </td> 512 <td align="right" valign="middle">
513 <span style="display:inline-block;background:rgba(255,255,255,0.12);color:#c5d4fb;font-size:13px;font-weight:700;padding:6px 16px;border-radius:50px;">MyQura</span> 514 </td> 515 </tr> 516 </table> 517 </td> 518 </tr> 519 520 <!-- ââ ALERT STRIP ââ --> 521 <tr> 522 <td style="background:#e8f0ff;border-left:5px solid #1A2B6B;padding:16px 44px;"> 523 <table width="100%" cellpadding="0" cellspacing="0"> 524 <tr> 525 <td> 526 <p style="margin:0;font-size:13px;color:#1A2B6B;font-weight:700;">ð ${R} at ${T.appointment_time}</p> 527 </td> 528 <td align="right"> 529 <span style="font-size:12px;color:#4a6fa8;font-weight:600;">Ref: ${T.booking_reference}</span> 530 </td> 531 </tr> 532 </table> 533 </td> 534 </tr> 535 536 <!-- ââ BODY ââ --> 537 <tr> 538 <td style="padding:36px 44px 8px;"> 539 540 <!-- ââ CLIENT INFO ââ --> 541 <p style="margin:0 0 12px;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#1A2B6B;">Client Information</p> 542 <table width="100%" cellpadding="0" cellspacing="0" style="border:1.5px solid #d0daff;border-radius:12px;overflow:hidden;margin-bottom:28px;"> 543 <tr style="background:#f5f7ff;"> 544 <td width="140" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;"> 545 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Full Name</p> 546 </td> 547 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 548 <p style="margin:0;font-size:14px;font-weight:700;color:#1A2B6B;">${T.full_name}</p> 549 </td> 550 </tr> 551 <tr> 552 <td width="140" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;background:#f5f7ff;"> 553 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Phone</p> 554 </td> 555 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 556 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.phone}</p> 557 </td> 558 </tr> 559 <tr style="background:#f5f7ff;"> 560 <td width="140" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;"> 561 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Email</p> 562 </td> 563 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 564 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.email}</p> 565 </td> 566 </tr> 567 <tr> 568 <td width="140" style="padding:12px 18px;border-right:1px solid #e2e8f5;background:#f5f7ff;"> 569 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Relationship</p> 570 </td> 571 <td style="padding:12px 18px;"> 572 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.relationship}</p> 573 </td> 574 </tr> 575 </table> 576 577 <!-- ââ PATIENT DETAILS ââ --> 578 <p style="margin:0 0 12px;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#1A2B6B;">Patient Details</p> 579 <table width="100%" cellpadding="0" cellspacing="0" style="border:1.5px solid #d0daff;border-radius:12px;overflow:hidden;margin-bottom:28px;"> 580 <tr style="background:#f5f7ff;"> 581 <td width="180" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;"> 582 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Age</p> 583 </td> 584 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 585 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.patient_age} years</p> 586 </td> 587 </tr> 588 <tr> 589 <td width="180" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;background:#f5f7ff;"> 590 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Primary Condition</p> 591 </td> 592 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 593 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.primary_condition}${T.condition_other?" â "+T.condition_other:""}</p> 594 </td> 595 </tr> 596 <tr style="background:#f5f7ff;"> 597 <td width="180" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;"> 598 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Care Arrangement</p> 599 </td> 600 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 601 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.care_arrangement}</p> 602 </td> 603 </tr> 604 <tr> 605 <td width="180" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;background:#f5f7ff;"> 606 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Urgency</p> 607 </td> 608 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 609 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.urgency}</p> 610 </td> 611 </tr> 612 <tr style="background:#f5f7ff;"> 613 <td width="180" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;"> 614 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Location</p> 615 </td> 616 <td style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"> 617 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.location}</p> 618 </td> 619 </tr> 620 <tr> 621 <td width="180" style="padding:12px 18px;border-right:1px solid #e2e8f5;background:#f5f7ff;"> 622 <p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">Referral Source</p> 623 </td> 624 <td style="padding:12px 18px;"> 625 <p style="margin:0;font-size:14px;font-weight:700;color:#1e2d4e;">${T.referral_source}</p> 626 </td> 627 </tr> 628 </table> 629 630 <!-- ââ CONSULTATION FOCUS ââ --> 631 <p style="margin:0 0 12px;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#1A2B6B;">Consultation Focus</p> 632 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f0f4ff;border:1.5px solid #c7d4f5;border-radius:12px;margin-bottom:36px;"> 633 <tr> 634 <td style="padding:18px 22px;border-left:5px solid #1A2B6B;border-radius:0 12px 12px 0;"> 635 <p style="margin:0;font-size:14px;color:#1e2d4e;line-height:1.8;font-style:italic;">"${T.consultation_focus}"</p> 636 </td> 637 </tr> 638 </table> 639 640 </td> 641 </tr> 642 643 <!-- ââ FOOTER ââ --> 644 <tr> 645 <td style="background:#0f1d52;padding:22px 44px;"> 646 <table width="100%" cellpadding="0" cellspacing="0"> 647 <tr> 648 <td> 649 <p style="margin:0;color:#ffffff;font-size:14px;font-weight:700;">MyQura</p> 650 <p style="margin:2px 0 0;color:#7b9cf4;font-size:11px;">Admin · Booking Notification System</p> 651 </td> 652 <td align="right" valign="middle"> 653 <p style="margin:0;color:#4d6099;font-size:11px;">© 2026 MyQura</p> 654 </td> 655 </tr> 656 </table> 657 </td> 658 </tr> 659 660 </table> 661 </td></tr> 662 </table> 663</body> 664</html>`;await tt.integrations.Core.SendEmail({to:"[email protected], [email protected]",subject:`[New Booking] ${T.full_name} · ${T.primary_condition} · ${R}`,body:_,from_name:"MyQura Bookings"})};return l?g.jsx(B8,{booking:l,onClose:()=>{u(null),t(null),r(""),a({})}}):g.jsxs("div",{className:"min-h-screen font-body",style:{background:"linear-gradient(160deg, #dbeafe 0%, #eff6ff 40%, #ffffff 100%)"},children:[g.jsx("div",{className:"absolute top-0 left-0 right-0 overflow-hidden h-48 pointer-events-none",children:g.jsxs("svg",{viewBox:"0 0 1440 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full",preserveAspectRatio:"none",children:[g.jsx("path",{d:"M0,60 C240,100 480,20 720,60 C960,100 1200,20 1440,60 L1440,0 L0,0 Z",fill:"rgba(147,197,253,0.25)"}),g.jsx("path",{d:"M0,80 C300,110 600,30 900,70 C1100,100 1300,40 1440,75 L1440,0 L0,0 Z",fill:"rgba(191,219,254,0.18)"})]})}),g.jsx("div",{className:"relative pt-12 pb-10 px-6",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsxs("div",{className:"inline-flex items-center gap-2 bg-white/60 backdrop-blur-sm border border-blue-200/60 rounded-full px-4 py-1.5 mb-5",children:[g.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),g.jsx("p",{className:"text-[#1A2B6B] font-body text-xs tracking-[0.2em] uppercase font-semibold",children:"MyQura · Specialist Care"})]}),g.jsx("h1",{className:"font-heading text-3xl md:text-5xl text-[#1A2B6B] leading-tight font-bold mb-3",children:"Book Your Consultation"}),g.jsx("p",{className:"font-body text-blue-600/70 text-base",children:"Appointments are available every Monday and Tuesday. Each session is 75 minutes · â¦75,000."})]})}),g.jsx("section",{className:"py-8 md:py-12 relative",children:g.jsx("div",{className:"max-w-5xl mx-auto px-6 md:px-12",children:g.jsx(tn.div,{initial:{opacity:0,y:16}
vendor: 22,554 bytes, line 664
664,animate:{opacity:1,y:0},transition:{duration:.5},children:g.jsxs("div",{className:"bg-white/70 backdrop-blur-md border border-blue-100/80 rounded-3xl shadow-xl shadow-blue-100/40 p-8",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[g.jsx("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full bg-[#1A2B6B] text-white text-xs font-bold font-body shadow-md",children:"1"}),g.jsx("h2",{className:"font-heading text-xl md:text-2xl font-bold text-[#1A2B6B]",children:"Choose your appointment"})]}),g.jsx(s5,{selectedDate:e,selectedTime:n,onDateSelect:S,onTimeSelect:E,bookedSlots:w})]})})})}),n&&g.jsx("section",{ref:p,id:"intake-form",className:"py-8 md:py-12 relative",children:g.jsx("div",{className:"max-w-3xl mx-auto px-6 md:px-12",children:g.jsx(tn.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5},children:g.jsxs("div",{className:"bg-white/70 backdrop-blur-md border border-blue-100/80 rounded-3xl shadow-xl shadow-blue-100/40 p-8",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[g.jsx("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full bg-[#1A2B6B] text-white text-xs font-bold font-body shadow-md",children:"2"}),g.jsx("h2",{className:"font-heading text-xl md:text-2xl font-bold text-[#1A2B6B]",children:"Tell us about your needs"})]}),g.jsx("p",{className:"font-body text-blue-600/70 text-sm mb-8 ml-11",children:"This helps our consultant prepare for your session, so every minute counts."}),g.jsx(F8,{formData:i,setFormData:a,onSubmit:b,isSubmitting:f})]})})})}),g.jsx("div",{className:"h-16"})]})}function U8(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Ml=e=>{const{present:t,children:n}=e,r=$8(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),a=nt(r.ref,W8(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:a}):null};Ml.displayName="Presence";function $8(e){const[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef("none"),l=e?"mounted":"unmounted",[u,f]=U8(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=cu(r.current);a.current=u==="mounted"?h:"none"},[u]),Ut(()=>{const h=r.current,p=i.current;if(p!==e){const w=a.current,S=cu(h);e?f("MOUNT"):S==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(p&&w!==S?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),Ut(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,m=S=>{const b=cu(r.current).includes(CSS.escape(S.animationName));if(S.target===t&&b&&(f("ANIMATION_END"),!i.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},w=S=>{S.target===t&&(a.current=cu(r.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:v.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function cu(e){return(e==null?void 0:e.animationName)||"none"}function W8(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ap="rovingFocusGroup.onEntryFocus",H8={bubbles:!1,cancelable:!0},Ol="RovingFocusGroup",[um,qP,q8]=bg(Ol),[K8,KP]=Li(Ol,[q8]),[Q8,Y8]=K8(Ol),QP=v.forwardRef((e,t)=>g.jsx(um.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(um.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(G8,{...e,ref:t})})}));QP.displayName=Ol;var G8=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...m}=e,w=v.useRef(null),S=nt(t,w),E=Sg(a),[b,C]=Wu({prop:l,defaultProp:u??null,onChange:f,caller:Ol}),[k,T]=v.useState(!1),R=yr(h),_=qP(n),N=v.useRef(!1),[L,B]=v.useState(0);return v.useEffect(()=>{const j=w.current;if(j)return j.addEventListener(ap,R),()=>j.removeEventListener(ap,R)},[R]),g.jsx(Q8,{scope:n,orientation:r,dir:E,loop:i,currentTabStopId:b,onItemFocus:v.useCallback(j=>C(j),[C]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>B(j=>j+1),[]),onFocusableItemRemove:v.useCallback(()=>B(j=>j-1),[]),children:g.jsx(qe.div,{tabIndex:k||L===0?-1:0,"data-orientation":r,...m,ref:S,style:{outline:"none",...e.style},onMouseDown:Pe(e.onMouseDown,()=>{N.current=!0}),onFocus:Pe(e.onFocus,j=>{const K=!N.current;if(j.target===j.currentTarget&&K&&!k){const G=new CustomEvent(ap,H8);if(j.currentTarget.dispatchEvent(G),!G.defaultPrevented){const J=_().filter(Z=>Z.focusable),se=J.find(Z=>Z.active),re=J.find(Z=>Z.id===b),be=[se,re,...J].filter(Boolean).map(Z=>Z.ref.current);XP(be,p)}}N.current=!1}),onBlur:Pe(e.onBlur,()=>T(!1))})})}),YP="RovingFocusGroupItem",GP=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:l,...u}=e,f=Ri(),h=a||f,p=Y8(YP,n),m=p.currentTabStopId===h,w=qP(n),{onFocusableItemAdd:S,onFocusableItemRemove:E,currentTabStopId:b}=p;return v.useEffect(()=>{if(r)return S(),()=>E()},[r,S,E]),g.jsx(um.ItemSlot,{scope:n,id:h,focusable:r,active:i,children:g.jsx(qe.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:Pe(e.onMouseDown,C=>{r?p.onItemFocus(h):C.preventDefault()}),onFocus:Pe(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Pe(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){p.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const k=Z8(C,p.orientation,p.dir);if(k!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let R=w().filter(_=>_.focusable).map(_=>_.ref.current);if(k==="last")R.reverse();else if(k==="prev"||k==="next"){k==="prev"&&R.reverse();const _=R.indexOf(C.currentTarget);R=p.loop?eV(R,_+1):R.slice(_+1)}setTimeout(()=>XP(R))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:b!=null}):l})})});GP.displayName=YP;var X8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function J8(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Z8(e,t,n){const r=J8(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return X8[r]}function XP(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function eV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tV=QP,nV=GP;function rV(e){const t=sV(e),n=v.forwardRef((r,i)=>{const{children:a,...l}=r,u=v.Children.toArray(a),f=u.find(iV);if(f){const h=f.props.children,p=u.map(m=>m===f?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:m);return g.jsx(t,{...l,ref:i,children:v.isValidElement(h)?v.cloneElement(h,void 0,p):null})}return g.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function sV(e){const t=v.forwardRef((n,r)=>{const{children:i,...a}=n;if(v.isValidElement(i)){const l=lV(i),u=aV(a,i.props);return i.type!==v.Fragment&&(u.ref=r?_s(r,l):l),v.cloneElement(i,u)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oV=Symbol("radix.slottable");function iV(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oV}function aV(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function lV(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dm=["Enter"," "],cV=["ArrowDown","PageUp","Home"],JP=["ArrowUp","PageDown","End"],uV=[...cV,...JP],dV={ltr:[...dm,"ArrowRight"],rtl:[...dm,"ArrowLeft"]},fV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jl="Menu",[ul,hV,pV]=bg(jl),[Po,ZP]=Li(jl,[pV,vd,KP]),Cd=vd(),ek=KP(),[mV,ko]=Po(jl),[gV,Dl]=Po(jl),tk=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:l=!0}=e,u=Cd(t),[f,h]=v.useState(null),p=v.useRef(!1),m=yr(a),w=Sg(i);return v.useEffect(()=>{const S=()=>{p.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>p.current=!1;return document.addEventListener("keydown",S,{capture:!0}),()=>{document.removeEventListener("keydown",S,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),g.jsx(YE,{...u,children:g.jsx(mV,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:h,children:g.jsx(gV,{scope:t,onClose:v.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:w,modal:l,children:r})})})};tk.displayName=jl;var yV="MenuAnchor",Ig=v.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cd(n);return g.jsx(GE,{...i,...r,ref:t})});Ig.displayName=yV;var Lg="MenuPortal",[vV,nk]=Po(Lg,{forceMount:void 0}),rk=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ko(Lg,t);return g.jsx(vV,{scope:t,forceMount:n,children:g.jsx(Ml,{present:n||a.open,children:g.jsx(Og,{asChild:!0,container:i,children:r})})})};rk.displayName=Lg;var An="MenuContent",[xV,Fg]=Po(An),sk=v.forwardRef((e,t)=>{const n=nk(An,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ko(An,e.__scopeMenu),l=Dl(An,e.__scopeMenu);return g.jsx(ul.Provider,{scope:e.__scopeMenu,children:g.jsx(Ml,{present:r||a.open,children:g.jsx(ul.Slot,{scope:e.__scopeMenu,children:l.modal?g.jsx(wV,{...i,ref:t}):g.jsx(bV,{...i,ref:t})})})})}),wV=v.forwardRef((e,t)=>{const n=ko(An,e.__scopeMenu),r=v.useRef(null),i=nt(t,r);return v.useEffect(()=>{const a=r.current;if(a)return tP(a)},[]),g.jsx(Bg,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Pe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),bV=v.forwardRef((e,t)=>{const n=ko(An,e.__scopeMenu);return g.jsx(Bg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),SV=rV("MenuContent.ScrollLock"),Bg=v.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:w,onDismiss:S,disableOutsideScroll:E,...b}=e,C=ko(An,n),k=Dl(An,n),T=Cd(n),R=ek(n),_=hV(n),[N,L]=v.useState(null),B=v.useRef(null),j=nt(t,B,C.onContentChange),K=v.useRef(0),G=v.useRef(""),J=v.useRef(0),se=v.useRef(null),re=v.useRef("right"),oe=v.useRef(0),be=E?jg:v.Fragment,Z=E?{as:SV,allowPinchZoom:!0}:void 0,ne=H=>{var te,he;const z=G.current+H,M=_().filter(ie=>!ie.disabled),q=document.activeElement,ge=(te=M.find(ie=>ie.ref.current===q))==null?void 0:te.textValue,de=M.map(ie=>ie.textValue),le=jV(de,z,ge),fe=(he=M.find(ie=>ie.textValue===le))==null?void 0:he.ref.current;(function ie(Te){G.current=Te,window.clearTimeout(K.current),Te!==""&&(K.current=window.setTimeout(()=>ie(""),1e3))})(z),fe&&setTimeout(()=>fe.focus())};v.useEffect(()=>()=>window.clearTimeout(K.current),[]),kE();const U=v.useCallback(H=>{var M,q;return re.current===((M=se.current)==null?void 0:M.side)&&IV(H,(q=se.current)==null?void 0:q.area)},[]);return g.jsx(xV,{scope:n,searchRef:G,onItemEnter:v.useCallback(H=>{U(H)&&H.preventDefault()},[U]),onItemLeave:v.useCallback(H=>{var z;U(H)||((z=B.current)==null||z.focus(),L(null))},[U]),onTriggerLeave:v.useCallback(H=>{U(H)&&H.preventDefault()},[U]),pointerGraceTimerRef:J,onPointerGraceIntentChange:v.useCallback(H=>{se.current=H},[]),children:g.jsx(be,{...Z,children:g.jsx(Eg,{asChild:!0,trapped:i,onMountAutoFocus:Pe(a,H=>{var z;H.preventDefault(),(z=B.current)==null||z.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:g.jsx(Cg,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:w,onDismiss:S,children:g.jsx(tV,{asChild:!0,...R,dir:k.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:L,onEntryFocus:Pe(f,H=>{k.isUsingKeyboardRef.current||H.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(XE,{role:"menu","aria-orientation":"vertical","data-state":wk(C.open),"data-radix-menu-content":"",dir:k.dir,...T,...b,ref:j,style:{outline:"none",...b.style},onKeyDown:Pe(b.onKeyDown,H=>{const M=H.target.closest("[data-radix-menu-content]")===H.currentTarget,q=H.ctrlKey||H.altKey||H.metaKey,ge=H.key.length===1;M&&(H.key==="Tab"&&H.preventDefault(),!q&&ge&&ne(H.key));const de=B.current;if(H.target!==de||!uV.includes(H.key))return;H.preventDefault();const fe=_().filter(te=>!te.disabled).map(te=>te.ref.current);JP.includes(H.key)&&fe.reverse(),MV(fe)}),onBlur:Pe(e.onBlur,H=>{H.currentTarget.contains(H.target)||(window.clearTimeout(K.current),G.current="")}),onPointerMove:Pe(e.onPointerMove,dl(H=>{const z=H.target,M=oe.current!==H.clientX;if(H.currentTarget.contains(z)&&M){const q=H.clientX>oe.current?"right":"left";re.current=q,oe.current=H.clientX}}))})})})})})})});sk.displayName=An;var CV="MenuGroup",Vg=v.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx(qe.div,{role:"group",...r,ref:t})});Vg.displayName=CV;var EV="MenuLabel",ok=v.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx(qe.div,{...r,ref:t})});ok.displayName=EV;var qu="MenuItem",Vb="menu.itemSelect",Ed=v.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=v.useRef(null),l=Dl(qu,e.__scopeMenu),u=Fg(qu,e.__scopeMenu),f=nt(t,a),h=v.useRef(!1),p=()=>{const m=a.current;if(!n&&m){const w=new CustomEvent(Vb,{bubbles:!0,cancelable:!0});m.addEventListener(Vb,S=>r==null?void 0:r(S),{once:!0}),CE(m,w),w.defaultPrevented?h.current=!1:l.onClose()}};return g.jsx(ik,{...i,ref:f,disabled:n,onClick:Pe(e.onClick,p),onPointerDown:m=>{var w;(w=e.onPointerDown)==null||w.call(e,m),h.current=!0},onPointerUp:Pe(e.onPointerUp,m=>{var w;h.current||(w=m.currentTarget)==null||w.click()}),onKeyDown:Pe(e.onKeyDown,m=>{const w=u.searchRef.current!=="";n||w&&m.key===" "||dm.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Ed.displayName=qu;var ik=v.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,l=Fg(qu,n),u=ek(n),f=v.useRef(null),h=nt(t,f),[p,m]=v.useState(!1),[w,S]=v.useState("");return v.useEffect(()=>{const E=f.current;E&&S((E.textContent??"").trim())},[a.children]),g.jsx(ul.ItemSlot,{scope:n,disabled:r,textValue:i??w,children:g.jsx(nV,{asChild:!0,...u,focusable:!r,children:g.jsx(qe.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:h,onPointerMove:Pe(e.onPointerMove,dl(E=>{r?l.onItemLeave(E):(l.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Pe(e.onPointerLeave,dl(E=>l.onItemLeave(E))),onFocus:Pe(e.onFocus,()=>m(!0)),onBlur:Pe(e.onBlur,()=>m(!1))})})})}),PV="MenuCheckboxItem",ak=v.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return g.jsx(fk,{scope:e.__scopeMenu,checked:n,children:g.jsx(Ed,{role:"menuitemcheckbox","aria-checked":Ku(n)?"mixed":n,...i,ref:t,"data-state":Ug(n),onSelect:Pe(i.onSelect,()=>r==null?void 0:r(Ku(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ak.displayName=PV;var lk="MenuRadioGroup",[kV,TV]=Po(lk,{value:void 0,onValueChange:()=>{}}),ck=v.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,a=yr(r);return g.jsx(kV,{scope:e.__scopeMenu,value:n,onValueChange:a,children:g.jsx(Vg,{...i,ref:t})})});ck.displayName=lk;var uk="MenuRadioItem",dk=v.forwardRef((e,t)=>{const{value:n,...r}=e,i=TV(uk,e.__scopeMenu),a=n===i.value;return g.jsx(fk,{scope:e.__scopeMenu,checked:a,children:g.jsx(Ed,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Ug(a),onSelect:Pe(r.onSelect,()=>{var l;return(l=i.onValueChange)==null?void 0:l.call(i,n)},{checkForDefaultPrevented:!1})})})});dk.displayName=uk;var zg="MenuItemIndicator",[fk,RV]=Po(zg,{checked:!1}),hk=v.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=RV(zg,n);return g.jsx(Ml,{present:r||Ku(a.checked)||a.checked===!0,children:g.jsx(qe.span,{...i,ref:t,"data-state":Ug(a.checked)})})});hk.displayName=zg;var _V="MenuSeparator",pk=v.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx(qe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});pk.displayName=_V;var AV="MenuArrow",mk=v.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cd(n);return g.jsx(JE,{...i,...r,ref:t})});mk.displayName=AV;var NV="MenuSub",[CU,gk]=Po(NV),Ha="MenuSubTrigger",yk=v.forwardRef((e,t)=>{const n=ko(Ha,e.__scopeMenu),r=Dl(Ha,e.__scopeMenu),i=gk(Ha,e.__scopeMenu),a=Fg(Ha,e.__scopeMenu),l=v.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=a,h={__scopeMenu:e.__scopeMenu},p=v.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return v.useEffect(()=>p,[p]),v.useEffect(()=>{const m=u.current;return()=>{window.clearTimeout(m),f(null)}},[u,f]),g.jsx(Ig,{asChild:!0,...h,children:g.jsx(ik,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":wk(n.open),...e,ref:_s(t,i.onTriggerChange),onClick:m=>{var w;(w=e.onClick)==null||w.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Pe(e.onPointerMove,dl(m=>{a.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(a.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:Pe(e.onPointerLeave,dl(m=>{var S,E;p();const w=(S=n.content)==null?void 0:S.getBoundingClientRect();if(w){const b=(E=n.content)==null?void 0:E.dataset.side,C=b==="right",k=C?-5:5,T=w[C?"left":"right"],R=w[C?"right":"left"];a.onPointerGraceIntentChange({area:[{x:m.clientX+k,y:m.clientY},{x:T,y:w.top},{x:R,y:w.top},{x:R,y:w.bottom},{x:T,y:w.bottom}],side:b}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(m),m.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Pe(e.onKeyDown,m=>{var S;const w=a.searchRef.current!=="";e.disabled||w&&m.key===" "||dV[r.dir].includes(m.key)&&(n.onOpenChange(!0),(S=n.content)==null||S.focus(),m.preventDefault())})})})});yk.displayName=Ha;var vk="MenuSubContent",xk=v.forwardRef((e,t)=>{const n=nk(An,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ko(An,e.__scopeMenu),l=Dl(An,e.__scopeMenu),u=gk(vk,e.__scopeMenu),f=v.useRef(null),h=nt(t,f);return g.jsx(ul.Provider,{scope:e.__scopeMenu,children:g.jsx(Ml,{present:r||a.open,children:g.jsx(ul.Slot,{scope:e.__scopeMenu,children:g.jsx(Bg,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:h,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;l.isUsingKeyboardRef.current&&((m=f.current)==null||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:Pe(e.onFocusOutside,p=>{p.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Pe(e.onEscapeKeyDown,p=>{l.onClose(),p.preventDefault()}),onKeyDown:Pe(e.onKeyDown,p=>{var S;const m=p.currentTarget.contains(p.target),w=fV[l.dir].includes(p.key);m&&w&&(a.onOpenChange(!1),(S=u.trigger)==null||S.focus(),p.preventDefault())})})})})})});xk.displayName=vk;function wk(e){return e?"open":"closed"}function Ku(e){return e==="indeterminate"}function Ug(e){return Ku(e)?"indeterminate":e?"checked":"unchecked"}function MV(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function OV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function jV(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=OV(e,Math.max(a,0));i.length===1&&(l=l.filter(h=>h!==n));const f=l.find(h=>h.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function DV(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,l=t.length-1;a<t.length;l=a++){const u=t[a],f=t[l],h=u.x,p=u.y,m=f.x,w=f.y;p>r!=w>r&&n<(m-h)*(r-p)/(w-p)+h&&(i=!i)}return i}function IV(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return DV(n,t)}function dl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var LV=tk,FV=Ig,BV=rk,VV=sk,zV=Vg,UV=ok,$V=Ed,WV=ak,HV=ck,qV=dk,KV=hk,QV=pk,YV=mk,GV=yk,XV=xk,Pd="DropdownMenu",[JV]=Li(Pd,[ZP]),Kt=ZP(),[ZV,bk]=JV(Pd),Sk=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,f=Kt(t),h=v.useRef(null),[p,m]=Wu({prop:i,defaultProp:a??!1,onChange:l,caller:Pd});return g.jsx(ZV,{scope:t,triggerId:Ri(),triggerRef:h,contentId:Ri(),open:p,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(w=>!w),[m]),modal:u,children:g.jsx(LV,{...f,open:p,onOpenChange:m,dir:r,modal:u,children:n})})};Sk.displayName=Pd;var Ck="DropdownMenuTrigger",Ek=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=bk(Ck,n),l=Kt(n);return g.jsx(FV,{asChild:!0,...l,children:g.jsx(qe.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:_s(t,a.triggerRef),onPointerDown:Pe(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(a.onOpenToggle(),a.open||u.preventDefault())}),onKeyDown:Pe(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&a.onOpenToggle(),u.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});Ek.displayName=Ck;var ez="DropdownMenuPortal",Pk=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Kt(t);return g.jsx(BV,{...r,...n})};Pk.displayName=ez;var kk="DropdownMenuContent",Tk=v.forwardRef((e,t)=>
664{const{__scopeDropdownMenu:n,...r}=e,i=bk(kk,n),a=Kt(n),l=v.useRef(!1);return g.jsx(VV,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Pe(e.onCloseAutoFocus,u=>{var f;l.current||(f=i.triggerRef.current)==null||f.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:Pe(e.onInteractOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;(!i.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Tk.displayName=kk;var tz="DropdownMenuGroup",nz=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(zV,{...i,...r,ref:t})});nz.displayName=tz;var rz="DropdownMenuLabel",Rk=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(UV,{...i,...r,ref:t})});Rk.displayName=rz;var sz="DropdownMenuItem",_k=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx($V,{...i,...r,ref:t})});_k.displayName=sz;var oz="DropdownMenuCheckboxItem",Ak=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(WV,{...i,...r,ref:t})});Ak.displayName=oz;var iz="DropdownMenuRadioGroup",az=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(HV,{...i,...r,ref:t})});az.displayName=iz;var lz="DropdownMenuRadioItem",Nk=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(qV,{...i,...r,ref:t})});Nk.displayName=lz;var cz="DropdownMenuItemIndicator",Mk=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(KV,{...i,...r,ref:t})});Mk.displayName=cz;var uz="DropdownMenuSeparator",Ok=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(QV,{...i,...r,ref:t})});Ok.displayName=uz;var dz="DropdownMenuArrow",fz=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(YV,{...i,...r,ref:t})});fz.displayName=dz;var hz="DropdownMenuSubTrigger",jk=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(GV,{...i,...r,ref:t})});jk.displayName=hz;var pz="DropdownMenuSubContent",Dk=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Kt(n);return g.jsx(XV,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Dk.displayName=pz;var mz=Sk,gz=Ek,yz=Pk,Ik=Tk,Lk=Rk,Fk=_k,Bk=Ak,Vk=Nk,zk=Mk,Uk=Ok,$k=jk,Wk=Dk;const vz=mz,xz=gz,wz=v.forwardRef(({className:e,inset:t,children:n,...r},i)=>g.jsxs($k,{ref:i,className:He("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,g.jsx(l1,{className:"ml-auto"})]}));wz.displayName=$k.displayName;const bz=v.forwardRef(({className:e,...t},n)=>g.jsx(Wk,{ref:n,className:He("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));bz.displayName=Wk.displayName;const Hk=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>g.jsx(yz,{children:g.jsx(Ik,{ref:r,sideOffset:t,className:He("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
664de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Hk.displayName=Ik.displayName;const ku=v.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(Fk,{ref:r,className:He("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));ku.displayName=Fk.displayName;const Sz=v.forwardRef(({className:e,children:t,checked:n,...r},i)=>g.jsxs(Bk,{ref:i,className:He("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(zk,{children:g.jsx(a1,{className:"h-4 w-4"})})}),t]}));Sz.displayName=Bk.displayName;const Cz=v.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Vk,{ref:r,className:He("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(zk,{children:g.jsx(j_,{className:"h-2 w-2 fill-current"})})}),t]}));Cz.displayName=Vk.displayName;const qk=v.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(Lk,{ref:r,className:He("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));qk.displayName=Lk.displayName;const Kk=v.forwardRef(({className:e,...t},n)=>g.jsx(Uk,{ref:n,className:He("-mx-1 my-1 h-px bg-muted",e),...t}));Kk.displayName=Uk.displayName;const Qk="MyQura Care Hub",Yk="Lagos, Nigeria",fl="+234 800 000 0000",Gk="[email protected]",Ez="myqura.org",Pz="[email protected], [email protected]";function kd(e){return e.appointment_date?Kn(new Date(e.appointment_date),"EEEE, MMMM d, yyyy"):""}async function kz(e){const t=(e.full_name||"").split(" ")[0],n=kd(e),r=`<!DOCTYPE html> 665<html lang="en"> 666<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MyQura â Consultation Confirmed</title></head> 667<body style="margin:0;padding:0;background:#eef1f8;font-family:'Helvetica Neue',Arial,sans-serif;color:#1e2d4e;"> 668 <table width="100%" cellpadding="0" cellspacing="0" style="background:#eef1f8;padding:48px 16px;"> 669 <tr><td align="center"> 670 <table width="600" cellpadding="0" cellspacing="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(26,43,107,0.12);"> 671 <tr><td style="background:#1A2B6B;padding:36px 44px 28px;"> 672 <p style="margin:0;color:#7b9cf4;font-size:10px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;">Specialist Care</p> 673 <h1 style="margin:6px 0 0;color:#ffffff;font-size:32px;font-weight:800;letter-spacing:-1px;">MyQura</h1> 674 </td></tr> 675 <tr><td style="background:#e8f5e9;border-left:5px solid #2e7d32;padding:16px 44px;"> 676 <p style="margin:0;font-size:14px;font-weight:700;color:#2e7d32;">â Your consultation is confirmed</p> 677 </td></tr> 678 <tr><td style="padding:36px 44px 0;"> 679 <p style="margin:0 0 6px;font-size:22px;font-weight:700;color:#1A2B6B;">Dear ${t},</p> 680 <p style="margin:12px 0 0;font-size:15px;color:#4a5568;line-height:1.75;">Thank you for booking a Specialist Care Consultation with MyQura. Your appointment is confirmed for the details below.</p> 681 </td></tr> 682 <tr><td style="padding:24px 44px 0;"> 683 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f5f7ff;border:1.5px solid #d0daff;border-radius:14px;overflow:hidden;"> 684 <tr><td style="background:#1A2B6B;padding:14px 24px;"><p style="margin:0;color:#a8bdf8;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;">Appointment Details</p></td></tr> 685 <tr><td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð Date</span><br><span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">${n}</span></td></tr> 686 <tr><td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">â° Time</span><br><span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">
686${e.appointment_time} · 75-minute session</span></td></tr> 687 <tr><td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð Location</span><br><span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">${Qk}, ${Yk}</span></td></tr> 688 <tr><td style="padding:14px 24px;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð³ Investment</span><br><span style="font-size:20px;font-weight:800;color:#2e7d32;margin-top:4px;display:block;">â¦75,000 (paid)</span></td></tr> 689 </table> 690 </td></tr> 691 <tr><td style="padding:28px 44px 0;"> 692 <p style="margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#1A2B6B;">To make the most of our session, please bring:</p> 693 <table width="100%" cellpadding="0" cellspacing="0"> 694 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">ð Recent medical reports, discharge summaries or specialist letters</span></td></tr> 695 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">ð A current medication list with dosages</span></td></tr> 696 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">âï¸ Your written questions and concerns</span></td></tr> 697 <tr><td style="padding:8px 0;"><span style="font-size:14px;color:#4a5568;">ð¨âð©âð§ The key decision-makers in your family, where possible</span></td></tr> 698 </table> 699 </td></tr> 700 <tr><td style="padding:24px 44px 36px;"> 701 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f9fafb;border-left:4px solid #1A2B6B;border-radius:0 10px 10px 0;"> 702 <tr><td style="padding:16px 20px;"> 703 <p style="margin:0 0 6px;font-size:13px;color:#1A2B6B;font-weight:700;">Your personalised care plan</p> 704 <p style="margin:0;font-size:13px;color:#4a5568;line-height:1.7;">You will receive your personalised written care plan summary within <strong>48 hours</strong> of our session. If you need to reschedule, please contact us at least <strong>24 hours</strong> in advance on <strong>${fl}</strong> or reply to this email.</p> 705 </td></tr> 706 </table> 707 </td></tr> 708 <tr><td style="padding:0 44px 36px;"> 709 <p style="font-size:15px;color:#4a5568;line-height:1.8;">We look forward to supporting you and your family.<br><br>Warm regards,<br><strong style="color:#1A2B6B;">The MyQura Team</strong></p> 710 <p style="font-size:13px;color:#8896b3;">${fl} | ${Gk} | ${Ez}</p> 711 </td></tr> 712 <tr><td style="background:#0f1d52;padding:22px 44px;"> 713 <table width="100%" cellpadding="0" cellspacing="0"><tr> 714 <td><p style="margin:0;color:#ffffff;font-size:14px;font-weight:700;">MyQura</p><p style="margin:2px 0 0;color:#7b9cf4;font-size:11px;">Specialist Care Consultation</p></td> 715 <td align="right"><a href="https://myqura.org" style="color:#7b9cf4;font-size:12px;text-decoration:none;">myqura.org</a></td> 716 </tr></table> 717 </td></tr> 718 </table> 719 </td></tr> 720 </table> 721</body> 722</html>`;await tt.integrations.Core.SendEmail({to:e.email,subject:"Your MyQura Specialist Care Consultation is confirmed",body:r,from_name:"MyQura"})}async function Tz(e){const t=kd(e),n=`<!DOCTYPE html> 723<html lang="en"> 724<head><meta charset="UTF-8"><title>New Confirmed Booking â MyQura</title></head> 725<body style="margin:0;padding:0;background:#eef1f8;font-family:'Helvetica Neue',Arial,sans-serif;color:#1e2d4e;"> 726 <table width="100%" cellpadding="0" cellspacing="0" style="background:#eef1f8;padding:48px 16px;"> 727 <tr><td align="center"> 728 <table width="600" cellpadding="0" cellspacing="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(26,43,107,0.12);"> 729 <tr><td style="background:#0f1d52;padding:28px 44px;"> 730 <p style="margin:0;color:#7b9cf4;font-size:10px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;">Admin · Confirmed Booking</p> 731 <h1 style="margin:5px 0 0;color:#ffffff;font-size:22px;font-weight:800;">New Consultation Booking</h1> 732 </td></tr> 733 <tr><td style="background:#e8f5e9;border-left:5px solid #2e7d32;padding:16px 44px;"> 734 <p style="margin:0;font-size:13px;color:#2e7d32;font-weight:700;">
734â Payment confirmed â â¦75,000</p> 735 <p style="margin:4px 0 0;font-size:12px;color:#4a7c59;">ð ${t} at ${e.appointment_time} · Ref: ${e.booking_reference}</p> 736 </td></tr> 737 <tr><td style="padding:28px 44px 8px;"> 738 <table width="100%" cellpadding="0" cellspacing="0" style="border:1.5px solid #d0daff;border-radius:12px;overflow:hidden;margin-bottom:20px;"> 739 <tr style="background:#f5f7ff;"><td colspan="2" style="padding:12px 18px;border-bottom:1px solid #e2e8f5;"><p style="margin:0;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#1A2B6B;">Booking Details</p></td></tr> 740 ${[["Booking Ref",`<span style="font-family:monospace;font-weight:700;">${e.booking_reference}</span>`],["Client Name",e.full_name],["Phone",e.phone],["Email",e.email],["Relationship",e.relationship],["Patient Age",`${e.patient_age} years`],["Primary Condition",`${e.primary_condition}${e.condition_other?` â ${e.condition_other}`:""}`],["Care Arrangement",e.care_arrangement],["Urgency",e.urgency],["Location",e.location],["Referral Source",e.referral_source],["Appointment",`${t} at ${e.appointment_time}`],["Payment","â¦75,000 confirmed"]].map(([r,i],a)=>` 741 <tr style="${a%2===0?"background:#ffffff;":"background:#f5f7ff;"}"> 742 <td width="160" style="padding:11px 18px;border-bottom:1px solid #e2e8f5;border-right:1px solid #e2e8f5;"><p style="margin:0;font-size:11px;color:#8896b3;font-weight:600;text-transform:uppercase;letter-spacing:1px;">${r}</p></td> 743 <td style="padding:11px 18px;border-bottom:1px solid #e2e8f5;"><p style="margin:0;font-size:14px;font-weight:600;color:#1e2d4e;">${i}</p></td> 744 </tr>`).join("")} 745 </table> 746 <p style="margin:0 0 10px;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#1A2B6B;">Consultation Focus</p> 747 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f0f4ff;border:1.5px solid #c7d4f5;border-radius:12px;margin-bottom:32px;"> 748 <tr><td style="padding:18px 22px;border-left:5px solid #1A2B6B;border-radius:0 12px 12px 0;"> 749 <p style="margin:0;font-size:14px;color:#1e2d4e;line-height:1.8;font-style:italic;">"${e.consultation_focus}"</p> 750 </td></tr> 751 </table> 752 </td></tr> 753 <tr><td style="background:#0f1d52;padding:20px 44px;"> 754 <p style="margin:0;color:#ffffff;font-size:13px;font-weight:700;">MyQura · Admin Notification System</p> 755 </td></tr> 756 </table> 757 </td></tr> 758 </table> 759</body> 760</html>`;await tt.integrations.Core.SendEmail({to:Pz,subject:`New consultation booking: ${e.primary_condition} on ${t}`,body:n,from_name:"MyQura Bookings"})}async function Rz(e){const t=(e.full_name||"").split(" ")[0],n=kd(e),r=`<!DOCTYPE html> 761<html lang="en"> 762<head><meta charset="UTF-8"><title>MyQura â Reminder</title></head> 763<body style="margin:0;padding:0;background:#eef1f8;font-family:'Helvetica Neue',Arial,sans-serif;color:#1e2d4e;"> 764 <table width="100%" cellpadding="0" cellspacing="0" style="background:#eef1f8;padding:48px 16px;"> 765 <tr><td align="center"> 766 <table width="600" cellpadding="0" cellspacing="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(26,43,107,0.12);"> 767 <tr><td style="background:#1A2B6B;padding:36px 44px 28px;"> 768 <p style="margin:0;color:#7b9cf4;font-size:10px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;">Specialist Care</p> 769 <h1 style="margin:6px 0 0;color:#ffffff;font-size:32px;font-weight:800;">MyQura</h1> 770 </td></tr> 771 <tr><td style="background:#e8f0ff;border-left:5px solid #1A2B6B;padding:16px 44px;"> 772 <p style="margin:0;font-size:14px;font-weight:700;color:#1A2B6B;">ð Your consultation is tomorrow</p> 773 </td></tr> 774 <tr><td style="padding:36px 44px 0;"> 775 <p style="margin:0 0 6px;font-size:22px;font-weight:700;color:#1A2B6B;">Dear ${t},</p> 776 <p style="margin:12px 0 0;font-size:15px;color:#4a5568;line-height:1.75;">This is a friendly reminder of your MyQura Specialist Care Consultation tomorrow.</p> 777 </td></tr> 778 <tr><td style="padding:24px 44px 0;"> 779 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f5f7ff;border:1.5px solid #d0daff;border-radius:14px;overflow:hidden;"> 780 <tr><td style="background:#1A2B6B;padding:14px 24px;"><p style="margin:0;color:#a8bdf8;font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;">Appointment Details</p></td></tr> 781 <tr><td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð Date</span><br><span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">${n}</span></td></tr> 782 <tr><td style="padding:14px 24px;border-bottom:1px solid #e2e8f5;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">â° Time</span><br><span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">
782${e.appointment_time}</span></td></tr> 783 <tr><td style="padding:14px 24px;"><span style="font-size:11px;color:#8896b3;text-transform:uppercase;letter-spacing:1.2px;font-weight:600;">ð Location</span><br><span style="font-size:16px;font-weight:700;color:#1A2B6B;margin-top:4px;display:block;">${Qk}, ${Yk}</span></td></tr> 784 </table> 785 </td></tr> 786 <tr><td style="padding:24px 44px 0;"> 787 <p style="margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#1A2B6B;">Quick checklist:</p> 788 <table width="100%" cellpadding="0" cellspacing="0"> 789 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">ð Recent medical reports</span></td></tr> 790 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">ð Current medication list</span></td></tr> 791 <tr><td style="padding:8px 0;"><span style="font-size:14px;color:#4a5568;">âï¸ Written questions or concerns</span></td></tr> 792 </table> 793 </td></tr> 794 <tr><td style="padding:24px 44px 36px;"> 795 <p style="font-size:15px;color:#4a5568;line-height:1.8;">If anything has changed, please let us know as soon as possible on <strong>${fl}</strong>.<br><br>We look forward to seeing you tomorrow.<br><br><strong style="color:#1A2B6B;">The MyQura Team</strong></p> 796 </td></tr> 797 <tr><td style="background:#0f1d52;padding:22px 44px;"> 798 <table width="100%" cellpadding="0" cellspacing="0"><tr> 799 <td><p style="margin:0;color:#ffffff;font-size:14px;font-weight:700;">MyQura</p><p style="margin:2px 0 0;color:#7b9cf4;font-size:11px;">Specialist Care Consultation</p></td> 800 <td align="right"><a href="https://myqura.org" style="color:#7b9cf4;font-size:12px;text-decoration:none;">myqura.org</a></td> 801 </tr></table> 802 </td></tr> 803 </table> 804 </td></tr> 805 </table> 806</body> 807</html>`;await tt.integrations.Core.SendEmail({to:e.email,subject:"Reminder: Your MyQura consultation tomorrow",body:r,from_name:"MyQura"})}async function _z(e){const t=(e.full_name||"").split(" ")[0],n=kd(e),r=`<!DOCTYPE html> 808<html lang="en"> 809<head><meta charset="UTF-8"><title>MyQura â Care Plan Summary</title></head> 810<body style="margin:0;padding:0;background:#eef1f8;font-family:'Helvetica Neue',Arial,sans-serif;color:#1e2d4e;"> 811 <table width="100%" cellpadding="0" cellspacing="0" style="background:#eef1f8;padding:48px 16px;"> 812 <tr><td align="center"> 813 <table width="600" cellpadding="0" cellspacing="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(26,43,107,0.12);"> 814 <tr><td style="background:#1A2B6B;padding:36px 44px 28px;"> 815 <p style="margin:0;color:#7b9cf4;font-size:10px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;">Specialist Care</p> 816 <h1 style="margin:6px 0 0;color:#ffffff;font-size:32px;font-weight:800;">MyQura</h1> 817 </td></tr> 818 <tr><td style="padding:36px 44px 0;"> 819 <p style="margin:0 0 6px;font-size:22px;font-weight:700;color:#1A2B6B;">Dear ${t},</p> 820 <p style="margin:12px 0 0;font-size:15px;color:#4a5568;line-height:1.75;">Thank you for trusting MyQura with your family's care planning. Please find attached your personalised care plan summary from our consultation on <strong>${n}</strong>.</p> 821 </td></tr> 822 <tr><td style="padding:24px 44px 0;"> 823 <p style="margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#1A2B6B;">The summary covers:</p> 824 <table width="100%" cellpadding="0" cellspacing="0"> 825 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">⢠Your loved one's current care needs and clinical priorities</span></td></tr> 826 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">⢠The recommended care arrangement (caregiver type, shift pattern, and oversight level)</span></td></tr> 827 <tr><td style="padding:8px 0;border-bottom:1px dashed #e2e8f5;"><span style="font-size:14px;color:#4a5568;">⢠Specific considerations for <strong>${e.primary_condition}</strong></span></td></tr> 828 <tr><td style="padding:8px 0;"><span style="font-size:14px;color:#4a5568;">⢠Next steps if you wish to proceed with MyQura caregiver placement</span></td></tr> 829 </table> 830 </td></tr> 831 <tr><td style="padding:24px 44px 0;"> 832 <table width="100%" cellpadding="0" cellspacing="0" style="background:#f5f7ff;border:1.5px solid #d0daff;border-radius:14px;"> 833 <tr><td style="padding:20px 24px;"> 834 <p style="margin:0 0 10px;font-size:13px;font-weight:700;color:#1A2B6B;">ð± The MyQura Client App</p> 835 <p style="font-size:13px;color:#4a5568;line-height:1.75;margin:0 0 10px;">If you would like to engage MyQura caregivers and manage your care plan day to day, the MyQura Client App lets you:</p> 836 <table cellpadding="0" cellspacing="0"> 837 <tr><td style="padding:3px 0;font-size:13px;color:#4a5568;">⢠Book verified caregivers</td></tr> 838 <tr><td style="padding:3px 0;font-size:13px;color:#4a5568;">⢠Message your assigned caregiver</td></tr> 839 <tr><td style="padding:3px 0;font-size:13px;color:#4a5568;">⢠Track care delivery in real time</td></tr> 840 <tr><td style="padding:3px 0;font-size:13px;color:#4a5568;">⢠Access subscription packages</td></tr> 841 </table> 842 <p style="font-size:12px;color:#8896b3;margin:12px 0 0;">Available on the App Store and Google Play. Note: the app is for caregiver engagement and ongoing care management. Further specialist consultations are booked through our consultation page on the website.</p> 843 </td></tr> 844 </table> 845 </td></tr> 846 <tr><td style="padding:24px 44px 36px;"> 847 <p style="font-size:15px;color:#4a5568;line-height:1.8;">If you have any questions on the plan, please reply to this email or call us on <strong>${fl}</strong>.<br><br>
847We are here to support you and your family every step of the way.<br><br>Warm regards,<br><strong style="color:#1A2B6B;">[Consultant Name]</strong><br><span style="color:#8896b3;font-size:13px;">Nurse Consultant, MyQura<br>${fl} | ${Gk}</span></p> 848 </td></tr> 849 <tr><td style="background:#0f1d52;padding:22px 44px;"> 850 <table width="100%" cellpadding="0" cellspacing="0"><tr> 851 <td><p style="margin:0;color:#ffffff;font-size:14px;font-weight:700;">MyQura</p><p style="margin:2px 0 0;color:#7b9cf4;font-size:11px;">Specialist Care Consultation</p></td> 852 <td align="right"><a href="https://myqura.org" style="color:#7b9cf4;font-size:12px;text-decoration:none;">myqura.org</a></td> 853 </tr></table> 854 </td></tr> 855 </table> 856 </td></tr> 857 </table> 858</body> 859</html>`;await tt.integrations.Core.SendEmail({to:e.email,subject:"Your MyQura care plan summary",body:r,from_name:"MyQura"})}function Az({booking:e}){const[t,n]=v.useState(null),r=async(a,l,u)=>{n(a),await l(e),hd.success(`${u} sent to ${e.email}`),n(null)},i=t!==null;return g.jsxs(vz,{children:[g.jsx(xz,{asChild:!0,children:g.jsxs(kt,{size:"sm",variant:"outline",className:"text-xs h-8 px-2.5 rounded-lg border-blue-200 text-blue-700 hover:bg-blue-50 gap-1",disabled:i,children:[i?g.jsx(Si,{className:"w-3 h-3 animate-spin"}):g.jsx(go,{className:"w-3 h-3"}),"Emails",g.jsx(Gu,{className:"w-3 h-3"})]})}),g.jsxs(Hk,{align:"end",className:"w-56",children:[g.jsx(qk,{className:"text-xs text-muted-foreground",children:"Send email to client"}),g.jsx(Kk,{}),g.jsxs(ku,{onClick:()=>r("confirm",async a=>{await kz(a),await Tz(a)},"Confirmation + admin notification"),className:"gap-2 cursor-pointer",children:[g.jsx(Xu,{className:"w-4 h-4 text-emerald-600"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-xs font-semibold",children:"Booking Confirmation"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"Also notifies admin"})]})]}),g.jsxs(ku,{onClick:()=>r("reminder",Rz,"24hr Reminder"),className:"gap-2 cursor-pointer",children:[g.jsx(b_,{className:"w-4 h-4 text-blue-500"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-xs font-semibold",children:"24hr Reminder"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"Send day-before reminder"})]})]}),g.jsxs(ku,{onClick:()=>r("followup",_z,"Care Plan Follow-up"),className:"gap-2 cursor-pointer",children:[g.jsx(d1,{className:"w-4 h-4 text-purple-500"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-xs font-semibold",children:"Care Plan Follow-up"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"Post-consultation template"})]})]})]})]})}const Ai={pending_payment:{label:"Pending Payment",color:"bg-amber-100 text-amber-800 border-amber-200",dot:"bg-amber-500",icon:Ju},confirmed:{label:"Confirmed",color:"bg-emerald-100 text-emerald-800 border-emerald-200",dot:"bg-emerald-500",icon:Xu},cancelled:{label:"Cancelled",color:"bg-red-100 text-red-800 border-red-200",dot:"bg-red-500",icon:u1},completed:{label:"Completed",color:"bg-blue-100 text-blue-800 border-blue-200",dot:"bg-blue-500",icon:i1}};function Nz({status:e}){const t=Ai[e]||Ai.pending_payment,n=t.icon;return g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold border ${t.color}`,children:[g.jsx(n,{className:"w-3 h-3"}),t.label]})}function uu({label:e,value:t,color:n,bgColor:r,icon:i,active:a,onClick:l}){return g.jsx("div",{onClick:l,className:`relative overflow-hidden rounded-2xl p-5 cursor-pointer transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 border-2 ${a?"border-[#1A2B6B] shadow-lg shadow-blue-100":"border-transparent"} ${r}`,children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-2",children:e}),g.jsx("p",{className:`text-4xl font-black ${n}`,children:t})]}),g.jsx("div",{className:`p-3 rounded-xl ${n} bg-white/60`,children:g.jsx(i,{className:"w-5 h-5"})})]})})}function Mz({booking:e,onStatusChange:t,updating:n}){const[r,i]=v.useState(!1),a=e.appointment_date?Kn(new Date(e.appointment_date),"MMM d, yyyy"):"â";
859return Ai[e.status]||Ai.pending_payment,g.jsxs(g.Fragment,{children:[g.jsxs("tr",{className:`border-b border-border transition-colors hover:bg-slate-50/80 ${r?"bg-blue-50/30":""}`,children:[g.jsx("td",{className:"px-5 py-4",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-[#1A2B6B] to-blue-400 flex items-center justify-center text-white font-bold text-sm flex-shrink-0",children:(e.full_name||"?")[0].toUpperCase()}),g.jsxs("div",{children:[g.jsx("div",{className:"font-semibold text-sm text-foreground",children:e.full_name}),g.jsx("div",{className:"text-xs text-muted-foreground",children:e.email})]})]})}),g.jsx("td",{className:"px-5 py-4 hidden md:table-cell",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-1.5 h-8 rounded-full bg-[#1A2B6B]/20 flex-shrink-0"}),g.jsxs("div",{children:[g.jsx("div",{className:"font-semibold text-sm",children:a}),g.jsx("div",{className:"text-xs text-muted-foreground",children:e.appointment_time})]})]})}),g.jsxs("td",{className:"px-5 py-4 hidden lg:table-cell",children:[g.jsx("div",{className:"text-sm font-medium text-foreground",children:e.primary_condition}),g.jsxs("div",{className:"text-xs text-muted-foreground",children:["Age ",e.patient_age," · ",e.location]})]}),g.jsx("td",{className:"px-5 py-4",children:g.jsx(Nz,{status:e.status})}),g.jsx("td",{className:"px-5 py-4",children:g.jsxs("div",{className:"flex items-center gap-1.5",children:[e.status==="pending_payment"&&g.jsx(kt,{size:"sm",className:"bg-emerald-600 hover:bg-emerald-700 text-white text-xs h-8 px-3 rounded-lg",onClick:()=>t(e.id,"confirmed"),disabled:n===e.id,children:n===e.id?"â¦":"â Approve"}),e.status==="confirmed"&&g.jsx(kt,{size:"sm",variant:"outline",className:"text-xs h-8 px-3 rounded-lg border-blue-300 text-blue-700 hover:bg-blue-50",onClick:()=>t(e.id,"completed"),disabled:n===e.id,children:"Complete"}),(e.status==="pending_payment"||e.status==="confirmed")&&g.jsx(kt,{size:"sm",variant:"ghost",className:"text-xs h-8 px-2 text-red-400 hover:bg-red-50 hover:text-red-600",onClick:()=>t(e.id,"cancelled"),disabled:n===e.id,children:"Cancel"}),g.jsx(Az,{booking:e}),g.jsx("button",{className:"p-1.5 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",onClick:()=>i(l=>!l),children:r?g.jsx(c1,{className:"w-4 h-4"}):g.jsx(Gu,{className:"w-4 h-4"})})]})})]}),r&&g.jsx("tr",{className:"bg-gradient-to-r from-blue-50/60 to-slate-50/40 border-b border-border",children:g.jsx("td",{colSpan:5,className:"px-5 py-5",children:g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 text-sm",children:[g.jsxs("div",{className:"space-y-2.5",children:[g.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-[#1A2B6B] mb-3",children:"Contact"}),g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(H_,{className:"w-3.5 h-3.5 text-blue-400 flex-shrink-0"}),e.phone]}),g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(go,{className:"w-3.5 h-3.5 text-blue-400 flex-shrink-0"}),e.email]}),g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(nA,{className:"w-3.5 h-3.5 text-blue-400 flex-shrink-0"}),e.relationship]}),g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(f1,{className:"w-3.5 h-3.5 text-blue-400 flex-shrink-0"}),e.location]})]}),g.jsxs("div",{className:"space-y-2.5",children:[g.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-[#1A2B6B] mb-3",children:"Patient"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-muted-foreground text-xs",children:"Condition "}),g.jsxs("span",{className:"font-medium",children:[e.primary_condition,e.condition_other?` â ${e.condition_other}`:""]})]}),g.jsxs("div",{children:[g.jsx("span",{className:"text-muted-foreground text-xs",children:"Care "}),g.jsx("span",{className:"font-medium",children:e.care_arrangement})]}),g.jsxs("div",{children:[g.jsx("span",{className:"text-muted-foreground text-xs",children:"Urgency "}),g.jsx("span",{className:"font-medium",children:e.urgency})]}),g.jsxs("div",{children:[g.jsx("span",{className:"text-muted-foreground text-xs",children:"Referral "}),g.jsx("span",{className:"font-medium",children:e.referral_source})]})]}),g.jsxs("div",{className:"space-y-2.5",children:[g.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-[#1A2B6B] mb-3",children:"Booking"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-muted-foreground text-xs",children:"Ref "}),g.jsx("span",{className:"font-mono font-bold text-[#1A2B6B]",children:e.booking_reference})]}),g.jsxs("div",{children:[g.jsx("span",{className:"text-muted-foreground text-xs",children:"Amount "}),g.jsxs("span",{className:"font-semibold text-emerald-600",children:["â¦",(e.amount_paid||0).toLocaleStr
859ing()]})]}),g.jsxs("div",{className:"mt-3 bg-white/70 rounded-xl p-3 border border-blue-100",children:[g.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-[#1A2B6B] mb-1.5",children:"Consultation Focus"}),g.jsxs("p",{className:"text-muted-foreground italic text-xs leading-relaxed",children:['"',e.consultation_focus,'"']})]})]})]})})})]})}function zb(e){const t=["Booking Ref","Full Name","Email","Phone","Relationship","Patient Age","Primary Condition","Condition Other","Care Arrangement","Urgency","Location","Referral Source","Consultation Focus","Appointment Date","Appointment Time","Status","Amount Paid","Created Date"],n=e.map(u=>[u.booking_reference||"",u.full_name||"",u.email||"",u.phone||"",u.relationship||"",u.patient_age||"",u.primary_condition||"",u.condition_other||"",u.care_arrangement||"",u.urgency||"",u.location||"",u.referral_source||"",(u.consultation_focus||"").replace(/"/g,'""'),u.appointment_date||"",u.appointment_time||"",u.status||"",u.amount_paid||"",u.created_date?Kn(new Date(u.created_date),"yyyy-MM-dd HH:mm"):""]),r=[t,...n].map(u=>u.map(f=>`"${f}"`).join(",")).join(` 860`),i=new Blob([r],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(i),l=document.createElement("a");l.href=a,l.download=`myqura-bookings-${Kn(new Date,"yyyy-MM-dd")}.csv`,l.click(),URL.revokeObjectURL(a),hd.success("Bookings exported successfully!")}function Oz(){const[e,t]=v.useState(""),[n,r]=v.useState("all"),[i,a]=v.useState(null),l=Sm(),{data:u=[],isLoading:f}=Cm({queryKey:["admin-bookings"],queryFn:()=>tt.entities.Booking.list("-created_date",200)}),h=async(S,E)=>{a(S),await tt.entities.Booking.update(S,{status:E}),l.invalidateQueries({queryKey:["admin-bookings"]}),l.invalidateQueries({queryKey:["booked-slots"]}),hd.success(`Booking marked as ${Ai[E].label}`),a(null)},p=u.filter(S=>{var C,k,T;const E=!e||((C=S.full_name)==null?void 0:C.toLowerCase().includes(e.toLowerCase()))||((k=S.email)==null?void 0:k.toLowerCase().includes(e.toLowerCase()))||((T=S.booking_reference)==null?void 0:T.toLowerCase().includes(e.toLowerCase())),b=n==="all"||S.status===n;return E&&b}),m={all:u.length,pending_payment:u.filter(S=>S.status==="pending_payment").length,confirmed:u.filter(S=>S.status==="confirmed").length,completed:u.filter(S=>S.status==="completed").length,cancelled:u.filter(S=>S.status==="cancelled").length},w=u.filter(S=>S.status==="confirmed"||S.status==="completed").reduce((S,E)=>S+(E.amount_paid||0),0);return g.jsxs("div",{className:"min-h-screen",style:{background:"linear-gradient(160deg, #dbeafe 0%, #eff6ff 40%, #ffffff 100%)"},children:[g.jsxs("div",{className:"relative overflow-hidden",style:{background:"linear-gradient(135deg, #0f1d52 0%, #1A2B6B 60%, #2e45a0 100%)"},children:[g.jsxs("div",{className:"absolute inset-0 opacity-10",children:[g.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 rounded-full bg-blue-300 -translate-y-1/2 translate-x-1/2"}),g.jsx("div",{className:"absolute bottom-0 left-20 w-64 h-64 rounded-full bg-indigo-300 translate-y-1/2"})]}),g.jsxs("div",{className:"relative max-w-6xl mx-auto px-6 py-8 flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-blue-300 text-xs tracking-[0.3em] uppercase font-semibold mb-1",children:"MyQura · Admin Portal"}),g.jsx("h1",{className:"text-3xl font-black text-white tracking-tight",children:"Booking Dashboard"}),g.jsxs("p",{className:"text-blue-200/70 text-sm mt-1",children:[u.length," total bookings · â¦",w.toLocaleString()," confirmed revenue"]})]}),g.jsxs(kt,{onClick:()=>zb(p),disabled:p.length===0,className:"bg-white/10 hover:bg-white/20 text-white border border-white/20 backdrop-blur-sm gap-2 h-11 px-5 rounded-xl font-semibold",children:[g.jsx(B0,{className:"w-4 h-4"}),"Export to Excel",p.length>0&&g.jsx("span",{className:"ml-1 bg-white/20 rounded-full px-2 py-0.5 text-xs",children:p.length})]})]})]}),g.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8 space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[g.jsx(uu,{label:"Pending Payment",value:m.pending_payment,color:"text-amber-600",bgColor:"bg-
860amber-50",icon:Ju,active:n==="pending_payment",onClick:()=>r(n==="pending_payment"?"all":"pending_payment")}),g.jsx(uu,{label:"Confirmed",value:m.confirmed,color:"text-emerald-600",bgColor:"bg-emerald-50",icon:Xu,active:n==="confirmed",onClick:()=>r(n==="confirmed"?"all":"confirmed")}),g.jsx(uu,{label:"Completed",value:m.completed,color:"text-blue-600",bgColor:"bg-blue-50",icon:i1,active:n==="completed",onClick:()=>r(n==="completed"?"all":"completed")}),g.jsx(uu,{label:"Cancelled",value:m.cancelled,color:"text-red-500",bgColor:"bg-red-50",icon:u1,active:n==="cancelled",onClick:()=>r(n==="cancelled"?"all":"cancelled")})]}),g.jsxs("div",{className:"bg-gradient-to-r from-[#1A2B6B] to-blue-500 rounded-2xl p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 text-white shadow-lg shadow-blue-200",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"p-2.5 bg-white/15 rounded-xl",children:g.jsx(G_,{className:"w-5 h-5"})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-blue-100 text-xs font-semibold uppercase tracking-wider",children:"Confirmed Revenue"}),g.jsxs("p",{className:"text-2xl font-black",children:["â¦",w.toLocaleString()]})]})]}),g.jsxs("div",{className:"flex gap-6",children:[g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-blue-100 text-xs",children:"Total Bookings"}),g.jsx("p",{className:"text-xl font-bold",children:m.all})]}),g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-blue-100 text-xs",children:"Conversion Rate"}),g.jsxs("p",{className:"text-xl font-bold",children:[m.all>0?Math.round((m.confirmed+m.completed)/m.all*100):0,"%"]})]})]})]}),g.jsxs("div",{className:"bg-white/80 backdrop-blur-sm border border-blue-100 rounded-2xl p-4 flex flex-col sm:flex-row gap-3",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx(K_,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),g.jsx(Mt,{placeholder:"Search by name, email or referenceâ¦",value:e,onChange:S=>t(S.target.value),className:"pl-9 h-10 border-blue-100 bg-white/80 rounded-xl"})]}),g.jsx("div",{className:"flex gap-2 flex-wrap",children:["all","pending_payment","confirmed","completed","cancelled"].map(S=>{var E;return g.jsx("button",{onClick:()=>r(S),className:`px-3 py-2 rounded-xl text-xs font-semibold border transition-all ${n===S?"bg-[#1A2B6B] text-white border-[#1A2B6B] shadow-md":"bg-white text-muted-foreground border-border hover:border-[#1A2B6B] hover:text-[#1A2B6B]"}`,children:S==="all"?`All (${m.all})`:`${(E=Ai[S])==null?void 0:E.label} (${m[S]})`},S)})})]}),g.jsxs("div",{className:"bg-white/90 backdrop-blur-sm border border-blue-100 rounded-2xl overflow-hidden shadow-sm shadow-blue-100",children:[f?g.jsxs("div",{className:"flex items-center justify-center py-24 text-muted-foreground gap-3",children:[g.jsx("div",{className:"w-6 h-6 border-2 border-blue-200 border-t-[#1A2B6B] rounded-full animate-spin"}),g.jsx("span",{children:"Loading bookingsâ¦"})]}):p.length===0?g.jsxs("div",{className:"flex flex-col items-center justify-center py-24 text-muted-foreground gap-3",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-50 flex items-center justify-center",children:g.jsx(sA,{className:"w-8 h-8 text-blue-200"})}),g.jsx("p",{className:"font-semibold",children:"No bookings found"}),g.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try adjusting your search or filter"})]}):g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-blue-100 bg-gradient-to-r from-blue-50/60 to-slate-50/40",children:[g.jsx("th",{className:"px-5 py-3.5 text-left text-xs font-bold text-muted-foreground uppercase tracking-widest",children:"Client"}),g.jsx("th",{className:"px-5 py-3.5 text-left text-xs font-bold text-muted-foreground uppercase tracking-widest hidden md:table-cell",children:"Appointment"}),g.jsx("th",{className:"px-5 py-3.5 text-left text-xs font-bold text-muted-foreground uppercase tracking-widest hidden lg:table-cell",children:"Patient"}),g.jsx("th",{className:"px-5 py-3.5 text-left text-xs font-bold text-muted-foreground uppercase tracking-widest",children:"Status"}),g.jsx("th",{className:"px-5 py-3.5 text-left text-xs font-bold text-muted-foreground uppercase tracking-widest",children:"Actions"})]})}),g.jsx("tbody",{children:p.map(S=>g.jsx(Mz,{booking:S,onStatusChange:h,updating:i},S.id))})]}),p.length>0&&g.jsxs("div",{className:"px-5 py-3 border-t border-blue-50 bg-slate-50/40 flex items-center justify-between",children:[g.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",p.length," of ",u.length," bookings"]}),g.jsxs("button",{onClick:()=>zb(p),className:"text-xs text-[#1A2B6B] font-semibold hover:underline flex items-center gap-1",children:[g.jsx(B0,{className:"w-3 h-3"})," Export ",p.length," rows"]})]})]})]})]})}function Xk({className:e="w-5 h-5"}){return g.jsxs("svg",{className:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[g.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),g.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),g.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),g.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}function Ub(){const[e,t]=v.useState(""),[n,r]=v.useState(""),[i,a]=v.useState(""),[l,u]=v.useState(!1),f=async h=>{h.preventDefault(),a(""),u(!0);try{await tt.auth.loginViaEmailPassword(e,n),window.location.href="/admin"}catch(p){a(p.message||"Invalid email or password")}finally{u(!1)}};return g.jsxs("div",{className:"min-h-screen flex items-center justify-center px-4",style:{background:"linear-gradient(135deg, #0f1d52 0%, #1A2B6B 60%, #2e45a0 100%)"},children:[g.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[g.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 rounded-full bg-blue-400/10 -translate-y-1/2 translate-x-1/2"}),g.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 rounded-full bg-indigo-400/10 translate-y-1/2 -translate-x-1/2"})]}),g.jsxs("div",{className:"relative w-full max-w-md",children:[g.jsxs("div",{className:"text-center mb-8",children:[g.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-white/10 border border-white/20 backdrop-blur-sm mb-4",children:g.jsx(V0,{className:"w-8 h-8 text-white"})}),g.jsx("p",{className:"text-blue-300 text-xs tracking-[0.3em] uppercase font-semibold mb-1",children:"MyQura · Admin Portal"}),g.jsx("h1",{className:"text-3xl font-black text-white tracking-tight",children:"Admin Login"}),g.jsx("p",{className:"text-blue-200/60 text-sm mt-2",children:"Restricted access â authorised staff only"})]}),g.jsxs("div",{className:"bg-white/10 backdrop-blur-md border border-white/20 rounded-3xl p-8 shadow-2xl",children:[i&&g.jsx("div",{className:"mb-5 p-3.5 rounded-xl bg-red-500/20 border border-red-400/30 text-red-200 text-sm",children:i}),g.jsxs(kt,{type:"button",variant:"outline",className:"w-full h-12 font-semibold rounded-xl bg-white/10 border-white/20 text-white hover:bg-white/20 mb-5",onClick:()=>tt.auth.loginWithProvider("google","/admin"),children:[g.jsx(Xk,{className:"w-5 h-5 mr-2"}),"Continue with Google"]}),g.jsxs("div",{className:"relative mb-5",children:[g.jsx("div",{className:"absolute inset-0 flex items-center",children:g.jsx("div",{className:"w-full border-t border-white/20"})}),g.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:g.jsx("span",{className:"bg-transparent px-3 text-blue-300/60",children:"or sign in with email"})})]}),g.jsxs("form",{onSubmit:f,className:"space-y-5",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"email",className:"text-blue-100 text-sm font-semibold",children:"Email Address"}),g.jsxs("div",{className:"relative",children:[g.jsx(go,{className:"absolute left-3.5 to
860p-1/2 -translate-y-1/2 w-4 h-4 text-blue-300"}),g.jsx(Mt,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onChange:h=>t(h.target.value),className:"pl-10 h-12 bg-white/10 border-white/20 text-white placeholder:text-blue-300/50 focus-visible:ring-white/30 rounded-xl",required:!0})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx(hr,{htmlFor:"password",className:"text-blue-100 text-sm font-semibold",children:"Password"}),g.jsx("a",{href:"/forgot-password",className:"text-xs text-blue-300 hover:text-white transition-colors",children:"Forgot password?"})]}),g.jsxs("div",{className:"relative",children:[g.jsx(ho,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-blue-300"}),g.jsx(Mt,{id:"password",type:"password",autoComplete:"current-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:n,onChange:h=>r(h.target.value),className:"pl-10 h-12 bg-white/10 border-white/20 text-white placeholder:text-blue-300/50 focus-visible:ring-white/30 rounded-xl",required:!0})]})]}),g.jsx(kt,{type:"submit",className:"w-full h-12 font-bold rounded-xl bg-white text-[#1A2B6B] hover:bg-blue-50 shadow-lg mt-2",disabled:l,children:l?g.jsxs(g.Fragment,{children:[g.jsx(Si,{className:"w-4 h-4 mr-2 animate-spin"}),"Signing inâ¦"]}):g.jsxs(g.Fragment,{children:[g.jsx(V0,{className:"w-4 h-4 mr-2"}),"Sign in to Admin Portal"]})})]})]}),g.jsx("p",{className:"text-center text-blue-300/50 text-xs mt-6",children:"© 2026 MyQura · All rights reserved"})]})]})}function hl({icon:e,title:t,subtitle:n,footer:r,children:i}){return g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:g.jsxs("div",{className:"w-full max-w-md",children:[g.jsxs("div",{className:"text-center mb-10",children:[g.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-primary mb-4",children:g.jsx(e,{className:"w-7 h-7 text-primary-foreground","aria-hidden":"true"})}),g.jsx("h1",{className:"text-3xl font-bold tracking-tight text-foreground",children:t}),n&&g.jsx("p",{className:"text-muted-foreground mt-2",children:n})]}),g.jsx("div",{className:"bg-card rounded-2xl shadow-sm border border-border p-8",children:i}),r&&g.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:r})]})})}var jz=Object.defineProperty,Dz=Object.defineProperties,Iz=Object.getOwnPropertyDescriptors,Qu=Object.getOwnPropertySymbols,Jk=Object.prototype.hasOwnProperty,Zk=Object.prototype.propertyIsEnumerable,$b=(e,t,n)=>t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lz=(e,t)=>{for(var n in t||(t={}))Jk.call(t,n)&&$b(e,n,t[n]);if(Qu)for(var n of Qu(t))Zk.call(t,n)&&$b(e,n,t[n]);return e},Fz=(e,t)=>Dz(e,Iz(t)),Bz=(e,t)=>{var n={};for(var r in e)Jk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qu)for(var r of Qu(e))t.indexOf(r)<0&&Zk.call(e,r)&&(n[r]=e[r]);return n};function Vz(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function zz(e){let t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}var Uz=18,eT=40,$z=`${eT}px`,Wz=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Hz({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=v.useState(!1),[l,u]=v.useState(!1),[f,h]=v.useState(!1),p=v.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&i&&l,[i,l,n]),m=v.useCallback(()=>{let w=e.current,S=t.current;if(!w||!S||f||n==="none")return;let E=w,b=E.getBoundingClientRect().left+E.offsetWidth,C=E.getBoundingClientRect().top+E.offsetHeight/2,k=b-Uz,T=C;document.querySelectorAll(Wz).length===0&&document.elementFromPoint(k,T)===w||(a(!0),h(!0))},[e,t,f,n]);return v.useEffect(()=>{let w=e.current;if(!w||n==="none")return;function S(){let b=window.innerWidth-w.getBoundingClientRect().right;u(b>=eT)}S();let E=setInterval(S,1e3);return()=>{clearInterval(E)}},[e,n]),v.useEffect(()=>{let w=r||document.activeElement===t.current;if(n==="none"||!w)return;let S=setTimeout(m,0),E=setTimeout(m,2e3),b=setTimeout(m,5e3),C=setTimeout(()=>{h(!0)},6e3);return()=>{clearTimeout(S),clearTimeout(E),clearTimeout(b),clearTimeout(C)}},[t,r,n,m]),{hasPWMBadge:i,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:$z}}var tT=v.createContext({}),nT=v.forwardRef((e,t)=>
860{var n=e,{value:r,onChange:i,maxLength:a,textAlign:l="left",pattern:u,placeholder:f,inputMode:h="numeric",onComplete:p,pushPasswordManagerStrategy:m="increase-width",pasteTransformer:w,containerClassName:S,noScriptCSSFallback:E=qz,render:b,children:C}=n,k=Bz(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),T,R,_,N,L;let[B,j]=v.useState(typeof k.defaultValue=="string"?k.defaultValue:""),K=r??B,G=zz(K),J=v.useCallback(ye=>{i==null||i(ye),j(ye)},[i]),se=v.useMemo(()=>u?typeof u=="string"?new RegExp(u):u:null,[u]),re=v.useRef(null),oe=v.useRef(null),be=v.useRef({value:K,onChange:J,isIOS:typeof window<"u"&&((R=(T=window==null?void 0:window.CSS)==null?void 0:T.supports)==null?void 0:R.call(T,"-webkit-touch-callout","none"))}),Z=v.useRef({prev:[(_=re.current)==null?void 0:_.selectionStart,(N=re.current)==null?void 0:N.selectionEnd,(L=re.current)==null?void 0:L.selectionDirection]});v.useImperativeHandle(t,()=>re.current,[]),v.useEffect(()=>{let ye=re.current,Re=oe.current;if(!ye||!Re)return;be.current.value!==ye.value&&be.current.onChange(ye.value),Z.current.prev=[ye.selectionStart,ye.selectionEnd,ye.selectionDirection];function Ze(){if(document.activeElement!==ye){q(null),de(null);return}let Be=ye.selectionStart,vt=ye.selectionEnd,Nn=ye.selectionDirection,$t=ye.maxLength,Xn=ye.value,mn=Z.current.prev,Mn=-1,On=-1,jn;if(Xn.length!==0&&Be!==null&&vt!==null){let js=Be===vt,Td=Be===Xn.length&&Xn.length<$t;if(js&&!Td){let Jn=Be;if(Jn===0)Mn=0,On=1,jn="forward";else if(Jn===$t)Mn=Jn-1,On=Jn,jn="backward";else if($t>1&&Xn.length>1){let To=0;if(mn[0]!==null&&mn[1]!==null){jn=Jn<mn[1]?"backward":"forward";let Rd=mn[0]===mn[1]&&mn[0]<$t;jn==="backward"&&!Rd&&(To=-1)}Mn=To+Jn,On=To+Jn+1}}Mn!==-1&&On!==-1&&Mn!==On&&re.current.setSelectionRange(Mn,On,jn)}let Ms=Mn!==-1?Mn:Be,zi=On!==-1?On:vt,Os=jn??Nn;q(Ms),de(zi),Z.current.prev=[Ms,zi,Os]}if(document.addEventListener("selectionchange",Ze,{capture:!0}),Ze(),document.activeElement===ye&&z(!0),!document.getElementById("input-otp-style")){let Be=document.createElement("style");if(Be.id="input-otp-style",document.head.appendChild(Be),Be.sheet){let vt="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Oa(Be.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Oa(Be.sheet,`[data-input-otp]:autofill { ${vt} }`),Oa(Be.sheet,`[data-input-otp]:-webkit-autofill { ${vt} }`),Oa(Be.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Oa(Be.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let it=()=>{Re&&Re.style.setProperty("--root-height",`${ye.clientHeight}px`)};it();let Tt=new ResizeObserver(it);return Tt.observe(ye),()=>{document.removeEventListener("selectionchange",Ze,{capture:!0}),Tt.disconnect()}},[]);let[ne,U]=v.useState(!1),[H,z]=v.useState(!1),[M,q]=v.useState(null),[ge,de]=v.useState(null);v.useEffect(()=>{Vz(()=>{var ye,Re,Ze,it;(ye=re.current)==null||ye.dispatchEvent(new Event("input"));let Tt=(Re=re.current)==null?void 0:Re.selectionStart,Be=(Ze=re.current)==null?void 0:Ze.selectionEnd,vt=(it=re.current)==null?void 0:it.selectionDirection;Tt!==null&&Be!==null&&(q(Tt),de(Be),Z.current.prev=[Tt,Be,vt])})},[K,H]),v.useEffect(()=>{G!==void 0&&K!==G&&G.length<a&&K.length===a&&(p==null||p(K))},[a,p,G,K]);let le=Hz({containerRef:oe,inputRef:re,pushPasswordManagerStrategy:m,isFocused:H}),fe=v.useCallback(ye=>{let Re=ye.currentTarget.value.slice(0,a);if(Re.length>0&&se&&!se.test(Re)){ye.preventDefault();return}typeof G=="string"&&Re.length<G.length&&document.dispatchEvent(new Event("selectionchange")),J(Re)},[a,J,G,se]),te=v.useCallback(()=>{var ye;if(re.current){let Re=Math.min(re.current.value.length,a-1),Ze=re.current.value.length;(ye=re.current)==null||ye.setSelectionRange(Re,Ze),q(Re),de(Ze)}z(!0)},[a]),he=v.useCallback(ye=>{var Re,Ze;let it=re.current;if(!w&&(!be.current.isIOS||!ye.clipboardData||!it))return;let Tt=ye.clipboardData.getData("text/plain"),Be=w?w(Tt):Tt;ye.preventDefault();let vt=(Re=re.current)==null?void 0:Re.selectionStart,Nn=(Ze=re.current)==null?void 0:Ze.selectionEnd,$t=(vt!==Nn?K.slice(0,vt)+Be+K.slice(Nn):K.slice(0,vt)+Be+K.slice(vt)).slice(0,a);if($t.length>0&&se&&!se.test($t))return;it.value=$t,J($t);let Xn=Math.min($t.length,a-1),mn=$t.length;it.setSelectionRange(Xn,mn),q(Xn),de(mn)},[a,J,se,K]),ie=v.useMemo(()=>
860({position:"relative",cursor:k.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[k.disabled]),Te=v.useMemo(()=>({position:"absolute",inset:0,width:le.willPushPWMBadge?`calc(100% + ${le.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:le.willPushPWMBadge?`inset(0 ${le.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:l,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[le.PWM_BADGE_SPACE_WIDTH,le.willPushPWMBadge,l]),Ne=v.useMemo(()=>v.createElement("input",Fz(Lz({autoComplete:k.autoComplete||"one-time-code"},k),{"data-input-otp":!0,"data-input-otp-placeholder-shown":K.length===0||void 0,"data-input-otp-mss":M,"data-input-otp-mse":ge,inputMode:h,pattern:se==null?void 0:se.source,"aria-placeholder":f,style:Te,maxLength:a,value:K,ref:re,onPaste:ye=>{var Re;he(ye),(Re=k.onPaste)==null||Re.call(k,ye)},onChange:fe,onMouseOver:ye=>{var Re;U(!0),(Re=k.onMouseOver)==null||Re.call(k,ye)},onMouseLeave:ye=>{var Re;U(!1),(Re=k.onMouseLeave)==null||Re.call(k,ye)},onFocus:ye=>{var Re;te(),(Re=k.onFocus)==null||Re.call(k,ye)},onBlur:ye=>{var Re;z(!1),(Re=k.onBlur)==null||Re.call(k,ye)}})),[fe,te,he,h,Te,a,ge,M,k,se==null?void 0:se.source,K]),Me=v.useMemo(()=>({slots:Array.from({length:a}).map((ye,Re)=>{var Ze;let it=H&&M!==null&&ge!==null&&(M===ge&&Re===M||Re>=M&&Re<ge),Tt=K[Re]!==void 0?K[Re]:null,Be=K[0]!==void 0?null:(Ze=f==null?void 0:f[Re])!=null?Ze:null;return{char:Tt,placeholderChar:Be,isActive:it,hasFakeCaret:it&&Tt===null}}),isFocused:H,isHovering:!k.disabled&&ne}),[H,ne,a,ge,M,k.disabled,K]),Je=v.useMemo(()=>b?b(Me):v.createElement(tT.Provider,{value:Me},C),[C,Me,b]);return v.createElement(v.Fragment,null,E!==null&&v.createElement("noscript",null,v.createElement("style",null,E)),v.createElement("div",{ref:oe,"data-input-otp-container":!0,style:ie,className:S},Je,v.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Ne)))});nT.displayName="Input";function Oa(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var qz=` 861[data-input-otp] { 862 --nojs-bg: white !important; 863 --nojs-fg: black !important; 864 865 background-color: var(--nojs-bg) !important; 866 color: var(--nojs-fg) !important; 867 caret-color: var(--nojs-fg) !important; 868 letter-spacing: .25em !important; 869 text-align: center !important; 870 border: 1px solid var(--nojs-fg) !important; 871 border-radius: 4px !important; 872 width: 100% !important; 873} 874@media (prefers-color-scheme: dark) { 875 [data-input-otp] { 876 --nojs-bg: black !important; 877 --nojs-fg: white !important; 878 } 879}`;const rT=v.forwardRef(({className:e,containerClassName:t,...n},r)=>g.jsx(nT,{ref:r,containerClassName:He("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:He("disabled:cursor-not-allowed",e),...n}));rT.displayName="InputOTP";const sT=v.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:He("flex items-center",e),...t}));sT.displayName="InputOTPGroup";const Zs=v.forwardRef(({index:e,className:t,...n},r)=>{const i=v.useContext(tT),{char:a,hasFakeCaret:l,isActive:u}=i.slots[e];return g.jsxs("div",{ref:r,className:He("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",u&&"z-10 ring-1 ring-ring",t),...n,children:[a,l&&g.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:g.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Zs.displayName="InputOTPSlot";const Kz=v.forwardRef(({...e},t)=>g.jsx("div",{ref:t,role:"separator",...e,children:g.jsx($_,{})}));Kz.displayName="InputOTPSeparator";function Qz(){const[e,t]=v.useState(""),[n,r]=v.useState(""),[i,a]=v.useState(""),[l,u]=v.useState(""),[f,h]=v.useState(!1),[p,m]=v.useState(!1),[w,S]=v.useState(""),E=async T=>
879{if(T.preventDefault(),u(""),n!==i){u("Passwords do not match");return}h(!0);try{await tt.auth.register({email:e,password:n}),m(!0)}catch(R){u(R.message||"Registration failed")}finally{h(!1)}},b=async()=>{u(""),h(!0);try{const T=await tt.auth.verifyOtp({email:e,otpCode:w});T!=null&&T.access_token&&tt.auth.setToken(T.access_token),window.location.href="/"}catch(T){u(T.message||"Invalid verification code")}finally{h(!1)}},C=async()=>{u("");try{await tt.auth.resendOtp(e),t1({title:"Code sent",description:"Check your email for the new code."})}catch(T){u(T.message||"Failed to resend code")}},k=()=>{tt.auth.loginWithProvider("google","/")};return p?g.jsxs(hl,{icon:go,title:"Verify your email",subtitle:`We sent a code to ${e}`,children:[l&&g.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:l}),g.jsx("div",{className:"flex justify-center mb-6",children:g.jsx(rT,{maxLength:6,value:w,onChange:S,autoFocus:!0,autoComplete:"one-time-code",children:g.jsxs(sT,{children:[g.jsx(Zs,{index:0}),g.jsx(Zs,{index:1}),g.jsx(Zs,{index:2}),g.jsx(Zs,{index:3}),g.jsx(Zs,{index:4}),g.jsx(Zs,{index:5})]})})}),g.jsx(kt,{className:"w-full h-12 font-medium",onClick:b,disabled:f||w.length<6,children:f?g.jsxs(g.Fragment,{children:[g.jsx(Si,{className:"w-4 h-4 mr-2 animate-spin"}),"Verifying..."]}):"Verify"}),g.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:["Didn't receive the code?"," ",g.jsx("button",{onClick:C,className:"text-primary font-medium hover:underline",children:"Resend"})]})]}):g.jsxs(hl,{icon:eA,title:"Create your account",subtitle:"Sign up to get started",footer:g.jsxs(g.Fragment,{children:["Already have an account?"," ",g.jsx(Am,{to:"/login",className:"text-primary font-medium hover:underline",children:"Log in"})]}),children:[g.jsxs(kt,{variant:"outline",className:"w-full h-12 text-sm font-medium mb-6",onClick:k,children:[g.jsx(Xk,{className:"w-5 h-5 mr-2"}),"Continue with Google"]}),g.jsxs("div",{className:"relative mb-6",children:[g.jsx("div",{className:"absolute inset-0 flex items-center",children:g.jsx("div",{className:"w-full border-t border-border"})}),g.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:g.jsx("span",{className:"bg-card px-3 text-muted-foreground",children:"or"})})]}),l&&g.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:l}),g.jsxs("form",{onSubmit:E,className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"email",children:"Email"}),g.jsxs("div",{className:"relative",children:[g.jsx(go,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),g.jsx(Mt,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onChange:T=>t(T.target.value),className:"pl-10 h-12",required:!0})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"password",children:"Password"}),g.jsxs("div",{className:"relative",children:[g.jsx(ho,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),g.jsx(Mt,{id:"password",type:"password",autoComplete:"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:n,onChange:T=>r(T.target.value),className:"pl-10 h-12",required:!0})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"confirm",children:"Confirm Password"}),g.jsxs("div",{className:"relative",children:[g.jsx(ho,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),g.jsx(Mt,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:i,onChange:T=>a(T.target.value),className:"pl-10 h-12",required:!0})]})]}),g.jsx(kt,{type:"submit",className:"w-full h-12 font-medium",disabled:f,children:f?g.jsxs(g.Fragment,{children:[g.jsx(Si,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating account..."]}):"Create account"})]})]})}function Yz(){const[e,t]=v.useState(""),[n,r]=v.useState(!1),[i,a]=v.useState(!1),l=async u=>{u.preventDefault(),r(!0);try{await tt.auth.resetPasswordRequest(e)}catch{}finally{r(!1),a(!0)}};return g.jsx(hl,{icon:go,title:"Reset password",subtitle:"We'll send you a link to reset it",footer:g.jsxs(Am,{to:"/login",className:"text-primary font-medium hover:underline",children:[g.jsx(v_,{className:"w-3 h-3 inline mr-1"}),"Back to log in"]}),children:i?g.jsx("p",{className:"text-sm text-foreground text-center",children:"If an account exists with that email, you'll receive a password reset link shortly."}):g.jsxs("form",{onSubmit:l,className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"email",children:"Email address"}),g.jsxs("div",{className:"relative",children:[g.jsx(go,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),g.jsx(Mt,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onCh
879ange:u=>t(u.target.value),className:"pl-10 h-12",required:!0})]})]}),g.jsx(kt,{type:"submit",className:"w-full h-12 font-medium",disabled:n,children:n?g.jsxs(g.Fragment,{children:[g.jsx(Si,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Send reset link"})]})})}function Gz(){const[e]=WN(),t=e.get("token"),[n,r]=v.useState(""),[i,a]=v.useState(""),[l,u]=v.useState(""),[f,h]=v.useState(!1),p=async m=>{if(m.preventDefault(),u(""),n!==i){u("Passwords do not match");return}h(!0);try{await tt.auth.resetPassword({resetToken:t,newPassword:n}),window.location.href="/login"}catch(w){u(w.message||"Failed to reset password")}finally{h(!1)}};return t?g.jsxs(hl,{icon:ho,title:"New password",subtitle:"Enter your new password below",children:[l&&g.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:l}),g.jsxs("form",{onSubmit:p,className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"password",children:"New Password"}),g.jsxs("div",{className:"relative",children:[g.jsx(ho,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),g.jsx(Mt,{id:"password",type:"password",autoComplete:"new-password",autoFocus:!0,placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:n,onChange:m=>r(m.target.value),className:"pl-10 h-12",required:!0})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(hr,{htmlFor:"confirm",children:"Confirm Password"}),g.jsxs("div",{className:"relative",children:[g.jsx(ho,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),g.jsx(Mt,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:i,onChange:m=>a(m.target.value),className:"pl-10 h-12",required:!0})]})]}),g.jsx(kt,{type:"submit",className:"w-full h-12 font-medium",disabled:f,children:f?g.jsxs(g.Fragment,{children:[g.jsx(Si,{className:"w-4 h-4 mr-2 animate-spin"}),"Resetting..."]}):"Reset password"})]})]}):g.jsx(hl,{icon:J_,title:"Invalid reset link",subtitle:"This password reset link is missing or invalid",footer:g.jsx(Am,{to:"/forgot-password",className:"text-primary font-medium hover:underline",children:"Request a new link"}),children:g.jsx("p",{className:"text-sm text-foreground text-center",children:"The link you used appears to be incomplete. Please request a new password reset email."})})}const Xz=()=>g.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:g.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});function Jz({fallback:e=g.jsx(Xz,{}),unauthenticatedElement:t}){const{isAuthenticated:n,isLoadingAuth:r,authChecked:i,authError:a,checkUserAuth:l}=IS();return v.useEffect(()=>{!i&&!r&&l()},[i,r,l]),r?e:a?a.type==="user_not_registered"?g.jsx(LS,{}):t:n?g.jsx(AN,{}):t}const Zz=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=IS();return t||e?g.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:g.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):n&&n.type==="user_not_registered"?g.jsx(LS,{}):g.jsxs(MN,{children:[g.jsx(sr,{path:"/login",element:g.jsx(_N,{to:"/admin/login",replace:!0})}),g.jsx(sr,{path:"/admin/login",element:g.jsx(Ub,{})}),g.jsx(sr,{path:"/register",element:g.jsx(Qz,{})}),g.jsx(sr,{path:"/forgot-password",element:g.jsx(Yz,{})}),g.jsx(sr,{path:"/reset-password",element:g.jsx(Gz,{})}),g.jsx(sr,{path:"/",element:g.jsx(z8,{})}),g.jsx(sr,{element:g.jsx(Jz,{unauthenticatedElement:g.jsx(Ub,{})}),children:g.jsx(sr,{path:"/admin",element:g.jsx(Oz,{})})}),g.jsx(sr,{path:"*",element:g.jsx(nD,{})})]})};function eU(){return g.jsx(rD,{children:g.jsxs(C2,{client:D2,children:[g.jsx(VN,{children:g.jsx(Zz,{})}),g.jsx(JA,{})]})})}l_.createRoot(document.getElementById("root")).render(g.jsx(eU,{}));
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.