PageSourceSearch

https://colinasdesantacruz.base44.app/assets/index-DR7-9Cnj.js

js colinasdesantacruz.base44.app collected 2026-10-03 05:32:59 UTC 546,161 bytes, 313 lines download raw bytes

vendor: 6,401 bytes, lines 1-9
1var MS=Object.defineProperty;var kg=t=>{throw TypeError(t)};var DS=(t,e,n)=>e in t?MS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Le=(t,e,n)=>DS(t,typeof e!="symbol"?e+"":e,n),rd=(t,e,n)=>e.has(t)||kg("Cannot "+n);var R=(t,e,n)=>(rd(t,e,"read from private field"),n?n.call(t):e.get(t)),fe=(t,e,n)=>e.has(t)?kg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ee=(t,e,n,i)=>(rd(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Pe=(t,e,n)=>(rd(t,e,"access private method"),n);var pl=(t,e,n,i)=>({set _(a){ee(t,e,a,n)},get _(){return R(t,e,i)}});function IS(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in t)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function _v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sd={exports:{}},fo={},id={exports:{}},Ce={};/**
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 Eg;function FS(){if(Eg)return Ce;Eg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function S(j,$,me){this.props=j,this.context=$,this.refs=C,this.updater=me||_}S.prototype.isReactComponent={},S.prototype.setState=function(j,$){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,$,"setState")},S.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function b(){}b.prototype=S.prototype;function A(j,$,me){this.props=j,this.context=$,this.refs=C,this.updater=me||_}var P=A.prototype=new b;P.constructor=A,E(P,S.prototype),P.isPureReactComponent=!0;var N=Array.isArray,z=Object.prototype.hasOwnProperty,B={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function U(j,$,me){var ge,de={},G=null,xe=null;if($!=null)for(ge in $.ref!==void 0&&(xe=$.ref),$.key!==void 0&&(G=""+$.key),$)z.call($,ge)&&!Y.hasOwnProperty(ge)&&(de[ge]=$[ge]);var Ee=arguments.length-2;if(Ee===1)de.children=me;else if(1<Ee){for(var ve=Array(Ee),lt=0;lt<Ee;lt++)ve[lt]=arguments[lt+2];de.children=ve}if(j&&j.defaultProps)for(ge in Ee=j.defaultProps,Ee)de[ge]===void 0&&(de[ge]=Ee[ge]);return{$$typeof:t,type:j,key:G,ref:xe,props:de,_owner:B.current}}function Z(j,$){return{$$typeof:t,type:j.type,key:$,ref:j.ref,props:j.props,_owner:j._owner}}function le(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function be(j){var $={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(me){return $[me]})}var Me=/\/+/g;function Se(j,$){return typeof j=="object"&&j!==null&&j.key!=null?be(""+j.key):$.toString(36)}function ke(j,$,me,ge,de){var G=typeof j;(G==="undefined"||G==="boolean")&&(j=null);var xe=!1;if(j===null)xe=!0;else switch(G){case"string":case"number":xe=!0;break;case"object":switch(j.$$typeof){case t:case e:xe=!0}}if(xe)return xe=j,de=de(xe),j=ge===""?"."+Se(xe,0):ge,N(de)?(me="",j!=null&&(me=j.replace(Me,"$&/")+"/"),ke(de,$,me,"",function(lt){return lt})):de!=null&&(le(de)&&(de=Z(de,me+(!de.key||xe&&xe.key===de.key?"":(""+de.key).replace(Me,"$&/")+"/")+j)),$.push(de)),1;if(xe=0,ge=ge===""?".":ge+":",N(j))for(var Ee=0;Ee<j.length;Ee++){G=j[Ee];var ve=ge+Se(G,Ee);xe+=ke(G,$,me,ve,de)}else if(ve=w(j),typeof ve=="function")for(j=ve.call(j),Ee=0;!(G=j.next()).done;)G=G.value,ve=ge+Se(G,Ee++),xe+=ke(G,$,me,ve,de);else if(G==="object")throw $=String(j),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return xe}function ze(j,$,me){if(j==null)return j;var ge=[],de=0;return ke(j,ge,"","",function(G){return $.call(me,G,de++)}),ge}function Ne(j){if(j._status===-1){var $=j._result;$=$(),$.then(function(me){(j._status===0||j._status===-1)&&(j._status=1,j._result=me)},function(me){(j._status===0||j._status===-1)&&(j._status=2,j._result=me)}),j._status===-1&&(j._status=0,j._result=$)}if(j._status===1)return j._result.default;throw j._result}var he={current:null},Q={transition:null},oe={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:Q,ReactCurrentOwner:B};function V(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:ze,forEach:function(j,$,me){ze(j,function(){$.apply(this,arguments)},me)},count:function(j){var $=0;return ze(j,function(){$++}),$},toArray:function(j){return ze(j,function($){return $})||[]},only:function(j){if(!le(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Ce.Component=S,Ce.Fragment=n,Ce.Profiler=a,Ce.PureComponent=A,Ce.StrictMode=i,Ce.Suspense=h,Ce.__SECRET_INT
vendor: 5,019 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Ce.act=V,Ce.cloneElement=function(j,$,me){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ge=E({},j.props),de=j.key,G=j.ref,xe=j._owner;if($!=null){if($.ref!==void 0&&(G=$.ref,xe=B.current),$.key!==void 0&&(de=""+$.key),j.type&&j.type.defaultProps)var Ee=j.type.defaultProps;for(ve in $)z.call($,ve)&&!Y.hasOwnProperty(ve)&&(ge[ve]=$[ve]===void 0&&Ee!==void 0?Ee[ve]:$[ve])}var ve=arguments.length-2;if(ve===1)ge.children=me;else if(1<ve){Ee=Array(ve);for(var lt=0;lt<ve;lt++)Ee[lt]=arguments[lt+2];ge.children=Ee}return{$$typeof:t,type:j.type,key:de,ref:G,props:ge,_owner:xe}},Ce.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:l,_context:j},j.Consumer=j},Ce.createElement=U,Ce.createFactory=function(j){var $=U.bind(null,j);return $.type=j,$},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(j){return{$$typeof:d,render:j}},Ce.isValidElement=le,Ce.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:Ne}},Ce.memo=function(j,$){return{$$typeof:p,type:j,compare:$===void 0?null:$}},Ce.startTransition=function(j){var $=Q.transition;Q.transition={};try{j()}finally{Q.transition=$}},Ce.unstable_act=V,Ce.useCallback=function(j,$){return he.current.useCallback(j,$)},Ce.useContext=function(j){return he.current.useContext(j)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(j){return he.current.useDeferredValue(j)},Ce.useEffect=function(j,$){return he.current.useEffect(j,$)},Ce.useId=function(){return he.current.useId()},Ce.useImperativeHandle=function(j,$,me){return he.current.useImperativeHandle(j,$,me)},Ce.useInsertionEffect=function(j,$){return he.current.useInsertionEffect(j,$)},Ce.useLayoutEffect=function(j,$){return he.current.useLayoutEffect(j,$)},Ce.useMemo=function(j,$){return he.current.useMemo(j,$)},Ce.useReducer=function(j,$,me){return he.current.useReducer(j,$,me)},Ce.useRef=function(j){return he.current.useRef(j)},Ce.useState=function(j){return he.current.useState(j)},Ce.useSyncExternalStore=function(j,$,me){return he.current.useSyncExternalStore(j,$,me)},Ce.useTransition=function(){return he.current.useTransition()},Ce.version="18.3.1",Ce}var Tg;function Pf(){return Tg||(Tg=1,id.exports=FS()),id.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 Pg;function zS(){if(Pg)return fo;Pg=1;var t=Pf(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,p){var g,y={},w=null,_=null;p!==void 0&&(w=""+p),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(_=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:e,type:d,key:w,ref:_,props:y,_owner:a.current}}return fo.Fragment=n,fo.jsx=u,fo.jsxs=u,fo}var Rg;function US(){return Rg||(Rg=1,sd.exports=zS()),sd.exports}var v=US(),D=Pf();const VS=_v(D),BS=IS({__proto__:null,default:VS},[D]);var ml={},od={exports:{}},Ft={},ad={exports:{}},ld={};/**
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 Ag;function $S(){return Ag||(Ag=1,(function(t){function e(Q,oe){var V=Q.length;Q.push(oe);e:for(;0<V;){var j=V-1>>>1,$=Q[j];if(0<a($,oe))Q[j]=oe,Q[V]=$,V=j;else break e}}function n(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var oe=Q[0],V=Q.pop();if(V!==oe){Q[0]=V;e:for(var j=0,$=Q.length,me=$>>>1;j<me;){var ge=2*(j+1)-1,de=Q[ge],G=ge+1,xe=Q[G];if(0>a(de,V))G<$&&0>a(xe,de)?(Q[j]=xe,Q[G]=V,j=G):(Q[j]=de,Q[ge]=V,j=ge);else if(G<$&&0>a(xe,V))Q[j]=xe,Q[G]=V,j=G;else break e}}return oe}function a(Q,oe){var V=Q.sortIndex-oe.sortIndex;return V!==0?V:Q.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],p=[],g=1,y=null,w=3,_=!1,E=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(Q){for(var oe=n(p);oe!==null;){if(oe.callback===null)i(p);else if(oe.startTime<=Q)i(p),oe.sortIndex=oe.expirationTime,e(h,oe);else break;
vendor: 17,916 bytes, lines 25-37
25oe=n(p)}}function N(Q){if(C=!1,P(Q),!E)if(n(h)!==null)E=!0,Ne(z);else{var oe=n(p);oe!==null&&he(N,oe.startTime-Q)}}function z(Q,oe){E=!1,C&&(C=!1,b(U),U=-1),_=!0;var V=w;try{for(P(oe),y=n(h);y!==null&&(!(y.expirationTime>oe)||Q&&!be());){var j=y.callback;if(typeof j=="function"){y.callback=null,w=y.priorityLevel;var $=j(y.expirationTime<=oe);oe=t.unstable_now(),typeof $=="function"?y.callback=$:y===n(h)&&i(h),P(oe)}else i(h);y=n(h)}if(y!==null)var me=!0;else{var ge=n(p);ge!==null&&he(N,ge.startTime-oe),me=!1}return me}finally{y=null,w=V,_=!1}}var B=!1,Y=null,U=-1,Z=5,le=-1;function be(){return!(t.unstable_now()-le<Z)}function Me(){if(Y!==null){var Q=t.unstable_now();le=Q;var oe=!0;try{oe=Y(!0,Q)}finally{oe?Se():(B=!1,Y=null)}}else B=!1}var Se;if(typeof A=="function")Se=function(){A(Me)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,ze=ke.port2;ke.port1.onmessage=Me,Se=function(){ze.postMessage(null)}}else Se=function(){S(Me,0)};function Ne(Q){Y=Q,B||(B=!0,Se())}function he(Q,oe){U=S(function(){Q(t.unstable_now())},oe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_continueExecution=function(){E||_||(E=!0,Ne(z))},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return n(h)},t.unstable_next=function(Q){switch(w){case 1:case 2:case 3:var oe=3;break;default:oe=w}var V=w;w=oe;try{return Q()}finally{w=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Q,oe){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var V=w;w=Q;try{return oe()}finally{w=V}},t.unstable_scheduleCallback=function(Q,oe,V){var j=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?j+V:j):V=j,Q){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=V+$,Q={id:g++,callback:oe,priorityLevel:Q,startTime:V,expirationTime:$,sortIndex:-1},V>j?(Q.sortIndex=V,e(p,Q),n(h)===null&&Q===n(p)&&(C?(b(U),U=-1):C=!0,he(N,V-j))):(Q.sortIndex=$,e(h,Q),E||_||(E=!0,Ne(z))),Q},t.unstable_shouldYield=be,t.unstable_wrapCallback=function(Q){var oe=w;return function(){var V=w;w=oe;try{return Q.apply(this,arguments)}finally{w=V}}}})(ld)),ld}var Ng;function qS(){return Ng||(Ng=1,ad.exports=$S()),ad.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 Og;function HS(){if(Og)return Ft;Og=1;var t=Pf(),e=qS();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(a[r]=s,r=0;r<s.length;r++)i.add(s[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},y={};function w(r){return h.call(y,r)?!0:h.call(g,r)?!1:p.test(r)?y[r]=!0:(g[r]=!0,!1)}function _(r,s,o,c){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:o!==null?!o.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function E(r,s,o,c){if(s===null||typeof s>"u"||_(r,s,o,c))return!0;if(c)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function C(r,s,o,c,f,m,x){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=r,this.type=s,this.sanitizeURL=m,this.removeEmptyString=x}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];S[s]=new C(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new C(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){S[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function A(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var s=r.replace(b,A);S[s]=new C(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(b,A);S[s]=new C(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(b,A);S[s]=new C(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function P(r,s,o,c){var f=S.hasOwnProperty(s)?S[s]:null;(f!==null?f.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(E(s,o,f,c)&&(o=null),c||f===null?w(s)&&(o===null?r.removeAttribute(s):r.setAttribute(s,""+o)):f.mustUseProperty?r[f.propertyName]=o===null?f.type===3?!1:"":o:(s=f.attributeName,c=f.attributeNamespace,o===null?r.removeAttribute(s):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,c?r.setAttributeNS(c,s,o):r.setAttribute(s,o))))}var N=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),B=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),be=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),ke=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),Q=Symbol.iterator;function oe(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var V=Object.assign,j;function $(r){if(j===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);j=s&&s[1]||""}return`
34`+j+r}var me=!1;function ge(r,s){if(!r||me)return"";me=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){var c=F}Reflect.construct(r,[],s)}else{try{s.call()}catch(F){c=F}r.call(s.prototype)}else{try{throw Error()}catch(F){c=F}r()}}catch(F){if(F&&c&&typeof F.stack=="string"){for(var f=F.stack.split(`
35`),m=c.stack.split(`
36`),x=f.length-1,k=m.length-1;1<=x&&0<=k&&f[x]!==m[k];)k--;for(;1<=x&&0<=k;x--,k--)if(f[x]!==m[k]){if(x!==1||k!==1)do if(x--,k--,0>k||f[x]!==m[k]){var T=`
37`+f[x].replace(" at new "," at ");return r.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",r.displayName)),T}while(1<=x&&0<=k);break}}}finally{me=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?$(r):""}function de(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=ge(r.type,!1),r;case 11:return r=ge(r.type.render,!1),r;case 1:return r=ge(r.type,!0),r;default:return""}}function G(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Y:return"Fragment";case B:return"Portal";case Z:return"Profiler";case U:return"StrictMode";case Se:return"Suspense";case ke:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case be:return(r.displayName||"Context")+".Consumer";case le:return(r._context.displayName||"Context")+".Provider";case Me:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ze:return s=r.displayName||null,s!==null?s:G(r.type)||"Memo";case Ne:s=r._payload,r=r._init;try{return G(r(s))}catch{}}return null}function xe(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(s);case 8:return s===U?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ee(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ve(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function lt(r){var s=ve(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,m=o.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return f.call(this)},set:function(x){c=""+x,m.call(this,x)}}),Object.defineProperty(r,s,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Qt(r){r._valueTracker||(r._valueTracker=lt(r))}function ht(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=ve(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function un(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Gt(r,s){var o=s.checked;return V({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Xt(r,s){var o=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;o=Ee(s.value!=null?s.value:o),r._wrapperState={initialChecked:c,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function we(r,s){s=s.checked,s!=null&&P(r,"checked",s,!1)}function pt(r,s){we(r,s);var o=Ee(s.value),c=s.type;if(o!=null)c==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+o):r.value!==""+o&&(r.value=""+o);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?dn(r,s.type,o):s.hasOwnProperty("defaultValue")&&dn(r,s.type,Ee(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function cn(r,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,o||s===r.value||(r.value=s),r.defaultValue=s}o=r.name,o!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,o!==""&&(r.name=o)}function dn(r,s,o){(s!=="number"||un(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var Zn=Array.isArray;function er(r,s,o,c){if(r=r.options,s){s={};for(var f=0;f<o.length;f++)s["$"+o[f]]=!0;for(o=0;o<r.length;o++)f=s.hasOwnProperty("$"+r[o].value),r[o].selected!==f&&(r[o].selected=f),f&&c&&(r[o].defaultSelected=!0)}else{for(o=""+Ee(o),s=null,f=0;f<r.length;f++){if(r[f].value===o){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}s!==null||r[f].disabled||(s=r[f])}s!==null&&(s.selected=!0)}}function Dn(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return V({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Mh(r,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(n(92));if(Zn(o)){if(1<o.length)throw Error(n(93));o=o[0]}s=o}s==null&&(s=""),o=s}r._wrapperState={initialValue:Ee(o)}}function Dh(r,s){var o=Ee(s.value),c=Ee(s.defaultValue);o!=null&&(o=""+o,o!==r.value&&(r.value=o),s.defaultValue==null&&r.defaultValue!==o&&(r.defaultValue=o)),c!=null&&(r.defaultValue=""+c)}function Ih(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function Fh(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pu(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?Fh(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var oa,zh=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,c,f){MSApp.execUnsafeLocalFunction(function(){return r(s,o,c,f)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(oa=oa||document.createElement("div"),oa.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=oa.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Ti(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var Pi={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},z1=["Webkit","ms","Moz","O"];Object.keys(Pi).forEach(function(r){z1.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Pi[s]=Pi[r]})});function Uh(r,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||Pi.hasOwnProperty(r)&&Pi[r]?(""+s).trim():s+"px"}function Vh(r,s){r=r.style;for(var o in s)if(s.hasOwnProperty(o)){var c=o.indexOf("--")===0,f=Uh(o,s[o],c);o==="float"&&(o="cssFloat"),c?r.setProperty(o,f):r[o]=f}}var U1=V({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 mu(r,s){if(s){if(U1[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function gu(r,s){if(r.indexOf("-")===-1)return typeof s.is=="str
37ing";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yu=null;function vu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var xu=null,Es=null,Ts=null;function Bh(r){if(r=Xi(r)){if(typeof xu!="function")throw Error(n(280));var s=r.stateNode;s&&(s=Ra(s),xu(r.stateNode,r.type,s))}}function $h(r){Es?Ts?Ts.push(r):Ts=[r]:Es=r}function qh(){if(Es){var r=Es,s=Ts;if(Ts=Es=null,Bh(r),s)for(r=0;r<s.length;r++)Bh(s[r])}}function Hh(r,s){return r(s)}function Wh(){}var wu=!1;function Kh(r,s,o){if(wu)return r(s,o);wu=!0;try{return Hh(r,s,o)}finally{wu=!1,(Es!==null||Ts!==null)&&(Wh(),qh())}}function Ri(r,s){var o=r.stateNode;if(o===null)return null;var c=Ra(o);if(c===null)return null;o=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(n(231,s,typeof o));return o}var bu=!1;if(d)try{var Ai={};Object.defineProperty(Ai,"passive",{get:function(){bu=!0}}),window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{bu=!1}function V1(r,s,o,c,f,m,x,k,T){var F=Array.prototype.slice.call(arguments,3);try{s.apply(o,F)}catch(H){this.onError(H)}}var Ni=!1,aa=null,la=!1,Su=null,B1={onError:function(r){Ni=!0,aa=r}};function $1(r,s,o,c,f,m,x,k,T){Ni=!1,aa=null,V1.apply(B1,arguments)}function q1(r,s,o,c,f,m,x,k,T){if($1.apply(this,arguments),Ni){if(Ni){var F=aa;Ni=!1,aa=null}else throw Error(n(198));la||(la=!0,Su=F)}}function zr(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function Qh(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function Gh(r){if(zr(r)!==r)throw Error(n(188))}function H1(r){var s=r.alternate;if(!s){if(s=zr(r),s===null)throw Error(n(188));return s!==r?null:r}for(var o=r,c=s;;){var f=o.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){o=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===o)return Gh(f),r;if(m===c)return Gh(f),s;m=m.sibling}throw Error(n(188))}if(o.return!==c.return)o=f,c=m;else{for(var x=!1,k=f.child;k;){if(k===o){x=!0,o=f,c=m;break}if(k===c){x=!0,c=f,o=m;break}k=k.sibling}if(!x){for(k=m.child;k;){if(k===o){x=!0,o=m,c=f;break}if(k===c){x=!0,c=m,o=f;break}k=k.sibling}if(!x)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?r:s}function Xh(r){return r=H1(r),r!==null?Yh(r):null}function Yh(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=Yh(r);if(s!==null)return s;r=r.sibling}return null}var Jh=e.unstable_scheduleCallback,Zh=e.unstable_cancelCallback,W1=e.unstable_shouldYield,K1=e.unstable_requestPaint,Je=e.unstable_now,Q1=e.unstable_getCurrentPriorityLevel,_u=e.unstable_ImmediatePriority,ep=e.unstable_UserBlockingPriority,ua=e.unstable_NormalPriority,G1=e.unstable_LowPriority,tp=e.unstable_IdlePriority,ca=null,Cn=null;function X1(r){if(Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(ca,r,void 0,(r.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:Z1,Y1=Math.log,J1=Math.LN2;function Z1(r){return r>>>=0,r===0?32:31-(Y1(r)/J1|0)|0}var da=64,fa=4194304;function Oi(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function ha(r,s){var o=r.pendingLanes;if(o===0)return 0;var c=0,f=r.suspendedLanes,m=r.pingedLanes,x=o&268435455;if(x!==0){var k=x&~f;k!==0?c=Oi(k):(m&=x,m!==0&&(c=Oi(m)))}else x=o&~f,x!==0?c=Oi(x):m!==0&&(c=Oi(m));if(c===0)return 0;if(s!==0&&s!==c&&(s&f)===0&&(f=c&-c,m=s&-s,f>=m||f===16&&(m&4194240)!==0))return s;if((c&4)!==0&&(c|=o&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=c;0<s;)o=31-fn(s),f=1<<o,c|=r[o],s&=~f;return c}function eb(r,s){switch(r){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tb(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes;0<m;){var x=31-fn(m),k=1<<x,T=f[x];T===-1?((k&o)===0||(k&c)!==0)&&(f[x]=eb(k,s)):T<=s&&(r.expiredLanes|=k),m&=~k}}function Cu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function np(){var r=da;return da<<=1,(da&4194240)===0&&(da=64),r}function ku(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function ji(r,s,o){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-fn(s),r[s]=o}function nb(r,s){var o=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<o;){var f=31-fn(o),m=1<<f;s[f]=0,c[f]=-1,r[f]=-1,o&=~m}}function Eu(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-fn(o),f=1<<c;f&s|r[c]&s&&(r[c]|=s),o&=~f}}var Fe=0;function rp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var sp,Tu,ip,op,ap,Pu=!1,pa=[],tr=null,nr=null,rr=null,Li=new Map,Mi=new Map,sr=[],rb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
vendor: 24,770 bytes, lines 37-38
37function lp(r,s){switch(r){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":Li.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(s.pointerId)}}function Di(r,s,o,c,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:s,domEventName:o,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},s!==null&&(s=Xi(s),s!==null&&Tu(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function sb(r,s,o,c,f){switch(s){case"focusin":return tr=Di(tr,r,s,o,c,f),!0;case"dragenter":return nr=Di(nr,r,s,o,c,f),!0;case"mouseover":return rr=Di(rr,r,s,o,c,f),!0;case"pointerover":var m=f.pointerId;return Li.set(m,Di(Li.get(m)||null,r,s,o,c,f)),!0;case"gotpointercapture":return m=f.pointerId,Mi.set(m,Di(Mi.get(m)||null,r,s,o,c,f)),!0}return!1}function up(r){var s=Ur(r.target);if(s!==null){var o=zr(s);if(o!==null){if(s=o.tag,s===13){if(s=Qh(o),s!==null){r.blockedOn=s,ap(r.priority,function(){ip(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ma(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=Au(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);yu=c,o.target.dispatchEvent(c),yu=null}else return s=Xi(o),s!==null&&Tu(s),r.blockedOn=o,!1;s.shift()}return!0}function cp(r,s,o){ma(r)&&o.delete(s)}function ib(){Pu=!1,tr!==null&&ma(tr)&&(tr=null),nr!==null&&ma(nr)&&(nr=null),rr!==null&&ma(rr)&&(rr=null),Li.forEach(cp),Mi.forEach(cp)}function Ii(r,s){r.blockedOn===s&&(r.blockedOn=null,Pu||(Pu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ib)))}function Fi(r){function s(f){return Ii(f,r)}if(0<pa.length){Ii(pa[0],r);for(var o=1;o<pa.length;o++){var c=pa[o];c.blockedOn===r&&(c.blockedOn=null)}}for(tr!==null&&Ii(tr,r),nr!==null&&Ii(nr,r),rr!==null&&Ii(rr,r),Li.forEach(s),Mi.forEach(s),o=0;o<sr.length;o++)c=sr[o],c.blockedOn===r&&(c.blockedOn=null);for(;0<sr.length&&(o=sr[0],o.blockedOn===null);)up(o),o.blockedOn===null&&sr.shift()}var Ps=N.ReactCurrentBatchConfig,ga=!0;function ob(r,s,o,c){var f=Fe,m=Ps.transition;Ps.transition=null;try{Fe=1,Ru(r,s,o,c)}finally{Fe=f,Ps.transition=m}}function ab(r,s,o,c){var f=Fe,m=Ps.transition;Ps.transition=null;try{Fe=4,Ru(r,s,o,c)}finally{Fe=f,Ps.transition=m}}function Ru(r,s,o,c){if(ga){var f=Au(r,s,o,c);if(f===null)Ku(r,s,c,ya,o),lp(r,c);else if(sb(f,r,s,o,c))c.stopPropagation();else if(lp(r,c),s&4&&-1<rb.indexOf(r)){for(;f!==null;){var m=Xi(f);if(m!==null&&sp(m),m=Au(r,s,o,c),m===null&&Ku(r,s,c,ya,o),m===f)break;f=m}f!==null&&c.stopPropagation()}else Ku(r,s,c,null,o)}}var ya=null;function Au(r,s,o,c){if(ya=null,r=vu(c),r=Ur(r),r!==null)if(s=zr(r),s===null)r=null;else if(o=s.tag,o===13){if(r=Qh(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return ya=r,null}function dp(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Q1()){case _u:return 1;case ep:return 4;case ua:case G1:return 16;case tp:return 536870912;default:return 16}default:return 16}}var ir=null,Nu=null,va=null;function fp(){if(va)return va;var r,s=Nu,o=s.length,c,f="value"in ir?ir.value:ir.textContent,m=f.length;for(r=0;r<o&&s[r]===f[r];r++);var x=o-r;for(c=1;c<=x&&s[o-c]===f[m-c];c++);return va=f.slice(r,1<c?1-c:void 0)}function xa(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function wa(){return!0}function hp(){return!1}function Bt(r){function s(o,c,f,m,x){this._reactName=o,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var k in r)r.hasOwnProperty(k)&&(o=r[k],this[k]=o?o(m):m[k]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?wa:hp,this.isPropagationStopped=hp,this}return V(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=wa)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=wa)},persist:function(){},isPersistent:wa}),s}var Rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ou=Bt(Rs),zi=V({},Rs,{view:0,detail:0}),lb=Bt(zi),ju,Lu,Ui,ba=V({},zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ui&&(Ui&&r.type==="mousemove"?(ju=r.screenX-Ui.screenX,Lu=r.screenY-Ui.screenY):Lu=ju=0,Ui=r),ju)},movementY:function(r){return"movementY"in r?r.movementY:Lu}}),pp=Bt(ba),ub=V({},ba,{dataTransfer:0}),cb=Bt(ub),db=V({},zi,{relatedTarget:0}),Mu=Bt(db),fb=V({},Rs,{animationName:0,elapsedTime:0,pseudoElement:0}),hb=Bt(fb),pb=V({},Rs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),mb=Bt(pb),gb=V({},Rs,{data:0}),mp=Bt(gb),yb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vb={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"},xb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wb(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=xb[r])?!!s[r]:!1}function Du(){return wb}var bb=V({},zi,{key:function(r){if(r.key){var s=yb[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=xa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?vb[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(r){return r.type==="keypress"?xa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?xa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Sb=Bt(bb),_b=V({},ba,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gp=Bt(_b),Cb=V({},zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),kb=Bt(Cb),Eb=V({},Rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tb=Bt(Eb),Pb=V({},ba,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Rb=Bt(Pb),Ab=[9,13,27,32],Iu=d&&"CompositionEvent"in window,Vi=null;d&&"documentMode"in document&&(Vi=document.documentMode);var Nb=d&&"TextEvent"in window&&!Vi,yp=d&&(!Iu||Vi&&8<Vi&&11>=Vi),vp=" ",xp=!1;function wp(r,s){switch(r){case"keyup":return Ab.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var As=!1;function Ob(r,s){switch(r){case"compositionend":return bp(s);case"keypress":return s.which!==32?null:(xp=!0,vp);case"textInput":return r=s.data,r===vp&&xp?null:r;default:return null}}function jb(r,s){if(As)return r==="compositionend"||!Iu&&wp(r,s)?(r=fp(),va=Nu=ir=null,As=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return yp&&s.locale!=="ko"?null:s.data;default:return null}}var Lb={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 Sp(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!Lb[r.type]:s==="textarea"}function _p(r,s,o,c){$h(c),s=Ea(s,"onChange"),0<s.length&&(o=new Ou("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var Bi=null,$i=null;function Mb(r){Vp(r,0)}function Sa(r){var s=Ms(r);if(ht(s))return r}function Db(r,s){if(r==="change")return s}var Cp=!1;if(d){var Fu;if(d){var zu="oninput"in document;if(!zu){var kp=document.createElement("div");kp.setAttribute("oninput","return;"),zu=typeof kp.oninput=="function"}Fu=zu}else Fu=!1;Cp=Fu&&(!document.documentMode||9<document.documentMode)}function Ep(){Bi&&(Bi.detachEvent("onpropertychange",Tp),$i=Bi=null)}function Tp(r){if(r.propertyName==="value"&&Sa($i)){var s=[];_p(s,$i,r,vu(r)),Kh(Mb,s)}}function Ib(r,s,o){r==="focusin"?(Ep(),Bi=s,$i=o,Bi.attachEvent("onpropertychange",Tp)):r==="focusout"&&Ep()}function Fb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Sa($i)}function zb(r,s){if(r==="click")return Sa(s)}function Ub(r,s){if(r==="input"||r==="change")return Sa(s)}function Vb(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var hn=typeof Object.is=="function"?Object.is:Vb;function qi(r,s){if(hn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),c=Object.keys(s);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var f=o[c];if(!h.call(s,f)||!hn(r[f],s[f]))return!1}return!0}function Pp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Rp(r,s){var o=Pp(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=s&&c>=s)return{node:o,offset:s-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Pp(o)}}function Ap(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Ap(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Np(){for(var r=window,s=un();s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=un(r.document)}return s}function Uu(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function Bb(r){var s=Np(),o=r.focusedElem,c=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&Ap(o.ownerDocument.documentElement,o)){if(c!==null&&Uu(o)){if(s=c.start,r=c.end,r===void 0&&(r=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(r,o.value.length);else if(r=(s=o.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var f=o.textContent.length,m=Math.min(c.start,f);c=c.end===void 0?m:Math.min(c.end,f),!r.extend&&m>c&&(f=c,c=m,m=f),f=Rp(o,m);var x=Rp(o,c);f&&x&&(r.rangeCount!==1||r.anchorNode!==f.node||r.anchorOffset!==f.offset||r.focusNode!==x.node||r.focusOffset!==x.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),r.removeAllRanges(),m>c?(r.addRange(s),r.extend(x.node,x.offset)):(s.setEnd(x.node,x.offset),r.addRange(s)))}}for(s=[],r=o;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)r=s[o],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var $b=d&&"documentMode"in document&&11>=document.documentMode,Ns=null,Vu=null,Hi=null,Bu=!1;function Op(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Bu||Ns==null||Ns!==un(c)||(c=Ns,"selectionStart"in c&&Uu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Hi&&qi(Hi,c)||(Hi=c,c=Ea(Vu,"onSelect"),0<c.length&&(s=new Ou("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=Ns)))}function _a(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var Os={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionend:_a("Transition","TransitionEnd")},$u={},jp={};d&&(jp=document.createElement("div").style,"AnimationEvent"in window||(delete Os.animationend.animation,delete Os.animationiteration.animation,delete Os.animationstart.animation),"TransitionEvent"in window||delete Os.transitionend.transition);function Ca(r){if($u[r])return $u[r];if(!Os[r])return r;var s=Os[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in jp)return $u[r]=s[o];return r}var Lp=Ca("animationend"),Mp=Ca("animationiteration"),Dp=Ca("animationstart"),Ip=Ca("transitionend"),Fp=new Map,zp="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 or(r,s){Fp.set(r,s),l(s,[r])}for(var qu=0;qu<zp.length;qu++){var Hu=zp[qu],qb=Hu.toLowerCase(),Hb=Hu[0].toUpperCase()+Hu.slice(1);or(qb,"on"+Hb)}or(Lp,"onAnimationEnd"),or(Mp,"onAnimationIteration"),or(Dp,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(Ip,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="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(" "),Wb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wi));function Up(r,s,o){var c=r.type||"unknown-event";r.currentTarget=o,q1(c,s,void 0,r),r.currentTarget=null}function Vp(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],f=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var x=c.length-1;0<=x;x--){var k=c[x],T=k.instance,F=k.currentTarget;if(k=k.listener,T!==m&&f.isPropagationStopped())break e;Up(f,k,F),m=T}else for(x=0;x<c.length;x++){if(k=c[x],T=k.instance,F=k.currentTarget,k=k.listener,T!==m&&f.isPropagationStopped())break e;Up(f,k,F),m=T}}}if(la)throw r=Su,la=!1,Su=null,r}function Be(r,s){var o=s[Zu];o===void 0&&(o=s[Zu]=new Set);var c=r+"__bubble";o.has(c)||(Bp(s,r,2,!1),o.add(c))}function Wu(r,s,o){var c=0;s&&(c|=4),Bp(o,r,c,s)}var ka="_reactListening"+Math.random().toString(36).slice(2);function Ki(r){if(!r[ka]){r[ka]=!0,i.forEach(function(o){o!=="selectionchange"&&(Wb.has(o)||Wu(o,!1,r),Wu(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[ka]||(s[ka]=!0,Wu("selectionchange",!1,s))}}function Bp(r,s,o,c){switch(dp(s)){case 1:var f=ob;break;case 4:f=ab;break;default:f=Ru}o=f.bind(null,s,o,r),f=void 0,!bu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(s,o,{capture:!0,passive:f}):r.addEventListener(s,o,!0):f!==void 0?r.addEventListener(s,o,{passive:f}):r.addEventListener(s,o,!1)}function Ku(r,s,o,c,f){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var k=c.stateNode.containerInfo;if(k===f||k.nodeType===8&&k.parentNode===f)break;if(x===4)for(x=c.return;x!==null;){var T=x.tag;if((T===3||T===4)&&(T=x.stateNode.containerInfo,T===f||T.nodeType===8&&T.parentNode===f))return;x=x.return}for(;k!==null;){if(x=Ur(k),x===null)return;if(T=x.tag,T===5||T===6){c=m=x;continue e}k=k.parentNode}}c=c.return}Kh(function(){var F=m,H=vu(o),W=[];e:{var q=Fp.get(r);if(q!==void 0){var J=Ou,ne=r;switch(r){case"keypress":if(xa(o)===0)break e;case"keydown":case"keyup":J=Sb;break;case"focusin":ne="focus",J=Mu;break;case"focusout":ne="blur",J=Mu;break;case"beforeblur":case"afterblur":J=Mu;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=cb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=kb;break;case Lp:case Mp:case Dp:J=hb;break;case Ip:J=Tb;break;case"scroll":J=lb;break;case"wheel":J=Rb;break;case"copy":case"cut":case"paste":J=mb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=gp}var ie=(s&4)!==0,Ze=!ie&&r==="scroll",M=ie?q!==null?q+"Capture":null:q;ie=[];for(var O=F,I;O!==null;){I=O;var K=I.stateNode;if(I.tag===5&&K!==null&&(I=K,M!==null&&(K=Ri(O,M),K!=null&&ie.push(Qi(O,K,I)))),Ze)break;O=O.return}0<ie.length&&(q=new J(q,ne,null,o,H),W.push({event:q,listeners:ie}))}}if((s&7)===0){e:{if(q=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",q&&o!==yu&&(ne=o.relatedTarget||o.fromElement)&&(Ur(ne)||ne[In]))break e;if((J||q)&&(q=H.window===H?H:(q=H.ownerDocument)?q.defaultView||q.parentWindow:window,J?(ne=o.relatedTarget||o.toElement,J=F,ne=ne?Ur(ne):null,ne!==null&&(Ze=zr(ne),ne!==Ze||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(J=null,ne=F),J!==ne)){if(ie=pp,K="onMouseLeave",M="onMouseEnter",O="mouse",(r==="pointerout"||r==="pointerover")&&(ie=gp,K="onPointerLeave",M="onPointerEnter",O="pointer"),Ze=J==null?q:Ms(J),I=ne==null?q:Ms(ne),q=new ie(K,O+"leave",J,o,H),q.target=Ze,q.relatedTarget=I,K=null,Ur(H)===F&&(ie=new ie(M,O+"enter",ne,o,H),ie.target=I,ie.relatedTarget=Ze,K=ie),Ze=K,J&&ne)t:{for(ie=J,M=ne,O=0,I=ie;I;I=js(I))O++;for(I=0,K=M;K;K=js(K))I++;for(;0<O-I;)ie=js(ie),O--;for(;0<I-O;)M=js(M),I--;for(;O--;){if(ie===M||M!==null&&ie===M.alternate)break t;ie=js(ie),M=js(M)}ie=null}else ie=null;J!==null&&$p(W,q,J,ie,!1),ne!==null&&Ze!==null&&$p(W,Ze,ne,ie,!0)}}e:{if(q=F?Ms(F):window,J=q.nodeName&&q.nodeName.toLowerCase(),J==="select"||J==="input"&&q.type==="file")var ae=Db;else if(Sp(q))if(Cp)ae=Ub;else{ae=Fb;var ue=Ib}else(J=q.nodeName)&&J.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(ae=zb);if(ae&&(ae=ae(r,F))){_p(W,ae,o,H);break e}ue&&ue(r,q,F),r==="focusout"&&(ue=q._wrapperState)&&ue.controlled&&q.type==="number"&&dn(q,"number",q.value)}switch(ue=F?Ms(F):window,r){case"focusin":(Sp(ue)||ue.contentEditable==="true")&&(Ns=ue,Vu=F,Hi=null);break;case"focusout":Hi=Vu=Ns=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Op(W,o,H);break;case"selectionchange":if($b)break;case"keydown":case"keyup":Op(W,o,H)}var ce;if(Iu)e:{switch(r){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else As?wp(r,o)&&(ye="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ye="onCompositionStart");ye&&(yp&&o.locale!=="ko"&&(As||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&As&&(ce=fp()):(ir=H,Nu="value"in ir?ir.value:ir.textContent,As=!0)),ue=Ea(F,ye),0<ue.length&&(ye=new mp(ye,r,null,o,H),W.push({event:ye,listeners:ue}),ce?ye.data=ce:(ce=bp(o),ce!==null&&(ye.data=ce)))),(ce=Nb?Ob(r,o):jb(r,o))&&(F=Ea(F,"onBeforeInput"),0<F.length&&(H=new mp("onBeforeInput","beforeinput",null,o,H),W.push({event:H,listeners:F}),H.data=ce))}Vp(W,s)})}function Qi(r,s,o){return{instance:r,listener:s,currentTarget:o}}function Ea(r,s){for(var o=s+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=Ri(r,o),m!=null&&c.unshift(Qi(r,m,f)),m=Ri(r,s),m!=null&&c.push(Qi(r,m,f))),r=r.return}return c}function js(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function $p(r,s,o,c,f){for(var m=s._reactName,x=[];o!==null&&o!==c;){var k=o,T=k.alternate,F=k.stateNode;if(T!==null&&T===c)break;k.tag===5&&F!==null&&(k=F,f?(T=Ri(o,m),T!=null&&x.unshift(Qi(o,T,k))):f||(T=Ri(o,m),T!=null&&x.push(Qi(o,T,k)))),o=o.return}x.length!==0&&r.push({event:s,listeners:x})}var Kb=/\r\n?/g,Qb=/\u0000|\uFFFD/g;function qp(r){return(typeof r=="string"?r:""+r).replace(Kb,`
38`).replace(Qb,"")}function Ta(r,s,o){if(s=qp(s),qp(r)!==s&&o)throw Error(n(425))}function Pa(){}var Qu=null,Gu=null;function Xu(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Yu=typeof setTimeout=="function"?setTimeout:void 0,Gb=typeof clearTimeout=="function"?clearTimeout:void 0,Hp=typeof Promise=="function"?Promise:void 0,Xb=typeof queueMicrotask=="function"?queueMicrotask:typeof Hp<"u"?function(r){return Hp.resolve(null).then(r).catch(Yb)}:Yu;function Yb(r){setTimeout(function(){throw r})}function Ju(r,s){var o=s,c=0;do{var f=o.nextSibling;if(r.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(c===0){r.removeChild(f),Fi(s);return}c--}else o!=="$"&&o!=="$?"&&o!=="$!"||c++;o=f}while(o);Fi(s)}function ar(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function Wp(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return r;s--}else o==="/$"&&s++}r=r.previousSibling}return null}var Ls=Math.random().toString(36).slice(2),kn="__reactFiber$"+Ls,Gi="__reactProps$"+Ls,In="__reactContainer$"+Ls,Zu="__reactEvents$"+Ls,Jb="__reactListeners$"+Ls,Zb="__reactHandles$"+Ls;function Ur(r){var s=r[kn];if(s)return s;for(var o=r.parentNode;o;){if(s=o[In]||o[kn]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=Wp(r);r!==null;){if(o=r[kn])return o;r=Wp(r)}return s}r=o,o=r.parentNode}return null}function Xi(r){return r=r[kn]||r[In],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ms(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Ra(r){return r[Gi]||null}var ec=[],Ds=-1;function lr(r){return{current:r}}function $e(r){0>
vendor: 4,510 bytes, line 38
38Ds||(r.current=ec[Ds],ec[Ds]=null,Ds--)}function Ve(r,s){Ds++,ec[Ds]=r.current,r.current=s}var ur={},bt=lr(ur),jt=lr(!1),Vr=ur;function Is(r,s){var o=r.type.contextTypes;if(!o)return ur;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var f={},m;for(m in o)f[m]=s[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=f),f}function Lt(r){return r=r.childContextTypes,r!=null}function Aa(){$e(jt),$e(bt)}function Kp(r,s,o){if(bt.current!==ur)throw Error(n(168));Ve(bt,s),Ve(jt,o)}function Qp(r,s,o){var c=r.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return o;c=c.getChildContext();for(var f in c)if(!(f in s))throw Error(n(108,xe(r)||"Unknown",f));return V({},o,c)}function Na(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||ur,Vr=bt.current,Ve(bt,r),Ve(jt,jt.current),!0}function Gp(r,s,o){var c=r.stateNode;if(!c)throw Error(n(169));o?(r=Qp(r,s,Vr),c.__reactInternalMemoizedMergedChildContext=r,$e(jt),$e(bt),Ve(bt,r)):$e(jt),Ve(jt,o)}var Fn=null,Oa=!1,tc=!1;function Xp(r){Fn===null?Fn=[r]:Fn.push(r)}function eS(r){Oa=!0,Xp(r)}function cr(){if(!tc&&Fn!==null){tc=!0;var r=0,s=Fe;try{var o=Fn;for(Fe=1;r<o.length;r++){var c=o[r];do c=c(!0);while(c!==null)}Fn=null,Oa=!1}catch(f){throw Fn!==null&&(Fn=Fn.slice(r+1)),Jh(_u,cr),f}finally{Fe=s,tc=!1}}return null}var Fs=[],zs=0,ja=null,La=0,Yt=[],Jt=0,Br=null,zn=1,Un="";function $r(r,s){Fs[zs++]=La,Fs[zs++]=ja,ja=r,La=s}function Yp(r,s,o){Yt[Jt++]=zn,Yt[Jt++]=Un,Yt[Jt++]=Br,Br=r;var c=zn;r=Un;var f=32-fn(c)-1;c&=~(1<<f),o+=1;var m=32-fn(s)+f;if(30<m){var x=f-f%5;m=(c&(1<<x)-1).toString(32),c>>=x,f-=x,zn=1<<32-fn(s)+f|o<<f|c,Un=m+r}else zn=1<<m|o<<f|c,Un=r}function nc(r){r.return!==null&&($r(r,1),Yp(r,1,0))}function rc(r){for(;r===ja;)ja=Fs[--zs],Fs[zs]=null,La=Fs[--zs],Fs[zs]=null;for(;r===Br;)Br=Yt[--Jt],Yt[Jt]=null,Un=Yt[--Jt],Yt[Jt]=null,zn=Yt[--Jt],Yt[Jt]=null}var $t=null,qt=null,He=!1,pn=null;function Jp(r,s){var o=nn(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=r,s=r.deletions,s===null?(r.deletions=[o],r.flags|=16):s.push(o)}function Zp(r,s){switch(r.tag){case 5:var o=r.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,$t=r,qt=ar(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,$t=r,qt=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Br!==null?{id:zn,overflow:Un}:null,r.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=nn(18,null,null,0),o.stateNode=s,o.return=r,r.child=o,$t=r,qt=null,!0):!1;default:return!1}}function sc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function ic(r){if(He){var s=qt;if(s){var o=s;if(!Zp(r,s)){if(sc(r))throw Error(n(418));s=ar(o.nextSibling);var c=$t;s&&Zp(r,s)?Jp(c,o):(r.flags=r.flags&-4097|2,He=!1,$t=r)}}else{if(sc(r))throw Error(n(418));r.flags=r.flags&-4097|2,He=!1,$t=r}}}function em(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;$t=r}function Ma(r){if(r!==$t)return!1;if(!He)return em(r),He=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Xu(r.type,r.memoizedProps)),s&&(s=qt)){if(sc(r))throw tm(),Error(n(418));for(;s;)Jp(r,s),s=ar(s.nextSibling)}if(em(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"){if(s===0){qt=ar(r.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}r=r.nextSibling}qt=null}}else qt=$t?ar(r.stateNode.nextSibling):null;return!0}function tm(){for(var r=qt;r;)r=ar(r.nextSibling)}function Us(){qt=$t=null,He=!1}function oc(r){pn===null?pn=[r]:pn.push(r)}var tS=N.ReactCurrentBatchConfig;function Yi(r,s,o){if(r=o.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(n(309));var c=o.stateNode}if(!c)throw Error(n(147,r));var f=c,m=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(x){var k=f.refs;x===null?delete k[m]:k[m]=x},s._stringRef=m,s)}if(typeof r!="string")throw Error(n(284));if(!o._owner)throw Error(n(290,r))}return r}function Da(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function nm(r){var s=r._init;return s(r._payload)}
vendor: 5,148 bytes, line 38
38function rm(r){function s(M,O){if(r){var I=M.deletions;I===null?(M.deletions=[O],M.flags|=16):I.push(O)}}function o(M,O){if(!r)return null;for(;O!==null;)s(M,O),O=O.sibling;return null}function c(M,O){for(M=new Map;O!==null;)O.key!==null?M.set(O.key,O):M.set(O.index,O),O=O.sibling;return M}function f(M,O){return M=vr(M,O),M.index=0,M.sibling=null,M}function m(M,O,I){return M.index=I,r?(I=M.alternate,I!==null?(I=I.index,I<O?(M.flags|=2,O):I):(M.flags|=2,O)):(M.flags|=1048576,O)}function x(M){return r&&M.alternate===null&&(M.flags|=2),M}function k(M,O,I,K){return O===null||O.tag!==6?(O=Yc(I,M.mode,K),O.return=M,O):(O=f(O,I),O.return=M,O)}function T(M,O,I,K){var ae=I.type;return ae===Y?H(M,O,I.props.children,K,I.key):O!==null&&(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ne&&nm(ae)===O.type)?(K=f(O,I.props),K.ref=Yi(M,O,I),K.return=M,K):(K=ol(I.type,I.key,I.props,null,M.mode,K),K.ref=Yi(M,O,I),K.return=M,K)}function F(M,O,I,K){return O===null||O.tag!==4||O.stateNode.containerInfo!==I.containerInfo||O.stateNode.implementation!==I.implementation?(O=Jc(I,M.mode,K),O.return=M,O):(O=f(O,I.children||[]),O.return=M,O)}function H(M,O,I,K,ae){return O===null||O.tag!==7?(O=Yr(I,M.mode,K,ae),O.return=M,O):(O=f(O,I),O.return=M,O)}function W(M,O,I){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Yc(""+O,M.mode,I),O.return=M,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case z:return I=ol(O.type,O.key,O.props,null,M.mode,I),I.ref=Yi(M,null,O),I.return=M,I;case B:return O=Jc(O,M.mode,I),O.return=M,O;case Ne:var K=O._init;return W(M,K(O._payload),I)}if(Zn(O)||oe(O))return O=Yr(O,M.mode,I,null),O.return=M,O;Da(M,O)}return null}function q(M,O,I,K){var ae=O!==null?O.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return ae!==null?null:k(M,O,""+I,K);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return I.key===ae?T(M,O,I,K):null;case B:return I.key===ae?F(M,O,I,K):null;case Ne:return ae=I._init,q(M,O,ae(I._payload),K)}if(Zn(I)||oe(I))return ae!==null?null:H(M,O,I,K,null);Da(M,I)}return null}function J(M,O,I,K,ae){if(typeof K=="string"&&K!==""||typeof K=="number")return M=M.get(I)||null,k(O,M,""+K,ae);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case z:return M=M.get(K.key===null?I:K.key)||null,T(O,M,K,ae);case B:return M=M.get(K.key===null?I:K.key)||null,F(O,M,K,ae);case Ne:var ue=K._init;return J(M,O,I,ue(K._payload),ae)}if(Zn(K)||oe(K))return M=M.get(I)||null,H(O,M,K,ae,null);Da(O,K)}return null}function ne(M,O,I,K){for(var ae=null,ue=null,ce=O,ye=O=0,dt=null;ce!==null&&ye<I.length;ye++){ce.index>ye?(dt=ce,ce=null):dt=ce.sibling;var je=q(M,ce,I[ye],K);if(je===null){ce===null&&(ce=dt);break}r&&ce&&je.alternate===null&&s(M,ce),O=m(je,O,ye),ue===null?ae=je:ue.sibling=je,ue=je,ce=dt}if(ye===I.length)return o(M,ce),He&&$r(M,ye),ae;if(ce===null){for(;ye<I.length;ye++)ce=W(M,I[ye],K),ce!==null&&(O=m(ce,O,ye),ue===null?ae=ce:ue.sibling=ce,ue=ce);return He&&$r(M,ye),ae}for(ce=c(M,ce);ye<I.length;ye++)dt=J(ce,M,ye,I[ye],K),dt!==null&&(r&&dt.alternate!==null&&ce.delete(dt.key===null?ye:dt.key),O=m(dt,O,ye),ue===null?ae=dt:ue.sibling=dt,ue=dt);return r&&ce.forEach(function(xr){return s(M,xr)}),He&&$r(M,ye),ae}function ie(M,O,I,K){var ae=oe(I);if(typeof ae!="function")throw Error(n(150));if(I=ae.call(I),I==null)throw Error(n(151));for(var ue=ae=null,ce=O,ye=O=0,dt=null,je=I.next();ce!==null&&!je.done;ye++,je=I.next()){ce.index>ye?(dt=ce,ce=null):dt=ce.sibling;var xr=q(M,ce,je.value,K);if(xr===null){ce===null&&(ce=dt);break}r&&ce&&xr.alternate===null&&s(M,ce),O=m(xr,O,ye),ue===null?ae=xr:ue.sibling=xr,ue=xr,ce=dt}if(je.done)return o(M,ce),He&&$r(M,ye),ae;if(ce===null){for(;!je.done;ye++,je=I.next())je=W(M,je.value,K),je!==null&&(O=m(je,O,ye),ue===null?ae=je:ue.sibling=je,ue=je);return He&&$r(M,ye),ae}for(ce=c(M,ce);!je.done;ye++,je=I.next())je=J(ce,M,ye,je.value,K),je!==null&&(r&&je.alternate!==null&&ce.delete(je.key===null?ye:je.key),O=m(je,O,ye),ue===null?ae=je:ue.sibling=je,ue=je);return r&&ce.forEach(function(LS){return s(M,LS)}),He&&$r(M,ye),ae}function Ze(M,O,I,K){if(typeof I=="object"&&I!==null&&I.type===Y&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var ae=I.key,ue=O;ue!==null;){if(ue.key===ae){if(ae=I.type,ae===Y){if(ue.tag===7){o(M,ue.sibling),O=f(ue,I.props.children),O.return=M,M=O;break e}}else if(ue.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ne&&nm(ae)===ue.type){o(M,ue.sibling),O=f(ue,I.props),O.ref=Yi(M,ue,I),O.return=M,M=O;break e}o(M,ue);break}else s(M,ue);ue=ue.sibling}I.type===Y?(O=Yr(I.props.children,M.mode,K,I.key),O.return=M,M=O):(K=ol(I.type,I.key,I.props,null,M.mode,K),K.ref=Yi(M,O,I),K.return=M,M=K)}return x(M);case B:e:{for(ue=I.key;O!==null;){if(O.key===ue)if(O.tag===4&&O.stateNode.containerInfo===I.containerInfo&&O.stateNode.implementation===I.implementation){o(M,O.sibling),O=f(O,I.children||[]),O.return=M,M=O;break e}else{o(M,O);break}else s(M,O);O=O.sibling}O=Jc(I,M.mode,K),O.return=M,M=O}return x(M);case Ne:return ue=I._init,Ze(M,O,ue(I._payload),K)}if(Zn(I))return ne(M,O,I,K);if(oe(I))return ie(M,O,I,K);Da(M,I)}
vendor: 2,552 bytes, line 38
38return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,O!==null&&O.tag===6?(o(M,O.sibling),O=f(O,I),O.return=M,M=O):(o(M,O),O=Yc(I,M.mode,K),O.return=M,M=O),x(M)):o(M,O)}return Ze}var Vs=rm(!0),sm=rm(!1),Ia=lr(null),Fa=null,Bs=null,ac=null;function lc(){ac=Bs=Fa=null}function uc(r){var s=Ia.current;$e(Ia),r._currentValue=s}function cc(r,s,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===o)break;r=r.return}}function $s(r,s){Fa=r,ac=Bs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(Mt=!0),r.firstContext=null)}function Zt(r){var s=r._currentValue;if(ac!==r)if(r={context:r,memoizedValue:s,next:null},Bs===null){if(Fa===null)throw Error(n(308));Bs=r,Fa.dependencies={lanes:0,firstContext:r}}else Bs=Bs.next=r;return s}var qr=null;function dc(r){qr===null?qr=[r]:qr.push(r)}function im(r,s,o,c){var f=s.interleaved;return f===null?(o.next=o,dc(s)):(o.next=f.next,f.next=o),s.interleaved=o,Vn(r,c)}function Vn(r,s){r.lanes|=s;var o=r.alternate;for(o!==null&&(o.lanes|=s),o=r,r=r.return;r!==null;)r.childLanes|=s,o=r.alternate,o!==null&&(o.childLanes|=s),o=r,r=r.return;return o.tag===3?o.stateNode:null}var dr=!1;function fc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function om(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Bn(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function fr(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,Vn(r,o)}return f=c.interleaved,f===null?(s.next=s,dc(c)):(s.next=f.next,f.next=s),c.interleaved=s,Vn(r,o)}function za(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,Eu(r,o)}}function am(r,s){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var f=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?f=m=x:m=m.next=x,o=o.next}while(o!==null);m===null?f=m=s:m=m.next=s}else f=m=s;o={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=o;return}
vendor: 9,724 bytes, line 38
38r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}function Ua(r,s,o,c){var f=r.updateQueue;dr=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var T=k,F=T.next;T.next=null,x===null?m=F:x.next=F,x=T;var H=r.alternate;H!==null&&(H=H.updateQueue,k=H.lastBaseUpdate,k!==x&&(k===null?H.firstBaseUpdate=F:k.next=F,H.lastBaseUpdate=T))}if(m!==null){var W=f.baseState;x=0,H=F=T=null,k=m;do{var q=k.lane,J=k.eventTime;if((c&q)===q){H!==null&&(H=H.next={eventTime:J,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ne=r,ie=k;switch(q=s,J=o,ie.tag){case 1:if(ne=ie.payload,typeof ne=="function"){W=ne.call(J,W,q);break e}W=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ie.payload,q=typeof ne=="function"?ne.call(J,W,q):ne,q==null)break e;W=V({},W,q);break e;case 2:dr=!0}}k.callback!==null&&k.lane!==0&&(r.flags|=64,q=f.effects,q===null?f.effects=[k]:q.push(k))}else J={eventTime:J,lane:q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},H===null?(F=H=J,T=W):H=H.next=J,x|=q;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;q=k,k=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);if(H===null&&(T=W),f.baseState=T,f.firstBaseUpdate=F,f.lastBaseUpdate=H,s=f.shared.interleaved,s!==null){f=s;do x|=f.lane,f=f.next;while(f!==s)}else m===null&&(f.shared.lanes=0);Kr|=x,r.lanes=x,r.memoizedState=W}}function lm(r,s,o){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var c=r[s],f=c.callback;if(f!==null){if(c.callback=null,c=o,typeof f!="function")throw Error(n(191,f));f.call(c)}}}var Ji={},En=lr(Ji),Zi=lr(Ji),eo=lr(Ji);function Hr(r){if(r===Ji)throw Error(n(174));return r}function hc(r,s){switch(Ve(eo,s),Ve(Zi,r),Ve(En,Ji),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:pu(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=pu(s,r)}$e(En),Ve(En,s)}function qs(){$e(En),$e(Zi),$e(eo)}function um(r){Hr(eo.current);var s=Hr(En.current),o=pu(s,r.type);s!==o&&(Ve(Zi,r),Ve(En,o))}function pc(r){Zi.current===r&&($e(En),$e(Zi))}var We=lr(0);function Va(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var mc=[];function gc(){for(var r=0;r<mc.length;r++)mc[r]._workInProgressVersionPrimary=null;mc.length=0}var Ba=N.ReactCurrentDispatcher,yc=N.ReactCurrentBatchConfig,Wr=0,Ke=null,it=null,ut=null,$a=!1,to=!1,no=0,nS=0;function St(){throw Error(n(321))}function vc(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!hn(r[o],s[o]))return!1;return!0}function xc(r,s,o,c,f,m){if(Wr=m,Ke=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ba.current=r===null||r.memoizedState===null?oS:aS,r=o(c,f),to){m=0;do{if(to=!1,no=0,25<=m)throw Error(n(301));m+=1,ut=it=null,s.updateQueue=null,Ba.current=lS,r=o(c,f)}while(to)}if(Ba.current=Wa,s=it!==null&&it.next!==null,Wr=0,ut=it=Ke=null,$a=!1,s)throw Error(n(300));return r}function wc(){var r=no!==0;return no=0,r}function Tn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ke.memoizedState=ut=r:ut=ut.next=r,ut}function en(){if(it===null){var r=Ke.alternate;r=r!==null?r.memoizedState:null}else r=it.next;var s=ut===null?Ke.memoizedState:ut.next;if(s!==null)ut=s,it=r;else{if(r===null)throw Error(n(310));it=r,r={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},ut===null?Ke.memoizedState=ut=r:ut=ut.next=r}return ut}function ro(r,s){return typeof s=="function"?s(r):s}function bc(r){var s=en(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=it,f=c.baseQueue,m=o.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}c.baseQueue=f=m,o.pending=null}if(f!==null){m=f.next,c=c.baseState;var k=x=null,T=null,F=m;do{var H=F.lane;if((Wr&H)===H)T!==null&&(T=T.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:r(c,F.action);else{var W={lane:H,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};T===null?(k=T=W,x=c):T=T.next=W,Ke.lanes|=H,Kr|=H}F=F.next}while(F!==null&&F!==m);T===null?x=c:T.next=k,hn(c,s.memoizedState)||(Mt=!0),s.memoizedState=c,s.baseState=x,s.baseQueue=T,o.lastRenderedState=c}if(r=o.interleaved,r!==null){f=r;do m=f.lane,Ke.lanes|=m,Kr|=m,f=f.next;while(f!==r)}else f===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function Sc(r){var s=en(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=o.dispatch,f=o.pending,m=s.memoizedState;if(f!==null){o.pending=null;var x=f=f.next;do m=r(m,x.action),x=x.next;while(x!==f);hn(m,s.memoizedState)||(Mt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),o.lastRenderedState=m}return[m,c]}function cm(){}function dm(r,s){var o=Ke,c=en(),f=s(),m=!hn(c.memoizedState,f);if(m&&(c.memoizedState=f,Mt=!0),c=c.queue,_c(pm.bind(null,o,c,r),[r]),c.getSnapshot!==s||m||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,so(9,hm.bind(null,o,c,f,s),void 0,null),ct===null)throw Error(n(349));(Wr&30)!==0||fm(o,s,f)}return f}function fm(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=Ke.updateQueue,s===null?(s={lastEffect:null,stores:null},Ke.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function hm(r,s,o,c){s.value=o,s.getSnapshot=c,mm(s)&&gm(r)}function pm(r,s,o){return o(function(){mm(s)&&gm(r)})}function mm(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!hn(r,o)}catch{return!0}}function gm(r){var s=Vn(r,1);s!==null&&vn(s,r,1,-1)}function ym(r){var s=Tn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:r},s.queue=r,r=r.dispatch=iS.bind(null,Ke,r),[s.memoizedState,r]}function so(r,s,o,c){return r={tag:r,create:s,destroy:o,deps:c,next:null},s=Ke.updateQueue,s===null?(s={lastEffect:null,stores:null},Ke.updateQueue=s,s.lastEffect=r.next=r):(o=s.lastEffect,o===null?s.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,s.lastEffect=r)),r}function vm(){return en().memoizedState}function qa(r,s,o,c){var f=Tn();Ke.flags|=r,f.memoizedState=so(1|s,o,void 0,c===void 0?null:c)}function Ha(r,s,o,c){var f=en();c=c===void 0?null:c;var m=void 0;if(it!==null){var x=it.memoizedState;if(m=x.destroy,c!==null&&vc(c,x.deps)){f.memoizedState=so(s,o,m,c);return}}Ke.flags|=r,f.memoizedState=so(1|s,o,m,c)}function xm(r,s){return qa(8390656,8,r,s)}function _c(r,s){return Ha(2048,8,r,s)}function wm(r,s){return Ha(4,2,r,s)}function bm(r,s){return Ha(4,4,r,s)}function Sm(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function _m(r,s,o){return o=o!=null?o.concat([r]):null,Ha(4,4,Sm.bind(null,s,r),o)}function Cc(){}function Cm(r,s){var o=en();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&vc(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function km(r,s){var o=en();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&vc(s,c[1])?c[0]:(r=r(),o.memoizedState=[r,s],r)}function Em(r,s,o){return(Wr&21)===0?(r.baseState&&(r.baseState=!1,Mt=!0),r.memoizedState=o):(hn(o,s)||(o=np(),Ke.lanes|=o,Kr|=o,r.baseState=!0),s)}function rS(r,s){var o=Fe;Fe=o!==0&&4>o?o:4,r(!0);var c=yc.transition;yc.transition={};try{r(!1),s()}finally{Fe=o,yc.transition=c}}function Tm(){return en().memoizedState}function sS(r,s,o){var c=gr(r);if(o={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null},Pm(r))Rm(s,o);else if(o=im(r,s,o,c),o!==null){var f=Nt();vn(o,r,c,f),Am(o,s,c)}}function iS(r,s,o){var c=gr(r),f={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null};if(Pm(r))Rm(s,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var x=s.lastRenderedState,k=m(x,o);if(f.hasEagerState=!0,f.eagerState=k,hn(k,x)){var T=s.interleaved;T===null?(f.next=f,dc(s)):(f.next=T.next,T.next=f),s.interleaved=f;return}}catch{}finally{}o=im(r,s,f,c),o!==null&&(f=Nt(),vn(o,r,c,f),Am(o,s,c))}}function Pm(r){var s=r.alternate;return r===Ke||s!==null&&s===Ke}function Rm(r,s){to=$a=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function Am(r,s,o){if((o&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,Eu(r,o)}}var Wa={readContext:Zt,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},oS={readContext:Zt,useCallback:function(r,s){return Tn().memoizedState=[r,s===void 0?null:s],r},useContext:Zt,useEffect:xm,useImperativeHandle:function(r,s,o){return o=o!=null?o.concat([r]):null,qa(4194308,4,Sm.bind(null,s,r),o)},useLayoutEffect:function(r,s){return qa(4194308,4,r,s)},useInsertionEffect:function(r,s){return qa(4,2,r,s)},useMemo:function(r,s){var o=Tn();return s=s===void 0?null:s,r=r(),o.memoizedState=[r,s],r},useReducer:function(r,s,o){var c=Tn();return s=o!==void 0?o(s):s,c.memoizedState=c.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},c.queue=r,r=r.dispatch=sS.bind(null,Ke,r),[c.memoizedState,r]}
vendor: 5,094 bytes, lines 38-40
38,useRef:function(r){var s=Tn();return r={current:r},s.memoizedState=r},useState:ym,useDebugValue:Cc,useDeferredValue:function(r){return Tn().memoizedState=r},useTransition:function(){var r=ym(!1),s=r[0];return r=rS.bind(null,r[1]),Tn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,o){var c=Ke,f=Tn();if(He){if(o===void 0)throw Error(n(407));o=o()}else{if(o=s(),ct===null)throw Error(n(349));(Wr&30)!==0||fm(c,s,o)}f.memoizedState=o;var m={value:o,getSnapshot:s};return f.queue=m,xm(pm.bind(null,c,m,r),[r]),c.flags|=2048,so(9,hm.bind(null,c,m,o,s),void 0,null),o},useId:function(){var r=Tn(),s=ct.identifierPrefix;if(He){var o=Un,c=zn;o=(c&~(1<<32-fn(c)-1)).toString(32)+o,s=":"+s+"R"+o,o=no++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=nS++,s=":"+s+"r"+o.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},aS={readContext:Zt,useCallback:Cm,useContext:Zt,useEffect:_c,useImperativeHandle:_m,useInsertionEffect:wm,useLayoutEffect:bm,useMemo:km,useReducer:bc,useRef:vm,useState:function(){return bc(ro)},useDebugValue:Cc,useDeferredValue:function(r){var s=en();return Em(s,it.memoizedState,r)},useTransition:function(){var r=bc(ro)[0],s=en().memoizedState;return[r,s]},useMutableSource:cm,useSyncExternalStore:dm,useId:Tm,unstable_isNewReconciler:!1},lS={readContext:Zt,useCallback:Cm,useContext:Zt,useEffect:_c,useImperativeHandle:_m,useInsertionEffect:wm,useLayoutEffect:bm,useMemo:km,useReducer:Sc,useRef:vm,useState:function(){return Sc(ro)},useDebugValue:Cc,useDeferredValue:function(r){var s=en();return it===null?s.memoizedState=r:Em(s,it.memoizedState,r)},useTransition:function(){var r=Sc(ro)[0],s=en().memoizedState;return[r,s]},useMutableSource:cm,useSyncExternalStore:dm,useId:Tm,unstable_isNewReconciler:!1};function mn(r,s){if(r&&r.defaultProps){s=V({},s),r=r.defaultProps;for(var o in r)s[o]===void 0&&(s[o]=r[o]);return s}return s}function kc(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:V({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Ka={isMounted:function(r){return(r=r._reactInternals)?zr(r)===r:!1},enqueueSetState:function(r,s,o){r=r._reactInternals;var c=Nt(),f=gr(r),m=Bn(c,f);m.payload=s,o!=null&&(m.callback=o),s=fr(r,m,f),s!==null&&(vn(s,r,f,c),za(s,r,f))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=Nt(),f=gr(r),m=Bn(c,f);m.tag=1,m.payload=s,o!=null&&(m.callback=o),s=fr(r,m,f),s!==null&&(vn(s,r,f,c),za(s,r,f))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=Nt(),c=gr(r),f=Bn(o,c);f.tag=2,s!=null&&(f.callback=s),s=fr(r,f,c),s!==null&&(vn(s,r,c,o),za(s,r,c))}};function Nm(r,s,o,c,f,m,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,x):s.prototype&&s.prototype.isPureReactComponent?!qi(o,c)||!qi(f,m):!0}function Om(r,s,o){var c=!1,f=ur,m=s.contextType;return typeof m=="object"&&m!==null?m=Zt(m):(f=Lt(s)?Vr:bt.current,c=s.contextTypes,m=(c=c!=null)?Is(r,f):ur),s=new s(o,m),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ka,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=f,r.__reactInternalMemoizedMaskedChildContext=m),s}function jm(r,s,o,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,c),s.state!==r&&Ka.enqueueReplaceState(s,s.state,null)}function Ec(r,s,o,c){var f=r.stateNode;f.props=o,f.state=r.memoizedState,f.refs={},fc(r);var m=s.contextType;typeof m=="object"&&m!==null?f.context=Zt(m):(m=Lt(s)?Vr:bt.current,f.context=Is(r,m)),f.state=r.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(kc(r,s,m,o),f.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(s=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),s!==f.state&&Ka.enqueueReplaceState(f,f.state,null),Ua(r,o,f,c),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308)}function Hs(r,s){try{var o="",c=s;do o+=de(c),c=c.return;while(c);var f=o}catch(m){f=`
39Error generating stack: `+m.message+`
40`+m.stack}return{value:r,source:s,stack:f,digest:null}}function Tc(r,s,o){return{value:r,source:null,stack:o??null,digest:s??null}}function Pc(r,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var uS=typeof WeakMap=="function"?WeakMap:Map;function Lm(r,s,o){o=Bn(-1,o),o.tag=3,o.payload={element:null};var c=s.value;return o.callback=function(){el||(el=!0,$c=c),Pc(r,s)},o}function Mm(r,s,o){o=Bn(-1,o),o.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var f=s.value;o.payload=function(){return c(f)},o.callback=function(){Pc(r,s)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){Pc(r,s),typeof c!="function"&&(pr===null?pr=ne
vendor: 40,641 bytes, line 40
40w Set([this]):pr.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})}),o}function Dm(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new uS;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));f.has(o)||(f.add(o),r=_S.bind(null,r,s,o),s.then(r,r))}function Im(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Fm(r,s,o,c,f){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=Bn(-1,1),s.tag=2,fr(o,s,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=f,r)}var cS=N.ReactCurrentOwner,Mt=!1;function At(r,s,o,c){s.child=r===null?sm(s,null,o,c):Vs(s,r.child,o,c)}function zm(r,s,o,c,f){o=o.render;var m=s.ref;return $s(s,f),c=xc(r,s,o,c,m,f),o=wc(),r!==null&&!Mt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,$n(r,s,f)):(He&&o&&nc(s),s.flags|=1,At(r,s,c,f),s.child)}function Um(r,s,o,c,f){if(r===null){var m=o.type;return typeof m=="function"&&!Xc(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=m,Vm(r,s,m,c,f)):(r=ol(o.type,null,c,s,s.mode,f),r.ref=s.ref,r.return=s,s.child=r)}if(m=r.child,(r.lanes&f)===0){var x=m.memoizedProps;if(o=o.compare,o=o!==null?o:qi,o(x,c)&&r.ref===s.ref)return $n(r,s,f)}return s.flags|=1,r=vr(m,c),r.ref=s.ref,r.return=s,s.child=r}function Vm(r,s,o,c,f){if(r!==null){var m=r.memoizedProps;if(qi(m,c)&&r.ref===s.ref)if(Mt=!1,s.pendingProps=c=m,(r.lanes&f)!==0)(r.flags&131072)!==0&&(Mt=!0);else return s.lanes=r.lanes,$n(r,s,f)}return Rc(r,s,o,c,f)}function Bm(r,s,o){var c=s.pendingProps,f=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(Ks,Ht),Ht|=o;else{if((o&1073741824)===0)return r=m!==null?m.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Ve(Ks,Ht),Ht|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:o,Ve(Ks,Ht),Ht|=c}else m!==null?(c=m.baseLanes|o,s.memoizedState=null):c=o,Ve(Ks,Ht),Ht|=c;return At(r,s,f,o),s.child}function $m(r,s){var o=s.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function Rc(r,s,o,c,f){var m=Lt(o)?Vr:bt.current;return m=Is(s,m),$s(s,f),o=xc(r,s,o,c,m,f),c=wc(),r!==null&&!Mt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,$n(r,s,f)):(He&&c&&nc(s),s.flags|=1,At(r,s,o,f),s.child)}function qm(r,s,o,c,f){if(Lt(o)){var m=!0;Na(s)}else m=!1;if($s(s,f),s.stateNode===null)Ga(r,s),Om(s,o,c),Ec(s,o,c,f),c=!0;else if(r===null){var x=s.stateNode,k=s.memoizedProps;x.props=k;var T=x.context,F=o.contextType;typeof F=="object"&&F!==null?F=Zt(F):(F=Lt(o)?Vr:bt.current,F=Is(s,F));var H=o.getDerivedStateFromProps,W=typeof H=="function"||typeof x.getSnapshotBeforeUpdate=="function";W||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k!==c||T!==F)&&jm(s,x,c,F),dr=!1;var q=s.memoizedState;x.state=q,Ua(s,c,x,f),T=s.memoizedState,k!==c||q!==T||jt.current||dr?(typeof H=="function"&&(kc(s,o,H,c),T=s.memoizedState),(k=dr||Nm(s,o,k,c,q,T,F))?(W||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=T),x.props=c,x.state=T,x.context=F,c=k):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{x=s.stateNode,om(r,s),k=s.memoizedProps,F=s.type===s.elementType?k:mn(s.type,k),x.props=F,W=s.pendingProps,q=x.context,T=o.contextType,typeof T=="object"&&T!==null?T=Zt(T):(T=Lt(o)?Vr:bt.current,T=Is(s,T));var J=o.getDerivedStateFromProps;(H=typeof J=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k!==W||q!==T)&&jm(s,x,c,T),dr=!1,q=s.memoizedState,x.state=q,Ua(s,c,x,f);var ne=s.memoizedState;k!==W||q!==ne||jt.current||dr?(typeof J=="function"&&(kc(s,o,J,c),ne=s.memoizedState),(F=dr||Nm(s,o,F,c,q,ne,T)||!1)?(H||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,ne,T),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,ne,T)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=ne),x.props=c,x.state=ne,x.context=T,c=F):(typeof x.componentDidUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=1024),c=!1)}return Ac(r,s,o,c,m,f)}function Ac(r,s,o,c,f,m){$m(r,s);var x=(s.flags&128)!==0;if(!c&&!x)return f&&Gp(s,o,!1),$n(r,s,m);c=s.stateNode,cS.current=s;var k=x&&typeof o.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&x?(s.child=Vs(s,r.child,null,m),s.child=Vs(s,null,k,m)):At(r,s,k,m),s.memoizedState=c.state,f&&Gp(s,o,!0),s.child}function Hm(r){var s=r.stateNode;s.pendingContext?Kp(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Kp(r,s.context,!1),hc(r,s.containerInfo)}function Wm(r,s,o,c,f){return Us(),oc(f),s.flags|=256,At(r,s,o,c),s.child}var Nc={dehydrated:null,treeContext:null,retryLane:0};function Oc(r){return{baseLanes:r,cachePool:null,transitions:null}}function Km(r,s,o){var c=s.pendingProps,f=We.current,m=!1,x=(s.flags&128)!==0,k;if((k=x)||(k=r!==null&&r.memoizedState===null?!1:(f&2)!==0),k?(m=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(f|=1),Ve(We,f&1),r===null)return ic(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(x=c.children,r=c.fallback,m?(c=s.mode,m=s.child,x={mode:"hidden",children:x},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=x):m=al(x,c,0,null),r=Yr(r,c,o,null),m.return=s,r.return=s,m.sibling=r,s.child=m,s.child.memoizedState=Oc(o),s.memoizedState=Nc,r):jc(s,x));if(f=r.memoizedState,f!==null&&(k=f.dehydrated,k!==null))return dS(r,s,x,c,k,f,o);if(m){m=c.fallback,x=s.mode,f=r.child,k=f.sibling;var T={mode:"hidden",children:c.children};return(x&1)===0&&s.child!==f?(c=s.child,c.childLanes=0,c.pendingProps=T,s.deletions=null):(c=vr(f,T),c.subtreeFlags=f.subtreeFlags&14680064),k!==null?m=vr(k,m):(m=Yr(m,x,o,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,x=r.child.memoizedState,x=x===null?Oc(o):{baseLanes:x.baseLanes|o,cachePool:null,transitions:x.transitions},m.memoizedState=x,m.childLanes=r.childLanes&~o,s.memoizedState=Nc,c}return m=r.child,r=m.sibling,c=vr(m,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=o),c.return=s,c.sibling=null,r!==null&&(o=s.deletions,o===null?(s.deletions=[r],s.flags|=16):o.push(r)),s.child=c,s.memoizedState=null,c}function jc(r,s){return s=al({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function Qa(r,s,o,c){return c!==null&&oc(c),Vs(s,r.child,null,o),r=jc(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function dS(r,s,o,c,f,m,x){if(o)return s.flags&256?(s.flags&=-257,c=Tc(Error(n(422))),Qa(r,s,x,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(m=c.fallback,f=s.mode,c=al({mode:"visible",children:c.children},f,0,null),m=Yr(m,f,x,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&Vs(s,r.child,null,x),s.child.memoizedState=Oc(x),s.memoizedState=Nc,m);if((s.mode&1)===0)return Qa(r,s,x,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var k=c.dgst;return c=k,m=Error(n(419)),c=Tc(m,c,void 0),Qa(r,s,x,c)}if(k=(x&r.childLanes)!==0,Mt||k){if(c=ct,c!==null){switch(x&-x){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|x))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,Vn(r,f),vn(c,r,f,-1))}return Gc(),c=Tc(Error(n(421))),Qa(r,s,x,c)}return f.data==="$?"?(s.flags|=128,s.child=r.child,s=CS.bind(null,r),f._reactRetry=s,null):(r=m.treeContext,qt=ar(f.nextSibling),$t=s,He=!0,pn=null,r!==null&&(Yt[Jt++]=zn,Yt[Jt++]=Un,Yt[Jt++]=Br,zn=r.id,Un=r.overflow,Br=s),s=jc(s,c.children),s.flags|=4096,s)}function Qm(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),cc(r.return,s,o)}function Lc(r,s,o,c,f){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:f}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=o,m.tailMode=f)}function Gm(r,s,o){var c=s.pendingProps,f=c.revealOrder,m=c.tail;if(At(r,s,c.children,o),c=We.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Qm(r,o,s);else if(r.tag===19)Qm(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Ve(We,c),(s.mode&1)===0)s.memoizedState=null;else switch(f){case"forwards":for(o=s.child,f=null;o!==null;)r=o.alternate,r!==null&&Va(r)===null&&(f=o),o=o.sibling;o=f,o===null?(f=s.child,s.child=null):(f=o.sibling,o.sibling=null),Lc(s,!1,f,o,m);break;case"backwards":for(o=null,f=s.child,s.child=null;f!==null;){if(r=f.alternate,r!==null&&Va(r)===null){s.child=f;break}r=f.sibling,f.sibling=o,o=f,f=r}Lc(s,!0,o,null,m);break;case"together":Lc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ga(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function $n(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Kr|=s.lanes,(o&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,o=vr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=vr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function fS(r,s,o){switch(s.tag){case 3:Hm(s),Us();break;case 5:um(s);break;case 1:Lt(s.type)&&Na(s);break;case 4:hc(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,f=s.memoizedProps.value;Ve(Ia,c._currentValue),c._currentValue=f;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Ve(We,We.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?Km(r,s,o):(Ve(We,We.current&1),r=$n(r,s,o),r!==null?r.sibling:null);Ve(We,We.current&1);break;case 19:if(c=(o&s.childLanes)!==0,(r.flags&128)!==0){if(c)return Gm(r,s,o);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ve(We,We.current),c)break;return null;case 22:case 23:return s.lanes=0,Bm(r,s,o)}return $n(r,s,o)}var Xm,Mc,Ym,Jm;Xm=function(r,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Mc=function(){},Ym=function(r,s,o,c){var f=r.memoizedProps;if(f!==c){r=s.stateNode,Hr(En.current);var m=null;switch(o){case"input":f=Gt(r,f),c=Gt(r,c),m=[];break;case"select":f=V({},f,{value:void 0}),c=V({},c,{value:void 0}),m=[];break;case"textarea":f=Dn(r,f),c=Dn(r,c),m=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Pa)}mu(o,c);var x;o=null;for(F in f)if(!c.hasOwnProperty(F)&&f.hasOwnProperty(F)&&f[F]!=null)if(F==="style"){var k=f[F];for(x in k)k.hasOwnProperty(x)&&(o||(o={}),o[x]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(a.hasOwnProperty(F)?m||(m=[]):(m=m||[]).push(F,null));for(F in c){var T=c[F];if(k=f!=null?f[F]:void 0,c.hasOwnProperty(F)&&T!==k&&(T!=null||k!=null))if(F==="style")if(k){for(x in k)!k.hasOwnProperty(x)||T&&T.hasOwnProperty(x)||(o||(o={}),o[x]="");for(x in T)T.hasOwnProperty(x)&&k[x]!==T[x]&&(o||(o={}),o[x]=T[x])}else o||(m||(m=[]),m.push(F,o)),o=T;else F==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,k=k?k.__html:void 0,T!=null&&k!==T&&(m=m||[]).push(F,T)):F==="children"?typeof T!="string"&&typeof T!="number"||(m=m||[]).push(F,""+T):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(a.hasOwnProperty(F)?(T!=null&&F==="onScroll"&&Be("scroll",r),m||k===T||(m=[])):(m=m||[]).push(F,T))}o&&(m=m||[]).push("style",o);var F=m;(s.updateQueue=F)&&(s.flags|=4)}},Jm=function(r,s,o,c){o!==c&&(s.flags|=4)};function io(r,s){if(!He)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function _t(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(s)for(var f=r.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=o,s}function hS(r,s,o){var c=s.pendingProps;switch(rc(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(s),null;case 1:return Lt(s.type)&&Aa(),_t(s),null;case 3:return c=s.stateNode,qs(),$e(jt),$e(bt),gc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Ma(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,pn!==null&&(Wc(pn),pn=null))),Mc(r,s),_t(s),null;case 5:pc(s);var f=Hr(eo.current);if(o=s.type,r!==null&&s.stateNode!=null)Ym(r,s,o,c,f),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return _t(s),null}if(r=Hr(En.current),Ma(s)){c=s.stateNode,o=s.type;var m=s.memoizedProps;switch(c[kn]=s,c[Gi]=m,r=(s.mode&1)!==0,o){case"dialog":Be("cancel",c),Be("close",c);break;case"iframe":case"object":case"embed":Be("load",c);break;case"video":case"audio":for(f=0;f<Wi.length;f++)Be(Wi[f],c);break;case"source":Be("error",c);break;case"img":case"image":case"link":Be("error",c),Be("load",c);break;case"details":Be("toggle",c);break;case"input":Xt(c,m),Be("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Be("invalid",c);break;case"textarea":Mh(c,m),Be("invalid",c)}mu(o,m),f=null;for(var x in m)if(m.hasOwnProperty(x)){var k=m[x];x==="children"?typeof k=="string"?c.textContent!==k&&(m.suppressHydrationWarning!==!0&&Ta(c.textContent,k,r),f=["children",k]):typeof k=="number"&&c.textContent!==""+k&&(m.suppressHydrationWarning!==!0&&Ta(c.textContent,k,r),f=["children",""+k]):a.hasOwnProperty(x)&&k!=null&&x==="onScroll"&&Be("scroll",c)}switch(o){case"input":Qt(c),cn(c,m,!0);break;case"textarea":Qt(c),Ih(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Pa)}c=f,s.updateQueue=c,c!==null&&(s.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Fh(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=x.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=x.createElement(o,{is:c.is}):(r=x.createElement(o),o==="select"&&(x=r,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):r=x.createElementNS(r,o),r[kn]=s,r[Gi]=c,Xm(r,s,!1,!1),s.stateNode=r;e:{switch(x=gu(o,c),o){case"dialog":Be("cancel",r),Be("close",r),f=c;break;case"iframe":case"object":case"embed":Be("load",r),f=c;break;case"video":case"audio":for(f=0;f<Wi.length;f++)Be(Wi[f],r);f=c;break;case"source":Be("error",r),f=c;break;case"img":case"image":case"link":Be("error",r),Be("load",r),f=c;break;case"details":Be("toggle",r),f=c;break;case"input":Xt(r,c),f=Gt(r,c),Be("invalid",r);break;case"option":f=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},f=V({},c,{value:void 0}),Be("invalid",r);break;case"textarea":Mh(r,c),f=Dn(r,c),Be("invalid",r);break;default:f=c}mu(o,f),k=f;for(m in k)if(k.hasOwnProperty(m)){var T=k[m];m==="style"?Vh(r,T):m==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&zh(r,T)):m==="children"?typeof T=="string"?(o!=="textarea"||T!=="")&&Ti(r,T):typeof T=="number"&&Ti(r,""+T):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?T!=null&&m==="onScroll"&&Be("scroll",r):T!=null&&P(r,m,T,x))}switch(o){case"input":Qt(r),cn(r,c,!1);break;case"textarea":Qt(r),Ih(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Ee(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?er(r,!!c.multiple,m,!1):c.defaultValue!=null&&er(r,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(r.onclick=Pa)}switch(o){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return _t(s),null;case 6:if(r&&s.stateNode!=null)Jm(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(o=Hr(eo.current),Hr(En.current),Ma(s)){if(c=s.stateNode,o=s.memoizedProps,c[kn]=s,(m=c.nodeValue!==o)&&(r=$t,r!==null))switch(r.tag){case 3:Ta(c.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Ta(c.nodeValue,o,(r.mode&1)!==0)}m&&(s.flags|=4)}else c=(o.nodeType===9?o:o.ownerDocument).createTextNode(c),c[kn]=s,s.stateNode=c}return _t(s),null;case 13:if($e(We),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(He&&qt!==null&&(s.mode&1)!==0&&(s.flags&128)===0)tm(),Us(),s.flags|=98560,m=!1;else if(m=Ma(s),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[kn]=s}else Us(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;_t(s),m=!1}else pn!==null&&(Wc(pn),pn=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(We.current&1)!==0?ot===0&&(ot=3):Gc())),s.updateQueue!==null&&(s.flags|=4),_t(s),null);case 4:return qs(),Mc(r,s),r===null&&Ki(s.stateNode.containerInfo),_t(s),null;case 10:return uc(s.type._context),_t(s),null;case 17:return Lt(s.type)&&Aa(),_t(s),null;case 19:if($e(We),m=s.memoizedState,m===null)return _t(s),null;if(c=(s.flags&128)!==0,x=m.rendering,x===null)if(c)io(m,!1);else{if(ot!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(x=Va(r),x!==null){for(s.flags|=128,io(m,!1),c=x.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=o,o=s.child;o!==null;)m=o,r=c,m.flags&=14680066,x=m.alternate,x===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=x.childLanes,m.lanes=x.lanes,m.child=x.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=x.memoizedProps,m.memoizedState=x.memoizedState,m.updateQueue=x.updateQueue,m.type=x.type,r=x.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return Ve(We,We.current&1|2),s.child}r=r.sibling}m.tail!==null&&Je()>Qs&&(s.flags|=128,c=!0,io(m,!1),s.lanes=4194304)}else{if(!c)if(r=Va(x),r!==null){if(s.flags|=128,c=!0,o=r.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),io(m,!0),m.tail===null&&m.tailMode==="hidden"&&!x.alternate&&!He)return _t(s),null}else 2*Je()-m.renderingStartTime>Qs&&o!==1073741824&&(s.flags|=128,c=!0,io(m,!1),s.lanes=4194304);m.isBackwards?(x.sibling=s.child,s.child=x):(o=m.last,o!==null?o.sibling=x:s.child=x,m.last=x)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Je(),s.sibling=null,o=We.current,Ve(We,c?o&1|2:o&1),s):(_t(s),null);case 22:case 23:return Qc(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Ht&1073741824)!==0&&(_t(s),s.subtreeFlags&6&&(s.flags|=8192)):_t(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function pS(r,s){switch(rc(s),s.tag){case 1:return Lt(s.type)&&Aa(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return qs(),$e(jt),$e(bt),gc(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return pc(s),null;case 13:if($e(We),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Us()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return $e(We),null;case 4:return qs(),null;case 10:return uc(s.type._context),null;case 22:case 23:return Qc(),null;case 24:return null;default:return null}}var Xa=!1,Ct=!1,mS=typeof WeakSet=="function"?WeakSet:Set,te=null;function Ws(r,s){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(c){Ge(r,s,c)}else o.current=null}function Dc(r,s,o){try{o()}catch(c){Ge(r,s,c)}}var Zm=!1;function gS(r,s){if(Qu=ga,r=Np(),Uu(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var x=0,k=-1,T=-1,F=0,H=0,W=r,q=null;t:for(;;){for(var J;W!==o||f!==0&&W.nodeType!==3||(k=x+f),W!==m||c!==0&&W.nodeType!==3||(T=x+c),W.nodeType===3&&(x+=W.nodeValue.length),(J=W.firstChild)!==null;)q=W,W=J;for(;;){if(W===r)break t;if(q===o&&++F===f&&(k=x),q===m&&++H===c&&(T=x),(J=W.nextSibling)!==null)break;W=q,q=W.parentNode}W=J}o=k===-1||T===-1?null:{start:k,end:T}}else o=null}o=o||{start:0,end:0}}else o=null;for(Gu={focusedElem:r,selectionRange:o},ga=!1,te=s;te!==null;)if(s=te,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,te=r;else for(;te!==null;){s=te;try{var ne=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var ie=ne.memoizedProps,Ze=ne.memoizedState,M=s.stateNode,O=M.getSnapshotBeforeUpdate(s.elementType===s.type?ie:mn(s.type,ie),Ze);M.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var I=s.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(K){Ge(s,s.return,K)}if(r=s.sibling,r!==null){r.return=s.return,te=r;break}te=s.return}return ne=Zm,Zm=!1,ne}function oo(r,s,o){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&r)===r){var m=f.destroy;f.destroy=void 0,m!==void 0&&Dc(s,o,m)}f=f.next}while(f!==c)}}function Ya(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&r)===r){var c=o.create;o.destroy=c()}o=o.next}while(o!==s)}}function Ic(r){var s=r.ref;if(s!==null){var o=r.stateNode;switch(r.tag){case 5:r=o;break;default:r=o}typeof s=="function"?s(r):s.current=r}}function eg(r){var s=r.alternate;s!==null&&(r.alternate=null,eg(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[kn],delete s[Gi],delete s[Zu],delete s[Jb],delete s[Zb])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function tg(r){return r.tag===5||r.tag===3||r.tag===4}function ng(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||tg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Fc(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(r,s):o.insertBefore(r,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(r,o)):(s=o,s.appendChild(r)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Pa));else if(c!==4&&(r=r.child,r!==null))for(Fc(r,s,o),r=r.sibling;r!==null;)Fc(r,s,o),r=r.sibling}function zc(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(zc(r,s,o),r=r.sibling;r!==null;)zc(r,s,o),r=r.sibling}var mt=null,gn=!1;function hr(r,s,o){for(o=o.child;o!==null;)rg(r,s,o),o=o.sibling}function rg(r,s,o){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(ca,o)}catch{}switch(o.tag){case 5:Ct||Ws(o,s);case 6:var c=mt,f=gn;mt=null,hr(r,s,o),mt=c,gn=f,mt!==null&&(gn?(r=mt,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):mt.removeChild(o.stateNode));break;case 18:mt!==null&&(gn?(r=mt,o=o.stateNode,r.nodeType===8?Ju(r.parentNode,o):r.nodeType===1&&Ju(r,o),Fi(r)):Ju(mt,o.stateNode));break;case 4:c=mt,f=gn,mt=o.stateNode.containerInfo,gn=!0,hr(r,s,o),mt=c,gn=f;break;case 0:case 11:case 14:case 15:if(!Ct&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var m=f,x=m.destroy;m=m.tag,x!==void 0&&((m&2)!==0||(m&4)!==0)&&Dc(o,s,x),f=f.next}while(f!==c)}hr(r,s,o);break;case 1:if(!Ct&&(Ws(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=o.memoizedProps,c.state=o.memoizedState,c.componentWillUnmount()}catch(k){Ge(o,s,k)}hr(r,s,o);break;case 21:hr(r,s,o);break;case 22:o.mode&1?(Ct=(c=Ct)||o.memoizedState!==null,hr(r,s,o),Ct=c):hr(r,s,o);break;default:hr(r,s,o)}}function sg(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new mS),s.forEach(function(c){var f=kS.bind(null,r,c);o.has(c)||(o.add(c),c.then(f,f))})}}function yn(r,s){var o=s.deletions;if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];try{var m=r,x=s,k=x;e:for(;k!==null;){switch(k.tag){case 5:mt=k.stateNode,gn=!1;break e;case 3:mt=k.stateNode.containerInfo,gn=!0;break e;case 4:mt=k.stateNode.containerInfo,gn=!0;break e}k=k.return}if(mt===null)throw Error(n(160));rg(m,x,f),mt=null,gn=!1;var T=f.alternate;T!==null&&(T.return=null),f.return=null}catch(F){Ge(f,s,F)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)ig(s,r),s=s.sibling}function ig(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(yn(s,r),Pn(r),c&4){try{oo(3,r,r.return),Ya(3,r)}catch(ie){Ge(r,r.return,ie)}try{oo(5,r,r.return)}catch(ie){Ge(r,r.return,ie)}}break;case 1:yn(s,r),Pn(r),c&512&&o!==null&&Ws(o,o.return);break;case 5:if(yn(s,r),Pn(r),c&512&&o!==null&&Ws(o,o.return),r.flags&32){var f=r.stateNode;try{Ti(f,"")}catch(ie){Ge(r,r.return,ie)}}if(c&4&&(f=r.stateNode,f!=null)){var m=r.memoizedProps,x=o!==null?o.memoizedProps:m,k=r.type,T=r.updateQueue;if(r.updateQueue=null,T!==null)try{k==="input"&&m.type==="radio"&&m.name!=null&&we(f,m),gu(k,x);var F=gu(k,m);for(x=0;x<T.length;x+=2){var H=T[x],W=T[x+1];H==="style"?Vh(f,W):H==="dangerouslySetInnerHTML"?zh(f,W):H==="children"?Ti(f,W):P(f,H,W,F)}switch(k){case"input":pt(f,m);break;case"textarea":Dh(f,m);break;case"select":var q=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var J=m.value;J!=null?er(f,!!m.multiple,J,!1):q!==!!m.multiple&&(m.defaultValue!=null?er(f,!!m.multiple,m.defaultValue,!0):er(f,!!m.multiple,m.multiple?[]:"",!1))}f[Gi]=m}catch(ie){Ge(r,r.return,ie)}}break;case 6:if(yn(s,r),Pn(r),c&4){if(r.stateNode===null)throw Error(n(162));f=r.stateNode,m=r.memoizedProps;try{f.nodeValue=m}catch(ie){Ge(r,r.return,ie)}}break;case 3:if(yn(s,r),Pn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Fi(s.containerInfo)}catch(ie){Ge(r,r.return,ie)}break;case 4:yn(s,r),Pn(r);break;case 13:yn(s,r),Pn(r),f=r.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(Bc=Je())),c&4&&sg(r);break;case 22:if(H=o!==null&&o.memoizedState!==null,r.mode&1?(Ct=(F=Ct)||H,yn(s,r),Ct=F):yn(s,r),Pn(r),c&8192){if(F=r.memoizedState!==null,(r.stateNode.isHidden=F)&&!H&&(r.mode&1)!==0)for(te=r,H=r.child;H!==null;){for(W=te=H;te!==null;){switch(q=te,J=q.child,q.tag){case 0:case 11:case 14:case 15:oo(4,q,q.return);break;case 1:Ws(q,q.return);var ne=q.stateNode;if(typeof ne.componentWillUnmount=="function"){c=q,o=q.return;try{s=c,ne.props=s.memoizedProps,ne.state=s.memoizedState,ne.componentWillUnmount()}catch(ie){Ge(c,o,ie)}}break;case 5:Ws(q,q.return);break;case 22:if(q.memoizedState!==null){lg(W);continue}}J!==null?(J.return=q,te=J):lg(W)}H=H.sibling}e:for(H=null,W=r;;){if(W.tag===5){if(H===null){H=W;try{f=W.stateNode,F?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(k=W.stateNode,T=W.memoizedProps.style,x=T!=null&&T.hasOwnProperty("display")?T.display:null,k.style.display=Uh("display",x))}catch(ie){Ge(r,r.return,ie)}}}else if(W.tag===6){if(H===null)try{W.stateNode.nodeValue=F?"":W.memoizedProps}catch(ie){Ge(r,r.return,ie)}}else if((W.tag!==22&&W.tag!==23||W.memoizedState===null||W===r)&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===r)break e;for(;W.sibling===null;){if(W.return===null||W.return===r)break e;H===W&&(H=null),W=W.return}H===W&&(H=null),W.sibling.return=W.return,W=W.sibling}}break;case 19:yn(s,r),Pn(r),c&4&&sg(r);break;case 21:break;default:yn(s,r),Pn(r)}}function Pn(r){var s=r.flags;if(s&2){try{e:{for(var o=r.return;o!==null;){if(tg(o)){var c=o;break e}o=o.return}throw Error(n(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(Ti(f,""),c.flags&=-33);var m=ng(r);zc(r,m,f);break;case 3:case 4:var x=c.stateNode.containerInfo,k=ng(r);Fc(r,k,x);break;default:throw Error(n(161))}}catch(T){Ge(r,r.return,T)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function yS(r,s,o){te=r,og(r)}function og(r,s,o){for(var c=(r.mode&1)!==0;te!==null;){var f=te,m=f.child;if(f.tag===22&&c){var x=f.memoizedState!==null||Xa;if(!x){var k=f.alternate,T=k!==null&&k.memoizedState!==null||Ct;k=Xa;var F=Ct;if(Xa=x,(Ct=T)&&!F)for(te=f;te!==null;)x=te,T=x.child,x.tag===22&&x.memoizedState!==null?ug(f):T!==null?(T.return=x,te=T):ug(f);for(;m!==null;)te=m,og(m),m=m.sibling;te=f,Xa=k,Ct=F}ag(r)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,te=m):ag(r)}}function ag(r){for(;te!==null;){var s=te;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Ct||Ya(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Ct)if(o===null)c.componentDidMount();else{var f=s.elementType===s.type?o.memoizedProps:mn(s.type,o.memoizedProps);c.componentDidUpdate(f,o.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&lm(s,m,c);break;case 3:var x=s.updateQueue;if(x!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}lm(s,x,o)}break;case 5:var k=s.stateNode;if(o===null&&s.flags&4){o=k;var T=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&o.focus();break;case"img":T.src&&(o.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var F=s.alternate;if(F!==null){var H=F.memoizedState;if(H!==null){var W=H.dehydrated;W!==null&&Fi(W)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ct||s.flags&512&&Ic(s)}catch(q){Ge(s,s.return,q)}}if(s===r){te=null;break}if(o=s.sibling,o!==null){o.return=s.return,te=o;break}te=s.return}}function lg(r){for(;te!==null;){var s=te;if(s===r){te=null;break}var o=s.sibling;if(o!==null){o.return=s.return,te=o;break}te=s.return}}function ug(r){for(;te!==null;){var s=te;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Ya(4,s)}catch(T){Ge(s,o,T)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var f=s.return;try{c.componentDidMount()}catch(T){Ge(s,f,T)}}var m=s.return;try{Ic(s)}catch(T){Ge(s,m,T)}break;case 5:var x=s.return;try{Ic(s)}catch(T){Ge(s,x,T)}}}catch(T){Ge(s,s.return,T)}if(s===r){te=null;break}var k=s.sibling;if(k!==null){k.return=s.return,te=k;break}te=s.return}}var vS=Math.ceil,Ja=N.ReactCurrentDispatcher,Uc=N.ReactCurrentOwner,tn=N.ReactCurrentBatchConfig,Oe=0,ct=null,nt=null,gt=0,Ht=0,Ks=lr(0),ot=0,ao=null,Kr=0,Za=0,Vc=0,lo=null,Dt=null,Bc=0,Qs=1/0,qn=null,el=!1,$c=null,pr=null,tl=!1,mr=null,nl=0,uo=0,qc=null,rl=-1,sl=0;function Nt(){return(Oe&6)!==0?Je():rl!==-1?rl:rl=Je()}function gr(r){return(r.mode&1)===0?1:(Oe&2)!==0&&gt!==0?gt&-gt:tS.transition!==null?(sl===0&&(sl=np()),sl):(r=Fe,r!==0||(r=window.event,r=r===void 0?16:dp(r.type)),r)}function vn(r,s,o,c){if(50<uo)throw uo=0,qc=null,Error(n(185));ji(r,o,c),((Oe&2)===0||r!==ct)&&(r===ct&&((Oe&2)===0&&(Za|=o),ot===4&&yr(r,gt)),It(r,c),o===1&&Oe===0&&(s.mode&1)===0&&(Qs=Je()+500,Oa&&cr()))}function It(r,s){var o=r.callbackNode;tb(r,s);var c=ha(r,r===ct?gt:0);if(c===0)o!==null&&Zh(o),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(o!=null&&Zh(o),s===1)r.tag===0?eS(dg.bind(null,r)):Xp(dg.bind(null,r)),Xb(function(){(Oe&6)===0&&cr()}),o=null;else{switch(rp(c)){case 1:o=_u;break;case 4:o=ep;break;case 16:o=ua;break;case 536870912:o=tp;break;default:o=ua}o=xg(o,cg.bind(null,r))}r.callbackPriority=s,r.callbackNode=o}}function cg(r,s){if(rl=-1,sl=0,(Oe&6)!==0)throw Error(n(327));var o=r.callbackNode;if(Gs()&&r.callbackNode!==o)return null;var c=ha(r,r===ct?gt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=il(r,c);else{s=c;var f=Oe;Oe|=2;var m=hg();(ct!==r||gt!==s)&&(qn=null,Qs=Je()+500,Gr(r,s));do try{bS();break}catch(k){fg(r,k)}while(!0);lc(),Ja.current=m,Oe=f,nt!==null?s=0:(ct=null,gt=0,s=ot)}if(s!==0){if(s===2&&(f=Cu(r),f!==0&&(c=f,s=Hc(r,f))),s===1)throw o=ao,Gr(r,0),yr(r,c),It(r,Je()),o;if(s===6)yr(r,c);else{if(f=r.current.alternate,(c&30)===0&&!xS(f)&&(s=il(r,c),s===2&&(m=Cu(r),m!==0&&(c=m,s=Hc(r,m))),s===1))throw o=ao,Gr(r,0),yr(r,c),It(r,Je()),o;switch(r.finishedWork=f,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Xr(r,Dt,qn);break;case 3:if(yr(r,c),(c&130023424)===c&&(s=Bc+500-Je(),10<s)){if(ha(r,0)!==0)break;if(f=r.suspendedLanes,(f&c)!==c){Nt(),r.pingedLanes|=r.suspendedLanes&f;break}r.timeoutHandle=Yu(Xr.bind(null,r,Dt,qn),s);break}Xr(r,Dt,qn);break;case 4:if(yr(r,c),(c&4194240)===c)break;for(s=r.eventTimes,f=-1;0<c;){var x=31-fn(c);m=1<<x,x=s[x],x>f&&(f=x),c&=~m}if(c=f,c=Je()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*vS(c/1960))-c,10<c){r.timeoutHandle=Yu(Xr.bind(null,r,Dt,qn),c);break}Xr(r,Dt,qn);break;case 5:Xr(r,Dt,qn);break;default:throw Error(n(329))}}}return It(r,Je()),r.callbackNode===o?cg.bind(null,r):null}function Hc(r,s){var o=lo;return r.current.memoizedState.isDehydrated&&(Gr(r,s).flags|=256),r=il(r,s),r!==2&&(s=Dt,Dt=o,s!==null&&Wc(s)),r}function Wc(r){Dt===null?Dt=r:Dt.push.apply(Dt,r)}function xS(r){for(var s=r;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var c=0;c<o.length;c++){var f=o[c],m=f.getSnapshot;f=f.value;try{if(!hn(m(),f))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function yr(r,s){for(s&=~Vc,s&=~Za,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var o=31-fn(s),c=1<<o;r[o]=-1,s&=~c}}function dg(r){if((Oe&6)!==0)throw Error(n(327));Gs();var s=ha(r,0);if((s&1)===0)return It(r,Je()),null;var o=il(r,s);if(r.tag!==0&&o===2){var c=Cu(r);c!==0&&(s=c,o=Hc(r,c))}if(o===1)throw o=ao,Gr(r,0),yr(r,s),It(r,Je()),o;if(o===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Xr(r,Dt,qn),It(r,Je()),null}function Kc(r,s){var o=Oe;Oe|=1;try{return r(s)}finally{Oe=o,Oe===0&&(Qs=Je()+500,Oa&&cr())}}function Qr(r){mr!==null&&mr.tag===0&&(Oe&6)===0&&Gs();var s=Oe;Oe|=1;var o=tn.transition,c=Fe;try{if(tn.transition=null,Fe=1,r)return r()}finally{Fe=c,tn.transition=o,Oe=s,(Oe&6)===0&&cr()}}function Qc(){Ht=Ks.current,$e(Ks)}function Gr(r,s){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,Gb(o)),nt!==null)for(o=nt.return;o!==null;){var c=o;switch(rc(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Aa();break;case 3:qs(),$e(jt),$e(bt),gc();break;case 5:pc(c);break;case 4:qs();break;case 13:$e(We);break;case 19:$e(We);break;case 10:uc(c.type._context);break;case 22:case 23:Qc()}o=o.return}if(ct=r,nt=r=vr(r.current,null),gt=Ht=s,ot=0,ao=null,Vc=Za=Kr=0,Dt=lo=null,qr!==null){for(s=0;s<qr.length;s++)if(o=qr[s],c=o.interleaved,c!==null){o.interleaved=null;var f=c.next,m=o.pending;if(m!==null){var x=m.next;m.next=f,c.next=x}o.pending=c}qr=null}return r}function fg(r,s){do{var o=nt;try{if(lc(),Ba.current=Wa,$a){for(var c=Ke.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}$a=!1}if(Wr=0,ut=it=Ke=null,to=!1,no=0,Uc.current=null,o===null||o.return===null){ot=1,ao=s,nt=null;break}e:{var m=r,x=o.return,k=o,T=s;if(s=gt,k.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=T,H=k,W=H.tag;if((H.mode&1)===0&&(W===0||W===11||W===15)){var q=H.alternate;q?(H.updateQueue=q.updateQueue,H.memoizedState=q.memoizedState,H.lanes=q.lanes):(H.updateQueue=null,H.memoizedState=null)}var J=Im(x);if(J!==null){J.flags&=-257,Fm(J,x,k,m,s),J.mode&1&&Dm(m,F,s),s=J,T=F;var ne=s.updateQueue;if(ne===null){var ie=new Set;ie.add(T),s.updateQueue=ie}else ne.add(T);break e}else{if((s&1)===0){Dm(m,F,s),Gc();break e}T=Error(n(426))}}else if(He&&k.mode&1){var Ze=Im(x);if(Ze!==null){(Ze.flags&65536)===0&&(Ze.flags|=256),Fm(Ze,x,k,m,s),oc(Hs(T,k));break e}}m=T=Hs(T,k),ot!==4&&(ot=2),lo===null?lo=[m]:lo.push(m),m=x;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var M=Lm(m,T,s);am(m,M);break e;case 1:k=T;var O=m.type,I=m.stateNode;if((m.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(pr===null||!pr.has(I)))){m.flags|=65536,s&=-s,m.lanes|=s;var K=Mm(m,k,s);am(m,K);break e}}m=m.return}while(m!==null)}mg(o)}catch(ae){s=ae,nt===o&&o!==null&&(nt=o=o.return);continue}break}while(!0)}function hg(){var r=Ja.current;return Ja.current=Wa,r===null?Wa:r}function Gc(){(ot===0||ot===3||ot===2)&&(ot=4),ct===null||(Kr&268435455)===0&&(Za&268435455)===0||yr(ct,gt)}function il(r,s){var o=Oe;Oe|=2;var c=hg();(ct!==r||gt!==s)&&(qn=null,Gr(r,s));do try{wS();break}catch(f){fg(r,f)}while(!0);if(lc(),Oe=o,Ja.current=c,nt!==null)throw Error(n(261));return ct=null,gt=0,ot}function wS(){for(;nt!==null;)pg(nt)}function bS(){for(;nt!==null&&!W1();)pg(nt)}function pg(r){var s=vg(r.alternate,r,Ht);r.memoizedProps=r.pendingProps,s===null?mg(r):nt=s,Uc.current=null}function mg(r){var s=r;do{var o=s.alternate;if(r=s.return,(s.flags&32768)===0){if(o=hS(o,s,Ht),o!==null){nt=o;return}}else{if(o=pS(o,s),o!==null){o.flags&=32767,nt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{ot=6,nt=null;return}}if(s=s.sibling,s!==null){nt=s;return}nt=s=r}while(s!==null);ot===0&&(ot=5)}function Xr(r,s,o){var c=Fe,f=tn.transition;try{tn.transition=null,Fe=1,SS(r,s,o,c)}finally{tn.transition=f,Fe=c}return null}function SS(r,s,o,c){do Gs();while(mr!==null);if((Oe&6)!==0)throw Error(n(327));o=r.finishedWork;var f=r.finishedLanes;if(o===null)return null;if(r.finishedWork=null,r.finishedLanes=0,o===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=o.lanes|o.childLanes;if(nb(r,m),r===ct&&(nt=ct=null,gt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||tl||(tl=!0,xg(ua,function(){return Gs(),null})),m=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||m){m=tn.transition,tn.transition=null;var x=Fe;Fe=1;var k=Oe;Oe|=4,Uc.current=null,gS(r,o),ig(o,r),Bb(Gu),ga=!!Qu,Gu=Qu=null,r.current=o,yS(o),K1(),Oe=k,Fe=x,tn.transition=m}else r.current=o;if(tl&&(tl=!1,mr=r,nl=f),m=r.pendingLanes,m===0&&(pr=null),X1(o.stateNode),It(r,Je(
vendor: 4,201 bytes, line 40
40)),s!==null)for(c=r.onRecoverableError,o=0;o<s.length;o++)f=s[o],c(f.value,{componentStack:f.stack,digest:f.digest});if(el)throw el=!1,r=$c,$c=null,r;return(nl&1)!==0&&r.tag!==0&&Gs(),m=r.pendingLanes,(m&1)!==0?r===qc?uo++:(uo=0,qc=r):uo=0,cr(),null}function Gs(){if(mr!==null){var r=rp(nl),s=tn.transition,o=Fe;try{if(tn.transition=null,Fe=16>r?16:r,mr===null)var c=!1;else{if(r=mr,mr=null,nl=0,(Oe&6)!==0)throw Error(n(331));var f=Oe;for(Oe|=4,te=r.current;te!==null;){var m=te,x=m.child;if((te.flags&16)!==0){var k=m.deletions;if(k!==null){for(var T=0;T<k.length;T++){var F=k[T];for(te=F;te!==null;){var H=te;switch(H.tag){case 0:case 11:case 15:oo(8,H,m)}var W=H.child;if(W!==null)W.return=H,te=W;else for(;te!==null;){H=te;var q=H.sibling,J=H.return;if(eg(H),H===F){te=null;break}if(q!==null){q.return=J,te=q;break}te=J}}}var ne=m.alternate;if(ne!==null){var ie=ne.child;if(ie!==null){ne.child=null;do{var Ze=ie.sibling;ie.sibling=null,ie=Ze}while(ie!==null)}}te=m}}if((m.subtreeFlags&2064)!==0&&x!==null)x.return=m,te=x;else e:for(;te!==null;){if(m=te,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:oo(9,m,m.return)}var M=m.sibling;if(M!==null){M.return=m.return,te=M;break e}te=m.return}}var O=r.current;for(te=O;te!==null;){x=te;var I=x.child;if((x.subtreeFlags&2064)!==0&&I!==null)I.return=x,te=I;else e:for(x=O;te!==null;){if(k=te,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:Ya(9,k)}}catch(ae){Ge(k,k.return,ae)}if(k===x){te=null;break e}var K=k.sibling;if(K!==null){K.return=k.return,te=K;break e}te=k.return}}if(Oe=f,cr(),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(ca,r)}catch{}c=!0}return c}finally{Fe=o,tn.transition=s}}return!1}function gg(r,s,o){s=Hs(o,s),s=Lm(r,s,1),r=fr(r,s,1),s=Nt(),r!==null&&(ji(r,1,s),It(r,s))}function Ge(r,s,o){if(r.tag===3)gg(r,r,o);else for(;s!==null;){if(s.tag===3){gg(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(pr===null||!pr.has(c))){r=Hs(o,r),r=Mm(s,r,1),s=fr(s,r,1),r=Nt(),s!==null&&(ji(s,1,r),It(s,r));break}}s=s.return}}function _S(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),s=Nt(),r.pingedLanes|=r.suspendedLanes&o,ct===r&&(gt&o)===o&&(ot===4||ot===3&&(gt&130023424)===gt&&500>Je()-Bc?Gr(r,0):Vc|=o),It(r,s)}function yg(r,s){s===0&&((r.mode&1)===0?s=1:(s=fa,fa<<=1,(fa&130023424)===0&&(fa=4194304)));var o=Nt();r=Vn(r,s),r!==null&&(ji(r,s,o),It(r,o))}function CS(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),yg(r,o)}function kS(r,s){var o=0;switch(r.tag){case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(o=f.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),yg(r,o)}var vg;vg=function(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps||jt.current)Mt=!0;else{if((r.lanes&o)===0&&(s.flags&128)===0)return Mt=!1,fS(r,s,o);Mt=(r.flags&131072)!==0}else Mt=!1,He&&(s.flags&1048576)!==0&&Yp(s,La,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;Ga(r,s),r=s.pendingProps;var f=Is(s,bt.current);$s(s,o),f=xc(null,s,c,r,f,o);var m=wc();return s.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Lt(c)?(m=!0,Na(s)):m=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,fc(s),f.updater=Ka,s.stateNode=f,f._reactInternals=s,Ec(s,c,r,o),s=Ac(null,s,c,!0,m,o)):(s.tag=0,He&&m&&nc(s),At(null,s,f,o),s=s.child),s;case 16:c=s.elementType;e:{switch(Ga(r,s),r=s.pendingProps,f=c._init,c=f(c._payload),s.type=c,f=s.tag=TS(c),r=mn(c,r),f){case 0:s=Rc(null,s,c,r,o);break e;case 1:s=qm(null,s,c,r,o);break e;case 11:s=zm(null,s,c,r,o);break e;case 14:s=Um(null,s,c,mn(c.type,r),o);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),Rc(r,s,c,f,o);case 1:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),qm(r,s,c,f,o);case 3:e:{if(Hm(s),r===null)throw Error(n(387));c=s.pendingProps,m=s.memoizedState,f=m.element,om(r,s),Ua(s,c,null,o);var x=s.memoizedState;if(c=x.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pe
vendor: 8,436 bytes, line 40
40ndingSuspenseBoundaries,transitions:x.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){f=Hs(Error(n(423)),s),s=Wm(r,s,c,o,f);break e}else if(c!==f){f=Hs(Error(n(424)),s),s=Wm(r,s,c,o,f);break e}else for(qt=ar(s.stateNode.containerInfo.firstChild),$t=s,He=!0,pn=null,o=sm(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Us(),c===f){s=$n(r,s,o);break e}At(r,s,c,o)}s=s.child}return s;case 5:return um(s),r===null&&ic(s),c=s.type,f=s.pendingProps,m=r!==null?r.memoizedProps:null,x=f.children,Xu(c,f)?x=null:m!==null&&Xu(c,m)&&(s.flags|=32),$m(r,s),At(r,s,x,o),s.child;case 6:return r===null&&ic(s),null;case 13:return Km(r,s,o);case 4:return hc(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=Vs(s,null,c,o):At(r,s,c,o),s.child;case 11:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),zm(r,s,c,f,o);case 7:return At(r,s,s.pendingProps,o),s.child;case 8:return At(r,s,s.pendingProps.children,o),s.child;case 12:return At(r,s,s.pendingProps.children,o),s.child;case 10:e:{if(c=s.type._context,f=s.pendingProps,m=s.memoizedProps,x=f.value,Ve(Ia,c._currentValue),c._currentValue=x,m!==null)if(hn(m.value,x)){if(m.children===f.children&&!jt.current){s=$n(r,s,o);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var k=m.dependencies;if(k!==null){x=m.child;for(var T=k.firstContext;T!==null;){if(T.context===c){if(m.tag===1){T=Bn(-1,o&-o),T.tag=2;var F=m.updateQueue;if(F!==null){F=F.shared;var H=F.pending;H===null?T.next=T:(T.next=H.next,H.next=T),F.pending=T}}m.lanes|=o,T=m.alternate,T!==null&&(T.lanes|=o),cc(m.return,o,s),k.lanes|=o;break}T=T.next}}else if(m.tag===10)x=m.type===s.type?null:m.child;else if(m.tag===18){if(x=m.return,x===null)throw Error(n(341));x.lanes|=o,k=x.alternate,k!==null&&(k.lanes|=o),cc(x,o,s),x=m.sibling}else x=m.child;if(x!==null)x.return=m;else for(x=m;x!==null;){if(x===s){x=null;break}if(m=x.sibling,m!==null){m.return=x.return,x=m;break}x=x.return}m=x}At(r,s,f.children,o),s=s.child}return s;case 9:return f=s.type,c=s.pendingProps.children,$s(s,o),f=Zt(f),c=c(f),s.flags|=1,At(r,s,c,o),s.child;case 14:return c=s.type,f=mn(c,s.pendingProps),f=mn(c.type,f),Um(r,s,c,f,o);case 15:return Vm(r,s,s.type,s.pendingProps,o);case 17:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),Ga(r,s),s.tag=1,Lt(c)?(r=!0,Na(s)):r=!1,$s(s,o),Om(s,c,f),Ec(s,c,f,o),Ac(null,s,c,!0,r,o);case 19:return Gm(r,s,o);case 22:return Bm(r,s,o)}throw Error(n(156,s.tag))};function xg(r,s){return Jh(r,s)}function ES(r,s,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(r,s,o,c){return new ES(r,s,o,c)}function Xc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function TS(r){if(typeof r=="function")return Xc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Me)return 11;if(r===ze)return 14}return 2}function vr(r,s){var o=r.alternate;return o===null?(o=nn(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&14680064,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o}function ol(r,s,o,c,f,m){var x=2;if(c=r,typeof r=="function")Xc(r)&&(x=1);else if(typeof r=="string")x=5;else e:switch(r){case Y:return Yr(o.children,f,m,s);case U:x=8,f|=8;break;case Z:return r=nn(12,o,s,f|2),r.elementType=Z,r.lanes=m,r;case Se:return r=nn(13,o,s,f),r.elementType=Se,r.lanes=m,r;case ke:return r=nn(19,o,s,f),r.elementType=ke,r.lanes=m,r;case he:return al(o,f,m,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case le:x=10;break e;case be:x=9;break e;case Me:x=11;break e;case ze:x=14;break e;case Ne:x=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=nn(x,o,s,f),s.elementType=r,s.type=c,s.lanes=m,s}function Yr(r,s,o,c){return r=nn(7,r,c,s),r.lanes=o,r}function al(r,s,o,c){return r=nn(22,r,c,s),r.elementType=he,r.lanes=o,r.stateNode={isHidden:!1},r}function Yc(r,s,o){return r=nn(6,r,null,s),r.lanes=o,r}function Jc(r,s,o){return s=nn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function PS(r,s,o,c,f){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ku(0),this.expirationTimes=ku(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ku(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Zc(r,s,o,c,f,m,x,k,T){return r=new PS(r,s,o,k,T),s===1?(s=1,m===!0&&(s|=8)):s=0,m=nn(3,null,null,s),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},fc(m),r}function RS(r,s,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:c==null?null:""+c,children:r,containerInfo:s,implementation:o}}function wg(r){if(!r)return ur;r=r._reactInternals;e:{if(zr(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Lt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var o=r.type;if(Lt(o))return Qp(r,o,s)}return s}function bg(r,s,o,c,f,m,x,k,T){return r=Zc(o,c,!0,r,f,m,x,k,T),r.context=wg(null),o=r.current,c=Nt(),f=gr(o),m=Bn(c,f),m.callback=s??null,fr(o,m,f),r.current.lanes=f,ji(r,f,c),It(r,c),r}function ll(r,s,o,c){var f=s.current,m=Nt(),x=gr(f);return o=wg(o),s.context===null?s.context=o:s.pendingContext=o,s=Bn(m,x),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=fr(f,s,x),r!==null&&(vn(r,f,x,m),za(r,f,x)),x}function ul(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Sg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function ed(r,s){Sg(r,s),(r=r.alternate)&&Sg(r,s)}function AS(){return null}var _g=typeof reportError=="function"?reportError:function(r){console.error(r)};function td(r){this._internalRoot=r}cl.prototype.render=td.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));ll(r,s,null,null)},cl.prototype.unmount=td.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Qr(function(){ll(null,r,null,null)}),s[In]=null}};function cl(r){this._internalRoot=r}cl.prototype.unstable_scheduleHydration=function(r){if(r){var s=op();r={blockedOn:null,target:r,priority:s};for(var o=0;o<sr.length&&s!==0&&s<sr[o].priority;o++);sr.splice(o,0,r),o===0&&up(r)}};function nd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function dl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Cg(){}function NS(r,s,o,c,f){if(f){if(typeof c=="function"){var m=c;c=function(){var F=ul(x);m.call(F)}}var x=bg(s,c,r,0,null,!1,!1,"",Cg);return r._reactRootContainer=x,r[In]=x.current,Ki(r.nodeType===8?r.parentNode:r),Qr(),x}for(;f=r.lastChild;)r.removeChild(f);if(typeof c=="function"){var k=c;c=function(){var F=ul(T);k.call(F)}}var T=Zc(r,0,!1,null,null,!1,!1,"",Cg);return r._reactRootContainer=T,r[In]=T.current,Ki(r.nodeType===8?r.parentNode:r),Qr(function(){ll(s,T,o,c)}),T}function fl(r,s,o,c,f){var m=o._reactRootContainer;if(m){var x=m;if(typeof f=="function"){var k=f;f=function(){var T=ul(x);k.call(T)}}ll(s,x,r,f)}else x=NS(o,s,r,f,c);return ul(x)}sp=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var o=Oi(s.pendingLanes);
vendor: 4,853 bytes, line 40
40o!==0&&(Eu(s,o|1),It(s,Je()),(Oe&6)===0&&(Qs=Je()+500,cr()))}break;case 13:Qr(function(){var c=Vn(r,1);if(c!==null){var f=Nt();vn(c,r,1,f)}}),ed(r,1)}},Tu=function(r){if(r.tag===13){var s=Vn(r,134217728);if(s!==null){var o=Nt();vn(s,r,134217728,o)}ed(r,134217728)}},ip=function(r){if(r.tag===13){var s=gr(r),o=Vn(r,s);if(o!==null){var c=Nt();vn(o,r,s,c)}ed(r,s)}},op=function(){return Fe},ap=function(r,s){var o=Fe;try{return Fe=r,s()}finally{Fe=o}},xu=function(r,s,o){switch(s){case"input":if(pt(r,o),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var c=o[s];if(c!==r&&c.form===r.form){var f=Ra(c);if(!f)throw Error(n(90));ht(c),pt(c,f)}}}break;case"textarea":Dh(r,o);break;case"select":s=o.value,s!=null&&er(r,!!o.multiple,s,!1)}},Hh=Kc,Wh=Qr;var OS={usingClientEntryPoint:!1,Events:[Xi,Ms,Ra,$h,qh,Kc]},co={findFiberByHostInstance:Ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jS={bundleType:co.bundleType,version:co.version,rendererPackageName:co.rendererPackageName,rendererConfig:co.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Xh(r),r===null?null:r.stateNode},findFiberByHostInstance:co.findFiberByHostInstance||AS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hl.isDisabled&&hl.supportsFiber)try{ca=hl.inject(jS),Cn=hl}catch{}}return Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OS,Ft.createPortal=function(r,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nd(s))throw Error(n(200));return RS(r,s,null,o)},Ft.createRoot=function(r,s){if(!nd(r))throw Error(n(299));var o=!1,c="",f=_g;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=Zc(r,1,!1,null,null,o,!1,c,f),r[In]=s.current,Ki(r.nodeType===8?r.parentNode:r),new td(s)},Ft.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Xh(s),r=r===null?null:r.stateNode,r},Ft.flushSync=function(r){return Qr(r)},Ft.hydrate=function(r,s,o){if(!dl(s))throw Error(n(200));return fl(null,r,s,!0,o)},Ft.hydrateRoot=function(r,s,o){if(!nd(r))throw Error(n(405));var c=o!=null&&o.hydratedSources||null,f=!1,m="",x=_g;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),s=bg(s,null,r,1,o??null,f,!1,m,x),r[In]=s.current,Ki(r),c)for(r=0;r<c.length;r++)o=c[r],f=o._getVersion,f=f(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,f]:s.mutableSourceEagerHydrationData.push(o,f);return new cl(s)},Ft.render=function(r,s,o){if(!dl(s))throw Error(n(200));return fl(null,r,s,!1,o)},Ft.unmountComponentAtNode=function(r){if(!dl(r))throw Error(n(40));return r._reactRootContainer?(Qr(function(){fl(null,null,r,!1,function(){r._reactRootContainer=null,r[In]=null})}),!0):!1},Ft.unstable_batchedUpdates=Kc,Ft.unstable_renderSubtreeIntoContainer=function(r,s,o,c){if(!dl(o))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return fl(r,s,o,!1,c)},Ft.version="18.3.1-next-f1338f8080-20240426",Ft}var jg;function Cv(){if(jg)return od.exports;jg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),od.exports=HS(),od.exports}var Lg;function WS(){if(Lg)return ml;Lg=1;var t=Cv();return ml.createRoot=t.createRoot,ml.hydrateRoot=t.hydrateRoot,ml}var KS=WS();const QS=_v(KS),GS=20,XS=1e6,Gn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let ud=0;function YS(){return ud=(ud+1)%Number.MAX_VALUE,ud.toString()}const cd=new Map,Mg=t=>{if(cd.has(t))return;const e=setTimeout(()=>{cd.delete(t),To({type:Gn.REMOVE_TOAST,toastId:t})},XS);cd.set(t,e)},JS=(t,e)=>{switch(e.type){case Gn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,GS)};case Gn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case Gn.DISMISS_TOAST:{const{toastId:n}=e;
40return n?Mg(n):t.toasts.forEach(i=>{Mg(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case Gn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Pl=[];let Rl={toasts:[]};function To(t){Rl=JS(Rl,t),Pl.forEach(e=>{e(Rl)})}function ZS({...t}){const e=YS(),n=a=>To({type:Gn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>To({type:Gn.DISMISS_TOAST,toastId:e});return To({type:Gn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:n}}function e2(){const[t,e]=D.useState(Rl);return D.useEffect(()=>(Pl.push(e),()=>{const n=Pl.indexOf(e);n>-1&&Pl.splice(n,1)}),[t]),{...t,toast:ZS,dismiss:n=>To({type:Gn.DISMISS_TOAST,toastId:n})}}function kv(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=kv(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Ev(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=kv(t))&&(i&&(i+=" "),i+=e);return i}const Dg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ig=Ev,t2=(t,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return Ig(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:l}=e,u=Object.keys(a).map(p=>{const g=n==null?void 0:n[p],y=l==null?void 0:l[p];if(g===null)return null;const w=Dg(g)||Dg(y);return a[p][w]}),d=n&&Object.entries(n).reduce((p,g)=>{let[y,w]=g;return w===void 0||(p[y]=w),p},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:y,className:w,..._}=g;return Object.entries(_).every(E=>{let[C,S]=E;return Array.isArray(S)?S.includes({...l,...d}[C]):{...l,...d}[C]===S})?[...p,y,w]:p},[]);return Ig(t,u,h,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 n2=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tv=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var r2={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 s2=D.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},h)=>D.createElement("svg",{ref:h,...r2,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:Tv("lucide",a),...d},[...u.map(([p,g])=>D.createElement(p,g)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Te=(t,e)=>{const n=D.forwardRef(({className:i,...a},l)=>D.createElement(s2,{ref:l,iconNode:e,className:Tv(`lucide-${n2(t)}`,i),...a}));return n.displayName=`${t}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const i2=[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]],o2=Te("Baby",i2);/**
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 a2=[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]],l2=Te("Bath",a2);/**
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 u2=[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]],c2=Te("Bed",u2);/**
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 d2=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
80],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],f2=Te("Building2",d2);/**
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 h2=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Pv=Te("Car",h2);/**
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 p2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Rv=Te("Check",p2);/**
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 m2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],g2=Te("ChevronDown",m2);/**
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 y2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],v2=Te("ChevronLeft",y2);/**
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 x2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],w2=Te("ChevronRight",x2);/**
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 b2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],S2=Te("CircleDot",b2);/**
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 _2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],C2=Te("Clock",_2);/**
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 k2=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],E2=Te("Dog",k2);/**
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 T2=[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]],P2=Te("Dumbbell",T2);/**
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 R2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],A2=Te("Eye",R2);/**
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 N2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],O2=Te("Globe",N2);/**
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 j2=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],L2=Te("Heart",j2);/**
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 M2=[["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"}]],D2=Te("Mail",M2);/**
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 I2=[["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"}]],Rf=Te("MapPin",I2);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const F2=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],z2=Te("Maximize",F2);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const U2=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],V2=Te("Menu",U2);/**
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 B2=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Zl=Te("MessageCircle",B2);/**
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 $2=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],q2=Te("PartyPopper",$2);/**
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 H2=[["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"}]],Af=Te("Phone",H2);
175/**
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 W2=[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]],K2=Te("Pill",W2);/**
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 Q2=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],G2=Te("Route",Q2);/**
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 X2=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Y2=Te("School",X2);/**
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 J2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Fg=Te("Send",J2);/**
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 Z2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],e_=Te("Shield",Z2);/**
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 t_=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],n_=Te("ShoppingCart",t_);/**
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 r_=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],s_=Te("Sparkles",r_);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const i_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],o_=Te("Target",i_);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const a_=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],l_=Te("TreePine",a_);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const u_=[["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"}]],c_=Te("Users",u_);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const d_=[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]],f_=Te("UtensilsCrossed",d_);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const h_=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],p_=Te("Waves",h_);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const m_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,275 bytes, line 240
240],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],eu=Te("X",m_),g_=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},y_=(t,e)=>({classGroupId:t,validator:e}),Av=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ul="-",zg=[],v_="arbitrary..",x_=t=>{const e=b_(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return w_(u);const d=u.split(Ul),h=d[0]===""&&d.length>1?1:0;return Nv(d,h,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],p=n[u];return h?p?g_(p,h):h:p||zg}return n[u]||zg}}},Nv=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const p=Nv(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(Ul):t.slice(e).join(Ul),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(d))return g.classGroupId}},w_=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?v_+i:void 0})(),b_=t=>{const{theme:e,classGroups:n}=t;return S_(n,e)},S_=(t,e)=>{const n=Av();for(const i in t){const a=t[i];Nf(a,n,i,e)}return n},Nf=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];__(u,e,n,i)}},__=(t,e,n,i)=>{if(typeof t=="string"){C_(t,e,n);return}if(typeof t=="function"){k_(t,e,n,i);return}E_(t,e,n,i)},C_=(t,e,n)=>{const i=t===""?e:Ov(e,t);i.classGroupId=n},k_=(t,e,n,i)=>{if(T_(t)){Nf(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(y_(n,t))},E_=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[d,h]=a[u];Nf(h,Ov(e,d),n,i)}},Ov=(t,e)=>{let n=t;const i=e.split(Ul),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=n.nextPart.get(u);d||(d=Av(),n.nextPart.set(u,d)),n=d}return n},T_=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,P_=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const a=(l,u)=>{n[l]=u,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in n?n[l]=u:a(l,u)}}},Id="!",Ug=":",R_=[],Vg=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),A_=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const l=[];let u=0,d=0,h=0,p;const g=a.length;for(let C=0;C<g;C++){const S=a[C];if(u===0&&d===0){if(S===Ug){l.push(a.slice(h,C)),h=C+1;continue}if(S==="/"){p=C;continue}}S==="["?u++:S==="]"?u--:S==="("?d++:S===")"&&d--}const y=l.length===0?a:a.slice(h);let w=y,_=!1;y.endsWith(Id)?(w=y.slice(0,-1),_=!0):y.startsWith(Id)&&(w=y.slice(1),_=!0);const E=p&&p>h?p-h:void 0;return Vg(l,_,w,E)};if(e){const a=e+Ug,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Vg(R_,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},N_=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",h=e.has(u);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},O_=t=>({cache:P_(t.cacheSize),parseClassName:A_(t),sortModifiers:N_(t),...x_(t)}),j_=/\s+/,L_=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],d=t.trim().split(j_);let h="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:y,modifiers:w,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:C}=n(g);if(y){h=g+(h.length>0?" "+h:h);continue}let S=!!C,b=i(S?E.substring(0,C):E);if(!b){if(!S){h=g+(h.length>0?" "+h:h);continue}if(b=i(E),!b){h=g+(h.length>0?" "+h:h);continue}S=!1}const A=w.length===0?"":w.length===1?w[0]:l(w).join(":"),P=_?A+Id:A,N=P+b;if(u.indexOf(N)>-1)continue;u.push(N);const z=a(b,S);for(let B=0;B<z.length;++B){const Y=z[B];u.push(P+Y)}h=g+(h.length>0?" "+h:h)}return h},M_=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=jv(n))&&(a&&(a+=" "),a+=i);return a},jv=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=jv(t[i]))&&(n&&(n+=" "),n+=e);return n},D_=(t,...e)=>{let n,i,a,l;const u=h=>{const p=e.reduce((g,y)=>y(g),t());return n=O_(p),i=n.cache.get,a=n.cache.set,l=d,d(h)},d=h=>{const p=i(h);if(p)return p;const g=L_(h,n);return a(h,g),g};return l=u,(...h)=>l(M_(...h))},I_=[],at=t=>{const e=n=>n[t]||I_;return e.isThemeGetter=!0,e},Lv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,F_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,z_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U_=/\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$/,V_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,B_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=t=>F_.test(t),_e=t=>!!t&&!Number.isNaN(Number(t)),br=t=>!!t&&Number.isInteger(Number(t)),dd=t=>t.endsWith("%")&&_e(t.slice(0,-1)),Hn=t=>z_.test(t),Dv=()=>!0,q_=t=>U_.test(t)&&!V_.test(t),Of=()=>!1,H_=t=>B_.test(t),W_=t=>$_.test(t),K_=t=>!re(t)&&!se(t),Q_=t=>Ir(t,zv,Of),re=t=>Lv.test(t),Jr=t=>
vendor: 4,481 bytes, line 240
240Ir(t,Uv,q_),Bg=t=>Ir(t,nC,_e),G_=t=>Ir(t,Bv,Dv),X_=t=>Ir(t,Vv,Of),$g=t=>Ir(t,Iv,Of),Y_=t=>Ir(t,Fv,W_),gl=t=>Ir(t,$v,H_),se=t=>Mv.test(t),ho=t=>_s(t,Uv),J_=t=>_s(t,Vv),qg=t=>_s(t,Iv),Z_=t=>_s(t,zv),eC=t=>_s(t,Fv),yl=t=>_s(t,$v,!0),tC=t=>_s(t,Bv,!0),Ir=(t,e,n)=>{const i=Lv.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},_s=(t,e,n=!1)=>{const i=Mv.exec(t);return i?i[1]?e(i[1]):n:!1},Iv=t=>t==="position"||t==="percentage",Fv=t=>t==="image"||t==="url",zv=t=>t==="length"||t==="size"||t==="bg-size",Uv=t=>t==="length",nC=t=>t==="number",Vv=t=>t==="family-name",Bv=t=>t==="number"||t==="weight",$v=t=>t==="shadow",rC=()=>{const t=at("color"),e=at("font"),n=at("text"),i=at("font-weight"),a=at("tracking"),l=at("leading"),u=at("breakpoint"),d=at("container"),h=at("spacing"),p=at("radius"),g=at("shadow"),y=at("inset-shadow"),w=at("text-shadow"),_=at("drop-shadow"),E=at("blur"),C=at("perspective"),S=at("aspect"),b=at("ease"),A=at("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...N(),se,re],B=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],U=()=>[se,re,h],Z=()=>[wr,"full","auto",...U()],le=()=>[br,"none","subgrid",se,re],be=()=>["auto",{span:["full",br,se,re]},br,se,re],Me=()=>[br,"auto",se,re],Se=()=>["auto","min","max","fr",se,re],ke=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ze=()=>["start","end","center","stretch","center-safe","end-safe"],Ne=()=>["auto",...U()],he=()=>[wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],Q=()=>[wr,"screen","full","dvw","lvw","svw","min","max","fit",...U()],oe=()=>[wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],V=()=>[t,se,re],j=()=>[...N(),qg,$g,{position:[se,re]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",Z_,Q_,{size:[se,re]}],ge=()=>[dd,ho,Jr],de=()=>["","none","full",p,se,re],G=()=>["",_e,ho,Jr],xe=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[_e,dd,qg,$g],lt=()=>["","none",E,se,re],Qt=()=>["none",_e,se,re],ht=()=>["none",_e,se,re],un=()=>[_e,se,re],Gt=()=>[wr,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Hn],breakpoint:[Hn],color:[Dv],container:[Hn],"drop-shadow":[Hn],ease:["in","out","in-out"],font:[K_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Hn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Hn],shadow:[Hn],spacing:["px",_e],text:[Hn],"text-shadow":[Hn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wr,re,se,S]}],container:["container"],columns:[{columns:[_e,re,se,d]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}
vendor: 4,784 bytes, line 240
240],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[br,"auto",se,re]}],basis:[{basis:[wr,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,wr,"auto","initial","none",re]}],grow:[{grow:["",_e,se,re]}],shrink:[{shrink:["",_e,se,re]}],order:[{order:[br,"first","last","none",se,re]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":Me()}],"col-end":[{"col-end":Me()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":Me()}],"row-end":[{"row-end":Me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...ke(),"normal"]}],"justify-items":[{"justify-items":[...ze(),"normal"]}],"justify-self":[{"justify-self":["auto",...ze()]}],"align-content":[{content:["normal",...ke()]}],"align-items":[{items:[...ze(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ze(),{baseline:["","last"]}]}],"place-content":[{"place-content":ke()}],"place-items":[{"place-items":[...ze(),"baseline"]}],"place-self":[{"place-self":["auto",...ze()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:Ne()}],mx:[{mx:Ne()}],my:[{my:Ne()}],ms:[{ms:Ne()}],me:[{me:Ne()}],mbs:[{mbs:Ne()}],mbe:[{mbe:Ne()}],mt:[{mt:Ne()}],mr:[{mr:Ne()}],mb:[{mb:Ne()}],ml:[{ml:Ne()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:he()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[d,"screen",...he()]}],"min-w":[{"min-w":[d,"screen","none",...he()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...he()]}],h:[{h:["screen","lh",...he()]}],"min-h":[{"min-h":["screen","lh","none",...he()]}],"max-h":[{"max-h":["screen","lh",...he()]}],"font-size":[{text:["base",n,ho,Jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,tC,G_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dd,re]}],"font-family":[{font:[J_,X_,e]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,se,re]}],"line-clamp":[{"line-clamp":[_e,"none",se,Bg]}],leading:[{leading:[l,...U()]}],"list-image":[{"list-image":["none",se,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",se,Jr]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[_e,"auto",se,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,re]}],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",se,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},br,se,re],radial:["",se,re],conic:[br,se,re]},eC,Y_]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ge()}
vendor: 7,388 bytes, line 240
240],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,se,re]}],"outline-w":[{outline:["",_e,ho,Jr]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",g,yl,gl]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,yl,gl]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[_e,Jr]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,yl,gl]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[_e,se,re]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[se,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,re]}],filter:[{filter:["","none",se,re]}],blur:[{blur:lt()}],brightness:[{brightness:[_e,se,re]}],contrast:[{contrast:[_e,se,re]}],"drop-shadow":[{"drop-shadow":["","none",_,yl,gl]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",_e,se,re]}],"hue-rotate":[{"hue-rotate":[_e,se,re]}],invert:[{invert:["",_e,se,re]}],saturate:[{saturate:[_e,se,re]}],sepia:[{sepia:["",_e,se,re]}],"backdrop-filter":[{"backdrop-filter":["","none",se,re]}],"backdrop-blur":[{"backdrop-blur":lt()}],"backdrop-brightness":[{"backdrop-brightness":[_e,se,re]}],"backdrop-contrast":[{"backdrop-contrast":[_e,se,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,se,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,se,re]}],"backdrop-invert":[{"backdrop-invert":["",_e,se,re]}],"backdrop-opacity":[{"backdrop-opacity":[_e,se,re]}],"backdrop-saturate":[{"backdrop-saturate":[_e,se,re]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,se,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",se,re]}],ease:[{ease:["linear","initial",b,se,re]}],delay:[{delay:[_e,se,re]}],animate:[{animate:["none",A,se,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,se,re]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Qt()}],"rotate-x":[{"rotate-x":Qt()}],"rotate-y":[{"rotate-y":Qt()}],"rotate-z":[{"rotate-z":Qt()}],scale:[{scale:ht()}],"scale-x":[{"scale-x":ht()}],"scale-y":[{"scale-y":ht()}],"scale-z":[{"scale-z":ht()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[se,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Gt()}],"translate-x":[{"translate-x":Gt()}],"translate-y":[{"translate-y":Gt()}],"translate-z":[{"translate-z":Gt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}
vendor: 6,955 bytes, line 240
240],"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",se,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,re]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[_e,ho,Jr,Bg]}],stroke:[{stroke:["none",...V()]}],"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"]}},sC=D_(rC);function Qo(...t){return sC(Ev(t))}const qv=D.forwardRef(({...t},e)=>v.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));qv.displayName="ToastProvider";const Hv=D.forwardRef(({...t},e)=>v.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));Hv.displayName="ToastViewport";const iC=t2("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"}}),Wv=D.forwardRef(({className:t,variant:e,...n},i)=>v.jsx("div",{ref:i,className:Qo(iC({variant:e}),t),...n}));Wv.displayName="Toast";const oC=D.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:Qo("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));oC.displayName="ToastAction";const Kv=D.forwardRef(({className:t,...e},n)=>v.jsx("button",{ref:n,className:Qo("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 3,793 bytes, line 240
240/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:v.jsx(eu,{className:"h-4 w-4"})}));Kv.displayName="ToastClose";const Qv=D.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:Qo("text-sm font-semibold",t),...e}));Qv.displayName="ToastTitle";const Gv=D.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:Qo("text-sm opacity-90",t),...e}));Gv.displayName="ToastDescription";function aC(){const{toasts:t}=e2();return v.jsxs(qv,{children:[t.map(function({id:e,title:n,description:i,action:a,...l}){return v.jsxs(Wv,{...l,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(Qv,{children:n}),i&&v.jsx(Gv,{children:i})]}),a,v.jsx(Kv,{})]},e)}),v.jsx(Hv,{})]})}var Go=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lC={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Cr,Tf,fv,uC=(fv=class{constructor(){fe(this,Cr,lC);fe(this,Tf,!1)}setTimeoutProvider(t){ee(this,Cr,t)}setTimeout(t,e){return R(this,Cr).setTimeout(t,e)}clearTimeout(t){R(this,Cr).clearTimeout(t)}setInterval(t,e){return R(this,Cr).setInterval(t,e)}clearInterval(t){R(this,Cr).clearInterval(t)}},Cr=new WeakMap,Tf=new WeakMap,fv),ss=new uC;function cC(t){setTimeout(t,0)}var ws=typeof window>"u"||"Deno"in globalThis;function Ut(){}function dC(t,e){return typeof t=="function"?t(e):t}function Fd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Xv(t,e){return Math.max(t+(e||0)-Date.now(),0)}function jr(t,e){return typeof t=="function"?t(e):t}function an(t,e){return typeof t=="function"?t(e):t}function Hg(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:d}=t;if(u){if(i){if(e.queryHash!==jf(u,e.options))return!1}else if(!Lo(e.queryKey,u))return!1}if(n!=="all"){const h=e.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||a&&a!==e.state.fetchStatus||l&&!l(e))}function Wg(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(jo(e.options.mutationKey)!==jo(l))return!1}else if(!Lo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function jf(t,e){return((e==null?void 0:e.queryKeyHashFn)||jo)(t)}function jo(t){return JSON.stringify(t,(e,n)=>Ud(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function Lo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Lo(t[n],e[n])):!1}var fC=Object.prototype.hasOwnProperty;function Yv(t,e,n=0){if(t===e)return t;if(n>500)return e;const i=Kg(t)&&Kg(e);if(!i&&!(Ud(t)&&Ud(e)))return e;const l=(i?t:Object.keys(t)).length,u=i?e:Object.keys(e),d=u.length,h=i?new Array(d):{};let p=0;for(let g=0;g<d;g++){const y=i?g:u[g],w=t[y],_=e[y];if(w===_){h[y]=w,(i?g<l:fC.call(t,y))&&p++;continue}if(w===null||_===null||typeof w!="object"||typeof _!="object"){h[y]=_;continue}const E=Yv(w,_,n+1);h[y]=E,E===w&&p++}return l===d&&p===l?t:h}function zd(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Kg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ud(t){if(!Qg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;
240return!(!Qg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Qg(t){return Object.prototype.toString.call(t)==="[object Object]"}function hC(t){return new Promise(e=>{ss.setTimeout(e,t)})}function Vd(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Yv(t,e):e}function pC(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function mC(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var Lf=Symbol();function Jv(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Lf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Zv(t,e){return typeof t=="function"?t(...e):!!t}function gC(t,e,n){let i=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),i||(i=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),t}var as,kr,si,hv,yC=(hv=class extends Go{constructor(){super();fe(this,as);fe(this,kr);fe(this,si);ee(this,si,e=>{if(!ws&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,kr)||this.setEventListener(R(this,si))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,kr))==null||e.call(this),ee(this,kr,void 0))}setEventListener(e){var n;ee(this,si,e),(n=R(this,kr))==null||n.call(this),ee(this,kr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){R(this,as)!==e&&(ee(this,as,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof R(this,as)=="boolean"?R(this,as):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},as=new WeakMap,kr=new WeakMap,si=new WeakMap,hv),Mf=new yC;function Bd(){let t,e;const n=new Promise((a,l)=>{t=a,e=l});n.status="pending",n.catch(()=>{});function i(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},n.reject=a=>{i({status:"rejected",reason:a}),e(a)},n}var vC=cC;function xC(){let t=[],e=0,n=d=>{d()},i=d=>{d()},a=vC;const l=d=>{e?t.push(d):a(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&a(()=>{i(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||u()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var xt=xC(),ii,Er,oi,pv,wC=(pv=class extends Go{constructor(){super();fe(this,ii,!0);fe(this,Er);fe(this,oi);ee(this,oi,e=>{if(!ws&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){R(this,Er)||this.setEventListener(R(this,oi))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Er))==null||e.call(this),ee(this,Er,void 0))}setEventListener(e){var n;ee(this,oi,e),(n=R(this,Er))==null||n.call(this),ee(this,Er,e(this.setOnline.bind(this)))}setOnline(e){R(this,ii)!==e&&(ee(this,ii,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return R(this,ii)}},ii=new WeakMap,Er=new WeakMap,oi=new WeakMap,pv),Vl=new wC;function bC(t){return Math.min(1e3*2**t,3e4)}function ex(t){return(t??"online")==="online"?Vl.isOnline():!0}var $d=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function tx(t){let e=!1,n=0,i;const a=Bd(),l=()=>a.status!=="pending",u=C=>{var S;if(!l()){const b=new $d(C);w(b),(S=t.onCancel)==null||S.call(t,b)}},d=()=>{e=!0},h=()=>{e=!1},p=()=>Mf.isFocused()&&(t.networkMode==="always"||Vl.isOnline())&&t.canRun(),g=()=>ex(t.networkMode)&&t.canRun(),y=C=>{l()||(i==null||i(),a.resolve(C))},w=C=>{l()||(i==null||i(),a.reject(C))},_=()=>new Promise(C=>{var S;i=b=>{(l()||p())&&C(b)},(S=t.onPause)==null||S.call(t)}).then(()=>{var C;i=void 0,l()||(C=t.onContinue)==null||C.call(t)}),E=()=>
vendor: 4,359 bytes, line 240
240{if(l())return;let C;const S=n===0?t.initialPromise:void 0;try{C=S??t.fn()}catch(b){C=Promise.reject(b)}Promise.resolve(C).then(y).catch(b=>{var B;if(l())return;const A=t.retry??(ws?0:3),P=t.retryDelay??bC,N=typeof P=="function"?P(n,b):P,z=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,b);if(e||!z){w(b);return}n++,(B=t.onFail)==null||B.call(t,n,b),hC(N).then(()=>p()?void 0:_()).then(()=>{e?w(b):E()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?E():_().then(E),a)}}var ls,mv,nx=(mv=class{constructor(){fe(this,ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fd(this.gcTime)&&ee(this,ls,ss.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ws?1/0:300*1e3))}clearGcTimeout(){R(this,ls)&&(ss.clearTimeout(R(this,ls)),ee(this,ls,void 0))}},ls=new WeakMap,mv),us,ai,on,cs,ft,$o,ds,wn,Wn,gv,SC=(gv=class extends nx{constructor(e){super();fe(this,wn);fe(this,us);fe(this,ai);fe(this,on);fe(this,cs);fe(this,ft);fe(this,$o);fe(this,ds);ee(this,ds,!1),ee(this,$o,e.defaultOptions),this.setOptions(e.options),this.observers=[],ee(this,cs,e.client),ee(this,on,R(this,cs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ee(this,us,Xg(this.options)),this.state=e.state??R(this,us),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ft))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,$o),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Xg(this.options);n.data!==void 0&&(this.setState(Gg(n.data,n.dataUpdatedAt)),ee(this,us,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,on).remove(this)}setData(e,n){const i=Vd(this.state.data,e,this.options);return Pe(this,wn,Wn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){Pe(this,wn,Wn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=R(this,ft))==null?void 0:i.promise;return(a=R(this,ft))==null||a.cancel(e),n?n.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,us))}isActive(){return this.observers.some(e=>an(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>jr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Xv(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ft))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ft))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,on).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(R(this,ft)&&(R(this,ds)?R(this,ft).cancel({revert:!0}):R(this,ft).cancelRetry()),this.scheduleGc()),R(this,on).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,wn,Wn).call(this,{type:"invalidate"})}async fetch(e,n){var h,p,g,y,w,_,E,C,S,b,A,P;if(this.state.fetchStatus!=="idle"&&((h=R(this,ft))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,ft))return R(this,ft).continueRetry(),R(this,ft).promise}if(e&&this.setOptions(e),!this.options.queryFn){const N=this.observers.find(z=>z.options.queryFn);N&&this.setOptions(N.options)}const i=new AbortController,a=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(ee(this,ds,!0),i.signal)}
240)},l=()=>{const N=Jv(this.options,n),B=(()=>{const Y={client:R(this,cs),queryKey:this.queryKey,meta:this.meta};return a(Y),Y})();return ee(this,ds,!1),this.options.persister?this.options.persister(N,B,this):N(B)},d=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,cs),state:this.state,fetchFn:l};return a(N),N})();(p=this.options.behavior)==null||p.onFetch(d,this),ee(this,ai,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&Pe(this,wn,Wn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ee(this,ft,tx({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:N=>{N instanceof $d&&N.revert&&this.setState({...R(this,ai),fetchStatus:"idle"}),i.abort()},onFail:(N,z)=>{Pe(this,wn,Wn).call(this,{type:"failed",failureCount:N,error:z})},onPause:()=>{Pe(this,wn,Wn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,wn,Wn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const N=await R(this,ft).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(_=(w=R(this,on).config).onSuccess)==null||_.call(w,N,this),(C=(E=R(this,on).config).onSettled)==null||C.call(E,N,this.state.error,this),N}catch(N){if(N instanceof $d){if(N.silent)return R(this,ft).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw Pe(this,wn,Wn).call(this,{type:"error",error:N}),(b=(S=R(this,on).config).onError)==null||b.call(S,N,this),(P=(A=R(this,on).config).onSettled)==null||P.call(A,this.state.data,N,this),N}finally{this.scheduleGc()}}},us=new WeakMap,ai=new WeakMap,on=new WeakMap,cs=new WeakMap,ft=new WeakMap,$o=new WeakMap,ds=new WeakMap,wn=new WeakSet,Wn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...rx(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Gg(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,ai,e.manual?a:void 0),a;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),xt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),R(this,on).notify({query:this,type:"updated",action:e})})},gv);function rx(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ex(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Gg(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Xg(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var zt,Re,qo,Ot,fs,li,Kn,Tr,Ho,ui,ci,hs,ps,Pr,di,Ie,vo,qd,Hd,Wd,Kd,Qd,Gd,Xd,sx,yv,_C=(yv=class extends Go{constructor(e,n){super();fe(this,Ie);fe(this,zt);fe(this,Re);fe(this,qo);fe(this,Ot);fe(this,fs);fe(this,li);fe(this,Kn);fe(this,Tr);fe(this,Ho);fe(this,ui);fe(this,ci);fe(this,hs);fe(this,ps);fe(this,Pr);fe(this,di,new Set);this.options=n,ee(this,zt,e),ee(this,Tr,null),ee(this,Kn,Bd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Re).addObserver(this),Yg(R(this,Re),this.options)?Pe(this,Ie,vo).call(this):this.updateResult(),Pe(this,Ie,Kd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yd(R(this,Re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yd(R(this,Re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Ie,Qd).call(this),Pe(this,Ie,Gd).call(this),R(this,Re).removeObserver(this)}setOptions(e){const n=this.options,i=R(this,Re);if(this.options=R(this,zt).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof an(this.options.enabled,R(this,Re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Ie,Xd).call(this),R(this,Re).setOptions(this.options),n._defaulted&&!zd(this.options,n)&&R(this,zt).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Re),observer:this});const a=this.hasListeners();a&&Jg(R(this,Re),i,this.options,n)&&Pe(this,Ie,vo).call(this),this.updateResult(),a&&(R(this,Re)!==i||an(this.options.enabled,R(this,Re))!==an(n.enabled,R(this,Re))||jr(this.options.staleTime,R(this,Re))!==jr(n.staleTime,R(this,Re)))&&Pe(this,Ie,qd).call(this);const l=Pe(this,Ie,Hd).call(this);a&&(R(this,Re)!==i||an(this.options.enabled,R(this,Re))!==an(n.enabled,R(this,Re))||l!==R(this,Pr))&&Pe(this,Ie,Wd).call(this,l)}getOptimisticResult(e){const n=R(this,zt).getQueryCache().build(R(this,zt),e),i=this.createResult(n,e);return kC(this,i)&&(ee(this,Ot,i),ee(this,li,this.options),ee(this,fs,R(this,Re).state)),i}getCurrentResult(){return R(this,Ot)}trackResult(e,n){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Kn).status==="pending"&&R(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){R(this,di).add(e)}getCurrentQuery(){return R(this,Re)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=R(this,zt).defaultQueryOptions(e),i=R(this,zt).getQueryCache().build(R(this,zt),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return Pe(this,Ie,vo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Ot)))}createResult(e,n){var Z;const i=R(this,Re),a=this.options,l=R(this,Ot),u=R(this,fs),d=R(this,li),p=e!==i?e.state:R(this,qo),{state:g}=e;let y={...g},w=!1,_;if(n._optimisticResults){const le=this.hasListeners(),be=!le&&Yg(e,n),Me=le&&Jg(e,i,n,a);(be||Me)&&(y={...y,...rx(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:C,status:S}=y;_=y.data;let b=!1;if(n.placeholderData!==void 0&&_===void 0&&S==="pending"){let le;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(le=l.data,b=!0):le=typeof n.placeholderData=="function"?n.placeholderData((Z=R(this,ci))==null?void 0:Z.state.data,R(this,ci)):n.placeholderData,le!==void 0&&(S="success",_=Vd(l==null?void 0:l.data,le,n),w=!0)}
vendor: 9,066 bytes, line 240
240if(n.select&&_!==void 0&&!b)if(l&&_===(u==null?void 0:u.data)&&n.select===R(this,Ho))_=R(this,ui);else try{ee(this,Ho,n.select),_=n.select(_),_=Vd(l==null?void 0:l.data,_,n),ee(this,ui,_),ee(this,Tr,null)}catch(le){ee(this,Tr,le)}R(this,Tr)&&(E=R(this,Tr),_=R(this,ui),C=Date.now(),S="error");const A=y.fetchStatus==="fetching",P=S==="pending",N=S==="error",z=P&&A,B=_!==void 0,U={status:S,fetchStatus:y.fetchStatus,isPending:P,isSuccess:S==="success",isError:N,isInitialLoading:z,isLoading:z,data:_,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:C,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:A,isRefetching:A&&!P,isLoadingError:N&&!B,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:N&&B,isStale:Df(e,n),refetch:this.refetch,promise:R(this,Kn),isEnabled:an(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const le=U.data!==void 0,be=U.status==="error"&&!le,Me=ze=>{be?ze.reject(U.error):le&&ze.resolve(U.data)},Se=()=>{const ze=ee(this,Kn,U.promise=Bd());Me(ze)},ke=R(this,Kn);switch(ke.status){case"pending":e.queryHash===i.queryHash&&Me(ke);break;case"fulfilled":(be||U.data!==ke.value)&&Se();break;case"rejected":(!be||U.error!==ke.reason)&&Se();break}}return U}updateResult(){const e=R(this,Ot),n=this.createResult(R(this,Re),this.options);if(ee(this,fs,R(this,Re).state),ee(this,li,this.options),R(this,fs).data!==void 0&&ee(this,ci,R(this,Re)),zd(n,e))return;ee(this,Ot,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!R(this,di).size)return!0;const u=new Set(l??R(this,di));return this.options.throwOnError&&u.add("error"),Object.keys(R(this,Ot)).some(d=>{const h=d;return R(this,Ot)[h]!==e[h]&&u.has(h)})};Pe(this,Ie,sx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Ie,Kd).call(this)}},zt=new WeakMap,Re=new WeakMap,qo=new WeakMap,Ot=new WeakMap,fs=new WeakMap,li=new WeakMap,Kn=new WeakMap,Tr=new WeakMap,Ho=new WeakMap,ui=new WeakMap,ci=new WeakMap,hs=new WeakMap,ps=new WeakMap,Pr=new WeakMap,di=new WeakMap,Ie=new WeakSet,vo=function(e){Pe(this,Ie,Xd).call(this);let n=R(this,Re).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ut)),n},qd=function(){Pe(this,Ie,Qd).call(this);const e=jr(this.options.staleTime,R(this,Re));if(ws||R(this,Ot).isStale||!Fd(e))return;const i=Xv(R(this,Ot).dataUpdatedAt,e)+1;ee(this,hs,ss.setTimeout(()=>{R(this,Ot).isStale||this.updateResult()},i))},Hd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Re)):this.options.refetchInterval)??!1},Wd=function(e){Pe(this,Ie,Gd).call(this),ee(this,Pr,e),!(ws||an(this.options.enabled,R(this,Re))===!1||!Fd(R(this,Pr))||R(this,Pr)===0)&&ee(this,ps,ss.setInterval(()=>{(this.options.refetchIntervalInBackground||Mf.isFocused())&&Pe(this,Ie,vo).call(this)},R(this,Pr)))},Kd=function(){Pe(this,Ie,qd).call(this),Pe(this,Ie,Wd).call(this,Pe(this,Ie,Hd).call(this))},Qd=function(){R(this,hs)&&(ss.clearTimeout(R(this,hs)),ee(this,hs,void 0))},Gd=function(){R(this,ps)&&(ss.clearInterval(R(this,ps)),ee(this,ps,void 0))},Xd=function(){const e=R(this,zt).getQueryCache().build(R(this,zt),this.options);if(e===R(this,Re))return;const n=R(this,Re);ee(this,Re,e),ee(this,qo,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},sx=function(e){xt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(R(this,Ot))}),R(this,zt).getQueryCache().notify({query:R(this,Re),type:"observerResultsUpdated"})})},yv);function CC(t,e){return an(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Yg(t,e){return CC(t,e)||t.state.data!==void 0&&Yd(t,e,e.refetchOnMount)}function Yd(t,e,n){if(an(e.enabled,t)!==!1&&jr(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Df(t,e)}return!1}function Jg(t,e,n,i){return(t!==e||an(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Df(t,n)}function Df(t,e){return an(e.enabled,t)!==!1&&t.isStaleByTime(jr(e.staleTime,t))}function kC(t,e){return!zd(t.getCurrentResult(),e)}function Zg(t){return{onFetch:(e,n)=>{var g,y,w,_,E;const i=e.options,a=(w=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((_=e.state.data)==null?void 0:_.pages)||[],u=((E=e.state.data)==null?void 0:E.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let C=!1;const S=P=>{gC(P,()=>e.signal,()=>C=!0)},b=Jv(e.options,e.fetchOptions),A=async(P,N,z)=>{if(C)return Promise.reject();if(N==null&&P.pages.length)return Promise.resolve(P);const Y=(()=>{const be={client:e.client,queryKey:e.queryKey,pageParam:N,direction:z?"backward":"forward",meta:e.options.meta};return S(be),be})(),U=await b(Y),{maxPages:Z}=e.options,le=z?mC:pC;return{pages:le(P.pages,U,Z),pageParams:le(P.pageParams,N,Z)}};if(a&&l.length){const P=a==="backward",N=P?EC:ey,z={pages:l,pageParams:u},B=N(i,z);d=await A(z,B,P)}else{const P=t??l.length;do{const N=h===0?u[0]??i.initialPageParam:ey(i,d);if(h>0&&N==null)break;d=await A(d,N),h++}while(h<P)}return d};e.options.persister?e.fetchFn=()=>{var C,S;return(S=(C=e.options).persister)==null?void 0:S.call(C,p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=p}}}function ey(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function EC(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var Wo,Rn,Et,ms,An,Sr,vv,TC=(vv=class extends nx{constructor(e){super();fe(this,An);fe(this,Wo);fe(this,Rn);fe(this,Et);fe(this,ms);ee(this,Wo,e.client),this.mutationId=e.mutationId,ee(this,Et,e.mutationCache),ee(this,Rn,[]),this.state=e.state||PC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,Rn).includes(e)||(R(this,Rn).push(e),this.clearGcTimeout(),R(this,Et).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ee(this,Rn,R(this,Rn).filter(n=>n!==e)),this.scheduleGc(),R(this,Et).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,Rn).length||(this.state.status==="pending"?this.scheduleGc():R(this,Et).remove(this))}continue(){var e;return((e=R(this,ms))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,h,p,g,y,w,_,E,C,S,b,A,P,N,z,B,Y;const n=()=>{Pe(this,An,Sr).call(this,{type:"continue"})},i={client:R(this,Wo),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,ms,tx({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(U,Z)=>{Pe(this,An,Sr).call(this,{type:"failed",failureCount:U,error:Z})},onPause:()=>{Pe(this,An,Sr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Et).canRun(this)}));const a=this.state.status==="pending",l=!R(this,ms).canStart();try{if(a)n();else{Pe(this,An,Sr).call(this,{type:"pending",variables:e,isPaused:l}),R(this,Et).config.onMutate&&await R(this,Et).config.onMutate(e,this,i);const Z=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e,i));Z!==this.state.context&&Pe(this,An,Sr).call(this,{type:"pending",context:Z,variables:e,isPaused:l})}const U=await R(this,ms).start();return await((p=(h=R(this,Et).config).onSuccess)==null?void 0:p.call(h,U,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,U,e,this.state.context,i)),await((_=(w=R(this,Et).config).onSettled)==null?void 0:_.call(w,U,null,this.state.variables,this.state.context,this,i)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,U,null,e,this.state.context,i)),Pe(this,An,Sr).call(this,{type:"success",data:U}),U}catch(U){try{await((b=(S=R(this,Et).config).onError)==null?void 0:b.call(S,U,e,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((P=(A=this.options).onError)==null?void 0:P.call(A,U,e,this.state.context,i))}catch(Z){Promise.reject(Z)}try{await((z=(N=R(this,Et).config).onSettled)==null?void 0:z.call(N,void 0,U,this.state.variables,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((Y=(B=this.options).onSettled)==null?void 0:Y.call(B,void 0,U,e,this.state.context,i))}catch(Z){Promise.reject(Z)}throw Pe(this,An,Sr).call(this,{type:"error",error:U}),U}finally{R(this,Et).runNext(this)}}},Wo=new WeakMap,Rn=new WeakMap,Et=new WeakMap,ms=new WeakMap,An=new WeakSet,Sr=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};
vendor: 1,092 bytes, line 240
240case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{R(this,Rn).forEach(i=>{i.onMutationUpdate(e)}),R(this,Et).notify({mutation:this,type:"updated",action:e})})},vv);function PC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qn,bn,Ko,xv,RC=(xv=class extends Go{constructor(e={}){super();fe(this,Qn);fe(this,bn);fe(this,Ko);this.config=e,ee(this,Qn,new Set),ee(this,bn,new Map),ee(this,Ko,0)}build(e,n,i){const a=new TC({client:e,mutationCache:this,mutationId:++pl(this,Ko)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){R(this,Qn).add(e);const n=vl(e);
240if(typeof n=="string"){const i=R(this,bn).get(n);i?i.push(e):R(this,bn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Qn).delete(e)){const n=vl(e);if(typeof n=="string"){const i=R(this,bn).get(n);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&R(this,bn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=vl(e);if(typeof n=="string"){const i=R(this,bn).get(n),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const n=vl(e);if(typeof n=="string"){const a=(i=R(this,bn).get(n))==null?void 0:i.find(l=>l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{R(this,Qn).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Qn).clear(),R(this,bn).clear()})}getAll(){return Array.from(R(this,Qn))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Wg(n,i))}findAll(e={}){return this.getAll().filter(n=>Wg(e,n))}notify(e){xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ut))))}},Qn=new WeakMap,bn=new WeakMap,Ko=new WeakMap,xv);function vl(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Nn,wv,AC=(wv=class extends Go{constructor(e={}){super();fe(this,Nn);this.config=e,ee(this,Nn,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??jf(a,n);let u=this.get(l);return u||(u=new SC({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){R(this,Nn).has(e.queryHash)||(R(this,Nn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=R(this,Nn).get(e.queryHash);n&&(e.destroy(),n===e&&R(this,Nn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,Nn).get(e)}getAll(){return[...R(this,Nn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Hg(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Hg(e,i)):n}notify(e){xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Nn=new WeakMap,wv),Xe,Rr,Ar,fi,hi,Nr,pi,mi,bv,NC=(bv=class{constructor(t={}){fe(this,Xe);fe(this,Rr);fe(this,Ar);fe(this,fi);fe(this,hi);fe(this,Nr);fe(this,pi);fe(this,mi);ee(this,Xe,t.queryCache||new AC),ee(this,Rr,t.mutationCache||new RC),ee(this,Ar,t.defaultOptions||{}),ee(this,fi,new Map),ee(this,hi,new Map),ee(this,Nr,0)}mount(){pl(this,Nr)._++,R(this,Nr)===1&&(ee(this,pi,Mf.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Xe).onFocus())})),ee(this,mi,Vl.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Xe).onOnline())})))}unmount(){var t,e;pl(this,Nr)._--,R(this,Nr)===0&&((t=R(this,pi))==null||t.call(this),ee(this,pi,void 0),(e=R(this,mi))==null||e.call(this),ee(this,mi,void 0))}isFetching(t){return R(this,Xe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return R(this,Rr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Xe).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=R(this,Xe).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(jr(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return R(this,Xe).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),a=R(this,Xe).get(i.queryHash),l=a==null?void 0:a.state.data,u=dC(e,l);if(u!==void 0)return R(this,Xe).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return xt.batch(()=>R(this,Xe).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Xe).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=R(this,Xe);xt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=R(this,Xe);return xt.batch(()=>(n.findAll(t).forEach(i=>
240{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=xt.batch(()=>R(this,Xe).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(Ut).catch(Ut)}invalidateQueries(t,e={}){return xt.batch(()=>(R(this,Xe).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=xt.batch(()=>R(this,Xe).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ut)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Ut)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=R(this,Xe).build(this,e);return n.isStaleByTime(jr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ut).catch(Ut)}fetchInfiniteQuery(t){return t.behavior=Zg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ut).catch(Ut)}ensureInfiniteQueryData(t){return t.behavior=Zg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Vl.isOnline()?R(this,Rr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Xe)}getMutationCache(){return R(this,Rr)}getDefaultOptions(){return R(this,Ar)}setDefaultOptions(t){ee(this,Ar,t)}setQueryDefaults(t,e){R(this,fi).set(jo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...R(this,fi).values()],n={};return e.forEach(i=>{Lo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){R(this,hi).set(jo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...R(this,hi).values()],n={};return e.forEach(i=>{Lo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...R(this,Ar).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=jf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Lf&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...R(this,Ar).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){R(this,Xe).clear(),R(this,Rr).clear()}},Xe=new WeakMap,Rr=new WeakMap,Ar=new WeakMap,fi=new WeakMap,hi=new WeakMap,Nr=new WeakMap,pi=new WeakMap,mi=new WeakMap,bv),ix=D.createContext(void 0),OC=t=>{const e=D.useContext(ix);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},jC=({client:t,children:e})=>(D.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(ix.Provider,{value:t,children:e})),ox=D.createContext(!1),LC=()=>D.useContext(ox);ox.Provider;function MC(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var DC=D.createContext(MC()),IC=()=>D.useContext(DC),FC=(t,e,n)=>{const i=n!=null&&n.state.error&&typeof t.throwOnError=="function"?Zv(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},zC=t=>{D.useEffect(()=>{t.clearReset()},[t])},UC=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||Zv(n,[t.error,i])),VC=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>n(i(...a)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},BC=(t,e)=>t.isLoading&&t.isFetching&&!e,$C=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ty=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function qC(t,e,n){var w,_,E,C;const i=LC(),a=IC(),l=OC(),u=l.defaultQueryOptions(t);(_=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||_.call(w,u);const d=l.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",VC(u),FC(u,a,d),zC(a);const h=!l.getQueryCache().get(u.queryHash),[p]=D.useState(()=>new e(l,u)),g=p.getOptimisticResult(u),y=!i&&t.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(S=>{const b=y?p.subscribe(xt.batchCalls(S)):Ut;return p.updateResult(),b},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),D.useEffect(()=>{p.setOptions(u)},[u,p]),$C(u,g))throw ty(u,p,a);if(UC({result:g,errorResetBoundary:a,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw g.error;if((C=(E=l.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||C.call(E,u,g),u.experimental_prefetchInRender&&!ws&&BC(g,i)){const S=h?ty(u,p,a):d==null?void 0:d.promise;S==null||S.catch(Ut).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function HC(t,e){return qC(t,_C)}const WC=new NC({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});Cv();/**
241 * @remix-run/router v1.23.2
242 *
243 * Copyright (c) Remix Software Inc.
244 *
245 * This source code is licensed under the MIT license found in the
246 * LICENSE.md file in the root directory of this source tree.
247 *
248 * @license MIT
249 */function Mo(){return Mo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Mo.apply(this,arguments)}var Or;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Or||(Or={}));const ny="popstate";function KC(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:u,hash:d}=i.location;return Jd("",{pathname:l,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 8,453 bytes, line 249
249function n(i,a){return typeof a=="string"?a:ax(a)}return GC(e,n,null,t)}function st(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function If(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function QC(){return Math.random().toString(36).substr(2,8)}function ry(t,e){return{usr:t.state,key:t.key,idx:e}}function Jd(t,e,n,i){return n===void 0&&(n=null),Mo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?bi(e):e,{state:n,key:e&&e.key||i||QC()})}function ax(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function bi(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function GC(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,u=a.history,d=Or.Pop,h=null,p=g();p==null&&(p=0,u.replaceState(Mo({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function y(){d=Or.Pop;let S=g(),b=S==null?null:S-p;p=S,h&&h({action:d,location:C.location,delta:b})}function w(S,b){d=Or.Push;let A=Jd(C.location,S,b);p=g()+1;let P=ry(A,p),N=C.createHref(A);try{u.pushState(P,"",N)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;a.location.assign(N)}l&&h&&h({action:d,location:C.location,delta:1})}function _(S,b){d=Or.Replace;let A=Jd(C.location,S,b);p=g();let P=ry(A,p),N=C.createHref(A);u.replaceState(P,"",N),l&&h&&h({action:d,location:C.location,delta:0})}function E(S){let b=a.location.origin!=="null"?a.location.origin:a.location.href,A=typeof S=="string"?S:ax(S);return A=A.replace(/ $/,"%20"),st(b,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,b)}let C={get action(){return d},get location(){return t(a,u)},listen(S){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(ny,y),h=S,()=>{a.removeEventListener(ny,y),h=null}},createHref(S){return e(a,S)},createURL:E,encodeLocation(S){let b=E(S);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:w,replace:_,go(S){return u.go(S)}};return C}var sy;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(sy||(sy={}));function XC(t,e,n){return n===void 0&&(n="/"),YC(t,e,n)}function YC(t,e,n,i){let a=typeof e=="string"?bi(e):e,l=cx(a.pathname||"/",n);if(l==null)return null;let u=lx(t);JC(u);let d=null;for(let h=0;d==null&&h<u.length;++h){let p=ck(l);d=ak(u[h],p)}return d}function lx(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let a=(l,u,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};h.relativePath.startsWith("/")&&(st(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let p=gs([i,h.relativePath]),g=n.concat(h);l.children&&l.children.length>0&&(st(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),lx(l.children,e,g,p)),!(l.path==null&&!l.index)&&e.push({path:p,score:ik(p,l.index),routesMeta:g})};return t.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,u);else for(let h of ux(l.path))a(l,u,h)}),e}function ux(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let u=ux(i.join("/")),d=[];return d.push(...u.map(h=>h===""?l:[l,h].join("/"))),a&&d.push(...u),d.map(h=>t.startsWith("/")&&h===""?"/":h)}function JC(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:ok(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const ZC=/^:[\w-]+$/,ek=3,tk=2,nk=1,rk=10,sk=-2,iy=t=>t==="*";function ik(t,e){let n=t.split("/"),i=n.length;return n.some(iy)&&(i+=sk),e&&(i+=tk),n.filter(a=>!iy(a)).reduce((a,l)=>a+(ZC.test(l)?ek:l===""?nk:rk),i)}function ok(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function ak(t,e,n){let{routesMeta:i}=t,a={},l="/",u=[];for(let d=0;d<i.length;++d){let h=i[d],p=d===i.length-1,g=l==="/"?e:e.slice(l.length)||"/",y=lk({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),w=h.route;if(!y)return null;Object.assign(a,y.params),u.push({params:a,pathname:gs([l,y.pathname]),pathnameBase:mk(gs([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=gs([l,y.pathnameBase]))}return u}function lk(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=uk(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((p,g,y)=>{let{paramName:w,isOptional:_}=g;if(w==="*"){let C=d[y]||"";u=l.slice(0,l.length-C.length).replace(/(.)\/+$/,"$1")}const E=d[y];return _&&!E?p[w]=void 0:p[w]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:t}}function uk(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),If(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function ck(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return If(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function cx(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}const dk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fk=t=>dk.test(t);function hk(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:a=""}=typeof t=="string"?bi(t):t,l;if(n)if(fk(n))l=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),If(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?l=oy(n.substring(1),"/"):l=oy(n,e)}else l=e;return{pathname:l,search:gk(i),hash:yk(a)}}function oy(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function fd(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function pk(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function dx(t,e){let n=pk(t);return e?n.map((i,a)=>a===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function fx(t,e,n,i){i===void 0&&(i=!1);let a;typeof t=="string"?a=bi(t):(a=Mo({},t),st(!a.pathname||!a.pathname.includes("?"),fd("?","pathname","search",a)),st(!a.pathname||!a.pathname.includes("#"),fd("#","pathname","hash",a)),st(!a.search||!a.search.includes("#"),fd("#","search","hash",a)));let l=t===""||a.pathname==="",u=l?"/":a.pathname,d;if(u==null)d=n;else{let y=e.length-1;if(!i&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;a.pathname=w.join("/")}d=y>=0?e[y]:"/"}let h=hk(a,d),p=u&&u!=="/"&&u.endsWith("/"),g=(l||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}const gs=t=>t.join("/").replace(/\/\/+/g,"/"),mk=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),gk=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,yk=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function vk(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const hx=["post","put","patch","delete"];
vendor: 5,270 bytes, lines 249-258
249new Set(hx);const xk=["get",...hx];new Set(xk);/**
250 * React Router v6.30.3
251 *
252 * Copyright (c) Remix Software Inc.
253 *
254 * This source code is licensed under the MIT license found in the
255 * LICENSE.md file in the root directory of this source tree.
256 *
257 * @license MIT
258 */function Do(){return Do=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Do.apply(this,arguments)}const Ff=D.createContext(null),wk=D.createContext(null),Xo=D.createContext(null),tu=D.createContext(null),Cs=D.createContext({outlet:null,matches:[],isDataRoute:!1}),px=D.createContext(null);function Yo(){return D.useContext(tu)!=null}function nu(){return Yo()||st(!1),D.useContext(tu).location}function mx(t){D.useContext(Xo).static||D.useLayoutEffect(t)}function bk(){let{isDataRoute:t}=D.useContext(Cs);return t?Lk():Sk()}function Sk(){Yo()||st(!1);let t=D.useContext(Ff),{basename:e,future:n,navigator:i}=D.useContext(Xo),{matches:a}=D.useContext(Cs),{pathname:l}=nu(),u=JSON.stringify(dx(a,n.v7_relativeSplatPath)),d=D.useRef(!1);return mx(()=>{d.current=!0}),D.useCallback(function(p,g){if(g===void 0&&(g={}),!d.current)return;if(typeof p=="number"){i.go(p);return}let y=fx(p,JSON.parse(u),l,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:gs([e,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[e,i,u,l,t])}function _k(t,e){return Ck(t,e)}function Ck(t,e,n,i){Yo()||st(!1);let{navigator:a}=D.useContext(Xo),{matches:l}=D.useContext(Cs),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let h=u?u.pathnameBase:"/";u&&u.route;let p=nu(),g;if(e){var y;let S=typeof e=="string"?bi(e):e;h==="/"||(y=S.pathname)!=null&&y.startsWith(h)||st(!1),g=S}else g=p;let w=g.pathname||"/",_=w;if(h!=="/"){let S=h.replace(/^\//,"").split("/");_="/"+w.replace(/^\//,"").split("/").slice(S.length).join("/")}let E=XC(t,{pathname:_}),C=Rk(E&&E.map(S=>Object.assign({},S,{params:Object.assign({},d,S.params),pathname:gs([h,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?h:gs([h,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,n,i);return e&&C?D.createElement(tu.Provider,{value:{location:Do({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Or.Pop}},C):C}function kk(){let t=jk(),e=vk(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),n?D.createElement("pre",{style:a},n):null,null)}const Ek=D.createElement(kk,null);class Tk extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?D.createElement(Cs.Provider,{value:this.props.routeContext},D.createElement(px.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Pk(t){let{routeContext:e,match:n,children:i}=t,a=D.useContext(Ff);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(Cs.Provider,{value:e},i)}function Rk(t,e,n,i){var a;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var l;if(!n)return null;if(n.errors)t=n.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,d=(a=n)==null?void 0:a.errors;if(d!=null){let g=u.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);g>=0||st(!1),u=u.slice(0,Math.min(u.length,g+1))}let h=!1,p=-1;if(n&&i&&i.v7_partialHydration)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=g),y.route.id){let{loaderData:w,errors:_}=n,E=y.route.loader&&w[y.route.id]===void 0&&(!_||_[y.route.id]===void 0);if(y.route.lazy||E){h=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let _,E=!1,C=null,S=null;n&&(_=d&&y.route.id?d[y.route.id]:void 0,C=y.route.errorElement||Ek,h&&(p<0&&w===0?(Mk("route-fallback"),E=!0,S=null):p===w&&(E=!0,S=y.route.hydrateFallbackElement||null)));let b=e.concat(u.slice(0,w+1)),A=()=>{let P;return _?P=C:E?P=S:y.route.Component?P=D.createElement(y.route.Component,null):y.route.element?P=y.route.element:P=g,D.createElement(Pk,{match:y,routeContext:{outlet:g,matches:b,isDataRoute:n!=null},children:P})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?D.createElement(Tk,{location:n.location,revalidation:n.revalidation,component:C,error:_,children:A(),routeC
258ontext:{outlet:null,matches:b,isDataRoute:!0}}):A()},null)}var gx=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(gx||{}),yx=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(yx||{});function Ak(t){let e=D.useContext(Ff);return e||st(!1),e}function Nk(t){let e=D.useContext(wk);return e||st(!1),e}function Ok(t){let e=D.useContext(Cs);return e||st(!1),e}function vx(t){let e=Ok(),n=e.matches[e.matches.length-1];return n.route.id||st(!1),n.route.id}function jk(){var t;let e=D.useContext(px),n=Nk(),i=vx();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function Lk(){let{router:t}=Ak(gx.UseNavigateStable),e=vx(yx.UseNavigateStable),n=D.useRef(!1);return mx(()=>{n.current=!0}),D.useCallback(function(a,l){l===void 0&&(l={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,Do({fromRouteId:e},l)))},[t,e])}const ay={};function Mk(t,e,n){ay[t]||(ay[t]=!0)}function Dk(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Ik(t){let{to:e,replace:n,state:i,relative:a}=t;Yo()||st(!1);let{future:l,static:u}=D.useContext(Xo),{matches:d}=D.useContext(Cs),{pathname:h}=nu(),p=bk(),g=fx(e,dx(d,l.v7_relativeSplatPath),h,a==="path"),y=JSON.stringify(g);return D.useEffect(()=>p(JSON.parse(y),{replace:n,state:i,relative:a}),[p,y,a,n,i]),null}function Js(t){st(!1)}function Fk(t){let{basename:e="/",children:n=null,location:i,navigationType:a=Or.Pop,navigator:l,static:u=!1,future:d}=t;Yo()&&st(!1);let h=e.replace(/^\/*/,"/"),p=D.useMemo(()=>({basename:h,navigator:l,static:u,future:Do({v7_relativeSplatPath:!1},d)}),[h,d,l,u]);typeof i=="string"&&(i=bi(i));let{pathname:g="/",search:y="",hash:w="",state:_=null,key:E="default"}=i,C=D.useMemo(()=>{let S=cx(g,h);return S==null?null:{location:{pathname:S,search:y,hash:w,state:_,key:E},navigationType:a}},[h,g,y,w,_,E,a]);return C==null?null:D.createElement(Xo.Provider,{value:p},D.createElement(tu.Provider,{children:n,value:C}))}function zk(t){let{children:e,location:n}=t;return _k(Zd(e),n)}new Promise(()=>{});function Zd(t,e){e===void 0&&(e=[]);let n=[];return D.Children.forEach(t,(i,a)=>{if(!D.isValidElement(i))return;let l=[...e,a];if(i.type===D.Fragment){n.push.apply(n,Zd(i.props.children,l));return}i.type!==Js&&st(!1),!i.props.index||!i.props.children||st(!1);let u={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Zd(i.props.children,l)),n.push(u)}),n}/**
259 * React Router DOM v6.30.3
260 *
261 * Copyright (c) Remix Software Inc.
262 *
263 * This source code is licensed under the MIT license found in the
264 * LICENSE.md file in the root directory of this source tree.
265 *
266 * @license MIT
267 */const Uk="6";try{window.__reactRouterVersion=Uk}catch{}const Vk="startTransition",ly=BS[Vk];function Bk(t){let{basename:e,children:n,future:i,window:a}=t,l=D.useRef();l.current==null&&(l.current=KC({window:a,v5Compat:!0}));let u=l.current,[d,h]=D.useState({action:u.action,location:u.location}),{v7_startTransition:p}=i||{},g=D.useCallback(y=>{p&&ly?ly(()=>h(y)):h(y)},[h,p]);return D.useLayoutEffect(()=>u.listen(g),[u,g]),D.useEffect(()=>Dk(i),[i]),D.createElement(Fk,{basename:e,children:n,location:d.location,navigationType:d.action,navigator:u,future:i})}var uy;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(uy||(uy={}));var cy;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(cy||(cy={}));function xx(t,e){return function(){return t.apply(e,arguments)}}const{toString:$k}=Object.prototype,{getPrototypeOf:gi}=Object,{iterator:Jo,toStringTag:wx}=Symbol,Bl=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Io=(t,e)=>{let n=t;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),Bl(n,e))return!0;n=gi(n)}return!1},qk=(t,e)=>t!=null&&Io(t,e)?t[e]:void 0,zf=(t=>e=>{const n=$k.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_n=t=>(t=t.toLowerCase(),e=>zf(e)===t),ru=t=>e=>typeof e===t,{isArray:bs}=Array,yi=ru("undefined");function Si(t){return t!==null&&!yi(t)&&t.constructor!==null&&!yi(t.constructor)&&Vt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const bx=_n("ArrayBuffer");function Hk(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bx(t.buffer),e}const Wk=ru("string"),Vt=ru("function"),Sx=ru("number"),_i=t=>t!==null&&typeof t=="object",Kk=t=>t===!0||t===!1,Al=t=>{if(!_i(t))return!1;const e=gi(t);return(e===null||e===Object.prototype||gi(e)===null)&&!Io(t,wx)&&!Io(t,Jo)},Qk=t=>{if(!_i(t)||Si(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}}
vendor: 8,181 bytes, lines 267-268
267,Gk=_n("Date"),Xk=_n("File"),Yk=t=>!!(t&&typeof t.uri<"u"),Jk=t=>t&&typeof t.getParts<"u",Zk=_n("Blob"),eE=_n("FileList"),tE=t=>_i(t)&&Vt(t.pipe);function nE(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dy=nE(),fy=typeof dy.FormData<"u"?dy.FormData:void 0,rE=t=>{if(!t)return!1;if(fy&&t instanceof fy)return!0;const e=gi(t);if(!e||e===Object.prototype||!Vt(t.append))return!1;const n=zf(t);return n==="formdata"||n==="object"&&Vt(t.toString)&&t.toString()==="[object FormData]"},sE=_n("URLSearchParams"),[iE,oE,aE,lE]=["ReadableStream","Request","Response","Headers"].map(_n),uE=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),bs(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Si(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),u=l.length;let d;for(i=0;i<u;i++)d=l[i],e.call(null,t[d],d,t)}}function _x(t,e){if(Si(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,a;for(;i-- >0;)if(a=n[i],e===a.toLowerCase())return a;return null}const is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cx=t=>!yi(t)&&t!==is;function ef(...t){const{caseless:e,skipUndefined:n}=Cx(this)&&this||{},i={},a=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=e&&typeof u=="string"&&_x(i,u)||u,h=Bl(i,d)?i[d]:void 0;Al(h)&&Al(l)?i[d]=ef(h,l):Al(l)?i[d]=ef({},l):bs(l)?i[d]=l.slice():(!n||!yi(l))&&(i[d]=l)};for(let l=0,u=t.length;l<u;l++){const d=t[l];if(!d||Si(d)||(Zo(d,a),typeof d!="object"||bs(d)))continue;const h=Object.getOwnPropertySymbols(d);for(let p=0;p<h.length;p++){const g=h[p];bE.call(d,g)&&a(d[g],g)}}return i}const cE=(t,e,n,{allOwnKeys:i}={})=>(Zo(e,(a,l)=>{n&&Vt(a)?Object.defineProperty(t,l,{__proto__:null,value:xx(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),dE=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),fE=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},hE=(t,e,n,i)=>{let a,l,u;const d={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)u=a[l],(!i||i(u,t,e))&&!d[u]&&(e[u]=t[u],d[u]=!0);t=n!==!1&&gi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},pE=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},mE=t=>{if(!t)return null;if(bs(t))return t;let e=t.length;if(!Sx(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},gE=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&gi(Uint8Array)),yE=(t,e)=>{const i=(t&&t[Jo]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},vE=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},xE=_n("HTMLFormElement"),wE=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:bE}=Object.prototype,SE=_n("RegExp"),kx=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Zo(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},_E=t=>{kx(t,(e,n)=>{if(Vt(t)&&["arguments","caller","callee"].includes(n))return!1;const i=t[n];if(Vt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},CE=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return bs(t)?i(t):i(String(t).split(e)),n},kE=()=>{},EE=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function TE(t){return!!(t&&Vt(t.append)&&t[wx]==="FormData"&&t[Jo])}const PE=t=>{const e=new WeakSet,n=i=>{if(_i(i)){if(e.has(i))return;if(Si(i))return i;if(!("toJSON"in i)){e.add(i);const a=bs(i)?[]:{};return Zo(i,(l,u)=>{const d=n(l);!yi(d)&&(a[u]=d)}),e.delete(i),a}}return i};return n(t)},RE=_n("AsyncFunction"),AE=t=>t&&(_i(t)||Vt(t))&&Vt(t.then)&&Vt(t.catch),Ex=((t,e)=>t?setImmediate:e?((n,i)=>(is.addEventListener("message",({source:a,data:l})=>{a===is&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),is.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vt(is.postMessage)),NE=typeof queueMicrotask<"u"?queueMicrotask.bind(is):typeof process<"u"&&process.nextTick||Ex,Tx=t=>t!=null&&Vt(t[Jo]),OE=t=>t!=null&&Io(t,Jo)&&Tx(t),L={isArray:bs,isArrayBuffer:bx,isBuffer:Si,isFormData:rE,isArrayBufferView:Hk,isString:Wk,isNumber:Sx,isBoolean:Kk,isObject:_i,isPlainObject:Al,isEmptyObject:Qk,isReadableStream:iE,isRequest:oE,isResponse:aE,isHeaders:lE,isUndefined:yi,isDate:Gk,isFile:Xk,isReactNativeBlob:Yk,isReactNative:Jk,isBlob:Zk,isRegExp:SE,isFunction:Vt,isStream:tE,isURLSearchParams:sE,isTypedArray:gE,isFileList:eE,forEach:Zo,merge:ef,extend:cE,trim:uE,stripBOM:dE,inherits:fE,toFlatObject:hE,kindOf:zf,kindOfTest:_n,endsWith:pE,toArray:mE,forEachEntry:yE,matchAll:vE,isHTMLForm:xE,hasOwnProperty:Bl,hasOwnProp:Bl,hasOwnInPrototypeChain:Io,getSafeProp:qk,reduceDescriptors:kx,freezeMethods:_E,toObjectSet:CE,toCamelCase:wE,noop:kE,toFiniteNumber:EE,findKey:_x,global:is,isContextDefined:Cx,isSpecCompliantForm:TE,toJSONObject:PE,isAsyncFn:RE,isThenable:AE,setImmediate:Ex,asap:NE,isIterable:Tx,isSafeIterable:OE},jE=L.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"]),LE=t=>{const e={};let n,i,a;return t&&t.split(`
268`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||e[n]&&jE[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e};function ME(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const DE=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),IE=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Uf(t,e){return L.isArray(t)?t.map(n=>Uf(n,e)):ME(String(t).replace(e,""))}const FE=t=>Uf(t,DE),zE=t=>Uf(t,IE);function Px(t){const e=Object.create(null);return L.forEach(t.toJSON(),(n,i)=>{e[i]=zE(n)}),e}const hy=Symbol("internals");function po(t){return t&&String(t).trim().toLowerCase()}function Nl(t){return t===!1||t==null?t:L.isArray(t)?t.map(Nl):FE(String(t))}function UE(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const VE=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hd(t,e,n,i,a){if(L.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!L.isString(e)){if(L.isString(i))return e.indexOf(i)!==-1;if(L.isRegExp(i))return i.test(e)}}function BE(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function $E(t,e){const n=L.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{__proto__:null,value:function(a,l,u){return this[i].call(this,e,a,l,u)},configurable:!0})})}let Rt=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(d,h,p){const g=po(h);if(!g)return;const y=L.findKey(a,g);(!y||a[y]===void 0||p===!0||p===void 0&&a[y]!==!1)&&(a[y||h]=Nl(d))}const u=(d,h)=>L.forEach(d,(p,g)=>l(p,g,h));if(L.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(L.isString(e)&&(e=e.trim())&&!VE(e))u(LE(e),n);else if(L.isObject(e)&&L.isSafeIterable(e)){let d=Object.create(null),h,p;for(const g of e){if(!L.isArray(g))throw new TypeError("Object iterator must return a key-value pair");p=g[0],L.hasOwnProp(d,p)?(h=d[p],d[p]=L.isArray(h)?[...h,g[1]]:[h,g[1]]):d[p]=g[1]}u(d,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=po(e),e){const i=L.findKey(this,e);if(i){const a=this[i];if(!n)return a;
vendor: 5,175 bytes, lines 268-269
268if(n===!0)return UE(a);if(L.isFunction(n))return n.call(this,a,i);if(L.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=po(e),e){const i=L.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||hd(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=po(u),u){const d=L.findKey(i,u);d&&(!n||hd(i,i[d],d,n))&&(delete i[d],a=!0)}}return L.isArray(e)?e.forEach(l):l(e),a}clear(e){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const l=n[i];(!e||hd(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return L.forEach(this,(a,l)=>{const u=L.findKey(i,l);if(u){n[u]=Nl(a),delete n[l];return}const d=e?BE(l):String(l).trim();d!==l&&delete n[l],n[d]=Nl(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return L.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&L.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
269`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[hy]=this[hy]={accessors:{}}).accessors,a=this.prototype;function l(u){const d=po(u);i[d]||($E(a,u),i[d]=!0)}return L.isArray(e)?e.forEach(l):l(e),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Rt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});L.freezeMethods(Rt);const qE="[REDACTED ****]";function HE(t){if(L.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(L.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function WE(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),i=[],a=l=>{if(l===null||typeof l!="object"||L.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof Rt&&(l=l.toJSON()),i.push(l);let u;if(L.isArray(l))u=[],l.forEach((d,h)=>{const p=a(d);L.isUndefined(p)||(u[h]=p)});else{if(!L.isPlainObject(l)&&HE(l))return i.pop(),l;u=Object.create(null);for(const[d,h]of Object.entries(l)){const p=n.has(d.toLowerCase())?qE:a(h);L.isUndefined(p)||(u[d]=p)}}return i.pop(),u};return a(t)}let X=class Rx extends Error{static from(e,n,i,a,l,u){const d=new Rx(e.message,n||e.code,i,a,l);return Object.defineProperty(d,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),u&&Object.assign(d,u),d}constructor(e,n,i,a,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&L.hasOwnProp(e,"redact")?e.redact:void 0,i=L.isArray(n)&&n.length>0?WE(e,n):L.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";X.ERR_BAD_OPTION="ERR_BAD_OPTION";X.ECONNABORTED="ECONNABORTED";X.ETIMEDOUT="ETIMEDOUT";X.ECONNREFUSED="ECONNREFUSED";X.ERR_NETWORK="ERR_NETWORK";X.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";X.ERR_DEPRECATED="ERR_DEPRECATED";X.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";X.ERR_BAD_REQUEST="ERR_BAD_REQUEST";X.ERR_CANCELED="ERR_CANCELED";X.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";X.ERR_INVALID_URL="ERR_INVALID_URL";X.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const KE=null,Ax=100;function tf(t){return L.isPlainObject(t)||L.isArray(t)}function Nx(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function pd(t,e,n){return t?t.concat(e).map(function(a,l){return a=Nx(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function QE(t){return L.isArray(t)&&!t.some(tf)}const GE=L.toFlatObject(L,{},null,function(e){return/^is[A-Z]/.test(e)});function su(t,e,n){if(!L.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,P){return!L.isUndefined(P[A])});const i=n.metaTokens,a=n.visitor||E,l=n.dots,u=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?Ax:n.maxDepth,p=d&&L.isSpecCompliantForm(e),g=[];if(!L.isFunction(a))throw new TypeError("visitor must be a function");function y(b){if(b===null)return"";if(L.isDate(b))return b.toISOString();if(L.isBoolean(b))return b.toString();if(!p&&L.isBlob(b))throw new X("Blob is not supported. Use a Buffer instead.");if(L.isArrayBuffer(b)||L.isTypedArray(b)){if(p&&typeof d=="function")return new d([b]);if(typeof Buffer<"u")return Buffer.from(b);throw new X("Blob is not supported. Use a Buffer instead.",X.ERR_NOT_SUPPORT)}return b}function w(b){if(b>
vendor: 5,149 bytes, line 269
269h)throw new X("Object is too deeply nested ("+b+" levels). Max depth: "+h,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _(b,A){if(h===1/0)return JSON.stringify(b);const P=[];return JSON.stringify(b,function(z,B){if(!L.isObject(B))return B;for(;P.length&&P[P.length-1]!==this;)P.pop();return P.push(B),w(A+P.length-1),B})}function E(b,A,P){let N=b;if(L.isReactNative(e)&&L.isReactNativeBlob(b))return e.append(pd(P,A,l),y(b)),!1;if(b&&!P&&typeof b=="object"){if(L.endsWith(A,"{}"))A=i?A:A.slice(0,-2),b=_(b,1);else if(L.isArray(b)&&QE(b)||(L.isFileList(b)||L.endsWith(A,"[]"))&&(N=L.toArray(b)))return A=Nx(A),N.forEach(function(B,Y){!(L.isUndefined(B)||B===null)&&e.append(u===!0?pd([A],Y,l):u===null?A:A+"[]",y(B))}),!1}return tf(b)?!0:(e.append(pd(P,A,l),y(b)),!1)}const C=Object.assign(GE,{defaultVisitor:E,convertValue:y,isVisitable:tf});function S(b,A,P=0){if(!L.isUndefined(b)){if(w(P),g.indexOf(b)!==-1)throw new Error("Circular reference detected in "+A.join("."));g.push(b),L.forEach(b,function(z,B){(!(L.isUndefined(z)||z===null)&&a.call(e,z,L.isString(B)?B.trim():B,A,C))===!0&&S(z,A?A.concat(B):[B],P+1)}),g.pop()}}if(!L.isObject(t))throw new TypeError("data must be an object");return S(t),e}function py(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Vf(t,e){this._pairs=[],t&&su(t,this,e)}const Ox=Vf.prototype;Ox.append=function(e,n){this._pairs.push([e,n])};Ox.toString=function(e){const n=e?i=>e.call(this,i,py):py;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function XE(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jx(t,e,n){if(!e)return t;t=t||"";const i=L.isFunction(n)?{serialize:n}:n,a=L.getSafeProp(i,"encode")||XE,l=L.getSafeProp(i,"serialize");let u;if(l?u=l(e,i):u=L.isURLSearchParams(e)?e.toString():new Vf(e,i).toString(a),u){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class my{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Bf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},YE=typeof URLSearchParams<"u"?URLSearchParams:Vf,JE=typeof FormData<"u"?FormData:null,ZE=typeof Blob<"u"?Blob:null,eT={isBrowser:!0,classes:{URLSearchParams:YE,FormData:JE,Blob:ZE},protocols:["http","https","file","blob","url","data"]},$f=typeof window<"u"&&typeof document<"u",nf=typeof navigator=="object"&&navigator||void 0,tT=$f&&(!nf||["ReactNative","NativeScript","NS"].indexOf(nf.product)<0),nT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rT=$f&&window.location.href||"http://localhost",sT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$f,hasStandardBrowserEnv:tT,hasStandardBrowserWebWorkerEnv:nT,navigator:nf,origin:rT},Symbol.toStringTag,{value:"Module"})),wt={...sT,...eT};function iT(t,e){return su(t,new wt.classes.URLSearchParams,{visitor:function(n,i,a,l){return wt.isNode&&L.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const gy=Ax;function Lx(t){if(t>gy)throw new X("FormData field is too deeply nested ("+t+" levels). Max depth: "+gy,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function oT(t){const e=[],n=/\w+|\[(\w*)]/g;let i;for(;(i=n.exec(t))!==null;)Lx(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function aT(t){const e={},n=Object.keys(t);let i;const a=n.length;let l;for(i=0;i<a;i++)l=n[i],e[l]=t[l];return e}function Mx(t){function e(n,i,a,l){Lx(l);let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),h=l>=n.length;return u=!u&&L.isArray(a)?a.length:u,h?(L.hasOwnProp(a,u)?a[u]=L.isArray(a[u])?a[u].concat(i):[a[u],i]:a[u]=i,!d):((!L.hasOwnProp(a,u)||!L.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&L.isArray(a[u])&&(a[u]=aT(a[u])),!d)}if(L.isFormData(t)&&L.isFunction(t.entries)){const n={};return L.forEachEntry(t,(i,a)=>{e(oT(i),a,n,0)}),n}return null}const Xs=(t,e)=>t!=null&&L.hasOwnProp(t,e)?t[e]:void 0;function lT(t,e,n){if(L.isString(t))try{return(e||JSON.parse)(t),L.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const ea={transitional:Bf,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=L.isObject(e);if(l&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return a?JSON.stringify(Mx(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e)||L.isReadableStream(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;
vendor: 10,637 bytes, line 269
269if(l){const h=Xs(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return iT(e,h).toString();if((d=L.isFileList(e))||i.indexOf("multipart/form-data")>-1){const p=Xs(this,"env"),g=p&&p.FormData;return su(d?{"files[]":e}:e,g&&new g,h)}}return l||a?(n.setContentType("application/json",!1),lT(e)):e}],transformResponse:[function(e){const n=Xs(this,"transitional")||ea.transitional,i=n&&n.forcedJSONParsing,a=Xs(this,"responseType"),l=a==="json";if(L.isResponse(e)||L.isReadableStream(e))return e;if(e&&L.isString(e)&&(i&&!a||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,Xs(this,"parseReviver"))}catch(h){if(d)throw h.name==="SyntaxError"?X.from(h,X.ERR_BAD_RESPONSE,this,null,Xs(this,"response")):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch","query"],t=>{ea.headers[t]={}});function md(t,e){const n=this||ea,i=e||n,a=Rt.from(i.headers);let l=i.data;return L.forEach(t,function(d){l=d.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function Dx(t){return!!(t&&t.__CANCEL__)}let ta=class extends X{constructor(e,n,i){super(e??"canceled",X.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Ix(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new X("Request failed with status code "+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}function uT(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function cT(t,e){t=t||10;const n=new Array(t),i=new Array(t);let a=0,l=0,u;return e=e!==void 0?e:1e3,function(h){const p=Date.now(),g=i[l];u||(u=p),n[a]=h,i[a]=p;let y=l,w=0;for(;y!==a;)w+=n[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),p-u<e)return;const _=g&&p-g;return _?Math.round(w*1e3/_):void 0}}function dT(t,e){let n=0,i=1e3/e,a,l;const u=(p,g=Date.now())=>{n=g,a=null,l&&(clearTimeout(l),l=null),t(...p)};return[(...p)=>{const g=Date.now(),y=g-n;y>=i?u(p,g):(a=p,l||(l=setTimeout(()=>{l=null,u(a)},i-y)))},()=>a&&u(a)]}const $l=(t,e,n=3)=>{let i=0;const a=cT(50,250);return dT(l=>{if(!l||typeof l.loaded!="number")return;const u=l.loaded,d=l.lengthComputable?l.total:void 0,h=d!=null?Math.min(u,d):u,p=Math.max(0,h-i),g=a(p);i=Math.max(i,h);const y={loaded:h,total:d,progress:d?h/d:void 0,bytes:p,rate:g||void 0,estimated:g&&d?(d-h)/g:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(y)},n)},yy=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},vy=t=>(...e)=>L.asap(()=>t(...e)),fT=wt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,wt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,hT=wt.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];L.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),L.isString(i)&&d.push(`path=${i}`),L.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),L.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const i=e[n].replace(/^\s+/,""),a=i.indexOf("=");if(a!==-1&&i.slice(0,a)===t)try{return decodeURIComponent(i.slice(a+1))}catch{return i.slice(a+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pT(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function mT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const gT=/^https?:(?!\/\/)/i,yT=/[\t\n\r]/g;function vT(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function xT(t){return vT(t).replace(yT,"")}function xy(t,e){if(typeof t=="string"&&gT.test(xT(t)))throw new X('Invalid URL: missing "//" after protocol',X.ERR_INVALID_URL,e)}function Fx(t,e,n,i){xy(e,i);let a=!pT(e);return t&&(a||n===!1)?(xy(t,i),mT(t,e)):e}const wy=t=>t instanceof Rt?{...t}:t;function Ss(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(g,y,w,_){return L.isPlainObject(g)&&L.isPlainObject(y)?L.merge.call({caseless:_},g,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function a(g,y,w,_){if(L.isUndefined(y)){if(!L.isUndefined(g))return i(void 0,g,w,_)}else return i(g,y,w,_)}function l(g,y){if(!L.isUndefined(y))return i(void 0,y)}function u(g,y){if(L.isUndefined(y)){if(!L.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function d(g){const y=L.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!L.isUndefined(y))if(L.isPlainObject(y)){if(L.hasOwnProp(y,g))return y[g]}else return;const w=L.hasOwnProp(t,"transitional")?t.transitional:void 0;if(L.isPlainObject(w)&&L.hasOwnProp(w,g))return w[g]}function h(g,y,w){if(L.hasOwnProp(e,w))return i(g,y);if(L.hasOwnProp(t,w))return i(void 0,g)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:h,headers:(g,y,w)=>a(wy(g),wy(y),w,!0)};return L.forEach(Object.keys({...t,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=L.hasOwnProp(p,y)?p[y]:a,_=L.hasOwnProp(t,y)?t[y]:void 0,E=L.hasOwnProp(e,y)?e[y]:void 0,C=w(_,E,y);L.isUndefined(C)&&w!==h||(n[y]=C)}),L.hasOwnProp(e,"validateStatus")&&L.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(L.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}const wT=["content-type","content-length"];function bT(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{wT.includes(i.toLowerCase())&&t.set(i,a)})}const ST=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function zx(t){const e=Ss({},t),n=w=>L.hasOwnProp(e,w)?e[w]:void 0,i=n("data");let a=n("withXSRFToken");const l=n("xsrfHeaderName"),u=n("xsrfCookieName");let d=n("headers");const h=n("auth"),p=n("baseURL"),g=n("allowAbsoluteUrls"),y=n("url");if(e.headers=d=Rt.from(d),e.url=jx(Fx(p,y,g,e),n("params"),n("paramsSerializer")),h){const w=L.getSafeProp(h,"username")||"",_=L.getSafeProp(h,"password")||"";try{d.set("Authorization","Basic "+btoa(w+":"+(_?ST(_):"")))}catch(E){throw X.from(E,X.ERR_BAD_OPTION_VALUE,t)}}if(L.isFormData(i)&&(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv||L.isReactNative(i)?d.setContentType(void 0):L.isFunction(i.getHeaders)&&bT(d,i.getHeaders(),n("formDataHeaderPolicy"))),wt.hasStandardBrowserEnv&&(L.isFunction(a)&&(a=a(e)),a===!0||a==null&&fT(e.url))){const _=l&&u&&hT.read(u);_&&d.set(l,_)}return e}const _T=typeof XMLHttpRequest<"u",CT=_T&&function(t){return new Promise(function(n,i){const a=zx(t);let l=a.data;const u=Rt.from(a.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:p}=a,g,y,w,_,E;function C(){_&&_(),E&&E(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let S=new XMLHttpRequest;S.open(a.method.toUpperCase(),a.url,!0),S.timeout=a.timeout;function b(){if(!S)return;const P=Rt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),z={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:P,config:t,request:S};Ix(function(Y){n(Y),C()},function(Y){i(Y),C()},z),S=null}"onloadend"in S?S.onloadend=b:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(b)},S.onabort=function(){S&&(i(new X("Request aborted",X.ECONNABORTED,t,S)),C(),S=null)},S.onerror=function(N){const z=N&&N.message?N.message:"Network Error",B=new X(z,X.ERR_NETWORK,t,S);B.event=N||null,i(B),C(),S=null},S.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const z=a.transitional||Bf;a.timeoutErrorMessage&&(N=a.timeoutErrorMessage),i(new X(N,z.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,S)),C(),S=null},l===void 0&&u.setContentType(null),"setRequestHeader"in S&&L.forEach(Px(u),function(N,z){S.setRequestHeader(z,N)}),L.isUndefined(a.withCredentials)||(S.withCredentials=!!a.withCredentials),d&&d!=="json"&&(S.responseType=a.responseType),p&&([w,E]=$l(p,!0),S.addEventListener("progress",w)),h&&S.upload&&([y,_]=$l(h),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",_)),(a.cancelToken||a.signal)&&(g=P=>{S&&(i(!P||P.type?new ta(null,t,S):P),S.abort(),C(),S=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const A=uT(a.url);if(A&&!wt.protocols.includes(A)){i(new X("Unsupported protocol "+A+":",X.ERR_BAD_REQUEST,t)),C();return}S.send(l||null)})},kT=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let i=!1;const a=function(h){if(!i){i=!0,u();const p=h instanceof Error?h:this.reason;n.abort(p instanceof X?p:new ta(p instanceof Error?p.message:p))}};let l=e&&setTimeout(()=>{l=null,a(new X(`timeout of ${e}ms exceeded`,X.ETIMEDOUT))},e);const u=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),t=null)};t.forEach(h=>h.addEventListener("abort",a,{once:!0}));const{signal:d}=n;return d.unsubscribe=()=>L.asap(u),d},ET=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,a;for(;i<n;)a=i+e,yield t.slice(i,a),i=a},TT=async function*(t,e){for await(const n of PT(t))yield*ET(n,e)},PT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},by=(t,e,n,i)=>{const a=TT(t,e);let l=0,u,d=h=>{u||(u=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:p,value:g}=await a.next();if(p){d(),h.close();return}let y=g.byteLength;if(n){let w=l+=y;
vendor: 6,208 bytes, line 269
269n(w)}h.enqueue(new Uint8Array(g))}catch(p){throw d(p),p}},cancel(h){return d(h),a.return()}},{highWaterMark:2})},ql=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,RT=(t,e,n)=>e+2<n&&ql(t.charCodeAt(e+1))&&ql(t.charCodeAt(e+2));function AT(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),i=t.slice(e+1);if(/;base64/i.test(n)){let u=i.length;const d=i.length;for(let _=0;_<d;_++)if(i.charCodeAt(_)===37&&_+2<d){const E=i.charCodeAt(_+1),C=i.charCodeAt(_+2);ql(E)&&ql(C)&&(u-=2,_+=2)}let h=0,p=d-1;const g=_=>_>=2&&i.charCodeAt(_-2)===37&&i.charCodeAt(_-1)===51&&(i.charCodeAt(_)===68||i.charCodeAt(_)===100);p>=0&&(i.charCodeAt(p)===61?(h++,p--):g(p)&&(h++,p-=3)),h===1&&p>=0&&(i.charCodeAt(p)===61||g(p))&&h++;const w=Math.floor(u/4)*3-(h||0);return w>0?w:0}let l=0;for(let u=0,d=i.length;u<d;u++){const h=i.charCodeAt(u);if(h===37&&RT(i,u,d))l+=1,u+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&u+1<d){const p=i.charCodeAt(u+1);p>=56320&&p<=57343?(l+=4,u++):l+=3}else l+=3}return l}const qf="1.18.1",Sy=64*1024,{isFunction:xl}=L,NT=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),_y=t=>{if(!L.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Cy=(t,...e)=>{try{return!!t(...e)}catch{return!1}},OT=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},jT=t=>{const e=L.global!==void 0&&L.global!==null?L.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=L.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:a,Request:l,Response:u}=t,d=a?xl(a):typeof fetch=="function",h=xl(l),p=xl(u);if(!d)return!1;const g=d&&xl(n),y=d&&(typeof i=="function"?(b=>A=>b.encode(A))(new i):async b=>new Uint8Array(await new l(b).arrayBuffer())),w=h&&g&&Cy(()=>{let b=!1;const A=new l(wt.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),P=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),b&&!P}),_=p&&g&&Cy(()=>L.isReadableStream(new u("").body)),E={stream:_&&(b=>b.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!E[b]&&(E[b]=(A,P)=>{let N=A&&A[b];if(N)return N.call(A);throw new X(`Response type '${b}' is not supported`,X.ERR_NOT_SUPPORT,P)})});const C=async b=>{if(b==null)return 0;if(L.isBlob(b))return b.size;if(L.isSpecCompliantForm(b))return(await new l(wt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(L.isArrayBufferView(b)||L.isArrayBuffer(b))return b.byteLength;if(L.isURLSearchParams(b)&&(b=b+""),L.isString(b))return(await y(b)).byteLength},S=async(b,A)=>{const P=L.toFiniteNumber(b.getContentLength());return P??C(A)};return async b=>{let{url:A,method:P,data:N,signal:z,cancelToken:B,timeout:Y,onDownloadProgress:U,onUploadProgress:Z,responseType:le,headers:be,withCredentials:Me="same-origin",fetchOptions:Se,maxContentLength:ke,maxBodyLength:ze}=zx(b);const Ne=L.isNumber(ke)&&ke>-1,he=L.isNumber(ze)&&ze>-1,Q=G=>L.hasOwnProp(b,G)?b[G]:void 0;let oe=a||fetch;le=le?(le+"").toLowerCase():"text";let V=kT([z,B&&B.toAbortSignal()],Y),j=null;const $=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let me,ge=null;const de=()=>new X("Request body larger than maxBodyLength limit",X.ERR_BAD_REQUEST,b,j);try{let G;const xe=Q("auth");if(xe){const we=L.getSafeProp(xe,"username")||"",pt=L.getSafeProp(xe,"password")||"";G={username:we,password:pt}}if(OT(A)){const we=new URL(A,wt.origin);if(!G&&(we.username||we.password)){const pt=_y(we.username),cn=_y(we.password);G={username:pt,password:cn}}(we.username||we.password)&&(we.username="",we.password="",A=we.href)}if(G&&(be.delete("authorization"),be.set("Authorization","Basic "+btoa(NT((G.username||"")+":"+(G.password||""))))),Ne&&typeof A=="string"&&A.startsWith("data:")&&AT(A)>ke)throw new X("maxContentLength size of "+ke+" exceeded",X.ERR_BAD_RESPONSE,b,j);if(he&&P!=="get"&&P!=="head"){const we=await C(N);if(typeof we=="number"&&isFinite(we)&&(me=we,we>ze))throw de()}const Ee=he&&(L.isReadableStream(N)||L.isStream(N)),ve=(we,pt,cn)=>by(we,Sy,dn=>{if(he&&dn>ze)throw ge=de();pt&&pt(dn)},cn);if(w&&P!=="get"&&P!=="head"&&(Z||Ee)){if(me=me??await S(be,N),me!==0||Ee){let we=new l(A,{method:"POST",body:N,duplex:"half"}),pt;if(L.isFormData(N)&&(pt=we.headers.get("content-type"))&&be.setContentType(pt),we.body){const[cn,dn]=Z&&yy(me,$l(vy(Z)))||[];N=ve(we.body,cn,dn)}}}else if(Ee&&!h&&g&&P!=="get"&&P!=="head")N=ve(N);else if(Ee&&h&&!w&&P!=="get"&&P!=="head")throw new X("Stream request bodies are not supported by the current fetch implementation",X.ERR_NOT_SUPPORT,b,j);L.isString(Me)||(Me=Me?"include":"omit");const lt=h&&"credentials"in l.prototype;if(L.isFormData(N)){const we=be.getContentType();we&&/^multipart\/form-data/i.test(we)&&!/boundary=/i.test(we)&&be.delete("content-type")}be.set("User-Agent","axios/"+qf,!1);const Qt={...Se,signal:V,method:P.toUpperCase(),headers:Px(be.normalize()),body:N,duplex:"half",credentials:lt?Me:void 0};j=h&&new l(A,Qt);let ht=await(h?oe(j,Se):oe(A,Qt));const un=Rt.from(ht.headers);if(Ne){const we=L.toFiniteNumber(un.getContentLength());if(we!=null&&we>ke)throw new X("maxContentLength size of "+ke+" exceeded",X.ERR_BAD_RESPONSE,b,j)}const Gt=_&&(le==="stream"||le==="response");if(_&&ht.body&&(U||Ne||Gt&&$)){const we={};["status","statusText","headers"].forEach(Dn=>{we[Dn]=ht[Dn]});const pt=L.toFiniteNumber(un.getContentLength()),[cn,dn]=U&&yy(pt,$l(vy(U),!0))||[];let Zn=0;const er=Dn=>{if(Ne&&(Zn=Dn,Zn>ke))throw new X("maxContentLength size of "+ke+" exceeded",X.ERR_BAD_RESPONSE,b,j);cn&&cn(Dn)};ht=new u(by(ht.body,Sy,er,()=>{dn&&dn(),$&&$()}),we)}le=le||"text";let Xt=await E[L.findKey(E,le)||"text"](ht,b);if(Ne&&!_&&!Gt){let we;if(Xt!=null&&(typeof Xt.byteLength=="number"?we=Xt.byteLength:typeof Xt.size=="number"?we=Xt.size:typeof Xt=="string"&&(we=typeof i=="function"?new i().encode(Xt).byteLength:Xt.length)),typeof we=="number"&&we>ke)throw new X("maxContentLength size of "+ke+" exceeded",X.ERR_BAD_RESPONSE,b,j)}return!Gt&&$&&$(),await new Promise((we,pt)=>{Ix(we,pt,{data:Xt,headers:Rt.from(ht.headers),status:ht.status,statusText:ht.statusText,config:b,request:j})})}
vendor: 6,015 bytes, lines 269-275
269catch(G){if($&&$(),V&&V.aborted&&V.reason instanceof X){const xe=V.reason;throw xe.config=b,j&&(xe.request=j),G!==xe&&Object.defineProperty(xe,"cause",{__proto__:null,value:G,writable:!0,enumerable:!1,configurable:!0}),xe}if(ge)throw j&&!ge.request&&(ge.request=j),ge;if(G instanceof X)throw j&&!G.request&&(G.request=j),G;if(G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)){const xe=new X("Network Error",X.ERR_NETWORK,b,j,G&&G.response);throw Object.defineProperty(xe,"cause",{__proto__:null,value:G.cause||G,writable:!0,enumerable:!1,configurable:!0}),xe}throw X.from(G,G&&G.code,b,j,G&&G.response)}}},LT=new Map,Ux=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:a}=e,l=[i,a,n];let u=l.length,d=u,h,p,g=LT;for(;d--;)h=l[d],p=g.get(h),p===void 0&&g.set(h,p=d?new Map:jT(e)),g=p;return p};Ux();const Hf={http:KE,xhr:CT,fetch:{get:Ux}};L.forEach(Hf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const ky=t=>`- ${t}`,MT=t=>L.isFunction(t)||t===null||t===!1;function DT(t,e){t=L.isArray(t)?t:[t];const{length:n}=t;let i,a;const l={};for(let u=0;u<n;u++){i=t[u];let d;if(a=i,!MT(i)&&(a=Hf[(d=String(i)).toLowerCase()],a===void 0))throw new X(`Unknown adapter '${d}'`);if(a&&(L.isFunction(a)||(a=a.get(e))))break;l[d||"#"+u]=a}if(!a){const u=Object.entries(l).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=n?u.length>1?`since :
270`+u.map(ky).join(`
271`):" "+ky(u[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+d,X.ERR_NOT_SUPPORT)}return a}const Vx={getAdapter:DT,adapters:Hf};function gd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ta(null,t)}function Ey(t){return gd(t),t.headers=Rt.from(t.headers),t.data=md.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vx.getAdapter(t.adapter||ea.adapter,t)(t).then(function(i){gd(t),t.response=i;try{i.data=md.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=Rt.from(i.headers),i},function(i){if(!Dx(i)&&(gd(t),i&&i.response)){t.response=i.response;try{i.response.data=md.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=Rt.from(i.response.headers)}return Promise.reject(i)})}const iu={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{iu[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Ty={};iu.transitional=function(e,n,i){function a(l,u){return"[Axios v"+qf+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,d)=>{if(e===!1)throw new X(a(u," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Ty[u]&&(Ty[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,u,d):!0}};iu.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function IT(t,e,n){if(typeof t!="object"||t===null)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],u=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(u){const d=t[l],h=d===void 0||u(d,l,t);if(h!==!0)throw new X("option "+l+" must be "+h,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+l,X.ERR_BAD_OPTION)}}const Ol={assertOptions:IT,validators:iu},kt=Ol.validators;let ys=class{constructor(e){this.defaults=e||{},this.interceptors={request:new my,response:new my}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=(()=>{if(!a.stack)return"";const u=a.stack.indexOf(`
272`);return u===-1?"":a.stack.slice(u+1)})();try{if(!i.stack)i.stack=l;else if(l){const u=l.indexOf(`
273`),d=u===-1?-1:l.indexOf(`
274`,u+1),h=d===-1?"":l.slice(d+1);String(i.stack).endsWith(h)||(i.stack+=`
275`+l)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ss(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&Ol.assertOptions(i,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean),legacyInterceptorReqResOrdering:kt.transitional(kt.boolean),advertiseZstdAcceptEncoding:kt.transitional(kt.boolean),validateStatusUndefinedResolves:kt.transitional(kt.boolean)},!1),a!=null&&(L.isFunction(a)?n.paramsSerializer={serialize:a}:Ol.assertOptions(a,{encode:kt.function,serialize:kt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ol.assertOptions(n,{baseUrl:kt.spelling("baseURL"),withXsrfToken:kt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&L.merge(l.common,l[n.method]);l&&L.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete l[E]}),n.headers=Rt.concat(u,l);const d=[];let h=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(n)===!1)return;h=h&&C.synchronous;const S=n.transitional||Bf;S&&S.legacyInterceptorReqResOrdering?d.unshift(C.fulfilled,C.rejected):d.push(C.fulfilled,C.rejected)});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let g,y=0,w;if(!h){const E=[Ey.bind(this),void 0];for(E.unshift(...d),E.push(...p),w=E.length,g=Promise.resolve(n);y<w;)g=g.then(E[y++],E[y++]);return g}w=d.length;let _=n;for(;y<w;){const E=d[y++],C=d[y++];try{_=E(_)}catch(S){C.call(this,S);break}}try{g=Ey.call(this,_)}catch(E){return Promise.reject(E)}for(y=0,w=p.length;y<w;)g=g.then(p[y++],p[y++]);return g}getUri(e){e=Ss(this.defaults,e);const n=Fx(e.baseURL,e.url,e.allowAbsoluteUrls,e);return jx(n,e.params,e.paramsSerializer)}};
vendor: 1,715 bytes, line 275
275L.forEach(["delete","get","head","options"],function(e){ys.prototype[e]=function(n,i){return this.request(Ss(i||{},{method:e,url:n,data:i&&L.hasOwnProp(i,"data")?i.data:void 0}))}});L.forEach(["post","put","patch","query"],function(e){function n(i){return function(l,u,d){return this.request(Ss(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}ys.prototype[e]=n(),e!=="query"&&(ys.prototype[e+"Form"]=n(!0))});let FT=class Bx{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const u=new Promise(d=>{i.subscribe(d),l=d}).then(a);return u.cancel=function(){i.unsubscribe(l)},u},e(function(l,u,d){i.reason||(i.reason=new ta(l,u,d),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Bx(function(a){e=a}),cancel:e}}};function zT(t){return function(n){return t.apply(null,n)}}function UT(t){return L.isObject(t)&&t.isAxiosError===!0}const rf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
275alContent: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(rf).forEach(([t,e])=>{rf[e]=t});function $x(t){const e=new ys(t),n=xx(ys.prototype.request,e);return L.extend(n,ys.prototype,e,{allOwnKeys:!0}),L.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return $x(Ss(t,a))},n}const tt=$x(ea);tt.Axios=ys;tt.CanceledError=ta;tt.CancelToken=FT;tt.isCancel=Dx;tt.VERSION=qf;tt.toFormData=su;tt.AxiosError=X;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=zT;tt.isAxiosError=UT;tt.mergeConfig=Ss;tt.AxiosHeaders=Rt;tt.formToJSON=t=>Mx(L.isHTMLForm(t)?new FormData(t):t);tt.getAdapter=Vx.getAdapter;tt.HttpStatusCode=rf;tt.default=tt;const{Axios:X4,AxiosError:Y4,CanceledError:J4,isCancel:Z4,CancelToken:e3,VERSION:t3,all:n3,Cancel:r3,isAxiosError:s3,spread:i3,toFormData:o3,AxiosHeaders:a3,HttpStatusCode:l3,formToJSON:u3,getAdapter:c3,mergeConfig:d3,create:f3}=tt,qx=typeof window>"u",Py=!qx&&window.self!==window.top,VT=!qx&&typeof document>"u",yd=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),yt=[];for(let t=0;t<256;++t)yt.push((t+256).toString(16).slice(1));function BT(t,e=0){return(yt[t[e+0]]+yt[t[e+1]]+yt[t[e+2]]+yt[t[e+3]]+"-"+yt[t[e+4]]+yt[t[e+5]]+"-"+yt[t[e+6]]+yt[t[e+7]]+"-"+yt[t[e+8]]+yt[t[e+9]]+"-"+yt[t[e+10]]+yt[t[e+11]]+yt[t[e+12]]+yt[t[e+13]]+yt[t[e+14]]+yt[t[e+15]]).toLowerCase()}let vd;const $T=new Uint8Array(16);function qT(){if(!vd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vd=crypto.getRandomValues.bind(crypto)}return vd($T)}const HT=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ry={randomUUID:HT};function WT(t,e,n){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??qT();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,BT(i)}function KT(t,e,n){return Ry.randomUUID&&!t?Ry.randomUUID():WT(t)}const mo=typeof window<"u"?window:{base44SharedInstances:{}};function QT(t,e){return mo.base44SharedInstances||(mo.base44SharedInstances={}),mo.base44SharedInstances[t]||(mo.base44SharedInstances[t]={instance:e()}),mo.base44SharedInstances[t].instance}const GT="__user_heartbeat_event__",XT="__initialization_event__",YT="__session_duration_event__",Ay="analytics-enable",Ny="base44_analytics_session_id",JT={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},ZT="analytics",Ue=QT(ZT,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...JT,...aP()}})),eP=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:i})=>{var a;const{maxQueueSize:l,throttleTime:u,batchSize:d}=Ue.config;if(!(!((a=Ue.config)===null||a===void 0)&&a.enabled)||VT)return{track:()=>{},cleanup:()=>{}};let h;const p=`${e}/api/apps/${n}/analytics/track/batch`,g=async P=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:P}})},y=P=>{try{const N=JSON.stringify({events:P}),z=new Blob([N],{type:"application/json"});return typeof navigator>"u"||N.length>6e4||!navigator.sendBeacon(p,z)}catch{return!1}},w=async(P,N={})=>
275{if(P.length===0)return;const z=await oP(i),B=P.map(iP(z));try{(!N.isBeacon||!y(B))&&await g(B)}catch{}},_=()=>{jy(w,{throttleTime:u,batchSize:d})},E=P=>{if(Ue.requestsQueue.length>=l)return;const N=sP();Ue.requestsQueue.push({...P,...N}),_()},C=()=>{jy(w,{throttleTime:u,batchSize:d}),h=Ly(E),nP()},S=()=>{Oy(),h==null||h(),rP(E);const P=Ue.requestsQueue.splice(0);w(P,{isBeacon:!0})},b=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&C())},A=()=>{Oy(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",b)};return _(),h=Ly(E),tP(E),typeof window<"u"&&window.addEventListener("visibilitychange",b),{track:E,cleanup:A}};function Oy(){Ue.isProcessing=!1}async function jy(t,e){if(Ue.isProcessing)return;Ue.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=e??{};for(;Ue.isProcessing&&Ue.requestsQueue.length>0;){const a=Ue.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,n))}Ue.isProcessing=!1}function Ly(t){var e;if(typeof window>"u"||Ue.isHeartBeatProcessing||((e=Ue.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Ue.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:GT})},Ue.config.heartBeatInterval);return()=>{clearInterval(n),Ue.isHeartBeatProcessing=!1}}function tP(t){typeof window>"u"||Ue.wasInitializationTracked||(Ue.wasInitializationTracked=!0,t({eventName:XT,properties:{referrer:document==null?void 0:document.referrer}}))}function nP(){typeof window>"u"||Ue.sessionStartTime!==null||(Ue.sessionStartTime=new Date().toISOString())}function rP(t){if(typeof window>"u"||Ue.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Ue.sessionStartTime).getTime();Ue.sessionStartTime=null,t({eventName:YT,properties:{sessionDuration:e}})}function sP(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function iP(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let xo=null;function My(){Ue.sessionContext=null,xo=null}async function oP(t){if(!Ue.sessionContext){if(!t.hasToken())return{user_id:null,session_id:Hl()};if(!xo){const i=Hl();xo=t.me().then(a=>({user_id:a.id,session_id:i})).catch(()=>({user_id:null,session_id:i}))}const e=xo,n=await e;return xo===e&&(Ue.sessionContext=n),n}return Ue.sessionContext}function aP(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(Ay);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(Ay);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function Hl(){if(typeof window>"u")return yd();try{const t=localStorage.getItem(Ny);if(!t){const e=yd();return localStorage.setItem(Ny,e),e}return t}catch{return yd()}}class lP extends Error{constructor(e,n,i,a,l){super(e),this.name="Base44Error",this.status=n,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function wo({baseURL:t,headers:e={},token:n,interceptResponses:i=!0,onError:a}){const l=tt.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(u=>{typeof window<"u"&&window.location&&(u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",Hl()));const d=KT();if(u.requestId=d,Py)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),i&&l.interceptors.response.use(u=>{var d;const h=(d=u.config)===null||d===void 0?void 0:d.requestId;try{Py&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var d,h,p,g,y,w,_,E,C,S,b,A,P,N,z;const B=((h=(d=u.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((g=(p=u.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.detail)||u.message,Y=new lP(B,(y=u.response)===null||y===void 0?void 0:y.status,(A=(E=(_=(w=u.response)===null||w===void 0?void 0:w.data)===null||_===void 0?void 0:_.code)!==null&&E!==void 0?E:(b=(S=(C=u.response)===null||C===void 0?void 0:C.headers)===null||S===void 0?void 0:S.get)===null||b===void 0?void 0:b.call(S,"x-base44-connector-error"))!==null&&A!==void 0?A:(N=(P=u.response)===null||P===void 0?void 0:P.headers)===null||N===void 0?void 0:N["x-base44-connector-error"],(z=u.response)===null||z===void 0?void 0:z.data,u);return a==null||a(Y),Promise.reject(Y)}),l}function Dy(t){const{axios:e,appId:n,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return cP(e,n,l,i)}})}function uP(t){var e;try{const n=JSON.parse(t);
275return{type:n.type,data:n.data,id:n.id||((e=n.data)===null||e===void 0?void 0:e.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function cP(t,e,n,i){const a=`/apps/${e}/entities/${n}`;return{async list(l,u,d,h){const p={};return l&&(p.sort=l),u&&(p.limit=u),d&&(p.skip=d),h&&(p.fields=Array.isArray(h)?h.join(","):h),t.get(a,{params:p})},async filter(l,u,d,h,p){const g={q:JSON.stringify(l)};return u&&(g.sort=u),d&&(g.limit=d),h&&(g.skip=h),p&&(g.fields=Array.isArray(p)?p.join(","):p),t.get(a,{params:g})},async get(l){return t.get(`${a}/${l}`)},async create(l){return t.post(a,l)},async update(l,u){return t.put(`${a}/${l}`,u)},async delete(l){return t.delete(`${a}/${l}`)},async deleteMany(l){return t.delete(a,{data:l})},async bulkCreate(l){return t.post(`${a}/bulk`,l)},async updateMany(l,u){return t.patch(`${a}/update-many`,{query:l,data:u})},async bulkUpdate(l){return t.put(`${a}/bulk`,l)},async importEntities(l){const u=new FormData;return u.append("file",l,l.name),t.post(`${a}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const u=`entities:${e}:${n}`;return i().subscribeToRoom(u,{update_model:p=>{var g;const y=uP(p.data);if(y){y.type!=="delete"&&(!((g=y.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${y.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("${y.id}")\` to fetch the full record.`);try{l(y)}catch(w){console.error("[Base44 SDK] Subscription callback error:",w)}}}})}}}function dP(t,e){return{async call(n,i,a){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:u,...d}=a??{},h={...d,...l&&{path_params:l},...u&&{query_params:u}};return await t.post(`/apps/${e}/integrations/custom/${n}/${i}`,h)}}}function Iy(t,e){const n=dP(t,e);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?n:new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${d}`);let h,p;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(h=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?h.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?h.append(g,JSON.stringify(d[g])):h.append(g,d[g])}),p="multipart/form-data"):(h=d,p="application/json"),a==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${u}`,h||d,{headers:{"Content-Type":p}}):t.post(`/apps/${e}/integration-endpoints/installable/${a}/integration-endpoints/${u}`,h||d,{headers:{"Content-Type":p}})}}})}})}function fP(){return typeof window>"u"?!1:window!==window.parent}function hP(t,e,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${u},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",p),clearInterval(g),d.closed||d.close()},p=y=>{var w;if(y.origin!==n||y.source!==d||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;h();const _=new URL(e),{access_token:E,is_new_user:C}=y.data;_.searchParams.set("access_token",E),C!=null&&_.searchParams.set("is_new_user",String(C)),window.location.href=_.toString()},g=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",p)}function pP(t,e,n,i){let a=null;const l=()=>{a=null};let u=!!i.token;return{hasToken(){return u},async me(){const d=a??t.get(`/apps/${n}/entities/User/me`).finally(()=>{a===d&&(a=null)});return a=d,d},async updateMe(d){return t.put(`/apps/${n}/entities/User/me`,d)},redirectToLogin(d){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const h=d?new URL(d,window.location.origin).toString():window.location.href,p=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(h)}`;window.location.href=p},loginWithProvider(d,h="/"){const p=new URL(h,window.location.origin).toString(),g=`app_id=${n}&from_url=${encodeURIComponent(p)}`;let y;d==="sso"?y=`/apps/${n}/auth/sso/login`:y=`/apps/auth${d==="google"?"":`/${d}`}/login`;const w=`${i.appBaseUrl}/api${y}?${g}`;if(fP()){const _=`${w}&popup_origin=${encodeURIComponent(window.location.origin)}`;return hP(_,p,window.location.origin)}window.location.href=w},logout(d){if(delete t.defaults.headers.common.Authorization,l(),My(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(g){console.error("Failed to remove token from localStorage:",g)}const h=d||window.location.href,p=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(h)}`;window.location.href=p}},setToken(d,h=!0){if(d&&(l(),My(),u=!0,t.defaults.headers.common.Authorization=`Bearer ${d}`,e.defaults.headers.common.Authorization=`Bearer ${d}`,h&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",d),window.localStorage.setItem("token",d)}catch(p){console.error("Failed to save token to localStorage:",p)}},async loginViaEmailPassword(d,h,p){var g;try{const y=await t.post(`/apps/${n}/auth/login`,{email:d,password:h,...p&&{turnstile_token:p}}),{access_token:w,user:_}=y;return w&&this.setToken(w),{access_token:w,user:_}}catch(y){throw((g=y.response)===null||g===void 0?void 0:g.status)===401&&await this.logout(),y}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(d,h){return t.post(`/apps/${n}/users/invite-user`,{user_email:d,role:h})},register(d){return t.post(`/apps/${n}/auth/register`,d)},verifyOtp({email:d,otpCode:h}){return t.post(`/apps/${n}/auth/verify-otp`,{email:d,otp_code:h})},resendOtp(d){return t.post(`/apps/${n}/auth/resend-otp`,{email:d})},resetPasswordRequest(d){return t.post(`/apps/${n}/auth/reset-password-request`,{email:d})},resetPassword({resetToken:d,newPassword:h}){return t.post(`/apps/${n}/auth/reset-password`,{reset_token:d,new_password:h})},changePassword({userId:d,currentPassword:h,newPassword:p}){return t.post(`/apps/${n}/auth/change-password`,{user_id:d,current_password:h,new_password:p})}}}function mP(t,e){return{async getAccessToken(n){const i=`/apps/${e}/auth/sso/accesstoken/${n}`;return t.get(i)},async getIdToken(n){const i=`/apps/${e}/auth/sso/idtoken/${n}`;return t.get(i)}}}const gP=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
275function yP(t,e){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var i;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async callApi(n,i){return Hx(n,"Integration type"),vP(t,`/apps/${e}/connectors/${encodeURIComponent(n)}/call`,i)}}}function Hx(t,e){if(!t||typeof t!="string")throw new Error(`${e} is required and must be a string`)}async function vP(t,e,n){var i,a,l,u,d,h,p,g,y;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");Hx(n.path,"Request path");const w=(i=n.method)!==null&&i!==void 0?i:"GET";if(!gP.has(w))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const E=await t.post(e,{method:w,...n.host==null?{}:{host:n.host},path:n.path,query:(a=n.query)!==null&&a!==void 0?a:{},headers:(l=n.headers)!==null&&l!==void 0?l:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:E.success,phase:E.phase,status:(d=E.status_code)!==null&&d!==void 0?d:null,data:E.data,dataBase64:(h=E.data_base64)!==null&&h!==void 0?h:null,contentType:(p=E.content_type)!==null&&p!==void 0?p:null,headers:(g=E.headers)!==null&&g!==void 0?g:{},creditsCharged:(y=E.credits_charged)!==null&&y!==void 0?y:0}}function xP(t,e){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function vs(t={}){const{storageKey:e="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(l=u.get(n),l){if(i&&wP(l,{storageKey:e}),a){u.delete(n);const d=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function wP(t,e){const{storageKey:n="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(n,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function Fy(t,e,n){const i=(l,u)=>l?`${String(l).replace(/\/$/,"")}${u}`:u,a=l=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([h,p])=>{p!=null&&u.set(h,String(p))})}return l&&new Headers(l).forEach((d,h)=>{u.set(h,d)}),u};return{async invoke(l,u){if(typeof u=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${u}`);let d,h;return u instanceof FormData||u&&Object.values(u).some(p=>p instanceof File)?(d=new FormData,Object.keys(u).forEach(p=>{u[p]instanceof File?d.append(p,u[p],u[p].name):typeof u[p]=="object"&&u[p]!==null?d.append(p,JSON.stringify(u[p])):d.append(p,u[p])}),h="multipart/form-data"):(d=u,h="application/json"),t.post(`/apps/${e}/functions/${l}`,d||u,{headers:{"Content-Type":h}})},async fetch(l,u={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,p=a(u.headers),g={...u,headers:p};return await fetch(i(n==null?void 0:n.baseURL,h),g)}}}function zy({axios:t,getSocket:e,appId:n,serverUrl:i,token:a}){const l=`/apps/${n}/agents`,u={},d=()=>t.get(`${l}/conversations`),h=C=>t.get(`${l}/conversations/${C}`);return{getConversations:d,getConversation:h,listConversations:C=>t.get(`${l}/conversations`,{params:C}),createConversation:C=>t.post(`${l}/conversations`,C),addMessage:async(C,S)=>t.post(`${l}/conversations/v2/${C.id}/messages`,S),subscribeToConversation:(C,S)=>{const b=`/agent-conversations/${C}`,A=e(),P=h(C).then(N=>(u[C]=N,N));
275return A.subscribeToRoom(b,{connect:()=>{},update_model:async({data:N})=>{const z=JSON.parse(N);if(z._message){await P;const B=z._message,Y=u[C];if(Y){const U=Y.messages||[],Z=U.findIndex(be=>be.id===B.id),le=Z!==-1?U.map((be,Me)=>Me===Z?B:be):[...U,B];u[C]={...Y,messages:le},S==null||S(u[C])}}}})},getWhatsAppConnectURL:C=>{const S=`${i}/api/apps/${n}/agents/${encodeURIComponent(C)}/whatsapp`,b=a??vs();return b?`${S}?token=${b}`:S},getTelegramConnectURL:C=>{const S=`${i}/api/apps/${n}/agents/${encodeURIComponent(C)}/telegram`,b=a??vs();return b?`${S}?token=${b}`:S}}}function Uy({serverUrl:t,token:e,appId:n}){return{connection:()=>{var a;return{baseURL:`${t}/api/apps/${n}/ai/openai/v1`,token:(a=e??vs())!==null&&a!==void 0?a:""}}}}function Vy(t,e){const n=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(n,{params:i})},async getStats(i={}){return await t.get(`${n}/stats`,{params:i})}}}function bP(t,e){return{async inviteUser(n,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:n,role:i})}}}const Mn=Object.create(null);Mn.open="0";Mn.close="1";Mn.ping="2";Mn.pong="3";Mn.message="4";Mn.upgrade="5";Mn.noop="6";const jl=Object.create(null);Object.keys(Mn).forEach(t=>{jl[Mn[t]]=t});const sf={type:"error",data:"parser error"},Wx=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Kx=typeof ArrayBuffer=="function",Qx=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Wf=({type:t,data:e},n,i)=>Wx&&e instanceof Blob?n?i(e):By(e,i):Kx&&(e instanceof ArrayBuffer||Qx(e))?n?i(e):By(new Blob([e]),i):i(Mn[t]+(e||"")),By=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function $y(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let xd;function SP(t,e){if(Wx&&t.data instanceof Blob)return t.data.arrayBuffer().then($y).then(e);if(Kx&&(t.data instanceof ArrayBuffer||Qx(t.data)))return e($y(t.data));Wf(t,!1,n=>{xd||(xd=new TextEncoder),e(xd.encode(n))})}const qy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<qy.length;t++)bo[qy.charCodeAt(t)]=t;const _P=t=>{let e=t.length*.75,n=t.length,i,a=0,l,u,d,h;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const p=new ArrayBuffer(e),g=new Uint8Array(p);for(i=0;i<n;i+=4)l=bo[t.charCodeAt(i)],u=bo[t.charCodeAt(i+1)],d=bo[t.charCodeAt(i+2)],h=bo[t.charCodeAt(i+3)],g[a++]=l<<2|u>>4,g[a++]=(u&15)<<4|d>>2,g[a++]=(d&3)<<6|h&63;return p},CP=typeof ArrayBuffer=="function",Kf=(t,e)=>{if(typeof t!="string")return{type:"message",data:Gx(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:kP(t.substring(1),e)}:jl[n]?t.length>1?{type:jl[n],data:t.substring(1)}:{type:jl[n]}:sf},kP=(t,e)=>{if(CP){const n=_P(t);return Gx(n,e)}else return{base64:!0,data:t}},Gx=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Xx="�",EP=(t,e)=>{const n=t.length,i=new Array(n);let a=0;t.forEach((l,u)=>{Wf(l,!1,d=>{i[u]=d,++a===n&&e(i.join(Xx))})})},TP=(t,e)=>{const n=t.split(Xx),i=[];for(let a=0;a<n.length;a++){const l=Kf(n[a],e);if(i.push(l),l.type==="error")break}return i};function PP(){return new TransformStream({transform(t,e){SP(t,n=>{const i=n.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(n)})}})}let wd;function wl(t){return t.reduce((e,n)=>e+n.length,0)}function bl(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let i=0;for(let a=0;a<e;a++)n[a]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),n}function RP(t,e){wd||(wd=new TextDecoder);const n=[];let i=0,a=-1,l=!1;return new TransformStream({transform(u,d){for(n.push(u);;){if(i===0){if(wl(n)<1)break;const h=bl(n,1);
vendor: 26,994 bytes, line 275
275l=(h[0]&128)===128,a=h[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(wl(n)<2)break;const h=bl(n,2);a=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(wl(n)<8)break;const h=bl(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(sf);break}a=g*Math.pow(2,32)+p.getUint32(4),i=3}else{if(wl(n)<a)break;const h=bl(n,a);d.enqueue(Kf(l?h:wd.decode(h),e)),i=0}if(a===0||a>t){d.enqueue(sf);break}}}})}const Yx=4;function rt(t){if(t)return AP(t)}function AP(t){for(var e in rt.prototype)t[e]=rt.prototype[e];return t}rt.prototype.on=rt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};rt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};rt.prototype.off=rt.prototype.removeListener=rt.prototype.removeAllListeners=rt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,a=0;a<n.length;a++)if(i=n[a],i===e||i.fn===e){n.splice(a,1);break}return n.length===0&&delete this._callbacks["$"+t],this};rt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,a=n.length;i<a;++i)n[i].apply(this,e)}return this};rt.prototype.emitReserved=rt.prototype.emit;rt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};rt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const ou=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ln=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),NP="arraybuffer";function Jx(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const OP=ln.setTimeout,jP=ln.clearTimeout;function au(t,e){e.useNativeTimers?(t.setTimeoutFn=OP.bind(ln),t.clearTimeoutFn=jP.bind(ln)):(t.setTimeoutFn=ln.setTimeout.bind(ln),t.clearTimeoutFn=ln.clearTimeout.bind(ln))}const LP=1.33;function MP(t){return typeof t=="string"?DP(t):Math.ceil((t.byteLength||t.size)*LP)}function DP(t){let e=0,n=0;for(let i=0,a=t.length;i<a;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}function Zx(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function IP(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function FP(t){let e={},n=t.split("&");for(let i=0,a=n.length;i<a;i++){let l=n[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}class zP extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class Qf extends rt{constructor(e){super(),this.writable=!1,au(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,i){return super.emitReserved("error",new zP(e,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Kf(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=IP(e);return n.length?"?"+n:""}}class UP extends Qf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};TP(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,EP(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Zx()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let ew=!1;try{ew=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const VP=ew;function BP(){}class $P extends UP{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,n){const i=this.request({method:"POST",data:e});i.on("success",n),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=e}}class On extends rt{constructor(e,n,i){super(),this.createRequest=e,au(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const n=Jx(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=On.requestsCount++,On.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=BP,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete On.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}On.requestsCount=0;On.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Hy);else if(typeof addEventListener=="function"){const t="onpagehide"in ln?"pagehide":"unload";addEventListener(t,Hy,!1)}}function Hy(){for(let t in On.requests)On.requests.hasOwnProperty(t)&&On.requests[t].abort()}const qP=(function(){const t=tw({xdomain:!1});return t&&t.responseType!==null})();class HP extends $P{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=qP&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new On(tw,this.uri(),e)}}function tw(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||VP))return new XMLHttpRequest}catch{}if(!e)try{return new ln[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const nw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WP extends Qf{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,i=nw?{}:Jx(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;Wf(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&ou(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Zx()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const bd=ln.WebSocket||ln.MozWebSocket;class KP extends WP{createSocket(e,n,i){return nw?new bd(e,n,i):n?new bd(e,n):new bd(e)}doWrite(e,n){this.ws.send(n)}}class QP extends Qf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const n=RP(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),a=PP();a.readable.pipeTo(e.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:d,value:h})=>{d||(this.onPacket(h),l())}).catch(d=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;this._writer.write(i).then(()=>{a&&ou(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const GP={websocket:KP,webtransport:QP,polling:HP},XP=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,YP=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function of(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let a=XP.exec(t||""),l={},u=14;for(;u--;)l[YP[u]]=a[u]||"";return n!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=JP(l,l.path),l.queryKey=ZP(l,l.query),l}function JP(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function ZP(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(n[a]=l)}),n}const af=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ll=[];af&&addEventListener("offline",()=>{Ll.forEach(t=>t())},!1);class Lr extends rt{constructor(e,n){if(super(),this.binaryType=NP,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const i=of(e);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=of(n.host).host);au(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(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=FP(this.opts.query)),af&&(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"})},Ll.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Yx,n.transport=e,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Lr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Lr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=e.data,this._onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(n+=MP(a)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ou(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,i){return this._sendPacket("message",e,n,i),this}send(e,n,i){return this._sendPacket("message",e,n,i),this}_sendPacket(e,n,i,a){if(typeof n=="function"&&(a=n,n=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Lr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),af&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ll.indexOf(this._offlineEventListener);i!==-1&&Ll.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Lr.protocol=Yx;class eR extends Lr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let n=this.createTransport(e),i=!1;Lr.priorWebsocketSuccess=!1;const a=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Lr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),n.close(),n=null)}const u=y=>{const w=new Error("probe error: "+y);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function d(){u("transport closed")}function h(){u("socket closed")}function p(y){n&&y.name!==n.name&&l()}const g=()=>{n.removeListener("open",a),n.removeListener("error",u),n.removeListener("close",d),this.off("close",h),this.off("upgrading",p)};n.once("open",a),n.once("error",u),n.once("close",d),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&n.push(e[i]);return n}}let tR=class extends eR{constructor(e,n={}){const i=typeof e=="object"?e:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>GP[a]).filter(a=>!!a)),super(e,i)}};function nR(t,e="",n){let i=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),i=of(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}const rR=typeof ArrayBuffer=="function",sR=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,rw=Object.prototype.toString,iR=typeof Blob=="function"||typeof Blob<"u"&&rw.call(Blob)==="[object BlobConstructor]",oR=typeof File=="function"||typeof File<"u"&&rw.call(File)==="[object FileConstructor]";function Gf(t){return rR&&(t instanceof ArrayBuffer||sR(t))||iR&&t instanceof Blob||oR&&t instanceof File}function Ml(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(Ml(t[n]))return!0;return!1}if(Gf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ml(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Ml(t[n]))return!0;return!1}function aR(t){const e=[],n=t.data,i=t;return i.data=lf(n,e),i.attachments=e.length,{packet:i,buffers:e}}function lf(t,e){if(!t)return t;if(Gf(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=lf(t[i],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=lf(t[i],e));return n}return t}function lR(t,e){return t.data=uf(t.data,e),delete t.attachments,t}function uf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=uf(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=uf(t[n],e));return t}const uR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ae;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ae||(Ae={}));class cR{constructor(e){this.replacer=e}encode(e){return(e.type===Ae.EVENT||e.type===Ae.ACK)&&Ml(e)?this.encodeAsBinary({type:e.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Ae.BINARY_EVENT||e.type===Ae.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=aR(e),i=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(i),a}}class Xf extends rt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const i=n.type===Ae.BINARY_EVENT;i||n.type===Ae.BINARY_ACK?(n.type=i?Ae.EVENT:Ae.ACK,this.reconstructor=new dR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Gf(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const i={type:Number(e.charAt(0))};if(Ae[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Ae.BINARY_EVENT||i.type===Ae.BINARY_ACK){const l=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const u=e.substring(l,n);if(u!=Number(u)||e.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(e.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););i.nsp=e.substring(l,n)}else i.nsp="/";const a=e.charAt(n+1);if(a!==""&&Number(a)==a){const l=n+1;for(;++n;){const u=e.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===e.length)break}i.id=Number(e.substring(l,n+1))}if(e.charAt(++n)){const l=this.tryParse(e.substr(n));if(Xf.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Ae.CONNECT:return Wy(n);case Ae.DISCONNECT:return n===void 0;case Ae.CONNECT_ERROR:return typeof n=="string"||Wy(n);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&uR.indexOf(n[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class dR{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=lR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Wy(t){return Object.prototype.toString.call(t)==="[object Object]"}const fR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xf,Encoder:cR,get PacketType(){return Ae}},Symbol.toStringTag,{value:"Module"}));function Sn(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const hR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sw extends rt{constructor(e,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Sn(e,"open",this.onopen.bind(this)),Sn(e,"packet",this.onpacket.b
vendor: 2,660 bytes, line 275
275ind(this)),Sn(e,"error",this.onerror.bind(this)),Sn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){var i,a,l;if(hR.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Ae.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),u.id=g}const d=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(e,n){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[e]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},a),u=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};u.withError=!0,this.acks[e]=u}emitWithAck(e,...n){return new Promise((i,a)=>{const l=(u,d)=>u?a(u):i(d);l.withError=!0,n.push(l),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ae.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
vendor: 7,087 bytes, line 275
275_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ae.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(e);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(e);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let i=!1;return function(...a){i||(i=!0,n.packet({type:Ae.ACK,id:e,data:a}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ae.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,e.data)}}}function Ci(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Ci.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Ci.prototype.reset=function(){this.attempts=0};Ci.prototype.setMin=function(t){this.ms=t};Ci.prototype.setMax=function(t){this.max=t};Ci.prototype.setJitter=function(t){this.jitter=t};class cf extends rt{constructor(e,n){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,au(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ci({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const a=n.parser||fR;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new tR(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=Sn(n,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=Sn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(a),this.subs.push(u),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Sn(e,"ping",this.onping.bind(this)),Sn(e,"data",this.ondata.bind(this)),Sn(e,"error",this.onerror.bind(this)),Sn(e,"close",this.onclose.bind(this)),Sn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){ou(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new sw(this,e,n),this.nsps[e]=i),i}_destroy(e){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let i=0;i<n.length;i++)this.engine.write(n[i],e.options)}
275cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const go={};function Dl(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=nR(t,e.path||"/socket.io"),i=n.source,a=n.id,l=n.path,u=go[a]&&l in go[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let h;return d?h=new cf(i,e):(go[a]||(go[a]=new cf(i,e)),h=go[a]),n.query&&!e.query&&(e.query=n.queryKey),h.socket(n.path,e)}Object.assign(Dl,{Manager:cf,Socket:sw,io:Dl,connect:Dl});const pR=250;function Ky(t,e){var n;const i=(n=t.token)!==null&&n!==void 0?n:vs(),a={app_id:t.appId,token:i};i||(a.anonymous_id=Hl());const l=Dl(t.serverUrl,{path:t.mountPath,transports:t.transports,query:a});return l.on("connect",async()=>{var u;return console.log("connect",l.id),(u=e.connect)===null||u===void 0?void 0:u.call(e)}),l.on("update_model",async u=>{var d;return(d=e.update_model)===null||d===void 0?void 0:d.call(e,u)}),l.on("error",async u=>{var d;return(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l.on("connect_error",async u=>{var d;return console.error("connect_error",u),(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l}function mR({config:t}){let e={...t};const n={},i={},a={connect:async()=>{const b=[];Object.keys(n).forEach(A=>{const P=w(A);P.length!==0&&(p(A),P.forEach(({connect:N})=>{const z=async()=>N==null?void 0:N();b.push(z())}))}),await Promise.all(b)},update_model:async b=>{const P=w(b.room).map(N=>{var z;return(z=N.update_model)===null||z===void 0?void 0:z.call(N,b)});await Promise.all(P)},error:async b=>{console.error("error",b);const A=Object.values(n).flat().map(P=>{var N;return(N=P.error)===null||N===void 0?void 0:N.call(P,b)});await Promise.all(A)}};let l=Ky(t,a);function u(){d()}function d(){E(),l&&l.disconnect()}function h(b){u(),e={...e,...b},l=Ky(e,a)}function p(b){l.emit("join",b)}function g(b){l.emit("leave",b)}async function y(b,A){var P;const N=JSON.stringify(A);return(P=a.update_model)===null||P===void 0?void 0:P.call(a,{room:b,data:N})}function w(b){var A;return(A=n[b])!==null&&A!==void 0?A:[]}function _(b){const A=i[b];A&&(clearTimeout(A),delete i[b])}
275function E(){Object.keys(i).forEach(b=>{var A,P;clearTimeout(i[b]),delete i[b],((P=(A=n[b])===null||A===void 0?void 0:A.length)!==null&&P!==void 0?P:0)===0&&delete n[b]})}function C(b){_(b),i[b]=setTimeout(()=>{var A,P;delete i[b],!(((P=(A=n[b])===null||A===void 0?void 0:A.length)!==null&&P!==void 0?P:0)>0)&&(g(b),delete n[b])},pR)}return{socket:l,subscribeToRoom:(b,A)=>{n[b]?_(b):(p(b),n[b]=[]),n[b].push(A);let P=!1;return()=>{var N,z;P||(P=!0,n[b]=(z=(N=n[b])===null||N===void 0?void 0:N.filter(B=>B!==A))!==null&&z!==void 0?z:[],n[b].length===0&&C(b))}},updateConfig:h,updateModel:y,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
276  PartySocket requires a global 'EventTarget' class to be available!
277  You can polyfill this global by adding this to your code before any partysocket imports: 
278  
279  \`\`\`
280  import 'partysocket/event-target-polyfill';
281  \`\`\`
282  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
283`);var iw=class extends Event{constructor(e,n){super("error",n);Le(this,"message");Le(this,"error");this.message=e.message,this.error=e}},ow=class extends Event{constructor(e=1e3,n="",i){super("close",i);Le(this,"code");Le(this,"reason");Le(this,"wasClean",!0);this.code=e,this.reason=n}},Sd={Event,ErrorEvent:iw,CloseEvent:ow};function gR(t,e){if(!t)throw new Error(e)}function yR(t){return new t.constructor(t.type,t)}function vR(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new ow(t.code||1999,t.reason||"unknown reason",t):"error"in t?new iw(t.error,t):new Event(t.type,t)}var Sv,xR=typeof process<"u"&&typeof((Sv=process.versions)==null?void 0:Sv.node)<"u"&&typeof document>"u",Sl=xR?vR:yR,Zr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Qy=!1,wR=class ts extends EventTarget{constructor(n,i,a={}){super();Le(this,"_ws");Le(this,"_retryCount",-1);Le(this,"_uptimeTimeout");Le(this,"_connectTimeout");Le(this,"_shouldReconnect",!0);Le(this,"_connectLock",!1);Le(this,"_binaryType","blob");Le(this,"_closeCalled",!1);Le(this,"_messageQueue",[]);Le(this,"_url");Le(this,"_protocols");Le(this,"_options");Le(this,"onclose",null);Le(this,"onerror",null);Le(this,"onmessage",null);Le(this,"onopen",null);Le(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=Zr.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),gR(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(a=>{var l;return(l=this._ws)==null?void 0:l.send(a)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Sl(n))});Le(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Sl(n))});Le(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Sl(n)),this._connect()});Le(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Sl(n))});this._url=n,this._protocols=i,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return ts.CONNECTING}get OPEN(){return ts.OPEN}get CLOSING(){return ts.CLOSING}get CLOSED(){return ts.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((i,a)=>(typeof a=="string"?i+=a.length:a instanceof Blob?i+=a.size:i+=a.byteLength,i),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?ts.CLOSED:ts.
283CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,i){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,i)}reconnect(n,i){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,i),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:i=Zr.maxEnqueuedMessages}=this._options;this._messageQueue.length<i&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Zr.reconnectionDelayGrowFactor,minReconnectionDelay:i=Zr.minReconnectionDelay,maxReconnectionDelay:a=Zr.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const i=n();if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(i.then)return i}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const i=n();if(typeof i=="string")return Promise.resolve(i);if(i.then)return i}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
vendor: 4,382 bytes, lines 283-301
283const{maxRetries:n=Zr.maxRetries,connectionTimeout:i=Zr.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([a,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Qy&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
284
285For example, if you're using node.js, run \`npm install ws\`, and then in your code:
286
287import PartySocket from 'partysocket';
288import WS from 'ws';
289
290const partysocket = new PartySocket({
291  host: "127.0.0.1:1999",
292  room: "test-room",
293  WebSocket: WS
294});
295
296`),Qy=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:a,protocols:l}),this._ws=l?new u(a,l):new u(a),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),i)}).catch(a=>{this._connectLock=!1,this._handleError(new Sd.ErrorEvent(Error(a.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Sd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new Sd.CloseEvent(n,i,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
297 * Reconnecting WebSocket
298 * by Pedro Ladaria <[email protected]>
299 * https://github.com/pladaria/reconnecting-websocket
300 * License MIT
301 */var bR=t=>t[1]!==null&&t[1]!==void 0;function SR(){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();let t=new Date().getTime(),e=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){let i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),(n==="x"?i:i&3|8).toString(16)})}function aw(t,e,n={}){const{host:i,path:a,protocol:l,room:u,party:d,query:h}=t;let p=i.replace(/^(http|https|ws|wss):\/\//,"");if(p.endsWith("/")&&(p=p.slice(0,-1)),a&&a.startsWith("/"))throw new Error("path must not start with a slash");const g=d??"main",y=a?`/${a}`:"",w=l||(p.startsWith("localhost:")||p.startsWith("127.0.0.1:")||p.startsWith("192.168.")||p.startsWith("10.")||p.startsWith("172.")&&p.split(".")[1]>="16"&&p.split(".")[1]<="31"||p.startsWith("[::ffff:7f00:1]:")?e:e+"s"),_=`${w}://${p}/${d?`parties/${d}`:"party"}/${u}${y}`,E=(S={})=>`${_}?${new URLSearchParams([...Object.entries(n),...Object.entries(S).filter(bR)])}`,C=typeof h=="function"?async()=>E(await h()):E(h);return{host:p,path:y,room:u,name:g,protocol:w,partyUrl:_,urlProvider:C}}var _R=class extends wR{constructor(e){const n=Gy(e);super(n.urlProvider,n.protocols,n.socketOptions);Le(this,"_pk");Le(this,"_pkurl");Le(this,"name");Le(this,"room");Le(this,"host");Le(this,"path");this.partySocketOptions=e,this.setWSProperties(n)}updateProperties(e){const n=Gy({...e,host:e.host??this.host,room:e.room??this.room,path:e.path??this.path});this._url=n.urlProvider,this._protocols=n.protocols,this._options=n.socketOptions,this.setWSProperties(n)}setWSProperties(e){const{_pk:n,_pkurl:i,name:a,room:l,host:u,path:d}=e;this._pk=n,this._pkurl=i,this.name=a,this.room=l,this.host=u,this.path=d}reconnect(e,n){if(!this.room||!this.host)throw new Error("The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor.");super.reconnect(e,n)}get id(){return this._pk}get roomUrl(){return this._pkurl}
301static async fetch(e,n){const i=aw(e,"http"),a=typeof i.urlProvider=="string"?i.urlProvider:await i.urlProvider();return(e.fetch??fetch)(a,n)}};function Gy(t){const{id:e,host:n,path:i,party:a,room:l,protocol:u,query:d,protocols:h,...p}=t,g=e||SR(),y=aw(t,"ws",{_pk:g});return{_pk:g,_pkurl:y.partyUrl,name:y.name,room:y.room,host:y.host,path:y.path,protocols:h,socketOptions:p,urlProvider:y.urlProvider}}const CR=1e3,kR=3e3;class ER{constructor(e,n,i,a,l){var u;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.id=(u=a==null?void 0:a.id)!==null&&u!==void 0?u:crypto.randomUUID();const d=new _R({host:i.host,party:e,room:n,id:this.id,query:()=>{const g=i.getAuthToken();return{app_id:i.appId,handler:e,...g?{token:g}:{},...i.functionsVersion?{fv:i.functionsVersion}:{}}}});this.ws=d;let h=Date.now();const p=()=>{h=Date.now()};d.addEventListener("open",p),d.addEventListener("message",g=>{p();let y;try{y=JSON.parse(g.data)}catch{return}if((y&&typeof y=="object"?y.type:void 0)!=="__pong")for(const _ of this.listeners)_(y)}),this.heartbeat=setInterval(()=>{if(Date.now()-h>kR){p(),d.reconnect();return}try{d.send(JSON.stringify({type:"__ping"}))}catch{}},CR)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.ws.send(JSON.stringify(e))}close(){this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose()}}function TR(t,e,n,i){let a=null;return{connect(l){if(a)return a;const u=new ER(t,e,n,l,()=>{i.delete(u),a===u&&(a=null)});return a=u,i.add(u),u}}}function PR(t,e){return t&&!t.startsWith("/")?t:e??t}function RR(t){const e=new Set;return{module:new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"))return l=>TR(a,l,t,e)}}),closeAll:()=>{for(const i of[...e])i.close()}}}function AR(t){var e,n,i;const{serverUrl:a="https://base44.app",appId:l,token:u,serviceToken:d,requiresAuth:h=!1,appBaseUrl:p,options:g,functionsVersion:y,headers:w}=t,_=typeof p=="string"?p:"",E={serverUrl:a,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:u};let C=null;const S=()=>(C||(C=mR({config:E})),C),b={...w,"X-App-Id":String(l)},A=y?{...b,"Base44-Functions-Version":y}:b,P=wo({baseURL:`${a}/api`,headers:b,token:u,onError:g==null?void 0:g.onError}),N=wo({baseURL:`${a}/api`,headers:A,token:u,interceptResponses:!1,onError:g==null?void 0:g.onError}),z={...b,...u?{"on-behalf-of":`Bearer ${u}`}:{}},B=wo({baseURL:`${a}/api`,headers:z,token:d,onError:g==null?void 0:g.onError}),Y=wo({baseURL:`${a}/api`,headers:A,token:d,interceptResponses:!1}),U=pP(P,N,l,{appBaseUrl:_,token:u});if(typeof window<"u"){const Se=u||vs();Se&&U.setToken(Se)}const Z=RR({appId:l,host:PR(a,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:y,getAuthToken:()=>u||vs()}),le={entities:Dy({axios:P,appId:l,getSocket:S}),integrations:Iy(P,l),connectors:xP(P,l),auth:U,functions:Fy(N,l,{getAuthHeaders:()=>{const Se={},ke=u||vs();return ke&&(Se.Authorization=`Bearer ${ke}`),Se},baseURL:(n=N.defaults)===null||n===void 0?void 0:n.baseURL}),agents:zy({axios:P,getSocket:S,appId:l,serverUrl:a,token:u}),aiGateway:Uy({serverUrl:a,token:u,appId:l}),appLogs:Vy(P,l),users:bP(P,l),analytics:eP({axiosClient:P,serverUrl:a,appId:l,userAuthModule:U}),actors:Z.module,cleanup:()=>{le.analytics.cleanup(),Z.closeAll(),C&&C.disconnect()}},be={entities:Dy({axios:B,appId:l,getSocket:S}),integrations:Iy(B,l),sso:mP(B,l),connectors:yP(B,l),functions:Fy(Y,l,{getAuthHeaders:()=>{const Se={};return d&&(Se.Authorization=`Bearer ${d}`),Se},baseURL:(i=Y.defaults)===null||i===void 0?void 0:i.baseURL}),agents:zy({axios:B,getSocket:S,appId:l,serverUrl:a,token:u}),aiGateway:Uy({serverUrl:a,token:d,appId:l}),appLogs:Vy(B,l),cleanup:()=>{C&&C.disconnect()}};return h&&typeof window<"u"&&setTimeout(async()=>{try{await le.auth.isAuthenticated()||le.auth.redirectToLogin(window.location.href)}catch(Se){console.error("Authentication check failed:",Se),le.auth.redirectToLogin(window.location.href)}},0),{...le,setToken(Se){le.auth.setToken(Se),C&&C.updateConfig({token:Se}),E.token=Se},getConfig(){return{serverUrl:a,appId:l,requiresAuth:h}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return be}}}const lw=typeof window>"u",NR=lw?{localStorage:new Map}:window,Po=NR.localStorage,OR=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Ys=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>
301{if(lw)return e;const i=`base44_${OR(t)}`,a=new URLSearchParams(window.location.search),l=a.get(t);if(n){a.delete(t);const d=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Po.setItem(i,l),l;if(e)return Po.setItem(i,e),e;const u=Po.getItem(i);return u||null},jR=()=>(Ys("clear_access_token")==="true"&&(Po.removeItem("base44_access_token"),Po.removeItem("token")),{appId:Ys("app_id",{defaultValue:"69b9bb00a9eca6f28f281c13"}),token:Ys("access_token",{removeFromUrl:!0}),fromUrl:Ys("from_url",{defaultValue:window.location.href}),functionsVersion:Ys("functions_version",{defaultValue:"prod"}),appBaseUrl:Ys("app_base_url",{defaultValue:void 0})}),So={...jR()},{appId:LR,token:MR,functionsVersion:DR,appBaseUrl:IR}=So,_o=AR({appId:LR,token:MR,functionsVersion:DR,serverUrl:"",requiresAuth:!1,appBaseUrl:IR});function FR({}){var a;const e=nu().pathname.substring(1),{data:n,isFetched:i}=HC({queryKey:["user"],queryFn:async()=>{try{return{user:await _o.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return v.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:v.jsx("div",{className:"max-w-md w-full",children:v.jsxs("div",{className:"text-center space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),v.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),v.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",v.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((a=n.user)==null?void 0:a.role)==="admin"&&v.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:v.jsxs("div",{className:"flex items-start space-x-3",children:[v.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),v.jsxs("div",{className:"text-left space-y-1",children:[v.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),v.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),v.jsx("div",{className:"pt-6",children:v.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[v.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const uw=D.createContext(),zR=({children:t})=>{const[e,n]=D.useState(null),[i,a]=D.useState(!1),[l,u]=D.useState(!0),[d,h]=D.useState(!0),[p,g]=D.useState(null),[y,w]=D.useState(null);D.useEffect(()=>{_()},[]);const _=async()=>{var b,A;try{h(!0),g(null);const P=wo({baseURL:"/api/apps/public",headers:{"X-App-Id":So.appId},token:So.token,interceptResponses:!0});try{const N=await P.get(`/prod/public-settings/by-id/${So.appId}`);w(N),So.token?await E():(u(!1),a(!1)),h(!1)}catch(N){if(console.error("App state check failed:",N),N.status===403&&((A=(b=N.data)==null?void 0:b.extra_data)!=null&&A.reason)){const z=N.data.extra_data.reason;g(z==="auth_required"?{type:"auth_required",message:"Authentication required"}:z==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:z,message:N.message})}else g({type:"unknown",message:N.message||"Failed to load app"});h(!1),u(!1)}}catch(P){console.error("Unexpected error:",P),g({type:"unknown",message:P.message||"An unexpected error occurred"}),h(!1),u(!1)}},E=async()=>{try{u(!0);const b=await _o.auth.me();n(b),a(!0),u(!1)}catch(b){console.error("User auth check failed:",b),u(!1),a(!1),(b.status===401||b.status===403)&&g({type:"auth_required",message:"Authentication required"})}},C=(b=!0)=>{n(null),a(!1),b?_o.auth.logout(window.location.href):_o.auth.logout()},S=()=>{_o.auth.redirectToLogin(window.location.href)};return v.jsx(uw.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:p,appPublicSettings:y,logout:C,navigateToLogin:S,checkAppState:_},children:t})},UR=()=>{const t=D.useContext(uw);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t}
vendor: 33,739 bytes, lines 301-309
301,VR=()=>v.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:v.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:v.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),v.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),v.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),v.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[v.jsx("p",{children:"If you believe this is an error, you can:"}),v.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[v.jsx("li",{children:"Verify you are logged in with the correct account"}),v.jsx("li",{children:"Contact the app administrator for access"}),v.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),Yf=D.createContext({});function Jf(t){const e=D.useRef(null);return e.current===null&&(e.current=t()),e.current}const lu=D.createContext(null),Zf=D.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class BR extends D.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function $R({children:t,isPresent:e}){const n=D.useId(),i=D.useRef(null),a=D.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=D.useContext(Zf);return D.useInsertionEffect(()=>{const{width:u,height:d,top:h,left:p}=a.current;if(e||!i.current||!u||!d)return;i.current.dataset.motionPopId=n;const g=document.createElement("style");return l&&(g.nonce=l),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(`
302          [data-motion-pop-id="${n}"] {
303            position: absolute !important;
304            width: ${u}px !important;
305            height: ${d}px !important;
306            top: ${h}px !important;
307            left: ${p}px !important;
308          }
309        `),()=>{document.head.removeChild(g)}},[e]),v.jsx(BR,{isPresent:e,childRef:i,sizeRef:a,children:D.cloneElement(t,{ref:i})})}const qR=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:u})=>{const d=Jf(HR),h=D.useId(),p=D.useCallback(y=>{d.set(y,!0);for(const w of d.values())if(!w)return;i&&i()},[d,i]),g=D.useMemo(()=>({id:h,initial:e,isPresent:n,custom:a,onExitComplete:p,register:y=>(d.set(y,!1),()=>d.delete(y))}),l?[Math.random(),p]:[n,p]);return D.useMemo(()=>{d.forEach((y,w)=>d.set(w,!1))},[n]),D.useEffect(()=>{!n&&!d.size&&i&&i()},[n]),u==="popLayout"&&(t=v.jsx($R,{isPresent:n,children:t})),v.jsx(lu.Provider,{value:g,children:t})};function HR(){return new Map}function cw(t=!0){const e=D.useContext(lu);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=D.useId();D.useEffect(()=>{t&&a(l)},[t]);const u=D.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const _l=t=>t.key||"";function Xy(t){const e=[];return D.Children.forEach(t,n=>{D.isValidElement(n)&&e.push(n)}),e}const eh=typeof window<"u",dw=eh?D.useLayoutEffect:D.useEffect,th=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1})=>{const[d,h]=cw(u),p=D.useMemo(()=>Xy(t),[t]),g=u&&!d?[]:p.map(_l),y=D.useRef(!0),w=D.useRef(p),_=Jf(()=>new Map),[E,C]=D.useState(p),[S,b]=D.useState(p);dw(()=>{y.current=!1,w.current=p;for(let N=0;N<S.length;N++){const z=_l(S[N]);g.includes(z)?_.delete(z):_.get(z)!==!0&&_.set(z,!1)}},[S,g.length,g.join("-")]);const A=[];if(p!==E){let N=[...p];for(let z=0;z<S.length;z++){const B=S[z],Y=_l(B);g.includes(Y)||(N.splice(z,0,B),A.push(B))}l==="wait"&&A.length&&(N=A),b(Xy(N)),C(p);return}const{forceRender:P}=D.useContext(Yf);return v.jsx(v.Fragment,{children:S.map(N=>{const z=_l(N),B=u&&!d?!1:p===S||g.includes(z),Y=()=>{if(_.has(z))_.set(z,!0);else return;let U=!0;_.forEach(Z=>{Z||(U=!1)}),U&&(P==null||P(),b(w.current),u&&(h==null||h()),i&&i())};return v.jsx(qR,{isPresent:B,initial:!y.current||n?void 0:!1,custom:B?void 0:e,presenceAffectsLayout:a,mode:l,onExitComplete:B?void 0:Y,children:N},z)})})},Wt=t=>t;let fw=Wt;function nh(t){let e;return()=>(e===void 0&&(e=t()),e)}const vi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Xn=t=>t*1e3,Yn=t=>t/1e3,WR={useManualTiming:!1};function KR(t){let e=new Set,n=new Set,i=!1,a=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(h.schedule(p),t()),p(u)}const h={schedule:(p,g=!1,y=!1)=>{const _=y&&i?e:n;return g&&l.add(p),_.has(p)||_.add(p),p},cancel:p=>{n.delete(p),l.delete(p)},process:p=>{if(u=p,i){a=!0;return}i=!0,[e,n]=[n,e],e.forEach(d),e.clear(),i=!1,a&&(a=!1,h.process(p))}};return h}const Cl=["read","resolveKeyframes","update","preRender","render","postRender"],QR=40;function hw(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Cl.reduce((b,A)=>(b[A]=KR(l),b),{}),{read:d,resolveKeyframes:h,update:p,preRender:g,render:y,postRender:w}=u,_=()=>{const b=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(b-a.timestamp,QR),1),a.timestamp=b,a.isProcessing=!0,d.process(a),h.process(a),p.process(a),g.process(a),y.process(a),w.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(_))},E=()=>{n=!0,i=!0,a.isProcessing||t(_)};return{schedule:Cl.reduce((b,A)=>{const P=u[A];return b[A]=(N,z=!1,B=!1)=>(n||E(),P.schedule(N,z,B)),b},{}),cancel:b=>{for(let A=0;A<Cl.length;A++)u[Cl[A]].cancel(b)},state:a,steps:u}}const{schedule:qe,cancel:Mr,state:vt,steps:_d}=hw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wt,!0),pw=D.createContext({strict:!1}),Yy={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"]},xi={};for(const t in Yy)xi[t]={isEnabled:e=>Yy[t].some(n=>!!e[n])};function GR(t){for(const e in t)xi[e]={...xi[e],...t[e]}}const XR=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 Wl(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||XR.has(t)}let mw=t=>!Wl(t);function YR(t){t&&(mw=e=>e.startsWith("on")?!Wl(e):t(e))}try{YR(require("@emotion/is-prop-valid").default)}catch{}function JR(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(mw(a)||n===!0&&Wl(a)||!e&&!Wl(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function ZR(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const uu=D.createContext({});function Fo(t){return typeof t=="string"||Array.isArray(t)}function cu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const rh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sh=["initial",...rh];function du(t){return cu(t.animate)||sh.some(e=>Fo(t[e]))}function gw(t){return!!(du(t)||t.variants)}function eA(t,e){if(du(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Fo(n)?n:void 0,animate:Fo(i)?i:void 0}}return t.inherit!==!1?e:{}}function tA(t){const{initial:e,animate:n}=eA(t,D.useContext(uu));return D.useMemo(()=>({initial:e,animate:n}),[Jy(e),Jy(n)])}function Jy(t){return Array.isArray(t)?t.join(" "):t}const nA=Symbol.for("motionComponentSymbol");function Zs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function rA(t,e,n){return D.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Zs(n)&&(n.current=i))},[e])}const ih=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sA="framerAppearId",yw="data-"+ih(sA),{schedule:oh}=hw(queueMicrotask,!1),vw=D.createContext({});function iA(t,e,n,i,a){var l,u;const{visualElement:d}=D.useContext(uu),h=D.useContext(pw),p=D.useContext(lu),g=D.useContext(Zf).reducedMotion,y=D.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const w=y.current,_=D.useContext(vw);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&oA(y.current,n,a,_);const E=D.useRef(!1);D.useInsertionEffect(()=>{w&&E.current&&w.update(n,p)});const C=n[yw],S=D.useRef(!!C&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,C))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,C)));return dw(()=>{w&&(E.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),oh.render(w.render),S.current&&w.animationState&&w.animationState.animateChanges())}),D.useEffect(()=>{w&&(!S.current&&w.animationState&&w.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,C)}),S.current=!1))}),w}function oA(t,e,n,i){const{layoutId:a,layout:l,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:xw(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&Zs(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:p})}function xw(t){if(t)return t.options.allowProjection!==!1?t.projection:xw(t.parent)}function aA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:a}){var l,u;t&&GR(t);function d(p,g){let y;const w={...D.useContext(Zf),...p,layoutId:lA(p)},{isStatic:_}=w,E=tA(p),C=i(p,_);if(!_&&eh){uA();const S=cA(w);y=S.MeasureLayout,E.visualElement=iA(a,C,w,e,S.ProjectionNode)}return v.jsxs(uu.Provider,{value:E,children:[y&&E.visualElement?v.jsx(y,{visualElement:E.visualElement,...w}):null,n(a,p,rA(C,E.visualElement,g),C,_,E.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(u=(l=a.displayName)!==null&&l!==void 0?l:a.name)!==null&&u!==void 0?u:""})`}`;const h=D.forwardRef(d);return h[nA]=a,h}function lA({layoutId:t}){const e=D.useContext(Yf).id;return e&&t!==void 0?e+"-"+t:t}function uA(t,e){D.useContext(pw).strict}function cA(t){const{drag:e,layout:n}=xi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const dA=["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 ah(t){return typeof t!="string"||t.includes("-")?!1:!!(dA.indexOf(t)>-1||/[A-Z]/u.test(t))}function Zy(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function lh(t,e,n,i){if(typeof e=="function"){const[a,l]=Zy(i);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=Zy(i);e=e(n!==void 0?n:t.custom,a,l)}return e}const df=t=>Array.isArray(t),fA=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),hA=t=>df(t)?t[t.length-1]||0:t,Pt=t=>!!(t&&t.getVelocity);function Il(t){const e=Pt(t)?t.get():t;return fA(e)?e.toValue():e}function pA({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,a,l){const u={latestValues:mA(i,a,l,t),renderState:e()};return n&&(u.onMount=d=>n({props:i,current:d,...u}),u.onUpdate=d=>n(d)),u}const ww=t=>(e,n)=>{const i=D.useContext(uu),a=D.useContext(lu),l=()=>pA(t,e,i,a);return n?l():Jf(l)};function mA(t,e,n,i){const a={},l=i(t,{});for(const w in l)a[w]=Il(l[w]);let{initial:u,animate:d}=t;const h=du(t),p=gw(t);e&&p&&!h&&t.inherit!==!1&&(u===void 0&&(u=e.initial),d===void 0&&(d=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?d:u;if(y&&typeof y!="boolean"&&!cu(y)){const w=Array.isArray(y)?y:[y];for(let _=0;_<w.length;_++){const E=lh(t,w[_]);if(E){const{transitionEnd:C,transition:S,...b}=E;for(const A in b){let P=b[A];if(Array.isArray(P)){const N=g?P.length-1:0;P=P[N]}P!==null&&(a[A]=P)}for(const A in C)a[A]=C[A]}}}return a}const ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ks=new Set(ki),bw=t=>e=>typeof e=="string"&&e.startsWith(t),Sw=bw("--"),gA=bw("var(--"),uh=t=>gA(t)?yA.test(t.split("/*")[0].trim()):!1,yA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_w=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Jn=(t,e,n)=>n>e?e:n<t?t:n,Ei={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},zo={...Ei,transform:t=>Jn(0,1,t)},kl={...Ei,default:1},na=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_r=na("deg"),jn=na("%"),pe=na("px"),vA=na("vh"),xA=na("vw"),e0={...jn,parse:t=>jn.parse(t)/100,transform:t=>jn.transform(t*100)},wA={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},bA={rotate:_r,rotateX:_r,rotateY:_r,rotateZ:_r,scale:kl,scaleX:kl,scaleY:kl,scaleZ:kl,skew:_r,skewX:_r,skewY:_r,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:zo,originX:e0,originY:e0,originZ:pe},t0={...Ei,transform:Math.round},ch={...wA,...bA,zIndex:t0,size:pe,fillOpacity:zo,strokeOpacity:zo,numOctaves:t0},SA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_A=ki.length;function CA(t,e,n){let i="",a=!0;for(let l=0;l<_A;l++){const u=ki[l],d=t[u];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(u.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const p=_w(d,ch[u]);if(!h){a=!1;const g=SA[u]||u;i+=`${g}(${p}) `}n&&(e[u]=p)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function dh(t,e,n){const{style:i,vars:a,transformOrigin:l}=t;let u=!1,d=!1;for(const h in e){const p=e[h];if(ks.has(h)){u=!0;continue}else if(Sw(h)){a[h]=p;continue}else{const g=_w(p,ch[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(u||n?i.transform=CA(e,t.transform,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${p} ${g}`}}const kA={offset:"stroke-dashoffset",array:"stroke-dasharray"},EA={offset:"strokeDashoffset",array:"strokeDasharray"};function TA(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?kA:EA;t[l.offset]=pe.transform(-i);const u=pe.transform(e),d=pe.transform(n);t[l.array]=`${u} ${d}`}function n0(t,e,n){return typeof t=="string"?t:pe.transform(e+n*t)}function PA(t,e,n){const i=n0(e,t.x,t.width),a=n0(n,t.y,t.height);return`${i} ${a}`}function fh(t,{attrX:e,attrY:n,attrScale:i,originX:a,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:h=0,...p},g,y){if(dh(t,p,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:_,dimensions:E}=t;w.transform&&(E&&(_.transform=w.transform),delete w.transform),E&&(a!==void 0||l!==void 0||_.transform)&&(_.transformOrigin=PA(E,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),n!==void 0&&(w.y=n),i!==void 0&&(w.scale=i),u!==void 0&&TA(w,u,d,h,!1)}const hh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Cw=()=>({...hh(),attrs:{}}),ph=t=>typeof t=="string"&&t.toLowerCase()==="svg";function kw(t,{style:e,vars:n},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const Ew=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 Tw(t,e,n,i){kw(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(Ew.has(a)?a:ih(a),e.attrs[a])}const Kl={};function RA(t){Object.assign(Kl,t)}function Pw(t,{layout:e,layoutId:n}){return ks.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Kl[t]||t==="opacity")}function mh(t,e,n){var i;const{style:a}=t,l={};for(const u in a)(Pt(a[u])||e.style&&Pt(e.style[u])||Pw(u,t)||((i=n==null?void 0:n.getValue(u))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[u]=a[u]);return l}function Rw(t,e,n){const i=mh(t,e,n);for(const a in t)if(Pt(t[a])||Pt(e[a])){const l=ki.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function AA(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const r0=["x","y","width","height","cx","cy","r"],NA={useVisualState:ww({scrapeMotionValuesFromProps:Rw,createRenderState:Cw,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:a})=>{if(!n)return;let l=!!t.drag;if(!l){for(const d in a)if(ks.has(d)){l=!0;break}}if(!l)return;let u=!e;if(e)for(let d=0;d<r0.length;d++){const h=r0[d];t[h]!==e[h]&&(u=!0)}u&&qe.read(()=>{AA(n,i),qe.render(()=>{fh(i,a,ph(n.tagName),t.transformTemplate),Tw(n,i)})})}})},OA={useVisualState:ww({scrapeMotionValuesFromProps:mh,createRenderState:hh})};function Aw(t,e,n){for(const i in e)!Pt(e[i])&&!Pw(i,n)&&(t[i]=e[i])}function jA({transformTemplate:t},e){return D.useMemo(()=>{const n=hh();return dh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function LA(t,e){const n=t.style||{},i={};return Aw(i,n,t),Object.assign(i,jA(t,e)),i}function MA(t,e){const n={},i=LA(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function DA(t,e,n,i){const a=D.useMemo(()=>{const l=Cw();return fh(l,e,ph(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};Aw(l,t.style,t),a.style={...l,...a.style}}return a}function IA(t=!1){return(n,i,a,{latestValues:l},u)=>{const h=(ah(n)?DA:MA)(i,l,u,n),p=JR(i,typeof n=="string",t),g=n!==D.Fragment?{...p,...h,ref:a}:{},{children:y}=i,w=D.useMemo(()=>Pt(y)?y.get():y,[y]);return D.createElement(n,{...g,children:w})}}function FA(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const u={...ah(i)?NA:OA,preloadedFeatures:t,useRender:IA(a),createVisualElement:e,Component:i};return aA(u)}}function Nw(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function fu(t,e,n){const i=t.getProps();return lh(i,e,n!==void 0?n:i.custom,t)}const zA=nh(()=>window.ScrollTimeline!==void 0);class UA{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(a=>{if(zA()&&a.attachTimeline)return a.attachTimeline(e);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,l)=>{a&&a(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class VA extends UA{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function gh(t,e){return t?t[e]||t.default||t:void 0}const ff=2e4;function Ow(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<ff;)e+=n,i=t.next(e);return e>=ff?1/0:e}function yh(t){return typeof t=="function"}function s0(t,e){t.timeline=e,t.onfinish=null}const vh=t=>Array.isArray(t)&&typeof t[0]=="number",BA={linearEasing:void 0};function $A(t,e){const n=nh(t);return()=>{var i;return(i=BA[e])!==null&&i!==void 0?i:n()}}const Ql=$A(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jw=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=t(vi(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function Lw(t){return!!(typeof t=="function"&&Ql()||!t||typeof t=="string"&&(t in hf||Ql())||vh(t)||Array.isArray(t)&&t.every(Lw))}const Co=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Co([0,.65,.55,1]),circOut:Co([.55,0,1,.45]),backIn:Co([.31,.01,.66,-.59]),backOut:Co([.33,1.53,.69,.99])};function Mw(t,e){if(t)return typeof t=="function"&&Ql()?jw(t,e):vh(t)?Co(t):Array.isArray(t)?t.map(n=>Mw(n,e)||hf.easeOut):hf[t]}const xn={x:!1,y:!1};function Dw(){return xn.x||xn.y}function qA(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let a=document;const l=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function Iw(t,e){const n=qA(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function i0(t){return e=>{e.pointerType==="touch"||Dw()||t(e)}}function HA(t,e,n={}){const[i,a,l]=Iw(t,n),u=i0(d=>{const{target:h}=d,p=e(d);if(typeof p!="function"||!h)return;const g=i0(y=>{p(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,a)});return i.forEach(d=>{d.addEventListener("pointerenter",u,a)}),l}const Fw=(t,e)=>e?t===e?!0:Fw(t,e.parentElement):!1,xh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,WA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KA(t){return WA.has(t.tagName)||t.tabIndex!==-1}const ko=new WeakSet;function o0(t){return e=>{e.key==="Enter"&&t(e)}}function Cd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const QA=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=o0(()=>{if(ko.has(n))return;Cd(n,"down");const a=o0(()=>{Cd(n,"up")}),l=()=>Cd(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function a0(t){return xh(t)&&!Dw()}function GA(t,e,n={}){const[i,a,l]=Iw(t,n),u=d=>{const h=d.currentTarget;if(!a0(d)||ko.has(h))return;ko.add(h);const p=e(d),g=(_,E)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),!(!a0(_)||!ko.has(h))&&(ko.delete(h),typeof p=="function"&&p(_,{success:E}))},y=_=>{g(_,n.useGlobalTarget||Fw(h,_.target))},w=_=>{g(_,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{!KA(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),d.addEventListener("focus",p=>QA(p,a),a)}),l}function XA(t){return t==="x"||t==="y"?xn[t]?null:(xn[t]=!0,()=>{xn[t]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}const zw=new Set(["width","height","top","left","right","bottom",...ki]);let Fl;function YA(){Fl=void 0}const Ln={now:()=>(Fl===void 0&&Ln.set(vt.isProcessing||WR.useManualTiming?vt.timestamp:performance.now()),Fl),set:t=>{Fl=t,queueMicrotask(YA)}};function wh(t,e){t.indexOf(e)===-1&&t.push(e)}function bh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Sh{constructor(){this.subscriptions=[]}add(e){return wh(this.subscriptions,e),()=>bh(this.subscriptions,e)}notify(e,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,i);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Uw(t,e){return e?t*(1e3/e):0}const l0=30,JA=t=>!isNaN(parseFloat(t));class ZA{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=Ln.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=JA(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sh);const i=this.events[e].add(n);return e==="change"?()=>{i(),qe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>l0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,l0);return Uw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Uo(t,e){return new ZA(t,e)}function eN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Uo(n))}function tN(t,e){const n=fu(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const d=hA(l[u]);eN(t,u,d)}}function nN(t){return!!(Pt(t)&&t.add)}function pf(t,e){const n=t.getValue("willChange");if(nN(n))return n.add(e)}function Vw(t){return t.props[yw]}const Bw=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,rN=1e-7,sN=12;function iN(t,e,n,i,a){let l,u,d=0;do u=e+(n-e)/2,l=Bw(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>rN&&++d<sN);return u}function ra(t,e,n,i){if(t===e&&n===i)return Wt;const a=l=>iN(l,0,1,t,n);return l=>l===0||l===1?l:Bw(a(l),e,i)}const $w=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qw=t=>e=>1-t(1-e),Hw=ra(.33,1.53,.69,.99),_h=qw(Hw),Ww=$w(_h),Kw=t=>(t*=2)<1?.5*_h(t):.5*(2-Math.pow(2,-10*(t-1))),Ch=t=>1-Math.sin(Math.acos(t)),Qw=qw(Ch),Gw=$w(Ch),Xw=t=>/^0[^.\s]+$/u.test(t);function oN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Xw(t):!0}const Ro=t=>Math.round(t*1e5)/1e5,kh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aN(t){return t==null}const lN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Eh=(t,e)=>n=>!!(typeof n=="string"&&lN.test(n)&&n.startsWith(t)||e&&!aN(n)&&Object.prototype.hasOwnProperty.call(n,e)),Yw=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,d]=i.match(kh);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},uN=t=>Jn(0,255,t),kd={...Ei,transform:t=>Math.round(uN(t))},os={test:Eh("rgb","red"),parse:Yw("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+kd.transform(t)+", "+kd.transform(e)+", "+kd.transform(n)+", "+Ro(zo.transform(i))+")"};function cN(t){let e="",n="",i="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const mf={test:Eh("#"),parse:cN,transform:os.transform},ei={test:Eh("hsl","hue"),parse:Yw("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+jn.transform(Ro(e))+", "+jn.transform(Ro(n))+", "+Ro(zo.transform(i))+")"},Tt={test:t=>os.test(t)||mf.test(t)||ei.test(t),parse:t=>os.test(t)?os.parse(t):ei.test(t)?ei.parse(t):mf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?os.transform(t):ei.transform(t)},dN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(kh))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(dN))===null||n===void 0?void 0:n.length)||0)>0}const Jw="number",Zw="color",hN="var",pN="var(",u0="${}",mN=/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 Vo(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(mN,h=>(Tt.test(h)?(i.color.push(l),a.push(Zw),n.push(Tt.parse(h))):h.startsWith(pN)?(i.var.push(l),a.push(hN),n.push(h)):(i.number.push(l),a.push(Jw),n.push(parseFloat(h))),++l,u0)).split(u0);return{values:n,split:d,indexes:i,types:a}}function e1(t){return Vo(t).values}function t1(t){const{split:e,types:n}=Vo(t),i=e.length;return a=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],a[u]!==void 0){const d=n[u];d===Jw?l+=Ro(a[u]):d===Zw?l+=Tt.transform(a[u]):l+=a[u]}return l}}const gN=t=>typeof t=="number"?0:t;function yN(t){const e=e1(t);return t1(t)(e.map(gN))}const Dr={test:fN,parse:e1,createTransformer:t1,getAnimatableNone:yN},vN=new Set(["brightness","contrast","saturate","opacity"]);function xN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(kh)||[];if(!i)return t;const a=n.replace(i,"");let l=vN.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const wN=/\b([a-z-]*)\(.*?\)/gu,gf={...Dr,getAnimatableNone:t=>{const e=t.match(wN);return e?e.map(xN).join(" "):t}},bN={...ch,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:gf,WebkitFilter:gf},Th=t=>bN[t];function n1(t,e){let n=Th(t);return n!==gf&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const SN=new Set(["auto","none","0"]);function _N(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!SN.has(l)&&Vo(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=n1(n,a)}const c0=t=>t===Ei||t===pe,d0=(t,e)=>parseFloat(t.split(", ")[e]),f0=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return d0(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?d0(l[1],t):0}},CN=new Set(["x","y","z"]),kN=ki.filter(t=>!CN.has(t));function EN(t){const e=[];return kN.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const wi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:f0(4,13),y:f0(5,14)};wi.translateX=wi.x;wi.translateY=wi.y;const xs=new Set;let yf=!1,vf=!1;function r1(){if(vf){const t=Array.from(xs).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>
vendor: 7,837 bytes, line 309
309{const a=EN(i);a.length&&(n.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,u])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}vf=!1,yf=!1,xs.forEach(t=>t.complete()),xs.clear()}function s1(){xs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(vf=!0)})}function TN(){s1(),r1()}class Ph{constructor(e,n,i,a,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xs.add(this),yf||(yf=!0,qe.read(s1),qe.resolveKeyframes(r1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:a}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const u=a==null?void 0:a.get(),d=e[e.length-1];if(u!==void 0)e[0]=u;else if(i&&n){const h=i.readValue(n,d);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=d),a&&u===void 0&&a.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const i1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),PN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RN(t){const e=PN.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function o1(t,e,n=1){const[i,a]=RN(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return i1(u)?parseFloat(u):u}return uh(a)?o1(a,e,n+1):a}const a1=t=>e=>e.test(t),AN={test:t=>t==="auto",parse:t=>t},l1=[Ei,pe,jn,_r,xA,vA,AN],h0=t=>l1.find(a1(t));class u1 extends Ph{constructor(e,n,i,a,l){super(e,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let p=e[h];if(typeof p=="string"&&(p=p.trim(),uh(p))){const g=o1(p,n.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!zw.has(i)||e.length!==2)return;const[a,l]=e,u=h0(a),d=h0(l);if(u!==d)if(c0(u)&&c0(d))for(let h=0;h<e.length;h++){const p=e[h];typeof p=="string"&&(e[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let a=0;a<e.length;a++)oN(e[a])&&i.push(a);i.length&&_N(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wi[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=a.length-1,d=a[u];a[u]=wi[i](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const p0=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Dr.test(t)||t==="0")&&!t.startsWith("url("));function NN(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ON(t,e,n,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=p0(a,e),d=p0(l,e);return!u||!d?!1:NN(t)||(n==="spring"||yh(n))&&i}const jN=t=>t!==null;function hu(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(jN),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const LN=40;class c1{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:e,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>LN?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&TN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:u,onComplete:d,onUpdate:h,isGenerator:p}=this.options;if(!p&&!ON(e,i,a,l))if(u)this.options.duration=0;else{h&&h(hu(e,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,n);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Qe=(t,e,n)=>t+(e-t)*n;function Ed(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function MN({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,l=0,u=0;if(!e)a=l=u=n;else{const d=n<.5?n*(1+e):n+e-n*e,h=2*n-d;a=Ed(h,d,t+1/3),l=Ed(h,d,t),u=Ed(h,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Gl(t,e){return n=>n>0?e:t}const Td=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},DN=[mf,os,ei],IN=t=>DN.find(e=>e.test(t));function m0(t){const e=IN(t);if(!e)return!1;let n=e.parse(t);return e===ei&&(n=MN(n)),n}const g0=(t,e)=>{const n=m0(t),i=m0(e);if(!n||!i)return Gl(t,e);const a={...n};return l=>(a.red=Td(n.red,i.red,l),a.green=Td(n.green,i.green,l),a.blue=Td(n.blue,i.blue,l),a.alpha=Qe(n.alpha,i.alpha,l),os.transform(a))},FN=(t,e)=>n=>e(t(n)),sa=(...t)=>t.reduce(FN),xf=new Set(["none","hidden"]);function zN(t,e){return xf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function UN(t,e){return n=>Qe(t,e,n)}function Rh(t){return typeof t=="number"?UN:typeof t=="string"?uh(t)?Gl:Tt.test(t)?g0:$N:Array.isArray(t)?d1:typeof t=="object"?Tt.test(t)?g0:VN:Gl}function d1(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>Rh(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function VN(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=Rh(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function BN(t,e){var n;const i=[],a={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const u=e.types[l],d=t.indexes[u][a[u]],h=(n=t.values[d])!==null&&n!==void 0?n:0;i[l]=h,a[u]++}return i}const $N=(t,e)=>{const n=Dr.createTransformer(e),i=Vo(t),a=Vo(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?xf.has(t)&&!a.values.length||xf.has(e)&&!i.values.length?zN(t,e):sa(d1(BN(i,a),a.values),n):Gl(t,e)};function f1(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Qe(t,e,n):Rh(t)(t,e)}const qN=5;function h1(t,e,n){const i=Math.max(e-qN,0);return Uw(n-t(i),e-i)}const Ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Pd=.001;function HN({duration:t=Ye.duration,bounce:e=Ye.bounce,velocity:n=Ye.velocity,mass:i=Ye.mass}){let a,l,u=1-e;u=Jn(Ye.minDamping,Ye.maxDamping,u),t=Jn(Ye.minDuration,Ye.maxDuration,Yn(t)),u<1?(a=p=>
vendor: 2,273 bytes, line 309
309{const g=p*u,y=g*t,w=g-n,_=wf(p,u),E=Math.exp(-y);return Pd-w/_*E},l=p=>{const y=p*u*t,w=y*n+n,_=Math.pow(u,2)*Math.pow(p,2)*t,E=Math.exp(-y),C=wf(Math.pow(p,2),u);return(-a(p)+Pd>0?-1:1)*((w-_)*E)/C}):(a=p=>{const g=Math.exp(-p*t),y=(p-n)*t+1;return-Pd+g*y},l=p=>{const g=Math.exp(-p*t),y=(n-p)*(t*t);return g*y});const d=5/t,h=KN(a,l,d);if(t=Xn(t),isNaN(h))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:t};{const p=Math.pow(h,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:t}}}const WN=12;function KN(t,e,n){let i=n;for(let a=1;a<WN;a++)i=i-t(i)/e(i);return i}function wf(t,e){return t*Math.sqrt(1-e*e)}const QN=["duration","bounce"],GN=["stiffness","damping","mass"];function y0(t,e){return e.some(n=>t[n]!==void 0)}function XN(t){let e={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...t};if(!y0(t,GN)&&y0(t,QN))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*Jn(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Ye.mass,stiffness:a,damping:l}}else{const n=HN(t);e={...e,...n,mass:Ye.mass},e.isResolvedFromDuration=!0}return e}function p1(t=Ye.visualDuration,e=Ye.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:p,mass:g,duration:y,velocity:w,isResolvedFromDuration:_}=XN({...n,velocity:-Yn(n.velocity||0)}),E=w||0,C=p/(2*Math.sqrt(h*g)),S=u-l,b=Yn(Math.sqrt(h/g)),A=Math.abs(S)<5;i||(i=A?Ye.restSpeed.granular:Ye.restSpeed.default),a||(a=A?Ye.restDelta.granular:Ye.restDelta.default);let P;if(C<1){const z=wf(b,C);P=B=>{const Y=Math.exp(-C*b*B);return u-Y*((E+C*b*S)/z*Math.sin(z*B)+S*Math.cos(z*B))}}else if(C===1)P=z=>u-Math.exp(-b*z)*(S+(E+b*S)*z);else{const z=b*Math.sqrt(C*C-1);P=B=>{const Y=Math.exp(-C*b*B),U=Math.min(z*B,300);return u-Y*((E+C*b*S)*Math.sinh(U)+z*S*Math.cosh(U))/z}}const N={calculatedDuration:_&&y||null,next:z=>{const B=P(z);if(_)d.done=z>=y;else{let Y=0;C<1&&(Y=z===0?Xn(E):h1(P,z,B));const U=Math.abs(Y)<=i,Z=Math.abs(u-B)<=a;d.done=U&&Z}return d.value=d.done?u:B,d},toString:()=>{const z=Math.min(Ow(N),ff),B=jw(Y=>N.next(z*Y).value,z,30);return z+"ms "+B}};return N}
vendor: 4,119 bytes, line 309
309function v0({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:h,restDelta:p=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},_=U=>d!==void 0&&U<d||h!==void 0&&U>h,E=U=>d===void 0?h:h===void 0||Math.abs(d-U)<Math.abs(h-U)?d:h;let C=n*e;const S=y+C,b=u===void 0?S:u(S);b!==S&&(C=b-y);const A=U=>-C*Math.exp(-U/i),P=U=>b+A(U),N=U=>{const Z=A(U),le=P(U);w.done=Math.abs(Z)<=p,w.value=w.done?b:le};let z,B;const Y=U=>{_(w.value)&&(z=U,B=p1({keyframes:[w.value,E(w.value)],velocity:h1(P,U,w.value),damping:a,stiffness:l,restDelta:p,restSpeed:g}))};return Y(0),{calculatedDuration:null,next:U=>{let Z=!1;return!B&&z===void 0&&(Z=!0,N(U),Y(U)),z!==void 0&&U>=z?B.next(U-z):(!Z&&N(U),w)}}}const YN=ra(.42,0,1,1),JN=ra(0,0,.58,1),m1=ra(.42,0,.58,1),ZN=t=>Array.isArray(t)&&typeof t[0]!="number",eO={linear:Wt,easeIn:YN,easeInOut:m1,easeOut:JN,circIn:Ch,circInOut:Gw,circOut:Qw,backIn:_h,backInOut:Ww,backOut:Hw,anticipate:Kw},x0=t=>{if(vh(t)){fw(t.length===4);const[e,n,i,a]=t;return ra(e,n,i,a)}else if(typeof t=="string")return eO[t];return t};function tO(t,e,n){const i=[],a=n||f1,l=t.length-1;for(let u=0;u<l;u++){let d=a(t[u],t[u+1]);if(e){const h=Array.isArray(e)?e[u]||Wt:e;d=sa(h,d)}i.push(d)}return i}function nO(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(fw(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=tO(e,i,a),h=d.length,p=g=>{if(u&&g<t[0])return e[0];let y=0;if(h>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const w=vi(t[y],t[y+1],g);return d[y](w)};return n?g=>p(Jn(t[0],t[l-1],g)):p}function rO(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=vi(0,e,i);t.push(Qe(n,1,a))}}function sO(t){const e=[0];return rO(e,t.length-1),e}function iO(t,e){return t.map(n=>n*e)}function oO(t,e){return t.map(()=>e||m1).splice(0,t.length-1)}function Xl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=ZN(i)?i.map(x0):x0(i),l={done:!1,value:e[0]},u=iO(n&&n.length===e.length?n:sO(e),t),d=nO(u,e,{ease:Array.isArray(a)?a:oO(e,a)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const aO=t=>{const e=({timestamp:n})=>t(n);return{start:()=>qe.update(e,!0),stop:()=>Mr(e),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},lO={decay:v0,inertia:v0,tween:Xl,keyframes:Xl,spring:p1},uO=t=>t/100;class Ah extends c1{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:i,element:a,keyframes:l}=this.options,u=(a==null?void 0:a.KeyframeResolver)||Ph,d=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new u(l,d,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=this.options,d=yh(n)?n:lO[n]||Xl;let h,p;d!==Xl&&typeof e[0]!="number"&&(h=sa(uO,f1(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(p=d({...this.options,keyframes:[...e].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=Ow(g));const{calculatedDuration:y}=g,w=y+a,_=w*(i+1)-a;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:w,totalDuration:_}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:U}=this.options;return{done:!0,value:U[U.length-1]}}const{finalKeyframe:a,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:p,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:_,repeatType:E,repeatDelay:C,onUpdate:S}
vendor: 55,509 bytes, line 309
309=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const b=this.currentTime-w*(this.speed>=0?1:-1),A=this.speed>=0?b<0:b>g;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let P=this.currentTime,N=l;if(_){const U=Math.min(this.currentTime,g)/y;let Z=Math.floor(U),le=U%1;!le&&U>=1&&(le=1),le===1&&Z--,Z=Math.min(Z,_+1),!!(Z%2)&&(E==="reverse"?(le=1-le,C&&(le-=C/y)):E==="mirror"&&(N=u)),P=Jn(0,1,le)*y}const z=A?{done:!1,value:h[0]}:N.next(P);d&&(z.value=d(z.value));let{done:B}=z;!A&&p!==null&&(B=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return Y&&a!==void 0&&(z.value=hu(h,this.options,a)),S&&S(z.value),Y&&this.finish(),z}get duration(){const{resolved:e}=this;return e?Yn(e.calculatedDuration):0}get time(){return Yn(this.currentTime)}set time(e){e=Xn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=aO,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const cO=new Set(["opacity","clipPath","filter","transform"]);function dO(t,e,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:h}={}){const p={[e]:n};h&&(p.offset=h);const g=Mw(d,a);return Array.isArray(g)&&(p.easing=g),t.animate(p,{delay:i,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const fO=nh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yl=10,hO=2e4;function pO(t){return yh(t.type)||t.type==="spring"||!Lw(t.ease)}function mO(t,e){const n=new Ah({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const a=[];let l=0;for(;!i.done&&l<hO;)i=n.sample(l),a.push(i.value),l+=Yl;return{times:void 0,keyframes:a,duration:l-Yl,ease:"linear"}}const g1={anticipate:Kw,backInOut:Ww,circInOut:Gw};function gO(t){return t in g1}class w0 extends c1{constructor(e){super(e);const{name:n,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new u1(l,(u,d)=>this.onKeyframesResolved(u,d),n,i,a),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:a,ease:l,type:u,motionValue:d,name:h,startTime:p}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&Ql()&&gO(l)&&(l=g1[l]),pO(this.options)){const{onComplete:y,onUpdate:w,motionValue:_,element:E,...C}=this.options,S=mO(e,C);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,a=S.times,l=S.ease,u="keyframes"}const g=dO(d.owner.current,h,e,{...this.options,duration:i,times:a,ease:l});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(s0(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(hu(e,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:a,type:u,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Yn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Yn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Xn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Wt;const{animation:i}=n;s0(i,e)}return Wt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:a,type:l,ease:u,times:d}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:g,onComplete:y,element:w,..._}=this.options,E=new Ah({..._,keyframes:i,duration:a,type:l,ease:u,times:d,isGenerator:!0}),C=Xn(this.time);p.setWithVelocity(E.sample(C-Yl).value,E.sample(C).value,Yl)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:a,repeatType:l,damping:u,type:d}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return fO()&&i&&cO.has(i)&&!h&&!p&&!a&&l!=="mirror"&&u!==0&&d!=="inertia"}}const yO={type:"spring",stiffness:500,damping:25,restSpeed:10},vO=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xO={type:"keyframes",duration:.8},wO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bO=(t,{keyframes:e})=>e.length>2?xO:ks.has(t)?t.startsWith("scale")?vO(e[1]):yO:wO;function SO({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:d,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const Nh=(t,e,n,i={},a,l)=>u=>{const d=gh(i,t)||{},h=d.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Xn(h);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};SO(d)||(g={...g,...bO(t,g)}),g.duration&&(g.duration=Xn(g.duration)),g.repeatDelay&&(g.repeatDelay=Xn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const w=hu(g.keyframes,d);if(w!==void 0)return qe.update(()=>{g.onUpdate(w),g.onComplete()}),new VA([])}return!l&&w0.supports(g)?new w0(g):new Ah(g)};function _O({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function y1(t,e,{delay:n=0,transitionOverride:i,type:a}={}){var l;let{transition:u=t.getDefaultTransition(),transitionEnd:d,...h}=e;i&&(u=i);const p=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const y in h){const w=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),_=h[y];if(_===void 0||g&&_O(g,y))continue;const E={delay:n,...gh(u||{},y)};let C=!1;if(window.MotionHandoffAnimation){const b=Vw(t);if(b){const A=window.MotionHandoffAnimation(b,y,qe);A!==null&&(E.startTime=A,C=!0)}}pf(t,y),w.start(Nh(y,w,_,t.shouldReduceMotion&&zw.has(y)?{type:!1}:E,t,C));const S=w.animation;S&&p.push(S)}return d&&Promise.all(p).then(()=>{qe.update(()=>{d&&tN(t,d)})}),p}function bf(t,e,n={}){var i;const a=fu(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(l=n.transitionOverride);const u=a?()=>Promise.all(y1(t,a,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=l;return CO(t,e,g+p,y,w,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,g]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(n.delay)])}function CO(t,e,n=0,i=0,a=1,l){const u=[],d=(t.variantChildren.size-1)*i,h=a===1?(p=0)=>p*i:(p=0)=>d-p*i;return Array.from(t.variantChildren).sort(kO).forEach((p,g)=>{p.notify("AnimationStart",e),u.push(bf(p,e,{...l,delay:n+h(g)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(u)}function kO(t,e){return t.sortNodePosition(e)}function EO(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>bf(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=bf(t,e,n);else{const a=typeof e=="function"?fu(t,e,n.custom):e;i=Promise.all(y1(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const TO=sh.length;function v1(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?v1(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<TO;n++){const i=sh[n],a=t.props[i];(Fo(a)||a===!1)&&(e[i]=a)}return e}const PO=[...rh].reverse(),RO=rh.length;function AO(t){return e=>Promise.all(e.map(({animation:n,options:i})=>EO(t,n,i)))}function NO(t){let e=AO(t),n=b0(),i=!0;const a=h=>(p,g)=>{var y;const w=fu(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(w){const{transition:_,transitionEnd:E,...C}=w;p={...p,...C,...E}}return p};function l(h){e=h(t)}function u(h){const{props:p}=t,g=v1(t.parent)||{},y=[],w=new Set;let _={},E=1/0;for(let S=0;S<RO;S++){const b=PO[S],A=n[b],P=p[b]!==void 0?p[b]:g[b],N=Fo(P),z=b===h?A.isActive:null;z===!1&&(E=S);let B=P===g[b]&&P!==p[b]&&N;if(B&&i&&t.manuallyAnimateOnMount&&(B=!1),A.protectedKeys={..._},!A.isActive&&z===null||!P&&!A.prevProp||cu(P)||typeof P=="boolean")continue;const Y=OO(A.prevProp,P);let U=Y||b===h&&A.isActive&&!B&&N||S>E&&N,Z=!1;const le=Array.isArray(P)?P:[P];let be=le.reduce(a(b),{});z===!1&&(be={});const{prevResolvedValues:Me={}}=A,Se={...Me,...be},ke=he=>{U=!0,w.has(he)&&(Z=!0,w.delete(he)),A.needsAnimating[he]=!0;const Q=t.getValue(he);Q&&(Q.liveStyle=!1)};for(const he in Se){const Q=be[he],oe=Me[he];if(_.hasOwnProperty(he))continue;let V=!1;df(Q)&&df(oe)?V=!Nw(Q,oe):V=Q!==oe,V?Q!=null?ke(he):w.add(he):Q!==void 0&&w.has(he)?ke(he):A.protectedKeys[he]=!0}A.prevProp=P,A.prevResolvedValues=be,A.isActive&&(_={..._,...be}),i&&t.blockInitialAnimation&&(U=!1),U&&(!(B&&Y)||Z)&&y.push(...le.map(he=>({animation:he,options:{type:b}})))}if(w.size){const S={};w.forEach(b=>{const A=t.getBaseTarget(b),P=t.getValue(b);P&&(P.liveStyle=!0),S[b]=A??null}),y.push({animation:S})}let C=!!y.length;return i&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(C=!1),i=!1,C?e(y):Promise.resolve()}function d(h,p){var g;if(n[h].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(w=>{var _;return(_=w.animationState)===null||_===void 0?void 0:_.setActive(h,p)}),n[h].isActive=p;const y=u(h);for(const w in n)n[w].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=b0(),i=!0}}}function OO(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Nw(e,t):!1}function es(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function b0(){return{animate:es(!0),whileInView:es(),whileHover:es(),whileTap:es(),whileDrag:es(),whileFocus:es(),exit:es()}}class Fr{constructor(e){this.isMounted=!1,this.node=e}update(){}}class jO extends Fr{constructor(e){super(e),e.animationState||(e.animationState=NO(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();cu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let LO=0;class MO extends Fr{constructor(){super(...arguments),this.id=LO++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const DO={animation:{Feature:jO},exit:{Feature:MO}};function Bo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ia(t){return{point:{x:t.pageX,y:t.pageY}}}const IO=t=>e=>xh(e)&&t(e,ia(e));function Ao(t,e,n,i){return Bo(t,e,IO(n),i)}const S0=(t,e)=>Math.abs(t-e);function FO(t,e){const n=S0(t.x,e.x),i=S0(t.y,e.y);return Math.sqrt(n**2+i**2)}class x1{constructor(e,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ad(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,_=FO(y.offset,{x:0,y:0})>=3;if(!w&&!_)return;const{point:E}=y,{timestamp:C}=vt;this.history.push({...E,timestamp:C});const{onStart:S,onMove:b}=this.handlers;w||(S&&S(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Rd(w,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:_,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Ad(y.type==="pointercancel"?this.lastMoveEventInfo:Rd(w,this.transformPagePoint),this.history);this.startEvent&&_&&_(y,S),E&&E(y,S)},!xh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const u=ia(e),d=Rd(u,this.transformPagePoint),{point:h}=d,{timestamp:p}=vt;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,Ad(d,this.history)),this.removeListeners=sa(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function Rd(t,e){return e?{point:e(t.point)}:t}function _0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ad({point:t},e){return{point:t,delta:_0(t,w1(e)),offset:_0(t,zO(e)),velocity:UO(e,.1)}}function zO(t){return t[0]}function w1(t){return t[t.length-1]}function UO(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=w1(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>Xn(e)));)n--;if(!i)return{x:0,y:0};const l=Yn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const b1=1e-4,VO=1-b1,BO=1+b1,S1=.01,$O=0-S1,qO=0+S1;function Kt(t){return t.max-t.min}function HO(t,e,n){return Math.abs(t-e)<=n}function C0(t,e,n,i=.5){t.origin=i,t.originPoint=Qe(e.min,e.max,t.origin),t.scale=Kt(n)/Kt(e),t.translate=Qe(n.min,n.max,t.origin)-t.originPoint,(t.scale>=VO&&t.scale<=BO||isNaN(t.scale))&&(t.scale=1),(t.translate>=$O&&t.translate<=qO||isNaN(t.translate))&&(t.translate=0)}function No(t,e,n,i){C0(t.x,e.x,n.x,i?i.originX:void 0),C0(t.y,e.y,n.y,i?i.originY:void 0)}function k0(t,e,n){t.min=n.min+e.min,t.max=t.min+Kt(e)}function WO(t,e,n){k0(t.x,e.x,n.x),k0(t.y,e.y,n.y)}function E0(t,e,n){t.min=e.min-n.min,t.max=t.min+Kt(e)}function Oo(t,e,n){E0(t.x,e.x,n.x),E0(t.y,e.y,n.y)}function KO(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?Qe(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?Qe(n,t,i.max):Math.min(t,n)),t}function T0(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function QO(t,{top:e,left:n,bottom:i,right:a}){return{x:T0(t.x,n,a),y:T0(t.y,e,i)}}function P0(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function GO(t,e){return{x:P0(t.x,e.x),y:P0(t.y,e.y)}}function XO(t,e){let n=.5;const i=Kt(t),a=Kt(e);return a>i?n=vi(e.min,e.max-i,t.min):i>a&&(n=vi(t.min,t.max-a,e.min)),Jn(0,1,n)}function YO(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Sf=.35;function JO(t=Sf){return t===!1?t=0:t===!0&&(t=Sf),{x:R0(t,"left","right"),y:R0(t,"top","bottom")}}function R0(t,e,n){return{min:A0(t,e),max:A0(t,n)}}function A0(t,e){return typeof t=="number"?t:t[e]||0}const N0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ti=()=>({x:N0(),y:N0()}),O0=()=>({min:0,max:0}),et=()=>({x:O0(),y:O0()});function sn(t){return[t("x"),t("y")]}function _1({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ZO({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ej(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Nd(t){return t===void 0||t===1}function _f({scale:t,scaleX:e,scaleY:n}){return!Nd(t)||!Nd(e)||!Nd(n)}function ns(t){return _f(t)||C1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function C1(t){return j0(t.x)||j0(t.y)}function j0(t){return t&&t!=="0%"}function Jl(t,e,n){const i=t-n,a=e*i;return n+a}function L0(t,e,n,i,a){return a!==void 0&&(t=Jl(t,a,i)),Jl(t,n,i)+e}function Cf(t,e=0,n=1,i,a){t.min=L0(t.min,e,n,i,a),t.max=L0(t.max,e,n,i,a)}function k1(t,{x:e,y:n}){Cf(t.x,e.translate,e.scale,e.originPoint),Cf(t.y,n.translate,n.scale,n.originPoint)}const M0=.999999999999,D0=1.0000000000001;function tj(t,e,n,i=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,u;for(let d=0;d<a;d++){l=n[d],u=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ri(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,k1(t,u)),i&&ns(l.latestValues)&&ri(t,l.latestValues))}e.x<D0&&e.x>M0&&(e.x=1),e.y<D0&&e.y>M0&&(e.y=1)}function ni(t,e){t.min=t.min+e,t.max=t.max+e}function I0(t,e,n,i,a=.5){const l=Qe(t.min,t.max,a);Cf(t,e,n,l,i)}function ri(t,e){I0(t.x,e.x,e.scaleX,e.scale,e.originX),I0(t.y,e.y,e.scaleY,e.scale,e.originY)}function E1(t,e){return _1(ej(t.getBoundingClientRect(),e))}function nj(t,e,n){const i=E1(t,n),{scroll:a}=e;return a&&(ni(i.x,a.offset.x),ni(i.y,a.offset.y)),i}const T1=({current:t})=>t?t.ownerDocument.defaultView:null,rj=new WeakMap;class sj{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ia(g).point)},l=(g,y)=>{const{drag:w,dragPropagation:_,onDragStart:E}=this.getProps();if(w&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=XA(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sn(S=>{let b=this.getAxisMotionValue(S).get()||0;if(jn.test(b)){const{projection:A}=this.visualElement;if(A&&A.layout){const P=A.layout.layoutBox[S];P&&(b=Kt(P)*(parseFloat(b)/100))}}this.originPoint[S]=b}),E&&qe.postRender(()=>E(g,y)),pf(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:_,onDirectionLock:E,onDrag:C}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:S}=y;if(_&&this.currentDirection===null){this.currentDirection=ij(S),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",y.point,S),this.updateAxis("y",y.point,S),this.visualElement.render(),C&&C(g,y)},d=(g,y)=>this.stop(g,y),h=()=>sn(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new x1(e,{onSessionStart:a,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:T1(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&qe.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:a}=this.getProps();if(!i||!El(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=KO(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&Zs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=QO(a.layoutBox,n):this.constraints=!1,this.elastic=JO(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&sn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=YO(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Zs(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=nj(i,a.root,this.visualElement.getTransformPagePoint());let u=GO(a.layout.layoutBox,l);if(n){const d=n(ZO(u));this.hasMutatedConstraints=!!d,d&&(u=_1(d))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=sn(g=>{if(!El(g,n,this.currentDirection))return;let y=h&&h[g]||{};u&&(y={min:0,max:0});const w=a?200:1e6,_=a?40:1e7,E={type:"inertia",velocity:i?e[g]:0,bounceStiffness:w,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,E)});return Promise.all(p).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return pf(this.visualElement,e),i.start(Nh(e,i,0,n,this.visualElement,!1))}stopAnimation(){sn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){sn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){sn(n=>{const{drag:i}=this.getProps();if(!El(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[n];l.set(e[n]-Qe(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Zs(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};sn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();a[u]=XO({min:h,max:h},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sn(u=>{if(!El(u,e,null))return;const d=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];d.set(Qe(h,p,a[u]))})}addListeners(){if(!this.visualElement.current)return;rj.set(this.visualElement,this);const e=this.visualElement.current,n=Ao(e,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();Zs(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),qe.read(i);const u=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(sn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=Sf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function El(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ij(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class oj extends Fr{constructor(e){super(e),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new sj(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const F0=t=>(e,n)=>{t&&qe.postRender(()=>t(e,n))};class aj extends Fr{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(e){this.session=new x1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:T1(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:F0(e),onStart:F0(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&qe.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Ao(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function z0(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const yo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(pe.test(t))t=parseFloat(t);else return t;const n=z0(t,e.target.x),i=z0(t,e.target.y);return`${n}% ${i}%`}},lj={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=Dr.parse(t);if(a.length>5)return i;const l=Dr.createTransformer(t),u=typeof a[0]!="number"?1:0,d=n.x.scale*e.x,h=n.y.scale*e.y;a[0+u]/=d,a[1+u]/=h;const p=Qe(d,h,.5);return typeof a[2+u]=="number"&&(a[2+u]/=p),typeof a[3+u]=="number"&&(a[3+u]/=p),l(a)}};class uj extends D.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;RA(cj),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,u=i.projection;return u&&(u.isPresent=l,a||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||qe.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),oh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function P1(t){const[e,n]=cw(),i=D.useContext(Yf);return v.jsx(uj,{...t,layoutGroup:i,switchLayoutGroup:D.useContext(vw),isPresent:e,safeToRemove:n})}const cj={borderRadius:{...yo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yo,borderTopRightRadius:yo,borderBottomLeftRadius:yo,borderBottomRightRadius:yo,boxShadow:lj};function dj(t,e,n){const i=Pt(t)?t:Uo(t);return i.start(Nh("",i,e,n)),i.animation}function fj(t){return t instanceof SVGElement&&t.tagName!=="svg"}const hj=(t,e)=>t.depth-e.depth;class pj{constructor(){this.children=[],this.isDirty=!1}add(e){wh(this.children,e),this.isDirty=!0}remove(e){bh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hj),this.isDirty=!1,this.children.forEach(e)}}function mj(t,e){const n=Ln.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(Mr(i),t(l-e))};return qe.read(i,!0),()=>Mr(i)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],gj=R1.length,U0=t=>typeof t=="string"?parseFloat(t):t,V0=t=>typeof t=="number"||pe.test(t);function yj(t,e,n,i,a,l){a?(t.opacity=Qe(0,n.opacity!==void 0?n.opacity:1,vj(i)),t.opacityExit=Qe(e.opacity!==void 0?e.opacity:1,0,xj(i))):l&&(t.opacity=Qe(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<gj;u++){const d=`border${R1[u]}Radius`;let h=B0(e,d),p=B0(n,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||V0(h)===V0(p)?(t[d]=Math.max(Qe(U0(h),U0(p),i),0),(jn.test(p)||jn.test(h))&&(t[d]+="%")):t[d]=p}(e.rotate||n.rotate)&&(t.rotate=Qe(e.rotate||0,n.rotate||0,i))}function B0(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const vj=A1(0,.5,Qw),xj=A1(.5,.95,Wt);function A1(t,e,n){return i=>i<t?0:i>e?1:n(vi(t,e,i))}function $0(t,e){t.min=e.min,t.max=e.max}function rn(t,e){$0(t.x,e.x),$0(t.y,e.y)}function q0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function H0(t,e,n,i,a){return t-=e,t=Jl(t,1/n,i),a!==void 0&&(t=Jl(t,1/a,i)),t}function wj(t,e=0,n=1,i=.5,a,l=t,u=t){if(jn.test(e)&&(e=parseFloat(e),e=Qe(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=Qe(l.min,l.max,i);t===l&&(d-=e),t.min=H0(t.min,e,n,d,a),t.max=H0(t.max,e,n,d,a)}function W0(t,e,[n,i,a],l,u){wj(t,e[n],e[i],e[a],e.scale,l,u)}const bj=["x","scaleX","originX"],Sj=["y","scaleY","originY"];function K0(t,e,n,i){W0(t.x,e,bj,n?n.x:void 0,i?i.x:void 0),W0(t.y,e,Sj,n?n.y:void 0,i?i.y:void 0)}function Q0(t){return t.translate===0&&t.scale===1}function N1(t){return Q0(t.x)&&Q0(t.y)}function G0(t,e){return t.min===e.min&&t.max===e.max}function _j(t,e){return G0(t.x,e.x)&&G0(t.y,e.y)}function X0(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function O1(t,e){return X0(t.x,e.x)&&X0(t.y,e.y)}function Y0(t){return Kt(t.x)/Kt(t.y)}function J0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Cj{constructor(){this.members=[]}add(e){wh(this.members,e),e.scheduleRender()}remove(e){if(bh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kj(t,e,n){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:w,skewX:_,skewY:E}=n;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),_&&(i+=`skewX(${_}deg) `),E&&(i+=`skewY(${E}deg) `)}const d=t.x.scale*e.x,h=t.y.scale*e.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const rs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Eo=typeof window<"u"&&window.MotionDebug!==void 0,Od=["","X","Y","Z"],Ej={visibility:"hidden"},Z0=1e3;let Tj=0;function jd(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function j1(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Vw(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&j1(i)}function L1({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},d=e==null?void 0:e()){this.id=Tj++,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,Eo&&(rs.totalNodes=rs.resolvedTargetDeltas=rs.recalculatedProjection=0),this.nodes.forEach(Aj),this.nodes.forEach(Mj),this.nodes.forEach(Dj),this.nodes.forEach(Nj),Eo&&window.MotionDebug.record(rs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new pj)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Sh),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const h=this.eventHandlers.get(u);h&&h.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fj(u),this.instance=u;const{layoutId:h,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||h)&&(this.isLayoutDirty=!0),t){let y;const w=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=mj(w,250),zl.hasAnimatedSinceResize&&(zl.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:_,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||g.getDefaultTransition()||Vj,{onLayoutAnimationStart:S,onLayoutAnimationComplete:b}=g.getProps(),A=!this.targetLayout||!O1(this.targetLayout,E)||_,P=!w&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||w&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,P);const N={...gh(C,"layout"),onPlay:S,onComplete:b};(g.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N)}else w||tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(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(Ij),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&j1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ev);return}this.isUpdating||this.nodes.forEach(jj),this.isUpdating=!1,this.nodes.forEach(Lj),this.nodes.forEach(Pj),this.nodes.forEach(Rj),this.clearAllSnapshots();const d=Ln.now();vt.delta=Jn(0,1e3/60,d-vt.timestamp),vt.timestamp=d,vt.isProcessing=!0,_d.update.process(vt),_d.preRender.process(vt),_d.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,oh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Oj),this.sharedNodes.forEach(Fj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!N1(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(d||ns(this.latestValues)||g)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return u&&(h=this.removeTransform(h)),Bj(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return et();const h=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some($j))){const{scroll:g}=this.root;g&&(ni(h.x,g.offset.x),ni(h.y,g.offset.y))}return h}removeElementScroll(u){var d;const h=et();if(rn(h,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:w}=g;g!==this.root&&y&&w.layoutScroll&&(y.wasRoot&&rn(h,u),ni(h.x,y.offset.x),ni(h.y,y.offset.y))}return h}applyTransform(u,d=!1){const h=et();rn(h,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ri(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ns(g.latestValues)&&ri(h,g.latestValues)}return ns(this.latestValues)&&ri(h,this.latestValues),h}removeTransform(u){const d=et();rn(d,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!ns(p.latestValues))continue;_f(p.latestValues)&&p.updateSnapshot();const g=et(),y=p.measurePageBox();rn(g,y),K0(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ns(this.latestValues)&&K0(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!(!this.layout||!(y||w))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),Oo(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),WO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rn(this.target,this.layout.layoutBox),k1(this.target,this.targetDelta)):rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const _=this.getClosestProjectingParent();_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),Oo(this.relativeTargetOrigin,this.target,_.target),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Eo&&rs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||_f(this.parent.latestValues)||C1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;rn(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,_=this.treeScale.y;tj(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=et());const{target:E}=d;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(q0(this.prevProjectionDelta.x,this.projectionDelta.x),q0(this.prevProjectionDelta.y,this.projectionDelta.y)),No(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==_||!J0(this.projectionDelta.x,this.prevProjectionDelta.x)||!J0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),Eo&&rs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ti(),this.projectionDelta=ti(),this.projectionDeltaWithTransform=ti()}setAnimationOrigin(u,d=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=ti();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=et(),_=h?h.source:void 0,E=this.layout?this.layout.source:void 0,C=_!==E,S=this.getStack(),b=!S||S.members.length<=1,A=!!(C&&!b&&this.options.crossfade===!0&&!this.path.some(Uj));this.animationProgress=0;let P;this.mixTargetDelta=N=>{const z=N/1e3;nv(y.x,u.x,z),nv(y.y,u.y,z),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zj(this.relativeTarget,this.relativeTargetOrigin,w,z),P&&_j(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=et()),rn(P,this.relativeTarget)),C&&(this.animationValues=g,yj(g,p,this.latestValues,z,A,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qe.update(()=>{zl.hasAnimatedSinceResize=!0,this.currentAnimation=dj(0,Z0,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:g}=u;if(!(!d||!h||!p)){if(this!==u&&this.layout&&p&&M1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||et();const y=Kt(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const w=Kt(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+w}rn(d,h),ri(d,g),No(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new Cj),this.sharedNodes.get(u).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&jd("z",u,p,this.animationValues);for(let g=0;g<Od.length;g++)jd(`rotate${Od[g]}`,u,p,this.animationValues),jd(`skew${Od[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}getProjectionStyles(u){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ej;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Il(u==null?void 0:u.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=Il(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ns(this.latestValues)&&(C.transform=g?g({},""):"none",this.hasProjected=!1),C}const w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=kj(this.projectionDeltaWithTransform,this.treeScale,w),g&&(p.transform=g(w,p.transform));const{x:_,y:E}=this.projectionDelta;p.transformOrigin=`${_.origin*100}% ${E.origin*100}% 0`,y.animationValues?p.opacity=y===this?(h=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:p.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const C in Kl){if(w[C]===void 0)continue;const{correct:S,applyTo:b}=Kl[C],A=p.transform==="none"?w[C]:S(w[C],y);if(b){const P=b.length;for(let N=0;N<P;N++)p[b[N]]=A}else p[C]=A}return this.options.layoutId&&(p.pointerEvents=y===this?Il(u==null?void 0:u.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(ev),this.root.sharedNodes.clear()}}}function Pj(t){t.updateLayout()}function Rj(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,u=n.source!==t.layout.source;l==="size"?sn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],_=Kt(w);w.min=i[y].min,w.max=w.min+_}):M1(l,n.layoutBox,i)&&sn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],_=Kt(i[y]);w.max=w.min+_,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+_)});const d=ti();No(d,i,n.layoutBox);const h=ti();u?No(h,t.applyTransform(a,!0),n.measuredBox):No(h,i,n.layoutBox);const p=!N1(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:_}=y;if(w&&_){const E=et();Oo(E,n.layoutBox,w.layoutBox);const C=et();Oo(C,i,_.layoutBox),O1(E,C)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=C,t.relativeTargetOrigin=E,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Aj(t){Eo&&rs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Nj(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Oj(t){t.clearSnapshot()}function ev(t){t.clearMeasurements()}function jj(t){t.isLayoutDirty=!1}function Lj(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Mj(t){t.resolveTargetDelta()}function Dj(t){t.calcProjection()}
vendor: 9,379 bytes, line 309
309function Ij(t){t.resetSkewAndRotation()}function Fj(t){t.removeLeadSnapshot()}function nv(t,e,n){t.translate=Qe(e.translate,0,n),t.scale=Qe(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function rv(t,e,n,i){t.min=Qe(e.min,n.min,i),t.max=Qe(e.max,n.max,i)}function zj(t,e,n,i){rv(t.x,e.x,n.x,i),rv(t.y,e.y,n.y,i)}function Uj(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vj={duration:.45,ease:[.4,0,.1,1]},sv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iv=sv("applewebkit/")&&!sv("chrome/")?Math.round:Wt;function ov(t){t.min=iv(t.min),t.max=iv(t.max)}function Bj(t){ov(t.x),ov(t.y)}function M1(t,e,n){return t==="position"||t==="preserve-aspect"&&!HO(Y0(e),Y0(n),.2)}function $j(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const qj=L1({attachResizeListener:(t,e)=>Bo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ld={current:void 0},D1=L1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ld.current){const t=new qj({});t.mount(window),t.setOptions({layoutScroll:!0}),Ld.current=t}return Ld.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Hj={pan:{Feature:aj},drag:{Feature:oj,ProjectionNode:D1,MeasureLayout:P1}};function av(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&qe.postRender(()=>l(e,ia(e)))}class Wj extends Fr{mount(){const{current:e}=this.node;e&&(this.unmount=HA(e,n=>(av(this.node,n,"Start"),i=>av(this.node,i,"End"))))}unmount(){}}class Kj extends Fr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sa(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function lv(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&qe.postRender(()=>l(e,ia(e)))}class Qj extends Fr{mount(){const{current:e}=this.node;e&&(this.unmount=GA(e,n=>(lv(this.node,n,"Start"),(i,{success:a})=>lv(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kf=new WeakMap,Md=new WeakMap,Gj=t=>{const e=kf.get(t.target);e&&e(t)},Xj=t=>{t.forEach(Gj)};function Yj({root:t,...e}){const n=t||document;Md.has(n)||Md.set(n,{});const i=Md.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(Xj,{root:t,...e})),i[a]}function Jj(t,e,n){const i=Yj(e);return kf.set(t,n),i.observe(t),()=>{kf.delete(t),i.unobserve(t)}}const Zj={some:0,all:1};class e4 extends Fr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:Zj[a]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=p?g:y;w&&w(h)};return Jj(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(t4(e,n))&&this.startObserver()}unmount(){}}function t4({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const n4={inView:{Feature:e4},tap:{Feature:Qj},focus:{Feature:Kj},hover:{Feature:Wj}},r4={layout:{ProjectionNode:D1,MeasureLayout:P1}},Ef={current:null},I1={current:!1};function s4(){if(I1.current=!0,!!eh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ef.current=t.matches;t.addListener(e),e()}else Ef.current=!1}const i4=[...l1,Tt,Dr],o4=t=>i4.find(a1(t)),uv=new WeakMap;function a4(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Pt(a))t.addValue(i,a);else if(Pt(l))t.addValue(i,Uo(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=t.getStaticValue(i);t.addValue(i,Uo(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const cv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class l4{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ph,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 _=Ln.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,qe.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:g}=u;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=du(n),this.isVariantNode=gw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...w}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in w){const E=w[_];h[_]!==void 0&&Pt(E)&&E.set(h[_],!1)}}mount(e){this.current=e,uv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),I1.current||s4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ef.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){uv.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=ks.has(e),a=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&qe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in xi){const n=xi[e];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<cv.length;i++){const a=cv[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=e[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=a4(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 5,529 bytes, line 309
309addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Uo(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(i1(a)||Xw(a))?a=parseFloat(a):!o4(a)&&Dr.test(n)&&(a=n1(e,n)),this.setBaseTarget(e,Pt(a)?a.get():a)),Pt(a)?a.get():a}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const u=lh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(a=u[e])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Pt(l)?l:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class F1 extends l4{constructor(){super(...arguments),this.KeyframeResolver=u1}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Pt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function u4(t){return window.getComputedStyle(t)}class c4 extends F1{constructor(){super(...arguments),this.type="html",this.renderInstance=kw}readValueFromInstance(e,n){if(ks.has(n)){const i=Th(n);return i&&i.default||0}else{const i=u4(e),a=(Sw(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:n}){return E1(e,n)}build(e,n,i){dh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return mh(e,n,i)}}class d4 extends F1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ks.has(n)){const i=Th(n);return i&&i.default||0}return n=Ew.has(n)?n:ih(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Rw(e,n,i)}build(e,n,i){fh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,a){Tw(e,n,i,a)}mount(e){this.isSVGTag=ph(e.tagName),super.mount(e)}}const f4=(t,e)=>ah(t)?new d4(e):new c4(e,{allowProjection:t!==D.Fragment}),h4=FA({...DO,...n4,...Hj,...r4},f4),De=ZR(h4),Dd="https://wa.me/5512996656770?text=Olá!%20Gostaria%20de%20saber%20mais%20sobre%20o%20Colinas%20de%20Santa%20Cruz.",dv=[{label:"O Empreendimento",href:"#sobre"},{label:"Diferenciais",href:"#diferenciais"},{label:"Galeria",href:"#galeria"},{label:"Localização",href:"#localizacao"},{label:"Contato",href:"#contato"}];function Oh({logoImage:t}){const[e,n]=D.useState(!1);return v.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md border-b border-border/50",children:[v.jsx("div",{className:"bg-foreground text-white py-1.5",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex items-center justify-between gap-2",children:[v.jsx("span",{className:"text-[10px] sm:text-xs font-body tracking-wider opacity-80 truncate",children:"Lançamento Personal"}),v.jsxs("a",{href:Dd,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs font-medium hover:text-primary transition-colors",children:[v.jsx(Af,{className:"w-3 h-3 flex-shrink-0"}),v.jsx("span",{className:"whitespace-nowrap",children:"(12) 99665-6770"})]})]})}),v.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:[v.jsx("a",{href:"#",className:"flex items-center gap-3",children:t&&v.jsx("img",{src:t,alt:"Colinas de Santa Cruz",className:"h-12 w-auto"})}),v.jsxs("nav",{className:"hidden lg:flex items-center gap-6",children:[dv.map(i=>v.jsx("a",{href:i.href,className:"text-sm font-body text-muted-foreground hover:text-foreground transition-colors",children:i.label},i.href)),v.jsx("a",{href:"https://personalimob.com.br/home",target:"_blank",rel:"noopener noreferrer",className:"text-xs font-body text-muted-foreground border border-border rounded-full px-3 py-1.5 hover:border-primary/40 transition-colors",children:"Personal Imobiliária"}),v.jsx("a",{href:Dd,target:"_blank",rel:"noopener noreferrer",className:"bg-secondary text-secondary-foreground px-5 py-2 rounded-full text-sm font-semibold font-body hover:opacity-90 transition-opacity",children:"Fale Conosco"})]}),v.jsx("button",{onClick:()=>n(!e),className:"lg:hidden p-2 text-foreground",children:e?v.jsx(eu,{className:"w-6 h-6"}):v.jsx(V2,{className:"w-6 h-6"})})]}),v.jsx(th,{children:e&&v.jsx(De.div,{initial:{height:0,opacity:0}
309,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"lg:hidden overflow-hidden bg-white border-t border-border",children:v.jsxs("nav",{className:"flex flex-col px-4 py-4 gap-3",children:[dv.map(i=>v.jsx("a",{href:i.href,onClick:()=>n(!1),className:"text-sm font-body text-muted-foreground hover:text-foreground transition-colors py-2",children:i.label},i.href)),v.jsx("a",{href:Dd,target:"_blank",rel:"noopener noreferrer",className:"bg-secondary text-secondary-foreground px-5 py-3 rounded-full text-sm font-semibold font-body text-center hover:opacity-90 transition-opacity mt-2",children:"Fale Conosco"})]})})})]})}const p4="https://wa.me/5512996656770?text=Olá!%20Gostaria%20de%20saber%20mais%20sobre%20o%20Colinas%20de%20Santa%20Cruz.";function m4({heroImage:t}){return v.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[v.jsxs("div",{className:"absolute inset-0",children:[v.jsx("img",{src:t,alt:"Vista aérea do Colinas de Santa Cruz Residencial em Taubaté",className:"w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-black/40 to-black/70"})]}),v.jsxs("div",{className:"relative z-10 w-full max-w-4xl mx-auto px-4 text-center pt-28 pb-16",children:[v.jsxs(De.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:[v.jsx("p",{className:"font-body text-white/50 text-xs tracking-widest uppercase mb-4",children:"Colinas de Santa Cruz Residencial"}),v.jsx("span",{className:"inline-block bg-primary/90 text-primary-foreground text-xs font-semibold font-body px-4 py-1.5 rounded-full mb-6 tracking-wider uppercase",children:"Lançamento Personal"})]}),v.jsxs(De.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"font-heading font-bold text-3xl sm:text-4xl md:text-5xl lg:text-6xl text-white leading-tight mb-6",children:["Seu Novo Lar com"," ",v.jsx("span",{className:"text-primary",children:"Conforto"})," e"," ",v.jsx("span",{className:"text-secondary",children:"Lazer Completo"})]}),v.jsx(De.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"font-body text-white/80 text-sm md:text-lg max-w-2xl mx-auto mb-8 leading-relaxed",children:"Apartamentos de 2 dormitórios com área de lazer completa: piscina, academia, playground, quadra de areia e muito mais. Tudo isso no Jardim Santa Cruz, em Taubaté."}),v.jsxs(De.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[v.jsxs("a",{href:p4,target:"_blank",rel:"noopener noreferrer",className:"w-full sm:w-auto flex items-center justify-center gap-2 bg-secondary hover:bg-secondary/90 text-secondary-foreground px-8 py-4 rounded-full text-base font-semibold font-body transition-all shadow-lg shadow-secondary/30",children:[v.jsx(Zl,{className:"w-5 h-5"}),"Quero Saber Mais"]}),v.jsx("a",{href:"#sobre",className:"w-full sm:w-auto flex items-center justify-center gap-2 bg-white/10 backdrop-blur-sm hover:bg-white/20 text-white px-8 py-4 rounded-full text-base font-medium font-body transition-all border border-white/20",children:"Conheça o Projeto"})]}),v.jsx(De.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1},className:"mt-10 grid grid-cols-4 gap-2 w-full max-w-xl mx-auto",children:[{value:"2",label:"Dormitórios"},{value:"42 a 52m²",label:"Área"},{value:"1 Vaga",label:"Garagem"},{value:"24h",label:"Portaria"}].map((e,n)=>v.jsxs("div",{className:"flex flex-col items-center justify-center bg-white/10 backdrop-blur-sm rounded-xl py-3 px-1 border border-white/15 gap-1",children:[v.jsx("div",{className:"font-heading font-extrabold text-lg sm:text-xl md:text-2xl text-primary leading-none text-center",children:e.value}),v.jsx("div",{className:"font-body text-white/70 text-[9px] sm:text-xs tracking-wide uppercase text-center leading-tight",children:e.label})]},n))})]}),v.jsx(De.div,{animate:{y:[0,8,0]},transition:{repeat:1/0,duration:2},className:"absolute bottom-8 left-1/2 -translate-x-1/2 z-10",children:v.jsx(g2,{className:"w-8 h-8 text-white/50"})})]})}function g4({entranceImage:t}){return v.jsx("section",{id:"sobre",className:"py-20 md:py-28 bg-background",children:v.jsx("div",{className:"max-w-7xl mx-auto px-4",children:v.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[v.jsxs(De.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-primary mb-4 block",children:"Sobre o Empreendimento"}),v.jsx("h2",{className:"font-heading font-bold text-2xl sm:text-3xl md:text-4xl text-foreground leading-tight mb-5",children:"Qualidade de Vida para Toda a Família"}),v.jsxs("p",{className:"font-body text-muted-foreground text-sm sm:text-base leading-relaxed mb-5",children:["A Habcasa se prepara para mais um grande lançamento em Taubaté: o ",v.jsx("strong",{className:"text-foreground",children:"Colinas de Santa Cruz Residencial"}),". Pensado para oferecer conforto, lazer e bem-estar, o empreendimento contará com unidades modernas de 2 dormitórios, além de uma área de lazer completa."]}),v.jsx("p",{className:"font-body text-muted-foreground text-sm sm:text-base leading-relaxed mb-7",children:"Um projeto ideal para quem busca qualidade de vida em um ambiente acolhedor e funcional, com toda a segurança e infraestrutura que sua família merece."}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:["Condomínio fechado","Portaria 24 horas","Área de lazer completa","Localização privilegiada","Projeto moderno","Próximo ao comércio"].map((e,n)=>v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-5 h-5 rounded-full bg-secondary/10 flex items-center justify-center flex-shrink-0",children:v.jsx(Rv,{className:"w-3 h-3 text-secondary"})}),v.jsx("span",{className:"font-body text-sm text-foreground",children:e})]},n))})]}),v.jsxs(De.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},className:"relative",children:[v.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl",children:[v.jsx("img",{src:t,alt:"Entrada do Colinas de Santa Cruz",className:"w-full h-[280px] sm:h-[400px] md:h-[500px] object-cover"}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-6",children:v.jsxs("div",{className:"flex items-baseline gap-2",children:[v.jsx("span",{className:"font-heading text-white text-sm font-medium",children:"Habcasa"}),v.jsx("span",{className:"text-white/60 text-xs",children:"Incorporadora e Construtora"})]})})]}),v.jsxs("div",{className:"absolute top-4 right-4 md:top-6 md:-right-6 bg-primary text-primary-foreground rounded-2xl px-5 py-3 shadow-lg shadow-primary/30",children:[v.jsx("div",{className:"font-heading font-bold text-xl",children:"2 Dorms"}),v.jsx("div",{className:"font-body text-xs opacity-90",children:"a partir de 42m²"})]})]})]})})})}const y4=[{icon:p_,title:"Piscina Adulto e Infantil",description:"Área aquática completa para toda a família se refrescar e relaxar.",color:"bg-blue-500/10 text-blue-600"},{icon:P2,title:"Academia",description:"Espaço fitness equipado para manter sua rotina de exercícios.",color:"bg-primary/10 text-primary"},{icon:o2,title:"Playground",description:"Área segura e divertida para as crianças brincarem.",color:"bg-secondary/10 text-secondary"},{icon:E2,title:"Pet Place",description:"Espaço dedicado para seus pets brincarem e se exercitarem.",color:"bg-
309amber-500/10 text-amber-600"},{icon:S2,title:"Quadra de Areia",description:"Pratique vôlei e outros esportes na quadra de areia.",color:"bg-yellow-500/10 text-yellow-600"},{icon:q2,title:"Salão de Festas",description:"Espaço para celebrar os momentos especiais com a família.",color:"bg-pink-500/10 text-pink-600"},{icon:e_,title:"Portaria 24h",description:"Segurança e tranquilidade para você e sua família.",color:"bg-emerald-500/10 text-emerald-600"},{icon:Pv,title:"Vaga de Garagem",description:"Cada unidade conta com 1 vaga de estacionamento.",color:"bg-slate-500/10 text-slate-600"}];function v4(){return v.jsx("section",{id:"diferenciais",className:"py-20 md:py-28 bg-muted/30",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[v.jsxs(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14",children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-secondary mb-4 block",children:"Diferenciais"}),v.jsx("h2",{className:"font-heading font-bold text-3xl md:text-4xl text-foreground leading-tight mb-4",children:"Lazer Completo Para Você"}),v.jsx("p",{className:"font-body text-muted-foreground max-w-2xl mx-auto",children:"Tudo que você precisa para viver bem, em um só lugar. Conheça os diferenciais do Colinas de Santa Cruz."})]}),v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 md:gap-6",children:y4.map((t,e)=>v.jsxs(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"bg-background rounded-2xl p-5 md:p-6 border border-border/50 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all group",children:[v.jsx("div",{className:`w-12 h-12 rounded-xl ${t.color} flex items-center justify-center mb-4 group-hover:scale-110 transition-transform`,children:v.jsx(t.icon,{className:"w-6 h-6"})}),v.jsx("h3",{className:"font-heading font-semibold text-foreground text-sm md:text-base mb-2",children:t.title}),v.jsx("p",{className:"font-body text-muted-foreground text-xs md:text-sm leading-relaxed",children:t.description})]},e))})]})})}const x4=[{label:"Todos",value:"all"},{label:"Área de Lazer",value:"lazer"},{label:"Apartamento",value:"apto"}];function w4({images:t}){const[e,n]=D.useState(null),[i,a]=D.useState("all"),l=i==="all"?t:t.filter(d=>d.category===i),u=d=>{e!==null&&n((e+d+l.length)%l.length)};return v.jsxs("section",{id:"galeria",className:"py-20 md:py-28 bg-background",children:[v.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[v.jsxs(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-10",children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-primary mb-4 block",children:"Galeria"}),v.jsx("h2",{className:"font-heading font-bold text-3xl md:text-4xl text-foreground leading-tight mb-4",children:"Conheça Cada Ambiente"}),v.jsx("p",{className:"font-body text-muted-foreground max-w-2xl mx-auto mb-8",children:"Explore os espaços do Colinas de Santa Cruz e imagine sua família vivendo aqui."}),v.jsx("div",{className:"flex items-center justify-center gap-2 flex-wrap",children:x4.map(d=>v.jsx("button",{onClick:()=>{a(d.value),n(null)},className:`px-5 py-2 rounded-full text-sm font-body font-medium transition-all border ${i===d.value?"bg-primary text-primary-foreground border-primary":"bg-background text-muted-foreground border-border hover:border-primary/40"}`,children:d.label},d.value))})]}),v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 md:gap-4",children:l.map((d,h)=>v.jsxs(De.div,{initial:{opacity:0,scale:.96},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:h*.04},onClick:()=>n(h),className:"relative rounded-xl overflow-hidden cursor-pointer group aspect-square",children:[v.jsx("img",{src:d.url,alt:d.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"}),v.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/40 transition-colors flex items-end p-3",children:v.jsx("span",{className:"font-body text-white text-xs font-semibold opacity-0 group-hover:opacity-100 transition-opacity bg-black/60 px-2.5 py-1 rounded-lg",children:d.label})})]},d.url+h))})]}),v.jsx(th,{children:e!==null&&v.jsxs(De.div,{initial:{opacity:0}
309,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/95 flex items-center justify-center p-4",onClick:()=>n(null),children:[v.jsx("button",{onClick:()=>n(null),className:"absolute top-4 right-4 text-white/70 hover:text-white z-10",children:v.jsx(eu,{className:"w-8 h-8"})}),v.jsx("button",{onClick:d=>{d.stopPropagation(),u(-1)},className:"absolute left-4 md:left-8 text-white/70 hover:text-white",children:v.jsx(v2,{className:"w-10 h-10"})}),v.jsx(De.img,{initial:{opacity:0,scale:.93},animate:{opacity:1,scale:1},exit:{opacity:0},src:l[e].url,alt:l[e].alt,className:"max-w-full max-h-[85vh] object-contain rounded-lg",onClick:d=>d.stopPropagation()},e),v.jsx("button",{onClick:d=>{d.stopPropagation(),u(1)},className:"absolute right-4 md:right-8 text-white/70 hover:text-white",children:v.jsx(w2,{className:"w-10 h-10"})}),v.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-white/60 font-body text-sm",children:[e+1," / ",l.length," — ",l[e].label]})]})})]})}const b4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/a95468119_IMPLANTAO.png",S4=[{id:"tipo",name:"Planta Tipo",subtitle:"Apartamento padrão",tag:null,areas:["42,30m²","42,80m²"],beds:2,baths:1,parking:1,garden:!1,description:"Apartamento funcional com sala de estar/jantar integrada à cozinha americana. Ambientes planejados para o conforto da família.",features:["Sala integrada","Cozinha americana","Varanda","1 vaga de garagem"],image:"https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/0dcef5213_PLANTATIPO.png",accentColor:"from-orange-500 to-orange-600"},{id:"giardino",name:"Planta Giardino",subtitle:"Com jardim privativo",tag:"Exclusivo",areas:["51,75m²","52,25m²"],beds:2,baths:1,parking:1,garden:!0,description:"Apartamento térreo com jardim privativo. Mais espaço e contato com a natureza para quem busca algo especial.",features:["Jardim privativo","Sala integrada","Cozinha americana","1 vaga de garagem"],image:"https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/87955b643_PLANTAGIARDINO.png",accentColor:"from-emerald-500 to-emerald-600"}],_4="https://wa.me/5512996656770?text=Ol%C3%A1!%20Gostaria%20de%20saber%20mais%20sobre%20as%20plantas%20do%20Colinas%20de%20Santa%20Cruz.";function Tl({icon:t,value:e,label:n}){return v.jsxs("div",{className:"flex flex-col items-center justify-center bg-orange-500 text-white rounded-xl p-1.5 sm:p-2 gap-0.5",children:[v.jsx(t,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mb-0.5 opacity-90"}),v.jsx("div",{className:"font-heading font-bold text-xs sm:text-sm leading-tight text-center break-words",children:e}),v.jsx("div",{className:"font-body text-[8px] sm:text-[9px] opacity-80 text-center leading-tight",children:n})]})}function C4({plan:t,onViewFloorPlan:e}){return v.jsxs(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"bg-background rounded-2xl border border-border/60 shadow-lg hover:shadow-xl transition-all flex flex-col overflow-hidden",children:[v.jsxs("div",{className:`bg-gradient-to-r ${t.accentColor} p-4 sm:p-5 text-white`,children:[v.jsxs("div",{className:"flex items-start justify-between gap-2",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"font-body text-[10px] sm:text-xs font-semibold uppercase tracking-widest opacity-80 mb-1",children:t.subtitle}),v.jsx("h3",{className:"font-heading font-bold text-xl sm:text-2xl",children:t.name})]}),t.tag&&v.jsxs("span",{className:"bg-white/20 border border-white/30 text-white text-xs font-semibold font-body px-3 py-1 rounded-full flex items-center gap-1",children:[v.jsx(l_,{className:"w-3 h-3"})," ",t.tag]})]}),v.jsx("p",{className:"font-body text-sm text-white/80 mt-2 leading-relaxed",children:t.description})]}),v.jsxs("div",{className:"p-4 sm:p-5 grid grid-cols-3 gap-2",children:[t.areas.map((n,i)=>v.jsx(Tl,{icon:z2,value:n,label:`Opção ${i+1}`},i)),v.jsx(Tl,{icon:c2,value:t.beds,label:"Dormitórios"}),v.jsx(Tl,{icon:l2,value:t.baths,label:"Banheiro"}),v.jsx(Tl,{icon:Pv,value:t.parking,label:"Vaga"})]}),v.jsxs("div",{className:"mx-5 mb-4 bg-orange-50 border border-orange-200 rounded-xl px-4 py-3 flex items-center gap-2.5",children:[v.jsx(s_,{className:"w-4 h-4 text-orange-500 flex-shrink-0"}),v.jsx("span",{className:"font-body text-sm font-semibold text-orange-700",children:"Piso em todo o apartamento incluso"})]}),v.jsx("div",{className:"px-5 pb-4",children:v.jsx("ul",{className:"space-y-2",children:t.features.map((n,i)=>v.jsxs("li",{className:"flex items-center gap-2 font-body text-sm text-foreground",children:[v.jsx("span",{className:"w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center flex-shrink-0",children:v.jsx(Rv,{className:"w-3 h-3 text-orange-500"})}),n]},i))})}),v.jsxs("div",{className:"p-5 pt-2 mt-auto flex flex-col gap-2.5",children:[v.jsxs("button",{onClick:()=>e(t),className:"flex items-center justify-center gap-2 w-full py-3 rounded-full text-sm font-semibold font-body border-2 border-orange-500 text-orange-500 hover:bg-orange-50 transition-colors",children:[v.jsx(A2,{className:"w-4 h-4"}),"Ver Planta"]}),v.jsxs("a",{href:_4,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full py-3 rounded-full text-sm font-semibold font-body bg-secondary text-secondary-foreground hover:bg-secondary/90 transition-all hover:scale-105 shadow-md shadow-secondary/20",children:[v.jsx(Zl,{className:"w-4 h-4"}),"Tenho Interesse"]})]})]})}
309function k4(){const[t,e]=D.useState(null);return v.jsxs("section",{id:"plantas",className:"py-20 md:py-28 bg-muted/30",children:[v.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[v.jsxs(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14",children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-secondary mb-4 block",children:"Plantas"}),v.jsx("h2",{className:"font-heading font-bold text-3xl md:text-4xl text-foreground leading-tight mb-4",children:"Apartamentos de 2 Dormitórios"}),v.jsx("p",{className:"font-body text-muted-foreground max-w-2xl mx-auto",children:"Plantas inteligentes de 42m² a 52m², projetadas para máximo aproveitamento do espaço."})]}),v.jsx(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mb-14",children:v.jsx("img",{src:b4,alt:"Implantação",className:"w-full rounded-2xl shadow-lg"})}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:S4.map(n=>v.jsx(C4,{plan:n,onViewFloorPlan:e},n.id))})]}),v.jsx(th,{children:t&&v.jsx(De.div,{initial:{opacity:0}
309,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center p-4",onClick:()=>e(null),children:v.jsxs(De.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{duration:.25},className:"relative bg-background rounded-2xl p-4 max-w-2xl w-full shadow-2xl",onClick:n=>n.stopPropagation(),children:[v.jsx("button",{onClick:()=>e(null),className:"absolute top-3 right-3 text-muted-foreground hover:text-foreground transition-colors",children:v.jsx(eu,{className:"w-6 h-6"})}),v.jsx("h3",{className:"font-heading font-bold text-lg text-foreground mb-4 pr-8",children:t.name}),v.jsx("img",{src:t.image,alt:t.name,className:"w-full h-auto rounded-xl"})]})})})]})}const E4=[{icon:Y2,label:"Escolas próximas"},{icon:n_,label:"Supermercados"},{icon:K2,label:"Farmácias"},{icon:f_,label:"Restaurantes"},{icon:G2,label:"Fácil acesso a vias"}];function T4(){return v.jsx("section",{id:"localizacao",className:"py-20 md:py-28 bg-background",children:v.jsx("div",{className:"max-w-7xl mx-auto px-4",children:v.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-start",children:[v.jsxs(De.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-primary mb-4 block",children:"Localização"}),v.jsx("h2",{className:"font-heading font-bold text-2xl sm:text-3xl md:text-4xl text-foreground leading-tight mb-4",children:"Localização Privilegiada em Taubaté"}),v.jsxs("div",{className:"flex items-start gap-3 mb-6 bg-muted/50 rounded-xl p-4",children:[v.jsx(Rf,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-heading font-semibold text-foreground text-base mb-1",children:"Av. Marcos Zaina, 2224"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm",children:"Jardim Santa Cruz, Taubaté – SP"})]})]}),v.jsx("p",{className:"font-body text-muted-foreground leading-relaxed mb-8",children:"O Colinas de Santa Cruz está em uma das regiões mais acessíveis e em crescimento de Taubaté. Próximo a escolas, supermercados, farmácias e com fácil acesso às principais vias da cidade."}),v.jsx("h3",{className:"font-heading font-semibold text-foreground text-base mb-4",children:"O que você encontra por perto"}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:E4.map((t,e)=>v.jsxs("div",{className:"flex items-center gap-3 bg-muted/30 rounded-lg px-4 py-3",children:[v.jsx(t.icon,{className:"w-4 h-4 text-secondary flex-shrink-0"}),v.jsx("span",{className:"font-body text-sm text-foreground",children:t.label})]},e))})]}),v.jsx(De.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},className:"rounded-2xl overflow-hidden shadow-xl h-[320px] sm:h-[400px] md:h-[500px]",children:v.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d905.2195066729023!2d-45.567087735783964!3d-22.992379662373725!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e1!3m2!1spt-BR!2sbr!4v1773923436081!5m2!1spt-BR!2sbr",width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Localização Colinas de Santa Cruz"})})]})})})}const P4="https://wa.me/5512996656770?text=Olá!%20Gostaria%20de%20agendar%20uma%20visita%20ao%20Colinas%20de%20Santa%20Cruz.";function R4(){return v.jsxs("section",{id:"contato",className:"py-20 md:py-28 bg-foreground relative overflow-hidden",children:[v.jsx("div",{className:"absolute top-0 left-0 w-72 h-72 bg-primary/10 rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2"}),v.jsx("div",{className:"absolute bottom-0 right-0 w-72 h-72 bg-secondary/10 rounded-full blur-3xl translate-x-1/2 translate-y-1/2"}),v.jsx("div",{className:"max-w-3xl mx-auto px-4 text-center relative z-10",children:v.jsxs(De.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[v.jsx("div",{className:"flex justify-center mb-6",children:v.jsx("a",{href:"https://personalimob.com.br/home",target:"_blank",rel:"noopener noreferrer",children:v.jsx("img",{src:"https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/2d872aca2_Ativo3.png",alt:"Personal Consultoria Imobiliária",className:"h-14 object-contain"})})}),v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-primary mb-4 block",children:"Condições Especiais de Lançamento"}),v.jsx("h2",{className:"font-heading font-bold text-2xl sm:text-3xl md:text-4xl text-white leading-tight mb-5 px-2 sm:px-0",children:"Garanta Seu Apartamento no Colinas de Santa Cruz"}),v.jsx("p",{className:"font-body text-white/70 max-w-xl mx-auto mb-8 text-sm sm:text-base leading-relaxed",children:"Entre em contato agora e c
309onheça as condições especiais de lançamento. Seu novo lar está mais perto do que você imagina."}),v.jsxs("a",{href:P4,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 sm:gap-3 bg-secondary hover:bg-secondary/90 text-secondary-foreground px-7 sm:px-10 py-4 sm:py-5 rounded-full text-base sm:text-lg font-semibold font-body transition-all shadow-lg shadow-secondary/30 w-full sm:w-auto",children:[v.jsx(Zl,{className:"w-5 h-5 sm:w-6 sm:h-6"}),"Fale com um Consultor"]}),v.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2 text-white/50 font-body text-sm",children:[v.jsx(Af,{className:"w-4 h-4"}),"(12) 99665-6770 • Atendimento personalizado"]})]})})]})}const A4="https://wa.me/5512996656770?text=Ol%C3%A1!%20Gostaria%20de%20saber%20mais%20sobre%20o%20Colinas%20de%20Santa%20Cruz.";function jh(){return v.jsxs("footer",{className:"bg-foreground border-t border-white/10",children:[v.jsx("div",{className:"max-w-7xl mx-auto px-4 py-14",children:v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("span",{className:"font-heading font-bold text-xl text-white",children:"Colinas de Santa Cruz"}),v.jsx("div",{className:"text-white/40 text-xs font-body mt-1",children:"Residencial • Taubaté – SP"})]}),v.jsx("p",{className:"font-body text-white/50 text-sm leading-relaxed",children:"Apartamentos de 2 dormitórios com área de lazer completa. O lar ideal para sua família em Taubaté."})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading font-semibold text-white text-sm mb-3",children:"Habcasa"}),v.jsx("p",{className:"font-body text-[11px] text-white/40 tracking-wider uppercase mb-2",children:"Incorporadora e Construtora"}),v.jsx("p",{className:"font-body text-white/50 text-sm leading-relaxed",children:"Empresa especializada no desenvolvimento de empreendimentos residenciais com foco em qualidade, inovação e bem-estar dos moradores."})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading font-semibold text-white text-sm mb-3",children:v.jsx("a",{href:"https://personalimob.com.br/home",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"Personal Consultoria Imobiliária"})}),v.jsx("p",{className:"font-body text-[11px] text-white/40 tracking-wider uppercase mb-2",children:"Consultoria Imobiliária"}),v.jsx("p",{className:"font-body text-white/50 text-sm leading-relaxed",children:"Especialistas em consultoria imobiliária em Taubaté e região. Atuamos com transparência e excelência para conectar pessoas ao imóvel ideal."}),v.jsxs("a",{href:"https://personalimob.com.br/home",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-3 text-primary hover:text-primary/80 transition-colors font-body text-xs",children:[v.jsx(O2,{className:"w-3 h-3"}),"personalimob.com.br"]})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading font-semibold text-white text-sm mb-4",children:"Contato"}),v.jsxs("div",{className:"space-y-3 mb-6",children:[v.jsxs("a",{href:A4,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-white/50 hover:text-primary transition-colors font-body text-sm",children:[v.jsx(Af,{className:"w-4 h-4"}),"(12) 99665-6770"]}),v.jsxs("div",{className:"flex items-start gap-2 text-white/50 font-body text-sm",children:[v.jsx(Rf,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),v.jsxs("span",{children:["Av. Marcos Zaina, 2224",v.jsx("br",{}),"Jardim Santa Cruz, Taubaté – SP"]})]})]}),v.jsx("div",{className:"space-y-2",children:[{label:"O Empreendimento",href:"#sobre"},{label:"Diferenciais",href:"#diferenciais"},{label:"Galeria",href:"#galeria"},{label:"Localização",href:"#localizacao"},{label:"Sobre",href:"/sobre"},{label:"Contato",href:"/contato"}].map(t=>v.jsx("a",{href:t.href,className:"block font-body text-sm text-white/50 hover:text-primary transition-colors",children:t.label},t.href))})]})]})}),v.jsx("div",{className:"border-t border-white/10",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-5 flex flex-col sm:flex-row items-center justify-between gap-4",children:[v.jsx("a",{href:"https://personalimob.com.br/home",target:"_blank",rel:"noopener noreferrer",children:v.jsx("img",{src:"https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/2d872aca2_Ativo3.png",alt:"Personal Consultoria Imobiliária",className:"h-10 object-contain"})}),v.jsxs("span",{className:"font-body text-xs text-white/40",children:["© ",new Date().getFullYear()," Personal. Todos os direitos reservados."]})]})})]})}const N4="https://wa.me/5512996656770?text=Ol%C3%A1!%20Gostaria%20de%20saber%20mais%20sobre%20o%20Colinas%20de%20Santa%20Cruz.";function Lh(){return v.jsxs("div",{className:"fixed bottom-6 right-6 z-40",children:[v.jsx("span",{className:"absolute inset-0 rounded-full bg-green-500 opacity-30 animate-ping"}),v.jsxs(De.a,{href:N4,target:"_blank",rel:"noopener noreferrer",initial:{scale:0},animate:{scale:1},transition:{delay:1.5,type:"spring",stiffness:200},whileHover:{scale:1.08},whileTap:{scale:.95},className:"relative flex items-center gap-2 bg-green-500 hover:bg-green-600 text-white pl-4 pr-5 h-14 roun
309ded-full shadow-lg shadow-green-500/40 transition-colors",title:"Fale conosco no WhatsApp",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6 flex-shrink-0",children:[v.jsx("path",{d:"M12 0C5.373 0 0 5.373 0 12c0 2.123.554 4.117 1.528 5.845L.057 23.428a.5.5 0 0 0 .515.572l5.765-1.51A11.943 11.943 0 0 0 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 21.9a9.9 9.9 0 0 1-5.031-1.373l-.36-.214-3.732.979 1-3.636-.235-.374A9.862 9.862 0 0 1 2.1 12C2.1 6.533 6.533 2.1 12 2.1c5.468 0 9.9 4.433 9.9 9.9 0 5.468-4.432 9.9-9.9 9.9z"}),v.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z"})]}),v.jsx("span",{className:"font-body font-semibold text-sm",children:"WhatsApp"})]})]})}const O4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/1bcba1097_StaCruz_logo_hor.png",j4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/f2e77e0ba_freepik__remova-um-andar-do-prdio__81071.png",L4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/d52811c08_FamiliaStaCruz.png",M4=[{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/691bb9c97_StaCruz_Piscina1.png",alt:"Piscina adulto",label:"Piscina",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/9c55aa0a6_StaCruz_Piscina2.png",alt:"Piscina infantil",label:"Piscina Infantil",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/c7807c302_StaCruz_Academia.png",alt:"Academia",label:"Academia",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/67e5d1097_StaCruz_Playground.png",alt:"Playground",label:"Playground",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/80b411fb0_StaCruz_QuadraAreia.png",alt:"Quadra de Areia",label:"Quadra de Areia",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/1a08e0012_StaCruz_PetPlace.png",alt:"Pet Place",label:"Pet Place",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/f77c955e7_StaCruz_SaloFesta.png",alt:"Salão de Festas",label:"Salão de Festas",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/6273ead70_StaCruz_SaloFesta2.png",alt:"Salão de Festas 2",label:"Salão de Festas",category:"lazer"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/77b5af06f_StaCruz_Sala.png",alt:"Sala de Estar",label:"Sala de Estar",category:"apto"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/880a95c17_StaCruz_StaCruz_Cozinha.png",alt:"Cozinha",label:"Cozinha",category:"apto"},{url:"https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/9baf7a864_StaCruz_QuartoCasal.png",alt:"Quarto Casal",label:"Quarto Casal",category:"apto"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/ee7369a05_StaCruz_Quarto.png",alt:"Quarto",label:"Quarto",category:"apto"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/830153866_StaCruz_Banheiro.png",alt:"Banheiro",label:"Banheiro",category:"apto"},{url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69b9bb00a9eca6f28f281c13/7389c83f4_StaCruz_VistaAerea.png",alt:"
309Vista Aérea",label:"Vista Aérea",category:"lazer"}];function D4(){return v.jsxs("div",{className:"min-h-screen bg-background overflow-x-hidden",children:[v.jsx(Oh,{logoImage:O4}),v.jsx(m4,{heroImage:j4}),v.jsx(g4,{entranceImage:L4}),v.jsx(v4,{}),v.jsx(w4,{images:M4}),v.jsx(k4,{}),v.jsx(T4,{}),v.jsx("div",{className:"w-full",children:v.jsx("img",{src:"https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/f2e77e0ba_freepik__remova-um-andar-do-prdio__81071.png",alt:"Colinas de Santa Cruz - Fachada",className:"w-full max-h-[520px] object-cover"})}),v.jsx(R4,{}),v.jsx(jh,{}),v.jsx(Lh,{})]})}const I4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/1bcba1097_StaCruz_logo_hor.png",F4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/d52811c08_FamiliaStaCruz.png",z4=[{icon:f2,title:"Construção com Qualidade",description:"Acabamento cuidadoso e materiais selecionados para garantir durabilidade e conforto em cada detalhe do empreendimento."},{icon:c_,title:"Feito para Famílias",description:"Apartamentos pensados para o dia a dia da família, com áreas de lazer que aproximam as pessoas e criam comunidade."},{icon:o_,title:"Localização Estratégica",description:"No Jardim Santa Cruz, em Taubaté, próximo a escolas, supermercados e com fácil acesso às principais vias da cidade."},{icon:L2,title:"Atendimento Próximo",description:"Equipe especializada da Personal Consultoria Imobiliária para tirar dúvidas e acompanhar cada etapa da sua decisão."}];function U4(){return v.jsxs("div",{className:"min-h-screen bg-background",children:[v.jsx(Oh,{logoImage:I4}),v.jsx("section",{className:"pt-32 pb-20 bg-muted/30",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[v.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center mb-12",children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-secondary mb-4 block",children:"Sobre o Empreendimento"}),v.jsx("h1",{className:"font-heading font-bold text-3xl md:text-5xl text-foreground leading-tight mb-6",children:"Sobre o Colinas de Santa Cruz"}),v.jsx("p",{className:"font-body text-muted-foreground text-base md:text-lg leading-relaxed",children:"O Colinas de Santa Cruz é um empreendimento residencial de Taubaté, no interior de São Paulo, formado por apartamentos de 2 dormitórios com áreas de 42m² a 52m² e uma vaga de garagem por unidade. Projetado para famílias que buscam o primeiro imóvel ou um novo lar com qualidade de vida, o residencial reúne em um só lugar uma completa área de lazer: piscina adulto e infantil, academia, playground, quadra de areia, pet place e salão de festas, além de portaria 24 horas para a tranquilidade dos moradores. Cada apartamento conta com piso completo em todos os ambientes, sala integrada à cozinha americana e varanda, aproveitando o espaço de forma inteligente e funcional para o cotidiano da família."}),v.jsx("p",{className:"font-body text-muted-foreground text-base md:text-lg leading-relaxed mt-6",children:"O empreendimento é desenvolvido pela Habcasa, incorporadora e construtora especializada em empreendimentos residenciais com foco em qualidade, inovação e bem-estar dos moradores. Já a comercialização é conduzida pela Personal Consultoria Imobiliária, consultoria de Taubaté que atua com transparência e excelência para conectar pessoas ao imóvel ideal. Juntos, Habcasa e Personal unem construção sólida e atendimento próximo, oferecendo um caminho seguro para quem deseja morar bem no Jardim Santa Cruz, uma das regiões mais acessíveis e em crescimento de Taubaté."})]}),v.jsx(De.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},className:"rounded-2xl overflow-hidden shadow-lg mb-16",children:v.jsx("img",{src:F4,alt:"Colinas de Santa Cruz",className:"w-full h-auto object-cover"})}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:z4.map((t,e)=>v.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1*e},className:"bg-background rounded-2xl p-6 border border-border/60 shadow-sm",children:[v.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center mb-4",children:v.jsx(t.icon,{className:"w-6 h-6"})}),v.jsx("h3",{className:"font-heading font-semibold text-lg text-foreground mb-2",children:t.title}),v.jsx("p",{className:"font-body text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})]})}),v.jsx(jh,{}),v.jsx(Lh,{})]})}const V4="https://media.base44.com/images/public/69b9bb00a9eca6f28f281c13/1bcba1097_StaCruz_logo_hor.png",B4="https://wa.me/5512996656770?text=Olá!%20Gostaria%20de%20saber%20mais%20sobre%20o%20Colinas%20de%20Santa%20Cruz.";
309function $4(){const[t,e]=D.useState({name:"",email:"",phone:"",message:""}),[n,i]=D.useState(!1),a=u=>{e({...t,[u.target.name]:u.target.value})},l=u=>{u.preventDefault();const d=encodeURIComponent(`Olá! Meu nome é ${t.name}.
310Email: ${t.email}
311Telefone: ${t.phone}
312
313${t.message}`);window.open(`https://wa.me/5512996656770?text=${d}`,"_blank"),i(!0)};return v.jsxs("div",{className:"min-h-screen bg-background",children:[v.jsx(Oh,{logoImage:V4}),v.jsx("section",{className:"pt-32 pb-20 bg-muted/30",children:v.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[v.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center mb-12",children:[v.jsx("span",{className:"text-xs font-body font-semibold tracking-widest uppercase text-secondary mb-4 block",children:"Fale Conosco"}),v.jsx("h1",{className:"font-heading font-bold text-3xl md:text-5xl text-foreground leading-tight mb-4",children:"Entre em Contato"}),v.jsx("p",{className:"font-body text-muted-foreground max-w-2xl mx-auto",children:"Tem dúvidas sobre o Colinas de Santa Cruz ou quer agendar uma visita? Estamos prontos para ajudar."})]}),v.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[v.jsxs(De.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6},className:"space-y-4",children:[v.jsxs("a",{href:B4,target:"_blank",rel:"noopener noreferrer",className:"flex items-start gap-4 bg-background rounded-2xl p-5 border border-border/60 hover:border-primary/40 transition-colors",children:[v.jsx("div",{className:"w-11 h-11 rounded-xl bg-green-500/10 text-green-600 flex items-center justify-center flex-shrink-0",children:v.jsx(Zl,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-heading font-semibold text-foreground mb-1",children:"WhatsApp"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm",children:"(12) 99665-6770"}),v.jsx("p",{className:"font-body text-muted-foreground text-xs mt-1",children:"Resposta rápida em horário comercial"})]})]}),v.jsxs("a",{href:"mailto:[email protected]",className:"flex items-start gap-4 bg-background rounded-2xl p-5 border border-border/60 hover:border-primary/40 transition-colors",children:[v.jsx("div",{className:"w-11 h-11 rounded-xl bg-primary/10 text-primary flex items-center justify-center flex-shrink-0",children:v.jsx(D2,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-heading font-semibold text-foreground mb-1",children:"E-mail"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm break-all",children:"[email protected]"}),v.jsx("p",{className:"font-body text-muted-foreground text-xs mt-1",children:"Personal Consultoria Imobiliária"})]})]}),v.jsxs("div",{className:"flex items-start gap-4 bg-background rounded-2xl p-5 border border-border/60",children:[v.jsx("div",{className:"w-11 h-11 rounded-xl bg-secondary/10 text-secondary flex items-center justify-center flex-shrink-0",children:v.jsx(Rf,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-heading font-semibold text-foreground mb-1",children:"Endereço"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm",children:"Av. Marcos Zaina, 2224"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm",children:"Jardim Santa Cruz, Taubaté – SP"})]})]}),v.jsxs("div",{className:"flex items-start gap-4 bg-background rounded-2xl p-5 border border-border/60",children:[v.jsx("div",{className:"w-11 h-11 rounded-xl bg-orange-500/10 text-orange-500 flex items-center justify-center flex-shrink-0",children:v.jsx(C2,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-heading font-semibold text-foreground mb-1",children:"Atendimento"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm",children:"Segunda a Sábado, 9h às 18h"})]})]})]}),v.jsx(De.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6},className:"bg-background rounded-2xl p-6 md:p-8 border border-border/60 shadow-lg",children:n?v.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center py-12",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-green-500/10 text-green-600 flex items-center justify-center mb-4",children:v.jsx(Fg,{className:"w-8 h-8"})}),v.jsx("h3",{className:"font-heading font-bold text-xl text-foreground mb-2",children:"Mensagem encaminhada!"}),v.jsx("p",{className:"font-body text-muted-foreground text-sm max-w-xs",children:"Abrimos o WhatsApp para você concluir o envio. Nossa equipe responderá em breve."}),v.jsx("button",{onClick:()=>
313{i(!1),e({name:"",email:"",phone:"",message:""})},className:"mt-6 text-primary font-body text-sm font-semibold hover:underline",children:"Enviar outra mensagem"})]}):v.jsxs("form",{onSubmit:l,className:"space-y-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-sm font-medium text-foreground mb-1.5 block",children:"Nome"}),v.jsx("input",{name:"name",value:t.name,onChange:a,required:!0,className:"w-full rounded-xl border border-input bg-background px-4 py-3 font-body text-sm text-foreground focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary",placeholder:"Seu nome"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-sm font-medium text-foreground mb-1.5 block",children:"E-mail"}),v.jsx("input",{name:"email",type:"email",value:t.email,onChange:a,required:!0,className:"w-full rounded-xl border border-input bg-background px-4 py-3 font-body text-sm text-foreground focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary",placeholder:"[email protected]"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-sm font-medium text-foreground mb-1.5 block",children:"Telefone"}),v.jsx("input",{name:"phone",value:t.phone,onChange:a,required:!0,className:"w-full rounded-xl border border-input bg-background px-4 py-3 font-body text-sm text-foreground focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary",placeholder:"(12) 99999-9999"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-sm font-medium text-foreground mb-1.5 block",children:"Mensagem"}),v.jsx("textarea",{name:"message",value:t.message,onChange:a,required:!0,rows:4,className:"w-full rounded-xl border border-input bg-background px-4 py-3 font-body text-sm text-foreground focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary resize-none",placeholder:"Como podemos ajudar?"})]}),v.jsxs("button",{type:"submit",className:"w-full flex items-center justify-center gap-2 bg-secondary hover:bg-secondary/90 text-secondary-foreground px-6 py-3.5 rounded-full font-body text-sm font-semibold transition-all shadow-md shadow-secondary/20",children:[v.jsx(Fg,{className:"w-4 h-4"}),"Enviar via WhatsApp"]})]})})]})]})}),v.jsx(jh,{}),v.jsx(Lh,{})]})}const q4=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:i}=UR();if(e||t)return v.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:v.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return v.jsx(VR,{});if(n.type==="auth_required")return i(),null}return v.jsxs(zk,{children:[v.jsx(Js,{path:"/",element:v.jsx(Ik,{to:"/Home",replace:!0})}),v.jsx(Js,{path:"/Home",element:v.jsx(D4,{})}),v.jsx(Js,{path:"/sobre",element:v.jsx(U4,{})}),v.jsx(Js,{path:"/contato",element:v.jsx($4,{})}),v.jsx(Js,{path:"*",element:v.jsx(FR,{})})]})};function H4(){return v.jsx(zR,{children:v.jsxs(jC,{client:WC,children:[v.jsx(Bk,{children:v.jsx(q4,{})}),v.jsx(aC,{})]})})}QS.createRoot(document.getElementById("root")).render(v.jsx(H4,{}));

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.